configure revision da4266ff
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xrandr 1.4.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xrandr' 563PACKAGE_TARNAME='xrandr' 564PACKAGE_VERSION='1.4.1' 565PACKAGE_STRING='xrandr 1.4.1' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610XRANDR_LIBS 611XRANDR_CFLAGS 612MAN_SUBSTS 613XORG_MAN_PAGE 614ADMIN_MAN_DIR 615DRIVER_MAN_DIR 616MISC_MAN_DIR 617FILE_MAN_DIR 618LIB_MAN_DIR 619APP_MAN_DIR 620ADMIN_MAN_SUFFIX 621DRIVER_MAN_SUFFIX 622MISC_MAN_SUFFIX 623FILE_MAN_SUFFIX 624LIB_MAN_SUFFIX 625APP_MAN_SUFFIX 626SED 627host_os 628host_vendor 629host_cpu 630host 631build_os 632build_vendor 633build_cpu 634build 635INSTALL_CMD 636PKG_CONFIG 637CHANGELOG_CMD 638STRICT_CFLAGS 639CWARNFLAGS 640BASE_CFLAGS 641EGREP 642GREP 643CPP 644am__fastdepCC_FALSE 645am__fastdepCC_TRUE 646CCDEPMODE 647am__nodep 648AMDEPBACKSLASH 649AMDEP_FALSE 650AMDEP_TRUE 651am__quote 652am__include 653DEPDIR 654OBJEXT 655EXEEXT 656ac_ct_CC 657CPPFLAGS 658LDFLAGS 659CFLAGS 660CC 661AM_BACKSLASH 662AM_DEFAULT_VERBOSITY 663AM_DEFAULT_V 664AM_V 665am__untar 666am__tar 667AMTAR 668am__leading_dot 669SET_MAKE 670AWK 671mkdir_p 672MKDIR_P 673INSTALL_STRIP_PROGRAM 674STRIP 675install_sh 676MAKEINFO 677AUTOHEADER 678AUTOMAKE 679AUTOCONF 680ACLOCAL 681VERSION 682PACKAGE 683CYGPATH_W 684am__isrc 685INSTALL_DATA 686INSTALL_SCRIPT 687INSTALL_PROGRAM 688target_alias 689host_alias 690build_alias 691LIBS 692ECHO_T 693ECHO_N 694ECHO_C 695DEFS 696mandir 697localedir 698libdir 699psdir 700pdfdir 701dvidir 702htmldir 703infodir 704docdir 705oldincludedir 706includedir 707localstatedir 708sharedstatedir 709sysconfdir 710datadir 711datarootdir 712libexecdir 713sbindir 714bindir 715program_transform_name 716prefix 717exec_prefix 718PACKAGE_URL 719PACKAGE_BUGREPORT 720PACKAGE_STRING 721PACKAGE_VERSION 722PACKAGE_TARNAME 723PACKAGE_NAME 724PATH_SEPARATOR 725SHELL' 726ac_subst_files='' 727ac_user_opts=' 728enable_option_checking 729enable_silent_rules 730enable_dependency_tracking 731enable_selective_werror 732enable_strict_compilation 733' 734 ac_precious_vars='build_alias 735host_alias 736target_alias 737CC 738CFLAGS 739LDFLAGS 740LIBS 741CPPFLAGS 742CPP 743PKG_CONFIG 744XRANDR_CFLAGS 745XRANDR_LIBS' 746 747 748# Initialize some variables set by options. 749ac_init_help= 750ac_init_version=false 751ac_unrecognized_opts= 752ac_unrecognized_sep= 753# The variables have the same names as the options, with 754# dashes changed to underlines. 755cache_file=/dev/null 756exec_prefix=NONE 757no_create= 758no_recursion= 759prefix=NONE 760program_prefix=NONE 761program_suffix=NONE 762program_transform_name=s,x,x, 763silent= 764site= 765srcdir= 766verbose= 767x_includes=NONE 768x_libraries=NONE 769 770# Installation directory options. 771# These are left unexpanded so users can "make install exec_prefix=/foo" 772# and all the variables that are supposed to be based on exec_prefix 773# by default will actually change. 774# Use braces instead of parens because sh, perl, etc. also accept them. 775# (The list follows the same order as the GNU Coding Standards.) 776bindir='${exec_prefix}/bin' 777sbindir='${exec_prefix}/sbin' 778libexecdir='${exec_prefix}/libexec' 779datarootdir='${prefix}/share' 780datadir='${datarootdir}' 781sysconfdir='${prefix}/etc' 782sharedstatedir='${prefix}/com' 783localstatedir='${prefix}/var' 784includedir='${prefix}/include' 785oldincludedir='/usr/include' 786docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 787infodir='${datarootdir}/info' 788htmldir='${docdir}' 789dvidir='${docdir}' 790pdfdir='${docdir}' 791psdir='${docdir}' 792libdir='${exec_prefix}/lib' 793localedir='${datarootdir}/locale' 794mandir='${datarootdir}/man' 795 796ac_prev= 797ac_dashdash= 798for ac_option 799do 800 # If the previous option needs an argument, assign it. 801 if test -n "$ac_prev"; then 802 eval $ac_prev=\$ac_option 803 ac_prev= 804 continue 805 fi 806 807 case $ac_option in 808 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 809 *=) ac_optarg= ;; 810 *) ac_optarg=yes ;; 811 esac 812 813 # Accept the important Cygnus configure options, so we can diagnose typos. 814 815 case $ac_dashdash$ac_option in 816 --) 817 ac_dashdash=yes ;; 818 819 -bindir | --bindir | --bindi | --bind | --bin | --bi) 820 ac_prev=bindir ;; 821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 822 bindir=$ac_optarg ;; 823 824 -build | --build | --buil | --bui | --bu) 825 ac_prev=build_alias ;; 826 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 827 build_alias=$ac_optarg ;; 828 829 -cache-file | --cache-file | --cache-fil | --cache-fi \ 830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 831 ac_prev=cache_file ;; 832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 834 cache_file=$ac_optarg ;; 835 836 --config-cache | -C) 837 cache_file=config.cache ;; 838 839 -datadir | --datadir | --datadi | --datad) 840 ac_prev=datadir ;; 841 -datadir=* | --datadir=* | --datadi=* | --datad=*) 842 datadir=$ac_optarg ;; 843 844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 845 | --dataroo | --dataro | --datar) 846 ac_prev=datarootdir ;; 847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 849 datarootdir=$ac_optarg ;; 850 851 -disable-* | --disable-*) 852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 853 # Reject names that are not valid shell variable names. 854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 855 as_fn_error $? "invalid feature name: $ac_useropt" 856 ac_useropt_orig=$ac_useropt 857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 858 case $ac_user_opts in 859 *" 860"enable_$ac_useropt" 861"*) ;; 862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 863 ac_unrecognized_sep=', ';; 864 esac 865 eval enable_$ac_useropt=no ;; 866 867 -docdir | --docdir | --docdi | --doc | --do) 868 ac_prev=docdir ;; 869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 870 docdir=$ac_optarg ;; 871 872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 873 ac_prev=dvidir ;; 874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 875 dvidir=$ac_optarg ;; 876 877 -enable-* | --enable-*) 878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 879 # Reject names that are not valid shell variable names. 880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 881 as_fn_error $? "invalid feature name: $ac_useropt" 882 ac_useropt_orig=$ac_useropt 883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 884 case $ac_user_opts in 885 *" 886"enable_$ac_useropt" 887"*) ;; 888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 889 ac_unrecognized_sep=', ';; 890 esac 891 eval enable_$ac_useropt=\$ac_optarg ;; 892 893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 895 | --exec | --exe | --ex) 896 ac_prev=exec_prefix ;; 897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 899 | --exec=* | --exe=* | --ex=*) 900 exec_prefix=$ac_optarg ;; 901 902 -gas | --gas | --ga | --g) 903 # Obsolete; use --with-gas. 904 with_gas=yes ;; 905 906 -help | --help | --hel | --he | -h) 907 ac_init_help=long ;; 908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 909 ac_init_help=recursive ;; 910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 911 ac_init_help=short ;; 912 913 -host | --host | --hos | --ho) 914 ac_prev=host_alias ;; 915 -host=* | --host=* | --hos=* | --ho=*) 916 host_alias=$ac_optarg ;; 917 918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 919 ac_prev=htmldir ;; 920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 921 | --ht=*) 922 htmldir=$ac_optarg ;; 923 924 -includedir | --includedir | --includedi | --included | --include \ 925 | --includ | --inclu | --incl | --inc) 926 ac_prev=includedir ;; 927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 928 | --includ=* | --inclu=* | --incl=* | --inc=*) 929 includedir=$ac_optarg ;; 930 931 -infodir | --infodir | --infodi | --infod | --info | --inf) 932 ac_prev=infodir ;; 933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 934 infodir=$ac_optarg ;; 935 936 -libdir | --libdir | --libdi | --libd) 937 ac_prev=libdir ;; 938 -libdir=* | --libdir=* | --libdi=* | --libd=*) 939 libdir=$ac_optarg ;; 940 941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 942 | --libexe | --libex | --libe) 943 ac_prev=libexecdir ;; 944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 945 | --libexe=* | --libex=* | --libe=*) 946 libexecdir=$ac_optarg ;; 947 948 -localedir | --localedir | --localedi | --localed | --locale) 949 ac_prev=localedir ;; 950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 951 localedir=$ac_optarg ;; 952 953 -localstatedir | --localstatedir | --localstatedi | --localstated \ 954 | --localstate | --localstat | --localsta | --localst | --locals) 955 ac_prev=localstatedir ;; 956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 958 localstatedir=$ac_optarg ;; 959 960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 961 ac_prev=mandir ;; 962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 963 mandir=$ac_optarg ;; 964 965 -nfp | --nfp | --nf) 966 # Obsolete; use --without-fp. 967 with_fp=no ;; 968 969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 970 | --no-cr | --no-c | -n) 971 no_create=yes ;; 972 973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 975 no_recursion=yes ;; 976 977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 979 | --oldin | --oldi | --old | --ol | --o) 980 ac_prev=oldincludedir ;; 981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 984 oldincludedir=$ac_optarg ;; 985 986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 987 ac_prev=prefix ;; 988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 989 prefix=$ac_optarg ;; 990 991 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 992 | --program-pre | --program-pr | --program-p) 993 ac_prev=program_prefix ;; 994 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 996 program_prefix=$ac_optarg ;; 997 998 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 999 | --program-suf | --program-su | --program-s) 1000 ac_prev=program_suffix ;; 1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1003 program_suffix=$ac_optarg ;; 1004 1005 -program-transform-name | --program-transform-name \ 1006 | --program-transform-nam | --program-transform-na \ 1007 | --program-transform-n | --program-transform- \ 1008 | --program-transform | --program-transfor \ 1009 | --program-transfo | --program-transf \ 1010 | --program-trans | --program-tran \ 1011 | --progr-tra | --program-tr | --program-t) 1012 ac_prev=program_transform_name ;; 1013 -program-transform-name=* | --program-transform-name=* \ 1014 | --program-transform-nam=* | --program-transform-na=* \ 1015 | --program-transform-n=* | --program-transform-=* \ 1016 | --program-transform=* | --program-transfor=* \ 1017 | --program-transfo=* | --program-transf=* \ 1018 | --program-trans=* | --program-tran=* \ 1019 | --progr-tra=* | --program-tr=* | --program-t=*) 1020 program_transform_name=$ac_optarg ;; 1021 1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1023 ac_prev=pdfdir ;; 1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1025 pdfdir=$ac_optarg ;; 1026 1027 -psdir | --psdir | --psdi | --psd | --ps) 1028 ac_prev=psdir ;; 1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1030 psdir=$ac_optarg ;; 1031 1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1033 | -silent | --silent | --silen | --sile | --sil) 1034 silent=yes ;; 1035 1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1037 ac_prev=sbindir ;; 1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1039 | --sbi=* | --sb=*) 1040 sbindir=$ac_optarg ;; 1041 1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1044 | --sharedst | --shareds | --shared | --share | --shar \ 1045 | --sha | --sh) 1046 ac_prev=sharedstatedir ;; 1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1050 | --sha=* | --sh=*) 1051 sharedstatedir=$ac_optarg ;; 1052 1053 -site | --site | --sit) 1054 ac_prev=site ;; 1055 -site=* | --site=* | --sit=*) 1056 site=$ac_optarg ;; 1057 1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1059 ac_prev=srcdir ;; 1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1061 srcdir=$ac_optarg ;; 1062 1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1064 | --syscon | --sysco | --sysc | --sys | --sy) 1065 ac_prev=sysconfdir ;; 1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1068 sysconfdir=$ac_optarg ;; 1069 1070 -target | --target | --targe | --targ | --tar | --ta | --t) 1071 ac_prev=target_alias ;; 1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1073 target_alias=$ac_optarg ;; 1074 1075 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1076 verbose=yes ;; 1077 1078 -version | --version | --versio | --versi | --vers | -V) 1079 ac_init_version=: ;; 1080 1081 -with-* | --with-*) 1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1083 # Reject names that are not valid shell variable names. 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1085 as_fn_error $? "invalid package name: $ac_useropt" 1086 ac_useropt_orig=$ac_useropt 1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1088 case $ac_user_opts in 1089 *" 1090"with_$ac_useropt" 1091"*) ;; 1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1093 ac_unrecognized_sep=', ';; 1094 esac 1095 eval with_$ac_useropt=\$ac_optarg ;; 1096 1097 -without-* | --without-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error $? "invalid package name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"with_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval with_$ac_useropt=no ;; 1112 1113 --x) 1114 # Obsolete; use --with-x. 1115 with_x=yes ;; 1116 1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1118 | --x-incl | --x-inc | --x-in | --x-i) 1119 ac_prev=x_includes ;; 1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1122 x_includes=$ac_optarg ;; 1123 1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1126 ac_prev=x_libraries ;; 1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1129 x_libraries=$ac_optarg ;; 1130 1131 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1132Try \`$0 --help' for more information" 1133 ;; 1134 1135 *=*) 1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1137 # Reject names that are not valid shell variable names. 1138 case $ac_envvar in #( 1139 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1140 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1141 esac 1142 eval $ac_envvar=\$ac_optarg 1143 export $ac_envvar ;; 1144 1145 *) 1146 # FIXME: should be removed in autoconf 3.0. 1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1150 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1151 ;; 1152 1153 esac 1154done 1155 1156if test -n "$ac_prev"; then 1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1158 as_fn_error $? "missing argument to $ac_option" 1159fi 1160 1161if test -n "$ac_unrecognized_opts"; then 1162 case $enable_option_checking in 1163 no) ;; 1164 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1166 esac 1167fi 1168 1169# Check all directory arguments for consistency. 1170for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1171 datadir sysconfdir sharedstatedir localstatedir includedir \ 1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1173 libdir localedir mandir 1174do 1175 eval ac_val=\$$ac_var 1176 # Remove trailing slashes. 1177 case $ac_val in 1178 */ ) 1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1180 eval $ac_var=\$ac_val;; 1181 esac 1182 # Be sure to have absolute directory names. 1183 case $ac_val in 1184 [\\/$]* | ?:[\\/]* ) continue;; 1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1186 esac 1187 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1188done 1189 1190# There might be people who depend on the old broken behavior: `$host' 1191# used to hold the argument of --host etc. 1192# FIXME: To remove some day. 1193build=$build_alias 1194host=$host_alias 1195target=$target_alias 1196 1197# FIXME: To remove some day. 1198if test "x$host_alias" != x; then 1199 if test "x$build_alias" = x; then 1200 cross_compiling=maybe 1201 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1202 If a cross compiler is detected then cross compile mode will be used" >&2 1203 elif test "x$build_alias" != "x$host_alias"; then 1204 cross_compiling=yes 1205 fi 1206fi 1207 1208ac_tool_prefix= 1209test -n "$host_alias" && ac_tool_prefix=$host_alias- 1210 1211test "$silent" = yes && exec 6>/dev/null 1212 1213 1214ac_pwd=`pwd` && test -n "$ac_pwd" && 1215ac_ls_di=`ls -di .` && 1216ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1217 as_fn_error $? "working directory cannot be determined" 1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1219 as_fn_error $? "pwd does not report name of working directory" 1220 1221 1222# Find the source files, if location was not specified. 1223if test -z "$srcdir"; then 1224 ac_srcdir_defaulted=yes 1225 # Try the directory containing this script, then the parent directory. 1226 ac_confdir=`$as_dirname -- "$as_myself" || 1227$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1228 X"$as_myself" : 'X\(//\)[^/]' \| \ 1229 X"$as_myself" : 'X\(//\)$' \| \ 1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1231$as_echo X"$as_myself" | 1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1233 s//\1/ 1234 q 1235 } 1236 /^X\(\/\/\)[^/].*/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)$/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\).*/{ 1245 s//\1/ 1246 q 1247 } 1248 s/.*/./; q'` 1249 srcdir=$ac_confdir 1250 if test ! -r "$srcdir/$ac_unique_file"; then 1251 srcdir=.. 1252 fi 1253else 1254 ac_srcdir_defaulted=no 1255fi 1256if test ! -r "$srcdir/$ac_unique_file"; then 1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1258 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1259fi 1260ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1261ac_abs_confdir=`( 1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1263 pwd)` 1264# When building in place, set srcdir=. 1265if test "$ac_abs_confdir" = "$ac_pwd"; then 1266 srcdir=. 1267fi 1268# Remove unnecessary trailing slashes from srcdir. 1269# Double slashes in file names in object file debugging info 1270# mess up M-x gdb in Emacs. 1271case $srcdir in 1272*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1273esac 1274for ac_var in $ac_precious_vars; do 1275 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1276 eval ac_env_${ac_var}_value=\$${ac_var} 1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1278 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1279done 1280 1281# 1282# Report the --help message. 1283# 1284if test "$ac_init_help" = "long"; then 1285 # Omit some internal or obsolete options to make the list less imposing. 1286 # This message is too long to be a string in the A/UX 3.1 sh. 1287 cat <<_ACEOF 1288\`configure' configures xrandr 1.4.1 to adapt to many kinds of systems. 1289 1290Usage: $0 [OPTION]... [VAR=VALUE]... 1291 1292To assign environment variables (e.g., CC, CFLAGS...), specify them as 1293VAR=VALUE. See below for descriptions of some of the useful variables. 1294 1295Defaults for the options are specified in brackets. 1296 1297Configuration: 1298 -h, --help display this help and exit 1299 --help=short display options specific to this package 1300 --help=recursive display the short help of all the included packages 1301 -V, --version display version information and exit 1302 -q, --quiet, --silent do not print \`checking ...' messages 1303 --cache-file=FILE cache test results in FILE [disabled] 1304 -C, --config-cache alias for \`--cache-file=config.cache' 1305 -n, --no-create do not create output files 1306 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1307 1308Installation directories: 1309 --prefix=PREFIX install architecture-independent files in PREFIX 1310 [$ac_default_prefix] 1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1312 [PREFIX] 1313 1314By default, \`make install' will install all the files in 1315\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1316an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1317for instance \`--prefix=\$HOME'. 1318 1319For better control, use the options below. 1320 1321Fine tuning of the installation directories: 1322 --bindir=DIR user executables [EPREFIX/bin] 1323 --sbindir=DIR system admin executables [EPREFIX/sbin] 1324 --libexecdir=DIR program executables [EPREFIX/libexec] 1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1328 --libdir=DIR object code libraries [EPREFIX/lib] 1329 --includedir=DIR C header files [PREFIX/include] 1330 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1333 --infodir=DIR info documentation [DATAROOTDIR/info] 1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1335 --mandir=DIR man documentation [DATAROOTDIR/man] 1336 --docdir=DIR documentation root [DATAROOTDIR/doc/xrandr] 1337 --htmldir=DIR html documentation [DOCDIR] 1338 --dvidir=DIR dvi documentation [DOCDIR] 1339 --pdfdir=DIR pdf documentation [DOCDIR] 1340 --psdir=DIR ps documentation [DOCDIR] 1341_ACEOF 1342 1343 cat <<\_ACEOF 1344 1345Program names: 1346 --program-prefix=PREFIX prepend PREFIX to installed program names 1347 --program-suffix=SUFFIX append SUFFIX to installed program names 1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1349 1350System types: 1351 --build=BUILD configure for building on BUILD [guessed] 1352 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1353_ACEOF 1354fi 1355 1356if test -n "$ac_init_help"; then 1357 case $ac_init_help in 1358 short | recursive ) echo "Configuration of xrandr 1.4.1:";; 1359 esac 1360 cat <<\_ACEOF 1361 1362Optional Features: 1363 --disable-option-checking ignore unrecognized --enable/--with options 1364 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1365 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1366 --enable-silent-rules less verbose build output (undo: "make V=1") 1367 --disable-silent-rules verbose build output (undo: "make V=0") 1368 --enable-dependency-tracking 1369 do not reject slow dependency extractors 1370 --disable-dependency-tracking 1371 speeds up one-time build 1372 --disable-selective-werror 1373 Turn off selective compiler errors. (default: 1374 enabled) 1375 --enable-strict-compilation 1376 Enable all warnings from compiler and make them 1377 errors (default: disabled) 1378 1379Some influential environment variables: 1380 CC C compiler command 1381 CFLAGS C compiler flags 1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1383 nonstandard directory <lib dir> 1384 LIBS libraries to pass to the linker, e.g. -l<library> 1385 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1386 you have headers in a nonstandard directory <include dir> 1387 CPP C preprocessor 1388 PKG_CONFIG path to pkg-config utility 1389 XRANDR_CFLAGS 1390 C compiler flags for XRANDR, overriding pkg-config 1391 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config 1392 1393Use these variables to override the choices made by `configure' or to help 1394it to find libraries and programs with nonstandard names/locations. 1395 1396Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1397_ACEOF 1398ac_status=$? 1399fi 1400 1401if test "$ac_init_help" = "recursive"; then 1402 # If there are subdirs, report their specific --help. 1403 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1404 test -d "$ac_dir" || 1405 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1406 continue 1407 ac_builddir=. 1408 1409case "$ac_dir" in 1410.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1411*) 1412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1413 # A ".." for each directory in $ac_dir_suffix. 1414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1415 case $ac_top_builddir_sub in 1416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1418 esac ;; 1419esac 1420ac_abs_top_builddir=$ac_pwd 1421ac_abs_builddir=$ac_pwd$ac_dir_suffix 1422# for backward compatibility: 1423ac_top_builddir=$ac_top_build_prefix 1424 1425case $srcdir in 1426 .) # We are building in place. 1427 ac_srcdir=. 1428 ac_top_srcdir=$ac_top_builddir_sub 1429 ac_abs_top_srcdir=$ac_pwd ;; 1430 [\\/]* | ?:[\\/]* ) # Absolute name. 1431 ac_srcdir=$srcdir$ac_dir_suffix; 1432 ac_top_srcdir=$srcdir 1433 ac_abs_top_srcdir=$srcdir ;; 1434 *) # Relative name. 1435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1436 ac_top_srcdir=$ac_top_build_prefix$srcdir 1437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1438esac 1439ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1440 1441 cd "$ac_dir" || { ac_status=$?; continue; } 1442 # Check for guested configure. 1443 if test -f "$ac_srcdir/configure.gnu"; then 1444 echo && 1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1446 elif test -f "$ac_srcdir/configure"; then 1447 echo && 1448 $SHELL "$ac_srcdir/configure" --help=recursive 1449 else 1450 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1451 fi || ac_status=$? 1452 cd "$ac_pwd" || { ac_status=$?; break; } 1453 done 1454fi 1455 1456test -n "$ac_init_help" && exit $ac_status 1457if $ac_init_version; then 1458 cat <<\_ACEOF 1459xrandr configure 1.4.1 1460generated by GNU Autoconf 2.68 1461 1462Copyright (C) 2010 Free Software Foundation, Inc. 1463This configure script is free software; the Free Software Foundation 1464gives unlimited permission to copy, distribute and modify it. 1465_ACEOF 1466 exit 1467fi 1468 1469## ------------------------ ## 1470## Autoconf initialization. ## 1471## ------------------------ ## 1472 1473# ac_fn_c_try_compile LINENO 1474# -------------------------- 1475# Try to compile conftest.$ac_ext, and return whether this succeeded. 1476ac_fn_c_try_compile () 1477{ 1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1479 rm -f conftest.$ac_objext 1480 if { { ac_try="$ac_compile" 1481case "(($ac_try" in 1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1483 *) ac_try_echo=$ac_try;; 1484esac 1485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1486$as_echo "$ac_try_echo"; } >&5 1487 (eval "$ac_compile") 2>conftest.err 1488 ac_status=$? 1489 if test -s conftest.err; then 1490 grep -v '^ *+' conftest.err >conftest.er1 1491 cat conftest.er1 >&5 1492 mv -f conftest.er1 conftest.err 1493 fi 1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1495 test $ac_status = 0; } && { 1496 test -z "$ac_c_werror_flag" || 1497 test ! -s conftest.err 1498 } && test -s conftest.$ac_objext; then : 1499 ac_retval=0 1500else 1501 $as_echo "$as_me: failed program was:" >&5 1502sed 's/^/| /' conftest.$ac_ext >&5 1503 1504 ac_retval=1 1505fi 1506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1507 as_fn_set_status $ac_retval 1508 1509} # ac_fn_c_try_compile 1510 1511# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1512# --------------------------------------------- 1513# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1514# accordingly. 1515ac_fn_c_check_decl () 1516{ 1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1518 as_decl_name=`echo $2|sed 's/ *(.*//'` 1519 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1521$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1522if eval \${$3+:} false; then : 1523 $as_echo_n "(cached) " >&6 1524else 1525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1526/* end confdefs.h. */ 1527$4 1528int 1529main () 1530{ 1531#ifndef $as_decl_name 1532#ifdef __cplusplus 1533 (void) $as_decl_use; 1534#else 1535 (void) $as_decl_name; 1536#endif 1537#endif 1538 1539 ; 1540 return 0; 1541} 1542_ACEOF 1543if ac_fn_c_try_compile "$LINENO"; then : 1544 eval "$3=yes" 1545else 1546 eval "$3=no" 1547fi 1548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1549fi 1550eval ac_res=\$$3 1551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1552$as_echo "$ac_res" >&6; } 1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1554 1555} # ac_fn_c_check_decl 1556 1557# ac_fn_c_try_cpp LINENO 1558# ---------------------- 1559# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1560ac_fn_c_try_cpp () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 if { { ac_try="$ac_cpp conftest.$ac_ext" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } > conftest.i && { 1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 }; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592} # ac_fn_c_try_cpp 1593 1594# ac_fn_c_try_run LINENO 1595# ---------------------- 1596# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1597# that executables *can* be run. 1598ac_fn_c_try_run () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 if { { ac_try="$ac_link" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_link") 2>&5 1609 ac_status=$? 1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1611 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1612 { { case "(($ac_try" in 1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1614 *) ac_try_echo=$ac_try;; 1615esac 1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1617$as_echo "$ac_try_echo"; } >&5 1618 (eval "$ac_try") 2>&5 1619 ac_status=$? 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; }; }; then : 1622 ac_retval=0 1623else 1624 $as_echo "$as_me: program exited with status $ac_status" >&5 1625 $as_echo "$as_me: failed program was:" >&5 1626sed 's/^/| /' conftest.$ac_ext >&5 1627 1628 ac_retval=$ac_status 1629fi 1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1632 as_fn_set_status $ac_retval 1633 1634} # ac_fn_c_try_run 1635 1636# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1637# ------------------------------------------------------- 1638# Tests whether HEADER exists and can be compiled using the include files in 1639# INCLUDES, setting the cache variable VAR accordingly. 1640ac_fn_c_check_header_compile () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1644$as_echo_n "checking for $2... " >&6; } 1645if eval \${$3+:} false; then : 1646 $as_echo_n "(cached) " >&6 1647else 1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1649/* end confdefs.h. */ 1650$4 1651#include <$2> 1652_ACEOF 1653if ac_fn_c_try_compile "$LINENO"; then : 1654 eval "$3=yes" 1655else 1656 eval "$3=no" 1657fi 1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1659fi 1660eval ac_res=\$$3 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1662$as_echo "$ac_res" >&6; } 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 1665} # ac_fn_c_check_header_compile 1666 1667# ac_fn_c_try_link LINENO 1668# ----------------------- 1669# Try to link conftest.$ac_ext, and return whether this succeeded. 1670ac_fn_c_try_link () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 rm -f conftest.$ac_objext conftest$ac_exeext 1674 if { { ac_try="$ac_link" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680$as_echo "$ac_try_echo"; } >&5 1681 (eval "$ac_link") 2>conftest.err 1682 ac_status=$? 1683 if test -s conftest.err; then 1684 grep -v '^ *+' conftest.err >conftest.er1 1685 cat conftest.er1 >&5 1686 mv -f conftest.er1 conftest.err 1687 fi 1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } && { 1690 test -z "$ac_c_werror_flag" || 1691 test ! -s conftest.err 1692 } && test -s conftest$ac_exeext && { 1693 test "$cross_compiling" = yes || 1694 $as_test_x conftest$ac_exeext 1695 }; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702fi 1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1705 # interfere with the next link command; also delete a directory that is 1706 # left behind by Apple's compiler. We do this before executing the actions. 1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_link 1712cat >config.log <<_ACEOF 1713This file contains any messages produced by compilers while 1714running configure, to aid debugging if configure makes a mistake. 1715 1716It was created by xrandr $as_me 1.4.1, which was 1717generated by GNU Autoconf 2.68. Invocation command line was 1718 1719 $ $0 $@ 1720 1721_ACEOF 1722exec 5>>config.log 1723{ 1724cat <<_ASUNAME 1725## --------- ## 1726## Platform. ## 1727## --------- ## 1728 1729hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1730uname -m = `(uname -m) 2>/dev/null || echo unknown` 1731uname -r = `(uname -r) 2>/dev/null || echo unknown` 1732uname -s = `(uname -s) 2>/dev/null || echo unknown` 1733uname -v = `(uname -v) 2>/dev/null || echo unknown` 1734 1735/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1736/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1737 1738/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1739/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1740/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1741/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1742/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1743/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1744/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1745 1746_ASUNAME 1747 1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1749for as_dir in $PATH 1750do 1751 IFS=$as_save_IFS 1752 test -z "$as_dir" && as_dir=. 1753 $as_echo "PATH: $as_dir" 1754 done 1755IFS=$as_save_IFS 1756 1757} >&5 1758 1759cat >&5 <<_ACEOF 1760 1761 1762## ----------- ## 1763## Core tests. ## 1764## ----------- ## 1765 1766_ACEOF 1767 1768 1769# Keep a trace of the command line. 1770# Strip out --no-create and --no-recursion so they do not pile up. 1771# Strip out --silent because we don't want to record it for future runs. 1772# Also quote any args containing shell meta-characters. 1773# Make two passes to allow for proper duplicate-argument suppression. 1774ac_configure_args= 1775ac_configure_args0= 1776ac_configure_args1= 1777ac_must_keep_next=false 1778for ac_pass in 1 2 1779do 1780 for ac_arg 1781 do 1782 case $ac_arg in 1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1785 | -silent | --silent | --silen | --sile | --sil) 1786 continue ;; 1787 *\'*) 1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1789 esac 1790 case $ac_pass in 1791 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1792 2) 1793 as_fn_append ac_configure_args1 " '$ac_arg'" 1794 if test $ac_must_keep_next = true; then 1795 ac_must_keep_next=false # Got value, back to normal. 1796 else 1797 case $ac_arg in 1798 *=* | --config-cache | -C | -disable-* | --disable-* \ 1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1801 | -with-* | --with-* | -without-* | --without-* | --x) 1802 case "$ac_configure_args0 " in 1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1804 esac 1805 ;; 1806 -* ) ac_must_keep_next=true ;; 1807 esac 1808 fi 1809 as_fn_append ac_configure_args " '$ac_arg'" 1810 ;; 1811 esac 1812 done 1813done 1814{ ac_configure_args0=; unset ac_configure_args0;} 1815{ ac_configure_args1=; unset ac_configure_args1;} 1816 1817# When interrupted or exit'd, cleanup temporary files, and complete 1818# config.log. We remove comments because anyway the quotes in there 1819# would cause problems or look ugly. 1820# WARNING: Use '\'' to represent an apostrophe within the trap. 1821# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1822trap 'exit_status=$? 1823 # Save into config.log some information that might help in debugging. 1824 { 1825 echo 1826 1827 $as_echo "## ---------------- ## 1828## Cache variables. ## 1829## ---------------- ##" 1830 echo 1831 # The following way of writing the cache mishandles newlines in values, 1832( 1833 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1834 eval ac_val=\$$ac_var 1835 case $ac_val in #( 1836 *${as_nl}*) 1837 case $ac_var in #( 1838 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1839$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1840 esac 1841 case $ac_var in #( 1842 _ | IFS | as_nl) ;; #( 1843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1844 *) { eval $ac_var=; unset $ac_var;} ;; 1845 esac ;; 1846 esac 1847 done 1848 (set) 2>&1 | 1849 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1850 *${as_nl}ac_space=\ *) 1851 sed -n \ 1852 "s/'\''/'\''\\\\'\'''\''/g; 1853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1854 ;; #( 1855 *) 1856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1857 ;; 1858 esac | 1859 sort 1860) 1861 echo 1862 1863 $as_echo "## ----------------- ## 1864## Output variables. ## 1865## ----------------- ##" 1866 echo 1867 for ac_var in $ac_subst_vars 1868 do 1869 eval ac_val=\$$ac_var 1870 case $ac_val in 1871 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1872 esac 1873 $as_echo "$ac_var='\''$ac_val'\''" 1874 done | sort 1875 echo 1876 1877 if test -n "$ac_subst_files"; then 1878 $as_echo "## ------------------- ## 1879## File substitutions. ## 1880## ------------------- ##" 1881 echo 1882 for ac_var in $ac_subst_files 1883 do 1884 eval ac_val=\$$ac_var 1885 case $ac_val in 1886 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1887 esac 1888 $as_echo "$ac_var='\''$ac_val'\''" 1889 done | sort 1890 echo 1891 fi 1892 1893 if test -s confdefs.h; then 1894 $as_echo "## ----------- ## 1895## confdefs.h. ## 1896## ----------- ##" 1897 echo 1898 cat confdefs.h 1899 echo 1900 fi 1901 test "$ac_signal" != 0 && 1902 $as_echo "$as_me: caught signal $ac_signal" 1903 $as_echo "$as_me: exit $exit_status" 1904 } >&5 1905 rm -f core *.core core.conftest.* && 1906 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1907 exit $exit_status 1908' 0 1909for ac_signal in 1 2 13 15; do 1910 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1911done 1912ac_signal=0 1913 1914# confdefs.h avoids OS command line length limits that DEFS can exceed. 1915rm -f -r conftest* confdefs.h 1916 1917$as_echo "/* confdefs.h */" > confdefs.h 1918 1919# Predefined preprocessor variables. 1920 1921cat >>confdefs.h <<_ACEOF 1922#define PACKAGE_NAME "$PACKAGE_NAME" 1923_ACEOF 1924 1925cat >>confdefs.h <<_ACEOF 1926#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1927_ACEOF 1928 1929cat >>confdefs.h <<_ACEOF 1930#define PACKAGE_VERSION "$PACKAGE_VERSION" 1931_ACEOF 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_STRING "$PACKAGE_STRING" 1935_ACEOF 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1939_ACEOF 1940 1941cat >>confdefs.h <<_ACEOF 1942#define PACKAGE_URL "$PACKAGE_URL" 1943_ACEOF 1944 1945 1946# Let the site file select an alternate cache file if it wants to. 1947# Prefer an explicitly selected file to automatically selected ones. 1948ac_site_file1=NONE 1949ac_site_file2=NONE 1950if test -n "$CONFIG_SITE"; then 1951 # We do not want a PATH search for config.site. 1952 case $CONFIG_SITE in #(( 1953 -*) ac_site_file1=./$CONFIG_SITE;; 1954 */*) ac_site_file1=$CONFIG_SITE;; 1955 *) ac_site_file1=./$CONFIG_SITE;; 1956 esac 1957elif test "x$prefix" != xNONE; then 1958 ac_site_file1=$prefix/share/config.site 1959 ac_site_file2=$prefix/etc/config.site 1960else 1961 ac_site_file1=$ac_default_prefix/share/config.site 1962 ac_site_file2=$ac_default_prefix/etc/config.site 1963fi 1964for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1965do 1966 test "x$ac_site_file" = xNONE && continue 1967 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1969$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1970 sed 's/^/| /' "$ac_site_file" >&5 1971 . "$ac_site_file" \ 1972 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1974as_fn_error $? "failed to load site script $ac_site_file 1975See \`config.log' for more details" "$LINENO" 5; } 1976 fi 1977done 1978 1979if test -r "$cache_file"; then 1980 # Some versions of bash will fail to source /dev/null (special files 1981 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1982 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1984$as_echo "$as_me: loading cache $cache_file" >&6;} 1985 case $cache_file in 1986 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1987 *) . "./$cache_file";; 1988 esac 1989 fi 1990else 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1992$as_echo "$as_me: creating cache $cache_file" >&6;} 1993 >$cache_file 1994fi 1995 1996# Check that the precious variables saved in the cache have kept the same 1997# value. 1998ac_cache_corrupted=false 1999for ac_var in $ac_precious_vars; do 2000 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2001 eval ac_new_set=\$ac_env_${ac_var}_set 2002 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2003 eval ac_new_val=\$ac_env_${ac_var}_value 2004 case $ac_old_set,$ac_new_set in 2005 set,) 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2007$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2008 ac_cache_corrupted=: ;; 2009 ,set) 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2011$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2012 ac_cache_corrupted=: ;; 2013 ,);; 2014 *) 2015 if test "x$ac_old_val" != "x$ac_new_val"; then 2016 # differences in whitespace do not lead to failure. 2017 ac_old_val_w=`echo x $ac_old_val` 2018 ac_new_val_w=`echo x $ac_new_val` 2019 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2021$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2022 ac_cache_corrupted=: 2023 else 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2025$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2026 eval $ac_var=\$ac_old_val 2027 fi 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2029$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2031$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2032 fi;; 2033 esac 2034 # Pass precious variables to config.status. 2035 if test "$ac_new_set" = set; then 2036 case $ac_new_val in 2037 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2038 *) ac_arg=$ac_var=$ac_new_val ;; 2039 esac 2040 case " $ac_configure_args " in 2041 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2042 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2043 esac 2044 fi 2045done 2046if $ac_cache_corrupted; then 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2050$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2051 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2052fi 2053## -------------------- ## 2054## Main body of script. ## 2055## -------------------- ## 2056 2057ac_ext=c 2058ac_cpp='$CPP $CPPFLAGS' 2059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2061ac_compiler_gnu=$ac_cv_c_compiler_gnu 2062 2063 2064 2065ac_config_headers="$ac_config_headers config.h" 2066 2067 2068# Initialize Automake 2069am__api_version='1.14' 2070 2071ac_aux_dir= 2072for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2073 if test -f "$ac_dir/install-sh"; then 2074 ac_aux_dir=$ac_dir 2075 ac_install_sh="$ac_aux_dir/install-sh -c" 2076 break 2077 elif test -f "$ac_dir/install.sh"; then 2078 ac_aux_dir=$ac_dir 2079 ac_install_sh="$ac_aux_dir/install.sh -c" 2080 break 2081 elif test -f "$ac_dir/shtool"; then 2082 ac_aux_dir=$ac_dir 2083 ac_install_sh="$ac_aux_dir/shtool install -c" 2084 break 2085 fi 2086done 2087if test -z "$ac_aux_dir"; then 2088 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2089fi 2090 2091# These three variables are undocumented and unsupported, 2092# and are intended to be withdrawn in a future Autoconf release. 2093# They can cause serious problems if a builder's source tree is in a directory 2094# whose full name contains unusual characters. 2095ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2096ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2097ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2098 2099 2100# Find a good install program. We prefer a C program (faster), 2101# so one script is as good as another. But avoid the broken or 2102# incompatible versions: 2103# SysV /etc/install, /usr/sbin/install 2104# SunOS /usr/etc/install 2105# IRIX /sbin/install 2106# AIX /bin/install 2107# AmigaOS /C/install, which installs bootblocks on floppy discs 2108# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2109# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2110# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2111# OS/2's system install, which has a completely different semantic 2112# ./install, which can be erroneously created by make from ./install.sh. 2113# Reject install programs that cannot install multiple files. 2114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2115$as_echo_n "checking for a BSD-compatible install... " >&6; } 2116if test -z "$INSTALL"; then 2117if ${ac_cv_path_install+:} false; then : 2118 $as_echo_n "(cached) " >&6 2119else 2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2121for as_dir in $PATH 2122do 2123 IFS=$as_save_IFS 2124 test -z "$as_dir" && as_dir=. 2125 # Account for people who put trailing slashes in PATH elements. 2126case $as_dir/ in #(( 2127 ./ | .// | /[cC]/* | \ 2128 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2129 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2130 /usr/ucb/* ) ;; 2131 *) 2132 # OSF1 and SCO ODT 3.0 have their own names for install. 2133 # Don't use installbsd from OSF since it installs stuff as root 2134 # by default. 2135 for ac_prog in ginstall scoinst install; do 2136 for ac_exec_ext in '' $ac_executable_extensions; do 2137 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2138 if test $ac_prog = install && 2139 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2140 # AIX install. It has an incompatible calling convention. 2141 : 2142 elif test $ac_prog = install && 2143 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2144 # program-specific install script used by HP pwplus--don't use. 2145 : 2146 else 2147 rm -rf conftest.one conftest.two conftest.dir 2148 echo one > conftest.one 2149 echo two > conftest.two 2150 mkdir conftest.dir 2151 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2152 test -s conftest.one && test -s conftest.two && 2153 test -s conftest.dir/conftest.one && 2154 test -s conftest.dir/conftest.two 2155 then 2156 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2157 break 3 2158 fi 2159 fi 2160 fi 2161 done 2162 done 2163 ;; 2164esac 2165 2166 done 2167IFS=$as_save_IFS 2168 2169rm -rf conftest.one conftest.two conftest.dir 2170 2171fi 2172 if test "${ac_cv_path_install+set}" = set; then 2173 INSTALL=$ac_cv_path_install 2174 else 2175 # As a last resort, use the slow shell script. Don't cache a 2176 # value for INSTALL within a source directory, because that will 2177 # break other packages using the cache if that directory is 2178 # removed, or if the value is a relative name. 2179 INSTALL=$ac_install_sh 2180 fi 2181fi 2182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2183$as_echo "$INSTALL" >&6; } 2184 2185# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2186# It thinks the first close brace ends the variable substitution. 2187test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2188 2189test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2190 2191test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2192 2193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2194$as_echo_n "checking whether build environment is sane... " >&6; } 2195# Reject unsafe characters in $srcdir or the absolute working directory 2196# name. Accept space and tab only in the latter. 2197am_lf=' 2198' 2199case `pwd` in 2200 *[\\\"\#\$\&\'\`$am_lf]*) 2201 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2202esac 2203case $srcdir in 2204 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2205 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2206esac 2207 2208# Do 'set' in a subshell so we don't clobber the current shell's 2209# arguments. Must try -L first in case configure is actually a 2210# symlink; some systems play weird games with the mod time of symlinks 2211# (eg FreeBSD returns the mod time of the symlink's containing 2212# directory). 2213if ( 2214 am_has_slept=no 2215 for am_try in 1 2; do 2216 echo "timestamp, slept: $am_has_slept" > conftest.file 2217 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2218 if test "$*" = "X"; then 2219 # -L didn't work. 2220 set X `ls -t "$srcdir/configure" conftest.file` 2221 fi 2222 if test "$*" != "X $srcdir/configure conftest.file" \ 2223 && test "$*" != "X conftest.file $srcdir/configure"; then 2224 2225 # If neither matched, then we have a broken ls. This can happen 2226 # if, for instance, CONFIG_SHELL is bash and it inherits a 2227 # broken ls alias from the environment. This has actually 2228 # happened. Such a system could not be considered "sane". 2229 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2230 alias in your environment" "$LINENO" 5 2231 fi 2232 if test "$2" = conftest.file || test $am_try -eq 2; then 2233 break 2234 fi 2235 # Just in case. 2236 sleep 1 2237 am_has_slept=yes 2238 done 2239 test "$2" = conftest.file 2240 ) 2241then 2242 # Ok. 2243 : 2244else 2245 as_fn_error $? "newly created file is older than distributed files! 2246Check your system clock" "$LINENO" 5 2247fi 2248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2249$as_echo "yes" >&6; } 2250# If we didn't sleep, we still need to ensure time stamps of config.status and 2251# generated files are strictly newer. 2252am_sleep_pid= 2253if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2254 ( sleep 1 ) & 2255 am_sleep_pid=$! 2256fi 2257 2258rm -f conftest.file 2259 2260test "$program_prefix" != NONE && 2261 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2262# Use a double $ so make ignores it. 2263test "$program_suffix" != NONE && 2264 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2265# Double any \ or $. 2266# By default was `s,x,x', remove it if useless. 2267ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2268program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2269 2270# expand $ac_aux_dir to an absolute path 2271am_aux_dir=`cd $ac_aux_dir && pwd` 2272 2273if test x"${MISSING+set}" != xset; then 2274 case $am_aux_dir in 2275 *\ * | *\ *) 2276 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2277 *) 2278 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2279 esac 2280fi 2281# Use eval to expand $SHELL 2282if eval "$MISSING --is-lightweight"; then 2283 am_missing_run="$MISSING " 2284else 2285 am_missing_run= 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2287$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2288fi 2289 2290if test x"${install_sh}" != xset; then 2291 case $am_aux_dir in 2292 *\ * | *\ *) 2293 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2294 *) 2295 install_sh="\${SHELL} $am_aux_dir/install-sh" 2296 esac 2297fi 2298 2299# Installed binaries are usually stripped using 'strip' when the user 2300# run "make install-strip". However 'strip' might not be the right 2301# tool to use in cross-compilation environments, therefore Automake 2302# will honor the 'STRIP' environment variable to overrule this program. 2303if test "$cross_compiling" != no; then 2304 if test -n "$ac_tool_prefix"; then 2305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2306set dummy ${ac_tool_prefix}strip; ac_word=$2 2307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2308$as_echo_n "checking for $ac_word... " >&6; } 2309if ${ac_cv_prog_STRIP+:} false; then : 2310 $as_echo_n "(cached) " >&6 2311else 2312 if test -n "$STRIP"; then 2313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2314else 2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2316for as_dir in $PATH 2317do 2318 IFS=$as_save_IFS 2319 test -z "$as_dir" && as_dir=. 2320 for ac_exec_ext in '' $ac_executable_extensions; do 2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2324 break 2 2325 fi 2326done 2327 done 2328IFS=$as_save_IFS 2329 2330fi 2331fi 2332STRIP=$ac_cv_prog_STRIP 2333if test -n "$STRIP"; then 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2335$as_echo "$STRIP" >&6; } 2336else 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2338$as_echo "no" >&6; } 2339fi 2340 2341 2342fi 2343if test -z "$ac_cv_prog_STRIP"; then 2344 ac_ct_STRIP=$STRIP 2345 # Extract the first word of "strip", so it can be a program name with args. 2346set dummy strip; ac_word=$2 2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2348$as_echo_n "checking for $ac_word... " >&6; } 2349if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2350 $as_echo_n "(cached) " >&6 2351else 2352 if test -n "$ac_ct_STRIP"; then 2353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2354else 2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2356for as_dir in $PATH 2357do 2358 IFS=$as_save_IFS 2359 test -z "$as_dir" && as_dir=. 2360 for ac_exec_ext in '' $ac_executable_extensions; do 2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2362 ac_cv_prog_ac_ct_STRIP="strip" 2363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2364 break 2 2365 fi 2366done 2367 done 2368IFS=$as_save_IFS 2369 2370fi 2371fi 2372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2373if test -n "$ac_ct_STRIP"; then 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2375$as_echo "$ac_ct_STRIP" >&6; } 2376else 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2378$as_echo "no" >&6; } 2379fi 2380 2381 if test "x$ac_ct_STRIP" = x; then 2382 STRIP=":" 2383 else 2384 case $cross_compiling:$ac_tool_warned in 2385yes:) 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2388ac_tool_warned=yes ;; 2389esac 2390 STRIP=$ac_ct_STRIP 2391 fi 2392else 2393 STRIP="$ac_cv_prog_STRIP" 2394fi 2395 2396fi 2397INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2398 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2400$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2401if test -z "$MKDIR_P"; then 2402 if ${ac_cv_path_mkdir+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404else 2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2407do 2408 IFS=$as_save_IFS 2409 test -z "$as_dir" && as_dir=. 2410 for ac_prog in mkdir gmkdir; do 2411 for ac_exec_ext in '' $ac_executable_extensions; do 2412 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2413 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2414 'mkdir (GNU coreutils) '* | \ 2415 'mkdir (coreutils) '* | \ 2416 'mkdir (fileutils) '4.1*) 2417 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2418 break 3;; 2419 esac 2420 done 2421 done 2422 done 2423IFS=$as_save_IFS 2424 2425fi 2426 2427 test -d ./--version && rmdir ./--version 2428 if test "${ac_cv_path_mkdir+set}" = set; then 2429 MKDIR_P="$ac_cv_path_mkdir -p" 2430 else 2431 # As a last resort, use the slow shell script. Don't cache a 2432 # value for MKDIR_P within a source directory, because that will 2433 # break other packages using the cache if that directory is 2434 # removed, or if the value is a relative name. 2435 MKDIR_P="$ac_install_sh -d" 2436 fi 2437fi 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2439$as_echo "$MKDIR_P" >&6; } 2440 2441for ac_prog in gawk mawk nawk awk 2442do 2443 # Extract the first word of "$ac_prog", so it can be a program name with args. 2444set dummy $ac_prog; 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_AWK+:} false; then : 2448 $as_echo_n "(cached) " >&6 2449else 2450 if test -n "$AWK"; then 2451 ac_cv_prog_AWK="$AWK" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2460 ac_cv_prog_AWK="$ac_prog" 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 2470AWK=$ac_cv_prog_AWK 2471if test -n "$AWK"; then 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2473$as_echo "$AWK" >&6; } 2474else 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2476$as_echo "no" >&6; } 2477fi 2478 2479 2480 test -n "$AWK" && break 2481done 2482 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2484$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2485set x ${MAKE-make} 2486ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2487if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 cat >conftest.make <<\_ACEOF 2491SHELL = /bin/sh 2492all: 2493 @echo '@@@%%%=$(MAKE)=@@@%%%' 2494_ACEOF 2495# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2496case `${MAKE-make} -f conftest.make 2>/dev/null` in 2497 *@@@%%%=?*=@@@%%%*) 2498 eval ac_cv_prog_make_${ac_make}_set=yes;; 2499 *) 2500 eval ac_cv_prog_make_${ac_make}_set=no;; 2501esac 2502rm -f conftest.make 2503fi 2504if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2506$as_echo "yes" >&6; } 2507 SET_MAKE= 2508else 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2510$as_echo "no" >&6; } 2511 SET_MAKE="MAKE=${MAKE-make}" 2512fi 2513 2514rm -rf .tst 2>/dev/null 2515mkdir .tst 2>/dev/null 2516if test -d .tst; then 2517 am__leading_dot=. 2518else 2519 am__leading_dot=_ 2520fi 2521rmdir .tst 2>/dev/null 2522 2523# Check whether --enable-silent-rules was given. 2524if test "${enable_silent_rules+set}" = set; then : 2525 enableval=$enable_silent_rules; 2526fi 2527 2528case $enable_silent_rules in # ((( 2529 yes) AM_DEFAULT_VERBOSITY=0;; 2530 no) AM_DEFAULT_VERBOSITY=1;; 2531 *) AM_DEFAULT_VERBOSITY=1;; 2532esac 2533am_make=${MAKE-make} 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2535$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2536if ${am_cv_make_support_nested_variables+:} false; then : 2537 $as_echo_n "(cached) " >&6 2538else 2539 if $as_echo 'TRUE=$(BAR$(V)) 2540BAR0=false 2541BAR1=true 2542V=1 2543am__doit: 2544 @$(TRUE) 2545.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2546 am_cv_make_support_nested_variables=yes 2547else 2548 am_cv_make_support_nested_variables=no 2549fi 2550fi 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2552$as_echo "$am_cv_make_support_nested_variables" >&6; } 2553if test $am_cv_make_support_nested_variables = yes; then 2554 AM_V='$(V)' 2555 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2556else 2557 AM_V=$AM_DEFAULT_VERBOSITY 2558 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2559fi 2560AM_BACKSLASH='\' 2561 2562if test "`cd $srcdir && pwd`" != "`pwd`"; then 2563 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2564 # is not polluted with repeated "-I." 2565 am__isrc=' -I$(srcdir)' 2566 # test to see if srcdir already configured 2567 if test -f $srcdir/config.status; then 2568 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2569 fi 2570fi 2571 2572# test whether we have cygpath 2573if test -z "$CYGPATH_W"; then 2574 if (cygpath --version) >/dev/null 2>/dev/null; then 2575 CYGPATH_W='cygpath -w' 2576 else 2577 CYGPATH_W=echo 2578 fi 2579fi 2580 2581 2582# Define the identity of the package. 2583 PACKAGE='xrandr' 2584 VERSION='1.4.1' 2585 2586 2587cat >>confdefs.h <<_ACEOF 2588#define PACKAGE "$PACKAGE" 2589_ACEOF 2590 2591 2592cat >>confdefs.h <<_ACEOF 2593#define VERSION "$VERSION" 2594_ACEOF 2595 2596# Some tools Automake needs. 2597 2598ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2599 2600 2601AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2602 2603 2604AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2605 2606 2607AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2608 2609 2610MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2611 2612# For better backward compatibility. To be removed once Automake 1.9.x 2613# dies out for good. For more background, see: 2614# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2615# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2616mkdir_p='$(MKDIR_P)' 2617 2618# We need awk for the "check" target. The system "awk" is bad on 2619# some platforms. 2620# Always define AMTAR for backward compatibility. Yes, it's still used 2621# in the wild :-( We should find a proper way to deprecate it ... 2622AMTAR='$${TAR-tar}' 2623 2624 2625# We'll loop over all known methods to create a tar archive until one works. 2626_am_tools='gnutar pax cpio none' 2627 2628am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2629 2630 2631 2632 2633 2634 2635# POSIX will say in a future version that running "rm -f" with no argument 2636# is OK; and we want to be able to make that assumption in our Makefile 2637# recipes. So use an aggressive probe to check that the usage we want is 2638# actually supported "in the wild" to an acceptable degree. 2639# See automake bug#10828. 2640# To make any issue more visible, cause the running configure to be aborted 2641# by default if the 'rm' program in use doesn't match our expectations; the 2642# user can still override this though. 2643if rm -f && rm -fr && rm -rf; then : OK; else 2644 cat >&2 <<'END' 2645Oops! 2646 2647Your 'rm' program seems unable to run without file operands specified 2648on the command line, even when the '-f' option is present. This is contrary 2649to the behaviour of most rm programs out there, and not conforming with 2650the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2651 2652Please tell bug-automake@gnu.org about your system, including the value 2653of your $PATH and any error possibly output before this message. This 2654can help us improve future automake versions. 2655 2656END 2657 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2658 echo 'Configuration will proceed anyway, since you have set the' >&2 2659 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2660 echo >&2 2661 else 2662 cat >&2 <<'END' 2663Aborting the configuration process, to ensure you take notice of the issue. 2664 2665You can download and install GNU coreutils to get an 'rm' implementation 2666that behaves properly: <http://www.gnu.org/software/coreutils/>. 2667 2668If you want to complete the configuration process using your problematic 2669'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2670to "yes", and re-run configure. 2671 2672END 2673 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2674 fi 2675fi 2676 2677# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689DEPDIR="${am__leading_dot}deps" 2690 2691ac_config_commands="$ac_config_commands depfiles" 2692 2693 2694am_make=${MAKE-make} 2695cat > confinc << 'END' 2696am__doit: 2697 @echo this is the am__doit target 2698.PHONY: am__doit 2699END 2700# If we don't find an include directive, just comment out the code. 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2702$as_echo_n "checking for style of include used by $am_make... " >&6; } 2703am__include="#" 2704am__quote= 2705_am_result=none 2706# First try GNU make style include. 2707echo "include confinc" > confmf 2708# Ignore all kinds of additional output from 'make'. 2709case `$am_make -s -f confmf 2> /dev/null` in #( 2710*the\ am__doit\ target*) 2711 am__include=include 2712 am__quote= 2713 _am_result=GNU 2714 ;; 2715esac 2716# Now try BSD make style include. 2717if test "$am__include" = "#"; then 2718 echo '.include "confinc"' > confmf 2719 case `$am_make -s -f confmf 2> /dev/null` in #( 2720 *the\ am__doit\ target*) 2721 am__include=.include 2722 am__quote="\"" 2723 _am_result=BSD 2724 ;; 2725 esac 2726fi 2727 2728 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2730$as_echo "$_am_result" >&6; } 2731rm -f confinc confmf 2732 2733# Check whether --enable-dependency-tracking was given. 2734if test "${enable_dependency_tracking+set}" = set; then : 2735 enableval=$enable_dependency_tracking; 2736fi 2737 2738if test "x$enable_dependency_tracking" != xno; then 2739 am_depcomp="$ac_aux_dir/depcomp" 2740 AMDEPBACKSLASH='\' 2741 am__nodep='_no' 2742fi 2743 if test "x$enable_dependency_tracking" != xno; then 2744 AMDEP_TRUE= 2745 AMDEP_FALSE='#' 2746else 2747 AMDEP_TRUE='#' 2748 AMDEP_FALSE= 2749fi 2750 2751 2752ac_ext=c 2753ac_cpp='$CPP $CPPFLAGS' 2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2756ac_compiler_gnu=$ac_cv_c_compiler_gnu 2757if test -n "$ac_tool_prefix"; then 2758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2759set dummy ${ac_tool_prefix}gcc; ac_word=$2 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2761$as_echo_n "checking for $ac_word... " >&6; } 2762if ${ac_cv_prog_CC+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 if test -n "$CC"; then 2766 ac_cv_prog_CC="$CC" # Let the user override the test. 2767else 2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2769for as_dir in $PATH 2770do 2771 IFS=$as_save_IFS 2772 test -z "$as_dir" && as_dir=. 2773 for ac_exec_ext in '' $ac_executable_extensions; do 2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2775 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2777 break 2 2778 fi 2779done 2780 done 2781IFS=$as_save_IFS 2782 2783fi 2784fi 2785CC=$ac_cv_prog_CC 2786if test -n "$CC"; then 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2788$as_echo "$CC" >&6; } 2789else 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2791$as_echo "no" >&6; } 2792fi 2793 2794 2795fi 2796if test -z "$ac_cv_prog_CC"; then 2797 ac_ct_CC=$CC 2798 # Extract the first word of "gcc", so it can be a program name with args. 2799set dummy gcc; ac_word=$2 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2801$as_echo_n "checking for $ac_word... " >&6; } 2802if ${ac_cv_prog_ac_ct_CC+:} false; then : 2803 $as_echo_n "(cached) " >&6 2804else 2805 if test -n "$ac_ct_CC"; then 2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2807else 2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2809for as_dir in $PATH 2810do 2811 IFS=$as_save_IFS 2812 test -z "$as_dir" && as_dir=. 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2815 ac_cv_prog_ac_ct_CC="gcc" 2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2817 break 2 2818 fi 2819done 2820 done 2821IFS=$as_save_IFS 2822 2823fi 2824fi 2825ac_ct_CC=$ac_cv_prog_ac_ct_CC 2826if test -n "$ac_ct_CC"; then 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2828$as_echo "$ac_ct_CC" >&6; } 2829else 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2831$as_echo "no" >&6; } 2832fi 2833 2834 if test "x$ac_ct_CC" = x; then 2835 CC="" 2836 else 2837 case $cross_compiling:$ac_tool_warned in 2838yes:) 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2841ac_tool_warned=yes ;; 2842esac 2843 CC=$ac_ct_CC 2844 fi 2845else 2846 CC="$ac_cv_prog_CC" 2847fi 2848 2849if test -z "$CC"; then 2850 if test -n "$ac_tool_prefix"; then 2851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2852set dummy ${ac_tool_prefix}cc; ac_word=$2 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2854$as_echo_n "checking for $ac_word... " >&6; } 2855if ${ac_cv_prog_CC+:} false; then : 2856 $as_echo_n "(cached) " >&6 2857else 2858 if test -n "$CC"; then 2859 ac_cv_prog_CC="$CC" # Let the user override the test. 2860else 2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH 2863do 2864 IFS=$as_save_IFS 2865 test -z "$as_dir" && as_dir=. 2866 for ac_exec_ext in '' $ac_executable_extensions; do 2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2868 ac_cv_prog_CC="${ac_tool_prefix}cc" 2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2870 break 2 2871 fi 2872done 2873 done 2874IFS=$as_save_IFS 2875 2876fi 2877fi 2878CC=$ac_cv_prog_CC 2879if test -n "$CC"; then 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2881$as_echo "$CC" >&6; } 2882else 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2884$as_echo "no" >&6; } 2885fi 2886 2887 2888 fi 2889fi 2890if test -z "$CC"; then 2891 # Extract the first word of "cc", so it can be a program name with args. 2892set dummy cc; ac_word=$2 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2894$as_echo_n "checking for $ac_word... " >&6; } 2895if ${ac_cv_prog_CC+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 if test -n "$CC"; then 2899 ac_cv_prog_CC="$CC" # Let the user override the test. 2900else 2901 ac_prog_rejected=no 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2910 ac_prog_rejected=yes 2911 continue 2912 fi 2913 ac_cv_prog_CC="cc" 2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917done 2918 done 2919IFS=$as_save_IFS 2920 2921if test $ac_prog_rejected = yes; then 2922 # We found a bogon in the path, so make sure we never use it. 2923 set dummy $ac_cv_prog_CC 2924 shift 2925 if test $# != 0; then 2926 # We chose a different compiler from the bogus one. 2927 # However, it has the same basename, so the bogon will be chosen 2928 # first if we set CC to just the basename; use the full file name. 2929 shift 2930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2931 fi 2932fi 2933fi 2934fi 2935CC=$ac_cv_prog_CC 2936if test -n "$CC"; then 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2938$as_echo "$CC" >&6; } 2939else 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2941$as_echo "no" >&6; } 2942fi 2943 2944 2945fi 2946if test -z "$CC"; then 2947 if test -n "$ac_tool_prefix"; then 2948 for ac_prog in cl.exe 2949 do 2950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2951set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2953$as_echo_n "checking for $ac_word... " >&6; } 2954if ${ac_cv_prog_CC+:} false; then : 2955 $as_echo_n "(cached) " >&6 2956else 2957 if test -n "$CC"; then 2958 ac_cv_prog_CC="$CC" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977CC=$ac_cv_prog_CC 2978if test -n "$CC"; then 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2980$as_echo "$CC" >&6; } 2981else 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983$as_echo "no" >&6; } 2984fi 2985 2986 2987 test -n "$CC" && break 2988 done 2989fi 2990if test -z "$CC"; then 2991 ac_ct_CC=$CC 2992 for ac_prog in cl.exe 2993do 2994 # Extract the first word of "$ac_prog", so it can be a program name with args. 2995set dummy $ac_prog; ac_word=$2 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2997$as_echo_n "checking for $ac_word... " >&6; } 2998if ${ac_cv_prog_ac_ct_CC+:} false; then : 2999 $as_echo_n "(cached) " >&6 3000else 3001 if test -n "$ac_ct_CC"; then 3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 test -z "$as_dir" && as_dir=. 3009 for ac_exec_ext in '' $ac_executable_extensions; do 3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3011 ac_cv_prog_ac_ct_CC="$ac_prog" 3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016 done 3017IFS=$as_save_IFS 3018 3019fi 3020fi 3021ac_ct_CC=$ac_cv_prog_ac_ct_CC 3022if test -n "$ac_ct_CC"; then 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3024$as_echo "$ac_ct_CC" >&6; } 3025else 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027$as_echo "no" >&6; } 3028fi 3029 3030 3031 test -n "$ac_ct_CC" && break 3032done 3033 3034 if test "x$ac_ct_CC" = x; then 3035 CC="" 3036 else 3037 case $cross_compiling:$ac_tool_warned in 3038yes:) 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3041ac_tool_warned=yes ;; 3042esac 3043 CC=$ac_ct_CC 3044 fi 3045fi 3046 3047fi 3048 3049 3050test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3052as_fn_error $? "no acceptable C compiler found in \$PATH 3053See \`config.log' for more details" "$LINENO" 5; } 3054 3055# Provide some information about the compiler. 3056$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3057set X $ac_compile 3058ac_compiler=$2 3059for ac_option in --version -v -V -qversion; do 3060 { { ac_try="$ac_compiler $ac_option >&5" 3061case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064esac 3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3066$as_echo "$ac_try_echo"; } >&5 3067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3068 ac_status=$? 3069 if test -s conftest.err; then 3070 sed '10a\ 3071... rest of stderr output deleted ... 3072 10q' conftest.err >conftest.er1 3073 cat conftest.er1 >&5 3074 fi 3075 rm -f conftest.er1 conftest.err 3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3077 test $ac_status = 0; } 3078done 3079 3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3081/* end confdefs.h. */ 3082 3083int 3084main () 3085{ 3086 3087 ; 3088 return 0; 3089} 3090_ACEOF 3091ac_clean_files_save=$ac_clean_files 3092ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3093# Try to create an executable without -o first, disregard a.out. 3094# It will help us diagnose broken compilers, and finding out an intuition 3095# of exeext. 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3097$as_echo_n "checking whether the C compiler works... " >&6; } 3098ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3099 3100# The possible output files: 3101ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3102 3103ac_rmfiles= 3104for ac_file in $ac_files 3105do 3106 case $ac_file in 3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3108 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3109 esac 3110done 3111rm -f $ac_rmfiles 3112 3113if { { ac_try="$ac_link_default" 3114case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3119$as_echo "$ac_try_echo"; } >&5 3120 (eval "$ac_link_default") 2>&5 3121 ac_status=$? 3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3123 test $ac_status = 0; }; then : 3124 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3125# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3126# in a Makefile. We should not override ac_cv_exeext if it was cached, 3127# so that the user can short-circuit this test for compilers unknown to 3128# Autoconf. 3129for ac_file in $ac_files '' 3130do 3131 test -f "$ac_file" || continue 3132 case $ac_file in 3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3134 ;; 3135 [ab].out ) 3136 # We found the default executable, but exeext='' is most 3137 # certainly right. 3138 break;; 3139 *.* ) 3140 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3141 then :; else 3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3143 fi 3144 # We set ac_cv_exeext here because the later test for it is not 3145 # safe: cross compilers may not add the suffix if given an `-o' 3146 # argument, so we may need to know it at that point already. 3147 # Even if this section looks crufty: it has the advantage of 3148 # actually working. 3149 break;; 3150 * ) 3151 break;; 3152 esac 3153done 3154test "$ac_cv_exeext" = no && ac_cv_exeext= 3155 3156else 3157 ac_file='' 3158fi 3159if test -z "$ac_file"; then : 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3161$as_echo "no" >&6; } 3162$as_echo "$as_me: failed program was:" >&5 3163sed 's/^/| /' conftest.$ac_ext >&5 3164 3165{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3167as_fn_error 77 "C compiler cannot create executables 3168See \`config.log' for more details" "$LINENO" 5; } 3169else 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3171$as_echo "yes" >&6; } 3172fi 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3174$as_echo_n "checking for C compiler default output file name... " >&6; } 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3176$as_echo "$ac_file" >&6; } 3177ac_exeext=$ac_cv_exeext 3178 3179rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3180ac_clean_files=$ac_clean_files_save 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3182$as_echo_n "checking for suffix of executables... " >&6; } 3183if { { ac_try="$ac_link" 3184case "(($ac_try" in 3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3186 *) ac_try_echo=$ac_try;; 3187esac 3188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3189$as_echo "$ac_try_echo"; } >&5 3190 (eval "$ac_link") 2>&5 3191 ac_status=$? 3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3193 test $ac_status = 0; }; then : 3194 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3195# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3196# work properly (i.e., refer to `conftest.exe'), while it won't with 3197# `rm'. 3198for ac_file in conftest.exe conftest conftest.*; do 3199 test -f "$ac_file" || continue 3200 case $ac_file in 3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3203 break;; 3204 * ) break;; 3205 esac 3206done 3207else 3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3210as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3211See \`config.log' for more details" "$LINENO" 5; } 3212fi 3213rm -f conftest conftest$ac_cv_exeext 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3215$as_echo "$ac_cv_exeext" >&6; } 3216 3217rm -f conftest.$ac_ext 3218EXEEXT=$ac_cv_exeext 3219ac_exeext=$EXEEXT 3220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3221/* end confdefs.h. */ 3222#include <stdio.h> 3223int 3224main () 3225{ 3226FILE *f = fopen ("conftest.out", "w"); 3227 return ferror (f) || fclose (f) != 0; 3228 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233ac_clean_files="$ac_clean_files conftest.out" 3234# Check that the compiler produces executables we can run. If not, either 3235# the compiler is broken, or we cross compile. 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3237$as_echo_n "checking whether we are cross compiling... " >&6; } 3238if test "$cross_compiling" != yes; then 3239 { { ac_try="$ac_link" 3240case "(($ac_try" in 3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3242 *) ac_try_echo=$ac_try;; 3243esac 3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3245$as_echo "$ac_try_echo"; } >&5 3246 (eval "$ac_link") 2>&5 3247 ac_status=$? 3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3249 test $ac_status = 0; } 3250 if { ac_try='./conftest$ac_cv_exeext' 3251 { { case "(($ac_try" in 3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3253 *) ac_try_echo=$ac_try;; 3254esac 3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3256$as_echo "$ac_try_echo"; } >&5 3257 (eval "$ac_try") 2>&5 3258 ac_status=$? 3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3260 test $ac_status = 0; }; }; then 3261 cross_compiling=no 3262 else 3263 if test "$cross_compiling" = maybe; then 3264 cross_compiling=yes 3265 else 3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3268as_fn_error $? "cannot run C compiled programs. 3269If you meant to cross compile, use \`--host'. 3270See \`config.log' for more details" "$LINENO" 5; } 3271 fi 3272 fi 3273fi 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3275$as_echo "$cross_compiling" >&6; } 3276 3277rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3278ac_clean_files=$ac_clean_files_save 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3280$as_echo_n "checking for suffix of object files... " >&6; } 3281if ${ac_cv_objext+:} false; then : 3282 $as_echo_n "(cached) " >&6 3283else 3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3285/* end confdefs.h. */ 3286 3287int 3288main () 3289{ 3290 3291 ; 3292 return 0; 3293} 3294_ACEOF 3295rm -f conftest.o conftest.obj 3296if { { ac_try="$ac_compile" 3297case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3302$as_echo "$ac_try_echo"; } >&5 3303 (eval "$ac_compile") 2>&5 3304 ac_status=$? 3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3306 test $ac_status = 0; }; then : 3307 for ac_file in conftest.o conftest.obj conftest.*; do 3308 test -f "$ac_file" || continue; 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3312 break;; 3313 esac 3314done 3315else 3316 $as_echo "$as_me: failed program was:" >&5 3317sed 's/^/| /' conftest.$ac_ext >&5 3318 3319{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3321as_fn_error $? "cannot compute suffix of object files: cannot compile 3322See \`config.log' for more details" "$LINENO" 5; } 3323fi 3324rm -f conftest.$ac_cv_objext conftest.$ac_ext 3325fi 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3327$as_echo "$ac_cv_objext" >&6; } 3328OBJEXT=$ac_cv_objext 3329ac_objext=$OBJEXT 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3332if ${ac_cv_c_compiler_gnu+:} false; then : 3333 $as_echo_n "(cached) " >&6 3334else 3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336/* end confdefs.h. */ 3337 3338int 3339main () 3340{ 3341#ifndef __GNUC__ 3342 choke me 3343#endif 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349if ac_fn_c_try_compile "$LINENO"; then : 3350 ac_compiler_gnu=yes 3351else 3352 ac_compiler_gnu=no 3353fi 3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3355ac_cv_c_compiler_gnu=$ac_compiler_gnu 3356 3357fi 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3359$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3360if test $ac_compiler_gnu = yes; then 3361 GCC=yes 3362else 3363 GCC= 3364fi 3365ac_test_CFLAGS=${CFLAGS+set} 3366ac_save_CFLAGS=$CFLAGS 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3368$as_echo_n "checking whether $CC accepts -g... " >&6; } 3369if ${ac_cv_prog_cc_g+:} false; then : 3370 $as_echo_n "(cached) " >&6 3371else 3372 ac_save_c_werror_flag=$ac_c_werror_flag 3373 ac_c_werror_flag=yes 3374 ac_cv_prog_cc_g=no 3375 CFLAGS="-g" 3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3377/* end confdefs.h. */ 3378 3379int 3380main () 3381{ 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387if ac_fn_c_try_compile "$LINENO"; then : 3388 ac_cv_prog_cc_g=yes 3389else 3390 CFLAGS="" 3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3392/* end confdefs.h. */ 3393 3394int 3395main () 3396{ 3397 3398 ; 3399 return 0; 3400} 3401_ACEOF 3402if ac_fn_c_try_compile "$LINENO"; then : 3403 3404else 3405 ac_c_werror_flag=$ac_save_c_werror_flag 3406 CFLAGS="-g" 3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3408/* end confdefs.h. */ 3409 3410int 3411main () 3412{ 3413 3414 ; 3415 return 0; 3416} 3417_ACEOF 3418if ac_fn_c_try_compile "$LINENO"; then : 3419 ac_cv_prog_cc_g=yes 3420fi 3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3422fi 3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3424fi 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3426 ac_c_werror_flag=$ac_save_c_werror_flag 3427fi 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3429$as_echo "$ac_cv_prog_cc_g" >&6; } 3430if test "$ac_test_CFLAGS" = set; then 3431 CFLAGS=$ac_save_CFLAGS 3432elif test $ac_cv_prog_cc_g = yes; then 3433 if test "$GCC" = yes; then 3434 CFLAGS="-g -O2" 3435 else 3436 CFLAGS="-g" 3437 fi 3438else 3439 if test "$GCC" = yes; then 3440 CFLAGS="-O2" 3441 else 3442 CFLAGS= 3443 fi 3444fi 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3447if ${ac_cv_prog_cc_c89+:} false; then : 3448 $as_echo_n "(cached) " >&6 3449else 3450 ac_cv_prog_cc_c89=no 3451ac_save_CC=$CC 3452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3453/* end confdefs.h. */ 3454#include <stdarg.h> 3455#include <stdio.h> 3456#include <sys/types.h> 3457#include <sys/stat.h> 3458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3459struct buf { int x; }; 3460FILE * (*rcsopen) (struct buf *, struct stat *, int); 3461static char *e (p, i) 3462 char **p; 3463 int i; 3464{ 3465 return p[i]; 3466} 3467static char *f (char * (*g) (char **, int), char **p, ...) 3468{ 3469 char *s; 3470 va_list v; 3471 va_start (v,p); 3472 s = g (p, va_arg (v,int)); 3473 va_end (v); 3474 return s; 3475} 3476 3477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3478 function prototypes and stuff, but not '\xHH' hex character constants. 3479 These don't provoke an error unfortunately, instead are silently treated 3480 as 'x'. The following induces an error, until -std is added to get 3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3482 array size at least. It's necessary to write '\x00'==0 to get something 3483 that's true only with -std. */ 3484int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3485 3486/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3487 inside strings and character constants. */ 3488#define FOO(x) 'x' 3489int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3490 3491int test (int i, double x); 3492struct s1 {int (*f) (int a);}; 3493struct s2 {int (*f) (double a);}; 3494int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3495int argc; 3496char **argv; 3497int 3498main () 3499{ 3500return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3501 ; 3502 return 0; 3503} 3504_ACEOF 3505for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3507do 3508 CC="$ac_save_CC $ac_arg" 3509 if ac_fn_c_try_compile "$LINENO"; then : 3510 ac_cv_prog_cc_c89=$ac_arg 3511fi 3512rm -f core conftest.err conftest.$ac_objext 3513 test "x$ac_cv_prog_cc_c89" != "xno" && break 3514done 3515rm -f conftest.$ac_ext 3516CC=$ac_save_CC 3517 3518fi 3519# AC_CACHE_VAL 3520case "x$ac_cv_prog_cc_c89" in 3521 x) 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3523$as_echo "none needed" >&6; } ;; 3524 xno) 3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3526$as_echo "unsupported" >&6; } ;; 3527 *) 3528 CC="$CC $ac_cv_prog_cc_c89" 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3530$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3531esac 3532if test "x$ac_cv_prog_cc_c89" != xno; then : 3533 3534fi 3535 3536ac_ext=c 3537ac_cpp='$CPP $CPPFLAGS' 3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3540ac_compiler_gnu=$ac_cv_c_compiler_gnu 3541 3542ac_ext=c 3543ac_cpp='$CPP $CPPFLAGS' 3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3546ac_compiler_gnu=$ac_cv_c_compiler_gnu 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3548$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3549if ${am_cv_prog_cc_c_o+:} false; then : 3550 $as_echo_n "(cached) " >&6 3551else 3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554 3555int 3556main () 3557{ 3558 3559 ; 3560 return 0; 3561} 3562_ACEOF 3563 # Make sure it works both with $CC and with simple cc. 3564 # Following AC_PROG_CC_C_O, we do the test twice because some 3565 # compilers refuse to overwrite an existing .o file with -o, 3566 # though they will create one. 3567 am_cv_prog_cc_c_o=yes 3568 for am_i in 1 2; do 3569 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3570 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3571 ac_status=$? 3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3573 (exit $ac_status); } \ 3574 && test -f conftest2.$ac_objext; then 3575 : OK 3576 else 3577 am_cv_prog_cc_c_o=no 3578 break 3579 fi 3580 done 3581 rm -f core conftest* 3582 unset am_i 3583fi 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3585$as_echo "$am_cv_prog_cc_c_o" >&6; } 3586if test "$am_cv_prog_cc_c_o" != yes; then 3587 # Losing compiler, so override with the script. 3588 # FIXME: It is wrong to rewrite CC. 3589 # But if we don't then we get into trouble of one sort or another. 3590 # A longer-term fix would be to have automake use am__CC in this case, 3591 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3592 CC="$am_aux_dir/compile $CC" 3593fi 3594ac_ext=c 3595ac_cpp='$CPP $CPPFLAGS' 3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3598ac_compiler_gnu=$ac_cv_c_compiler_gnu 3599 3600 3601depcc="$CC" am_compiler_list= 3602 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3604$as_echo_n "checking dependency style of $depcc... " >&6; } 3605if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3606 $as_echo_n "(cached) " >&6 3607else 3608 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3609 # We make a subdir and do the tests there. Otherwise we can end up 3610 # making bogus files that we don't know about and never remove. For 3611 # instance it was reported that on HP-UX the gcc test will end up 3612 # making a dummy file named 'D' -- because '-MD' means "put the output 3613 # in D". 3614 rm -rf conftest.dir 3615 mkdir conftest.dir 3616 # Copy depcomp to subdir because otherwise we won't find it if we're 3617 # using a relative directory. 3618 cp "$am_depcomp" conftest.dir 3619 cd conftest.dir 3620 # We will build objects and dependencies in a subdirectory because 3621 # it helps to detect inapplicable dependency modes. For instance 3622 # both Tru64's cc and ICC support -MD to output dependencies as a 3623 # side effect of compilation, but ICC will put the dependencies in 3624 # the current directory while Tru64 will put them in the object 3625 # directory. 3626 mkdir sub 3627 3628 am_cv_CC_dependencies_compiler_type=none 3629 if test "$am_compiler_list" = ""; then 3630 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3631 fi 3632 am__universal=false 3633 case " $depcc " in #( 3634 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3635 esac 3636 3637 for depmode in $am_compiler_list; do 3638 # Setup a source with many dependencies, because some compilers 3639 # like to wrap large dependency lists on column 80 (with \), and 3640 # we should not choose a depcomp mode which is confused by this. 3641 # 3642 # We need to recreate these files for each test, as the compiler may 3643 # overwrite some of them when testing with obscure command lines. 3644 # This happens at least with the AIX C compiler. 3645 : > sub/conftest.c 3646 for i in 1 2 3 4 5 6; do 3647 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3648 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3649 # Solaris 10 /bin/sh. 3650 echo '/* dummy */' > sub/conftst$i.h 3651 done 3652 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3653 3654 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3655 # mode. It turns out that the SunPro C++ compiler does not properly 3656 # handle '-M -o', and we need to detect this. Also, some Intel 3657 # versions had trouble with output in subdirs. 3658 am__obj=sub/conftest.${OBJEXT-o} 3659 am__minus_obj="-o $am__obj" 3660 case $depmode in 3661 gcc) 3662 # This depmode causes a compiler race in universal mode. 3663 test "$am__universal" = false || continue 3664 ;; 3665 nosideeffect) 3666 # After this tag, mechanisms are not by side-effect, so they'll 3667 # only be used when explicitly requested. 3668 if test "x$enable_dependency_tracking" = xyes; then 3669 continue 3670 else 3671 break 3672 fi 3673 ;; 3674 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3675 # This compiler won't grok '-c -o', but also, the minuso test has 3676 # not run yet. These depmodes are late enough in the game, and 3677 # so weak that their functioning should not be impacted. 3678 am__obj=conftest.${OBJEXT-o} 3679 am__minus_obj= 3680 ;; 3681 none) break ;; 3682 esac 3683 if depmode=$depmode \ 3684 source=sub/conftest.c object=$am__obj \ 3685 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3686 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3687 >/dev/null 2>conftest.err && 3688 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3689 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3690 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3691 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3692 # icc doesn't choke on unknown options, it will just issue warnings 3693 # or remarks (even with -Werror). So we grep stderr for any message 3694 # that says an option was ignored or not supported. 3695 # When given -MP, icc 7.0 and 7.1 complain thusly: 3696 # icc: Command line warning: ignoring option '-M'; no argument required 3697 # The diagnosis changed in icc 8.0: 3698 # icc: Command line remark: option '-MP' not supported 3699 if (grep 'ignoring option' conftest.err || 3700 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3701 am_cv_CC_dependencies_compiler_type=$depmode 3702 break 3703 fi 3704 fi 3705 done 3706 3707 cd .. 3708 rm -rf conftest.dir 3709else 3710 am_cv_CC_dependencies_compiler_type=none 3711fi 3712 3713fi 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3715$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3716CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3717 3718 if 3719 test "x$enable_dependency_tracking" != xno \ 3720 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3721 am__fastdepCC_TRUE= 3722 am__fastdepCC_FALSE='#' 3723else 3724 am__fastdepCC_TRUE='#' 3725 am__fastdepCC_FALSE= 3726fi 3727 3728 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3730$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3731if ${ac_cv_prog_cc_c99+:} false; then : 3732 $as_echo_n "(cached) " >&6 3733else 3734 ac_cv_prog_cc_c99=no 3735ac_save_CC=$CC 3736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737/* end confdefs.h. */ 3738#include <stdarg.h> 3739#include <stdbool.h> 3740#include <stdlib.h> 3741#include <wchar.h> 3742#include <stdio.h> 3743 3744// Check varargs macros. These examples are taken from C99 6.10.3.5. 3745#define debug(...) fprintf (stderr, __VA_ARGS__) 3746#define showlist(...) puts (#__VA_ARGS__) 3747#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3748static void 3749test_varargs_macros (void) 3750{ 3751 int x = 1234; 3752 int y = 5678; 3753 debug ("Flag"); 3754 debug ("X = %d\n", x); 3755 showlist (The first, second, and third items.); 3756 report (x>y, "x is %d but y is %d", x, y); 3757} 3758 3759// Check long long types. 3760#define BIG64 18446744073709551615ull 3761#define BIG32 4294967295ul 3762#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3763#if !BIG_OK 3764 your preprocessor is broken; 3765#endif 3766#if BIG_OK 3767#else 3768 your preprocessor is broken; 3769#endif 3770static long long int bignum = -9223372036854775807LL; 3771static unsigned long long int ubignum = BIG64; 3772 3773struct incomplete_array 3774{ 3775 int datasize; 3776 double data[]; 3777}; 3778 3779struct named_init { 3780 int number; 3781 const wchar_t *name; 3782 double average; 3783}; 3784 3785typedef const char *ccp; 3786 3787static inline int 3788test_restrict (ccp restrict text) 3789{ 3790 // See if C++-style comments work. 3791 // Iterate through items via the restricted pointer. 3792 // Also check for declarations in for loops. 3793 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3794 continue; 3795 return 0; 3796} 3797 3798// Check varargs and va_copy. 3799static void 3800test_varargs (const char *format, ...) 3801{ 3802 va_list args; 3803 va_start (args, format); 3804 va_list args_copy; 3805 va_copy (args_copy, args); 3806 3807 const char *str; 3808 int number; 3809 float fnumber; 3810 3811 while (*format) 3812 { 3813 switch (*format++) 3814 { 3815 case 's': // string 3816 str = va_arg (args_copy, const char *); 3817 break; 3818 case 'd': // int 3819 number = va_arg (args_copy, int); 3820 break; 3821 case 'f': // float 3822 fnumber = va_arg (args_copy, double); 3823 break; 3824 default: 3825 break; 3826 } 3827 } 3828 va_end (args_copy); 3829 va_end (args); 3830} 3831 3832int 3833main () 3834{ 3835 3836 // Check bool. 3837 _Bool success = false; 3838 3839 // Check restrict. 3840 if (test_restrict ("String literal") == 0) 3841 success = true; 3842 char *restrict newvar = "Another string"; 3843 3844 // Check varargs. 3845 test_varargs ("s, d' f .", "string", 65, 34.234); 3846 test_varargs_macros (); 3847 3848 // Check flexible array members. 3849 struct incomplete_array *ia = 3850 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3851 ia->datasize = 10; 3852 for (int i = 0; i < ia->datasize; ++i) 3853 ia->data[i] = i * 1.234; 3854 3855 // Check named initializers. 3856 struct named_init ni = { 3857 .number = 34, 3858 .name = L"Test wide string", 3859 .average = 543.34343, 3860 }; 3861 3862 ni.number = 58; 3863 3864 int dynamic_array[ni.number]; 3865 dynamic_array[ni.number - 1] = 543; 3866 3867 // work around unused variable warnings 3868 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3869 || dynamic_array[ni.number - 1] != 543); 3870 3871 ; 3872 return 0; 3873} 3874_ACEOF 3875for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3876do 3877 CC="$ac_save_CC $ac_arg" 3878 if ac_fn_c_try_compile "$LINENO"; then : 3879 ac_cv_prog_cc_c99=$ac_arg 3880fi 3881rm -f core conftest.err conftest.$ac_objext 3882 test "x$ac_cv_prog_cc_c99" != "xno" && break 3883done 3884rm -f conftest.$ac_ext 3885CC=$ac_save_CC 3886 3887fi 3888# AC_CACHE_VAL 3889case "x$ac_cv_prog_cc_c99" in 3890 x) 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3892$as_echo "none needed" >&6; } ;; 3893 xno) 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3895$as_echo "unsupported" >&6; } ;; 3896 *) 3897 CC="$CC $ac_cv_prog_cc_c99" 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3899$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3900esac 3901if test "x$ac_cv_prog_cc_c99" != xno; then : 3902 3903fi 3904 3905 3906 3907ac_ext=c 3908ac_cpp='$CPP $CPPFLAGS' 3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3911ac_compiler_gnu=$ac_cv_c_compiler_gnu 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3913$as_echo_n "checking how to run the C preprocessor... " >&6; } 3914# On Suns, sometimes $CPP names a directory. 3915if test -n "$CPP" && test -d "$CPP"; then 3916 CPP= 3917fi 3918if test -z "$CPP"; then 3919 if ${ac_cv_prog_CPP+:} false; then : 3920 $as_echo_n "(cached) " >&6 3921else 3922 # Double quotes because CPP needs to be expanded 3923 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3924 do 3925 ac_preproc_ok=false 3926for ac_c_preproc_warn_flag in '' yes 3927do 3928 # Use a header file that comes with gcc, so configuring glibc 3929 # with a fresh cross-compiler works. 3930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3931 # <limits.h> exists even on freestanding compilers. 3932 # On the NeXT, cc -E runs the code through the compiler's parser, 3933 # not just through cpp. "Syntax error" is here to catch this case. 3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3935/* end confdefs.h. */ 3936#ifdef __STDC__ 3937# include <limits.h> 3938#else 3939# include <assert.h> 3940#endif 3941 Syntax error 3942_ACEOF 3943if ac_fn_c_try_cpp "$LINENO"; then : 3944 3945else 3946 # Broken: fails on valid input. 3947continue 3948fi 3949rm -f conftest.err conftest.i conftest.$ac_ext 3950 3951 # OK, works on sane cases. Now check whether nonexistent headers 3952 # can be detected and how. 3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3954/* end confdefs.h. */ 3955#include <ac_nonexistent.h> 3956_ACEOF 3957if ac_fn_c_try_cpp "$LINENO"; then : 3958 # Broken: success on invalid input. 3959continue 3960else 3961 # Passes both tests. 3962ac_preproc_ok=: 3963break 3964fi 3965rm -f conftest.err conftest.i conftest.$ac_ext 3966 3967done 3968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3969rm -f conftest.i conftest.err conftest.$ac_ext 3970if $ac_preproc_ok; then : 3971 break 3972fi 3973 3974 done 3975 ac_cv_prog_CPP=$CPP 3976 3977fi 3978 CPP=$ac_cv_prog_CPP 3979else 3980 ac_cv_prog_CPP=$CPP 3981fi 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3983$as_echo "$CPP" >&6; } 3984ac_preproc_ok=false 3985for ac_c_preproc_warn_flag in '' yes 3986do 3987 # Use a header file that comes with gcc, so configuring glibc 3988 # with a fresh cross-compiler works. 3989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3990 # <limits.h> exists even on freestanding compilers. 3991 # On the NeXT, cc -E runs the code through the compiler's parser, 3992 # not just through cpp. "Syntax error" is here to catch this case. 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995#ifdef __STDC__ 3996# include <limits.h> 3997#else 3998# include <assert.h> 3999#endif 4000 Syntax error 4001_ACEOF 4002if ac_fn_c_try_cpp "$LINENO"; then : 4003 4004else 4005 # Broken: fails on valid input. 4006continue 4007fi 4008rm -f conftest.err conftest.i conftest.$ac_ext 4009 4010 # OK, works on sane cases. Now check whether nonexistent headers 4011 # can be detected and how. 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014#include <ac_nonexistent.h> 4015_ACEOF 4016if ac_fn_c_try_cpp "$LINENO"; then : 4017 # Broken: success on invalid input. 4018continue 4019else 4020 # Passes both tests. 4021ac_preproc_ok=: 4022break 4023fi 4024rm -f conftest.err conftest.i conftest.$ac_ext 4025 4026done 4027# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4028rm -f conftest.i conftest.err conftest.$ac_ext 4029if $ac_preproc_ok; then : 4030 4031else 4032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4034as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4035See \`config.log' for more details" "$LINENO" 5; } 4036fi 4037 4038ac_ext=c 4039ac_cpp='$CPP $CPPFLAGS' 4040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4042ac_compiler_gnu=$ac_cv_c_compiler_gnu 4043 4044 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4046$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4047if ${ac_cv_path_GREP+:} false; then : 4048 $as_echo_n "(cached) " >&6 4049else 4050 if test -z "$GREP"; then 4051 ac_path_GREP_found=false 4052 # Loop through the user's path and test for each of PROGNAME-LIST 4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4054for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4055do 4056 IFS=$as_save_IFS 4057 test -z "$as_dir" && as_dir=. 4058 for ac_prog in grep ggrep; do 4059 for ac_exec_ext in '' $ac_executable_extensions; do 4060 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4061 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4062# Check for GNU ac_path_GREP and select it if it is found. 4063 # Check for GNU $ac_path_GREP 4064case `"$ac_path_GREP" --version 2>&1` in 4065*GNU*) 4066 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4067*) 4068 ac_count=0 4069 $as_echo_n 0123456789 >"conftest.in" 4070 while : 4071 do 4072 cat "conftest.in" "conftest.in" >"conftest.tmp" 4073 mv "conftest.tmp" "conftest.in" 4074 cp "conftest.in" "conftest.nl" 4075 $as_echo 'GREP' >> "conftest.nl" 4076 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4078 as_fn_arith $ac_count + 1 && ac_count=$as_val 4079 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4080 # Best one so far, save it but keep looking for a better one 4081 ac_cv_path_GREP="$ac_path_GREP" 4082 ac_path_GREP_max=$ac_count 4083 fi 4084 # 10*(2^10) chars as input seems more than enough 4085 test $ac_count -gt 10 && break 4086 done 4087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4088esac 4089 4090 $ac_path_GREP_found && break 3 4091 done 4092 done 4093 done 4094IFS=$as_save_IFS 4095 if test -z "$ac_cv_path_GREP"; then 4096 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4097 fi 4098else 4099 ac_cv_path_GREP=$GREP 4100fi 4101 4102fi 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4104$as_echo "$ac_cv_path_GREP" >&6; } 4105 GREP="$ac_cv_path_GREP" 4106 4107 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4109$as_echo_n "checking for egrep... " >&6; } 4110if ${ac_cv_path_EGREP+:} false; then : 4111 $as_echo_n "(cached) " >&6 4112else 4113 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4114 then ac_cv_path_EGREP="$GREP -E" 4115 else 4116 if test -z "$EGREP"; then 4117 ac_path_EGREP_found=false 4118 # Loop through the user's path and test for each of PROGNAME-LIST 4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4120for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4121do 4122 IFS=$as_save_IFS 4123 test -z "$as_dir" && as_dir=. 4124 for ac_prog in egrep; do 4125 for ac_exec_ext in '' $ac_executable_extensions; do 4126 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4127 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4128# Check for GNU ac_path_EGREP and select it if it is found. 4129 # Check for GNU $ac_path_EGREP 4130case `"$ac_path_EGREP" --version 2>&1` in 4131*GNU*) 4132 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4133*) 4134 ac_count=0 4135 $as_echo_n 0123456789 >"conftest.in" 4136 while : 4137 do 4138 cat "conftest.in" "conftest.in" >"conftest.tmp" 4139 mv "conftest.tmp" "conftest.in" 4140 cp "conftest.in" "conftest.nl" 4141 $as_echo 'EGREP' >> "conftest.nl" 4142 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4144 as_fn_arith $ac_count + 1 && ac_count=$as_val 4145 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4146 # Best one so far, save it but keep looking for a better one 4147 ac_cv_path_EGREP="$ac_path_EGREP" 4148 ac_path_EGREP_max=$ac_count 4149 fi 4150 # 10*(2^10) chars as input seems more than enough 4151 test $ac_count -gt 10 && break 4152 done 4153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4154esac 4155 4156 $ac_path_EGREP_found && break 3 4157 done 4158 done 4159 done 4160IFS=$as_save_IFS 4161 if test -z "$ac_cv_path_EGREP"; then 4162 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4163 fi 4164else 4165 ac_cv_path_EGREP=$EGREP 4166fi 4167 4168 fi 4169fi 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4171$as_echo "$ac_cv_path_EGREP" >&6; } 4172 EGREP="$ac_cv_path_EGREP" 4173 4174 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4176$as_echo_n "checking for ANSI C header files... " >&6; } 4177if ${ac_cv_header_stdc+:} false; then : 4178 $as_echo_n "(cached) " >&6 4179else 4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182#include <stdlib.h> 4183#include <stdarg.h> 4184#include <string.h> 4185#include <float.h> 4186 4187int 4188main () 4189{ 4190 4191 ; 4192 return 0; 4193} 4194_ACEOF 4195if ac_fn_c_try_compile "$LINENO"; then : 4196 ac_cv_header_stdc=yes 4197else 4198 ac_cv_header_stdc=no 4199fi 4200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4201 4202if test $ac_cv_header_stdc = yes; then 4203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4205/* end confdefs.h. */ 4206#include <string.h> 4207 4208_ACEOF 4209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4210 $EGREP "memchr" >/dev/null 2>&1; then : 4211 4212else 4213 ac_cv_header_stdc=no 4214fi 4215rm -f conftest* 4216 4217fi 4218 4219if test $ac_cv_header_stdc = yes; then 4220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222/* end confdefs.h. */ 4223#include <stdlib.h> 4224 4225_ACEOF 4226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4227 $EGREP "free" >/dev/null 2>&1; then : 4228 4229else 4230 ac_cv_header_stdc=no 4231fi 4232rm -f conftest* 4233 4234fi 4235 4236if test $ac_cv_header_stdc = yes; then 4237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4238 if test "$cross_compiling" = yes; then : 4239 : 4240else 4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4242/* end confdefs.h. */ 4243#include <ctype.h> 4244#include <stdlib.h> 4245#if ((' ' & 0x0FF) == 0x020) 4246# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4247# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4248#else 4249# define ISLOWER(c) \ 4250 (('a' <= (c) && (c) <= 'i') \ 4251 || ('j' <= (c) && (c) <= 'r') \ 4252 || ('s' <= (c) && (c) <= 'z')) 4253# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4254#endif 4255 4256#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4257int 4258main () 4259{ 4260 int i; 4261 for (i = 0; i < 256; i++) 4262 if (XOR (islower (i), ISLOWER (i)) 4263 || toupper (i) != TOUPPER (i)) 4264 return 2; 4265 return 0; 4266} 4267_ACEOF 4268if ac_fn_c_try_run "$LINENO"; then : 4269 4270else 4271 ac_cv_header_stdc=no 4272fi 4273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4274 conftest.$ac_objext conftest.beam conftest.$ac_ext 4275fi 4276 4277fi 4278fi 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4280$as_echo "$ac_cv_header_stdc" >&6; } 4281if test $ac_cv_header_stdc = yes; then 4282 4283$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4284 4285fi 4286 4287# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4288for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4289 inttypes.h stdint.h unistd.h 4290do : 4291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4292ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4293" 4294if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4295 cat >>confdefs.h <<_ACEOF 4296#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4297_ACEOF 4298 4299fi 4300 4301done 4302 4303 4304 4305 4306 4307 4308ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4309if test "x$ac_cv_have_decl___clang__" = xyes; then : 4310 CLANGCC="yes" 4311else 4312 CLANGCC="no" 4313fi 4314 4315ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4316if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4317 INTELCC="yes" 4318else 4319 INTELCC="no" 4320fi 4321 4322ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4323if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4324 SUNCC="yes" 4325else 4326 SUNCC="no" 4327fi 4328 4329 4330 4331 4332if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4333 if test -n "$ac_tool_prefix"; then 4334 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4335set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4337$as_echo_n "checking for $ac_word... " >&6; } 4338if ${ac_cv_path_PKG_CONFIG+:} false; then : 4339 $as_echo_n "(cached) " >&6 4340else 4341 case $PKG_CONFIG in 4342 [\\/]* | ?:[\\/]*) 4343 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4344 ;; 4345 *) 4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4347for as_dir in $PATH 4348do 4349 IFS=$as_save_IFS 4350 test -z "$as_dir" && as_dir=. 4351 for ac_exec_ext in '' $ac_executable_extensions; do 4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4353 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4355 break 2 4356 fi 4357done 4358 done 4359IFS=$as_save_IFS 4360 4361 ;; 4362esac 4363fi 4364PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4365if test -n "$PKG_CONFIG"; then 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4367$as_echo "$PKG_CONFIG" >&6; } 4368else 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4370$as_echo "no" >&6; } 4371fi 4372 4373 4374fi 4375if test -z "$ac_cv_path_PKG_CONFIG"; then 4376 ac_pt_PKG_CONFIG=$PKG_CONFIG 4377 # Extract the first word of "pkg-config", so it can be a program name with args. 4378set dummy pkg-config; ac_word=$2 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4380$as_echo_n "checking for $ac_word... " >&6; } 4381if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4382 $as_echo_n "(cached) " >&6 4383else 4384 case $ac_pt_PKG_CONFIG in 4385 [\\/]* | ?:[\\/]*) 4386 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4387 ;; 4388 *) 4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4390for as_dir in $PATH 4391do 4392 IFS=$as_save_IFS 4393 test -z "$as_dir" && as_dir=. 4394 for ac_exec_ext in '' $ac_executable_extensions; do 4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4396 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4398 break 2 4399 fi 4400done 4401 done 4402IFS=$as_save_IFS 4403 4404 ;; 4405esac 4406fi 4407ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4408if test -n "$ac_pt_PKG_CONFIG"; then 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4410$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4411else 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4413$as_echo "no" >&6; } 4414fi 4415 4416 if test "x$ac_pt_PKG_CONFIG" = x; then 4417 PKG_CONFIG="" 4418 else 4419 case $cross_compiling:$ac_tool_warned in 4420yes:) 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4423ac_tool_warned=yes ;; 4424esac 4425 PKG_CONFIG=$ac_pt_PKG_CONFIG 4426 fi 4427else 4428 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4429fi 4430 4431fi 4432if test -n "$PKG_CONFIG"; then 4433 _pkg_min_version=0.9.0 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4435$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4436 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4438$as_echo "yes" >&6; } 4439 else 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4441$as_echo "no" >&6; } 4442 PKG_CONFIG="" 4443 fi 4444 4445fi 4446# Make sure we can run config.sub. 4447$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4448 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4449 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4451$as_echo_n "checking build system type... " >&6; } 4452if ${ac_cv_build+:} false; then : 4453 $as_echo_n "(cached) " >&6 4454else 4455 ac_build_alias=$build_alias 4456test "x$ac_build_alias" = x && 4457 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4458test "x$ac_build_alias" = x && 4459 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4460ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4462 4463fi 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4465$as_echo "$ac_cv_build" >&6; } 4466case $ac_cv_build in 4467*-*-*) ;; 4468*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4469esac 4470build=$ac_cv_build 4471ac_save_IFS=$IFS; IFS='-' 4472set x $ac_cv_build 4473shift 4474build_cpu=$1 4475build_vendor=$2 4476shift; shift 4477# Remember, the first character of IFS is used to create $*, 4478# except with old shells: 4479build_os=$* 4480IFS=$ac_save_IFS 4481case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4482 4483 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4485$as_echo_n "checking host system type... " >&6; } 4486if ${ac_cv_host+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 if test "x$host_alias" = x; then 4490 ac_cv_host=$ac_cv_build 4491else 4492 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4494fi 4495 4496fi 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4498$as_echo "$ac_cv_host" >&6; } 4499case $ac_cv_host in 4500*-*-*) ;; 4501*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4502esac 4503host=$ac_cv_host 4504ac_save_IFS=$IFS; IFS='-' 4505set x $ac_cv_host 4506shift 4507host_cpu=$1 4508host_vendor=$2 4509shift; shift 4510# Remember, the first character of IFS is used to create $*, 4511# except with old shells: 4512host_os=$* 4513IFS=$ac_save_IFS 4514case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4515 4516 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4518$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4519if ${ac_cv_path_SED+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521else 4522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4523 for ac_i in 1 2 3 4 5 6 7; do 4524 ac_script="$ac_script$as_nl$ac_script" 4525 done 4526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4527 { ac_script=; unset ac_script;} 4528 if test -z "$SED"; then 4529 ac_path_SED_found=false 4530 # Loop through the user's path and test for each of PROGNAME-LIST 4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4532for as_dir in $PATH 4533do 4534 IFS=$as_save_IFS 4535 test -z "$as_dir" && as_dir=. 4536 for ac_prog in sed gsed; do 4537 for ac_exec_ext in '' $ac_executable_extensions; do 4538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4539 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4540# Check for GNU ac_path_SED and select it if it is found. 4541 # Check for GNU $ac_path_SED 4542case `"$ac_path_SED" --version 2>&1` in 4543*GNU*) 4544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4545*) 4546 ac_count=0 4547 $as_echo_n 0123456789 >"conftest.in" 4548 while : 4549 do 4550 cat "conftest.in" "conftest.in" >"conftest.tmp" 4551 mv "conftest.tmp" "conftest.in" 4552 cp "conftest.in" "conftest.nl" 4553 $as_echo '' >> "conftest.nl" 4554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4556 as_fn_arith $ac_count + 1 && ac_count=$as_val 4557 if test $ac_count -gt ${ac_path_SED_max-0}; then 4558 # Best one so far, save it but keep looking for a better one 4559 ac_cv_path_SED="$ac_path_SED" 4560 ac_path_SED_max=$ac_count 4561 fi 4562 # 10*(2^10) chars as input seems more than enough 4563 test $ac_count -gt 10 && break 4564 done 4565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4566esac 4567 4568 $ac_path_SED_found && break 3 4569 done 4570 done 4571 done 4572IFS=$as_save_IFS 4573 if test -z "$ac_cv_path_SED"; then 4574 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4575 fi 4576else 4577 ac_cv_path_SED=$SED 4578fi 4579 4580fi 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4582$as_echo "$ac_cv_path_SED" >&6; } 4583 SED="$ac_cv_path_SED" 4584 rm -f conftest.sed 4585 4586 4587 4588 4589 4590 4591# Check whether --enable-selective-werror was given. 4592if test "${enable_selective_werror+set}" = set; then : 4593 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4594else 4595 SELECTIVE_WERROR=yes 4596fi 4597 4598 4599 4600 4601 4602# -v is too short to test reliably with XORG_TESTSET_CFLAG 4603if test "x$SUNCC" = "xyes"; then 4604 BASE_CFLAGS="-v" 4605else 4606 BASE_CFLAGS="" 4607fi 4608 4609# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623xorg_testset_save_CFLAGS="$CFLAGS" 4624 4625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4630 $as_echo_n "(cached) " >&6 4631else 4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4633/* end confdefs.h. */ 4634int i; 4635_ACEOF 4636if ac_fn_c_try_compile "$LINENO"; then : 4637 xorg_cv_cc_flag_unknown_warning_option=yes 4638else 4639 xorg_cv_cc_flag_unknown_warning_option=no 4640fi 4641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4642fi 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4646 CFLAGS="$xorg_testset_save_CFLAGS" 4647fi 4648 4649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4652 fi 4653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660/* end confdefs.h. */ 4661int i; 4662_ACEOF 4663if ac_fn_c_try_compile "$LINENO"; then : 4664 xorg_cv_cc_flag_unused_command_line_argument=yes 4665else 4666 xorg_cv_cc_flag_unused_command_line_argument=no 4667fi 4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4669fi 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4673 CFLAGS="$xorg_testset_save_CFLAGS" 4674fi 4675 4676found="no" 4677 4678 if test $found = "no" ; then 4679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4681 fi 4682 4683 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4685 fi 4686 4687 CFLAGS="$CFLAGS -Wall" 4688 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4690$as_echo_n "checking if $CC supports -Wall... " >&6; } 4691 cacheid=xorg_cv_cc_flag__Wall 4692 if eval \${$cacheid+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4696/* end confdefs.h. */ 4697int i; 4698int 4699main () 4700{ 4701 4702 ; 4703 return 0; 4704} 4705_ACEOF 4706if ac_fn_c_try_link "$LINENO"; then : 4707 eval $cacheid=yes 4708else 4709 eval $cacheid=no 4710fi 4711rm -f core conftest.err conftest.$ac_objext \ 4712 conftest$ac_exeext conftest.$ac_ext 4713fi 4714 4715 4716 CFLAGS="$xorg_testset_save_CFLAGS" 4717 4718 eval supported=\$$cacheid 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4720$as_echo "$supported" >&6; } 4721 if test "$supported" = "yes" ; then 4722 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4723 found="yes" 4724 fi 4725 fi 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741xorg_testset_save_CFLAGS="$CFLAGS" 4742 4743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4751/* end confdefs.h. */ 4752int i; 4753_ACEOF 4754if ac_fn_c_try_compile "$LINENO"; then : 4755 xorg_cv_cc_flag_unknown_warning_option=yes 4756else 4757 xorg_cv_cc_flag_unknown_warning_option=no 4758fi 4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4760fi 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4764 CFLAGS="$xorg_testset_save_CFLAGS" 4765fi 4766 4767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4770 fi 4771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4778/* end confdefs.h. */ 4779int i; 4780_ACEOF 4781if ac_fn_c_try_compile "$LINENO"; then : 4782 xorg_cv_cc_flag_unused_command_line_argument=yes 4783else 4784 xorg_cv_cc_flag_unused_command_line_argument=no 4785fi 4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4787fi 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4791 CFLAGS="$xorg_testset_save_CFLAGS" 4792fi 4793 4794found="no" 4795 4796 if test $found = "no" ; then 4797 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4799 fi 4800 4801 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4803 fi 4804 4805 CFLAGS="$CFLAGS -Wpointer-arith" 4806 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4808$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4809 cacheid=xorg_cv_cc_flag__Wpointer_arith 4810 if eval \${$cacheid+:} false; then : 4811 $as_echo_n "(cached) " >&6 4812else 4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4814/* end confdefs.h. */ 4815int i; 4816int 4817main () 4818{ 4819 4820 ; 4821 return 0; 4822} 4823_ACEOF 4824if ac_fn_c_try_link "$LINENO"; then : 4825 eval $cacheid=yes 4826else 4827 eval $cacheid=no 4828fi 4829rm -f core conftest.err conftest.$ac_objext \ 4830 conftest$ac_exeext conftest.$ac_ext 4831fi 4832 4833 4834 CFLAGS="$xorg_testset_save_CFLAGS" 4835 4836 eval supported=\$$cacheid 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4838$as_echo "$supported" >&6; } 4839 if test "$supported" = "yes" ; then 4840 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4841 found="yes" 4842 fi 4843 fi 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859xorg_testset_save_CFLAGS="$CFLAGS" 4860 4861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867else 4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4869/* end confdefs.h. */ 4870int i; 4871_ACEOF 4872if ac_fn_c_try_compile "$LINENO"; then : 4873 xorg_cv_cc_flag_unknown_warning_option=yes 4874else 4875 xorg_cv_cc_flag_unknown_warning_option=no 4876fi 4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4878fi 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4882 CFLAGS="$xorg_testset_save_CFLAGS" 4883fi 4884 4885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4888 fi 4889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4893 $as_echo_n "(cached) " >&6 4894else 4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896/* end confdefs.h. */ 4897int i; 4898_ACEOF 4899if ac_fn_c_try_compile "$LINENO"; then : 4900 xorg_cv_cc_flag_unused_command_line_argument=yes 4901else 4902 xorg_cv_cc_flag_unused_command_line_argument=no 4903fi 4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4905fi 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4909 CFLAGS="$xorg_testset_save_CFLAGS" 4910fi 4911 4912found="no" 4913 4914 if test $found = "no" ; then 4915 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4917 fi 4918 4919 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4921 fi 4922 4923 CFLAGS="$CFLAGS -Wmissing-declarations" 4924 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4926$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4927 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4928 if eval \${$cacheid+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4932/* end confdefs.h. */ 4933int i; 4934int 4935main () 4936{ 4937 4938 ; 4939 return 0; 4940} 4941_ACEOF 4942if ac_fn_c_try_link "$LINENO"; then : 4943 eval $cacheid=yes 4944else 4945 eval $cacheid=no 4946fi 4947rm -f core conftest.err conftest.$ac_objext \ 4948 conftest$ac_exeext conftest.$ac_ext 4949fi 4950 4951 4952 CFLAGS="$xorg_testset_save_CFLAGS" 4953 4954 eval supported=\$$cacheid 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4956$as_echo "$supported" >&6; } 4957 if test "$supported" = "yes" ; then 4958 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4959 found="yes" 4960 fi 4961 fi 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977xorg_testset_save_CFLAGS="$CFLAGS" 4978 4979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4987/* end confdefs.h. */ 4988int i; 4989_ACEOF 4990if ac_fn_c_try_compile "$LINENO"; then : 4991 xorg_cv_cc_flag_unknown_warning_option=yes 4992else 4993 xorg_cv_cc_flag_unknown_warning_option=no 4994fi 4995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4996fi 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5000 CFLAGS="$xorg_testset_save_CFLAGS" 5001fi 5002 5003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5006 fi 5007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012else 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014/* end confdefs.h. */ 5015int i; 5016_ACEOF 5017if ac_fn_c_try_compile "$LINENO"; then : 5018 xorg_cv_cc_flag_unused_command_line_argument=yes 5019else 5020 xorg_cv_cc_flag_unused_command_line_argument=no 5021fi 5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5023fi 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5027 CFLAGS="$xorg_testset_save_CFLAGS" 5028fi 5029 5030found="no" 5031 5032 if test $found = "no" ; then 5033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5035 fi 5036 5037 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5039 fi 5040 5041 CFLAGS="$CFLAGS -Wformat=2" 5042 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5044$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5045 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5046 if eval \${$cacheid+:} false; then : 5047 $as_echo_n "(cached) " >&6 5048else 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051int i; 5052int 5053main () 5054{ 5055 5056 ; 5057 return 0; 5058} 5059_ACEOF 5060if ac_fn_c_try_link "$LINENO"; then : 5061 eval $cacheid=yes 5062else 5063 eval $cacheid=no 5064fi 5065rm -f core conftest.err conftest.$ac_objext \ 5066 conftest$ac_exeext conftest.$ac_ext 5067fi 5068 5069 5070 CFLAGS="$xorg_testset_save_CFLAGS" 5071 5072 eval supported=\$$cacheid 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5074$as_echo "$supported" >&6; } 5075 if test "$supported" = "yes" ; then 5076 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5077 found="yes" 5078 fi 5079 fi 5080 5081 if test $found = "no" ; then 5082 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5084 fi 5085 5086 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5088 fi 5089 5090 CFLAGS="$CFLAGS -Wformat" 5091 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5093$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5094 cacheid=xorg_cv_cc_flag__Wformat 5095 if eval \${$cacheid+:} false; then : 5096 $as_echo_n "(cached) " >&6 5097else 5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5099/* end confdefs.h. */ 5100int i; 5101int 5102main () 5103{ 5104 5105 ; 5106 return 0; 5107} 5108_ACEOF 5109if ac_fn_c_try_link "$LINENO"; then : 5110 eval $cacheid=yes 5111else 5112 eval $cacheid=no 5113fi 5114rm -f core conftest.err conftest.$ac_objext \ 5115 conftest$ac_exeext conftest.$ac_ext 5116fi 5117 5118 5119 CFLAGS="$xorg_testset_save_CFLAGS" 5120 5121 eval supported=\$$cacheid 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5123$as_echo "$supported" >&6; } 5124 if test "$supported" = "yes" ; then 5125 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5126 found="yes" 5127 fi 5128 fi 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146xorg_testset_save_CFLAGS="$CFLAGS" 5147 5148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5153 $as_echo_n "(cached) " >&6 5154else 5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5156/* end confdefs.h. */ 5157int i; 5158_ACEOF 5159if ac_fn_c_try_compile "$LINENO"; then : 5160 xorg_cv_cc_flag_unknown_warning_option=yes 5161else 5162 xorg_cv_cc_flag_unknown_warning_option=no 5163fi 5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5165fi 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5169 CFLAGS="$xorg_testset_save_CFLAGS" 5170fi 5171 5172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5175 fi 5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185_ACEOF 5186if ac_fn_c_try_compile "$LINENO"; then : 5187 xorg_cv_cc_flag_unused_command_line_argument=yes 5188else 5189 xorg_cv_cc_flag_unused_command_line_argument=no 5190fi 5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5192fi 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5196 CFLAGS="$xorg_testset_save_CFLAGS" 5197fi 5198 5199found="no" 5200 5201 if test $found = "no" ; then 5202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5204 fi 5205 5206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5208 fi 5209 5210 CFLAGS="$CFLAGS -Wstrict-prototypes" 5211 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5213$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5214 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5215 if eval \${$cacheid+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5219/* end confdefs.h. */ 5220int i; 5221int 5222main () 5223{ 5224 5225 ; 5226 return 0; 5227} 5228_ACEOF 5229if ac_fn_c_try_link "$LINENO"; then : 5230 eval $cacheid=yes 5231else 5232 eval $cacheid=no 5233fi 5234rm -f core conftest.err conftest.$ac_objext \ 5235 conftest$ac_exeext conftest.$ac_ext 5236fi 5237 5238 5239 CFLAGS="$xorg_testset_save_CFLAGS" 5240 5241 eval supported=\$$cacheid 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5243$as_echo "$supported" >&6; } 5244 if test "$supported" = "yes" ; then 5245 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5246 found="yes" 5247 fi 5248 fi 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264xorg_testset_save_CFLAGS="$CFLAGS" 5265 5266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5271 $as_echo_n "(cached) " >&6 5272else 5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5274/* end confdefs.h. */ 5275int i; 5276_ACEOF 5277if ac_fn_c_try_compile "$LINENO"; then : 5278 xorg_cv_cc_flag_unknown_warning_option=yes 5279else 5280 xorg_cv_cc_flag_unknown_warning_option=no 5281fi 5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5283fi 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5287 CFLAGS="$xorg_testset_save_CFLAGS" 5288fi 5289 5290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5293 fi 5294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301/* end confdefs.h. */ 5302int i; 5303_ACEOF 5304if ac_fn_c_try_compile "$LINENO"; then : 5305 xorg_cv_cc_flag_unused_command_line_argument=yes 5306else 5307 xorg_cv_cc_flag_unused_command_line_argument=no 5308fi 5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5310fi 5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5314 CFLAGS="$xorg_testset_save_CFLAGS" 5315fi 5316 5317found="no" 5318 5319 if test $found = "no" ; then 5320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5322 fi 5323 5324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5326 fi 5327 5328 CFLAGS="$CFLAGS -Wmissing-prototypes" 5329 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5331$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5332 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5333 if eval \${$cacheid+:} false; then : 5334 $as_echo_n "(cached) " >&6 5335else 5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5337/* end confdefs.h. */ 5338int i; 5339int 5340main () 5341{ 5342 5343 ; 5344 return 0; 5345} 5346_ACEOF 5347if ac_fn_c_try_link "$LINENO"; then : 5348 eval $cacheid=yes 5349else 5350 eval $cacheid=no 5351fi 5352rm -f core conftest.err conftest.$ac_objext \ 5353 conftest$ac_exeext conftest.$ac_ext 5354fi 5355 5356 5357 CFLAGS="$xorg_testset_save_CFLAGS" 5358 5359 eval supported=\$$cacheid 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5361$as_echo "$supported" >&6; } 5362 if test "$supported" = "yes" ; then 5363 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5364 found="yes" 5365 fi 5366 fi 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382xorg_testset_save_CFLAGS="$CFLAGS" 5383 5384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390else 5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5392/* end confdefs.h. */ 5393int i; 5394_ACEOF 5395if ac_fn_c_try_compile "$LINENO"; then : 5396 xorg_cv_cc_flag_unknown_warning_option=yes 5397else 5398 xorg_cv_cc_flag_unknown_warning_option=no 5399fi 5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5401fi 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5405 CFLAGS="$xorg_testset_save_CFLAGS" 5406fi 5407 5408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5411 fi 5412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420int i; 5421_ACEOF 5422if ac_fn_c_try_compile "$LINENO"; then : 5423 xorg_cv_cc_flag_unused_command_line_argument=yes 5424else 5425 xorg_cv_cc_flag_unused_command_line_argument=no 5426fi 5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5428fi 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5432 CFLAGS="$xorg_testset_save_CFLAGS" 5433fi 5434 5435found="no" 5436 5437 if test $found = "no" ; then 5438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 fi 5441 5442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5444 fi 5445 5446 CFLAGS="$CFLAGS -Wnested-externs" 5447 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5449$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5450 cacheid=xorg_cv_cc_flag__Wnested_externs 5451 if eval \${$cacheid+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455/* end confdefs.h. */ 5456int i; 5457int 5458main () 5459{ 5460 5461 ; 5462 return 0; 5463} 5464_ACEOF 5465if ac_fn_c_try_link "$LINENO"; then : 5466 eval $cacheid=yes 5467else 5468 eval $cacheid=no 5469fi 5470rm -f core conftest.err conftest.$ac_objext \ 5471 conftest$ac_exeext conftest.$ac_ext 5472fi 5473 5474 5475 CFLAGS="$xorg_testset_save_CFLAGS" 5476 5477 eval supported=\$$cacheid 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5479$as_echo "$supported" >&6; } 5480 if test "$supported" = "yes" ; then 5481 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5482 found="yes" 5483 fi 5484 fi 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500xorg_testset_save_CFLAGS="$CFLAGS" 5501 5502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5507 $as_echo_n "(cached) " >&6 5508else 5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5510/* end confdefs.h. */ 5511int i; 5512_ACEOF 5513if ac_fn_c_try_compile "$LINENO"; then : 5514 xorg_cv_cc_flag_unknown_warning_option=yes 5515else 5516 xorg_cv_cc_flag_unknown_warning_option=no 5517fi 5518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5519fi 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5523 CFLAGS="$xorg_testset_save_CFLAGS" 5524fi 5525 5526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5529 fi 5530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537/* end confdefs.h. */ 5538int i; 5539_ACEOF 5540if ac_fn_c_try_compile "$LINENO"; then : 5541 xorg_cv_cc_flag_unused_command_line_argument=yes 5542else 5543 xorg_cv_cc_flag_unused_command_line_argument=no 5544fi 5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5550 CFLAGS="$xorg_testset_save_CFLAGS" 5551fi 5552 5553found="no" 5554 5555 if test $found = "no" ; then 5556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 fi 5559 5560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5562 fi 5563 5564 CFLAGS="$CFLAGS -Wbad-function-cast" 5565 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5567$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5568 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5569 if eval \${$cacheid+:} false; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5573/* end confdefs.h. */ 5574int i; 5575int 5576main () 5577{ 5578 5579 ; 5580 return 0; 5581} 5582_ACEOF 5583if ac_fn_c_try_link "$LINENO"; then : 5584 eval $cacheid=yes 5585else 5586 eval $cacheid=no 5587fi 5588rm -f core conftest.err conftest.$ac_objext \ 5589 conftest$ac_exeext conftest.$ac_ext 5590fi 5591 5592 5593 CFLAGS="$xorg_testset_save_CFLAGS" 5594 5595 eval supported=\$$cacheid 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5597$as_echo "$supported" >&6; } 5598 if test "$supported" = "yes" ; then 5599 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5600 found="yes" 5601 fi 5602 fi 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618xorg_testset_save_CFLAGS="$CFLAGS" 5619 5620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5625 $as_echo_n "(cached) " >&6 5626else 5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5628/* end confdefs.h. */ 5629int i; 5630_ACEOF 5631if ac_fn_c_try_compile "$LINENO"; then : 5632 xorg_cv_cc_flag_unknown_warning_option=yes 5633else 5634 xorg_cv_cc_flag_unknown_warning_option=no 5635fi 5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5637fi 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5641 CFLAGS="$xorg_testset_save_CFLAGS" 5642fi 5643 5644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5647 fi 5648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5652 $as_echo_n "(cached) " >&6 5653else 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656int i; 5657_ACEOF 5658if ac_fn_c_try_compile "$LINENO"; then : 5659 xorg_cv_cc_flag_unused_command_line_argument=yes 5660else 5661 xorg_cv_cc_flag_unused_command_line_argument=no 5662fi 5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5664fi 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5668 CFLAGS="$xorg_testset_save_CFLAGS" 5669fi 5670 5671found="no" 5672 5673 if test $found = "no" ; then 5674 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5676 fi 5677 5678 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5680 fi 5681 5682 CFLAGS="$CFLAGS -Wold-style-definition" 5683 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5685$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5686 cacheid=xorg_cv_cc_flag__Wold_style_definition 5687 if eval \${$cacheid+:} false; then : 5688 $as_echo_n "(cached) " >&6 5689else 5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5691/* end confdefs.h. */ 5692int i; 5693int 5694main () 5695{ 5696 5697 ; 5698 return 0; 5699} 5700_ACEOF 5701if ac_fn_c_try_link "$LINENO"; then : 5702 eval $cacheid=yes 5703else 5704 eval $cacheid=no 5705fi 5706rm -f core conftest.err conftest.$ac_objext \ 5707 conftest$ac_exeext conftest.$ac_ext 5708fi 5709 5710 5711 CFLAGS="$xorg_testset_save_CFLAGS" 5712 5713 eval supported=\$$cacheid 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5715$as_echo "$supported" >&6; } 5716 if test "$supported" = "yes" ; then 5717 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5718 found="yes" 5719 fi 5720 fi 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736xorg_testset_save_CFLAGS="$CFLAGS" 5737 5738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5743 $as_echo_n "(cached) " >&6 5744else 5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747int i; 5748_ACEOF 5749if ac_fn_c_try_compile "$LINENO"; then : 5750 xorg_cv_cc_flag_unknown_warning_option=yes 5751else 5752 xorg_cv_cc_flag_unknown_warning_option=no 5753fi 5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5755fi 5756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5759 CFLAGS="$xorg_testset_save_CFLAGS" 5760fi 5761 5762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5765 fi 5766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5770 $as_echo_n "(cached) " >&6 5771else 5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5773/* end confdefs.h. */ 5774int i; 5775_ACEOF 5776if ac_fn_c_try_compile "$LINENO"; then : 5777 xorg_cv_cc_flag_unused_command_line_argument=yes 5778else 5779 xorg_cv_cc_flag_unused_command_line_argument=no 5780fi 5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5782fi 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5786 CFLAGS="$xorg_testset_save_CFLAGS" 5787fi 5788 5789found="no" 5790 5791 if test $found = "no" ; then 5792 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5794 fi 5795 5796 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5798 fi 5799 5800 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5801 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5803$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5804 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5805 if eval \${$cacheid+:} false; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809/* end confdefs.h. */ 5810int i; 5811int 5812main () 5813{ 5814 5815 ; 5816 return 0; 5817} 5818_ACEOF 5819if ac_fn_c_try_link "$LINENO"; then : 5820 eval $cacheid=yes 5821else 5822 eval $cacheid=no 5823fi 5824rm -f core conftest.err conftest.$ac_objext \ 5825 conftest$ac_exeext conftest.$ac_ext 5826fi 5827 5828 5829 CFLAGS="$xorg_testset_save_CFLAGS" 5830 5831 eval supported=\$$cacheid 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5833$as_echo "$supported" >&6; } 5834 if test "$supported" = "yes" ; then 5835 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5836 found="yes" 5837 fi 5838 fi 5839 5840 5841 5842 5843 5844# This chunk adds additional warnings that could catch undesired effects. 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858xorg_testset_save_CFLAGS="$CFLAGS" 5859 5860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869int i; 5870_ACEOF 5871if ac_fn_c_try_compile "$LINENO"; then : 5872 xorg_cv_cc_flag_unknown_warning_option=yes 5873else 5874 xorg_cv_cc_flag_unknown_warning_option=no 5875fi 5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5877fi 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5881 CFLAGS="$xorg_testset_save_CFLAGS" 5882fi 5883 5884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5887 fi 5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895/* end confdefs.h. */ 5896int i; 5897_ACEOF 5898if ac_fn_c_try_compile "$LINENO"; then : 5899 xorg_cv_cc_flag_unused_command_line_argument=yes 5900else 5901 xorg_cv_cc_flag_unused_command_line_argument=no 5902fi 5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5904fi 5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5908 CFLAGS="$xorg_testset_save_CFLAGS" 5909fi 5910 5911found="no" 5912 5913 if test $found = "no" ; then 5914 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5916 fi 5917 5918 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5920 fi 5921 5922 CFLAGS="$CFLAGS -Wunused" 5923 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5925$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5926 cacheid=xorg_cv_cc_flag__Wunused 5927 if eval \${$cacheid+:} false; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5931/* end confdefs.h. */ 5932int i; 5933int 5934main () 5935{ 5936 5937 ; 5938 return 0; 5939} 5940_ACEOF 5941if ac_fn_c_try_link "$LINENO"; then : 5942 eval $cacheid=yes 5943else 5944 eval $cacheid=no 5945fi 5946rm -f core conftest.err conftest.$ac_objext \ 5947 conftest$ac_exeext conftest.$ac_ext 5948fi 5949 5950 5951 CFLAGS="$xorg_testset_save_CFLAGS" 5952 5953 eval supported=\$$cacheid 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5955$as_echo "$supported" >&6; } 5956 if test "$supported" = "yes" ; then 5957 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5958 found="yes" 5959 fi 5960 fi 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976xorg_testset_save_CFLAGS="$CFLAGS" 5977 5978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5983 $as_echo_n "(cached) " >&6 5984else 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986/* end confdefs.h. */ 5987int i; 5988_ACEOF 5989if ac_fn_c_try_compile "$LINENO"; then : 5990 xorg_cv_cc_flag_unknown_warning_option=yes 5991else 5992 xorg_cv_cc_flag_unknown_warning_option=no 5993fi 5994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5995fi 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5999 CFLAGS="$xorg_testset_save_CFLAGS" 6000fi 6001 6002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6005 fi 6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6010 $as_echo_n "(cached) " >&6 6011else 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013/* end confdefs.h. */ 6014int i; 6015_ACEOF 6016if ac_fn_c_try_compile "$LINENO"; then : 6017 xorg_cv_cc_flag_unused_command_line_argument=yes 6018else 6019 xorg_cv_cc_flag_unused_command_line_argument=no 6020fi 6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6022fi 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6026 CFLAGS="$xorg_testset_save_CFLAGS" 6027fi 6028 6029found="no" 6030 6031 if test $found = "no" ; then 6032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6034 fi 6035 6036 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6038 fi 6039 6040 CFLAGS="$CFLAGS -Wuninitialized" 6041 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6043$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6044 cacheid=xorg_cv_cc_flag__Wuninitialized 6045 if eval \${$cacheid+:} false; then : 6046 $as_echo_n "(cached) " >&6 6047else 6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6049/* end confdefs.h. */ 6050int i; 6051int 6052main () 6053{ 6054 6055 ; 6056 return 0; 6057} 6058_ACEOF 6059if ac_fn_c_try_link "$LINENO"; then : 6060 eval $cacheid=yes 6061else 6062 eval $cacheid=no 6063fi 6064rm -f core conftest.err conftest.$ac_objext \ 6065 conftest$ac_exeext conftest.$ac_ext 6066fi 6067 6068 6069 CFLAGS="$xorg_testset_save_CFLAGS" 6070 6071 eval supported=\$$cacheid 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6073$as_echo "$supported" >&6; } 6074 if test "$supported" = "yes" ; then 6075 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6076 found="yes" 6077 fi 6078 fi 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094xorg_testset_save_CFLAGS="$CFLAGS" 6095 6096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6101 $as_echo_n "(cached) " >&6 6102else 6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6104/* end confdefs.h. */ 6105int i; 6106_ACEOF 6107if ac_fn_c_try_compile "$LINENO"; then : 6108 xorg_cv_cc_flag_unknown_warning_option=yes 6109else 6110 xorg_cv_cc_flag_unknown_warning_option=no 6111fi 6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6113fi 6114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6117 CFLAGS="$xorg_testset_save_CFLAGS" 6118fi 6119 6120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6123 fi 6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131/* end confdefs.h. */ 6132int i; 6133_ACEOF 6134if ac_fn_c_try_compile "$LINENO"; then : 6135 xorg_cv_cc_flag_unused_command_line_argument=yes 6136else 6137 xorg_cv_cc_flag_unused_command_line_argument=no 6138fi 6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6140fi 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6144 CFLAGS="$xorg_testset_save_CFLAGS" 6145fi 6146 6147found="no" 6148 6149 if test $found = "no" ; then 6150 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6152 fi 6153 6154 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6156 fi 6157 6158 CFLAGS="$CFLAGS -Wshadow" 6159 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6161$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6162 cacheid=xorg_cv_cc_flag__Wshadow 6163 if eval \${$cacheid+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6167/* end confdefs.h. */ 6168int i; 6169int 6170main () 6171{ 6172 6173 ; 6174 return 0; 6175} 6176_ACEOF 6177if ac_fn_c_try_link "$LINENO"; then : 6178 eval $cacheid=yes 6179else 6180 eval $cacheid=no 6181fi 6182rm -f core conftest.err conftest.$ac_objext \ 6183 conftest$ac_exeext conftest.$ac_ext 6184fi 6185 6186 6187 CFLAGS="$xorg_testset_save_CFLAGS" 6188 6189 eval supported=\$$cacheid 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6191$as_echo "$supported" >&6; } 6192 if test "$supported" = "yes" ; then 6193 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6194 found="yes" 6195 fi 6196 fi 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212xorg_testset_save_CFLAGS="$CFLAGS" 6213 6214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6219 $as_echo_n "(cached) " >&6 6220else 6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6222/* end confdefs.h. */ 6223int i; 6224_ACEOF 6225if ac_fn_c_try_compile "$LINENO"; then : 6226 xorg_cv_cc_flag_unknown_warning_option=yes 6227else 6228 xorg_cv_cc_flag_unknown_warning_option=no 6229fi 6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6231fi 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6235 CFLAGS="$xorg_testset_save_CFLAGS" 6236fi 6237 6238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6241 fi 6242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6249/* end confdefs.h. */ 6250int i; 6251_ACEOF 6252if ac_fn_c_try_compile "$LINENO"; then : 6253 xorg_cv_cc_flag_unused_command_line_argument=yes 6254else 6255 xorg_cv_cc_flag_unused_command_line_argument=no 6256fi 6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6258fi 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6262 CFLAGS="$xorg_testset_save_CFLAGS" 6263fi 6264 6265found="no" 6266 6267 if test $found = "no" ; then 6268 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6270 fi 6271 6272 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6274 fi 6275 6276 CFLAGS="$CFLAGS -Wcast-qual" 6277 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6279$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6280 cacheid=xorg_cv_cc_flag__Wcast_qual 6281 if eval \${$cacheid+:} false; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6285/* end confdefs.h. */ 6286int i; 6287int 6288main () 6289{ 6290 6291 ; 6292 return 0; 6293} 6294_ACEOF 6295if ac_fn_c_try_link "$LINENO"; then : 6296 eval $cacheid=yes 6297else 6298 eval $cacheid=no 6299fi 6300rm -f core conftest.err conftest.$ac_objext \ 6301 conftest$ac_exeext conftest.$ac_ext 6302fi 6303 6304 6305 CFLAGS="$xorg_testset_save_CFLAGS" 6306 6307 eval supported=\$$cacheid 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6309$as_echo "$supported" >&6; } 6310 if test "$supported" = "yes" ; then 6311 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6312 found="yes" 6313 fi 6314 fi 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330xorg_testset_save_CFLAGS="$CFLAGS" 6331 6332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340/* end confdefs.h. */ 6341int i; 6342_ACEOF 6343if ac_fn_c_try_compile "$LINENO"; then : 6344 xorg_cv_cc_flag_unknown_warning_option=yes 6345else 6346 xorg_cv_cc_flag_unknown_warning_option=no 6347fi 6348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6353 CFLAGS="$xorg_testset_save_CFLAGS" 6354fi 6355 6356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6359 fi 6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6367/* end confdefs.h. */ 6368int i; 6369_ACEOF 6370if ac_fn_c_try_compile "$LINENO"; then : 6371 xorg_cv_cc_flag_unused_command_line_argument=yes 6372else 6373 xorg_cv_cc_flag_unused_command_line_argument=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6376fi 6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6380 CFLAGS="$xorg_testset_save_CFLAGS" 6381fi 6382 6383found="no" 6384 6385 if test $found = "no" ; then 6386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6388 fi 6389 6390 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6392 fi 6393 6394 CFLAGS="$CFLAGS -Wmissing-noreturn" 6395 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6397$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6398 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6399 if eval \${$cacheid+:} false; then : 6400 $as_echo_n "(cached) " >&6 6401else 6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403/* end confdefs.h. */ 6404int i; 6405int 6406main () 6407{ 6408 6409 ; 6410 return 0; 6411} 6412_ACEOF 6413if ac_fn_c_try_link "$LINENO"; then : 6414 eval $cacheid=yes 6415else 6416 eval $cacheid=no 6417fi 6418rm -f core conftest.err conftest.$ac_objext \ 6419 conftest$ac_exeext conftest.$ac_ext 6420fi 6421 6422 6423 CFLAGS="$xorg_testset_save_CFLAGS" 6424 6425 eval supported=\$$cacheid 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6427$as_echo "$supported" >&6; } 6428 if test "$supported" = "yes" ; then 6429 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6430 found="yes" 6431 fi 6432 fi 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448xorg_testset_save_CFLAGS="$CFLAGS" 6449 6450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6455 $as_echo_n "(cached) " >&6 6456else 6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6458/* end confdefs.h. */ 6459int i; 6460_ACEOF 6461if ac_fn_c_try_compile "$LINENO"; then : 6462 xorg_cv_cc_flag_unknown_warning_option=yes 6463else 6464 xorg_cv_cc_flag_unknown_warning_option=no 6465fi 6466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6467fi 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6471 CFLAGS="$xorg_testset_save_CFLAGS" 6472fi 6473 6474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6477 fi 6478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6482 $as_echo_n "(cached) " >&6 6483else 6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6485/* end confdefs.h. */ 6486int i; 6487_ACEOF 6488if ac_fn_c_try_compile "$LINENO"; then : 6489 xorg_cv_cc_flag_unused_command_line_argument=yes 6490else 6491 xorg_cv_cc_flag_unused_command_line_argument=no 6492fi 6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6494fi 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6498 CFLAGS="$xorg_testset_save_CFLAGS" 6499fi 6500 6501found="no" 6502 6503 if test $found = "no" ; then 6504 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6506 fi 6507 6508 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6510 fi 6511 6512 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6513 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6515$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6516 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6517 if eval \${$cacheid+:} false; then : 6518 $as_echo_n "(cached) " >&6 6519else 6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6521/* end confdefs.h. */ 6522int i; 6523int 6524main () 6525{ 6526 6527 ; 6528 return 0; 6529} 6530_ACEOF 6531if ac_fn_c_try_link "$LINENO"; then : 6532 eval $cacheid=yes 6533else 6534 eval $cacheid=no 6535fi 6536rm -f core conftest.err conftest.$ac_objext \ 6537 conftest$ac_exeext conftest.$ac_ext 6538fi 6539 6540 6541 CFLAGS="$xorg_testset_save_CFLAGS" 6542 6543 eval supported=\$$cacheid 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6545$as_echo "$supported" >&6; } 6546 if test "$supported" = "yes" ; then 6547 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6548 found="yes" 6549 fi 6550 fi 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566xorg_testset_save_CFLAGS="$CFLAGS" 6567 6568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6573 $as_echo_n "(cached) " >&6 6574else 6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6576/* end confdefs.h. */ 6577int i; 6578_ACEOF 6579if ac_fn_c_try_compile "$LINENO"; then : 6580 xorg_cv_cc_flag_unknown_warning_option=yes 6581else 6582 xorg_cv_cc_flag_unknown_warning_option=no 6583fi 6584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6585fi 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6589 CFLAGS="$xorg_testset_save_CFLAGS" 6590fi 6591 6592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6595 fi 6596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6603/* end confdefs.h. */ 6604int i; 6605_ACEOF 6606if ac_fn_c_try_compile "$LINENO"; then : 6607 xorg_cv_cc_flag_unused_command_line_argument=yes 6608else 6609 xorg_cv_cc_flag_unused_command_line_argument=no 6610fi 6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6612fi 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6616 CFLAGS="$xorg_testset_save_CFLAGS" 6617fi 6618 6619found="no" 6620 6621 if test $found = "no" ; then 6622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6624 fi 6625 6626 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6628 fi 6629 6630 CFLAGS="$CFLAGS -Wredundant-decls" 6631 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6633$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6634 cacheid=xorg_cv_cc_flag__Wredundant_decls 6635 if eval \${$cacheid+:} false; then : 6636 $as_echo_n "(cached) " >&6 6637else 6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6639/* end confdefs.h. */ 6640int i; 6641int 6642main () 6643{ 6644 6645 ; 6646 return 0; 6647} 6648_ACEOF 6649if ac_fn_c_try_link "$LINENO"; then : 6650 eval $cacheid=yes 6651else 6652 eval $cacheid=no 6653fi 6654rm -f core conftest.err conftest.$ac_objext \ 6655 conftest$ac_exeext conftest.$ac_ext 6656fi 6657 6658 6659 CFLAGS="$xorg_testset_save_CFLAGS" 6660 6661 eval supported=\$$cacheid 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6663$as_echo "$supported" >&6; } 6664 if test "$supported" = "yes" ; then 6665 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6666 found="yes" 6667 fi 6668 fi 6669 6670 6671 6672# These are currently disabled because they are noisy. They will be enabled 6673# in the future once the codebase is sufficiently modernized to silence 6674# them. For now, I don't want them to drown out the other warnings. 6675# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6676# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6677# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6678 6679# Turn some warnings into errors, so we don't accidently get successful builds 6680# when there are problems that should be fixed. 6681 6682if test "x$SELECTIVE_WERROR" = "xyes" ; then 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696xorg_testset_save_CFLAGS="$CFLAGS" 6697 6698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6701$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6702if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6706/* end confdefs.h. */ 6707int i; 6708_ACEOF 6709if ac_fn_c_try_compile "$LINENO"; then : 6710 xorg_cv_cc_flag_unknown_warning_option=yes 6711else 6712 xorg_cv_cc_flag_unknown_warning_option=no 6713fi 6714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6715fi 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6717$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6719 CFLAGS="$xorg_testset_save_CFLAGS" 6720fi 6721 6722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6725 fi 6726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6728$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6729if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6730 $as_echo_n "(cached) " >&6 6731else 6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6733/* end confdefs.h. */ 6734int i; 6735_ACEOF 6736if ac_fn_c_try_compile "$LINENO"; then : 6737 xorg_cv_cc_flag_unused_command_line_argument=yes 6738else 6739 xorg_cv_cc_flag_unused_command_line_argument=no 6740fi 6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6742fi 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6744$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6746 CFLAGS="$xorg_testset_save_CFLAGS" 6747fi 6748 6749found="no" 6750 6751 if test $found = "no" ; then 6752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6754 fi 6755 6756 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6758 fi 6759 6760 CFLAGS="$CFLAGS -Werror=implicit" 6761 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6763$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6764 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6765 if eval \${$cacheid+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769/* end confdefs.h. */ 6770int i; 6771int 6772main () 6773{ 6774 6775 ; 6776 return 0; 6777} 6778_ACEOF 6779if ac_fn_c_try_link "$LINENO"; then : 6780 eval $cacheid=yes 6781else 6782 eval $cacheid=no 6783fi 6784rm -f core conftest.err conftest.$ac_objext \ 6785 conftest$ac_exeext conftest.$ac_ext 6786fi 6787 6788 6789 CFLAGS="$xorg_testset_save_CFLAGS" 6790 6791 eval supported=\$$cacheid 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6793$as_echo "$supported" >&6; } 6794 if test "$supported" = "yes" ; then 6795 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6796 found="yes" 6797 fi 6798 fi 6799 6800 if test $found = "no" ; then 6801 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6803 fi 6804 6805 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6807 fi 6808 6809 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6810 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6812$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6813 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6814 if eval \${$cacheid+:} false; then : 6815 $as_echo_n "(cached) " >&6 6816else 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819int i; 6820int 6821main () 6822{ 6823 6824 ; 6825 return 0; 6826} 6827_ACEOF 6828if ac_fn_c_try_link "$LINENO"; then : 6829 eval $cacheid=yes 6830else 6831 eval $cacheid=no 6832fi 6833rm -f core conftest.err conftest.$ac_objext \ 6834 conftest$ac_exeext conftest.$ac_ext 6835fi 6836 6837 6838 CFLAGS="$xorg_testset_save_CFLAGS" 6839 6840 eval supported=\$$cacheid 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6842$as_echo "$supported" >&6; } 6843 if test "$supported" = "yes" ; then 6844 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6845 found="yes" 6846 fi 6847 fi 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863xorg_testset_save_CFLAGS="$CFLAGS" 6864 6865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871else 6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6873/* end confdefs.h. */ 6874int i; 6875_ACEOF 6876if ac_fn_c_try_compile "$LINENO"; then : 6877 xorg_cv_cc_flag_unknown_warning_option=yes 6878else 6879 xorg_cv_cc_flag_unknown_warning_option=no 6880fi 6881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6882fi 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6886 CFLAGS="$xorg_testset_save_CFLAGS" 6887fi 6888 6889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6892 fi 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6900/* end confdefs.h. */ 6901int i; 6902_ACEOF 6903if ac_fn_c_try_compile "$LINENO"; then : 6904 xorg_cv_cc_flag_unused_command_line_argument=yes 6905else 6906 xorg_cv_cc_flag_unused_command_line_argument=no 6907fi 6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6909fi 6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6913 CFLAGS="$xorg_testset_save_CFLAGS" 6914fi 6915 6916found="no" 6917 6918 if test $found = "no" ; then 6919 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6921 fi 6922 6923 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6925 fi 6926 6927 CFLAGS="$CFLAGS -Werror=nonnull" 6928 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6930$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6931 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6932 if eval \${$cacheid+:} false; then : 6933 $as_echo_n "(cached) " >&6 6934else 6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6936/* end confdefs.h. */ 6937int i; 6938int 6939main () 6940{ 6941 6942 ; 6943 return 0; 6944} 6945_ACEOF 6946if ac_fn_c_try_link "$LINENO"; then : 6947 eval $cacheid=yes 6948else 6949 eval $cacheid=no 6950fi 6951rm -f core conftest.err conftest.$ac_objext \ 6952 conftest$ac_exeext conftest.$ac_ext 6953fi 6954 6955 6956 CFLAGS="$xorg_testset_save_CFLAGS" 6957 6958 eval supported=\$$cacheid 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6960$as_echo "$supported" >&6; } 6961 if test "$supported" = "yes" ; then 6962 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6963 found="yes" 6964 fi 6965 fi 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981xorg_testset_save_CFLAGS="$CFLAGS" 6982 6983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6988 $as_echo_n "(cached) " >&6 6989else 6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6991/* end confdefs.h. */ 6992int i; 6993_ACEOF 6994if ac_fn_c_try_compile "$LINENO"; then : 6995 xorg_cv_cc_flag_unknown_warning_option=yes 6996else 6997 xorg_cv_cc_flag_unknown_warning_option=no 6998fi 6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7000fi 7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7004 CFLAGS="$xorg_testset_save_CFLAGS" 7005fi 7006 7007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7010 fi 7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7015 $as_echo_n "(cached) " >&6 7016else 7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7018/* end confdefs.h. */ 7019int i; 7020_ACEOF 7021if ac_fn_c_try_compile "$LINENO"; then : 7022 xorg_cv_cc_flag_unused_command_line_argument=yes 7023else 7024 xorg_cv_cc_flag_unused_command_line_argument=no 7025fi 7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7027fi 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7031 CFLAGS="$xorg_testset_save_CFLAGS" 7032fi 7033 7034found="no" 7035 7036 if test $found = "no" ; then 7037 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7039 fi 7040 7041 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7043 fi 7044 7045 CFLAGS="$CFLAGS -Werror=init-self" 7046 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7048$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7049 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7050 if eval \${$cacheid+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054/* end confdefs.h. */ 7055int i; 7056int 7057main () 7058{ 7059 7060 ; 7061 return 0; 7062} 7063_ACEOF 7064if ac_fn_c_try_link "$LINENO"; then : 7065 eval $cacheid=yes 7066else 7067 eval $cacheid=no 7068fi 7069rm -f core conftest.err conftest.$ac_objext \ 7070 conftest$ac_exeext conftest.$ac_ext 7071fi 7072 7073 7074 CFLAGS="$xorg_testset_save_CFLAGS" 7075 7076 eval supported=\$$cacheid 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7078$as_echo "$supported" >&6; } 7079 if test "$supported" = "yes" ; then 7080 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7081 found="yes" 7082 fi 7083 fi 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099xorg_testset_save_CFLAGS="$CFLAGS" 7100 7101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7106 $as_echo_n "(cached) " >&6 7107else 7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7109/* end confdefs.h. */ 7110int i; 7111_ACEOF 7112if ac_fn_c_try_compile "$LINENO"; then : 7113 xorg_cv_cc_flag_unknown_warning_option=yes 7114else 7115 xorg_cv_cc_flag_unknown_warning_option=no 7116fi 7117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7118fi 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7122 CFLAGS="$xorg_testset_save_CFLAGS" 7123fi 7124 7125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7128 fi 7129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137int i; 7138_ACEOF 7139if ac_fn_c_try_compile "$LINENO"; then : 7140 xorg_cv_cc_flag_unused_command_line_argument=yes 7141else 7142 xorg_cv_cc_flag_unused_command_line_argument=no 7143fi 7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7145fi 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7149 CFLAGS="$xorg_testset_save_CFLAGS" 7150fi 7151 7152found="no" 7153 7154 if test $found = "no" ; then 7155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7157 fi 7158 7159 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7161 fi 7162 7163 CFLAGS="$CFLAGS -Werror=main" 7164 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7166$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7167 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7168 if eval \${$cacheid+:} false; then : 7169 $as_echo_n "(cached) " >&6 7170else 7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7172/* end confdefs.h. */ 7173int i; 7174int 7175main () 7176{ 7177 7178 ; 7179 return 0; 7180} 7181_ACEOF 7182if ac_fn_c_try_link "$LINENO"; then : 7183 eval $cacheid=yes 7184else 7185 eval $cacheid=no 7186fi 7187rm -f core conftest.err conftest.$ac_objext \ 7188 conftest$ac_exeext conftest.$ac_ext 7189fi 7190 7191 7192 CFLAGS="$xorg_testset_save_CFLAGS" 7193 7194 eval supported=\$$cacheid 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7196$as_echo "$supported" >&6; } 7197 if test "$supported" = "yes" ; then 7198 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7199 found="yes" 7200 fi 7201 fi 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217xorg_testset_save_CFLAGS="$CFLAGS" 7218 7219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7227/* end confdefs.h. */ 7228int i; 7229_ACEOF 7230if ac_fn_c_try_compile "$LINENO"; then : 7231 xorg_cv_cc_flag_unknown_warning_option=yes 7232else 7233 xorg_cv_cc_flag_unknown_warning_option=no 7234fi 7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7236fi 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7240 CFLAGS="$xorg_testset_save_CFLAGS" 7241fi 7242 7243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7246 fi 7247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7254/* end confdefs.h. */ 7255int i; 7256_ACEOF 7257if ac_fn_c_try_compile "$LINENO"; then : 7258 xorg_cv_cc_flag_unused_command_line_argument=yes 7259else 7260 xorg_cv_cc_flag_unused_command_line_argument=no 7261fi 7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7263fi 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7267 CFLAGS="$xorg_testset_save_CFLAGS" 7268fi 7269 7270found="no" 7271 7272 if test $found = "no" ; then 7273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7275 fi 7276 7277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7279 fi 7280 7281 CFLAGS="$CFLAGS -Werror=missing-braces" 7282 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7284$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7285 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7286 if eval \${$cacheid+:} false; then : 7287 $as_echo_n "(cached) " >&6 7288else 7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7290/* end confdefs.h. */ 7291int i; 7292int 7293main () 7294{ 7295 7296 ; 7297 return 0; 7298} 7299_ACEOF 7300if ac_fn_c_try_link "$LINENO"; then : 7301 eval $cacheid=yes 7302else 7303 eval $cacheid=no 7304fi 7305rm -f core conftest.err conftest.$ac_objext \ 7306 conftest$ac_exeext conftest.$ac_ext 7307fi 7308 7309 7310 CFLAGS="$xorg_testset_save_CFLAGS" 7311 7312 eval supported=\$$cacheid 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7314$as_echo "$supported" >&6; } 7315 if test "$supported" = "yes" ; then 7316 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7317 found="yes" 7318 fi 7319 fi 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335xorg_testset_save_CFLAGS="$CFLAGS" 7336 7337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7345/* end confdefs.h. */ 7346int i; 7347_ACEOF 7348if ac_fn_c_try_compile "$LINENO"; then : 7349 xorg_cv_cc_flag_unknown_warning_option=yes 7350else 7351 xorg_cv_cc_flag_unknown_warning_option=no 7352fi 7353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7354fi 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7358 CFLAGS="$xorg_testset_save_CFLAGS" 7359fi 7360 7361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7364 fi 7365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7369 $as_echo_n "(cached) " >&6 7370else 7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7372/* end confdefs.h. */ 7373int i; 7374_ACEOF 7375if ac_fn_c_try_compile "$LINENO"; then : 7376 xorg_cv_cc_flag_unused_command_line_argument=yes 7377else 7378 xorg_cv_cc_flag_unused_command_line_argument=no 7379fi 7380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7381fi 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7385 CFLAGS="$xorg_testset_save_CFLAGS" 7386fi 7387 7388found="no" 7389 7390 if test $found = "no" ; then 7391 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7393 fi 7394 7395 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7397 fi 7398 7399 CFLAGS="$CFLAGS -Werror=sequence-point" 7400 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7402$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7403 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7404 if eval \${$cacheid+:} false; then : 7405 $as_echo_n "(cached) " >&6 7406else 7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7408/* end confdefs.h. */ 7409int i; 7410int 7411main () 7412{ 7413 7414 ; 7415 return 0; 7416} 7417_ACEOF 7418if ac_fn_c_try_link "$LINENO"; then : 7419 eval $cacheid=yes 7420else 7421 eval $cacheid=no 7422fi 7423rm -f core conftest.err conftest.$ac_objext \ 7424 conftest$ac_exeext conftest.$ac_ext 7425fi 7426 7427 7428 CFLAGS="$xorg_testset_save_CFLAGS" 7429 7430 eval supported=\$$cacheid 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7432$as_echo "$supported" >&6; } 7433 if test "$supported" = "yes" ; then 7434 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7435 found="yes" 7436 fi 7437 fi 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453xorg_testset_save_CFLAGS="$CFLAGS" 7454 7455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7458$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7459if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7460 $as_echo_n "(cached) " >&6 7461else 7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7463/* end confdefs.h. */ 7464int i; 7465_ACEOF 7466if ac_fn_c_try_compile "$LINENO"; then : 7467 xorg_cv_cc_flag_unknown_warning_option=yes 7468else 7469 xorg_cv_cc_flag_unknown_warning_option=no 7470fi 7471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7472fi 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7474$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7476 CFLAGS="$xorg_testset_save_CFLAGS" 7477fi 7478 7479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7482 fi 7483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7485$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7486if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7487 $as_echo_n "(cached) " >&6 7488else 7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490/* end confdefs.h. */ 7491int i; 7492_ACEOF 7493if ac_fn_c_try_compile "$LINENO"; then : 7494 xorg_cv_cc_flag_unused_command_line_argument=yes 7495else 7496 xorg_cv_cc_flag_unused_command_line_argument=no 7497fi 7498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7499fi 7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7501$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7503 CFLAGS="$xorg_testset_save_CFLAGS" 7504fi 7505 7506found="no" 7507 7508 if test $found = "no" ; then 7509 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7511 fi 7512 7513 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7515 fi 7516 7517 CFLAGS="$CFLAGS -Werror=return-type" 7518 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7520$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7521 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7522 if eval \${$cacheid+:} false; then : 7523 $as_echo_n "(cached) " >&6 7524else 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526/* end confdefs.h. */ 7527int i; 7528int 7529main () 7530{ 7531 7532 ; 7533 return 0; 7534} 7535_ACEOF 7536if ac_fn_c_try_link "$LINENO"; then : 7537 eval $cacheid=yes 7538else 7539 eval $cacheid=no 7540fi 7541rm -f core conftest.err conftest.$ac_objext \ 7542 conftest$ac_exeext conftest.$ac_ext 7543fi 7544 7545 7546 CFLAGS="$xorg_testset_save_CFLAGS" 7547 7548 eval supported=\$$cacheid 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7550$as_echo "$supported" >&6; } 7551 if test "$supported" = "yes" ; then 7552 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7553 found="yes" 7554 fi 7555 fi 7556 7557 if test $found = "no" ; then 7558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7560 fi 7561 7562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7564 fi 7565 7566 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7567 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7569$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7570 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7571 if eval \${$cacheid+:} false; then : 7572 $as_echo_n "(cached) " >&6 7573else 7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575/* end confdefs.h. */ 7576int i; 7577int 7578main () 7579{ 7580 7581 ; 7582 return 0; 7583} 7584_ACEOF 7585if ac_fn_c_try_link "$LINENO"; then : 7586 eval $cacheid=yes 7587else 7588 eval $cacheid=no 7589fi 7590rm -f core conftest.err conftest.$ac_objext \ 7591 conftest$ac_exeext conftest.$ac_ext 7592fi 7593 7594 7595 CFLAGS="$xorg_testset_save_CFLAGS" 7596 7597 eval supported=\$$cacheid 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7599$as_echo "$supported" >&6; } 7600 if test "$supported" = "yes" ; then 7601 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7602 found="yes" 7603 fi 7604 fi 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620xorg_testset_save_CFLAGS="$CFLAGS" 7621 7622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7627 $as_echo_n "(cached) " >&6 7628else 7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7630/* end confdefs.h. */ 7631int i; 7632_ACEOF 7633if ac_fn_c_try_compile "$LINENO"; then : 7634 xorg_cv_cc_flag_unknown_warning_option=yes 7635else 7636 xorg_cv_cc_flag_unknown_warning_option=no 7637fi 7638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7639fi 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7643 CFLAGS="$xorg_testset_save_CFLAGS" 7644fi 7645 7646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7649 fi 7650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7654 $as_echo_n "(cached) " >&6 7655else 7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658int i; 7659_ACEOF 7660if ac_fn_c_try_compile "$LINENO"; then : 7661 xorg_cv_cc_flag_unused_command_line_argument=yes 7662else 7663 xorg_cv_cc_flag_unused_command_line_argument=no 7664fi 7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7666fi 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7670 CFLAGS="$xorg_testset_save_CFLAGS" 7671fi 7672 7673found="no" 7674 7675 if test $found = "no" ; then 7676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7678 fi 7679 7680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7682 fi 7683 7684 CFLAGS="$CFLAGS -Werror=trigraphs" 7685 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7687$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7688 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7689 if eval \${$cacheid+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691else 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7693/* end confdefs.h. */ 7694int i; 7695int 7696main () 7697{ 7698 7699 ; 7700 return 0; 7701} 7702_ACEOF 7703if ac_fn_c_try_link "$LINENO"; then : 7704 eval $cacheid=yes 7705else 7706 eval $cacheid=no 7707fi 7708rm -f core conftest.err conftest.$ac_objext \ 7709 conftest$ac_exeext conftest.$ac_ext 7710fi 7711 7712 7713 CFLAGS="$xorg_testset_save_CFLAGS" 7714 7715 eval supported=\$$cacheid 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7717$as_echo "$supported" >&6; } 7718 if test "$supported" = "yes" ; then 7719 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7720 found="yes" 7721 fi 7722 fi 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738xorg_testset_save_CFLAGS="$CFLAGS" 7739 7740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7745 $as_echo_n "(cached) " >&6 7746else 7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7748/* end confdefs.h. */ 7749int i; 7750_ACEOF 7751if ac_fn_c_try_compile "$LINENO"; then : 7752 xorg_cv_cc_flag_unknown_warning_option=yes 7753else 7754 xorg_cv_cc_flag_unknown_warning_option=no 7755fi 7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7757fi 7758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7761 CFLAGS="$xorg_testset_save_CFLAGS" 7762fi 7763 7764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7767 fi 7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7772 $as_echo_n "(cached) " >&6 7773else 7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7775/* end confdefs.h. */ 7776int i; 7777_ACEOF 7778if ac_fn_c_try_compile "$LINENO"; then : 7779 xorg_cv_cc_flag_unused_command_line_argument=yes 7780else 7781 xorg_cv_cc_flag_unused_command_line_argument=no 7782fi 7783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7784fi 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7788 CFLAGS="$xorg_testset_save_CFLAGS" 7789fi 7790 7791found="no" 7792 7793 if test $found = "no" ; then 7794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7796 fi 7797 7798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7800 fi 7801 7802 CFLAGS="$CFLAGS -Werror=array-bounds" 7803 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7805$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7806 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7807 if eval \${$cacheid+:} false; then : 7808 $as_echo_n "(cached) " >&6 7809else 7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811/* end confdefs.h. */ 7812int i; 7813int 7814main () 7815{ 7816 7817 ; 7818 return 0; 7819} 7820_ACEOF 7821if ac_fn_c_try_link "$LINENO"; then : 7822 eval $cacheid=yes 7823else 7824 eval $cacheid=no 7825fi 7826rm -f core conftest.err conftest.$ac_objext \ 7827 conftest$ac_exeext conftest.$ac_ext 7828fi 7829 7830 7831 CFLAGS="$xorg_testset_save_CFLAGS" 7832 7833 eval supported=\$$cacheid 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7835$as_echo "$supported" >&6; } 7836 if test "$supported" = "yes" ; then 7837 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7838 found="yes" 7839 fi 7840 fi 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856xorg_testset_save_CFLAGS="$CFLAGS" 7857 7858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864else 7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866/* end confdefs.h. */ 7867int i; 7868_ACEOF 7869if ac_fn_c_try_compile "$LINENO"; then : 7870 xorg_cv_cc_flag_unknown_warning_option=yes 7871else 7872 xorg_cv_cc_flag_unknown_warning_option=no 7873fi 7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7875fi 7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7879 CFLAGS="$xorg_testset_save_CFLAGS" 7880fi 7881 7882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7885 fi 7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7890 $as_echo_n "(cached) " >&6 7891else 7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7893/* end confdefs.h. */ 7894int i; 7895_ACEOF 7896if ac_fn_c_try_compile "$LINENO"; then : 7897 xorg_cv_cc_flag_unused_command_line_argument=yes 7898else 7899 xorg_cv_cc_flag_unused_command_line_argument=no 7900fi 7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7902fi 7903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7906 CFLAGS="$xorg_testset_save_CFLAGS" 7907fi 7908 7909found="no" 7910 7911 if test $found = "no" ; then 7912 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7914 fi 7915 7916 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7918 fi 7919 7920 CFLAGS="$CFLAGS -Werror=write-strings" 7921 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7923$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7924 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7925 if eval \${$cacheid+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927else 7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7929/* end confdefs.h. */ 7930int i; 7931int 7932main () 7933{ 7934 7935 ; 7936 return 0; 7937} 7938_ACEOF 7939if ac_fn_c_try_link "$LINENO"; then : 7940 eval $cacheid=yes 7941else 7942 eval $cacheid=no 7943fi 7944rm -f core conftest.err conftest.$ac_objext \ 7945 conftest$ac_exeext conftest.$ac_ext 7946fi 7947 7948 7949 CFLAGS="$xorg_testset_save_CFLAGS" 7950 7951 eval supported=\$$cacheid 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7953$as_echo "$supported" >&6; } 7954 if test "$supported" = "yes" ; then 7955 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7956 found="yes" 7957 fi 7958 fi 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974xorg_testset_save_CFLAGS="$CFLAGS" 7975 7976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7981 $as_echo_n "(cached) " >&6 7982else 7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7984/* end confdefs.h. */ 7985int i; 7986_ACEOF 7987if ac_fn_c_try_compile "$LINENO"; then : 7988 xorg_cv_cc_flag_unknown_warning_option=yes 7989else 7990 xorg_cv_cc_flag_unknown_warning_option=no 7991fi 7992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7993fi 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7997 CFLAGS="$xorg_testset_save_CFLAGS" 7998fi 7999 8000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8003 fi 8004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8008 $as_echo_n "(cached) " >&6 8009else 8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012int i; 8013_ACEOF 8014if ac_fn_c_try_compile "$LINENO"; then : 8015 xorg_cv_cc_flag_unused_command_line_argument=yes 8016else 8017 xorg_cv_cc_flag_unused_command_line_argument=no 8018fi 8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8020fi 8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8024 CFLAGS="$xorg_testset_save_CFLAGS" 8025fi 8026 8027found="no" 8028 8029 if test $found = "no" ; then 8030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8032 fi 8033 8034 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8036 fi 8037 8038 CFLAGS="$CFLAGS -Werror=address" 8039 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8041$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8042 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8043 if eval \${$cacheid+:} false; then : 8044 $as_echo_n "(cached) " >&6 8045else 8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8047/* end confdefs.h. */ 8048int i; 8049int 8050main () 8051{ 8052 8053 ; 8054 return 0; 8055} 8056_ACEOF 8057if ac_fn_c_try_link "$LINENO"; then : 8058 eval $cacheid=yes 8059else 8060 eval $cacheid=no 8061fi 8062rm -f core conftest.err conftest.$ac_objext \ 8063 conftest$ac_exeext conftest.$ac_ext 8064fi 8065 8066 8067 CFLAGS="$xorg_testset_save_CFLAGS" 8068 8069 eval supported=\$$cacheid 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8071$as_echo "$supported" >&6; } 8072 if test "$supported" = "yes" ; then 8073 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8074 found="yes" 8075 fi 8076 fi 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092xorg_testset_save_CFLAGS="$CFLAGS" 8093 8094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8099 $as_echo_n "(cached) " >&6 8100else 8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8102/* end confdefs.h. */ 8103int i; 8104_ACEOF 8105if ac_fn_c_try_compile "$LINENO"; then : 8106 xorg_cv_cc_flag_unknown_warning_option=yes 8107else 8108 xorg_cv_cc_flag_unknown_warning_option=no 8109fi 8110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8111fi 8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8115 CFLAGS="$xorg_testset_save_CFLAGS" 8116fi 8117 8118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8121 fi 8122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130int i; 8131_ACEOF 8132if ac_fn_c_try_compile "$LINENO"; then : 8133 xorg_cv_cc_flag_unused_command_line_argument=yes 8134else 8135 xorg_cv_cc_flag_unused_command_line_argument=no 8136fi 8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8138fi 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8142 CFLAGS="$xorg_testset_save_CFLAGS" 8143fi 8144 8145found="no" 8146 8147 if test $found = "no" ; then 8148 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8150 fi 8151 8152 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8154 fi 8155 8156 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8157 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8159$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8160 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8161 if eval \${$cacheid+:} false; then : 8162 $as_echo_n "(cached) " >&6 8163else 8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8165/* end confdefs.h. */ 8166int i; 8167int 8168main () 8169{ 8170 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175if ac_fn_c_try_link "$LINENO"; then : 8176 eval $cacheid=yes 8177else 8178 eval $cacheid=no 8179fi 8180rm -f core conftest.err conftest.$ac_objext \ 8181 conftest$ac_exeext conftest.$ac_ext 8182fi 8183 8184 8185 CFLAGS="$xorg_testset_save_CFLAGS" 8186 8187 eval supported=\$$cacheid 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8189$as_echo "$supported" >&6; } 8190 if test "$supported" = "yes" ; then 8191 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8192 found="yes" 8193 fi 8194 fi 8195 8196 if test $found = "no" ; then 8197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8199 fi 8200 8201 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8203 fi 8204 8205 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8206 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8208$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8209 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8210 if eval \${$cacheid+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214/* end confdefs.h. */ 8215int i; 8216int 8217main () 8218{ 8219 8220 ; 8221 return 0; 8222} 8223_ACEOF 8224if ac_fn_c_try_link "$LINENO"; then : 8225 eval $cacheid=yes 8226else 8227 eval $cacheid=no 8228fi 8229rm -f core conftest.err conftest.$ac_objext \ 8230 conftest$ac_exeext conftest.$ac_ext 8231fi 8232 8233 8234 CFLAGS="$xorg_testset_save_CFLAGS" 8235 8236 eval supported=\$$cacheid 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8238$as_echo "$supported" >&6; } 8239 if test "$supported" = "yes" ; then 8240 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8241 found="yes" 8242 fi 8243 fi 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259xorg_testset_save_CFLAGS="$CFLAGS" 8260 8261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8266 $as_echo_n "(cached) " >&6 8267else 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269/* end confdefs.h. */ 8270int i; 8271_ACEOF 8272if ac_fn_c_try_compile "$LINENO"; then : 8273 xorg_cv_cc_flag_unknown_warning_option=yes 8274else 8275 xorg_cv_cc_flag_unknown_warning_option=no 8276fi 8277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8278fi 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8282 CFLAGS="$xorg_testset_save_CFLAGS" 8283fi 8284 8285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8288 fi 8289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8293 $as_echo_n "(cached) " >&6 8294else 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296/* end confdefs.h. */ 8297int i; 8298_ACEOF 8299if ac_fn_c_try_compile "$LINENO"; then : 8300 xorg_cv_cc_flag_unused_command_line_argument=yes 8301else 8302 xorg_cv_cc_flag_unused_command_line_argument=no 8303fi 8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8305fi 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8309 CFLAGS="$xorg_testset_save_CFLAGS" 8310fi 8311 8312found="no" 8313 8314 if test $found = "no" ; then 8315 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8317 fi 8318 8319 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8321 fi 8322 8323 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8324 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8326$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8327 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8328 if eval \${$cacheid+:} false; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333int i; 8334int 8335main () 8336{ 8337 8338 ; 8339 return 0; 8340} 8341_ACEOF 8342if ac_fn_c_try_link "$LINENO"; then : 8343 eval $cacheid=yes 8344else 8345 eval $cacheid=no 8346fi 8347rm -f core conftest.err conftest.$ac_objext \ 8348 conftest$ac_exeext conftest.$ac_ext 8349fi 8350 8351 8352 CFLAGS="$xorg_testset_save_CFLAGS" 8353 8354 eval supported=\$$cacheid 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8356$as_echo "$supported" >&6; } 8357 if test "$supported" = "yes" ; then 8358 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8359 found="yes" 8360 fi 8361 fi 8362 8363 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8364else 8365{ $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 8366$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;} 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380xorg_testset_save_CFLAGS="$CFLAGS" 8381 8382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8387 $as_echo_n "(cached) " >&6 8388else 8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390/* end confdefs.h. */ 8391int i; 8392_ACEOF 8393if ac_fn_c_try_compile "$LINENO"; then : 8394 xorg_cv_cc_flag_unknown_warning_option=yes 8395else 8396 xorg_cv_cc_flag_unknown_warning_option=no 8397fi 8398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8399fi 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8403 CFLAGS="$xorg_testset_save_CFLAGS" 8404fi 8405 8406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8409 fi 8410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8414 $as_echo_n "(cached) " >&6 8415else 8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417/* end confdefs.h. */ 8418int i; 8419_ACEOF 8420if ac_fn_c_try_compile "$LINENO"; then : 8421 xorg_cv_cc_flag_unused_command_line_argument=yes 8422else 8423 xorg_cv_cc_flag_unused_command_line_argument=no 8424fi 8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8430 CFLAGS="$xorg_testset_save_CFLAGS" 8431fi 8432 8433found="no" 8434 8435 if test $found = "no" ; then 8436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 fi 8439 8440 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 fi 8443 8444 CFLAGS="$CFLAGS -Wimplicit" 8445 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8447$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8448 cacheid=xorg_cv_cc_flag__Wimplicit 8449 if eval \${$cacheid+:} false; then : 8450 $as_echo_n "(cached) " >&6 8451else 8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8453/* end confdefs.h. */ 8454int i; 8455int 8456main () 8457{ 8458 8459 ; 8460 return 0; 8461} 8462_ACEOF 8463if ac_fn_c_try_link "$LINENO"; then : 8464 eval $cacheid=yes 8465else 8466 eval $cacheid=no 8467fi 8468rm -f core conftest.err conftest.$ac_objext \ 8469 conftest$ac_exeext conftest.$ac_ext 8470fi 8471 8472 8473 CFLAGS="$xorg_testset_save_CFLAGS" 8474 8475 eval supported=\$$cacheid 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8477$as_echo "$supported" >&6; } 8478 if test "$supported" = "yes" ; then 8479 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8480 found="yes" 8481 fi 8482 fi 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498xorg_testset_save_CFLAGS="$CFLAGS" 8499 8500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8505 $as_echo_n "(cached) " >&6 8506else 8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8508/* end confdefs.h. */ 8509int i; 8510_ACEOF 8511if ac_fn_c_try_compile "$LINENO"; then : 8512 xorg_cv_cc_flag_unknown_warning_option=yes 8513else 8514 xorg_cv_cc_flag_unknown_warning_option=no 8515fi 8516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8517fi 8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8521 CFLAGS="$xorg_testset_save_CFLAGS" 8522fi 8523 8524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8527 fi 8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536int i; 8537_ACEOF 8538if ac_fn_c_try_compile "$LINENO"; then : 8539 xorg_cv_cc_flag_unused_command_line_argument=yes 8540else 8541 xorg_cv_cc_flag_unused_command_line_argument=no 8542fi 8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8544fi 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8548 CFLAGS="$xorg_testset_save_CFLAGS" 8549fi 8550 8551found="no" 8552 8553 if test $found = "no" ; then 8554 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8556 fi 8557 8558 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8560 fi 8561 8562 CFLAGS="$CFLAGS -Wnonnull" 8563 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8565$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8566 cacheid=xorg_cv_cc_flag__Wnonnull 8567 if eval \${$cacheid+:} false; then : 8568 $as_echo_n "(cached) " >&6 8569else 8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8571/* end confdefs.h. */ 8572int i; 8573int 8574main () 8575{ 8576 8577 ; 8578 return 0; 8579} 8580_ACEOF 8581if ac_fn_c_try_link "$LINENO"; then : 8582 eval $cacheid=yes 8583else 8584 eval $cacheid=no 8585fi 8586rm -f core conftest.err conftest.$ac_objext \ 8587 conftest$ac_exeext conftest.$ac_ext 8588fi 8589 8590 8591 CFLAGS="$xorg_testset_save_CFLAGS" 8592 8593 eval supported=\$$cacheid 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8595$as_echo "$supported" >&6; } 8596 if test "$supported" = "yes" ; then 8597 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8598 found="yes" 8599 fi 8600 fi 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616xorg_testset_save_CFLAGS="$CFLAGS" 8617 8618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8623 $as_echo_n "(cached) " >&6 8624else 8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626/* end confdefs.h. */ 8627int i; 8628_ACEOF 8629if ac_fn_c_try_compile "$LINENO"; then : 8630 xorg_cv_cc_flag_unknown_warning_option=yes 8631else 8632 xorg_cv_cc_flag_unknown_warning_option=no 8633fi 8634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8635fi 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8640fi 8641 8642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8645 fi 8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8650 $as_echo_n "(cached) " >&6 8651else 8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8653/* end confdefs.h. */ 8654int i; 8655_ACEOF 8656if ac_fn_c_try_compile "$LINENO"; then : 8657 xorg_cv_cc_flag_unused_command_line_argument=yes 8658else 8659 xorg_cv_cc_flag_unused_command_line_argument=no 8660fi 8661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8662fi 8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8666 CFLAGS="$xorg_testset_save_CFLAGS" 8667fi 8668 8669found="no" 8670 8671 if test $found = "no" ; then 8672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8674 fi 8675 8676 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8678 fi 8679 8680 CFLAGS="$CFLAGS -Winit-self" 8681 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8683$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8684 cacheid=xorg_cv_cc_flag__Winit_self 8685 if eval \${$cacheid+:} false; then : 8686 $as_echo_n "(cached) " >&6 8687else 8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8689/* end confdefs.h. */ 8690int i; 8691int 8692main () 8693{ 8694 8695 ; 8696 return 0; 8697} 8698_ACEOF 8699if ac_fn_c_try_link "$LINENO"; then : 8700 eval $cacheid=yes 8701else 8702 eval $cacheid=no 8703fi 8704rm -f core conftest.err conftest.$ac_objext \ 8705 conftest$ac_exeext conftest.$ac_ext 8706fi 8707 8708 8709 CFLAGS="$xorg_testset_save_CFLAGS" 8710 8711 eval supported=\$$cacheid 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8713$as_echo "$supported" >&6; } 8714 if test "$supported" = "yes" ; then 8715 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8716 found="yes" 8717 fi 8718 fi 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734xorg_testset_save_CFLAGS="$CFLAGS" 8735 8736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8741 $as_echo_n "(cached) " >&6 8742else 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745int i; 8746_ACEOF 8747if ac_fn_c_try_compile "$LINENO"; then : 8748 xorg_cv_cc_flag_unknown_warning_option=yes 8749else 8750 xorg_cv_cc_flag_unknown_warning_option=no 8751fi 8752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8753fi 8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8757 CFLAGS="$xorg_testset_save_CFLAGS" 8758fi 8759 8760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8763 fi 8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8768 $as_echo_n "(cached) " >&6 8769else 8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8771/* end confdefs.h. */ 8772int i; 8773_ACEOF 8774if ac_fn_c_try_compile "$LINENO"; then : 8775 xorg_cv_cc_flag_unused_command_line_argument=yes 8776else 8777 xorg_cv_cc_flag_unused_command_line_argument=no 8778fi 8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8780fi 8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8784 CFLAGS="$xorg_testset_save_CFLAGS" 8785fi 8786 8787found="no" 8788 8789 if test $found = "no" ; then 8790 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8792 fi 8793 8794 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8796 fi 8797 8798 CFLAGS="$CFLAGS -Wmain" 8799 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8801$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8802 cacheid=xorg_cv_cc_flag__Wmain 8803 if eval \${$cacheid+:} false; then : 8804 $as_echo_n "(cached) " >&6 8805else 8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8807/* end confdefs.h. */ 8808int i; 8809int 8810main () 8811{ 8812 8813 ; 8814 return 0; 8815} 8816_ACEOF 8817if ac_fn_c_try_link "$LINENO"; then : 8818 eval $cacheid=yes 8819else 8820 eval $cacheid=no 8821fi 8822rm -f core conftest.err conftest.$ac_objext \ 8823 conftest$ac_exeext conftest.$ac_ext 8824fi 8825 8826 8827 CFLAGS="$xorg_testset_save_CFLAGS" 8828 8829 eval supported=\$$cacheid 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8831$as_echo "$supported" >&6; } 8832 if test "$supported" = "yes" ; then 8833 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8834 found="yes" 8835 fi 8836 fi 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852xorg_testset_save_CFLAGS="$CFLAGS" 8853 8854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8859 $as_echo_n "(cached) " >&6 8860else 8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8862/* end confdefs.h. */ 8863int i; 8864_ACEOF 8865if ac_fn_c_try_compile "$LINENO"; then : 8866 xorg_cv_cc_flag_unknown_warning_option=yes 8867else 8868 xorg_cv_cc_flag_unknown_warning_option=no 8869fi 8870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8871fi 8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8875 CFLAGS="$xorg_testset_save_CFLAGS" 8876fi 8877 8878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8881 fi 8882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8886 $as_echo_n "(cached) " >&6 8887else 8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8889/* end confdefs.h. */ 8890int i; 8891_ACEOF 8892if ac_fn_c_try_compile "$LINENO"; then : 8893 xorg_cv_cc_flag_unused_command_line_argument=yes 8894else 8895 xorg_cv_cc_flag_unused_command_line_argument=no 8896fi 8897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8898fi 8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8902 CFLAGS="$xorg_testset_save_CFLAGS" 8903fi 8904 8905found="no" 8906 8907 if test $found = "no" ; then 8908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8910 fi 8911 8912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8914 fi 8915 8916 CFLAGS="$CFLAGS -Wmissing-braces" 8917 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8919$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8920 cacheid=xorg_cv_cc_flag__Wmissing_braces 8921 if eval \${$cacheid+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925/* end confdefs.h. */ 8926int i; 8927int 8928main () 8929{ 8930 8931 ; 8932 return 0; 8933} 8934_ACEOF 8935if ac_fn_c_try_link "$LINENO"; then : 8936 eval $cacheid=yes 8937else 8938 eval $cacheid=no 8939fi 8940rm -f core conftest.err conftest.$ac_objext \ 8941 conftest$ac_exeext conftest.$ac_ext 8942fi 8943 8944 8945 CFLAGS="$xorg_testset_save_CFLAGS" 8946 8947 eval supported=\$$cacheid 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8949$as_echo "$supported" >&6; } 8950 if test "$supported" = "yes" ; then 8951 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8952 found="yes" 8953 fi 8954 fi 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970xorg_testset_save_CFLAGS="$CFLAGS" 8971 8972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8977 $as_echo_n "(cached) " >&6 8978else 8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8980/* end confdefs.h. */ 8981int i; 8982_ACEOF 8983if ac_fn_c_try_compile "$LINENO"; then : 8984 xorg_cv_cc_flag_unknown_warning_option=yes 8985else 8986 xorg_cv_cc_flag_unknown_warning_option=no 8987fi 8988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8989fi 8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8993 CFLAGS="$xorg_testset_save_CFLAGS" 8994fi 8995 8996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8999 fi 9000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9004 $as_echo_n "(cached) " >&6 9005else 9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9007/* end confdefs.h. */ 9008int i; 9009_ACEOF 9010if ac_fn_c_try_compile "$LINENO"; then : 9011 xorg_cv_cc_flag_unused_command_line_argument=yes 9012else 9013 xorg_cv_cc_flag_unused_command_line_argument=no 9014fi 9015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9016fi 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9020 CFLAGS="$xorg_testset_save_CFLAGS" 9021fi 9022 9023found="no" 9024 9025 if test $found = "no" ; then 9026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9028 fi 9029 9030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9032 fi 9033 9034 CFLAGS="$CFLAGS -Wsequence-point" 9035 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9037$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9038 cacheid=xorg_cv_cc_flag__Wsequence_point 9039 if eval \${$cacheid+:} false; then : 9040 $as_echo_n "(cached) " >&6 9041else 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044int i; 9045int 9046main () 9047{ 9048 9049 ; 9050 return 0; 9051} 9052_ACEOF 9053if ac_fn_c_try_link "$LINENO"; then : 9054 eval $cacheid=yes 9055else 9056 eval $cacheid=no 9057fi 9058rm -f core conftest.err conftest.$ac_objext \ 9059 conftest$ac_exeext conftest.$ac_ext 9060fi 9061 9062 9063 CFLAGS="$xorg_testset_save_CFLAGS" 9064 9065 eval supported=\$$cacheid 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9067$as_echo "$supported" >&6; } 9068 if test "$supported" = "yes" ; then 9069 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9070 found="yes" 9071 fi 9072 fi 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088xorg_testset_save_CFLAGS="$CFLAGS" 9089 9090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9095 $as_echo_n "(cached) " >&6 9096else 9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9098/* end confdefs.h. */ 9099int i; 9100_ACEOF 9101if ac_fn_c_try_compile "$LINENO"; then : 9102 xorg_cv_cc_flag_unknown_warning_option=yes 9103else 9104 xorg_cv_cc_flag_unknown_warning_option=no 9105fi 9106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9107fi 9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9111 CFLAGS="$xorg_testset_save_CFLAGS" 9112fi 9113 9114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9117 fi 9118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9122 $as_echo_n "(cached) " >&6 9123else 9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9125/* end confdefs.h. */ 9126int i; 9127_ACEOF 9128if ac_fn_c_try_compile "$LINENO"; then : 9129 xorg_cv_cc_flag_unused_command_line_argument=yes 9130else 9131 xorg_cv_cc_flag_unused_command_line_argument=no 9132fi 9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9134fi 9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9138 CFLAGS="$xorg_testset_save_CFLAGS" 9139fi 9140 9141found="no" 9142 9143 if test $found = "no" ; then 9144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9146 fi 9147 9148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9150 fi 9151 9152 CFLAGS="$CFLAGS -Wreturn-type" 9153 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9155$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9156 cacheid=xorg_cv_cc_flag__Wreturn_type 9157 if eval \${$cacheid+:} false; then : 9158 $as_echo_n "(cached) " >&6 9159else 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161/* end confdefs.h. */ 9162int i; 9163int 9164main () 9165{ 9166 9167 ; 9168 return 0; 9169} 9170_ACEOF 9171if ac_fn_c_try_link "$LINENO"; then : 9172 eval $cacheid=yes 9173else 9174 eval $cacheid=no 9175fi 9176rm -f core conftest.err conftest.$ac_objext \ 9177 conftest$ac_exeext conftest.$ac_ext 9178fi 9179 9180 9181 CFLAGS="$xorg_testset_save_CFLAGS" 9182 9183 eval supported=\$$cacheid 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9185$as_echo "$supported" >&6; } 9186 if test "$supported" = "yes" ; then 9187 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9188 found="yes" 9189 fi 9190 fi 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206xorg_testset_save_CFLAGS="$CFLAGS" 9207 9208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9213 $as_echo_n "(cached) " >&6 9214else 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217int i; 9218_ACEOF 9219if ac_fn_c_try_compile "$LINENO"; then : 9220 xorg_cv_cc_flag_unknown_warning_option=yes 9221else 9222 xorg_cv_cc_flag_unknown_warning_option=no 9223fi 9224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9225fi 9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9229 CFLAGS="$xorg_testset_save_CFLAGS" 9230fi 9231 9232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9235 fi 9236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9240 $as_echo_n "(cached) " >&6 9241else 9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9243/* end confdefs.h. */ 9244int i; 9245_ACEOF 9246if ac_fn_c_try_compile "$LINENO"; then : 9247 xorg_cv_cc_flag_unused_command_line_argument=yes 9248else 9249 xorg_cv_cc_flag_unused_command_line_argument=no 9250fi 9251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9252fi 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9256 CFLAGS="$xorg_testset_save_CFLAGS" 9257fi 9258 9259found="no" 9260 9261 if test $found = "no" ; then 9262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9264 fi 9265 9266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9268 fi 9269 9270 CFLAGS="$CFLAGS -Wtrigraphs" 9271 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9273$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9274 cacheid=xorg_cv_cc_flag__Wtrigraphs 9275 if eval \${$cacheid+:} false; then : 9276 $as_echo_n "(cached) " >&6 9277else 9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9279/* end confdefs.h. */ 9280int i; 9281int 9282main () 9283{ 9284 9285 ; 9286 return 0; 9287} 9288_ACEOF 9289if ac_fn_c_try_link "$LINENO"; then : 9290 eval $cacheid=yes 9291else 9292 eval $cacheid=no 9293fi 9294rm -f core conftest.err conftest.$ac_objext \ 9295 conftest$ac_exeext conftest.$ac_ext 9296fi 9297 9298 9299 CFLAGS="$xorg_testset_save_CFLAGS" 9300 9301 eval supported=\$$cacheid 9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9303$as_echo "$supported" >&6; } 9304 if test "$supported" = "yes" ; then 9305 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9306 found="yes" 9307 fi 9308 fi 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324xorg_testset_save_CFLAGS="$CFLAGS" 9325 9326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9331 $as_echo_n "(cached) " >&6 9332else 9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9334/* end confdefs.h. */ 9335int i; 9336_ACEOF 9337if ac_fn_c_try_compile "$LINENO"; then : 9338 xorg_cv_cc_flag_unknown_warning_option=yes 9339else 9340 xorg_cv_cc_flag_unknown_warning_option=no 9341fi 9342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9343fi 9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9347 CFLAGS="$xorg_testset_save_CFLAGS" 9348fi 9349 9350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9353 fi 9354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9358 $as_echo_n "(cached) " >&6 9359else 9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9361/* end confdefs.h. */ 9362int i; 9363_ACEOF 9364if ac_fn_c_try_compile "$LINENO"; then : 9365 xorg_cv_cc_flag_unused_command_line_argument=yes 9366else 9367 xorg_cv_cc_flag_unused_command_line_argument=no 9368fi 9369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9370fi 9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9374 CFLAGS="$xorg_testset_save_CFLAGS" 9375fi 9376 9377found="no" 9378 9379 if test $found = "no" ; then 9380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9382 fi 9383 9384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9386 fi 9387 9388 CFLAGS="$CFLAGS -Warray-bounds" 9389 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9391$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9392 cacheid=xorg_cv_cc_flag__Warray_bounds 9393 if eval \${$cacheid+:} false; then : 9394 $as_echo_n "(cached) " >&6 9395else 9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9397/* end confdefs.h. */ 9398int i; 9399int 9400main () 9401{ 9402 9403 ; 9404 return 0; 9405} 9406_ACEOF 9407if ac_fn_c_try_link "$LINENO"; then : 9408 eval $cacheid=yes 9409else 9410 eval $cacheid=no 9411fi 9412rm -f core conftest.err conftest.$ac_objext \ 9413 conftest$ac_exeext conftest.$ac_ext 9414fi 9415 9416 9417 CFLAGS="$xorg_testset_save_CFLAGS" 9418 9419 eval supported=\$$cacheid 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9421$as_echo "$supported" >&6; } 9422 if test "$supported" = "yes" ; then 9423 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9424 found="yes" 9425 fi 9426 fi 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442xorg_testset_save_CFLAGS="$CFLAGS" 9443 9444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9449 $as_echo_n "(cached) " >&6 9450else 9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9452/* end confdefs.h. */ 9453int i; 9454_ACEOF 9455if ac_fn_c_try_compile "$LINENO"; then : 9456 xorg_cv_cc_flag_unknown_warning_option=yes 9457else 9458 xorg_cv_cc_flag_unknown_warning_option=no 9459fi 9460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9461fi 9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9465 CFLAGS="$xorg_testset_save_CFLAGS" 9466fi 9467 9468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9471 fi 9472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9476 $as_echo_n "(cached) " >&6 9477else 9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479/* end confdefs.h. */ 9480int i; 9481_ACEOF 9482if ac_fn_c_try_compile "$LINENO"; then : 9483 xorg_cv_cc_flag_unused_command_line_argument=yes 9484else 9485 xorg_cv_cc_flag_unused_command_line_argument=no 9486fi 9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9488fi 9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9492 CFLAGS="$xorg_testset_save_CFLAGS" 9493fi 9494 9495found="no" 9496 9497 if test $found = "no" ; then 9498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9500 fi 9501 9502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9504 fi 9505 9506 CFLAGS="$CFLAGS -Wwrite-strings" 9507 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9509$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9510 cacheid=xorg_cv_cc_flag__Wwrite_strings 9511 if eval \${$cacheid+:} false; then : 9512 $as_echo_n "(cached) " >&6 9513else 9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9515/* end confdefs.h. */ 9516int i; 9517int 9518main () 9519{ 9520 9521 ; 9522 return 0; 9523} 9524_ACEOF 9525if ac_fn_c_try_link "$LINENO"; then : 9526 eval $cacheid=yes 9527else 9528 eval $cacheid=no 9529fi 9530rm -f core conftest.err conftest.$ac_objext \ 9531 conftest$ac_exeext conftest.$ac_ext 9532fi 9533 9534 9535 CFLAGS="$xorg_testset_save_CFLAGS" 9536 9537 eval supported=\$$cacheid 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9539$as_echo "$supported" >&6; } 9540 if test "$supported" = "yes" ; then 9541 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9542 found="yes" 9543 fi 9544 fi 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560xorg_testset_save_CFLAGS="$CFLAGS" 9561 9562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9567 $as_echo_n "(cached) " >&6 9568else 9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9570/* end confdefs.h. */ 9571int i; 9572_ACEOF 9573if ac_fn_c_try_compile "$LINENO"; then : 9574 xorg_cv_cc_flag_unknown_warning_option=yes 9575else 9576 xorg_cv_cc_flag_unknown_warning_option=no 9577fi 9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9579fi 9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9583 CFLAGS="$xorg_testset_save_CFLAGS" 9584fi 9585 9586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9589 fi 9590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9594 $as_echo_n "(cached) " >&6 9595else 9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9597/* end confdefs.h. */ 9598int i; 9599_ACEOF 9600if ac_fn_c_try_compile "$LINENO"; then : 9601 xorg_cv_cc_flag_unused_command_line_argument=yes 9602else 9603 xorg_cv_cc_flag_unused_command_line_argument=no 9604fi 9605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9606fi 9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9610 CFLAGS="$xorg_testset_save_CFLAGS" 9611fi 9612 9613found="no" 9614 9615 if test $found = "no" ; then 9616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9618 fi 9619 9620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9622 fi 9623 9624 CFLAGS="$CFLAGS -Waddress" 9625 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9627$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9628 cacheid=xorg_cv_cc_flag__Waddress 9629 if eval \${$cacheid+:} false; then : 9630 $as_echo_n "(cached) " >&6 9631else 9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9633/* end confdefs.h. */ 9634int i; 9635int 9636main () 9637{ 9638 9639 ; 9640 return 0; 9641} 9642_ACEOF 9643if ac_fn_c_try_link "$LINENO"; then : 9644 eval $cacheid=yes 9645else 9646 eval $cacheid=no 9647fi 9648rm -f core conftest.err conftest.$ac_objext \ 9649 conftest$ac_exeext conftest.$ac_ext 9650fi 9651 9652 9653 CFLAGS="$xorg_testset_save_CFLAGS" 9654 9655 eval supported=\$$cacheid 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9657$as_echo "$supported" >&6; } 9658 if test "$supported" = "yes" ; then 9659 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9660 found="yes" 9661 fi 9662 fi 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678xorg_testset_save_CFLAGS="$CFLAGS" 9679 9680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9685 $as_echo_n "(cached) " >&6 9686else 9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9688/* end confdefs.h. */ 9689int i; 9690_ACEOF 9691if ac_fn_c_try_compile "$LINENO"; then : 9692 xorg_cv_cc_flag_unknown_warning_option=yes 9693else 9694 xorg_cv_cc_flag_unknown_warning_option=no 9695fi 9696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9697fi 9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9701 CFLAGS="$xorg_testset_save_CFLAGS" 9702fi 9703 9704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9707 fi 9708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9712 $as_echo_n "(cached) " >&6 9713else 9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9715/* end confdefs.h. */ 9716int i; 9717_ACEOF 9718if ac_fn_c_try_compile "$LINENO"; then : 9719 xorg_cv_cc_flag_unused_command_line_argument=yes 9720else 9721 xorg_cv_cc_flag_unused_command_line_argument=no 9722fi 9723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9724fi 9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9728 CFLAGS="$xorg_testset_save_CFLAGS" 9729fi 9730 9731found="no" 9732 9733 if test $found = "no" ; then 9734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9736 fi 9737 9738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9740 fi 9741 9742 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9743 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9745$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9746 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9747 if eval \${$cacheid+:} false; then : 9748 $as_echo_n "(cached) " >&6 9749else 9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9751/* end confdefs.h. */ 9752int i; 9753int 9754main () 9755{ 9756 9757 ; 9758 return 0; 9759} 9760_ACEOF 9761if ac_fn_c_try_link "$LINENO"; then : 9762 eval $cacheid=yes 9763else 9764 eval $cacheid=no 9765fi 9766rm -f core conftest.err conftest.$ac_objext \ 9767 conftest$ac_exeext conftest.$ac_ext 9768fi 9769 9770 9771 CFLAGS="$xorg_testset_save_CFLAGS" 9772 9773 eval supported=\$$cacheid 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9775$as_echo "$supported" >&6; } 9776 if test "$supported" = "yes" ; then 9777 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9778 found="yes" 9779 fi 9780 fi 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796xorg_testset_save_CFLAGS="$CFLAGS" 9797 9798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9803 $as_echo_n "(cached) " >&6 9804else 9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9806/* end confdefs.h. */ 9807int i; 9808_ACEOF 9809if ac_fn_c_try_compile "$LINENO"; then : 9810 xorg_cv_cc_flag_unknown_warning_option=yes 9811else 9812 xorg_cv_cc_flag_unknown_warning_option=no 9813fi 9814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9815fi 9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9819 CFLAGS="$xorg_testset_save_CFLAGS" 9820fi 9821 9822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9825 fi 9826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9830 $as_echo_n "(cached) " >&6 9831else 9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9833/* end confdefs.h. */ 9834int i; 9835_ACEOF 9836if ac_fn_c_try_compile "$LINENO"; then : 9837 xorg_cv_cc_flag_unused_command_line_argument=yes 9838else 9839 xorg_cv_cc_flag_unused_command_line_argument=no 9840fi 9841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9842fi 9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9846 CFLAGS="$xorg_testset_save_CFLAGS" 9847fi 9848 9849found="no" 9850 9851 if test $found = "no" ; then 9852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9854 fi 9855 9856 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9858 fi 9859 9860 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9861 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9863$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9864 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9865 if eval \${$cacheid+:} false; then : 9866 $as_echo_n "(cached) " >&6 9867else 9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869/* end confdefs.h. */ 9870int i; 9871int 9872main () 9873{ 9874 9875 ; 9876 return 0; 9877} 9878_ACEOF 9879if ac_fn_c_try_link "$LINENO"; then : 9880 eval $cacheid=yes 9881else 9882 eval $cacheid=no 9883fi 9884rm -f core conftest.err conftest.$ac_objext \ 9885 conftest$ac_exeext conftest.$ac_ext 9886fi 9887 9888 9889 CFLAGS="$xorg_testset_save_CFLAGS" 9890 9891 eval supported=\$$cacheid 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9893$as_echo "$supported" >&6; } 9894 if test "$supported" = "yes" ; then 9895 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9896 found="yes" 9897 fi 9898 fi 9899 9900 9901fi 9902 9903 9904 9905 9906 9907 9908 9909 CWARNFLAGS="$BASE_CFLAGS" 9910 if test "x$GCC" = xyes ; then 9911 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9912 fi 9913 9914 9915 9916 9917 9918 9919 9920 9921# Check whether --enable-strict-compilation was given. 9922if test "${enable_strict_compilation+set}" = set; then : 9923 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9924else 9925 STRICT_COMPILE=no 9926fi 9927 9928 9929 9930 9931 9932 9933STRICT_CFLAGS="" 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947xorg_testset_save_CFLAGS="$CFLAGS" 9948 9949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958int i; 9959_ACEOF 9960if ac_fn_c_try_compile "$LINENO"; then : 9961 xorg_cv_cc_flag_unknown_warning_option=yes 9962else 9963 xorg_cv_cc_flag_unknown_warning_option=no 9964fi 9965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9966fi 9967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9970 CFLAGS="$xorg_testset_save_CFLAGS" 9971fi 9972 9973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9976 fi 9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9981 $as_echo_n "(cached) " >&6 9982else 9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984/* end confdefs.h. */ 9985int i; 9986_ACEOF 9987if ac_fn_c_try_compile "$LINENO"; then : 9988 xorg_cv_cc_flag_unused_command_line_argument=yes 9989else 9990 xorg_cv_cc_flag_unused_command_line_argument=no 9991fi 9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9993fi 9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9997 CFLAGS="$xorg_testset_save_CFLAGS" 9998fi 9999 10000found="no" 10001 10002 if test $found = "no" ; then 10003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10005 fi 10006 10007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10009 fi 10010 10011 CFLAGS="$CFLAGS -pedantic" 10012 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10014$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10015 cacheid=xorg_cv_cc_flag__pedantic 10016 if eval \${$cacheid+:} false; then : 10017 $as_echo_n "(cached) " >&6 10018else 10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020/* end confdefs.h. */ 10021int i; 10022int 10023main () 10024{ 10025 10026 ; 10027 return 0; 10028} 10029_ACEOF 10030if ac_fn_c_try_link "$LINENO"; then : 10031 eval $cacheid=yes 10032else 10033 eval $cacheid=no 10034fi 10035rm -f core conftest.err conftest.$ac_objext \ 10036 conftest$ac_exeext conftest.$ac_ext 10037fi 10038 10039 10040 CFLAGS="$xorg_testset_save_CFLAGS" 10041 10042 eval supported=\$$cacheid 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10044$as_echo "$supported" >&6; } 10045 if test "$supported" = "yes" ; then 10046 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10047 found="yes" 10048 fi 10049 fi 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065xorg_testset_save_CFLAGS="$CFLAGS" 10066 10067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10072 $as_echo_n "(cached) " >&6 10073else 10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075/* end confdefs.h. */ 10076int i; 10077_ACEOF 10078if ac_fn_c_try_compile "$LINENO"; then : 10079 xorg_cv_cc_flag_unknown_warning_option=yes 10080else 10081 xorg_cv_cc_flag_unknown_warning_option=no 10082fi 10083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10084fi 10085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10088 CFLAGS="$xorg_testset_save_CFLAGS" 10089fi 10090 10091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10094 fi 10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10099 $as_echo_n "(cached) " >&6 10100else 10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10102/* end confdefs.h. */ 10103int i; 10104_ACEOF 10105if ac_fn_c_try_compile "$LINENO"; then : 10106 xorg_cv_cc_flag_unused_command_line_argument=yes 10107else 10108 xorg_cv_cc_flag_unused_command_line_argument=no 10109fi 10110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10111fi 10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10115 CFLAGS="$xorg_testset_save_CFLAGS" 10116fi 10117 10118found="no" 10119 10120 if test $found = "no" ; then 10121 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10123 fi 10124 10125 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10127 fi 10128 10129 CFLAGS="$CFLAGS -Werror" 10130 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10132$as_echo_n "checking if $CC supports -Werror... " >&6; } 10133 cacheid=xorg_cv_cc_flag__Werror 10134 if eval \${$cacheid+:} false; then : 10135 $as_echo_n "(cached) " >&6 10136else 10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10138/* end confdefs.h. */ 10139int i; 10140int 10141main () 10142{ 10143 10144 ; 10145 return 0; 10146} 10147_ACEOF 10148if ac_fn_c_try_link "$LINENO"; then : 10149 eval $cacheid=yes 10150else 10151 eval $cacheid=no 10152fi 10153rm -f core conftest.err conftest.$ac_objext \ 10154 conftest$ac_exeext conftest.$ac_ext 10155fi 10156 10157 10158 CFLAGS="$xorg_testset_save_CFLAGS" 10159 10160 eval supported=\$$cacheid 10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10162$as_echo "$supported" >&6; } 10163 if test "$supported" = "yes" ; then 10164 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10165 found="yes" 10166 fi 10167 fi 10168 10169 if test $found = "no" ; then 10170 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10172 fi 10173 10174 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10176 fi 10177 10178 CFLAGS="$CFLAGS -errwarn" 10179 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10181$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10182 cacheid=xorg_cv_cc_flag__errwarn 10183 if eval \${$cacheid+:} false; then : 10184 $as_echo_n "(cached) " >&6 10185else 10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10187/* end confdefs.h. */ 10188int i; 10189int 10190main () 10191{ 10192 10193 ; 10194 return 0; 10195} 10196_ACEOF 10197if ac_fn_c_try_link "$LINENO"; then : 10198 eval $cacheid=yes 10199else 10200 eval $cacheid=no 10201fi 10202rm -f core conftest.err conftest.$ac_objext \ 10203 conftest$ac_exeext conftest.$ac_ext 10204fi 10205 10206 10207 CFLAGS="$xorg_testset_save_CFLAGS" 10208 10209 eval supported=\$$cacheid 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10211$as_echo "$supported" >&6; } 10212 if test "$supported" = "yes" ; then 10213 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10214 found="yes" 10215 fi 10216 fi 10217 10218 10219 10220# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10221# activate it with -Werror, so we add it here explicitly. 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235xorg_testset_save_CFLAGS="$CFLAGS" 10236 10237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10240$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10241if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10242 $as_echo_n "(cached) " >&6 10243else 10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10245/* end confdefs.h. */ 10246int i; 10247_ACEOF 10248if ac_fn_c_try_compile "$LINENO"; then : 10249 xorg_cv_cc_flag_unknown_warning_option=yes 10250else 10251 xorg_cv_cc_flag_unknown_warning_option=no 10252fi 10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10254fi 10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10256$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10258 CFLAGS="$xorg_testset_save_CFLAGS" 10259fi 10260 10261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10264 fi 10265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10268if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10269 $as_echo_n "(cached) " >&6 10270else 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273int i; 10274_ACEOF 10275if ac_fn_c_try_compile "$LINENO"; then : 10276 xorg_cv_cc_flag_unused_command_line_argument=yes 10277else 10278 xorg_cv_cc_flag_unused_command_line_argument=no 10279fi 10280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10281fi 10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10283$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10285 CFLAGS="$xorg_testset_save_CFLAGS" 10286fi 10287 10288found="no" 10289 10290 if test $found = "no" ; then 10291 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10293 fi 10294 10295 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10297 fi 10298 10299 CFLAGS="$CFLAGS -Werror=attributes" 10300 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10302$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10303 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10304 if eval \${$cacheid+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10308/* end confdefs.h. */ 10309int i; 10310int 10311main () 10312{ 10313 10314 ; 10315 return 0; 10316} 10317_ACEOF 10318if ac_fn_c_try_link "$LINENO"; then : 10319 eval $cacheid=yes 10320else 10321 eval $cacheid=no 10322fi 10323rm -f core conftest.err conftest.$ac_objext \ 10324 conftest$ac_exeext conftest.$ac_ext 10325fi 10326 10327 10328 CFLAGS="$xorg_testset_save_CFLAGS" 10329 10330 eval supported=\$$cacheid 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10332$as_echo "$supported" >&6; } 10333 if test "$supported" = "yes" ; then 10334 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10335 found="yes" 10336 fi 10337 fi 10338 10339 10340 10341if test "x$STRICT_COMPILE" = "xyes"; then 10342 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10343 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10344fi 10345 10346 10347 10348 10349 10350 10351cat >>confdefs.h <<_ACEOF 10352#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10353_ACEOF 10354 10355 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10356 if test "x$PVM" = "x"; then 10357 PVM="0" 10358 fi 10359 10360cat >>confdefs.h <<_ACEOF 10361#define PACKAGE_VERSION_MINOR $PVM 10362_ACEOF 10363 10364 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10365 if test "x$PVP" = "x"; then 10366 PVP="0" 10367 fi 10368 10369cat >>confdefs.h <<_ACEOF 10370#define PACKAGE_VERSION_PATCHLEVEL $PVP 10371_ACEOF 10372 10373 10374 10375CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10376mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10377|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10378echo 'git directory not found: installing possibly empty changelog.' >&2)" 10379 10380 10381 10382 10383macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10384INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10385mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10386|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10387echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10388 10389 10390 10391 10392 10393 10394if test x$APP_MAN_SUFFIX = x ; then 10395 APP_MAN_SUFFIX=1 10396fi 10397if test x$APP_MAN_DIR = x ; then 10398 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10399fi 10400 10401if test x$LIB_MAN_SUFFIX = x ; then 10402 LIB_MAN_SUFFIX=3 10403fi 10404if test x$LIB_MAN_DIR = x ; then 10405 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10406fi 10407 10408if test x$FILE_MAN_SUFFIX = x ; then 10409 case $host_os in 10410 solaris*) FILE_MAN_SUFFIX=4 ;; 10411 *) FILE_MAN_SUFFIX=5 ;; 10412 esac 10413fi 10414if test x$FILE_MAN_DIR = x ; then 10415 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10416fi 10417 10418if test x$MISC_MAN_SUFFIX = x ; then 10419 case $host_os in 10420 solaris*) MISC_MAN_SUFFIX=5 ;; 10421 *) MISC_MAN_SUFFIX=7 ;; 10422 esac 10423fi 10424if test x$MISC_MAN_DIR = x ; then 10425 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10426fi 10427 10428if test x$DRIVER_MAN_SUFFIX = x ; then 10429 case $host_os in 10430 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10431 *) DRIVER_MAN_SUFFIX=4 ;; 10432 esac 10433fi 10434if test x$DRIVER_MAN_DIR = x ; then 10435 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10436fi 10437 10438if test x$ADMIN_MAN_SUFFIX = x ; then 10439 case $host_os in 10440 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10441 *) ADMIN_MAN_SUFFIX=8 ;; 10442 esac 10443fi 10444if test x$ADMIN_MAN_DIR = x ; then 10445 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10446fi 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462XORG_MAN_PAGE="X Version 11" 10463 10464MAN_SUBSTS="\ 10465 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10466 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10467 -e 's|__xservername__|Xorg|g' \ 10468 -e 's|__xconfigfile__|xorg.conf|g' \ 10469 -e 's|__projectroot__|\$(prefix)|g' \ 10470 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10471 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10472 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10473 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10474 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10475 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10476 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10477 10478 10479 10480# Check whether --enable-silent-rules was given. 10481if test "${enable_silent_rules+set}" = set; then : 10482 enableval=$enable_silent_rules; 10483fi 10484 10485case $enable_silent_rules in # ((( 10486 yes) AM_DEFAULT_VERBOSITY=0;; 10487 no) AM_DEFAULT_VERBOSITY=1;; 10488 *) AM_DEFAULT_VERBOSITY=0;; 10489esac 10490am_make=${MAKE-make} 10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10492$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10493if ${am_cv_make_support_nested_variables+:} false; then : 10494 $as_echo_n "(cached) " >&6 10495else 10496 if $as_echo 'TRUE=$(BAR$(V)) 10497BAR0=false 10498BAR1=true 10499V=1 10500am__doit: 10501 @$(TRUE) 10502.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10503 am_cv_make_support_nested_variables=yes 10504else 10505 am_cv_make_support_nested_variables=no 10506fi 10507fi 10508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10509$as_echo "$am_cv_make_support_nested_variables" >&6; } 10510if test $am_cv_make_support_nested_variables = yes; then 10511 AM_V='$(V)' 10512 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10513else 10514 AM_V=$AM_DEFAULT_VERBOSITY 10515 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10516fi 10517AM_BACKSLASH='\' 10518 10519 10520 10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 10522$as_echo_n "checking for floor in -lm... " >&6; } 10523if ${ac_cv_lib_m_floor+:} false; then : 10524 $as_echo_n "(cached) " >&6 10525else 10526 ac_check_lib_save_LIBS=$LIBS 10527LIBS="-lm $LIBS" 10528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530 10531/* Override any GCC internal prototype to avoid an error. 10532 Use char because int might match the return type of a GCC 10533 builtin and then its argument prototype would still apply. */ 10534#ifdef __cplusplus 10535extern "C" 10536#endif 10537char floor (); 10538int 10539main () 10540{ 10541return floor (); 10542 ; 10543 return 0; 10544} 10545_ACEOF 10546if ac_fn_c_try_link "$LINENO"; then : 10547 ac_cv_lib_m_floor=yes 10548else 10549 ac_cv_lib_m_floor=no 10550fi 10551rm -f core conftest.err conftest.$ac_objext \ 10552 conftest$ac_exeext conftest.$ac_ext 10553LIBS=$ac_check_lib_save_LIBS 10554fi 10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 10556$as_echo "$ac_cv_lib_m_floor" >&6; } 10557if test "x$ac_cv_lib_m_floor" = xyes; then : 10558 cat >>confdefs.h <<_ACEOF 10559#define HAVE_LIBM 1 10560_ACEOF 10561 10562 LIBS="-lm $LIBS" 10563 10564fi 10565 10566 10567# Checks for pkg-config packages 10568 10569pkg_failed=no 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5 10571$as_echo_n "checking for XRANDR... " >&6; } 10572 10573if test -n "$XRANDR_CFLAGS"; then 10574 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS" 10575 elif test -n "$PKG_CONFIG"; then 10576 if test -n "$PKG_CONFIG" && \ 10577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.4 xrender x11 xproto >= 7.0.17\""; } >&5 10578 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.4 xrender x11 xproto >= 7.0.17") 2>&5 10579 ac_status=$? 10580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10581 test $ac_status = 0; }; then 10582 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>/dev/null` 10583else 10584 pkg_failed=yes 10585fi 10586 else 10587 pkg_failed=untried 10588fi 10589if test -n "$XRANDR_LIBS"; then 10590 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS" 10591 elif test -n "$PKG_CONFIG"; then 10592 if test -n "$PKG_CONFIG" && \ 10593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.4 xrender x11 xproto >= 7.0.17\""; } >&5 10594 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.4 xrender x11 xproto >= 7.0.17") 2>&5 10595 ac_status=$? 10596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10597 test $ac_status = 0; }; then 10598 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>/dev/null` 10599else 10600 pkg_failed=yes 10601fi 10602 else 10603 pkg_failed=untried 10604fi 10605 10606 10607 10608if test $pkg_failed = yes; then 10609 10610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10611 _pkg_short_errors_supported=yes 10612else 10613 _pkg_short_errors_supported=no 10614fi 10615 if test $_pkg_short_errors_supported = yes; then 10616 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>&1` 10617 else 10618 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrandr >= 1.4 xrender x11 xproto >= 7.0.17" 2>&1` 10619 fi 10620 # Put the nasty error message in config.log where it belongs 10621 echo "$XRANDR_PKG_ERRORS" >&5 10622 10623 as_fn_error $? "Package requirements (xrandr >= 1.4 xrender x11 xproto >= 7.0.17) were not met: 10624 10625$XRANDR_PKG_ERRORS 10626 10627Consider adjusting the PKG_CONFIG_PATH environment variable if you 10628installed software in a non-standard prefix. 10629 10630Alternatively, you may set the environment variables XRANDR_CFLAGS 10631and XRANDR_LIBS to avoid the need to call pkg-config. 10632See the pkg-config man page for more details. 10633" "$LINENO" 5 10634elif test $pkg_failed = untried; then 10635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10637as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10638is in your PATH or set the PKG_CONFIG environment variable to the full 10639path to pkg-config. 10640 10641Alternatively, you may set the environment variables XRANDR_CFLAGS 10642and XRANDR_LIBS to avoid the need to call pkg-config. 10643See the pkg-config man page for more details. 10644 10645To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10646See \`config.log' for more details" "$LINENO" 5; } 10647else 10648 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS 10649 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10651$as_echo "yes" >&6; } 10652 : 10653fi 10654 10655ac_config_files="$ac_config_files Makefile man/Makefile" 10656 10657cat >confcache <<\_ACEOF 10658# This file is a shell script that caches the results of configure 10659# tests run on this system so they can be shared between configure 10660# scripts and configure runs, see configure's option --config-cache. 10661# It is not useful on other systems. If it contains results you don't 10662# want to keep, you may remove or edit it. 10663# 10664# config.status only pays attention to the cache file if you give it 10665# the --recheck option to rerun configure. 10666# 10667# `ac_cv_env_foo' variables (set or unset) will be overridden when 10668# loading this file, other *unset* `ac_cv_foo' will be assigned the 10669# following values. 10670 10671_ACEOF 10672 10673# The following way of writing the cache mishandles newlines in values, 10674# but we know of no workaround that is simple, portable, and efficient. 10675# So, we kill variables containing newlines. 10676# Ultrix sh set writes to stderr and can't be redirected directly, 10677# and sets the high bit in the cache file unless we assign to the vars. 10678( 10679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10680 eval ac_val=\$$ac_var 10681 case $ac_val in #( 10682 *${as_nl}*) 10683 case $ac_var in #( 10684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10685$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10686 esac 10687 case $ac_var in #( 10688 _ | IFS | as_nl) ;; #( 10689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10690 *) { eval $ac_var=; unset $ac_var;} ;; 10691 esac ;; 10692 esac 10693 done 10694 10695 (set) 2>&1 | 10696 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10697 *${as_nl}ac_space=\ *) 10698 # `set' does not quote correctly, so add quotes: double-quote 10699 # substitution turns \\\\ into \\, and sed turns \\ into \. 10700 sed -n \ 10701 "s/'/'\\\\''/g; 10702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10703 ;; #( 10704 *) 10705 # `set' quotes correctly as required by POSIX, so do not add quotes. 10706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10707 ;; 10708 esac | 10709 sort 10710) | 10711 sed ' 10712 /^ac_cv_env_/b end 10713 t clear 10714 :clear 10715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10716 t end 10717 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10718 :end' >>confcache 10719if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10720 if test -w "$cache_file"; then 10721 if test "x$cache_file" != "x/dev/null"; then 10722 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10723$as_echo "$as_me: updating cache $cache_file" >&6;} 10724 if test ! -f "$cache_file" || test -h "$cache_file"; then 10725 cat confcache >"$cache_file" 10726 else 10727 case $cache_file in #( 10728 */* | ?:*) 10729 mv -f confcache "$cache_file"$$ && 10730 mv -f "$cache_file"$$ "$cache_file" ;; #( 10731 *) 10732 mv -f confcache "$cache_file" ;; 10733 esac 10734 fi 10735 fi 10736 else 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10738$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10739 fi 10740fi 10741rm -f confcache 10742 10743test "x$prefix" = xNONE && prefix=$ac_default_prefix 10744# Let make expand exec_prefix. 10745test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10746 10747DEFS=-DHAVE_CONFIG_H 10748 10749ac_libobjs= 10750ac_ltlibobjs= 10751U= 10752for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10753 # 1. Remove the extension, and $U if already installed. 10754 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10755 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10756 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10757 # will be set to the directory where LIBOBJS objects are built. 10758 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10759 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10760done 10761LIBOBJS=$ac_libobjs 10762 10763LTLIBOBJS=$ac_ltlibobjs 10764 10765 10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10767$as_echo_n "checking that generated files are newer than configure... " >&6; } 10768 if test -n "$am_sleep_pid"; then 10769 # Hide warnings about reused PIDs. 10770 wait $am_sleep_pid 2>/dev/null 10771 fi 10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10773$as_echo "done" >&6; } 10774 if test -n "$EXEEXT"; then 10775 am__EXEEXT_TRUE= 10776 am__EXEEXT_FALSE='#' 10777else 10778 am__EXEEXT_TRUE='#' 10779 am__EXEEXT_FALSE= 10780fi 10781 10782if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10783 as_fn_error $? "conditional \"AMDEP\" was never defined. 10784Usually this means the macro was only invoked conditionally." "$LINENO" 5 10785fi 10786if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10787 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10788Usually this means the macro was only invoked conditionally." "$LINENO" 5 10789fi 10790 10791: "${CONFIG_STATUS=./config.status}" 10792ac_write_fail=0 10793ac_clean_files_save=$ac_clean_files 10794ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10795{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10796$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10797as_write_fail=0 10798cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10799#! $SHELL 10800# Generated by $as_me. 10801# Run this file to recreate the current configuration. 10802# Compiler output produced by configure, useful for debugging 10803# configure, is in config.log if it exists. 10804 10805debug=false 10806ac_cs_recheck=false 10807ac_cs_silent=false 10808 10809SHELL=\${CONFIG_SHELL-$SHELL} 10810export SHELL 10811_ASEOF 10812cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10813## -------------------- ## 10814## M4sh Initialization. ## 10815## -------------------- ## 10816 10817# Be more Bourne compatible 10818DUALCASE=1; export DUALCASE # for MKS sh 10819if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10820 emulate sh 10821 NULLCMD=: 10822 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10823 # is contrary to our usage. Disable this feature. 10824 alias -g '${1+"$@"}'='"$@"' 10825 setopt NO_GLOB_SUBST 10826else 10827 case `(set -o) 2>/dev/null` in #( 10828 *posix*) : 10829 set -o posix ;; #( 10830 *) : 10831 ;; 10832esac 10833fi 10834 10835 10836as_nl=' 10837' 10838export as_nl 10839# Printing a long string crashes Solaris 7 /usr/bin/printf. 10840as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10841as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10843# Prefer a ksh shell builtin over an external printf program on Solaris, 10844# but without wasting forks for bash or zsh. 10845if test -z "$BASH_VERSION$ZSH_VERSION" \ 10846 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10847 as_echo='print -r --' 10848 as_echo_n='print -rn --' 10849elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10850 as_echo='printf %s\n' 10851 as_echo_n='printf %s' 10852else 10853 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10854 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10855 as_echo_n='/usr/ucb/echo -n' 10856 else 10857 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10858 as_echo_n_body='eval 10859 arg=$1; 10860 case $arg in #( 10861 *"$as_nl"*) 10862 expr "X$arg" : "X\\(.*\\)$as_nl"; 10863 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10864 esac; 10865 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10866 ' 10867 export as_echo_n_body 10868 as_echo_n='sh -c $as_echo_n_body as_echo' 10869 fi 10870 export as_echo_body 10871 as_echo='sh -c $as_echo_body as_echo' 10872fi 10873 10874# The user is always right. 10875if test "${PATH_SEPARATOR+set}" != set; then 10876 PATH_SEPARATOR=: 10877 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10878 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10879 PATH_SEPARATOR=';' 10880 } 10881fi 10882 10883 10884# IFS 10885# We need space, tab and new line, in precisely that order. Quoting is 10886# there to prevent editors from complaining about space-tab. 10887# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10888# splitting by setting IFS to empty value.) 10889IFS=" "" $as_nl" 10890 10891# Find who we are. Look in the path if we contain no directory separator. 10892as_myself= 10893case $0 in #(( 10894 *[\\/]* ) as_myself=$0 ;; 10895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10896for as_dir in $PATH 10897do 10898 IFS=$as_save_IFS 10899 test -z "$as_dir" && as_dir=. 10900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10901 done 10902IFS=$as_save_IFS 10903 10904 ;; 10905esac 10906# We did not find ourselves, most probably we were run as `sh COMMAND' 10907# in which case we are not to be found in the path. 10908if test "x$as_myself" = x; then 10909 as_myself=$0 10910fi 10911if test ! -f "$as_myself"; then 10912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10913 exit 1 10914fi 10915 10916# Unset variables that we do not need and which cause bugs (e.g. in 10917# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10918# suppresses any "Segmentation fault" message there. '((' could 10919# trigger a bug in pdksh 5.2.14. 10920for as_var in BASH_ENV ENV MAIL MAILPATH 10921do eval test x\${$as_var+set} = xset \ 10922 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10923done 10924PS1='$ ' 10925PS2='> ' 10926PS4='+ ' 10927 10928# NLS nuisances. 10929LC_ALL=C 10930export LC_ALL 10931LANGUAGE=C 10932export LANGUAGE 10933 10934# CDPATH. 10935(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10936 10937 10938# as_fn_error STATUS ERROR [LINENO LOG_FD] 10939# ---------------------------------------- 10940# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10941# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10942# script with STATUS, using 1 if that was 0. 10943as_fn_error () 10944{ 10945 as_status=$1; test $as_status -eq 0 && as_status=1 10946 if test "$4"; then 10947 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10949 fi 10950 $as_echo "$as_me: error: $2" >&2 10951 as_fn_exit $as_status 10952} # as_fn_error 10953 10954 10955# as_fn_set_status STATUS 10956# ----------------------- 10957# Set $? to STATUS, without forking. 10958as_fn_set_status () 10959{ 10960 return $1 10961} # as_fn_set_status 10962 10963# as_fn_exit STATUS 10964# ----------------- 10965# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10966as_fn_exit () 10967{ 10968 set +e 10969 as_fn_set_status $1 10970 exit $1 10971} # as_fn_exit 10972 10973# as_fn_unset VAR 10974# --------------- 10975# Portably unset VAR. 10976as_fn_unset () 10977{ 10978 { eval $1=; unset $1;} 10979} 10980as_unset=as_fn_unset 10981# as_fn_append VAR VALUE 10982# ---------------------- 10983# Append the text in VALUE to the end of the definition contained in VAR. Take 10984# advantage of any shell optimizations that allow amortized linear growth over 10985# repeated appends, instead of the typical quadratic growth present in naive 10986# implementations. 10987if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10988 eval 'as_fn_append () 10989 { 10990 eval $1+=\$2 10991 }' 10992else 10993 as_fn_append () 10994 { 10995 eval $1=\$$1\$2 10996 } 10997fi # as_fn_append 10998 10999# as_fn_arith ARG... 11000# ------------------ 11001# Perform arithmetic evaluation on the ARGs, and store the result in the 11002# global $as_val. Take advantage of shells that can avoid forks. The arguments 11003# must be portable across $(()) and expr. 11004if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11005 eval 'as_fn_arith () 11006 { 11007 as_val=$(( $* )) 11008 }' 11009else 11010 as_fn_arith () 11011 { 11012 as_val=`expr "$@" || test $? -eq 1` 11013 } 11014fi # as_fn_arith 11015 11016 11017if expr a : '\(a\)' >/dev/null 2>&1 && 11018 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11019 as_expr=expr 11020else 11021 as_expr=false 11022fi 11023 11024if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11025 as_basename=basename 11026else 11027 as_basename=false 11028fi 11029 11030if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11031 as_dirname=dirname 11032else 11033 as_dirname=false 11034fi 11035 11036as_me=`$as_basename -- "$0" || 11037$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11038 X"$0" : 'X\(//\)$' \| \ 11039 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11040$as_echo X/"$0" | 11041 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11042 s//\1/ 11043 q 11044 } 11045 /^X\/\(\/\/\)$/{ 11046 s//\1/ 11047 q 11048 } 11049 /^X\/\(\/\).*/{ 11050 s//\1/ 11051 q 11052 } 11053 s/.*/./; q'` 11054 11055# Avoid depending upon Character Ranges. 11056as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11057as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11058as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11059as_cr_digits='0123456789' 11060as_cr_alnum=$as_cr_Letters$as_cr_digits 11061 11062ECHO_C= ECHO_N= ECHO_T= 11063case `echo -n x` in #((((( 11064-n*) 11065 case `echo 'xy\c'` in 11066 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11067 xy) ECHO_C='\c';; 11068 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11069 ECHO_T=' ';; 11070 esac;; 11071*) 11072 ECHO_N='-n';; 11073esac 11074 11075rm -f conf$$ conf$$.exe conf$$.file 11076if test -d conf$$.dir; then 11077 rm -f conf$$.dir/conf$$.file 11078else 11079 rm -f conf$$.dir 11080 mkdir conf$$.dir 2>/dev/null 11081fi 11082if (echo >conf$$.file) 2>/dev/null; then 11083 if ln -s conf$$.file conf$$ 2>/dev/null; then 11084 as_ln_s='ln -s' 11085 # ... but there are two gotchas: 11086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11088 # In both cases, we have to default to `cp -p'. 11089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11090 as_ln_s='cp -p' 11091 elif ln conf$$.file conf$$ 2>/dev/null; then 11092 as_ln_s=ln 11093 else 11094 as_ln_s='cp -p' 11095 fi 11096else 11097 as_ln_s='cp -p' 11098fi 11099rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11100rmdir conf$$.dir 2>/dev/null 11101 11102 11103# as_fn_mkdir_p 11104# ------------- 11105# Create "$as_dir" as a directory, including parents if necessary. 11106as_fn_mkdir_p () 11107{ 11108 11109 case $as_dir in #( 11110 -*) as_dir=./$as_dir;; 11111 esac 11112 test -d "$as_dir" || eval $as_mkdir_p || { 11113 as_dirs= 11114 while :; do 11115 case $as_dir in #( 11116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11117 *) as_qdir=$as_dir;; 11118 esac 11119 as_dirs="'$as_qdir' $as_dirs" 11120 as_dir=`$as_dirname -- "$as_dir" || 11121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11122 X"$as_dir" : 'X\(//\)[^/]' \| \ 11123 X"$as_dir" : 'X\(//\)$' \| \ 11124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11125$as_echo X"$as_dir" | 11126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11127 s//\1/ 11128 q 11129 } 11130 /^X\(\/\/\)[^/].*/{ 11131 s//\1/ 11132 q 11133 } 11134 /^X\(\/\/\)$/{ 11135 s//\1/ 11136 q 11137 } 11138 /^X\(\/\).*/{ 11139 s//\1/ 11140 q 11141 } 11142 s/.*/./; q'` 11143 test -d "$as_dir" && break 11144 done 11145 test -z "$as_dirs" || eval "mkdir $as_dirs" 11146 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11147 11148 11149} # as_fn_mkdir_p 11150if mkdir -p . 2>/dev/null; then 11151 as_mkdir_p='mkdir -p "$as_dir"' 11152else 11153 test -d ./-p && rmdir ./-p 11154 as_mkdir_p=false 11155fi 11156 11157if test -x / >/dev/null 2>&1; then 11158 as_test_x='test -x' 11159else 11160 if ls -dL / >/dev/null 2>&1; then 11161 as_ls_L_option=L 11162 else 11163 as_ls_L_option= 11164 fi 11165 as_test_x=' 11166 eval sh -c '\'' 11167 if test -d "$1"; then 11168 test -d "$1/."; 11169 else 11170 case $1 in #( 11171 -*)set "./$1";; 11172 esac; 11173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11174 ???[sx]*):;;*)false;;esac;fi 11175 '\'' sh 11176 ' 11177fi 11178as_executable_p=$as_test_x 11179 11180# Sed expression to map a string onto a valid CPP name. 11181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11182 11183# Sed expression to map a string onto a valid variable name. 11184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11185 11186 11187exec 6>&1 11188## ----------------------------------- ## 11189## Main body of $CONFIG_STATUS script. ## 11190## ----------------------------------- ## 11191_ASEOF 11192test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11193 11194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11195# Save the log message, to keep $0 and so on meaningful, and to 11196# report actual input values of CONFIG_FILES etc. instead of their 11197# values after options handling. 11198ac_log=" 11199This file was extended by xrandr $as_me 1.4.1, which was 11200generated by GNU Autoconf 2.68. Invocation command line was 11201 11202 CONFIG_FILES = $CONFIG_FILES 11203 CONFIG_HEADERS = $CONFIG_HEADERS 11204 CONFIG_LINKS = $CONFIG_LINKS 11205 CONFIG_COMMANDS = $CONFIG_COMMANDS 11206 $ $0 $@ 11207 11208on `(hostname || uname -n) 2>/dev/null | sed 1q` 11209" 11210 11211_ACEOF 11212 11213case $ac_config_files in *" 11214"*) set x $ac_config_files; shift; ac_config_files=$*;; 11215esac 11216 11217case $ac_config_headers in *" 11218"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11219esac 11220 11221 11222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11223# Files that config.status was made for. 11224config_files="$ac_config_files" 11225config_headers="$ac_config_headers" 11226config_commands="$ac_config_commands" 11227 11228_ACEOF 11229 11230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11231ac_cs_usage="\ 11232\`$as_me' instantiates files and other configuration actions 11233from templates according to the current configuration. Unless the files 11234and actions are specified as TAGs, all are instantiated by default. 11235 11236Usage: $0 [OPTION]... [TAG]... 11237 11238 -h, --help print this help, then exit 11239 -V, --version print version number and configuration settings, then exit 11240 --config print configuration, then exit 11241 -q, --quiet, --silent 11242 do not print progress messages 11243 -d, --debug don't remove temporary files 11244 --recheck update $as_me by reconfiguring in the same conditions 11245 --file=FILE[:TEMPLATE] 11246 instantiate the configuration file FILE 11247 --header=FILE[:TEMPLATE] 11248 instantiate the configuration header FILE 11249 11250Configuration files: 11251$config_files 11252 11253Configuration headers: 11254$config_headers 11255 11256Configuration commands: 11257$config_commands 11258 11259Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11260 11261_ACEOF 11262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11263ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11264ac_cs_version="\\ 11265xrandr config.status 1.4.1 11266configured by $0, generated by GNU Autoconf 2.68, 11267 with options \\"\$ac_cs_config\\" 11268 11269Copyright (C) 2010 Free Software Foundation, Inc. 11270This config.status script is free software; the Free Software Foundation 11271gives unlimited permission to copy, distribute and modify it." 11272 11273ac_pwd='$ac_pwd' 11274srcdir='$srcdir' 11275INSTALL='$INSTALL' 11276MKDIR_P='$MKDIR_P' 11277AWK='$AWK' 11278test -n "\$AWK" || AWK=awk 11279_ACEOF 11280 11281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11282# The default lists apply if the user does not specify any file. 11283ac_need_defaults=: 11284while test $# != 0 11285do 11286 case $1 in 11287 --*=?*) 11288 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11289 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11290 ac_shift=: 11291 ;; 11292 --*=) 11293 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11294 ac_optarg= 11295 ac_shift=: 11296 ;; 11297 *) 11298 ac_option=$1 11299 ac_optarg=$2 11300 ac_shift=shift 11301 ;; 11302 esac 11303 11304 case $ac_option in 11305 # Handling of the options. 11306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11307 ac_cs_recheck=: ;; 11308 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11309 $as_echo "$ac_cs_version"; exit ;; 11310 --config | --confi | --conf | --con | --co | --c ) 11311 $as_echo "$ac_cs_config"; exit ;; 11312 --debug | --debu | --deb | --de | --d | -d ) 11313 debug=: ;; 11314 --file | --fil | --fi | --f ) 11315 $ac_shift 11316 case $ac_optarg in 11317 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11318 '') as_fn_error $? "missing file argument" ;; 11319 esac 11320 as_fn_append CONFIG_FILES " '$ac_optarg'" 11321 ac_need_defaults=false;; 11322 --header | --heade | --head | --hea ) 11323 $ac_shift 11324 case $ac_optarg in 11325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11326 esac 11327 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11328 ac_need_defaults=false;; 11329 --he | --h) 11330 # Conflict between --help and --header 11331 as_fn_error $? "ambiguous option: \`$1' 11332Try \`$0 --help' for more information.";; 11333 --help | --hel | -h ) 11334 $as_echo "$ac_cs_usage"; exit ;; 11335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11336 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11337 ac_cs_silent=: ;; 11338 11339 # This is an error. 11340 -*) as_fn_error $? "unrecognized option: \`$1' 11341Try \`$0 --help' for more information." ;; 11342 11343 *) as_fn_append ac_config_targets " $1" 11344 ac_need_defaults=false ;; 11345 11346 esac 11347 shift 11348done 11349 11350ac_configure_extra_args= 11351 11352if $ac_cs_silent; then 11353 exec 6>/dev/null 11354 ac_configure_extra_args="$ac_configure_extra_args --silent" 11355fi 11356 11357_ACEOF 11358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11359if \$ac_cs_recheck; then 11360 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11361 shift 11362 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11363 CONFIG_SHELL='$SHELL' 11364 export CONFIG_SHELL 11365 exec "\$@" 11366fi 11367 11368_ACEOF 11369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11370exec 5>>config.log 11371{ 11372 echo 11373 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11374## Running $as_me. ## 11375_ASBOX 11376 $as_echo "$ac_log" 11377} >&5 11378 11379_ACEOF 11380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11381# 11382# INIT-COMMANDS 11383# 11384AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11385 11386_ACEOF 11387 11388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11389 11390# Handling of arguments. 11391for ac_config_target in $ac_config_targets 11392do 11393 case $ac_config_target in 11394 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11395 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11396 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11397 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11398 11399 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11400 esac 11401done 11402 11403 11404# If the user did not use the arguments to specify the items to instantiate, 11405# then the envvar interface is used. Set only those that are not. 11406# We use the long form for the default assignment because of an extremely 11407# bizarre bug on SunOS 4.1.3. 11408if $ac_need_defaults; then 11409 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11410 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11412fi 11413 11414# Have a temporary directory for convenience. Make it in the build tree 11415# simply because there is no reason against having it here, and in addition, 11416# creating and moving files from /tmp can sometimes cause problems. 11417# Hook for its removal unless debugging. 11418# Note that there is a small window in which the directory will not be cleaned: 11419# after its creation but before its name has been assigned to `$tmp'. 11420$debug || 11421{ 11422 tmp= ac_tmp= 11423 trap 'exit_status=$? 11424 : "${ac_tmp:=$tmp}" 11425 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11426' 0 11427 trap 'as_fn_exit 1' 1 2 13 15 11428} 11429# Create a (secure) tmp directory for tmp files. 11430 11431{ 11432 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11433 test -d "$tmp" 11434} || 11435{ 11436 tmp=./conf$$-$RANDOM 11437 (umask 077 && mkdir "$tmp") 11438} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11439ac_tmp=$tmp 11440 11441# Set up the scripts for CONFIG_FILES section. 11442# No need to generate them if there are no CONFIG_FILES. 11443# This happens for instance with `./config.status config.h'. 11444if test -n "$CONFIG_FILES"; then 11445 11446 11447ac_cr=`echo X | tr X '\015'` 11448# On cygwin, bash can eat \r inside `` if the user requested igncr. 11449# But we know of no other shell where ac_cr would be empty at this 11450# point, so we can use a bashism as a fallback. 11451if test "x$ac_cr" = x; then 11452 eval ac_cr=\$\'\\r\' 11453fi 11454ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11455if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11456 ac_cs_awk_cr='\\r' 11457else 11458 ac_cs_awk_cr=$ac_cr 11459fi 11460 11461echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11462_ACEOF 11463 11464 11465{ 11466 echo "cat >conf$$subs.awk <<_ACEOF" && 11467 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11468 echo "_ACEOF" 11469} >conf$$subs.sh || 11470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11471ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11472ac_delim='%!_!# ' 11473for ac_last_try in false false false false false :; do 11474 . ./conf$$subs.sh || 11475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11476 11477 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11478 if test $ac_delim_n = $ac_delim_num; then 11479 break 11480 elif $ac_last_try; then 11481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11482 else 11483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11484 fi 11485done 11486rm -f conf$$subs.sh 11487 11488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11489cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11490_ACEOF 11491sed -n ' 11492h 11493s/^/S["/; s/!.*/"]=/ 11494p 11495g 11496s/^[^!]*!// 11497:repl 11498t repl 11499s/'"$ac_delim"'$// 11500t delim 11501:nl 11502h 11503s/\(.\{148\}\)..*/\1/ 11504t more1 11505s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11506p 11507n 11508b repl 11509:more1 11510s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11511p 11512g 11513s/.\{148\}// 11514t nl 11515:delim 11516h 11517s/\(.\{148\}\)..*/\1/ 11518t more2 11519s/["\\]/\\&/g; s/^/"/; s/$/"/ 11520p 11521b 11522:more2 11523s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11524p 11525g 11526s/.\{148\}// 11527t delim 11528' <conf$$subs.awk | sed ' 11529/^[^""]/{ 11530 N 11531 s/\n// 11532} 11533' >>$CONFIG_STATUS || ac_write_fail=1 11534rm -f conf$$subs.awk 11535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11536_ACAWK 11537cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11538 for (key in S) S_is_set[key] = 1 11539 FS = "" 11540 11541} 11542{ 11543 line = $ 0 11544 nfields = split(line, field, "@") 11545 substed = 0 11546 len = length(field[1]) 11547 for (i = 2; i < nfields; i++) { 11548 key = field[i] 11549 keylen = length(key) 11550 if (S_is_set[key]) { 11551 value = S[key] 11552 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11553 len += length(value) + length(field[++i]) 11554 substed = 1 11555 } else 11556 len += 1 + keylen 11557 } 11558 11559 print line 11560} 11561 11562_ACAWK 11563_ACEOF 11564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11565if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11567else 11568 cat 11569fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11570 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11571_ACEOF 11572 11573# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11574# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11575# trailing colons and then remove the whole line if VPATH becomes empty 11576# (actually we leave an empty line to preserve line numbers). 11577if test "x$srcdir" = x.; then 11578 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11579h 11580s/// 11581s/^/:/ 11582s/[ ]*$/:/ 11583s/:\$(srcdir):/:/g 11584s/:\${srcdir}:/:/g 11585s/:@srcdir@:/:/g 11586s/^:*// 11587s/:*$// 11588x 11589s/\(=[ ]*\).*/\1/ 11590G 11591s/\n// 11592s/^[^=]*=[ ]*$// 11593}' 11594fi 11595 11596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11597fi # test -n "$CONFIG_FILES" 11598 11599# Set up the scripts for CONFIG_HEADERS section. 11600# No need to generate them if there are no CONFIG_HEADERS. 11601# This happens for instance with `./config.status Makefile'. 11602if test -n "$CONFIG_HEADERS"; then 11603cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11604BEGIN { 11605_ACEOF 11606 11607# Transform confdefs.h into an awk script `defines.awk', embedded as 11608# here-document in config.status, that substitutes the proper values into 11609# config.h.in to produce config.h. 11610 11611# Create a delimiter string that does not exist in confdefs.h, to ease 11612# handling of long lines. 11613ac_delim='%!_!# ' 11614for ac_last_try in false false :; do 11615 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11616 if test -z "$ac_tt"; then 11617 break 11618 elif $ac_last_try; then 11619 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11620 else 11621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11622 fi 11623done 11624 11625# For the awk script, D is an array of macro values keyed by name, 11626# likewise P contains macro parameters if any. Preserve backslash 11627# newline sequences. 11628 11629ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11630sed -n ' 11631s/.\{148\}/&'"$ac_delim"'/g 11632t rset 11633:rset 11634s/^[ ]*#[ ]*define[ ][ ]*/ / 11635t def 11636d 11637:def 11638s/\\$// 11639t bsnl 11640s/["\\]/\\&/g 11641s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11642D["\1"]=" \3"/p 11643s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11644d 11645:bsnl 11646s/["\\]/\\&/g 11647s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11648D["\1"]=" \3\\\\\\n"\\/p 11649t cont 11650s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11651t cont 11652d 11653:cont 11654n 11655s/.\{148\}/&'"$ac_delim"'/g 11656t clear 11657:clear 11658s/\\$// 11659t bsnlc 11660s/["\\]/\\&/g; s/^/"/; s/$/"/p 11661d 11662:bsnlc 11663s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11664b cont 11665' <confdefs.h | sed ' 11666s/'"$ac_delim"'/"\\\ 11667"/g' >>$CONFIG_STATUS || ac_write_fail=1 11668 11669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11670 for (key in D) D_is_set[key] = 1 11671 FS = "" 11672} 11673/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11674 line = \$ 0 11675 split(line, arg, " ") 11676 if (arg[1] == "#") { 11677 defundef = arg[2] 11678 mac1 = arg[3] 11679 } else { 11680 defundef = substr(arg[1], 2) 11681 mac1 = arg[2] 11682 } 11683 split(mac1, mac2, "(") #) 11684 macro = mac2[1] 11685 prefix = substr(line, 1, index(line, defundef) - 1) 11686 if (D_is_set[macro]) { 11687 # Preserve the white space surrounding the "#". 11688 print prefix "define", macro P[macro] D[macro] 11689 next 11690 } else { 11691 # Replace #undef with comments. This is necessary, for example, 11692 # in the case of _POSIX_SOURCE, which is predefined and required 11693 # on some systems where configure will not decide to define it. 11694 if (defundef == "undef") { 11695 print "/*", prefix defundef, macro, "*/" 11696 next 11697 } 11698 } 11699} 11700{ print } 11701_ACAWK 11702_ACEOF 11703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11704 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11705fi # test -n "$CONFIG_HEADERS" 11706 11707 11708eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11709shift 11710for ac_tag 11711do 11712 case $ac_tag in 11713 :[FHLC]) ac_mode=$ac_tag; continue;; 11714 esac 11715 case $ac_mode$ac_tag in 11716 :[FHL]*:*);; 11717 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11718 :[FH]-) ac_tag=-:-;; 11719 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11720 esac 11721 ac_save_IFS=$IFS 11722 IFS=: 11723 set x $ac_tag 11724 IFS=$ac_save_IFS 11725 shift 11726 ac_file=$1 11727 shift 11728 11729 case $ac_mode in 11730 :L) ac_source=$1;; 11731 :[FH]) 11732 ac_file_inputs= 11733 for ac_f 11734 do 11735 case $ac_f in 11736 -) ac_f="$ac_tmp/stdin";; 11737 *) # Look for the file first in the build tree, then in the source tree 11738 # (if the path is not absolute). The absolute path cannot be DOS-style, 11739 # because $ac_f cannot contain `:'. 11740 test -f "$ac_f" || 11741 case $ac_f in 11742 [\\/$]*) false;; 11743 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11744 esac || 11745 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11746 esac 11747 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11748 as_fn_append ac_file_inputs " '$ac_f'" 11749 done 11750 11751 # Let's still pretend it is `configure' which instantiates (i.e., don't 11752 # use $as_me), people would be surprised to read: 11753 # /* config.h. Generated by config.status. */ 11754 configure_input='Generated from '` 11755 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11756 `' by configure.' 11757 if test x"$ac_file" != x-; then 11758 configure_input="$ac_file. $configure_input" 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11760$as_echo "$as_me: creating $ac_file" >&6;} 11761 fi 11762 # Neutralize special characters interpreted by sed in replacement strings. 11763 case $configure_input in #( 11764 *\&* | *\|* | *\\* ) 11765 ac_sed_conf_input=`$as_echo "$configure_input" | 11766 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11767 *) ac_sed_conf_input=$configure_input;; 11768 esac 11769 11770 case $ac_tag in 11771 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11773 esac 11774 ;; 11775 esac 11776 11777 ac_dir=`$as_dirname -- "$ac_file" || 11778$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11779 X"$ac_file" : 'X\(//\)[^/]' \| \ 11780 X"$ac_file" : 'X\(//\)$' \| \ 11781 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11782$as_echo X"$ac_file" | 11783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11784 s//\1/ 11785 q 11786 } 11787 /^X\(\/\/\)[^/].*/{ 11788 s//\1/ 11789 q 11790 } 11791 /^X\(\/\/\)$/{ 11792 s//\1/ 11793 q 11794 } 11795 /^X\(\/\).*/{ 11796 s//\1/ 11797 q 11798 } 11799 s/.*/./; q'` 11800 as_dir="$ac_dir"; as_fn_mkdir_p 11801 ac_builddir=. 11802 11803case "$ac_dir" in 11804.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11805*) 11806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11807 # A ".." for each directory in $ac_dir_suffix. 11808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11809 case $ac_top_builddir_sub in 11810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11812 esac ;; 11813esac 11814ac_abs_top_builddir=$ac_pwd 11815ac_abs_builddir=$ac_pwd$ac_dir_suffix 11816# for backward compatibility: 11817ac_top_builddir=$ac_top_build_prefix 11818 11819case $srcdir in 11820 .) # We are building in place. 11821 ac_srcdir=. 11822 ac_top_srcdir=$ac_top_builddir_sub 11823 ac_abs_top_srcdir=$ac_pwd ;; 11824 [\\/]* | ?:[\\/]* ) # Absolute name. 11825 ac_srcdir=$srcdir$ac_dir_suffix; 11826 ac_top_srcdir=$srcdir 11827 ac_abs_top_srcdir=$srcdir ;; 11828 *) # Relative name. 11829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11830 ac_top_srcdir=$ac_top_build_prefix$srcdir 11831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11832esac 11833ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11834 11835 11836 case $ac_mode in 11837 :F) 11838 # 11839 # CONFIG_FILE 11840 # 11841 11842 case $INSTALL in 11843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11845 esac 11846 ac_MKDIR_P=$MKDIR_P 11847 case $MKDIR_P in 11848 [\\/$]* | ?:[\\/]* ) ;; 11849 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11850 esac 11851_ACEOF 11852 11853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11854# If the template does not know about datarootdir, expand it. 11855# FIXME: This hack should be removed a few years after 2.60. 11856ac_datarootdir_hack=; ac_datarootdir_seen= 11857ac_sed_dataroot=' 11858/datarootdir/ { 11859 p 11860 q 11861} 11862/@datadir@/p 11863/@docdir@/p 11864/@infodir@/p 11865/@localedir@/p 11866/@mandir@/p' 11867case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11868*datarootdir*) ac_datarootdir_seen=yes;; 11869*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11871$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11872_ACEOF 11873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11874 ac_datarootdir_hack=' 11875 s&@datadir@&$datadir&g 11876 s&@docdir@&$docdir&g 11877 s&@infodir@&$infodir&g 11878 s&@localedir@&$localedir&g 11879 s&@mandir@&$mandir&g 11880 s&\\\${datarootdir}&$datarootdir&g' ;; 11881esac 11882_ACEOF 11883 11884# Neutralize VPATH when `$srcdir' = `.'. 11885# Shell code in configure.ac might set extrasub. 11886# FIXME: do we really want to maintain this feature? 11887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11888ac_sed_extra="$ac_vpsub 11889$extrasub 11890_ACEOF 11891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11892:t 11893/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11894s|@configure_input@|$ac_sed_conf_input|;t t 11895s&@top_builddir@&$ac_top_builddir_sub&;t t 11896s&@top_build_prefix@&$ac_top_build_prefix&;t t 11897s&@srcdir@&$ac_srcdir&;t t 11898s&@abs_srcdir@&$ac_abs_srcdir&;t t 11899s&@top_srcdir@&$ac_top_srcdir&;t t 11900s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11901s&@builddir@&$ac_builddir&;t t 11902s&@abs_builddir@&$ac_abs_builddir&;t t 11903s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11904s&@INSTALL@&$ac_INSTALL&;t t 11905s&@MKDIR_P@&$ac_MKDIR_P&;t t 11906$ac_datarootdir_hack 11907" 11908eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11909 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11910 11911test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11912 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11914 "$ac_tmp/out"`; test -z "$ac_out"; } && 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11916which seems to be undefined. Please make sure it is defined" >&5 11917$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11918which seems to be undefined. Please make sure it is defined" >&2;} 11919 11920 rm -f "$ac_tmp/stdin" 11921 case $ac_file in 11922 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11923 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11924 esac \ 11925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11926 ;; 11927 :H) 11928 # 11929 # CONFIG_HEADER 11930 # 11931 if test x"$ac_file" != x-; then 11932 { 11933 $as_echo "/* $configure_input */" \ 11934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11935 } >"$ac_tmp/config.h" \ 11936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11937 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11939$as_echo "$as_me: $ac_file is unchanged" >&6;} 11940 else 11941 rm -f "$ac_file" 11942 mv "$ac_tmp/config.h" "$ac_file" \ 11943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11944 fi 11945 else 11946 $as_echo "/* $configure_input */" \ 11947 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11948 || as_fn_error $? "could not create -" "$LINENO" 5 11949 fi 11950# Compute "$ac_file"'s index in $config_headers. 11951_am_arg="$ac_file" 11952_am_stamp_count=1 11953for _am_header in $config_headers :; do 11954 case $_am_header in 11955 $_am_arg | $_am_arg:* ) 11956 break ;; 11957 * ) 11958 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11959 esac 11960done 11961echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11962$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11963 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11964 X"$_am_arg" : 'X\(//\)$' \| \ 11965 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11966$as_echo X"$_am_arg" | 11967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11968 s//\1/ 11969 q 11970 } 11971 /^X\(\/\/\)[^/].*/{ 11972 s//\1/ 11973 q 11974 } 11975 /^X\(\/\/\)$/{ 11976 s//\1/ 11977 q 11978 } 11979 /^X\(\/\).*/{ 11980 s//\1/ 11981 q 11982 } 11983 s/.*/./; q'`/stamp-h$_am_stamp_count 11984 ;; 11985 11986 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11987$as_echo "$as_me: executing $ac_file commands" >&6;} 11988 ;; 11989 esac 11990 11991 11992 case $ac_file$ac_mode in 11993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11994 # Older Autoconf quotes --file arguments for eval, but not when files 11995 # are listed without --file. Let's play safe and only enable the eval 11996 # if we detect the quoting. 11997 case $CONFIG_FILES in 11998 *\'*) eval set x "$CONFIG_FILES" ;; 11999 *) set x $CONFIG_FILES ;; 12000 esac 12001 shift 12002 for mf 12003 do 12004 # Strip MF so we end up with the name of the file. 12005 mf=`echo "$mf" | sed -e 's/:.*$//'` 12006 # Check whether this is an Automake generated Makefile or not. 12007 # We used to match only the files named 'Makefile.in', but 12008 # some people rename them; so instead we look at the file content. 12009 # Grep'ing the first line is not enough: some people post-process 12010 # each Makefile.in and add a new line on top of each file to say so. 12011 # Grep'ing the whole file is not good either: AIX grep has a line 12012 # limit of 2048, but all sed's we know have understand at least 4000. 12013 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12014 dirpart=`$as_dirname -- "$mf" || 12015$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12016 X"$mf" : 'X\(//\)[^/]' \| \ 12017 X"$mf" : 'X\(//\)$' \| \ 12018 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12019$as_echo X"$mf" | 12020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12021 s//\1/ 12022 q 12023 } 12024 /^X\(\/\/\)[^/].*/{ 12025 s//\1/ 12026 q 12027 } 12028 /^X\(\/\/\)$/{ 12029 s//\1/ 12030 q 12031 } 12032 /^X\(\/\).*/{ 12033 s//\1/ 12034 q 12035 } 12036 s/.*/./; q'` 12037 else 12038 continue 12039 fi 12040 # Extract the definition of DEPDIR, am__include, and am__quote 12041 # from the Makefile without running 'make'. 12042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12043 test -z "$DEPDIR" && continue 12044 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12045 test -z "$am__include" && continue 12046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12047 # Find all dependency output files, they are included files with 12048 # $(DEPDIR) in their names. We invoke sed twice because it is the 12049 # simplest approach to changing $(DEPDIR) to its actual value in the 12050 # expansion. 12051 for file in `sed -n " 12052 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12053 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12054 # Make sure the directory exists. 12055 test -f "$dirpart/$file" && continue 12056 fdir=`$as_dirname -- "$file" || 12057$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12058 X"$file" : 'X\(//\)[^/]' \| \ 12059 X"$file" : 'X\(//\)$' \| \ 12060 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12061$as_echo X"$file" | 12062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12063 s//\1/ 12064 q 12065 } 12066 /^X\(\/\/\)[^/].*/{ 12067 s//\1/ 12068 q 12069 } 12070 /^X\(\/\/\)$/{ 12071 s//\1/ 12072 q 12073 } 12074 /^X\(\/\).*/{ 12075 s//\1/ 12076 q 12077 } 12078 s/.*/./; q'` 12079 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12080 # echo "creating $dirpart/$file" 12081 echo '# dummy' > "$dirpart/$file" 12082 done 12083 done 12084} 12085 ;; 12086 12087 esac 12088done # for ac_tag 12089 12090 12091as_fn_exit 0 12092_ACEOF 12093ac_clean_files=$ac_clean_files_save 12094 12095test $ac_write_fail = 0 || 12096 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12097 12098 12099# configure is writing to config.log, and then calls config.status. 12100# config.status does its own redirection, appending to config.log. 12101# Unfortunately, on DOS this fails, as config.log is still kept open 12102# by configure, so config.status won't be able to write to it; its 12103# output is simply discarded. So we exec the FD to /dev/null, 12104# effectively closing config.log, so it can be properly (re)opened and 12105# appended to by config.status. When coming back to configure, we 12106# need to make the FD available again. 12107if test "$no_create" != yes; then 12108 ac_cs_success=: 12109 ac_config_status_args= 12110 test "$silent" = yes && 12111 ac_config_status_args="$ac_config_status_args --quiet" 12112 exec 5>/dev/null 12113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12114 exec 5>>config.log 12115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12116 # would make configure fail if this is the last instruction. 12117 $ac_cs_success || as_fn_exit 1 12118fi 12119if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12121$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12122fi 12123 12124