configure revision 61c899d4
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for rgb 1.0.5. 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='rgb' 563PACKAGE_TARNAME='rgb' 564PACKAGE_VERSION='1.0.5' 565PACKAGE_STRING='rgb 1.0.5' 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 610RGB_DB_FALSE 611RGB_DB_TRUE 612RGB_DB_FILES 613RGB_DB_TYPE 614XORG_LIBS 615XORG_CFLAGS 616db_dir 617db_file 618RGB_LIBS 619RGB_CFLAGS 620AM_BACKSLASH 621AM_DEFAULT_VERBOSITY 622MAN_SUBSTS 623XORG_MAN_PAGE 624ADMIN_MAN_DIR 625DRIVER_MAN_DIR 626MISC_MAN_DIR 627FILE_MAN_DIR 628LIB_MAN_DIR 629APP_MAN_DIR 630ADMIN_MAN_SUFFIX 631DRIVER_MAN_SUFFIX 632MISC_MAN_SUFFIX 633FILE_MAN_SUFFIX 634LIB_MAN_SUFFIX 635APP_MAN_SUFFIX 636SED 637host_os 638host_vendor 639host_cpu 640host 641build_os 642build_vendor 643build_cpu 644build 645INSTALL_CMD 646PKG_CONFIG 647CHANGELOG_CMD 648STRICT_CFLAGS 649CWARNFLAGS 650BASE_CFLAGS 651EGREP 652GREP 653CPP 654am__fastdepCC_FALSE 655am__fastdepCC_TRUE 656CCDEPMODE 657am__nodep 658AMDEPBACKSLASH 659AMDEP_FALSE 660AMDEP_TRUE 661am__quote 662am__include 663DEPDIR 664OBJEXT 665EXEEXT 666ac_ct_CC 667CPPFLAGS 668LDFLAGS 669CFLAGS 670CC 671MAINT 672MAINTAINER_MODE_FALSE 673MAINTAINER_MODE_TRUE 674am__untar 675am__tar 676AMTAR 677am__leading_dot 678SET_MAKE 679AWK 680mkdir_p 681MKDIR_P 682INSTALL_STRIP_PROGRAM 683STRIP 684install_sh 685MAKEINFO 686AUTOHEADER 687AUTOMAKE 688AUTOCONF 689ACLOCAL 690VERSION 691PACKAGE 692CYGPATH_W 693am__isrc 694INSTALL_DATA 695INSTALL_SCRIPT 696INSTALL_PROGRAM 697target_alias 698host_alias 699build_alias 700LIBS 701ECHO_T 702ECHO_N 703ECHO_C 704DEFS 705mandir 706localedir 707libdir 708psdir 709pdfdir 710dvidir 711htmldir 712infodir 713docdir 714oldincludedir 715includedir 716localstatedir 717sharedstatedir 718sysconfdir 719datadir 720datarootdir 721libexecdir 722sbindir 723bindir 724program_transform_name 725prefix 726exec_prefix 727PACKAGE_URL 728PACKAGE_BUGREPORT 729PACKAGE_STRING 730PACKAGE_VERSION 731PACKAGE_TARNAME 732PACKAGE_NAME 733PATH_SEPARATOR 734SHELL' 735ac_subst_files='' 736ac_user_opts=' 737enable_option_checking 738enable_maintainer_mode 739enable_dependency_tracking 740enable_selective_werror 741enable_strict_compilation 742enable_silent_rules 743with_rgb_db_dir 744with_rgb_db_type 745' 746 ac_precious_vars='build_alias 747host_alias 748target_alias 749CC 750CFLAGS 751LDFLAGS 752LIBS 753CPPFLAGS 754CPP 755PKG_CONFIG 756RGB_CFLAGS 757RGB_LIBS 758XORG_CFLAGS 759XORG_LIBS' 760 761 762# Initialize some variables set by options. 763ac_init_help= 764ac_init_version=false 765ac_unrecognized_opts= 766ac_unrecognized_sep= 767# The variables have the same names as the options, with 768# dashes changed to underlines. 769cache_file=/dev/null 770exec_prefix=NONE 771no_create= 772no_recursion= 773prefix=NONE 774program_prefix=NONE 775program_suffix=NONE 776program_transform_name=s,x,x, 777silent= 778site= 779srcdir= 780verbose= 781x_includes=NONE 782x_libraries=NONE 783 784# Installation directory options. 785# These are left unexpanded so users can "make install exec_prefix=/foo" 786# and all the variables that are supposed to be based on exec_prefix 787# by default will actually change. 788# Use braces instead of parens because sh, perl, etc. also accept them. 789# (The list follows the same order as the GNU Coding Standards.) 790bindir='${exec_prefix}/bin' 791sbindir='${exec_prefix}/sbin' 792libexecdir='${exec_prefix}/libexec' 793datarootdir='${prefix}/share' 794datadir='${datarootdir}' 795sysconfdir='${prefix}/etc' 796sharedstatedir='${prefix}/com' 797localstatedir='${prefix}/var' 798includedir='${prefix}/include' 799oldincludedir='/usr/include' 800docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 801infodir='${datarootdir}/info' 802htmldir='${docdir}' 803dvidir='${docdir}' 804pdfdir='${docdir}' 805psdir='${docdir}' 806libdir='${exec_prefix}/lib' 807localedir='${datarootdir}/locale' 808mandir='${datarootdir}/man' 809 810ac_prev= 811ac_dashdash= 812for ac_option 813do 814 # If the previous option needs an argument, assign it. 815 if test -n "$ac_prev"; then 816 eval $ac_prev=\$ac_option 817 ac_prev= 818 continue 819 fi 820 821 case $ac_option in 822 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 823 *=) ac_optarg= ;; 824 *) ac_optarg=yes ;; 825 esac 826 827 # Accept the important Cygnus configure options, so we can diagnose typos. 828 829 case $ac_dashdash$ac_option in 830 --) 831 ac_dashdash=yes ;; 832 833 -bindir | --bindir | --bindi | --bind | --bin | --bi) 834 ac_prev=bindir ;; 835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 836 bindir=$ac_optarg ;; 837 838 -build | --build | --buil | --bui | --bu) 839 ac_prev=build_alias ;; 840 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 841 build_alias=$ac_optarg ;; 842 843 -cache-file | --cache-file | --cache-fil | --cache-fi \ 844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 845 ac_prev=cache_file ;; 846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 848 cache_file=$ac_optarg ;; 849 850 --config-cache | -C) 851 cache_file=config.cache ;; 852 853 -datadir | --datadir | --datadi | --datad) 854 ac_prev=datadir ;; 855 -datadir=* | --datadir=* | --datadi=* | --datad=*) 856 datadir=$ac_optarg ;; 857 858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 859 | --dataroo | --dataro | --datar) 860 ac_prev=datarootdir ;; 861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 863 datarootdir=$ac_optarg ;; 864 865 -disable-* | --disable-*) 866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 867 # Reject names that are not valid shell variable names. 868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 869 as_fn_error $? "invalid feature name: $ac_useropt" 870 ac_useropt_orig=$ac_useropt 871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 872 case $ac_user_opts in 873 *" 874"enable_$ac_useropt" 875"*) ;; 876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 877 ac_unrecognized_sep=', ';; 878 esac 879 eval enable_$ac_useropt=no ;; 880 881 -docdir | --docdir | --docdi | --doc | --do) 882 ac_prev=docdir ;; 883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 884 docdir=$ac_optarg ;; 885 886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 887 ac_prev=dvidir ;; 888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 889 dvidir=$ac_optarg ;; 890 891 -enable-* | --enable-*) 892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 893 # Reject names that are not valid shell variable names. 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 895 as_fn_error $? "invalid feature name: $ac_useropt" 896 ac_useropt_orig=$ac_useropt 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 898 case $ac_user_opts in 899 *" 900"enable_$ac_useropt" 901"*) ;; 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 903 ac_unrecognized_sep=', ';; 904 esac 905 eval enable_$ac_useropt=\$ac_optarg ;; 906 907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 909 | --exec | --exe | --ex) 910 ac_prev=exec_prefix ;; 911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 913 | --exec=* | --exe=* | --ex=*) 914 exec_prefix=$ac_optarg ;; 915 916 -gas | --gas | --ga | --g) 917 # Obsolete; use --with-gas. 918 with_gas=yes ;; 919 920 -help | --help | --hel | --he | -h) 921 ac_init_help=long ;; 922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 923 ac_init_help=recursive ;; 924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 925 ac_init_help=short ;; 926 927 -host | --host | --hos | --ho) 928 ac_prev=host_alias ;; 929 -host=* | --host=* | --hos=* | --ho=*) 930 host_alias=$ac_optarg ;; 931 932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 933 ac_prev=htmldir ;; 934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 935 | --ht=*) 936 htmldir=$ac_optarg ;; 937 938 -includedir | --includedir | --includedi | --included | --include \ 939 | --includ | --inclu | --incl | --inc) 940 ac_prev=includedir ;; 941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 942 | --includ=* | --inclu=* | --incl=* | --inc=*) 943 includedir=$ac_optarg ;; 944 945 -infodir | --infodir | --infodi | --infod | --info | --inf) 946 ac_prev=infodir ;; 947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 948 infodir=$ac_optarg ;; 949 950 -libdir | --libdir | --libdi | --libd) 951 ac_prev=libdir ;; 952 -libdir=* | --libdir=* | --libdi=* | --libd=*) 953 libdir=$ac_optarg ;; 954 955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 956 | --libexe | --libex | --libe) 957 ac_prev=libexecdir ;; 958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 959 | --libexe=* | --libex=* | --libe=*) 960 libexecdir=$ac_optarg ;; 961 962 -localedir | --localedir | --localedi | --localed | --locale) 963 ac_prev=localedir ;; 964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 965 localedir=$ac_optarg ;; 966 967 -localstatedir | --localstatedir | --localstatedi | --localstated \ 968 | --localstate | --localstat | --localsta | --localst | --locals) 969 ac_prev=localstatedir ;; 970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 972 localstatedir=$ac_optarg ;; 973 974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 975 ac_prev=mandir ;; 976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 977 mandir=$ac_optarg ;; 978 979 -nfp | --nfp | --nf) 980 # Obsolete; use --without-fp. 981 with_fp=no ;; 982 983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 984 | --no-cr | --no-c | -n) 985 no_create=yes ;; 986 987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 989 no_recursion=yes ;; 990 991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 993 | --oldin | --oldi | --old | --ol | --o) 994 ac_prev=oldincludedir ;; 995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 998 oldincludedir=$ac_optarg ;; 999 1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1001 ac_prev=prefix ;; 1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1003 prefix=$ac_optarg ;; 1004 1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1006 | --program-pre | --program-pr | --program-p) 1007 ac_prev=program_prefix ;; 1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1010 program_prefix=$ac_optarg ;; 1011 1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1013 | --program-suf | --program-su | --program-s) 1014 ac_prev=program_suffix ;; 1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1017 program_suffix=$ac_optarg ;; 1018 1019 -program-transform-name | --program-transform-name \ 1020 | --program-transform-nam | --program-transform-na \ 1021 | --program-transform-n | --program-transform- \ 1022 | --program-transform | --program-transfor \ 1023 | --program-transfo | --program-transf \ 1024 | --program-trans | --program-tran \ 1025 | --progr-tra | --program-tr | --program-t) 1026 ac_prev=program_transform_name ;; 1027 -program-transform-name=* | --program-transform-name=* \ 1028 | --program-transform-nam=* | --program-transform-na=* \ 1029 | --program-transform-n=* | --program-transform-=* \ 1030 | --program-transform=* | --program-transfor=* \ 1031 | --program-transfo=* | --program-transf=* \ 1032 | --program-trans=* | --program-tran=* \ 1033 | --progr-tra=* | --program-tr=* | --program-t=*) 1034 program_transform_name=$ac_optarg ;; 1035 1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1037 ac_prev=pdfdir ;; 1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1039 pdfdir=$ac_optarg ;; 1040 1041 -psdir | --psdir | --psdi | --psd | --ps) 1042 ac_prev=psdir ;; 1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1044 psdir=$ac_optarg ;; 1045 1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1047 | -silent | --silent | --silen | --sile | --sil) 1048 silent=yes ;; 1049 1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1051 ac_prev=sbindir ;; 1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1053 | --sbi=* | --sb=*) 1054 sbindir=$ac_optarg ;; 1055 1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1058 | --sharedst | --shareds | --shared | --share | --shar \ 1059 | --sha | --sh) 1060 ac_prev=sharedstatedir ;; 1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1064 | --sha=* | --sh=*) 1065 sharedstatedir=$ac_optarg ;; 1066 1067 -site | --site | --sit) 1068 ac_prev=site ;; 1069 -site=* | --site=* | --sit=*) 1070 site=$ac_optarg ;; 1071 1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1073 ac_prev=srcdir ;; 1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1075 srcdir=$ac_optarg ;; 1076 1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1078 | --syscon | --sysco | --sysc | --sys | --sy) 1079 ac_prev=sysconfdir ;; 1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1082 sysconfdir=$ac_optarg ;; 1083 1084 -target | --target | --targe | --targ | --tar | --ta | --t) 1085 ac_prev=target_alias ;; 1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1087 target_alias=$ac_optarg ;; 1088 1089 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1090 verbose=yes ;; 1091 1092 -version | --version | --versio | --versi | --vers | -V) 1093 ac_init_version=: ;; 1094 1095 -with-* | --with-*) 1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1097 # Reject names that are not valid shell variable names. 1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099 as_fn_error $? "invalid package name: $ac_useropt" 1100 ac_useropt_orig=$ac_useropt 1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102 case $ac_user_opts in 1103 *" 1104"with_$ac_useropt" 1105"*) ;; 1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1107 ac_unrecognized_sep=', ';; 1108 esac 1109 eval with_$ac_useropt=\$ac_optarg ;; 1110 1111 -without-* | --without-*) 1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1113 # Reject names that are not valid shell variable names. 1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1115 as_fn_error $? "invalid package name: $ac_useropt" 1116 ac_useropt_orig=$ac_useropt 1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1118 case $ac_user_opts in 1119 *" 1120"with_$ac_useropt" 1121"*) ;; 1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1123 ac_unrecognized_sep=', ';; 1124 esac 1125 eval with_$ac_useropt=no ;; 1126 1127 --x) 1128 # Obsolete; use --with-x. 1129 with_x=yes ;; 1130 1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1132 | --x-incl | --x-inc | --x-in | --x-i) 1133 ac_prev=x_includes ;; 1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1136 x_includes=$ac_optarg ;; 1137 1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1140 ac_prev=x_libraries ;; 1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1143 x_libraries=$ac_optarg ;; 1144 1145 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1146Try \`$0 --help' for more information" 1147 ;; 1148 1149 *=*) 1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1151 # Reject names that are not valid shell variable names. 1152 case $ac_envvar in #( 1153 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1154 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1155 esac 1156 eval $ac_envvar=\$ac_optarg 1157 export $ac_envvar ;; 1158 1159 *) 1160 # FIXME: should be removed in autoconf 3.0. 1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1164 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1165 ;; 1166 1167 esac 1168done 1169 1170if test -n "$ac_prev"; then 1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1172 as_fn_error $? "missing argument to $ac_option" 1173fi 1174 1175if test -n "$ac_unrecognized_opts"; then 1176 case $enable_option_checking in 1177 no) ;; 1178 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1180 esac 1181fi 1182 1183# Check all directory arguments for consistency. 1184for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1185 datadir sysconfdir sharedstatedir localstatedir includedir \ 1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1187 libdir localedir mandir 1188do 1189 eval ac_val=\$$ac_var 1190 # Remove trailing slashes. 1191 case $ac_val in 1192 */ ) 1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1194 eval $ac_var=\$ac_val;; 1195 esac 1196 # Be sure to have absolute directory names. 1197 case $ac_val in 1198 [\\/$]* | ?:[\\/]* ) continue;; 1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1200 esac 1201 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1202done 1203 1204# There might be people who depend on the old broken behavior: `$host' 1205# used to hold the argument of --host etc. 1206# FIXME: To remove some day. 1207build=$build_alias 1208host=$host_alias 1209target=$target_alias 1210 1211# FIXME: To remove some day. 1212if test "x$host_alias" != x; then 1213 if test "x$build_alias" = x; then 1214 cross_compiling=maybe 1215 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1216 If a cross compiler is detected then cross compile mode will be used" >&2 1217 elif test "x$build_alias" != "x$host_alias"; then 1218 cross_compiling=yes 1219 fi 1220fi 1221 1222ac_tool_prefix= 1223test -n "$host_alias" && ac_tool_prefix=$host_alias- 1224 1225test "$silent" = yes && exec 6>/dev/null 1226 1227 1228ac_pwd=`pwd` && test -n "$ac_pwd" && 1229ac_ls_di=`ls -di .` && 1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1231 as_fn_error $? "working directory cannot be determined" 1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1233 as_fn_error $? "pwd does not report name of working directory" 1234 1235 1236# Find the source files, if location was not specified. 1237if test -z "$srcdir"; then 1238 ac_srcdir_defaulted=yes 1239 # Try the directory containing this script, then the parent directory. 1240 ac_confdir=`$as_dirname -- "$as_myself" || 1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1242 X"$as_myself" : 'X\(//\)[^/]' \| \ 1243 X"$as_myself" : 'X\(//\)$' \| \ 1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1245$as_echo X"$as_myself" | 1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1247 s//\1/ 1248 q 1249 } 1250 /^X\(\/\/\)[^/].*/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\).*/{ 1259 s//\1/ 1260 q 1261 } 1262 s/.*/./; q'` 1263 srcdir=$ac_confdir 1264 if test ! -r "$srcdir/$ac_unique_file"; then 1265 srcdir=.. 1266 fi 1267else 1268 ac_srcdir_defaulted=no 1269fi 1270if test ! -r "$srcdir/$ac_unique_file"; then 1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1272 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1273fi 1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1275ac_abs_confdir=`( 1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1277 pwd)` 1278# When building in place, set srcdir=. 1279if test "$ac_abs_confdir" = "$ac_pwd"; then 1280 srcdir=. 1281fi 1282# Remove unnecessary trailing slashes from srcdir. 1283# Double slashes in file names in object file debugging info 1284# mess up M-x gdb in Emacs. 1285case $srcdir in 1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1287esac 1288for ac_var in $ac_precious_vars; do 1289 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1290 eval ac_env_${ac_var}_value=\$${ac_var} 1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1292 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1293done 1294 1295# 1296# Report the --help message. 1297# 1298if test "$ac_init_help" = "long"; then 1299 # Omit some internal or obsolete options to make the list less imposing. 1300 # This message is too long to be a string in the A/UX 3.1 sh. 1301 cat <<_ACEOF 1302\`configure' configures rgb 1.0.5 to adapt to many kinds of systems. 1303 1304Usage: $0 [OPTION]... [VAR=VALUE]... 1305 1306To assign environment variables (e.g., CC, CFLAGS...), specify them as 1307VAR=VALUE. See below for descriptions of some of the useful variables. 1308 1309Defaults for the options are specified in brackets. 1310 1311Configuration: 1312 -h, --help display this help and exit 1313 --help=short display options specific to this package 1314 --help=recursive display the short help of all the included packages 1315 -V, --version display version information and exit 1316 -q, --quiet, --silent do not print \`checking ...' messages 1317 --cache-file=FILE cache test results in FILE [disabled] 1318 -C, --config-cache alias for \`--cache-file=config.cache' 1319 -n, --no-create do not create output files 1320 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1321 1322Installation directories: 1323 --prefix=PREFIX install architecture-independent files in PREFIX 1324 [$ac_default_prefix] 1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1326 [PREFIX] 1327 1328By default, \`make install' will install all the files in 1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1330an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1331for instance \`--prefix=\$HOME'. 1332 1333For better control, use the options below. 1334 1335Fine tuning of the installation directories: 1336 --bindir=DIR user executables [EPREFIX/bin] 1337 --sbindir=DIR system admin executables [EPREFIX/sbin] 1338 --libexecdir=DIR program executables [EPREFIX/libexec] 1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1342 --libdir=DIR object code libraries [EPREFIX/lib] 1343 --includedir=DIR C header files [PREFIX/include] 1344 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1347 --infodir=DIR info documentation [DATAROOTDIR/info] 1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1349 --mandir=DIR man documentation [DATAROOTDIR/man] 1350 --docdir=DIR documentation root [DATAROOTDIR/doc/rgb] 1351 --htmldir=DIR html documentation [DOCDIR] 1352 --dvidir=DIR dvi documentation [DOCDIR] 1353 --pdfdir=DIR pdf documentation [DOCDIR] 1354 --psdir=DIR ps documentation [DOCDIR] 1355_ACEOF 1356 1357 cat <<\_ACEOF 1358 1359Program names: 1360 --program-prefix=PREFIX prepend PREFIX to installed program names 1361 --program-suffix=SUFFIX append SUFFIX to installed program names 1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1363 1364System types: 1365 --build=BUILD configure for building on BUILD [guessed] 1366 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1367_ACEOF 1368fi 1369 1370if test -n "$ac_init_help"; then 1371 case $ac_init_help in 1372 short | recursive ) echo "Configuration of rgb 1.0.5:";; 1373 esac 1374 cat <<\_ACEOF 1375 1376Optional Features: 1377 --disable-option-checking ignore unrecognized --enable/--with options 1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1380 --enable-maintainer-mode enable make rules and dependencies not useful 1381 (and sometimes confusing) to the casual installer 1382 --disable-dependency-tracking speeds up one-time build 1383 --enable-dependency-tracking do not reject slow dependency extractors 1384 --disable-selective-werror 1385 Turn off selective compiler errors. (default: 1386 enabled) 1387 --enable-strict-compilation 1388 Enable all warnings from compiler and make them 1389 errors (default: disabled) 1390 --enable-silent-rules less verbose build output (undo: `make V=1') 1391 --disable-silent-rules verbose build output (undo: `make V=0') 1392 1393Optional Packages: 1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1396 --with-rgb-db-dir=<path> 1397 rgb database location (default is 1398 ${datadir}/X11/rgb) 1399 --with-rgb-db-type=(text|dbm|ndbm) 1400 rgb database type (default is text) 1401 1402Some influential environment variables: 1403 CC C compiler command 1404 CFLAGS C compiler flags 1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1406 nonstandard directory <lib dir> 1407 LIBS libraries to pass to the linker, e.g. -l<library> 1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1409 you have headers in a nonstandard directory <include dir> 1410 CPP C preprocessor 1411 PKG_CONFIG path to pkg-config utility 1412 RGB_CFLAGS C compiler flags for RGB, overriding pkg-config 1413 RGB_LIBS linker flags for RGB, overriding pkg-config 1414 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1415 XORG_LIBS linker flags for XORG, overriding pkg-config 1416 1417Use these variables to override the choices made by `configure' or to help 1418it to find libraries and programs with nonstandard names/locations. 1419 1420Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1421_ACEOF 1422ac_status=$? 1423fi 1424 1425if test "$ac_init_help" = "recursive"; then 1426 # If there are subdirs, report their specific --help. 1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1428 test -d "$ac_dir" || 1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1430 continue 1431 ac_builddir=. 1432 1433case "$ac_dir" in 1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1435*) 1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1437 # A ".." for each directory in $ac_dir_suffix. 1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1439 case $ac_top_builddir_sub in 1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1442 esac ;; 1443esac 1444ac_abs_top_builddir=$ac_pwd 1445ac_abs_builddir=$ac_pwd$ac_dir_suffix 1446# for backward compatibility: 1447ac_top_builddir=$ac_top_build_prefix 1448 1449case $srcdir in 1450 .) # We are building in place. 1451 ac_srcdir=. 1452 ac_top_srcdir=$ac_top_builddir_sub 1453 ac_abs_top_srcdir=$ac_pwd ;; 1454 [\\/]* | ?:[\\/]* ) # Absolute name. 1455 ac_srcdir=$srcdir$ac_dir_suffix; 1456 ac_top_srcdir=$srcdir 1457 ac_abs_top_srcdir=$srcdir ;; 1458 *) # Relative name. 1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1460 ac_top_srcdir=$ac_top_build_prefix$srcdir 1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1462esac 1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1464 1465 cd "$ac_dir" || { ac_status=$?; continue; } 1466 # Check for guested configure. 1467 if test -f "$ac_srcdir/configure.gnu"; then 1468 echo && 1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1470 elif test -f "$ac_srcdir/configure"; then 1471 echo && 1472 $SHELL "$ac_srcdir/configure" --help=recursive 1473 else 1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1475 fi || ac_status=$? 1476 cd "$ac_pwd" || { ac_status=$?; break; } 1477 done 1478fi 1479 1480test -n "$ac_init_help" && exit $ac_status 1481if $ac_init_version; then 1482 cat <<\_ACEOF 1483rgb configure 1.0.5 1484generated by GNU Autoconf 2.68 1485 1486Copyright (C) 2010 Free Software Foundation, Inc. 1487This configure script is free software; the Free Software Foundation 1488gives unlimited permission to copy, distribute and modify it. 1489_ACEOF 1490 exit 1491fi 1492 1493## ------------------------ ## 1494## Autoconf initialization. ## 1495## ------------------------ ## 1496 1497# ac_fn_c_try_compile LINENO 1498# -------------------------- 1499# Try to compile conftest.$ac_ext, and return whether this succeeded. 1500ac_fn_c_try_compile () 1501{ 1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1503 rm -f conftest.$ac_objext 1504 if { { ac_try="$ac_compile" 1505case "(($ac_try" in 1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1507 *) ac_try_echo=$ac_try;; 1508esac 1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1510$as_echo "$ac_try_echo"; } >&5 1511 (eval "$ac_compile") 2>conftest.err 1512 ac_status=$? 1513 if test -s conftest.err; then 1514 grep -v '^ *+' conftest.err >conftest.er1 1515 cat conftest.er1 >&5 1516 mv -f conftest.er1 conftest.err 1517 fi 1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1519 test $ac_status = 0; } && { 1520 test -z "$ac_c_werror_flag" || 1521 test ! -s conftest.err 1522 } && test -s conftest.$ac_objext; then : 1523 ac_retval=0 1524else 1525 $as_echo "$as_me: failed program was:" >&5 1526sed 's/^/| /' conftest.$ac_ext >&5 1527 1528 ac_retval=1 1529fi 1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1531 as_fn_set_status $ac_retval 1532 1533} # ac_fn_c_try_compile 1534 1535# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1536# --------------------------------------------- 1537# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1538# accordingly. 1539ac_fn_c_check_decl () 1540{ 1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 as_decl_name=`echo $2|sed 's/ *(.*//'` 1543 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1545$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1546if eval \${$3+:} false; then : 1547 $as_echo_n "(cached) " >&6 1548else 1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1550/* end confdefs.h. */ 1551$4 1552int 1553main () 1554{ 1555#ifndef $as_decl_name 1556#ifdef __cplusplus 1557 (void) $as_decl_use; 1558#else 1559 (void) $as_decl_name; 1560#endif 1561#endif 1562 1563 ; 1564 return 0; 1565} 1566_ACEOF 1567if ac_fn_c_try_compile "$LINENO"; then : 1568 eval "$3=yes" 1569else 1570 eval "$3=no" 1571fi 1572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1573fi 1574eval ac_res=\$$3 1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1576$as_echo "$ac_res" >&6; } 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 1579} # ac_fn_c_check_decl 1580 1581# ac_fn_c_try_cpp LINENO 1582# ---------------------- 1583# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_cpp () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 if { { ac_try="$ac_cpp conftest.$ac_ext" 1588case "(($ac_try" in 1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1590 *) ac_try_echo=$ac_try;; 1591esac 1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1593$as_echo "$ac_try_echo"; } >&5 1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1595 ac_status=$? 1596 if test -s conftest.err; then 1597 grep -v '^ *+' conftest.err >conftest.er1 1598 cat conftest.er1 >&5 1599 mv -f conftest.er1 conftest.err 1600 fi 1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1602 test $ac_status = 0; } > conftest.i && { 1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1604 test ! -s conftest.err 1605 }; then : 1606 ac_retval=0 1607else 1608 $as_echo "$as_me: failed program was:" >&5 1609sed 's/^/| /' conftest.$ac_ext >&5 1610 1611 ac_retval=1 1612fi 1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1614 as_fn_set_status $ac_retval 1615 1616} # ac_fn_c_try_cpp 1617 1618# ac_fn_c_try_run LINENO 1619# ---------------------- 1620# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1621# that executables *can* be run. 1622ac_fn_c_try_run () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if { { ac_try="$ac_link" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_link") 2>&5 1633 ac_status=$? 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1636 { { case "(($ac_try" in 1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1638 *) ac_try_echo=$ac_try;; 1639esac 1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1641$as_echo "$ac_try_echo"; } >&5 1642 (eval "$ac_try") 2>&5 1643 ac_status=$? 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; }; }; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: program exited with status $ac_status" >&5 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=$ac_status 1653fi 1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_run 1659 1660# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1661# ------------------------------------------------------- 1662# Tests whether HEADER exists and can be compiled using the include files in 1663# INCLUDES, setting the cache variable VAR accordingly. 1664ac_fn_c_check_header_compile () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1668$as_echo_n "checking for $2... " >&6; } 1669if eval \${$3+:} false; then : 1670 $as_echo_n "(cached) " >&6 1671else 1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1673/* end confdefs.h. */ 1674$4 1675#include <$2> 1676_ACEOF 1677if ac_fn_c_try_compile "$LINENO"; then : 1678 eval "$3=yes" 1679else 1680 eval "$3=no" 1681fi 1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1683fi 1684eval ac_res=\$$3 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1686$as_echo "$ac_res" >&6; } 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 1689} # ac_fn_c_check_header_compile 1690 1691# ac_fn_c_try_link LINENO 1692# ----------------------- 1693# Try to link conftest.$ac_ext, and return whether this succeeded. 1694ac_fn_c_try_link () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 rm -f conftest.$ac_objext conftest$ac_exeext 1698 if { { ac_try="$ac_link" 1699case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_link") 2>conftest.err 1706 ac_status=$? 1707 if test -s conftest.err; then 1708 grep -v '^ *+' conftest.err >conftest.er1 1709 cat conftest.er1 >&5 1710 mv -f conftest.er1 conftest.err 1711 fi 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; } && { 1714 test -z "$ac_c_werror_flag" || 1715 test ! -s conftest.err 1716 } && test -s conftest$ac_exeext && { 1717 test "$cross_compiling" = yes || 1718 $as_test_x conftest$ac_exeext 1719 }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=1 1726fi 1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1729 # interfere with the next link command; also delete a directory that is 1730 # left behind by Apple's compiler. We do this before executing the actions. 1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 as_fn_set_status $ac_retval 1734 1735} # ac_fn_c_try_link 1736 1737# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1738# ------------------------------------------------------- 1739# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1740# the include files in INCLUDES and setting the cache variable VAR 1741# accordingly. 1742ac_fn_c_check_header_mongrel () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 if eval \${$3+:} false; then : 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1747$as_echo_n "checking for $2... " >&6; } 1748if eval \${$3+:} false; then : 1749 $as_echo_n "(cached) " >&6 1750fi 1751eval ac_res=\$$3 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1753$as_echo "$ac_res" >&6; } 1754else 1755 # Is the header compilable? 1756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1757$as_echo_n "checking $2 usability... " >&6; } 1758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759/* end confdefs.h. */ 1760$4 1761#include <$2> 1762_ACEOF 1763if ac_fn_c_try_compile "$LINENO"; then : 1764 ac_header_compiler=yes 1765else 1766 ac_header_compiler=no 1767fi 1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1770$as_echo "$ac_header_compiler" >&6; } 1771 1772# Is the header present? 1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1774$as_echo_n "checking $2 presence... " >&6; } 1775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777#include <$2> 1778_ACEOF 1779if ac_fn_c_try_cpp "$LINENO"; then : 1780 ac_header_preproc=yes 1781else 1782 ac_header_preproc=no 1783fi 1784rm -f conftest.err conftest.i conftest.$ac_ext 1785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1786$as_echo "$ac_header_preproc" >&6; } 1787 1788# So? What about this header? 1789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1790 yes:no: ) 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1792$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1795 ;; 1796 no:yes:* ) 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1798$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1800$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1802$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1804$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1806$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1807( $as_echo "## ---------------------------------------------------------------------- ## 1808## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1809## ---------------------------------------------------------------------- ##" 1810 ) | sed "s/^/$as_me: WARNING: /" >&2 1811 ;; 1812esac 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1814$as_echo_n "checking for $2... " >&6; } 1815if eval \${$3+:} false; then : 1816 $as_echo_n "(cached) " >&6 1817else 1818 eval "$3=\$ac_header_compiler" 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823fi 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1825 1826} # ac_fn_c_check_header_mongrel 1827cat >config.log <<_ACEOF 1828This file contains any messages produced by compilers while 1829running configure, to aid debugging if configure makes a mistake. 1830 1831It was created by rgb $as_me 1.0.5, which was 1832generated by GNU Autoconf 2.68. Invocation command line was 1833 1834 $ $0 $@ 1835 1836_ACEOF 1837exec 5>>config.log 1838{ 1839cat <<_ASUNAME 1840## --------- ## 1841## Platform. ## 1842## --------- ## 1843 1844hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1845uname -m = `(uname -m) 2>/dev/null || echo unknown` 1846uname -r = `(uname -r) 2>/dev/null || echo unknown` 1847uname -s = `(uname -s) 2>/dev/null || echo unknown` 1848uname -v = `(uname -v) 2>/dev/null || echo unknown` 1849 1850/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1851/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1852 1853/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1854/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1855/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1856/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1857/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1858/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1859/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1860 1861_ASUNAME 1862 1863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1864for as_dir in $PATH 1865do 1866 IFS=$as_save_IFS 1867 test -z "$as_dir" && as_dir=. 1868 $as_echo "PATH: $as_dir" 1869 done 1870IFS=$as_save_IFS 1871 1872} >&5 1873 1874cat >&5 <<_ACEOF 1875 1876 1877## ----------- ## 1878## Core tests. ## 1879## ----------- ## 1880 1881_ACEOF 1882 1883 1884# Keep a trace of the command line. 1885# Strip out --no-create and --no-recursion so they do not pile up. 1886# Strip out --silent because we don't want to record it for future runs. 1887# Also quote any args containing shell meta-characters. 1888# Make two passes to allow for proper duplicate-argument suppression. 1889ac_configure_args= 1890ac_configure_args0= 1891ac_configure_args1= 1892ac_must_keep_next=false 1893for ac_pass in 1 2 1894do 1895 for ac_arg 1896 do 1897 case $ac_arg in 1898 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1900 | -silent | --silent | --silen | --sile | --sil) 1901 continue ;; 1902 *\'*) 1903 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1904 esac 1905 case $ac_pass in 1906 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1907 2) 1908 as_fn_append ac_configure_args1 " '$ac_arg'" 1909 if test $ac_must_keep_next = true; then 1910 ac_must_keep_next=false # Got value, back to normal. 1911 else 1912 case $ac_arg in 1913 *=* | --config-cache | -C | -disable-* | --disable-* \ 1914 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1915 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1916 | -with-* | --with-* | -without-* | --without-* | --x) 1917 case "$ac_configure_args0 " in 1918 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1919 esac 1920 ;; 1921 -* ) ac_must_keep_next=true ;; 1922 esac 1923 fi 1924 as_fn_append ac_configure_args " '$ac_arg'" 1925 ;; 1926 esac 1927 done 1928done 1929{ ac_configure_args0=; unset ac_configure_args0;} 1930{ ac_configure_args1=; unset ac_configure_args1;} 1931 1932# When interrupted or exit'd, cleanup temporary files, and complete 1933# config.log. We remove comments because anyway the quotes in there 1934# would cause problems or look ugly. 1935# WARNING: Use '\'' to represent an apostrophe within the trap. 1936# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1937trap 'exit_status=$? 1938 # Save into config.log some information that might help in debugging. 1939 { 1940 echo 1941 1942 $as_echo "## ---------------- ## 1943## Cache variables. ## 1944## ---------------- ##" 1945 echo 1946 # The following way of writing the cache mishandles newlines in values, 1947( 1948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1949 eval ac_val=\$$ac_var 1950 case $ac_val in #( 1951 *${as_nl}*) 1952 case $ac_var in #( 1953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1954$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1955 esac 1956 case $ac_var in #( 1957 _ | IFS | as_nl) ;; #( 1958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1959 *) { eval $ac_var=; unset $ac_var;} ;; 1960 esac ;; 1961 esac 1962 done 1963 (set) 2>&1 | 1964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1965 *${as_nl}ac_space=\ *) 1966 sed -n \ 1967 "s/'\''/'\''\\\\'\'''\''/g; 1968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1969 ;; #( 1970 *) 1971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1972 ;; 1973 esac | 1974 sort 1975) 1976 echo 1977 1978 $as_echo "## ----------------- ## 1979## Output variables. ## 1980## ----------------- ##" 1981 echo 1982 for ac_var in $ac_subst_vars 1983 do 1984 eval ac_val=\$$ac_var 1985 case $ac_val in 1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1987 esac 1988 $as_echo "$ac_var='\''$ac_val'\''" 1989 done | sort 1990 echo 1991 1992 if test -n "$ac_subst_files"; then 1993 $as_echo "## ------------------- ## 1994## File substitutions. ## 1995## ------------------- ##" 1996 echo 1997 for ac_var in $ac_subst_files 1998 do 1999 eval ac_val=\$$ac_var 2000 case $ac_val in 2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2002 esac 2003 $as_echo "$ac_var='\''$ac_val'\''" 2004 done | sort 2005 echo 2006 fi 2007 2008 if test -s confdefs.h; then 2009 $as_echo "## ----------- ## 2010## confdefs.h. ## 2011## ----------- ##" 2012 echo 2013 cat confdefs.h 2014 echo 2015 fi 2016 test "$ac_signal" != 0 && 2017 $as_echo "$as_me: caught signal $ac_signal" 2018 $as_echo "$as_me: exit $exit_status" 2019 } >&5 2020 rm -f core *.core core.conftest.* && 2021 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2022 exit $exit_status 2023' 0 2024for ac_signal in 1 2 13 15; do 2025 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2026done 2027ac_signal=0 2028 2029# confdefs.h avoids OS command line length limits that DEFS can exceed. 2030rm -f -r conftest* confdefs.h 2031 2032$as_echo "/* confdefs.h */" > confdefs.h 2033 2034# Predefined preprocessor variables. 2035 2036cat >>confdefs.h <<_ACEOF 2037#define PACKAGE_NAME "$PACKAGE_NAME" 2038_ACEOF 2039 2040cat >>confdefs.h <<_ACEOF 2041#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2042_ACEOF 2043 2044cat >>confdefs.h <<_ACEOF 2045#define PACKAGE_VERSION "$PACKAGE_VERSION" 2046_ACEOF 2047 2048cat >>confdefs.h <<_ACEOF 2049#define PACKAGE_STRING "$PACKAGE_STRING" 2050_ACEOF 2051 2052cat >>confdefs.h <<_ACEOF 2053#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2054_ACEOF 2055 2056cat >>confdefs.h <<_ACEOF 2057#define PACKAGE_URL "$PACKAGE_URL" 2058_ACEOF 2059 2060 2061# Let the site file select an alternate cache file if it wants to. 2062# Prefer an explicitly selected file to automatically selected ones. 2063ac_site_file1=NONE 2064ac_site_file2=NONE 2065if test -n "$CONFIG_SITE"; then 2066 # We do not want a PATH search for config.site. 2067 case $CONFIG_SITE in #(( 2068 -*) ac_site_file1=./$CONFIG_SITE;; 2069 */*) ac_site_file1=$CONFIG_SITE;; 2070 *) ac_site_file1=./$CONFIG_SITE;; 2071 esac 2072elif test "x$prefix" != xNONE; then 2073 ac_site_file1=$prefix/share/config.site 2074 ac_site_file2=$prefix/etc/config.site 2075else 2076 ac_site_file1=$ac_default_prefix/share/config.site 2077 ac_site_file2=$ac_default_prefix/etc/config.site 2078fi 2079for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2080do 2081 test "x$ac_site_file" = xNONE && continue 2082 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2084$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2085 sed 's/^/| /' "$ac_site_file" >&5 2086 . "$ac_site_file" \ 2087 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2089as_fn_error $? "failed to load site script $ac_site_file 2090See \`config.log' for more details" "$LINENO" 5; } 2091 fi 2092done 2093 2094if test -r "$cache_file"; then 2095 # Some versions of bash will fail to source /dev/null (special files 2096 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2097 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2099$as_echo "$as_me: loading cache $cache_file" >&6;} 2100 case $cache_file in 2101 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2102 *) . "./$cache_file";; 2103 esac 2104 fi 2105else 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2107$as_echo "$as_me: creating cache $cache_file" >&6;} 2108 >$cache_file 2109fi 2110 2111# Check that the precious variables saved in the cache have kept the same 2112# value. 2113ac_cache_corrupted=false 2114for ac_var in $ac_precious_vars; do 2115 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2116 eval ac_new_set=\$ac_env_${ac_var}_set 2117 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2118 eval ac_new_val=\$ac_env_${ac_var}_value 2119 case $ac_old_set,$ac_new_set in 2120 set,) 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2122$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2123 ac_cache_corrupted=: ;; 2124 ,set) 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2126$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2127 ac_cache_corrupted=: ;; 2128 ,);; 2129 *) 2130 if test "x$ac_old_val" != "x$ac_new_val"; then 2131 # differences in whitespace do not lead to failure. 2132 ac_old_val_w=`echo x $ac_old_val` 2133 ac_new_val_w=`echo x $ac_new_val` 2134 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2136$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2137 ac_cache_corrupted=: 2138 else 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2140$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2141 eval $ac_var=\$ac_old_val 2142 fi 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2144$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2146$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2147 fi;; 2148 esac 2149 # Pass precious variables to config.status. 2150 if test "$ac_new_set" = set; then 2151 case $ac_new_val in 2152 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2153 *) ac_arg=$ac_var=$ac_new_val ;; 2154 esac 2155 case " $ac_configure_args " in 2156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2157 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2158 esac 2159 fi 2160done 2161if $ac_cache_corrupted; then 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2165$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2166 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2167fi 2168## -------------------- ## 2169## Main body of script. ## 2170## -------------------- ## 2171 2172ac_ext=c 2173ac_cpp='$CPP $CPPFLAGS' 2174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2176ac_compiler_gnu=$ac_cv_c_compiler_gnu 2177 2178 2179 2180ac_config_headers="$ac_config_headers config.h" 2181 2182 2183# Initialize Automake 2184am__api_version='1.11' 2185 2186ac_aux_dir= 2187for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2188 if test -f "$ac_dir/install-sh"; then 2189 ac_aux_dir=$ac_dir 2190 ac_install_sh="$ac_aux_dir/install-sh -c" 2191 break 2192 elif test -f "$ac_dir/install.sh"; then 2193 ac_aux_dir=$ac_dir 2194 ac_install_sh="$ac_aux_dir/install.sh -c" 2195 break 2196 elif test -f "$ac_dir/shtool"; then 2197 ac_aux_dir=$ac_dir 2198 ac_install_sh="$ac_aux_dir/shtool install -c" 2199 break 2200 fi 2201done 2202if test -z "$ac_aux_dir"; then 2203 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2204fi 2205 2206# These three variables are undocumented and unsupported, 2207# and are intended to be withdrawn in a future Autoconf release. 2208# They can cause serious problems if a builder's source tree is in a directory 2209# whose full name contains unusual characters. 2210ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2211ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2212ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2213 2214 2215# Find a good install program. We prefer a C program (faster), 2216# so one script is as good as another. But avoid the broken or 2217# incompatible versions: 2218# SysV /etc/install, /usr/sbin/install 2219# SunOS /usr/etc/install 2220# IRIX /sbin/install 2221# AIX /bin/install 2222# AmigaOS /C/install, which installs bootblocks on floppy discs 2223# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2224# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2225# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2226# OS/2's system install, which has a completely different semantic 2227# ./install, which can be erroneously created by make from ./install.sh. 2228# Reject install programs that cannot install multiple files. 2229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2230$as_echo_n "checking for a BSD-compatible install... " >&6; } 2231if test -z "$INSTALL"; then 2232if ${ac_cv_path_install+:} false; then : 2233 $as_echo_n "(cached) " >&6 2234else 2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2236for as_dir in $PATH 2237do 2238 IFS=$as_save_IFS 2239 test -z "$as_dir" && as_dir=. 2240 # Account for people who put trailing slashes in PATH elements. 2241case $as_dir/ in #(( 2242 ./ | .// | /[cC]/* | \ 2243 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2244 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2245 /usr/ucb/* ) ;; 2246 *) 2247 # OSF1 and SCO ODT 3.0 have their own names for install. 2248 # Don't use installbsd from OSF since it installs stuff as root 2249 # by default. 2250 for ac_prog in ginstall scoinst install; do 2251 for ac_exec_ext in '' $ac_executable_extensions; do 2252 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2253 if test $ac_prog = install && 2254 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2255 # AIX install. It has an incompatible calling convention. 2256 : 2257 elif test $ac_prog = install && 2258 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2259 # program-specific install script used by HP pwplus--don't use. 2260 : 2261 else 2262 rm -rf conftest.one conftest.two conftest.dir 2263 echo one > conftest.one 2264 echo two > conftest.two 2265 mkdir conftest.dir 2266 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2267 test -s conftest.one && test -s conftest.two && 2268 test -s conftest.dir/conftest.one && 2269 test -s conftest.dir/conftest.two 2270 then 2271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2272 break 3 2273 fi 2274 fi 2275 fi 2276 done 2277 done 2278 ;; 2279esac 2280 2281 done 2282IFS=$as_save_IFS 2283 2284rm -rf conftest.one conftest.two conftest.dir 2285 2286fi 2287 if test "${ac_cv_path_install+set}" = set; then 2288 INSTALL=$ac_cv_path_install 2289 else 2290 # As a last resort, use the slow shell script. Don't cache a 2291 # value for INSTALL within a source directory, because that will 2292 # break other packages using the cache if that directory is 2293 # removed, or if the value is a relative name. 2294 INSTALL=$ac_install_sh 2295 fi 2296fi 2297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2298$as_echo "$INSTALL" >&6; } 2299 2300# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2301# It thinks the first close brace ends the variable substitution. 2302test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2303 2304test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2305 2306test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2307 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2309$as_echo_n "checking whether build environment is sane... " >&6; } 2310# Just in case 2311sleep 1 2312echo timestamp > conftest.file 2313# Reject unsafe characters in $srcdir or the absolute working directory 2314# name. Accept space and tab only in the latter. 2315am_lf=' 2316' 2317case `pwd` in 2318 *[\\\"\#\$\&\'\`$am_lf]*) 2319 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2320esac 2321case $srcdir in 2322 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2323 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2324esac 2325 2326# Do `set' in a subshell so we don't clobber the current shell's 2327# arguments. Must try -L first in case configure is actually a 2328# symlink; some systems play weird games with the mod time of symlinks 2329# (eg FreeBSD returns the mod time of the symlink's containing 2330# directory). 2331if ( 2332 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2333 if test "$*" = "X"; then 2334 # -L didn't work. 2335 set X `ls -t "$srcdir/configure" conftest.file` 2336 fi 2337 rm -f conftest.file 2338 if test "$*" != "X $srcdir/configure conftest.file" \ 2339 && test "$*" != "X conftest.file $srcdir/configure"; then 2340 2341 # If neither matched, then we have a broken ls. This can happen 2342 # if, for instance, CONFIG_SHELL is bash and it inherits a 2343 # broken ls alias from the environment. This has actually 2344 # happened. Such a system could not be considered "sane". 2345 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2346alias in your environment" "$LINENO" 5 2347 fi 2348 2349 test "$2" = conftest.file 2350 ) 2351then 2352 # Ok. 2353 : 2354else 2355 as_fn_error $? "newly created file is older than distributed files! 2356Check your system clock" "$LINENO" 5 2357fi 2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2359$as_echo "yes" >&6; } 2360test "$program_prefix" != NONE && 2361 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2362# Use a double $ so make ignores it. 2363test "$program_suffix" != NONE && 2364 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2365# Double any \ or $. 2366# By default was `s,x,x', remove it if useless. 2367ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2368program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2369 2370# expand $ac_aux_dir to an absolute path 2371am_aux_dir=`cd $ac_aux_dir && pwd` 2372 2373if test x"${MISSING+set}" != xset; then 2374 case $am_aux_dir in 2375 *\ * | *\ *) 2376 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2377 *) 2378 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2379 esac 2380fi 2381# Use eval to expand $SHELL 2382if eval "$MISSING --run true"; then 2383 am_missing_run="$MISSING --run " 2384else 2385 am_missing_run= 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2387$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2388fi 2389 2390if test x"${install_sh}" != xset; then 2391 case $am_aux_dir in 2392 *\ * | *\ *) 2393 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2394 *) 2395 install_sh="\${SHELL} $am_aux_dir/install-sh" 2396 esac 2397fi 2398 2399# Installed binaries are usually stripped using `strip' when the user 2400# run `make install-strip'. However `strip' might not be the right 2401# tool to use in cross-compilation environments, therefore Automake 2402# will honor the `STRIP' environment variable to overrule this program. 2403if test "$cross_compiling" != no; then 2404 if test -n "$ac_tool_prefix"; then 2405 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2406set dummy ${ac_tool_prefix}strip; ac_word=$2 2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2408$as_echo_n "checking for $ac_word... " >&6; } 2409if ${ac_cv_prog_STRIP+:} false; then : 2410 $as_echo_n "(cached) " >&6 2411else 2412 if test -n "$STRIP"; then 2413 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2414else 2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2416for as_dir in $PATH 2417do 2418 IFS=$as_save_IFS 2419 test -z "$as_dir" && as_dir=. 2420 for ac_exec_ext in '' $ac_executable_extensions; do 2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2422 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2424 break 2 2425 fi 2426done 2427 done 2428IFS=$as_save_IFS 2429 2430fi 2431fi 2432STRIP=$ac_cv_prog_STRIP 2433if test -n "$STRIP"; then 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2435$as_echo "$STRIP" >&6; } 2436else 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2438$as_echo "no" >&6; } 2439fi 2440 2441 2442fi 2443if test -z "$ac_cv_prog_STRIP"; then 2444 ac_ct_STRIP=$STRIP 2445 # Extract the first word of "strip", so it can be a program name with args. 2446set dummy strip; ac_word=$2 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2448$as_echo_n "checking for $ac_word... " >&6; } 2449if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2450 $as_echo_n "(cached) " >&6 2451else 2452 if test -n "$ac_ct_STRIP"; then 2453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2454else 2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2456for as_dir in $PATH 2457do 2458 IFS=$as_save_IFS 2459 test -z "$as_dir" && as_dir=. 2460 for ac_exec_ext in '' $ac_executable_extensions; do 2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2462 ac_cv_prog_ac_ct_STRIP="strip" 2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2464 break 2 2465 fi 2466done 2467 done 2468IFS=$as_save_IFS 2469 2470fi 2471fi 2472ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2473if test -n "$ac_ct_STRIP"; then 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2475$as_echo "$ac_ct_STRIP" >&6; } 2476else 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2478$as_echo "no" >&6; } 2479fi 2480 2481 if test "x$ac_ct_STRIP" = x; then 2482 STRIP=":" 2483 else 2484 case $cross_compiling:$ac_tool_warned in 2485yes:) 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2488ac_tool_warned=yes ;; 2489esac 2490 STRIP=$ac_ct_STRIP 2491 fi 2492else 2493 STRIP="$ac_cv_prog_STRIP" 2494fi 2495 2496fi 2497INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2498 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2500$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2501if test -z "$MKDIR_P"; then 2502 if ${ac_cv_path_mkdir+:} false; then : 2503 $as_echo_n "(cached) " >&6 2504else 2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2506for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2507do 2508 IFS=$as_save_IFS 2509 test -z "$as_dir" && as_dir=. 2510 for ac_prog in mkdir gmkdir; do 2511 for ac_exec_ext in '' $ac_executable_extensions; do 2512 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2513 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2514 'mkdir (GNU coreutils) '* | \ 2515 'mkdir (coreutils) '* | \ 2516 'mkdir (fileutils) '4.1*) 2517 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2518 break 3;; 2519 esac 2520 done 2521 done 2522 done 2523IFS=$as_save_IFS 2524 2525fi 2526 2527 test -d ./--version && rmdir ./--version 2528 if test "${ac_cv_path_mkdir+set}" = set; then 2529 MKDIR_P="$ac_cv_path_mkdir -p" 2530 else 2531 # As a last resort, use the slow shell script. Don't cache a 2532 # value for MKDIR_P within a source directory, because that will 2533 # break other packages using the cache if that directory is 2534 # removed, or if the value is a relative name. 2535 MKDIR_P="$ac_install_sh -d" 2536 fi 2537fi 2538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2539$as_echo "$MKDIR_P" >&6; } 2540 2541mkdir_p="$MKDIR_P" 2542case $mkdir_p in 2543 [\\/$]* | ?:[\\/]*) ;; 2544 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2545esac 2546 2547for ac_prog in gawk mawk nawk awk 2548do 2549 # Extract the first word of "$ac_prog", so it can be a program name with args. 2550set dummy $ac_prog; ac_word=$2 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2552$as_echo_n "checking for $ac_word... " >&6; } 2553if ${ac_cv_prog_AWK+:} false; then : 2554 $as_echo_n "(cached) " >&6 2555else 2556 if test -n "$AWK"; then 2557 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2558else 2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2560for as_dir in $PATH 2561do 2562 IFS=$as_save_IFS 2563 test -z "$as_dir" && as_dir=. 2564 for ac_exec_ext in '' $ac_executable_extensions; do 2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2566 ac_cv_prog_AWK="$ac_prog" 2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2568 break 2 2569 fi 2570done 2571 done 2572IFS=$as_save_IFS 2573 2574fi 2575fi 2576AWK=$ac_cv_prog_AWK 2577if test -n "$AWK"; then 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2579$as_echo "$AWK" >&6; } 2580else 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2582$as_echo "no" >&6; } 2583fi 2584 2585 2586 test -n "$AWK" && break 2587done 2588 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2590$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2591set x ${MAKE-make} 2592ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2593if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2594 $as_echo_n "(cached) " >&6 2595else 2596 cat >conftest.make <<\_ACEOF 2597SHELL = /bin/sh 2598all: 2599 @echo '@@@%%%=$(MAKE)=@@@%%%' 2600_ACEOF 2601# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2602case `${MAKE-make} -f conftest.make 2>/dev/null` in 2603 *@@@%%%=?*=@@@%%%*) 2604 eval ac_cv_prog_make_${ac_make}_set=yes;; 2605 *) 2606 eval ac_cv_prog_make_${ac_make}_set=no;; 2607esac 2608rm -f conftest.make 2609fi 2610if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2612$as_echo "yes" >&6; } 2613 SET_MAKE= 2614else 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2616$as_echo "no" >&6; } 2617 SET_MAKE="MAKE=${MAKE-make}" 2618fi 2619 2620rm -rf .tst 2>/dev/null 2621mkdir .tst 2>/dev/null 2622if test -d .tst; then 2623 am__leading_dot=. 2624else 2625 am__leading_dot=_ 2626fi 2627rmdir .tst 2>/dev/null 2628 2629if test "`cd $srcdir && pwd`" != "`pwd`"; then 2630 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2631 # is not polluted with repeated "-I." 2632 am__isrc=' -I$(srcdir)' 2633 # test to see if srcdir already configured 2634 if test -f $srcdir/config.status; then 2635 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2636 fi 2637fi 2638 2639# test whether we have cygpath 2640if test -z "$CYGPATH_W"; then 2641 if (cygpath --version) >/dev/null 2>/dev/null; then 2642 CYGPATH_W='cygpath -w' 2643 else 2644 CYGPATH_W=echo 2645 fi 2646fi 2647 2648 2649# Define the identity of the package. 2650 PACKAGE='rgb' 2651 VERSION='1.0.5' 2652 2653 2654cat >>confdefs.h <<_ACEOF 2655#define PACKAGE "$PACKAGE" 2656_ACEOF 2657 2658 2659cat >>confdefs.h <<_ACEOF 2660#define VERSION "$VERSION" 2661_ACEOF 2662 2663# Some tools Automake needs. 2664 2665ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2666 2667 2668AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2669 2670 2671AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2672 2673 2674AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2675 2676 2677MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2678 2679# We need awk for the "check" target. The system "awk" is bad on 2680# some platforms. 2681# Always define AMTAR for backward compatibility. 2682 2683AMTAR=${AMTAR-"${am_missing_run}tar"} 2684 2685am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2686 2687 2688 2689 2690 2691 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2693$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2694 # Check whether --enable-maintainer-mode was given. 2695if test "${enable_maintainer_mode+set}" = set; then : 2696 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2697else 2698 USE_MAINTAINER_MODE=no 2699fi 2700 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2702$as_echo "$USE_MAINTAINER_MODE" >&6; } 2703 if test $USE_MAINTAINER_MODE = yes; then 2704 MAINTAINER_MODE_TRUE= 2705 MAINTAINER_MODE_FALSE='#' 2706else 2707 MAINTAINER_MODE_TRUE='#' 2708 MAINTAINER_MODE_FALSE= 2709fi 2710 2711 MAINT=$MAINTAINER_MODE_TRUE 2712 2713 2714 2715# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727DEPDIR="${am__leading_dot}deps" 2728 2729ac_config_commands="$ac_config_commands depfiles" 2730 2731 2732am_make=${MAKE-make} 2733cat > confinc << 'END' 2734am__doit: 2735 @echo this is the am__doit target 2736.PHONY: am__doit 2737END 2738# If we don't find an include directive, just comment out the code. 2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2740$as_echo_n "checking for style of include used by $am_make... " >&6; } 2741am__include="#" 2742am__quote= 2743_am_result=none 2744# First try GNU make style include. 2745echo "include confinc" > confmf 2746# Ignore all kinds of additional output from `make'. 2747case `$am_make -s -f confmf 2> /dev/null` in #( 2748*the\ am__doit\ target*) 2749 am__include=include 2750 am__quote= 2751 _am_result=GNU 2752 ;; 2753esac 2754# Now try BSD make style include. 2755if test "$am__include" = "#"; then 2756 echo '.include "confinc"' > confmf 2757 case `$am_make -s -f confmf 2> /dev/null` in #( 2758 *the\ am__doit\ target*) 2759 am__include=.include 2760 am__quote="\"" 2761 _am_result=BSD 2762 ;; 2763 esac 2764fi 2765 2766 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2768$as_echo "$_am_result" >&6; } 2769rm -f confinc confmf 2770 2771# Check whether --enable-dependency-tracking was given. 2772if test "${enable_dependency_tracking+set}" = set; then : 2773 enableval=$enable_dependency_tracking; 2774fi 2775 2776if test "x$enable_dependency_tracking" != xno; then 2777 am_depcomp="$ac_aux_dir/depcomp" 2778 AMDEPBACKSLASH='\' 2779 am__nodep='_no' 2780fi 2781 if test "x$enable_dependency_tracking" != xno; then 2782 AMDEP_TRUE= 2783 AMDEP_FALSE='#' 2784else 2785 AMDEP_TRUE='#' 2786 AMDEP_FALSE= 2787fi 2788 2789 2790ac_ext=c 2791ac_cpp='$CPP $CPPFLAGS' 2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2794ac_compiler_gnu=$ac_cv_c_compiler_gnu 2795if test -n "$ac_tool_prefix"; then 2796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2797set dummy ${ac_tool_prefix}gcc; ac_word=$2 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2799$as_echo_n "checking for $ac_word... " >&6; } 2800if ${ac_cv_prog_CC+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802else 2803 if test -n "$CC"; then 2804 ac_cv_prog_CC="$CC" # Let the user override the test. 2805else 2806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2807for as_dir in $PATH 2808do 2809 IFS=$as_save_IFS 2810 test -z "$as_dir" && as_dir=. 2811 for ac_exec_ext in '' $ac_executable_extensions; do 2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2813 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2815 break 2 2816 fi 2817done 2818 done 2819IFS=$as_save_IFS 2820 2821fi 2822fi 2823CC=$ac_cv_prog_CC 2824if test -n "$CC"; then 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2826$as_echo "$CC" >&6; } 2827else 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2829$as_echo "no" >&6; } 2830fi 2831 2832 2833fi 2834if test -z "$ac_cv_prog_CC"; then 2835 ac_ct_CC=$CC 2836 # Extract the first word of "gcc", so it can be a program name with args. 2837set dummy gcc; ac_word=$2 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2839$as_echo_n "checking for $ac_word... " >&6; } 2840if ${ac_cv_prog_ac_ct_CC+:} false; then : 2841 $as_echo_n "(cached) " >&6 2842else 2843 if test -n "$ac_ct_CC"; then 2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2845else 2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2847for as_dir in $PATH 2848do 2849 IFS=$as_save_IFS 2850 test -z "$as_dir" && as_dir=. 2851 for ac_exec_ext in '' $ac_executable_extensions; do 2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2853 ac_cv_prog_ac_ct_CC="gcc" 2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2855 break 2 2856 fi 2857done 2858 done 2859IFS=$as_save_IFS 2860 2861fi 2862fi 2863ac_ct_CC=$ac_cv_prog_ac_ct_CC 2864if test -n "$ac_ct_CC"; then 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2866$as_echo "$ac_ct_CC" >&6; } 2867else 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2869$as_echo "no" >&6; } 2870fi 2871 2872 if test "x$ac_ct_CC" = x; then 2873 CC="" 2874 else 2875 case $cross_compiling:$ac_tool_warned in 2876yes:) 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2879ac_tool_warned=yes ;; 2880esac 2881 CC=$ac_ct_CC 2882 fi 2883else 2884 CC="$ac_cv_prog_CC" 2885fi 2886 2887if test -z "$CC"; then 2888 if test -n "$ac_tool_prefix"; then 2889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2890set dummy ${ac_tool_prefix}cc; ac_word=$2 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2892$as_echo_n "checking for $ac_word... " >&6; } 2893if ${ac_cv_prog_CC+:} false; then : 2894 $as_echo_n "(cached) " >&6 2895else 2896 if test -n "$CC"; then 2897 ac_cv_prog_CC="$CC" # Let the user override the test. 2898else 2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900for as_dir in $PATH 2901do 2902 IFS=$as_save_IFS 2903 test -z "$as_dir" && as_dir=. 2904 for ac_exec_ext in '' $ac_executable_extensions; do 2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2906 ac_cv_prog_CC="${ac_tool_prefix}cc" 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2908 break 2 2909 fi 2910done 2911 done 2912IFS=$as_save_IFS 2913 2914fi 2915fi 2916CC=$ac_cv_prog_CC 2917if test -n "$CC"; then 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2919$as_echo "$CC" >&6; } 2920else 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2922$as_echo "no" >&6; } 2923fi 2924 2925 2926 fi 2927fi 2928if test -z "$CC"; then 2929 # Extract the first word of "cc", so it can be a program name with args. 2930set dummy cc; ac_word=$2 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2932$as_echo_n "checking for $ac_word... " >&6; } 2933if ${ac_cv_prog_CC+:} false; then : 2934 $as_echo_n "(cached) " >&6 2935else 2936 if test -n "$CC"; then 2937 ac_cv_prog_CC="$CC" # Let the user override the test. 2938else 2939 ac_prog_rejected=no 2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2941for as_dir in $PATH 2942do 2943 IFS=$as_save_IFS 2944 test -z "$as_dir" && as_dir=. 2945 for ac_exec_ext in '' $ac_executable_extensions; do 2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2948 ac_prog_rejected=yes 2949 continue 2950 fi 2951 ac_cv_prog_CC="cc" 2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2953 break 2 2954 fi 2955done 2956 done 2957IFS=$as_save_IFS 2958 2959if test $ac_prog_rejected = yes; then 2960 # We found a bogon in the path, so make sure we never use it. 2961 set dummy $ac_cv_prog_CC 2962 shift 2963 if test $# != 0; then 2964 # We chose a different compiler from the bogus one. 2965 # However, it has the same basename, so the bogon will be chosen 2966 # first if we set CC to just the basename; use the full file name. 2967 shift 2968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2969 fi 2970fi 2971fi 2972fi 2973CC=$ac_cv_prog_CC 2974if test -n "$CC"; then 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2976$as_echo "$CC" >&6; } 2977else 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2979$as_echo "no" >&6; } 2980fi 2981 2982 2983fi 2984if test -z "$CC"; then 2985 if test -n "$ac_tool_prefix"; then 2986 for ac_prog in cl.exe 2987 do 2988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2989set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991$as_echo_n "checking for $ac_word... " >&6; } 2992if ${ac_cv_prog_CC+:} false; then : 2993 $as_echo_n "(cached) " >&6 2994else 2995 if test -n "$CC"; then 2996 ac_cv_prog_CC="$CC" # Let the user override the test. 2997else 2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2999for as_dir in $PATH 3000do 3001 IFS=$as_save_IFS 3002 test -z "$as_dir" && as_dir=. 3003 for ac_exec_ext in '' $ac_executable_extensions; do 3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3007 break 2 3008 fi 3009done 3010 done 3011IFS=$as_save_IFS 3012 3013fi 3014fi 3015CC=$ac_cv_prog_CC 3016if test -n "$CC"; then 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3018$as_echo "$CC" >&6; } 3019else 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3021$as_echo "no" >&6; } 3022fi 3023 3024 3025 test -n "$CC" && break 3026 done 3027fi 3028if test -z "$CC"; then 3029 ac_ct_CC=$CC 3030 for ac_prog in cl.exe 3031do 3032 # Extract the first word of "$ac_prog", so it can be a program name with args. 3033set dummy $ac_prog; ac_word=$2 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035$as_echo_n "checking for $ac_word... " >&6; } 3036if ${ac_cv_prog_ac_ct_CC+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 if test -n "$ac_ct_CC"; then 3040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3041else 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3049 ac_cv_prog_ac_ct_CC="$ac_prog" 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053done 3054 done 3055IFS=$as_save_IFS 3056 3057fi 3058fi 3059ac_ct_CC=$ac_cv_prog_ac_ct_CC 3060if test -n "$ac_ct_CC"; then 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3062$as_echo "$ac_ct_CC" >&6; } 3063else 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065$as_echo "no" >&6; } 3066fi 3067 3068 3069 test -n "$ac_ct_CC" && break 3070done 3071 3072 if test "x$ac_ct_CC" = x; then 3073 CC="" 3074 else 3075 case $cross_compiling:$ac_tool_warned in 3076yes:) 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3079ac_tool_warned=yes ;; 3080esac 3081 CC=$ac_ct_CC 3082 fi 3083fi 3084 3085fi 3086 3087 3088test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3090as_fn_error $? "no acceptable C compiler found in \$PATH 3091See \`config.log' for more details" "$LINENO" 5; } 3092 3093# Provide some information about the compiler. 3094$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3095set X $ac_compile 3096ac_compiler=$2 3097for ac_option in --version -v -V -qversion; do 3098 { { ac_try="$ac_compiler $ac_option >&5" 3099case "(($ac_try" in 3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3101 *) ac_try_echo=$ac_try;; 3102esac 3103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3104$as_echo "$ac_try_echo"; } >&5 3105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3106 ac_status=$? 3107 if test -s conftest.err; then 3108 sed '10a\ 3109... rest of stderr output deleted ... 3110 10q' conftest.err >conftest.er1 3111 cat conftest.er1 >&5 3112 fi 3113 rm -f conftest.er1 conftest.err 3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3115 test $ac_status = 0; } 3116done 3117 3118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3119/* end confdefs.h. */ 3120 3121int 3122main () 3123{ 3124 3125 ; 3126 return 0; 3127} 3128_ACEOF 3129ac_clean_files_save=$ac_clean_files 3130ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3131# Try to create an executable without -o first, disregard a.out. 3132# It will help us diagnose broken compilers, and finding out an intuition 3133# of exeext. 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3135$as_echo_n "checking whether the C compiler works... " >&6; } 3136ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3137 3138# The possible output files: 3139ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3140 3141ac_rmfiles= 3142for ac_file in $ac_files 3143do 3144 case $ac_file in 3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3146 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3147 esac 3148done 3149rm -f $ac_rmfiles 3150 3151if { { ac_try="$ac_link_default" 3152case "(($ac_try" in 3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3154 *) ac_try_echo=$ac_try;; 3155esac 3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3157$as_echo "$ac_try_echo"; } >&5 3158 (eval "$ac_link_default") 2>&5 3159 ac_status=$? 3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3161 test $ac_status = 0; }; then : 3162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3163# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3164# in a Makefile. We should not override ac_cv_exeext if it was cached, 3165# so that the user can short-circuit this test for compilers unknown to 3166# Autoconf. 3167for ac_file in $ac_files '' 3168do 3169 test -f "$ac_file" || continue 3170 case $ac_file in 3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3172 ;; 3173 [ab].out ) 3174 # We found the default executable, but exeext='' is most 3175 # certainly right. 3176 break;; 3177 *.* ) 3178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3179 then :; else 3180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3181 fi 3182 # We set ac_cv_exeext here because the later test for it is not 3183 # safe: cross compilers may not add the suffix if given an `-o' 3184 # argument, so we may need to know it at that point already. 3185 # Even if this section looks crufty: it has the advantage of 3186 # actually working. 3187 break;; 3188 * ) 3189 break;; 3190 esac 3191done 3192test "$ac_cv_exeext" = no && ac_cv_exeext= 3193 3194else 3195 ac_file='' 3196fi 3197if test -z "$ac_file"; then : 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3199$as_echo "no" >&6; } 3200$as_echo "$as_me: failed program was:" >&5 3201sed 's/^/| /' conftest.$ac_ext >&5 3202 3203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3205as_fn_error 77 "C compiler cannot create executables 3206See \`config.log' for more details" "$LINENO" 5; } 3207else 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3209$as_echo "yes" >&6; } 3210fi 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3212$as_echo_n "checking for C compiler default output file name... " >&6; } 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3214$as_echo "$ac_file" >&6; } 3215ac_exeext=$ac_cv_exeext 3216 3217rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3218ac_clean_files=$ac_clean_files_save 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3220$as_echo_n "checking for suffix of executables... " >&6; } 3221if { { ac_try="$ac_link" 3222case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3227$as_echo "$ac_try_echo"; } >&5 3228 (eval "$ac_link") 2>&5 3229 ac_status=$? 3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3231 test $ac_status = 0; }; then : 3232 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3233# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3234# work properly (i.e., refer to `conftest.exe'), while it won't with 3235# `rm'. 3236for ac_file in conftest.exe conftest conftest.*; do 3237 test -f "$ac_file" || continue 3238 case $ac_file in 3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3241 break;; 3242 * ) break;; 3243 esac 3244done 3245else 3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3248as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3249See \`config.log' for more details" "$LINENO" 5; } 3250fi 3251rm -f conftest conftest$ac_cv_exeext 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3253$as_echo "$ac_cv_exeext" >&6; } 3254 3255rm -f conftest.$ac_ext 3256EXEEXT=$ac_cv_exeext 3257ac_exeext=$EXEEXT 3258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3259/* end confdefs.h. */ 3260#include <stdio.h> 3261int 3262main () 3263{ 3264FILE *f = fopen ("conftest.out", "w"); 3265 return ferror (f) || fclose (f) != 0; 3266 3267 ; 3268 return 0; 3269} 3270_ACEOF 3271ac_clean_files="$ac_clean_files conftest.out" 3272# Check that the compiler produces executables we can run. If not, either 3273# the compiler is broken, or we cross compile. 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3275$as_echo_n "checking whether we are cross compiling... " >&6; } 3276if test "$cross_compiling" != yes; then 3277 { { ac_try="$ac_link" 3278case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281esac 3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3283$as_echo "$ac_try_echo"; } >&5 3284 (eval "$ac_link") 2>&5 3285 ac_status=$? 3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3287 test $ac_status = 0; } 3288 if { ac_try='./conftest$ac_cv_exeext' 3289 { { case "(($ac_try" in 3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3291 *) ac_try_echo=$ac_try;; 3292esac 3293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3294$as_echo "$ac_try_echo"; } >&5 3295 (eval "$ac_try") 2>&5 3296 ac_status=$? 3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3298 test $ac_status = 0; }; }; then 3299 cross_compiling=no 3300 else 3301 if test "$cross_compiling" = maybe; then 3302 cross_compiling=yes 3303 else 3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3306as_fn_error $? "cannot run C compiled programs. 3307If you meant to cross compile, use \`--host'. 3308See \`config.log' for more details" "$LINENO" 5; } 3309 fi 3310 fi 3311fi 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3313$as_echo "$cross_compiling" >&6; } 3314 3315rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3316ac_clean_files=$ac_clean_files_save 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3318$as_echo_n "checking for suffix of object files... " >&6; } 3319if ${ac_cv_objext+:} false; then : 3320 $as_echo_n "(cached) " >&6 3321else 3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3323/* end confdefs.h. */ 3324 3325int 3326main () 3327{ 3328 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333rm -f conftest.o conftest.obj 3334if { { ac_try="$ac_compile" 3335case "(($ac_try" in 3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3337 *) ac_try_echo=$ac_try;; 3338esac 3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3340$as_echo "$ac_try_echo"; } >&5 3341 (eval "$ac_compile") 2>&5 3342 ac_status=$? 3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3344 test $ac_status = 0; }; then : 3345 for ac_file in conftest.o conftest.obj conftest.*; do 3346 test -f "$ac_file" || continue; 3347 case $ac_file in 3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3350 break;; 3351 esac 3352done 3353else 3354 $as_echo "$as_me: failed program was:" >&5 3355sed 's/^/| /' conftest.$ac_ext >&5 3356 3357{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3359as_fn_error $? "cannot compute suffix of object files: cannot compile 3360See \`config.log' for more details" "$LINENO" 5; } 3361fi 3362rm -f conftest.$ac_cv_objext conftest.$ac_ext 3363fi 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3365$as_echo "$ac_cv_objext" >&6; } 3366OBJEXT=$ac_cv_objext 3367ac_objext=$OBJEXT 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3369$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3370if ${ac_cv_c_compiler_gnu+:} false; then : 3371 $as_echo_n "(cached) " >&6 3372else 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3374/* end confdefs.h. */ 3375 3376int 3377main () 3378{ 3379#ifndef __GNUC__ 3380 choke me 3381#endif 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387if ac_fn_c_try_compile "$LINENO"; then : 3388 ac_compiler_gnu=yes 3389else 3390 ac_compiler_gnu=no 3391fi 3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3393ac_cv_c_compiler_gnu=$ac_compiler_gnu 3394 3395fi 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3397$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3398if test $ac_compiler_gnu = yes; then 3399 GCC=yes 3400else 3401 GCC= 3402fi 3403ac_test_CFLAGS=${CFLAGS+set} 3404ac_save_CFLAGS=$CFLAGS 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3406$as_echo_n "checking whether $CC accepts -g... " >&6; } 3407if ${ac_cv_prog_cc_g+:} false; then : 3408 $as_echo_n "(cached) " >&6 3409else 3410 ac_save_c_werror_flag=$ac_c_werror_flag 3411 ac_c_werror_flag=yes 3412 ac_cv_prog_cc_g=no 3413 CFLAGS="-g" 3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3415/* end confdefs.h. */ 3416 3417int 3418main () 3419{ 3420 3421 ; 3422 return 0; 3423} 3424_ACEOF 3425if ac_fn_c_try_compile "$LINENO"; then : 3426 ac_cv_prog_cc_g=yes 3427else 3428 CFLAGS="" 3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3430/* end confdefs.h. */ 3431 3432int 3433main () 3434{ 3435 3436 ; 3437 return 0; 3438} 3439_ACEOF 3440if ac_fn_c_try_compile "$LINENO"; then : 3441 3442else 3443 ac_c_werror_flag=$ac_save_c_werror_flag 3444 CFLAGS="-g" 3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3446/* end confdefs.h. */ 3447 3448int 3449main () 3450{ 3451 3452 ; 3453 return 0; 3454} 3455_ACEOF 3456if ac_fn_c_try_compile "$LINENO"; then : 3457 ac_cv_prog_cc_g=yes 3458fi 3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3460fi 3461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3462fi 3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3464 ac_c_werror_flag=$ac_save_c_werror_flag 3465fi 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3467$as_echo "$ac_cv_prog_cc_g" >&6; } 3468if test "$ac_test_CFLAGS" = set; then 3469 CFLAGS=$ac_save_CFLAGS 3470elif test $ac_cv_prog_cc_g = yes; then 3471 if test "$GCC" = yes; then 3472 CFLAGS="-g -O2" 3473 else 3474 CFLAGS="-g" 3475 fi 3476else 3477 if test "$GCC" = yes; then 3478 CFLAGS="-O2" 3479 else 3480 CFLAGS= 3481 fi 3482fi 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3484$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3485if ${ac_cv_prog_cc_c89+:} false; then : 3486 $as_echo_n "(cached) " >&6 3487else 3488 ac_cv_prog_cc_c89=no 3489ac_save_CC=$CC 3490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3491/* end confdefs.h. */ 3492#include <stdarg.h> 3493#include <stdio.h> 3494#include <sys/types.h> 3495#include <sys/stat.h> 3496/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3497struct buf { int x; }; 3498FILE * (*rcsopen) (struct buf *, struct stat *, int); 3499static char *e (p, i) 3500 char **p; 3501 int i; 3502{ 3503 return p[i]; 3504} 3505static char *f (char * (*g) (char **, int), char **p, ...) 3506{ 3507 char *s; 3508 va_list v; 3509 va_start (v,p); 3510 s = g (p, va_arg (v,int)); 3511 va_end (v); 3512 return s; 3513} 3514 3515/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3516 function prototypes and stuff, but not '\xHH' hex character constants. 3517 These don't provoke an error unfortunately, instead are silently treated 3518 as 'x'. The following induces an error, until -std is added to get 3519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3520 array size at least. It's necessary to write '\x00'==0 to get something 3521 that's true only with -std. */ 3522int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3523 3524/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3525 inside strings and character constants. */ 3526#define FOO(x) 'x' 3527int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3528 3529int test (int i, double x); 3530struct s1 {int (*f) (int a);}; 3531struct s2 {int (*f) (double a);}; 3532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3533int argc; 3534char **argv; 3535int 3536main () 3537{ 3538return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3539 ; 3540 return 0; 3541} 3542_ACEOF 3543for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3545do 3546 CC="$ac_save_CC $ac_arg" 3547 if ac_fn_c_try_compile "$LINENO"; then : 3548 ac_cv_prog_cc_c89=$ac_arg 3549fi 3550rm -f core conftest.err conftest.$ac_objext 3551 test "x$ac_cv_prog_cc_c89" != "xno" && break 3552done 3553rm -f conftest.$ac_ext 3554CC=$ac_save_CC 3555 3556fi 3557# AC_CACHE_VAL 3558case "x$ac_cv_prog_cc_c89" in 3559 x) 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3561$as_echo "none needed" >&6; } ;; 3562 xno) 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3564$as_echo "unsupported" >&6; } ;; 3565 *) 3566 CC="$CC $ac_cv_prog_cc_c89" 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3568$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3569esac 3570if test "x$ac_cv_prog_cc_c89" != xno; then : 3571 3572fi 3573 3574ac_ext=c 3575ac_cpp='$CPP $CPPFLAGS' 3576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3578ac_compiler_gnu=$ac_cv_c_compiler_gnu 3579 3580depcc="$CC" am_compiler_list= 3581 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3583$as_echo_n "checking dependency style of $depcc... " >&6; } 3584if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3588 # We make a subdir and do the tests there. Otherwise we can end up 3589 # making bogus files that we don't know about and never remove. For 3590 # instance it was reported that on HP-UX the gcc test will end up 3591 # making a dummy file named `D' -- because `-MD' means `put the output 3592 # in D'. 3593 rm -rf conftest.dir 3594 mkdir conftest.dir 3595 # Copy depcomp to subdir because otherwise we won't find it if we're 3596 # using a relative directory. 3597 cp "$am_depcomp" conftest.dir 3598 cd conftest.dir 3599 # We will build objects and dependencies in a subdirectory because 3600 # it helps to detect inapplicable dependency modes. For instance 3601 # both Tru64's cc and ICC support -MD to output dependencies as a 3602 # side effect of compilation, but ICC will put the dependencies in 3603 # the current directory while Tru64 will put them in the object 3604 # directory. 3605 mkdir sub 3606 3607 am_cv_CC_dependencies_compiler_type=none 3608 if test "$am_compiler_list" = ""; then 3609 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3610 fi 3611 am__universal=false 3612 case " $depcc " in #( 3613 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3614 esac 3615 3616 for depmode in $am_compiler_list; do 3617 # Setup a source with many dependencies, because some compilers 3618 # like to wrap large dependency lists on column 80 (with \), and 3619 # we should not choose a depcomp mode which is confused by this. 3620 # 3621 # We need to recreate these files for each test, as the compiler may 3622 # overwrite some of them when testing with obscure command lines. 3623 # This happens at least with the AIX C compiler. 3624 : > sub/conftest.c 3625 for i in 1 2 3 4 5 6; do 3626 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3627 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3628 # Solaris 8's {/usr,}/bin/sh. 3629 touch sub/conftst$i.h 3630 done 3631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3632 3633 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3634 # mode. It turns out that the SunPro C++ compiler does not properly 3635 # handle `-M -o', and we need to detect this. Also, some Intel 3636 # versions had trouble with output in subdirs 3637 am__obj=sub/conftest.${OBJEXT-o} 3638 am__minus_obj="-o $am__obj" 3639 case $depmode in 3640 gcc) 3641 # This depmode causes a compiler race in universal mode. 3642 test "$am__universal" = false || continue 3643 ;; 3644 nosideeffect) 3645 # after this tag, mechanisms are not by side-effect, so they'll 3646 # only be used when explicitly requested 3647 if test "x$enable_dependency_tracking" = xyes; then 3648 continue 3649 else 3650 break 3651 fi 3652 ;; 3653 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3654 # This compiler won't grok `-c -o', but also, the minuso test has 3655 # not run yet. These depmodes are late enough in the game, and 3656 # so weak that their functioning should not be impacted. 3657 am__obj=conftest.${OBJEXT-o} 3658 am__minus_obj= 3659 ;; 3660 none) break ;; 3661 esac 3662 if depmode=$depmode \ 3663 source=sub/conftest.c object=$am__obj \ 3664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3666 >/dev/null 2>conftest.err && 3667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3671 # icc doesn't choke on unknown options, it will just issue warnings 3672 # or remarks (even with -Werror). So we grep stderr for any message 3673 # that says an option was ignored or not supported. 3674 # When given -MP, icc 7.0 and 7.1 complain thusly: 3675 # icc: Command line warning: ignoring option '-M'; no argument required 3676 # The diagnosis changed in icc 8.0: 3677 # icc: Command line remark: option '-MP' not supported 3678 if (grep 'ignoring option' conftest.err || 3679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3680 am_cv_CC_dependencies_compiler_type=$depmode 3681 break 3682 fi 3683 fi 3684 done 3685 3686 cd .. 3687 rm -rf conftest.dir 3688else 3689 am_cv_CC_dependencies_compiler_type=none 3690fi 3691 3692fi 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3694$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3695CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3696 3697 if 3698 test "x$enable_dependency_tracking" != xno \ 3699 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3700 am__fastdepCC_TRUE= 3701 am__fastdepCC_FALSE='#' 3702else 3703 am__fastdepCC_TRUE='#' 3704 am__fastdepCC_FALSE= 3705fi 3706 3707 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3709$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3710if ${ac_cv_prog_cc_c99+:} false; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 ac_cv_prog_cc_c99=no 3714ac_save_CC=$CC 3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3716/* end confdefs.h. */ 3717#include <stdarg.h> 3718#include <stdbool.h> 3719#include <stdlib.h> 3720#include <wchar.h> 3721#include <stdio.h> 3722 3723// Check varargs macros. These examples are taken from C99 6.10.3.5. 3724#define debug(...) fprintf (stderr, __VA_ARGS__) 3725#define showlist(...) puts (#__VA_ARGS__) 3726#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3727static void 3728test_varargs_macros (void) 3729{ 3730 int x = 1234; 3731 int y = 5678; 3732 debug ("Flag"); 3733 debug ("X = %d\n", x); 3734 showlist (The first, second, and third items.); 3735 report (x>y, "x is %d but y is %d", x, y); 3736} 3737 3738// Check long long types. 3739#define BIG64 18446744073709551615ull 3740#define BIG32 4294967295ul 3741#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3742#if !BIG_OK 3743 your preprocessor is broken; 3744#endif 3745#if BIG_OK 3746#else 3747 your preprocessor is broken; 3748#endif 3749static long long int bignum = -9223372036854775807LL; 3750static unsigned long long int ubignum = BIG64; 3751 3752struct incomplete_array 3753{ 3754 int datasize; 3755 double data[]; 3756}; 3757 3758struct named_init { 3759 int number; 3760 const wchar_t *name; 3761 double average; 3762}; 3763 3764typedef const char *ccp; 3765 3766static inline int 3767test_restrict (ccp restrict text) 3768{ 3769 // See if C++-style comments work. 3770 // Iterate through items via the restricted pointer. 3771 // Also check for declarations in for loops. 3772 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3773 continue; 3774 return 0; 3775} 3776 3777// Check varargs and va_copy. 3778static void 3779test_varargs (const char *format, ...) 3780{ 3781 va_list args; 3782 va_start (args, format); 3783 va_list args_copy; 3784 va_copy (args_copy, args); 3785 3786 const char *str; 3787 int number; 3788 float fnumber; 3789 3790 while (*format) 3791 { 3792 switch (*format++) 3793 { 3794 case 's': // string 3795 str = va_arg (args_copy, const char *); 3796 break; 3797 case 'd': // int 3798 number = va_arg (args_copy, int); 3799 break; 3800 case 'f': // float 3801 fnumber = va_arg (args_copy, double); 3802 break; 3803 default: 3804 break; 3805 } 3806 } 3807 va_end (args_copy); 3808 va_end (args); 3809} 3810 3811int 3812main () 3813{ 3814 3815 // Check bool. 3816 _Bool success = false; 3817 3818 // Check restrict. 3819 if (test_restrict ("String literal") == 0) 3820 success = true; 3821 char *restrict newvar = "Another string"; 3822 3823 // Check varargs. 3824 test_varargs ("s, d' f .", "string", 65, 34.234); 3825 test_varargs_macros (); 3826 3827 // Check flexible array members. 3828 struct incomplete_array *ia = 3829 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3830 ia->datasize = 10; 3831 for (int i = 0; i < ia->datasize; ++i) 3832 ia->data[i] = i * 1.234; 3833 3834 // Check named initializers. 3835 struct named_init ni = { 3836 .number = 34, 3837 .name = L"Test wide string", 3838 .average = 543.34343, 3839 }; 3840 3841 ni.number = 58; 3842 3843 int dynamic_array[ni.number]; 3844 dynamic_array[ni.number - 1] = 543; 3845 3846 // work around unused variable warnings 3847 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3848 || dynamic_array[ni.number - 1] != 543); 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3855do 3856 CC="$ac_save_CC $ac_arg" 3857 if ac_fn_c_try_compile "$LINENO"; then : 3858 ac_cv_prog_cc_c99=$ac_arg 3859fi 3860rm -f core conftest.err conftest.$ac_objext 3861 test "x$ac_cv_prog_cc_c99" != "xno" && break 3862done 3863rm -f conftest.$ac_ext 3864CC=$ac_save_CC 3865 3866fi 3867# AC_CACHE_VAL 3868case "x$ac_cv_prog_cc_c99" in 3869 x) 3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3871$as_echo "none needed" >&6; } ;; 3872 xno) 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3874$as_echo "unsupported" >&6; } ;; 3875 *) 3876 CC="$CC $ac_cv_prog_cc_c99" 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3878$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3879esac 3880if test "x$ac_cv_prog_cc_c99" != xno; then : 3881 3882fi 3883 3884 3885 3886ac_ext=c 3887ac_cpp='$CPP $CPPFLAGS' 3888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3890ac_compiler_gnu=$ac_cv_c_compiler_gnu 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3892$as_echo_n "checking how to run the C preprocessor... " >&6; } 3893# On Suns, sometimes $CPP names a directory. 3894if test -n "$CPP" && test -d "$CPP"; then 3895 CPP= 3896fi 3897if test -z "$CPP"; then 3898 if ${ac_cv_prog_CPP+:} false; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 # Double quotes because CPP needs to be expanded 3902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3903 do 3904 ac_preproc_ok=false 3905for ac_c_preproc_warn_flag in '' yes 3906do 3907 # Use a header file that comes with gcc, so configuring glibc 3908 # with a fresh cross-compiler works. 3909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3910 # <limits.h> exists even on freestanding compilers. 3911 # On the NeXT, cc -E runs the code through the compiler's parser, 3912 # not just through cpp. "Syntax error" is here to catch this case. 3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914/* end confdefs.h. */ 3915#ifdef __STDC__ 3916# include <limits.h> 3917#else 3918# include <assert.h> 3919#endif 3920 Syntax error 3921_ACEOF 3922if ac_fn_c_try_cpp "$LINENO"; then : 3923 3924else 3925 # Broken: fails on valid input. 3926continue 3927fi 3928rm -f conftest.err conftest.i conftest.$ac_ext 3929 3930 # OK, works on sane cases. Now check whether nonexistent headers 3931 # can be detected and how. 3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3933/* end confdefs.h. */ 3934#include <ac_nonexistent.h> 3935_ACEOF 3936if ac_fn_c_try_cpp "$LINENO"; then : 3937 # Broken: success on invalid input. 3938continue 3939else 3940 # Passes both tests. 3941ac_preproc_ok=: 3942break 3943fi 3944rm -f conftest.err conftest.i conftest.$ac_ext 3945 3946done 3947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3948rm -f conftest.i conftest.err conftest.$ac_ext 3949if $ac_preproc_ok; then : 3950 break 3951fi 3952 3953 done 3954 ac_cv_prog_CPP=$CPP 3955 3956fi 3957 CPP=$ac_cv_prog_CPP 3958else 3959 ac_cv_prog_CPP=$CPP 3960fi 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3962$as_echo "$CPP" >&6; } 3963ac_preproc_ok=false 3964for ac_c_preproc_warn_flag in '' yes 3965do 3966 # Use a header file that comes with gcc, so configuring glibc 3967 # with a fresh cross-compiler works. 3968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3969 # <limits.h> exists even on freestanding compilers. 3970 # On the NeXT, cc -E runs the code through the compiler's parser, 3971 # not just through cpp. "Syntax error" is here to catch this case. 3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3973/* end confdefs.h. */ 3974#ifdef __STDC__ 3975# include <limits.h> 3976#else 3977# include <assert.h> 3978#endif 3979 Syntax error 3980_ACEOF 3981if ac_fn_c_try_cpp "$LINENO"; then : 3982 3983else 3984 # Broken: fails on valid input. 3985continue 3986fi 3987rm -f conftest.err conftest.i conftest.$ac_ext 3988 3989 # OK, works on sane cases. Now check whether nonexistent headers 3990 # can be detected and how. 3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992/* end confdefs.h. */ 3993#include <ac_nonexistent.h> 3994_ACEOF 3995if ac_fn_c_try_cpp "$LINENO"; then : 3996 # Broken: success on invalid input. 3997continue 3998else 3999 # Passes both tests. 4000ac_preproc_ok=: 4001break 4002fi 4003rm -f conftest.err conftest.i conftest.$ac_ext 4004 4005done 4006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4007rm -f conftest.i conftest.err conftest.$ac_ext 4008if $ac_preproc_ok; then : 4009 4010else 4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4013as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4014See \`config.log' for more details" "$LINENO" 5; } 4015fi 4016 4017ac_ext=c 4018ac_cpp='$CPP $CPPFLAGS' 4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4021ac_compiler_gnu=$ac_cv_c_compiler_gnu 4022 4023 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4025$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4026if ${ac_cv_path_GREP+:} false; then : 4027 $as_echo_n "(cached) " >&6 4028else 4029 if test -z "$GREP"; then 4030 ac_path_GREP_found=false 4031 # Loop through the user's path and test for each of PROGNAME-LIST 4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4033for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4034do 4035 IFS=$as_save_IFS 4036 test -z "$as_dir" && as_dir=. 4037 for ac_prog in grep ggrep; do 4038 for ac_exec_ext in '' $ac_executable_extensions; do 4039 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4040 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4041# Check for GNU ac_path_GREP and select it if it is found. 4042 # Check for GNU $ac_path_GREP 4043case `"$ac_path_GREP" --version 2>&1` in 4044*GNU*) 4045 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4046*) 4047 ac_count=0 4048 $as_echo_n 0123456789 >"conftest.in" 4049 while : 4050 do 4051 cat "conftest.in" "conftest.in" >"conftest.tmp" 4052 mv "conftest.tmp" "conftest.in" 4053 cp "conftest.in" "conftest.nl" 4054 $as_echo 'GREP' >> "conftest.nl" 4055 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4057 as_fn_arith $ac_count + 1 && ac_count=$as_val 4058 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4059 # Best one so far, save it but keep looking for a better one 4060 ac_cv_path_GREP="$ac_path_GREP" 4061 ac_path_GREP_max=$ac_count 4062 fi 4063 # 10*(2^10) chars as input seems more than enough 4064 test $ac_count -gt 10 && break 4065 done 4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4067esac 4068 4069 $ac_path_GREP_found && break 3 4070 done 4071 done 4072 done 4073IFS=$as_save_IFS 4074 if test -z "$ac_cv_path_GREP"; then 4075 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4076 fi 4077else 4078 ac_cv_path_GREP=$GREP 4079fi 4080 4081fi 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4083$as_echo "$ac_cv_path_GREP" >&6; } 4084 GREP="$ac_cv_path_GREP" 4085 4086 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4088$as_echo_n "checking for egrep... " >&6; } 4089if ${ac_cv_path_EGREP+:} false; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4093 then ac_cv_path_EGREP="$GREP -E" 4094 else 4095 if test -z "$EGREP"; then 4096 ac_path_EGREP_found=false 4097 # Loop through the user's path and test for each of PROGNAME-LIST 4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4100do 4101 IFS=$as_save_IFS 4102 test -z "$as_dir" && as_dir=. 4103 for ac_prog in egrep; do 4104 for ac_exec_ext in '' $ac_executable_extensions; do 4105 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4106 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4107# Check for GNU ac_path_EGREP and select it if it is found. 4108 # Check for GNU $ac_path_EGREP 4109case `"$ac_path_EGREP" --version 2>&1` in 4110*GNU*) 4111 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4112*) 4113 ac_count=0 4114 $as_echo_n 0123456789 >"conftest.in" 4115 while : 4116 do 4117 cat "conftest.in" "conftest.in" >"conftest.tmp" 4118 mv "conftest.tmp" "conftest.in" 4119 cp "conftest.in" "conftest.nl" 4120 $as_echo 'EGREP' >> "conftest.nl" 4121 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4123 as_fn_arith $ac_count + 1 && ac_count=$as_val 4124 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4125 # Best one so far, save it but keep looking for a better one 4126 ac_cv_path_EGREP="$ac_path_EGREP" 4127 ac_path_EGREP_max=$ac_count 4128 fi 4129 # 10*(2^10) chars as input seems more than enough 4130 test $ac_count -gt 10 && break 4131 done 4132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4133esac 4134 4135 $ac_path_EGREP_found && break 3 4136 done 4137 done 4138 done 4139IFS=$as_save_IFS 4140 if test -z "$ac_cv_path_EGREP"; then 4141 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4142 fi 4143else 4144 ac_cv_path_EGREP=$EGREP 4145fi 4146 4147 fi 4148fi 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4150$as_echo "$ac_cv_path_EGREP" >&6; } 4151 EGREP="$ac_cv_path_EGREP" 4152 4153 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4155$as_echo_n "checking for ANSI C header files... " >&6; } 4156if ${ac_cv_header_stdc+:} false; then : 4157 $as_echo_n "(cached) " >&6 4158else 4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161#include <stdlib.h> 4162#include <stdarg.h> 4163#include <string.h> 4164#include <float.h> 4165 4166int 4167main () 4168{ 4169 4170 ; 4171 return 0; 4172} 4173_ACEOF 4174if ac_fn_c_try_compile "$LINENO"; then : 4175 ac_cv_header_stdc=yes 4176else 4177 ac_cv_header_stdc=no 4178fi 4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4180 4181if test $ac_cv_header_stdc = yes; then 4182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184/* end confdefs.h. */ 4185#include <string.h> 4186 4187_ACEOF 4188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4189 $EGREP "memchr" >/dev/null 2>&1; then : 4190 4191else 4192 ac_cv_header_stdc=no 4193fi 4194rm -f conftest* 4195 4196fi 4197 4198if test $ac_cv_header_stdc = yes; then 4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4201/* end confdefs.h. */ 4202#include <stdlib.h> 4203 4204_ACEOF 4205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4206 $EGREP "free" >/dev/null 2>&1; then : 4207 4208else 4209 ac_cv_header_stdc=no 4210fi 4211rm -f conftest* 4212 4213fi 4214 4215if test $ac_cv_header_stdc = yes; then 4216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4217 if test "$cross_compiling" = yes; then : 4218 : 4219else 4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4221/* end confdefs.h. */ 4222#include <ctype.h> 4223#include <stdlib.h> 4224#if ((' ' & 0x0FF) == 0x020) 4225# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4226# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4227#else 4228# define ISLOWER(c) \ 4229 (('a' <= (c) && (c) <= 'i') \ 4230 || ('j' <= (c) && (c) <= 'r') \ 4231 || ('s' <= (c) && (c) <= 'z')) 4232# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4233#endif 4234 4235#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4236int 4237main () 4238{ 4239 int i; 4240 for (i = 0; i < 256; i++) 4241 if (XOR (islower (i), ISLOWER (i)) 4242 || toupper (i) != TOUPPER (i)) 4243 return 2; 4244 return 0; 4245} 4246_ACEOF 4247if ac_fn_c_try_run "$LINENO"; then : 4248 4249else 4250 ac_cv_header_stdc=no 4251fi 4252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4253 conftest.$ac_objext conftest.beam conftest.$ac_ext 4254fi 4255 4256fi 4257fi 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4259$as_echo "$ac_cv_header_stdc" >&6; } 4260if test $ac_cv_header_stdc = yes; then 4261 4262$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4263 4264fi 4265 4266# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4267for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4268 inttypes.h stdint.h unistd.h 4269do : 4270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4271ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4272" 4273if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4274 cat >>confdefs.h <<_ACEOF 4275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4276_ACEOF 4277 4278fi 4279 4280done 4281 4282 4283 4284 4285 4286 4287ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4288if test "x$ac_cv_have_decl___clang__" = xyes; then : 4289 CLANGCC="yes" 4290else 4291 CLANGCC="no" 4292fi 4293 4294ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4295if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4296 INTELCC="yes" 4297else 4298 INTELCC="no" 4299fi 4300 4301ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4302if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4303 SUNCC="yes" 4304else 4305 SUNCC="no" 4306fi 4307 4308 4309 4310 4311if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4312 if test -n "$ac_tool_prefix"; then 4313 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4314set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4316$as_echo_n "checking for $ac_word... " >&6; } 4317if ${ac_cv_path_PKG_CONFIG+:} false; then : 4318 $as_echo_n "(cached) " >&6 4319else 4320 case $PKG_CONFIG in 4321 [\\/]* | ?:[\\/]*) 4322 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4323 ;; 4324 *) 4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4326for as_dir in $PATH 4327do 4328 IFS=$as_save_IFS 4329 test -z "$as_dir" && as_dir=. 4330 for ac_exec_ext in '' $ac_executable_extensions; do 4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4332 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4334 break 2 4335 fi 4336done 4337 done 4338IFS=$as_save_IFS 4339 4340 ;; 4341esac 4342fi 4343PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4344if test -n "$PKG_CONFIG"; then 4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4346$as_echo "$PKG_CONFIG" >&6; } 4347else 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4349$as_echo "no" >&6; } 4350fi 4351 4352 4353fi 4354if test -z "$ac_cv_path_PKG_CONFIG"; then 4355 ac_pt_PKG_CONFIG=$PKG_CONFIG 4356 # Extract the first word of "pkg-config", so it can be a program name with args. 4357set dummy pkg-config; ac_word=$2 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4359$as_echo_n "checking for $ac_word... " >&6; } 4360if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362else 4363 case $ac_pt_PKG_CONFIG in 4364 [\\/]* | ?:[\\/]*) 4365 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4366 ;; 4367 *) 4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4369for as_dir in $PATH 4370do 4371 IFS=$as_save_IFS 4372 test -z "$as_dir" && as_dir=. 4373 for ac_exec_ext in '' $ac_executable_extensions; do 4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4375 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4377 break 2 4378 fi 4379done 4380 done 4381IFS=$as_save_IFS 4382 4383 ;; 4384esac 4385fi 4386ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4387if test -n "$ac_pt_PKG_CONFIG"; then 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4389$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4390else 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4392$as_echo "no" >&6; } 4393fi 4394 4395 if test "x$ac_pt_PKG_CONFIG" = x; then 4396 PKG_CONFIG="" 4397 else 4398 case $cross_compiling:$ac_tool_warned in 4399yes:) 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4402ac_tool_warned=yes ;; 4403esac 4404 PKG_CONFIG=$ac_pt_PKG_CONFIG 4405 fi 4406else 4407 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4408fi 4409 4410fi 4411if test -n "$PKG_CONFIG"; then 4412 _pkg_min_version=0.9.0 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4414$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4415 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4417$as_echo "yes" >&6; } 4418 else 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4420$as_echo "no" >&6; } 4421 PKG_CONFIG="" 4422 fi 4423 4424fi 4425# Make sure we can run config.sub. 4426$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4427 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4428 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4430$as_echo_n "checking build system type... " >&6; } 4431if ${ac_cv_build+:} false; then : 4432 $as_echo_n "(cached) " >&6 4433else 4434 ac_build_alias=$build_alias 4435test "x$ac_build_alias" = x && 4436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4437test "x$ac_build_alias" = x && 4438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4439ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4441 4442fi 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4444$as_echo "$ac_cv_build" >&6; } 4445case $ac_cv_build in 4446*-*-*) ;; 4447*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4448esac 4449build=$ac_cv_build 4450ac_save_IFS=$IFS; IFS='-' 4451set x $ac_cv_build 4452shift 4453build_cpu=$1 4454build_vendor=$2 4455shift; shift 4456# Remember, the first character of IFS is used to create $*, 4457# except with old shells: 4458build_os=$* 4459IFS=$ac_save_IFS 4460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4461 4462 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4464$as_echo_n "checking host system type... " >&6; } 4465if ${ac_cv_host+:} false; then : 4466 $as_echo_n "(cached) " >&6 4467else 4468 if test "x$host_alias" = x; then 4469 ac_cv_host=$ac_cv_build 4470else 4471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4473fi 4474 4475fi 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4477$as_echo "$ac_cv_host" >&6; } 4478case $ac_cv_host in 4479*-*-*) ;; 4480*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4481esac 4482host=$ac_cv_host 4483ac_save_IFS=$IFS; IFS='-' 4484set x $ac_cv_host 4485shift 4486host_cpu=$1 4487host_vendor=$2 4488shift; shift 4489# Remember, the first character of IFS is used to create $*, 4490# except with old shells: 4491host_os=$* 4492IFS=$ac_save_IFS 4493case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4494 4495 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4497$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4498if ${ac_cv_path_SED+:} false; then : 4499 $as_echo_n "(cached) " >&6 4500else 4501 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4502 for ac_i in 1 2 3 4 5 6 7; do 4503 ac_script="$ac_script$as_nl$ac_script" 4504 done 4505 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4506 { ac_script=; unset ac_script;} 4507 if test -z "$SED"; then 4508 ac_path_SED_found=false 4509 # Loop through the user's path and test for each of PROGNAME-LIST 4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511for as_dir in $PATH 4512do 4513 IFS=$as_save_IFS 4514 test -z "$as_dir" && as_dir=. 4515 for ac_prog in sed gsed; do 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4518 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4519# Check for GNU ac_path_SED and select it if it is found. 4520 # Check for GNU $ac_path_SED 4521case `"$ac_path_SED" --version 2>&1` in 4522*GNU*) 4523 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4524*) 4525 ac_count=0 4526 $as_echo_n 0123456789 >"conftest.in" 4527 while : 4528 do 4529 cat "conftest.in" "conftest.in" >"conftest.tmp" 4530 mv "conftest.tmp" "conftest.in" 4531 cp "conftest.in" "conftest.nl" 4532 $as_echo '' >> "conftest.nl" 4533 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4535 as_fn_arith $ac_count + 1 && ac_count=$as_val 4536 if test $ac_count -gt ${ac_path_SED_max-0}; then 4537 # Best one so far, save it but keep looking for a better one 4538 ac_cv_path_SED="$ac_path_SED" 4539 ac_path_SED_max=$ac_count 4540 fi 4541 # 10*(2^10) chars as input seems more than enough 4542 test $ac_count -gt 10 && break 4543 done 4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4545esac 4546 4547 $ac_path_SED_found && break 3 4548 done 4549 done 4550 done 4551IFS=$as_save_IFS 4552 if test -z "$ac_cv_path_SED"; then 4553 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4554 fi 4555else 4556 ac_cv_path_SED=$SED 4557fi 4558 4559fi 4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4561$as_echo "$ac_cv_path_SED" >&6; } 4562 SED="$ac_cv_path_SED" 4563 rm -f conftest.sed 4564 4565 4566 4567 4568 4569 4570# Check whether --enable-selective-werror was given. 4571if test "${enable_selective_werror+set}" = set; then : 4572 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4573else 4574 SELECTIVE_WERROR=yes 4575fi 4576 4577 4578 4579 4580 4581# -v is too short to test reliably with XORG_TESTSET_CFLAG 4582if test "x$SUNCC" = "xyes"; then 4583 BASE_CFLAGS="-v" 4584else 4585 BASE_CFLAGS="" 4586fi 4587 4588# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602xorg_testset_save_CFLAGS="$CFLAGS" 4603 4604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612/* end confdefs.h. */ 4613int i; 4614_ACEOF 4615if ac_fn_c_try_compile "$LINENO"; then : 4616 xorg_cv_cc_flag_unknown_warning_option=yes 4617else 4618 xorg_cv_cc_flag_unknown_warning_option=no 4619fi 4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4621fi 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4625 CFLAGS="$xorg_testset_save_CFLAGS" 4626fi 4627 4628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4631 fi 4632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4636 $as_echo_n "(cached) " >&6 4637else 4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4639/* end confdefs.h. */ 4640int i; 4641_ACEOF 4642if ac_fn_c_try_compile "$LINENO"; then : 4643 xorg_cv_cc_flag_unused_command_line_argument=yes 4644else 4645 xorg_cv_cc_flag_unused_command_line_argument=no 4646fi 4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4652 CFLAGS="$xorg_testset_save_CFLAGS" 4653fi 4654 4655found="no" 4656 4657 if test $found = "no" ; then 4658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4660 fi 4661 4662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4664 fi 4665 4666 CFLAGS="$CFLAGS -Wall" 4667 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4669$as_echo_n "checking if $CC supports -Wall... " >&6; } 4670 cacheid=xorg_cv_cc_flag__Wall 4671 if eval \${$cacheid+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4675/* end confdefs.h. */ 4676int i; 4677int 4678main () 4679{ 4680 4681 ; 4682 return 0; 4683} 4684_ACEOF 4685if ac_fn_c_try_link "$LINENO"; then : 4686 eval $cacheid=yes 4687else 4688 eval $cacheid=no 4689fi 4690rm -f core conftest.err conftest.$ac_objext \ 4691 conftest$ac_exeext conftest.$ac_ext 4692fi 4693 4694 4695 CFLAGS="$xorg_testset_save_CFLAGS" 4696 4697 eval supported=\$$cacheid 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4699$as_echo "$supported" >&6; } 4700 if test "$supported" = "yes" ; then 4701 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4702 found="yes" 4703 fi 4704 fi 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720xorg_testset_save_CFLAGS="$CFLAGS" 4721 4722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4730/* end confdefs.h. */ 4731int i; 4732_ACEOF 4733if ac_fn_c_try_compile "$LINENO"; then : 4734 xorg_cv_cc_flag_unknown_warning_option=yes 4735else 4736 xorg_cv_cc_flag_unknown_warning_option=no 4737fi 4738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4739fi 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4743 CFLAGS="$xorg_testset_save_CFLAGS" 4744fi 4745 4746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4749 fi 4750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4754 $as_echo_n "(cached) " >&6 4755else 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758int i; 4759_ACEOF 4760if ac_fn_c_try_compile "$LINENO"; then : 4761 xorg_cv_cc_flag_unused_command_line_argument=yes 4762else 4763 xorg_cv_cc_flag_unused_command_line_argument=no 4764fi 4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4766fi 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4770 CFLAGS="$xorg_testset_save_CFLAGS" 4771fi 4772 4773found="no" 4774 4775 if test $found = "no" ; then 4776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4778 fi 4779 4780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4782 fi 4783 4784 CFLAGS="$CFLAGS -Wpointer-arith" 4785 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4787$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4788 cacheid=xorg_cv_cc_flag__Wpointer_arith 4789 if eval \${$cacheid+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4793/* end confdefs.h. */ 4794int i; 4795int 4796main () 4797{ 4798 4799 ; 4800 return 0; 4801} 4802_ACEOF 4803if ac_fn_c_try_link "$LINENO"; then : 4804 eval $cacheid=yes 4805else 4806 eval $cacheid=no 4807fi 4808rm -f core conftest.err conftest.$ac_objext \ 4809 conftest$ac_exeext conftest.$ac_ext 4810fi 4811 4812 4813 CFLAGS="$xorg_testset_save_CFLAGS" 4814 4815 eval supported=\$$cacheid 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4817$as_echo "$supported" >&6; } 4818 if test "$supported" = "yes" ; then 4819 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4820 found="yes" 4821 fi 4822 fi 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838xorg_testset_save_CFLAGS="$CFLAGS" 4839 4840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849int i; 4850_ACEOF 4851if ac_fn_c_try_compile "$LINENO"; then : 4852 xorg_cv_cc_flag_unknown_warning_option=yes 4853else 4854 xorg_cv_cc_flag_unknown_warning_option=no 4855fi 4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4857fi 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4861 CFLAGS="$xorg_testset_save_CFLAGS" 4862fi 4863 4864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4867 fi 4868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4875/* end confdefs.h. */ 4876int i; 4877_ACEOF 4878if ac_fn_c_try_compile "$LINENO"; then : 4879 xorg_cv_cc_flag_unused_command_line_argument=yes 4880else 4881 xorg_cv_cc_flag_unused_command_line_argument=no 4882fi 4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4884fi 4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4888 CFLAGS="$xorg_testset_save_CFLAGS" 4889fi 4890 4891found="no" 4892 4893 if test $found = "no" ; then 4894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4896 fi 4897 4898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4900 fi 4901 4902 CFLAGS="$CFLAGS -Wmissing-declarations" 4903 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4905$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4906 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4907 if eval \${$cacheid+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909else 4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4911/* end confdefs.h. */ 4912int i; 4913int 4914main () 4915{ 4916 4917 ; 4918 return 0; 4919} 4920_ACEOF 4921if ac_fn_c_try_link "$LINENO"; then : 4922 eval $cacheid=yes 4923else 4924 eval $cacheid=no 4925fi 4926rm -f core conftest.err conftest.$ac_objext \ 4927 conftest$ac_exeext conftest.$ac_ext 4928fi 4929 4930 4931 CFLAGS="$xorg_testset_save_CFLAGS" 4932 4933 eval supported=\$$cacheid 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4935$as_echo "$supported" >&6; } 4936 if test "$supported" = "yes" ; then 4937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4938 found="yes" 4939 fi 4940 fi 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956xorg_testset_save_CFLAGS="$CFLAGS" 4957 4958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4966/* end confdefs.h. */ 4967int i; 4968_ACEOF 4969if ac_fn_c_try_compile "$LINENO"; then : 4970 xorg_cv_cc_flag_unknown_warning_option=yes 4971else 4972 xorg_cv_cc_flag_unknown_warning_option=no 4973fi 4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4975fi 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4979 CFLAGS="$xorg_testset_save_CFLAGS" 4980fi 4981 4982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4985 fi 4986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4993/* end confdefs.h. */ 4994int i; 4995_ACEOF 4996if ac_fn_c_try_compile "$LINENO"; then : 4997 xorg_cv_cc_flag_unused_command_line_argument=yes 4998else 4999 xorg_cv_cc_flag_unused_command_line_argument=no 5000fi 5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5002fi 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5006 CFLAGS="$xorg_testset_save_CFLAGS" 5007fi 5008 5009found="no" 5010 5011 if test $found = "no" ; then 5012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5014 fi 5015 5016 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5018 fi 5019 5020 CFLAGS="$CFLAGS -Wformat=2" 5021 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5023$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5024 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5025 if eval \${$cacheid+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5029/* end confdefs.h. */ 5030int i; 5031int 5032main () 5033{ 5034 5035 ; 5036 return 0; 5037} 5038_ACEOF 5039if ac_fn_c_try_link "$LINENO"; then : 5040 eval $cacheid=yes 5041else 5042 eval $cacheid=no 5043fi 5044rm -f core conftest.err conftest.$ac_objext \ 5045 conftest$ac_exeext conftest.$ac_ext 5046fi 5047 5048 5049 CFLAGS="$xorg_testset_save_CFLAGS" 5050 5051 eval supported=\$$cacheid 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5053$as_echo "$supported" >&6; } 5054 if test "$supported" = "yes" ; then 5055 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5056 found="yes" 5057 fi 5058 fi 5059 5060 if test $found = "no" ; then 5061 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5063 fi 5064 5065 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5067 fi 5068 5069 CFLAGS="$CFLAGS -Wformat" 5070 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5072$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5073 cacheid=xorg_cv_cc_flag__Wformat 5074 if eval \${$cacheid+:} false; then : 5075 $as_echo_n "(cached) " >&6 5076else 5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5078/* end confdefs.h. */ 5079int i; 5080int 5081main () 5082{ 5083 5084 ; 5085 return 0; 5086} 5087_ACEOF 5088if ac_fn_c_try_link "$LINENO"; then : 5089 eval $cacheid=yes 5090else 5091 eval $cacheid=no 5092fi 5093rm -f core conftest.err conftest.$ac_objext \ 5094 conftest$ac_exeext conftest.$ac_ext 5095fi 5096 5097 5098 CFLAGS="$xorg_testset_save_CFLAGS" 5099 5100 eval supported=\$$cacheid 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5102$as_echo "$supported" >&6; } 5103 if test "$supported" = "yes" ; then 5104 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5105 found="yes" 5106 fi 5107 fi 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125xorg_testset_save_CFLAGS="$CFLAGS" 5126 5127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136int i; 5137_ACEOF 5138if ac_fn_c_try_compile "$LINENO"; then : 5139 xorg_cv_cc_flag_unknown_warning_option=yes 5140else 5141 xorg_cv_cc_flag_unknown_warning_option=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5144fi 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149fi 5150 5151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5154 fi 5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162/* end confdefs.h. */ 5163int i; 5164_ACEOF 5165if ac_fn_c_try_compile "$LINENO"; then : 5166 xorg_cv_cc_flag_unused_command_line_argument=yes 5167else 5168 xorg_cv_cc_flag_unused_command_line_argument=no 5169fi 5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5171fi 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5175 CFLAGS="$xorg_testset_save_CFLAGS" 5176fi 5177 5178found="no" 5179 5180 if test $found = "no" ; then 5181 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 fi 5184 5185 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5187 fi 5188 5189 CFLAGS="$CFLAGS -Wstrict-prototypes" 5190 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5192$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5193 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5194 if eval \${$cacheid+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199int i; 5200int 5201main () 5202{ 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_c_try_link "$LINENO"; then : 5209 eval $cacheid=yes 5210else 5211 eval $cacheid=no 5212fi 5213rm -f core conftest.err conftest.$ac_objext \ 5214 conftest$ac_exeext conftest.$ac_ext 5215fi 5216 5217 5218 CFLAGS="$xorg_testset_save_CFLAGS" 5219 5220 eval supported=\$$cacheid 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5222$as_echo "$supported" >&6; } 5223 if test "$supported" = "yes" ; then 5224 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5225 found="yes" 5226 fi 5227 fi 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243xorg_testset_save_CFLAGS="$CFLAGS" 5244 5245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251else 5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5253/* end confdefs.h. */ 5254int i; 5255_ACEOF 5256if ac_fn_c_try_compile "$LINENO"; then : 5257 xorg_cv_cc_flag_unknown_warning_option=yes 5258else 5259 xorg_cv_cc_flag_unknown_warning_option=no 5260fi 5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5262fi 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5266 CFLAGS="$xorg_testset_save_CFLAGS" 5267fi 5268 5269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5272 fi 5273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5280/* end confdefs.h. */ 5281int i; 5282_ACEOF 5283if ac_fn_c_try_compile "$LINENO"; then : 5284 xorg_cv_cc_flag_unused_command_line_argument=yes 5285else 5286 xorg_cv_cc_flag_unused_command_line_argument=no 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5289fi 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5293 CFLAGS="$xorg_testset_save_CFLAGS" 5294fi 5295 5296found="no" 5297 5298 if test $found = "no" ; then 5299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5301 fi 5302 5303 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5305 fi 5306 5307 CFLAGS="$CFLAGS -Wmissing-prototypes" 5308 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5310$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5311 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5312 if eval \${$cacheid+:} false; then : 5313 $as_echo_n "(cached) " >&6 5314else 5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316/* end confdefs.h. */ 5317int i; 5318int 5319main () 5320{ 5321 5322 ; 5323 return 0; 5324} 5325_ACEOF 5326if ac_fn_c_try_link "$LINENO"; then : 5327 eval $cacheid=yes 5328else 5329 eval $cacheid=no 5330fi 5331rm -f core conftest.err conftest.$ac_objext \ 5332 conftest$ac_exeext conftest.$ac_ext 5333fi 5334 5335 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337 5338 eval supported=\$$cacheid 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5340$as_echo "$supported" >&6; } 5341 if test "$supported" = "yes" ; then 5342 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5343 found="yes" 5344 fi 5345 fi 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361xorg_testset_save_CFLAGS="$CFLAGS" 5362 5363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5368 $as_echo_n "(cached) " >&6 5369else 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372int i; 5373_ACEOF 5374if ac_fn_c_try_compile "$LINENO"; then : 5375 xorg_cv_cc_flag_unknown_warning_option=yes 5376else 5377 xorg_cv_cc_flag_unknown_warning_option=no 5378fi 5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5380fi 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5384 CFLAGS="$xorg_testset_save_CFLAGS" 5385fi 5386 5387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5390 fi 5391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396else 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5398/* end confdefs.h. */ 5399int i; 5400_ACEOF 5401if ac_fn_c_try_compile "$LINENO"; then : 5402 xorg_cv_cc_flag_unused_command_line_argument=yes 5403else 5404 xorg_cv_cc_flag_unused_command_line_argument=no 5405fi 5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5407fi 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5411 CFLAGS="$xorg_testset_save_CFLAGS" 5412fi 5413 5414found="no" 5415 5416 if test $found = "no" ; then 5417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5419 fi 5420 5421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5423 fi 5424 5425 CFLAGS="$CFLAGS -Wnested-externs" 5426 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5428$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5429 cacheid=xorg_cv_cc_flag__Wnested_externs 5430 if eval \${$cacheid+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432else 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435int i; 5436int 5437main () 5438{ 5439 5440 ; 5441 return 0; 5442} 5443_ACEOF 5444if ac_fn_c_try_link "$LINENO"; then : 5445 eval $cacheid=yes 5446else 5447 eval $cacheid=no 5448fi 5449rm -f core conftest.err conftest.$ac_objext \ 5450 conftest$ac_exeext conftest.$ac_ext 5451fi 5452 5453 5454 CFLAGS="$xorg_testset_save_CFLAGS" 5455 5456 eval supported=\$$cacheid 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5458$as_echo "$supported" >&6; } 5459 if test "$supported" = "yes" ; then 5460 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5461 found="yes" 5462 fi 5463 fi 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479xorg_testset_save_CFLAGS="$CFLAGS" 5480 5481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5489/* end confdefs.h. */ 5490int i; 5491_ACEOF 5492if ac_fn_c_try_compile "$LINENO"; then : 5493 xorg_cv_cc_flag_unknown_warning_option=yes 5494else 5495 xorg_cv_cc_flag_unknown_warning_option=no 5496fi 5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5498fi 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5502 CFLAGS="$xorg_testset_save_CFLAGS" 5503fi 5504 5505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5508 fi 5509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5513 $as_echo_n "(cached) " >&6 5514else 5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5516/* end confdefs.h. */ 5517int i; 5518_ACEOF 5519if ac_fn_c_try_compile "$LINENO"; then : 5520 xorg_cv_cc_flag_unused_command_line_argument=yes 5521else 5522 xorg_cv_cc_flag_unused_command_line_argument=no 5523fi 5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5525fi 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5529 CFLAGS="$xorg_testset_save_CFLAGS" 5530fi 5531 5532found="no" 5533 5534 if test $found = "no" ; then 5535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5537 fi 5538 5539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5541 fi 5542 5543 CFLAGS="$CFLAGS -Wbad-function-cast" 5544 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5546$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5547 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5548 if eval \${$cacheid+:} false; then : 5549 $as_echo_n "(cached) " >&6 5550else 5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552/* end confdefs.h. */ 5553int i; 5554int 5555main () 5556{ 5557 5558 ; 5559 return 0; 5560} 5561_ACEOF 5562if ac_fn_c_try_link "$LINENO"; then : 5563 eval $cacheid=yes 5564else 5565 eval $cacheid=no 5566fi 5567rm -f core conftest.err conftest.$ac_objext \ 5568 conftest$ac_exeext conftest.$ac_ext 5569fi 5570 5571 5572 CFLAGS="$xorg_testset_save_CFLAGS" 5573 5574 eval supported=\$$cacheid 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5576$as_echo "$supported" >&6; } 5577 if test "$supported" = "yes" ; then 5578 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5579 found="yes" 5580 fi 5581 fi 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597xorg_testset_save_CFLAGS="$CFLAGS" 5598 5599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5604 $as_echo_n "(cached) " >&6 5605else 5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608int i; 5609_ACEOF 5610if ac_fn_c_try_compile "$LINENO"; then : 5611 xorg_cv_cc_flag_unknown_warning_option=yes 5612else 5613 xorg_cv_cc_flag_unknown_warning_option=no 5614fi 5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5616fi 5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5620 CFLAGS="$xorg_testset_save_CFLAGS" 5621fi 5622 5623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5626 fi 5627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5634/* end confdefs.h. */ 5635int i; 5636_ACEOF 5637if ac_fn_c_try_compile "$LINENO"; then : 5638 xorg_cv_cc_flag_unused_command_line_argument=yes 5639else 5640 xorg_cv_cc_flag_unused_command_line_argument=no 5641fi 5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5643fi 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5647 CFLAGS="$xorg_testset_save_CFLAGS" 5648fi 5649 5650found="no" 5651 5652 if test $found = "no" ; then 5653 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5655 fi 5656 5657 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5659 fi 5660 5661 CFLAGS="$CFLAGS -Wold-style-definition" 5662 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5664$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5665 cacheid=xorg_cv_cc_flag__Wold_style_definition 5666 if eval \${$cacheid+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5670/* end confdefs.h. */ 5671int i; 5672int 5673main () 5674{ 5675 5676 ; 5677 return 0; 5678} 5679_ACEOF 5680if ac_fn_c_try_link "$LINENO"; then : 5681 eval $cacheid=yes 5682else 5683 eval $cacheid=no 5684fi 5685rm -f core conftest.err conftest.$ac_objext \ 5686 conftest$ac_exeext conftest.$ac_ext 5687fi 5688 5689 5690 CFLAGS="$xorg_testset_save_CFLAGS" 5691 5692 eval supported=\$$cacheid 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5694$as_echo "$supported" >&6; } 5695 if test "$supported" = "yes" ; then 5696 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5697 found="yes" 5698 fi 5699 fi 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715xorg_testset_save_CFLAGS="$CFLAGS" 5716 5717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723else 5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5725/* end confdefs.h. */ 5726int i; 5727_ACEOF 5728if ac_fn_c_try_compile "$LINENO"; then : 5729 xorg_cv_cc_flag_unknown_warning_option=yes 5730else 5731 xorg_cv_cc_flag_unknown_warning_option=no 5732fi 5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5734fi 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5738 CFLAGS="$xorg_testset_save_CFLAGS" 5739fi 5740 5741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5744 fi 5745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5749 $as_echo_n "(cached) " >&6 5750else 5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5752/* end confdefs.h. */ 5753int i; 5754_ACEOF 5755if ac_fn_c_try_compile "$LINENO"; then : 5756 xorg_cv_cc_flag_unused_command_line_argument=yes 5757else 5758 xorg_cv_cc_flag_unused_command_line_argument=no 5759fi 5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5761fi 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5765 CFLAGS="$xorg_testset_save_CFLAGS" 5766fi 5767 5768found="no" 5769 5770 if test $found = "no" ; then 5771 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5773 fi 5774 5775 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5777 fi 5778 5779 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5780 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5782$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5783 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5784 if eval \${$cacheid+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786else 5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5788/* end confdefs.h. */ 5789int i; 5790int 5791main () 5792{ 5793 5794 ; 5795 return 0; 5796} 5797_ACEOF 5798if ac_fn_c_try_link "$LINENO"; then : 5799 eval $cacheid=yes 5800else 5801 eval $cacheid=no 5802fi 5803rm -f core conftest.err conftest.$ac_objext \ 5804 conftest$ac_exeext conftest.$ac_ext 5805fi 5806 5807 5808 CFLAGS="$xorg_testset_save_CFLAGS" 5809 5810 eval supported=\$$cacheid 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5812$as_echo "$supported" >&6; } 5813 if test "$supported" = "yes" ; then 5814 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5815 found="yes" 5816 fi 5817 fi 5818 5819 5820 5821 5822 5823# This chunk adds additional warnings that could catch undesired effects. 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837xorg_testset_save_CFLAGS="$CFLAGS" 5838 5839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5844 $as_echo_n "(cached) " >&6 5845else 5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5847/* end confdefs.h. */ 5848int i; 5849_ACEOF 5850if ac_fn_c_try_compile "$LINENO"; then : 5851 xorg_cv_cc_flag_unknown_warning_option=yes 5852else 5853 xorg_cv_cc_flag_unknown_warning_option=no 5854fi 5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5856fi 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5860 CFLAGS="$xorg_testset_save_CFLAGS" 5861fi 5862 5863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5866 fi 5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874/* end confdefs.h. */ 5875int i; 5876_ACEOF 5877if ac_fn_c_try_compile "$LINENO"; then : 5878 xorg_cv_cc_flag_unused_command_line_argument=yes 5879else 5880 xorg_cv_cc_flag_unused_command_line_argument=no 5881fi 5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5883fi 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5887 CFLAGS="$xorg_testset_save_CFLAGS" 5888fi 5889 5890found="no" 5891 5892 if test $found = "no" ; then 5893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5895 fi 5896 5897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5899 fi 5900 5901 CFLAGS="$CFLAGS -Wunused" 5902 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5904$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5905 cacheid=xorg_cv_cc_flag__Wunused 5906 if eval \${$cacheid+:} false; then : 5907 $as_echo_n "(cached) " >&6 5908else 5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5910/* end confdefs.h. */ 5911int i; 5912int 5913main () 5914{ 5915 5916 ; 5917 return 0; 5918} 5919_ACEOF 5920if ac_fn_c_try_link "$LINENO"; then : 5921 eval $cacheid=yes 5922else 5923 eval $cacheid=no 5924fi 5925rm -f core conftest.err conftest.$ac_objext \ 5926 conftest$ac_exeext conftest.$ac_ext 5927fi 5928 5929 5930 CFLAGS="$xorg_testset_save_CFLAGS" 5931 5932 eval supported=\$$cacheid 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5934$as_echo "$supported" >&6; } 5935 if test "$supported" = "yes" ; then 5936 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5937 found="yes" 5938 fi 5939 fi 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955xorg_testset_save_CFLAGS="$CFLAGS" 5956 5957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5962 $as_echo_n "(cached) " >&6 5963else 5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965/* end confdefs.h. */ 5966int i; 5967_ACEOF 5968if ac_fn_c_try_compile "$LINENO"; then : 5969 xorg_cv_cc_flag_unknown_warning_option=yes 5970else 5971 xorg_cv_cc_flag_unknown_warning_option=no 5972fi 5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5974fi 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5978 CFLAGS="$xorg_testset_save_CFLAGS" 5979fi 5980 5981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5984 fi 5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5992/* end confdefs.h. */ 5993int i; 5994_ACEOF 5995if ac_fn_c_try_compile "$LINENO"; then : 5996 xorg_cv_cc_flag_unused_command_line_argument=yes 5997else 5998 xorg_cv_cc_flag_unused_command_line_argument=no 5999fi 6000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6001fi 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6005 CFLAGS="$xorg_testset_save_CFLAGS" 6006fi 6007 6008found="no" 6009 6010 if test $found = "no" ; then 6011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6013 fi 6014 6015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6017 fi 6018 6019 CFLAGS="$CFLAGS -Wuninitialized" 6020 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6022$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6023 cacheid=xorg_cv_cc_flag__Wuninitialized 6024 if eval \${$cacheid+:} false; then : 6025 $as_echo_n "(cached) " >&6 6026else 6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6028/* end confdefs.h. */ 6029int i; 6030int 6031main () 6032{ 6033 6034 ; 6035 return 0; 6036} 6037_ACEOF 6038if ac_fn_c_try_link "$LINENO"; then : 6039 eval $cacheid=yes 6040else 6041 eval $cacheid=no 6042fi 6043rm -f core conftest.err conftest.$ac_objext \ 6044 conftest$ac_exeext conftest.$ac_ext 6045fi 6046 6047 6048 CFLAGS="$xorg_testset_save_CFLAGS" 6049 6050 eval supported=\$$cacheid 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6052$as_echo "$supported" >&6; } 6053 if test "$supported" = "yes" ; then 6054 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6055 found="yes" 6056 fi 6057 fi 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073xorg_testset_save_CFLAGS="$CFLAGS" 6074 6075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084int i; 6085_ACEOF 6086if ac_fn_c_try_compile "$LINENO"; then : 6087 xorg_cv_cc_flag_unknown_warning_option=yes 6088else 6089 xorg_cv_cc_flag_unknown_warning_option=no 6090fi 6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6092fi 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6096 CFLAGS="$xorg_testset_save_CFLAGS" 6097fi 6098 6099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 fi 6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6107 $as_echo_n "(cached) " >&6 6108else 6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110/* end confdefs.h. */ 6111int i; 6112_ACEOF 6113if ac_fn_c_try_compile "$LINENO"; then : 6114 xorg_cv_cc_flag_unused_command_line_argument=yes 6115else 6116 xorg_cv_cc_flag_unused_command_line_argument=no 6117fi 6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6119fi 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6123 CFLAGS="$xorg_testset_save_CFLAGS" 6124fi 6125 6126found="no" 6127 6128 if test $found = "no" ; then 6129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6131 fi 6132 6133 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6135 fi 6136 6137 CFLAGS="$CFLAGS -Wshadow" 6138 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6140$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6141 cacheid=xorg_cv_cc_flag__Wshadow 6142 if eval \${$cacheid+:} false; then : 6143 $as_echo_n "(cached) " >&6 6144else 6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6146/* end confdefs.h. */ 6147int i; 6148int 6149main () 6150{ 6151 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156if ac_fn_c_try_link "$LINENO"; then : 6157 eval $cacheid=yes 6158else 6159 eval $cacheid=no 6160fi 6161rm -f core conftest.err conftest.$ac_objext \ 6162 conftest$ac_exeext conftest.$ac_ext 6163fi 6164 6165 6166 CFLAGS="$xorg_testset_save_CFLAGS" 6167 6168 eval supported=\$$cacheid 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6170$as_echo "$supported" >&6; } 6171 if test "$supported" = "yes" ; then 6172 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6173 found="yes" 6174 fi 6175 fi 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191xorg_testset_save_CFLAGS="$CFLAGS" 6192 6193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201/* end confdefs.h. */ 6202int i; 6203_ACEOF 6204if ac_fn_c_try_compile "$LINENO"; then : 6205 xorg_cv_cc_flag_unknown_warning_option=yes 6206else 6207 xorg_cv_cc_flag_unknown_warning_option=no 6208fi 6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6210fi 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6214 CFLAGS="$xorg_testset_save_CFLAGS" 6215fi 6216 6217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 fi 6221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6225 $as_echo_n "(cached) " >&6 6226else 6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6228/* end confdefs.h. */ 6229int i; 6230_ACEOF 6231if ac_fn_c_try_compile "$LINENO"; then : 6232 xorg_cv_cc_flag_unused_command_line_argument=yes 6233else 6234 xorg_cv_cc_flag_unused_command_line_argument=no 6235fi 6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6237fi 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242fi 6243 6244found="no" 6245 6246 if test $found = "no" ; then 6247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 fi 6250 6251 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6253 fi 6254 6255 CFLAGS="$CFLAGS -Wcast-qual" 6256 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6258$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6259 cacheid=xorg_cv_cc_flag__Wcast_qual 6260 if eval \${$cacheid+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262else 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265int i; 6266int 6267main () 6268{ 6269 6270 ; 6271 return 0; 6272} 6273_ACEOF 6274if ac_fn_c_try_link "$LINENO"; then : 6275 eval $cacheid=yes 6276else 6277 eval $cacheid=no 6278fi 6279rm -f core conftest.err conftest.$ac_objext \ 6280 conftest$ac_exeext conftest.$ac_ext 6281fi 6282 6283 6284 CFLAGS="$xorg_testset_save_CFLAGS" 6285 6286 eval supported=\$$cacheid 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6288$as_echo "$supported" >&6; } 6289 if test "$supported" = "yes" ; then 6290 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6291 found="yes" 6292 fi 6293 fi 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309xorg_testset_save_CFLAGS="$CFLAGS" 6310 6311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317else 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319/* end confdefs.h. */ 6320int i; 6321_ACEOF 6322if ac_fn_c_try_compile "$LINENO"; then : 6323 xorg_cv_cc_flag_unknown_warning_option=yes 6324else 6325 xorg_cv_cc_flag_unknown_warning_option=no 6326fi 6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6328fi 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6332 CFLAGS="$xorg_testset_save_CFLAGS" 6333fi 6334 6335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6338 fi 6339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6343 $as_echo_n "(cached) " >&6 6344else 6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346/* end confdefs.h. */ 6347int i; 6348_ACEOF 6349if ac_fn_c_try_compile "$LINENO"; then : 6350 xorg_cv_cc_flag_unused_command_line_argument=yes 6351else 6352 xorg_cv_cc_flag_unused_command_line_argument=no 6353fi 6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6355fi 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360fi 6361 6362found="no" 6363 6364 if test $found = "no" ; then 6365 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 fi 6368 6369 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6371 fi 6372 6373 CFLAGS="$CFLAGS -Wmissing-noreturn" 6374 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6376$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6377 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6378 if eval \${$cacheid+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382/* end confdefs.h. */ 6383int i; 6384int 6385main () 6386{ 6387 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392if ac_fn_c_try_link "$LINENO"; then : 6393 eval $cacheid=yes 6394else 6395 eval $cacheid=no 6396fi 6397rm -f core conftest.err conftest.$ac_objext \ 6398 conftest$ac_exeext conftest.$ac_ext 6399fi 6400 6401 6402 CFLAGS="$xorg_testset_save_CFLAGS" 6403 6404 eval supported=\$$cacheid 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6406$as_echo "$supported" >&6; } 6407 if test "$supported" = "yes" ; then 6408 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6409 found="yes" 6410 fi 6411 fi 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427xorg_testset_save_CFLAGS="$CFLAGS" 6428 6429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438int i; 6439_ACEOF 6440if ac_fn_c_try_compile "$LINENO"; then : 6441 xorg_cv_cc_flag_unknown_warning_option=yes 6442else 6443 xorg_cv_cc_flag_unknown_warning_option=no 6444fi 6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6446fi 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6450 CFLAGS="$xorg_testset_save_CFLAGS" 6451fi 6452 6453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6456 fi 6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6461 $as_echo_n "(cached) " >&6 6462else 6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464/* end confdefs.h. */ 6465int i; 6466_ACEOF 6467if ac_fn_c_try_compile "$LINENO"; then : 6468 xorg_cv_cc_flag_unused_command_line_argument=yes 6469else 6470 xorg_cv_cc_flag_unused_command_line_argument=no 6471fi 6472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6473fi 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6477 CFLAGS="$xorg_testset_save_CFLAGS" 6478fi 6479 6480found="no" 6481 6482 if test $found = "no" ; then 6483 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 fi 6486 6487 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6489 fi 6490 6491 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6492 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6494$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6495 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6496 if eval \${$cacheid+:} false; then : 6497 $as_echo_n "(cached) " >&6 6498else 6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6500/* end confdefs.h. */ 6501int i; 6502int 6503main () 6504{ 6505 6506 ; 6507 return 0; 6508} 6509_ACEOF 6510if ac_fn_c_try_link "$LINENO"; then : 6511 eval $cacheid=yes 6512else 6513 eval $cacheid=no 6514fi 6515rm -f core conftest.err conftest.$ac_objext \ 6516 conftest$ac_exeext conftest.$ac_ext 6517fi 6518 6519 6520 CFLAGS="$xorg_testset_save_CFLAGS" 6521 6522 eval supported=\$$cacheid 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6524$as_echo "$supported" >&6; } 6525 if test "$supported" = "yes" ; then 6526 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6527 found="yes" 6528 fi 6529 fi 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545xorg_testset_save_CFLAGS="$CFLAGS" 6546 6547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6552 $as_echo_n "(cached) " >&6 6553else 6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556int i; 6557_ACEOF 6558if ac_fn_c_try_compile "$LINENO"; then : 6559 xorg_cv_cc_flag_unknown_warning_option=yes 6560else 6561 xorg_cv_cc_flag_unknown_warning_option=no 6562fi 6563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6564fi 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6568 CFLAGS="$xorg_testset_save_CFLAGS" 6569fi 6570 6571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6574 fi 6575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6582/* end confdefs.h. */ 6583int i; 6584_ACEOF 6585if ac_fn_c_try_compile "$LINENO"; then : 6586 xorg_cv_cc_flag_unused_command_line_argument=yes 6587else 6588 xorg_cv_cc_flag_unused_command_line_argument=no 6589fi 6590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6591fi 6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6595 CFLAGS="$xorg_testset_save_CFLAGS" 6596fi 6597 6598found="no" 6599 6600 if test $found = "no" ; then 6601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6603 fi 6604 6605 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6607 fi 6608 6609 CFLAGS="$CFLAGS -Wredundant-decls" 6610 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6612$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6613 cacheid=xorg_cv_cc_flag__Wredundant_decls 6614 if eval \${$cacheid+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6618/* end confdefs.h. */ 6619int i; 6620int 6621main () 6622{ 6623 6624 ; 6625 return 0; 6626} 6627_ACEOF 6628if ac_fn_c_try_link "$LINENO"; then : 6629 eval $cacheid=yes 6630else 6631 eval $cacheid=no 6632fi 6633rm -f core conftest.err conftest.$ac_objext \ 6634 conftest$ac_exeext conftest.$ac_ext 6635fi 6636 6637 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639 6640 eval supported=\$$cacheid 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6642$as_echo "$supported" >&6; } 6643 if test "$supported" = "yes" ; then 6644 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6645 found="yes" 6646 fi 6647 fi 6648 6649 6650 6651# These are currently disabled because they are noisy. They will be enabled 6652# in the future once the codebase is sufficiently modernized to silence 6653# them. For now, I don't want them to drown out the other warnings. 6654# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6655# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6656# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6657 6658# Turn some warnings into errors, so we don't accidently get successful builds 6659# when there are problems that should be fixed. 6660 6661if test "x$SELECTIVE_WERROR" = "xyes" ; then 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675xorg_testset_save_CFLAGS="$CFLAGS" 6676 6677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683else 6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685/* end confdefs.h. */ 6686int i; 6687_ACEOF 6688if ac_fn_c_try_compile "$LINENO"; then : 6689 xorg_cv_cc_flag_unknown_warning_option=yes 6690else 6691 xorg_cv_cc_flag_unknown_warning_option=no 6692fi 6693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6694fi 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6698 CFLAGS="$xorg_testset_save_CFLAGS" 6699fi 6700 6701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6704 fi 6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713int i; 6714_ACEOF 6715if ac_fn_c_try_compile "$LINENO"; then : 6716 xorg_cv_cc_flag_unused_command_line_argument=yes 6717else 6718 xorg_cv_cc_flag_unused_command_line_argument=no 6719fi 6720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6721fi 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6725 CFLAGS="$xorg_testset_save_CFLAGS" 6726fi 6727 6728found="no" 6729 6730 if test $found = "no" ; then 6731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6733 fi 6734 6735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6737 fi 6738 6739 CFLAGS="$CFLAGS -Werror=implicit" 6740 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6742$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6743 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6744 if eval \${$cacheid+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746else 6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6748/* end confdefs.h. */ 6749int i; 6750int 6751main () 6752{ 6753 6754 ; 6755 return 0; 6756} 6757_ACEOF 6758if ac_fn_c_try_link "$LINENO"; then : 6759 eval $cacheid=yes 6760else 6761 eval $cacheid=no 6762fi 6763rm -f core conftest.err conftest.$ac_objext \ 6764 conftest$ac_exeext conftest.$ac_ext 6765fi 6766 6767 6768 CFLAGS="$xorg_testset_save_CFLAGS" 6769 6770 eval supported=\$$cacheid 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6772$as_echo "$supported" >&6; } 6773 if test "$supported" = "yes" ; then 6774 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6775 found="yes" 6776 fi 6777 fi 6778 6779 if test $found = "no" ; then 6780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782 fi 6783 6784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6786 fi 6787 6788 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6789 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6791$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6792 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6793 if eval \${$cacheid+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797/* end confdefs.h. */ 6798int i; 6799int 6800main () 6801{ 6802 6803 ; 6804 return 0; 6805} 6806_ACEOF 6807if ac_fn_c_try_link "$LINENO"; then : 6808 eval $cacheid=yes 6809else 6810 eval $cacheid=no 6811fi 6812rm -f core conftest.err conftest.$ac_objext \ 6813 conftest$ac_exeext conftest.$ac_ext 6814fi 6815 6816 6817 CFLAGS="$xorg_testset_save_CFLAGS" 6818 6819 eval supported=\$$cacheid 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6821$as_echo "$supported" >&6; } 6822 if test "$supported" = "yes" ; then 6823 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6824 found="yes" 6825 fi 6826 fi 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842xorg_testset_save_CFLAGS="$CFLAGS" 6843 6844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852/* end confdefs.h. */ 6853int i; 6854_ACEOF 6855if ac_fn_c_try_compile "$LINENO"; then : 6856 xorg_cv_cc_flag_unknown_warning_option=yes 6857else 6858 xorg_cv_cc_flag_unknown_warning_option=no 6859fi 6860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6861fi 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6865 CFLAGS="$xorg_testset_save_CFLAGS" 6866fi 6867 6868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6871 fi 6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6876 $as_echo_n "(cached) " >&6 6877else 6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6879/* end confdefs.h. */ 6880int i; 6881_ACEOF 6882if ac_fn_c_try_compile "$LINENO"; then : 6883 xorg_cv_cc_flag_unused_command_line_argument=yes 6884else 6885 xorg_cv_cc_flag_unused_command_line_argument=no 6886fi 6887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6888fi 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6892 CFLAGS="$xorg_testset_save_CFLAGS" 6893fi 6894 6895found="no" 6896 6897 if test $found = "no" ; then 6898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6900 fi 6901 6902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6904 fi 6905 6906 CFLAGS="$CFLAGS -Werror=nonnull" 6907 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6909$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6910 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6911 if eval \${$cacheid+:} false; then : 6912 $as_echo_n "(cached) " >&6 6913else 6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6915/* end confdefs.h. */ 6916int i; 6917int 6918main () 6919{ 6920 6921 ; 6922 return 0; 6923} 6924_ACEOF 6925if ac_fn_c_try_link "$LINENO"; then : 6926 eval $cacheid=yes 6927else 6928 eval $cacheid=no 6929fi 6930rm -f core conftest.err conftest.$ac_objext \ 6931 conftest$ac_exeext conftest.$ac_ext 6932fi 6933 6934 6935 CFLAGS="$xorg_testset_save_CFLAGS" 6936 6937 eval supported=\$$cacheid 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6939$as_echo "$supported" >&6; } 6940 if test "$supported" = "yes" ; then 6941 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6942 found="yes" 6943 fi 6944 fi 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960xorg_testset_save_CFLAGS="$CFLAGS" 6961 6962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970/* end confdefs.h. */ 6971int i; 6972_ACEOF 6973if ac_fn_c_try_compile "$LINENO"; then : 6974 xorg_cv_cc_flag_unknown_warning_option=yes 6975else 6976 xorg_cv_cc_flag_unknown_warning_option=no 6977fi 6978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6979fi 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6983 CFLAGS="$xorg_testset_save_CFLAGS" 6984fi 6985 6986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 fi 6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6997/* end confdefs.h. */ 6998int i; 6999_ACEOF 7000if ac_fn_c_try_compile "$LINENO"; then : 7001 xorg_cv_cc_flag_unused_command_line_argument=yes 7002else 7003 xorg_cv_cc_flag_unused_command_line_argument=no 7004fi 7005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7006fi 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7010 CFLAGS="$xorg_testset_save_CFLAGS" 7011fi 7012 7013found="no" 7014 7015 if test $found = "no" ; then 7016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7018 fi 7019 7020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7022 fi 7023 7024 CFLAGS="$CFLAGS -Werror=init-self" 7025 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7027$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7028 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7029 if eval \${$cacheid+:} false; then : 7030 $as_echo_n "(cached) " >&6 7031else 7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7033/* end confdefs.h. */ 7034int i; 7035int 7036main () 7037{ 7038 7039 ; 7040 return 0; 7041} 7042_ACEOF 7043if ac_fn_c_try_link "$LINENO"; then : 7044 eval $cacheid=yes 7045else 7046 eval $cacheid=no 7047fi 7048rm -f core conftest.err conftest.$ac_objext \ 7049 conftest$ac_exeext conftest.$ac_ext 7050fi 7051 7052 7053 CFLAGS="$xorg_testset_save_CFLAGS" 7054 7055 eval supported=\$$cacheid 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7057$as_echo "$supported" >&6; } 7058 if test "$supported" = "yes" ; then 7059 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7060 found="yes" 7061 fi 7062 fi 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078xorg_testset_save_CFLAGS="$CFLAGS" 7079 7080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089int i; 7090_ACEOF 7091if ac_fn_c_try_compile "$LINENO"; then : 7092 xorg_cv_cc_flag_unknown_warning_option=yes 7093else 7094 xorg_cv_cc_flag_unknown_warning_option=no 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7097fi 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102fi 7103 7104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7107 fi 7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7112 $as_echo_n "(cached) " >&6 7113else 7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7115/* end confdefs.h. */ 7116int i; 7117_ACEOF 7118if ac_fn_c_try_compile "$LINENO"; then : 7119 xorg_cv_cc_flag_unused_command_line_argument=yes 7120else 7121 xorg_cv_cc_flag_unused_command_line_argument=no 7122fi 7123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7124fi 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7128 CFLAGS="$xorg_testset_save_CFLAGS" 7129fi 7130 7131found="no" 7132 7133 if test $found = "no" ; then 7134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7136 fi 7137 7138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7140 fi 7141 7142 CFLAGS="$CFLAGS -Werror=main" 7143 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7145$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7146 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7147 if eval \${$cacheid+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149else 7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7151/* end confdefs.h. */ 7152int i; 7153int 7154main () 7155{ 7156 7157 ; 7158 return 0; 7159} 7160_ACEOF 7161if ac_fn_c_try_link "$LINENO"; then : 7162 eval $cacheid=yes 7163else 7164 eval $cacheid=no 7165fi 7166rm -f core conftest.err conftest.$ac_objext \ 7167 conftest$ac_exeext conftest.$ac_ext 7168fi 7169 7170 7171 CFLAGS="$xorg_testset_save_CFLAGS" 7172 7173 eval supported=\$$cacheid 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7175$as_echo "$supported" >&6; } 7176 if test "$supported" = "yes" ; then 7177 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7178 found="yes" 7179 fi 7180 fi 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196xorg_testset_save_CFLAGS="$CFLAGS" 7197 7198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207int i; 7208_ACEOF 7209if ac_fn_c_try_compile "$LINENO"; then : 7210 xorg_cv_cc_flag_unknown_warning_option=yes 7211else 7212 xorg_cv_cc_flag_unknown_warning_option=no 7213fi 7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7215fi 7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7219 CFLAGS="$xorg_testset_save_CFLAGS" 7220fi 7221 7222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7225 fi 7226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7233/* end confdefs.h. */ 7234int i; 7235_ACEOF 7236if ac_fn_c_try_compile "$LINENO"; then : 7237 xorg_cv_cc_flag_unused_command_line_argument=yes 7238else 7239 xorg_cv_cc_flag_unused_command_line_argument=no 7240fi 7241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7242fi 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7246 CFLAGS="$xorg_testset_save_CFLAGS" 7247fi 7248 7249found="no" 7250 7251 if test $found = "no" ; then 7252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7254 fi 7255 7256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7258 fi 7259 7260 CFLAGS="$CFLAGS -Werror=missing-braces" 7261 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7263$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7264 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7265 if eval \${$cacheid+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267else 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269/* end confdefs.h. */ 7270int i; 7271int 7272main () 7273{ 7274 7275 ; 7276 return 0; 7277} 7278_ACEOF 7279if ac_fn_c_try_link "$LINENO"; then : 7280 eval $cacheid=yes 7281else 7282 eval $cacheid=no 7283fi 7284rm -f core conftest.err conftest.$ac_objext \ 7285 conftest$ac_exeext conftest.$ac_ext 7286fi 7287 7288 7289 CFLAGS="$xorg_testset_save_CFLAGS" 7290 7291 eval supported=\$$cacheid 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7293$as_echo "$supported" >&6; } 7294 if test "$supported" = "yes" ; then 7295 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7296 found="yes" 7297 fi 7298 fi 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314xorg_testset_save_CFLAGS="$CFLAGS" 7315 7316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322else 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325int i; 7326_ACEOF 7327if ac_fn_c_try_compile "$LINENO"; then : 7328 xorg_cv_cc_flag_unknown_warning_option=yes 7329else 7330 xorg_cv_cc_flag_unknown_warning_option=no 7331fi 7332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7333fi 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7337 CFLAGS="$xorg_testset_save_CFLAGS" 7338fi 7339 7340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7343 fi 7344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7348 $as_echo_n "(cached) " >&6 7349else 7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351/* end confdefs.h. */ 7352int i; 7353_ACEOF 7354if ac_fn_c_try_compile "$LINENO"; then : 7355 xorg_cv_cc_flag_unused_command_line_argument=yes 7356else 7357 xorg_cv_cc_flag_unused_command_line_argument=no 7358fi 7359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7360fi 7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7364 CFLAGS="$xorg_testset_save_CFLAGS" 7365fi 7366 7367found="no" 7368 7369 if test $found = "no" ; then 7370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7372 fi 7373 7374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7376 fi 7377 7378 CFLAGS="$CFLAGS -Werror=sequence-point" 7379 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7381$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7382 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7383 if eval \${$cacheid+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387/* end confdefs.h. */ 7388int i; 7389int 7390main () 7391{ 7392 7393 ; 7394 return 0; 7395} 7396_ACEOF 7397if ac_fn_c_try_link "$LINENO"; then : 7398 eval $cacheid=yes 7399else 7400 eval $cacheid=no 7401fi 7402rm -f core conftest.err conftest.$ac_objext \ 7403 conftest$ac_exeext conftest.$ac_ext 7404fi 7405 7406 7407 CFLAGS="$xorg_testset_save_CFLAGS" 7408 7409 eval supported=\$$cacheid 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7411$as_echo "$supported" >&6; } 7412 if test "$supported" = "yes" ; then 7413 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7414 found="yes" 7415 fi 7416 fi 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432xorg_testset_save_CFLAGS="$CFLAGS" 7433 7434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440else 7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442/* end confdefs.h. */ 7443int i; 7444_ACEOF 7445if ac_fn_c_try_compile "$LINENO"; then : 7446 xorg_cv_cc_flag_unknown_warning_option=yes 7447else 7448 xorg_cv_cc_flag_unknown_warning_option=no 7449fi 7450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7451fi 7452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7455 CFLAGS="$xorg_testset_save_CFLAGS" 7456fi 7457 7458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7461 fi 7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7466 $as_echo_n "(cached) " >&6 7467else 7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7469/* end confdefs.h. */ 7470int i; 7471_ACEOF 7472if ac_fn_c_try_compile "$LINENO"; then : 7473 xorg_cv_cc_flag_unused_command_line_argument=yes 7474else 7475 xorg_cv_cc_flag_unused_command_line_argument=no 7476fi 7477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7478fi 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7482 CFLAGS="$xorg_testset_save_CFLAGS" 7483fi 7484 7485found="no" 7486 7487 if test $found = "no" ; then 7488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7490 fi 7491 7492 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7494 fi 7495 7496 CFLAGS="$CFLAGS -Werror=return-type" 7497 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7499$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7500 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7501 if eval \${$cacheid+:} false; then : 7502 $as_echo_n "(cached) " >&6 7503else 7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7505/* end confdefs.h. */ 7506int i; 7507int 7508main () 7509{ 7510 7511 ; 7512 return 0; 7513} 7514_ACEOF 7515if ac_fn_c_try_link "$LINENO"; then : 7516 eval $cacheid=yes 7517else 7518 eval $cacheid=no 7519fi 7520rm -f core conftest.err conftest.$ac_objext \ 7521 conftest$ac_exeext conftest.$ac_ext 7522fi 7523 7524 7525 CFLAGS="$xorg_testset_save_CFLAGS" 7526 7527 eval supported=\$$cacheid 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7529$as_echo "$supported" >&6; } 7530 if test "$supported" = "yes" ; then 7531 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7532 found="yes" 7533 fi 7534 fi 7535 7536 if test $found = "no" ; then 7537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7539 fi 7540 7541 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7543 fi 7544 7545 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7546 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7548$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7549 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7550 if eval \${$cacheid+:} false; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7554/* end confdefs.h. */ 7555int i; 7556int 7557main () 7558{ 7559 7560 ; 7561 return 0; 7562} 7563_ACEOF 7564if ac_fn_c_try_link "$LINENO"; then : 7565 eval $cacheid=yes 7566else 7567 eval $cacheid=no 7568fi 7569rm -f core conftest.err conftest.$ac_objext \ 7570 conftest$ac_exeext conftest.$ac_ext 7571fi 7572 7573 7574 CFLAGS="$xorg_testset_save_CFLAGS" 7575 7576 eval supported=\$$cacheid 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7578$as_echo "$supported" >&6; } 7579 if test "$supported" = "yes" ; then 7580 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7581 found="yes" 7582 fi 7583 fi 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599xorg_testset_save_CFLAGS="$CFLAGS" 7600 7601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610int i; 7611_ACEOF 7612if ac_fn_c_try_compile "$LINENO"; then : 7613 xorg_cv_cc_flag_unknown_warning_option=yes 7614else 7615 xorg_cv_cc_flag_unknown_warning_option=no 7616fi 7617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7618fi 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7622 CFLAGS="$xorg_testset_save_CFLAGS" 7623fi 7624 7625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7628 fi 7629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7633 $as_echo_n "(cached) " >&6 7634else 7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7636/* end confdefs.h. */ 7637int i; 7638_ACEOF 7639if ac_fn_c_try_compile "$LINENO"; then : 7640 xorg_cv_cc_flag_unused_command_line_argument=yes 7641else 7642 xorg_cv_cc_flag_unused_command_line_argument=no 7643fi 7644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7645fi 7646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7649 CFLAGS="$xorg_testset_save_CFLAGS" 7650fi 7651 7652found="no" 7653 7654 if test $found = "no" ; then 7655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7657 fi 7658 7659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7661 fi 7662 7663 CFLAGS="$CFLAGS -Werror=trigraphs" 7664 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7666$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7667 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7668 if eval \${$cacheid+:} false; then : 7669 $as_echo_n "(cached) " >&6 7670else 7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7672/* end confdefs.h. */ 7673int i; 7674int 7675main () 7676{ 7677 7678 ; 7679 return 0; 7680} 7681_ACEOF 7682if ac_fn_c_try_link "$LINENO"; then : 7683 eval $cacheid=yes 7684else 7685 eval $cacheid=no 7686fi 7687rm -f core conftest.err conftest.$ac_objext \ 7688 conftest$ac_exeext conftest.$ac_ext 7689fi 7690 7691 7692 CFLAGS="$xorg_testset_save_CFLAGS" 7693 7694 eval supported=\$$cacheid 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7696$as_echo "$supported" >&6; } 7697 if test "$supported" = "yes" ; then 7698 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7699 found="yes" 7700 fi 7701 fi 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717xorg_testset_save_CFLAGS="$CFLAGS" 7718 7719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728int i; 7729_ACEOF 7730if ac_fn_c_try_compile "$LINENO"; then : 7731 xorg_cv_cc_flag_unknown_warning_option=yes 7732else 7733 xorg_cv_cc_flag_unknown_warning_option=no 7734fi 7735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7736fi 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7740 CFLAGS="$xorg_testset_save_CFLAGS" 7741fi 7742 7743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7746 fi 7747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7751 $as_echo_n "(cached) " >&6 7752else 7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7754/* end confdefs.h. */ 7755int i; 7756_ACEOF 7757if ac_fn_c_try_compile "$LINENO"; then : 7758 xorg_cv_cc_flag_unused_command_line_argument=yes 7759else 7760 xorg_cv_cc_flag_unused_command_line_argument=no 7761fi 7762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7763fi 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7767 CFLAGS="$xorg_testset_save_CFLAGS" 7768fi 7769 7770found="no" 7771 7772 if test $found = "no" ; then 7773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7775 fi 7776 7777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7779 fi 7780 7781 CFLAGS="$CFLAGS -Werror=array-bounds" 7782 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7784$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7785 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7786 if eval \${$cacheid+:} false; then : 7787 $as_echo_n "(cached) " >&6 7788else 7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7790/* end confdefs.h. */ 7791int i; 7792int 7793main () 7794{ 7795 7796 ; 7797 return 0; 7798} 7799_ACEOF 7800if ac_fn_c_try_link "$LINENO"; then : 7801 eval $cacheid=yes 7802else 7803 eval $cacheid=no 7804fi 7805rm -f core conftest.err conftest.$ac_objext \ 7806 conftest$ac_exeext conftest.$ac_ext 7807fi 7808 7809 7810 CFLAGS="$xorg_testset_save_CFLAGS" 7811 7812 eval supported=\$$cacheid 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7814$as_echo "$supported" >&6; } 7815 if test "$supported" = "yes" ; then 7816 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7817 found="yes" 7818 fi 7819 fi 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835xorg_testset_save_CFLAGS="$CFLAGS" 7836 7837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845/* end confdefs.h. */ 7846int i; 7847_ACEOF 7848if ac_fn_c_try_compile "$LINENO"; then : 7849 xorg_cv_cc_flag_unknown_warning_option=yes 7850else 7851 xorg_cv_cc_flag_unknown_warning_option=no 7852fi 7853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7854fi 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859fi 7860 7861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7864 fi 7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7869 $as_echo_n "(cached) " >&6 7870else 7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7872/* end confdefs.h. */ 7873int i; 7874_ACEOF 7875if ac_fn_c_try_compile "$LINENO"; then : 7876 xorg_cv_cc_flag_unused_command_line_argument=yes 7877else 7878 xorg_cv_cc_flag_unused_command_line_argument=no 7879fi 7880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7881fi 7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7885 CFLAGS="$xorg_testset_save_CFLAGS" 7886fi 7887 7888found="no" 7889 7890 if test $found = "no" ; then 7891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 7895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7897 fi 7898 7899 CFLAGS="$CFLAGS -Werror=write-strings" 7900 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7902$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7903 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7904 if eval \${$cacheid+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909int i; 7910int 7911main () 7912{ 7913 7914 ; 7915 return 0; 7916} 7917_ACEOF 7918if ac_fn_c_try_link "$LINENO"; then : 7919 eval $cacheid=yes 7920else 7921 eval $cacheid=no 7922fi 7923rm -f core conftest.err conftest.$ac_objext \ 7924 conftest$ac_exeext conftest.$ac_ext 7925fi 7926 7927 7928 CFLAGS="$xorg_testset_save_CFLAGS" 7929 7930 eval supported=\$$cacheid 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7932$as_echo "$supported" >&6; } 7933 if test "$supported" = "yes" ; then 7934 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7935 found="yes" 7936 fi 7937 fi 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953xorg_testset_save_CFLAGS="$CFLAGS" 7954 7955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7963/* end confdefs.h. */ 7964int i; 7965_ACEOF 7966if ac_fn_c_try_compile "$LINENO"; then : 7967 xorg_cv_cc_flag_unknown_warning_option=yes 7968else 7969 xorg_cv_cc_flag_unknown_warning_option=no 7970fi 7971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7972fi 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7976 CFLAGS="$xorg_testset_save_CFLAGS" 7977fi 7978 7979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7982 fi 7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988else 7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7990/* end confdefs.h. */ 7991int i; 7992_ACEOF 7993if ac_fn_c_try_compile "$LINENO"; then : 7994 xorg_cv_cc_flag_unused_command_line_argument=yes 7995else 7996 xorg_cv_cc_flag_unused_command_line_argument=no 7997fi 7998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7999fi 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8003 CFLAGS="$xorg_testset_save_CFLAGS" 8004fi 8005 8006found="no" 8007 8008 if test $found = "no" ; then 8009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8011 fi 8012 8013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8015 fi 8016 8017 CFLAGS="$CFLAGS -Werror=address" 8018 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8020$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8021 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8022 if eval \${$cacheid+:} false; then : 8023 $as_echo_n "(cached) " >&6 8024else 8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8026/* end confdefs.h. */ 8027int i; 8028int 8029main () 8030{ 8031 8032 ; 8033 return 0; 8034} 8035_ACEOF 8036if ac_fn_c_try_link "$LINENO"; then : 8037 eval $cacheid=yes 8038else 8039 eval $cacheid=no 8040fi 8041rm -f core conftest.err conftest.$ac_objext \ 8042 conftest$ac_exeext conftest.$ac_ext 8043fi 8044 8045 8046 CFLAGS="$xorg_testset_save_CFLAGS" 8047 8048 eval supported=\$$cacheid 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8050$as_echo "$supported" >&6; } 8051 if test "$supported" = "yes" ; then 8052 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8053 found="yes" 8054 fi 8055 fi 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071xorg_testset_save_CFLAGS="$CFLAGS" 8072 8073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8081/* end confdefs.h. */ 8082int i; 8083_ACEOF 8084if ac_fn_c_try_compile "$LINENO"; then : 8085 xorg_cv_cc_flag_unknown_warning_option=yes 8086else 8087 xorg_cv_cc_flag_unknown_warning_option=no 8088fi 8089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8090fi 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8094 CFLAGS="$xorg_testset_save_CFLAGS" 8095fi 8096 8097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8100 fi 8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8105 $as_echo_n "(cached) " >&6 8106else 8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8108/* end confdefs.h. */ 8109int i; 8110_ACEOF 8111if ac_fn_c_try_compile "$LINENO"; then : 8112 xorg_cv_cc_flag_unused_command_line_argument=yes 8113else 8114 xorg_cv_cc_flag_unused_command_line_argument=no 8115fi 8116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8117fi 8118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8121 CFLAGS="$xorg_testset_save_CFLAGS" 8122fi 8123 8124found="no" 8125 8126 if test $found = "no" ; then 8127 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8129 fi 8130 8131 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8133 fi 8134 8135 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8136 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8138$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8139 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8140 if eval \${$cacheid+:} false; then : 8141 $as_echo_n "(cached) " >&6 8142else 8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8144/* end confdefs.h. */ 8145int i; 8146int 8147main () 8148{ 8149 8150 ; 8151 return 0; 8152} 8153_ACEOF 8154if ac_fn_c_try_link "$LINENO"; then : 8155 eval $cacheid=yes 8156else 8157 eval $cacheid=no 8158fi 8159rm -f core conftest.err conftest.$ac_objext \ 8160 conftest$ac_exeext conftest.$ac_ext 8161fi 8162 8163 8164 CFLAGS="$xorg_testset_save_CFLAGS" 8165 8166 eval supported=\$$cacheid 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8168$as_echo "$supported" >&6; } 8169 if test "$supported" = "yes" ; then 8170 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8171 found="yes" 8172 fi 8173 fi 8174 8175 if test $found = "no" ; then 8176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8178 fi 8179 8180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8182 fi 8183 8184 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8185 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8187$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8188 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8189 if eval \${$cacheid+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191else 8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8193/* end confdefs.h. */ 8194int i; 8195int 8196main () 8197{ 8198 8199 ; 8200 return 0; 8201} 8202_ACEOF 8203if ac_fn_c_try_link "$LINENO"; then : 8204 eval $cacheid=yes 8205else 8206 eval $cacheid=no 8207fi 8208rm -f core conftest.err conftest.$ac_objext \ 8209 conftest$ac_exeext conftest.$ac_ext 8210fi 8211 8212 8213 CFLAGS="$xorg_testset_save_CFLAGS" 8214 8215 eval supported=\$$cacheid 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8217$as_echo "$supported" >&6; } 8218 if test "$supported" = "yes" ; then 8219 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8220 found="yes" 8221 fi 8222 fi 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238xorg_testset_save_CFLAGS="$CFLAGS" 8239 8240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246else 8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8248/* end confdefs.h. */ 8249int i; 8250_ACEOF 8251if ac_fn_c_try_compile "$LINENO"; then : 8252 xorg_cv_cc_flag_unknown_warning_option=yes 8253else 8254 xorg_cv_cc_flag_unknown_warning_option=no 8255fi 8256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8257fi 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8261 CFLAGS="$xorg_testset_save_CFLAGS" 8262fi 8263 8264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8267 fi 8268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8272 $as_echo_n "(cached) " >&6 8273else 8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8275/* end confdefs.h. */ 8276int i; 8277_ACEOF 8278if ac_fn_c_try_compile "$LINENO"; then : 8279 xorg_cv_cc_flag_unused_command_line_argument=yes 8280else 8281 xorg_cv_cc_flag_unused_command_line_argument=no 8282fi 8283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8284fi 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8288 CFLAGS="$xorg_testset_save_CFLAGS" 8289fi 8290 8291found="no" 8292 8293 if test $found = "no" ; then 8294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8296 fi 8297 8298 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8300 fi 8301 8302 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8303 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8305$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8306 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8307 if eval \${$cacheid+:} false; then : 8308 $as_echo_n "(cached) " >&6 8309else 8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8311/* end confdefs.h. */ 8312int i; 8313int 8314main () 8315{ 8316 8317 ; 8318 return 0; 8319} 8320_ACEOF 8321if ac_fn_c_try_link "$LINENO"; then : 8322 eval $cacheid=yes 8323else 8324 eval $cacheid=no 8325fi 8326rm -f core conftest.err conftest.$ac_objext \ 8327 conftest$ac_exeext conftest.$ac_ext 8328fi 8329 8330 8331 CFLAGS="$xorg_testset_save_CFLAGS" 8332 8333 eval supported=\$$cacheid 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8335$as_echo "$supported" >&6; } 8336 if test "$supported" = "yes" ; then 8337 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8338 found="yes" 8339 fi 8340 fi 8341 8342 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8343else 8344{ $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 8345$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;} 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359xorg_testset_save_CFLAGS="$CFLAGS" 8360 8361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370int i; 8371_ACEOF 8372if ac_fn_c_try_compile "$LINENO"; then : 8373 xorg_cv_cc_flag_unknown_warning_option=yes 8374else 8375 xorg_cv_cc_flag_unknown_warning_option=no 8376fi 8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8378fi 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8382 CFLAGS="$xorg_testset_save_CFLAGS" 8383fi 8384 8385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8388 fi 8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397int i; 8398_ACEOF 8399if ac_fn_c_try_compile "$LINENO"; then : 8400 xorg_cv_cc_flag_unused_command_line_argument=yes 8401else 8402 xorg_cv_cc_flag_unused_command_line_argument=no 8403fi 8404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8405fi 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8409 CFLAGS="$xorg_testset_save_CFLAGS" 8410fi 8411 8412found="no" 8413 8414 if test $found = "no" ; then 8415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8417 fi 8418 8419 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8421 fi 8422 8423 CFLAGS="$CFLAGS -Wimplicit" 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8426$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8427 cacheid=xorg_cv_cc_flag__Wimplicit 8428 if eval \${$cacheid+:} false; then : 8429 $as_echo_n "(cached) " >&6 8430else 8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8432/* end confdefs.h. */ 8433int i; 8434int 8435main () 8436{ 8437 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442if ac_fn_c_try_link "$LINENO"; then : 8443 eval $cacheid=yes 8444else 8445 eval $cacheid=no 8446fi 8447rm -f core conftest.err conftest.$ac_objext \ 8448 conftest$ac_exeext conftest.$ac_ext 8449fi 8450 8451 8452 CFLAGS="$xorg_testset_save_CFLAGS" 8453 8454 eval supported=\$$cacheid 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8456$as_echo "$supported" >&6; } 8457 if test "$supported" = "yes" ; then 8458 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8459 found="yes" 8460 fi 8461 fi 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477xorg_testset_save_CFLAGS="$CFLAGS" 8478 8479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488int i; 8489_ACEOF 8490if ac_fn_c_try_compile "$LINENO"; then : 8491 xorg_cv_cc_flag_unknown_warning_option=yes 8492else 8493 xorg_cv_cc_flag_unknown_warning_option=no 8494fi 8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8496fi 8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501fi 8502 8503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512else 8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8514/* end confdefs.h. */ 8515int i; 8516_ACEOF 8517if ac_fn_c_try_compile "$LINENO"; then : 8518 xorg_cv_cc_flag_unused_command_line_argument=yes 8519else 8520 xorg_cv_cc_flag_unused_command_line_argument=no 8521fi 8522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8523fi 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8527 CFLAGS="$xorg_testset_save_CFLAGS" 8528fi 8529 8530found="no" 8531 8532 if test $found = "no" ; then 8533 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8535 fi 8536 8537 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8539 fi 8540 8541 CFLAGS="$CFLAGS -Wnonnull" 8542 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8544$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8545 cacheid=xorg_cv_cc_flag__Wnonnull 8546 if eval \${$cacheid+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548else 8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8550/* end confdefs.h. */ 8551int i; 8552int 8553main () 8554{ 8555 8556 ; 8557 return 0; 8558} 8559_ACEOF 8560if ac_fn_c_try_link "$LINENO"; then : 8561 eval $cacheid=yes 8562else 8563 eval $cacheid=no 8564fi 8565rm -f core conftest.err conftest.$ac_objext \ 8566 conftest$ac_exeext conftest.$ac_ext 8567fi 8568 8569 8570 CFLAGS="$xorg_testset_save_CFLAGS" 8571 8572 eval supported=\$$cacheid 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8574$as_echo "$supported" >&6; } 8575 if test "$supported" = "yes" ; then 8576 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8577 found="yes" 8578 fi 8579 fi 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595xorg_testset_save_CFLAGS="$CFLAGS" 8596 8597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8602 $as_echo_n "(cached) " >&6 8603else 8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8605/* end confdefs.h. */ 8606int i; 8607_ACEOF 8608if ac_fn_c_try_compile "$LINENO"; then : 8609 xorg_cv_cc_flag_unknown_warning_option=yes 8610else 8611 xorg_cv_cc_flag_unknown_warning_option=no 8612fi 8613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8614fi 8615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8618 CFLAGS="$xorg_testset_save_CFLAGS" 8619fi 8620 8621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8624 fi 8625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8629 $as_echo_n "(cached) " >&6 8630else 8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8632/* end confdefs.h. */ 8633int i; 8634_ACEOF 8635if ac_fn_c_try_compile "$LINENO"; then : 8636 xorg_cv_cc_flag_unused_command_line_argument=yes 8637else 8638 xorg_cv_cc_flag_unused_command_line_argument=no 8639fi 8640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8641fi 8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8645 CFLAGS="$xorg_testset_save_CFLAGS" 8646fi 8647 8648found="no" 8649 8650 if test $found = "no" ; then 8651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8653 fi 8654 8655 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8657 fi 8658 8659 CFLAGS="$CFLAGS -Winit-self" 8660 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8662$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8663 cacheid=xorg_cv_cc_flag__Winit_self 8664 if eval \${$cacheid+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666else 8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8668/* end confdefs.h. */ 8669int i; 8670int 8671main () 8672{ 8673 8674 ; 8675 return 0; 8676} 8677_ACEOF 8678if ac_fn_c_try_link "$LINENO"; then : 8679 eval $cacheid=yes 8680else 8681 eval $cacheid=no 8682fi 8683rm -f core conftest.err conftest.$ac_objext \ 8684 conftest$ac_exeext conftest.$ac_ext 8685fi 8686 8687 8688 CFLAGS="$xorg_testset_save_CFLAGS" 8689 8690 eval supported=\$$cacheid 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8692$as_echo "$supported" >&6; } 8693 if test "$supported" = "yes" ; then 8694 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8695 found="yes" 8696 fi 8697 fi 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713xorg_testset_save_CFLAGS="$CFLAGS" 8714 8715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8720 $as_echo_n "(cached) " >&6 8721else 8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8723/* end confdefs.h. */ 8724int i; 8725_ACEOF 8726if ac_fn_c_try_compile "$LINENO"; then : 8727 xorg_cv_cc_flag_unknown_warning_option=yes 8728else 8729 xorg_cv_cc_flag_unknown_warning_option=no 8730fi 8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8732fi 8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8736 CFLAGS="$xorg_testset_save_CFLAGS" 8737fi 8738 8739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8747 $as_echo_n "(cached) " >&6 8748else 8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8750/* end confdefs.h. */ 8751int i; 8752_ACEOF 8753if ac_fn_c_try_compile "$LINENO"; then : 8754 xorg_cv_cc_flag_unused_command_line_argument=yes 8755else 8756 xorg_cv_cc_flag_unused_command_line_argument=no 8757fi 8758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8759fi 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8763 CFLAGS="$xorg_testset_save_CFLAGS" 8764fi 8765 8766found="no" 8767 8768 if test $found = "no" ; then 8769 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8771 fi 8772 8773 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8775 fi 8776 8777 CFLAGS="$CFLAGS -Wmain" 8778 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8780$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8781 cacheid=xorg_cv_cc_flag__Wmain 8782 if eval \${$cacheid+:} false; then : 8783 $as_echo_n "(cached) " >&6 8784else 8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8786/* end confdefs.h. */ 8787int i; 8788int 8789main () 8790{ 8791 8792 ; 8793 return 0; 8794} 8795_ACEOF 8796if ac_fn_c_try_link "$LINENO"; then : 8797 eval $cacheid=yes 8798else 8799 eval $cacheid=no 8800fi 8801rm -f core conftest.err conftest.$ac_objext \ 8802 conftest$ac_exeext conftest.$ac_ext 8803fi 8804 8805 8806 CFLAGS="$xorg_testset_save_CFLAGS" 8807 8808 eval supported=\$$cacheid 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8810$as_echo "$supported" >&6; } 8811 if test "$supported" = "yes" ; then 8812 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8813 found="yes" 8814 fi 8815 fi 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831xorg_testset_save_CFLAGS="$CFLAGS" 8832 8833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841/* end confdefs.h. */ 8842int i; 8843_ACEOF 8844if ac_fn_c_try_compile "$LINENO"; then : 8845 xorg_cv_cc_flag_unknown_warning_option=yes 8846else 8847 xorg_cv_cc_flag_unknown_warning_option=no 8848fi 8849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8850fi 8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8854 CFLAGS="$xorg_testset_save_CFLAGS" 8855fi 8856 8857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8860 fi 8861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8865 $as_echo_n "(cached) " >&6 8866else 8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8868/* end confdefs.h. */ 8869int i; 8870_ACEOF 8871if ac_fn_c_try_compile "$LINENO"; then : 8872 xorg_cv_cc_flag_unused_command_line_argument=yes 8873else 8874 xorg_cv_cc_flag_unused_command_line_argument=no 8875fi 8876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8877fi 8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8881 CFLAGS="$xorg_testset_save_CFLAGS" 8882fi 8883 8884found="no" 8885 8886 if test $found = "no" ; then 8887 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8889 fi 8890 8891 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8893 fi 8894 8895 CFLAGS="$CFLAGS -Wmissing-braces" 8896 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8898$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8899 cacheid=xorg_cv_cc_flag__Wmissing_braces 8900 if eval \${$cacheid+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902else 8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8904/* end confdefs.h. */ 8905int i; 8906int 8907main () 8908{ 8909 8910 ; 8911 return 0; 8912} 8913_ACEOF 8914if ac_fn_c_try_link "$LINENO"; then : 8915 eval $cacheid=yes 8916else 8917 eval $cacheid=no 8918fi 8919rm -f core conftest.err conftest.$ac_objext \ 8920 conftest$ac_exeext conftest.$ac_ext 8921fi 8922 8923 8924 CFLAGS="$xorg_testset_save_CFLAGS" 8925 8926 eval supported=\$$cacheid 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8928$as_echo "$supported" >&6; } 8929 if test "$supported" = "yes" ; then 8930 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8931 found="yes" 8932 fi 8933 fi 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949xorg_testset_save_CFLAGS="$CFLAGS" 8950 8951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957else 8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959/* end confdefs.h. */ 8960int i; 8961_ACEOF 8962if ac_fn_c_try_compile "$LINENO"; then : 8963 xorg_cv_cc_flag_unknown_warning_option=yes 8964else 8965 xorg_cv_cc_flag_unknown_warning_option=no 8966fi 8967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8968fi 8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8972 CFLAGS="$xorg_testset_save_CFLAGS" 8973fi 8974 8975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 fi 8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984else 8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8986/* end confdefs.h. */ 8987int i; 8988_ACEOF 8989if ac_fn_c_try_compile "$LINENO"; then : 8990 xorg_cv_cc_flag_unused_command_line_argument=yes 8991else 8992 xorg_cv_cc_flag_unused_command_line_argument=no 8993fi 8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8995fi 8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8999 CFLAGS="$xorg_testset_save_CFLAGS" 9000fi 9001 9002found="no" 9003 9004 if test $found = "no" ; then 9005 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 fi 9008 9009 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9011 fi 9012 9013 CFLAGS="$CFLAGS -Wsequence-point" 9014 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9016$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9017 cacheid=xorg_cv_cc_flag__Wsequence_point 9018 if eval \${$cacheid+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9022/* end confdefs.h. */ 9023int i; 9024int 9025main () 9026{ 9027 9028 ; 9029 return 0; 9030} 9031_ACEOF 9032if ac_fn_c_try_link "$LINENO"; then : 9033 eval $cacheid=yes 9034else 9035 eval $cacheid=no 9036fi 9037rm -f core conftest.err conftest.$ac_objext \ 9038 conftest$ac_exeext conftest.$ac_ext 9039fi 9040 9041 9042 CFLAGS="$xorg_testset_save_CFLAGS" 9043 9044 eval supported=\$$cacheid 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9046$as_echo "$supported" >&6; } 9047 if test "$supported" = "yes" ; then 9048 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9049 found="yes" 9050 fi 9051 fi 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067xorg_testset_save_CFLAGS="$CFLAGS" 9068 9069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9072$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9073if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9077/* end confdefs.h. */ 9078int i; 9079_ACEOF 9080if ac_fn_c_try_compile "$LINENO"; then : 9081 xorg_cv_cc_flag_unknown_warning_option=yes 9082else 9083 xorg_cv_cc_flag_unknown_warning_option=no 9084fi 9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9086fi 9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9088$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9090 CFLAGS="$xorg_testset_save_CFLAGS" 9091fi 9092 9093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9096 fi 9097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9099$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9100if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9101 $as_echo_n "(cached) " >&6 9102else 9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9104/* end confdefs.h. */ 9105int i; 9106_ACEOF 9107if ac_fn_c_try_compile "$LINENO"; then : 9108 xorg_cv_cc_flag_unused_command_line_argument=yes 9109else 9110 xorg_cv_cc_flag_unused_command_line_argument=no 9111fi 9112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9113fi 9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9115$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9117 CFLAGS="$xorg_testset_save_CFLAGS" 9118fi 9119 9120found="no" 9121 9122 if test $found = "no" ; then 9123 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9125 fi 9126 9127 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9129 fi 9130 9131 CFLAGS="$CFLAGS -Wreturn-type" 9132 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9134$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9135 cacheid=xorg_cv_cc_flag__Wreturn_type 9136 if eval \${$cacheid+:} false; then : 9137 $as_echo_n "(cached) " >&6 9138else 9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140/* end confdefs.h. */ 9141int i; 9142int 9143main () 9144{ 9145 9146 ; 9147 return 0; 9148} 9149_ACEOF 9150if ac_fn_c_try_link "$LINENO"; then : 9151 eval $cacheid=yes 9152else 9153 eval $cacheid=no 9154fi 9155rm -f core conftest.err conftest.$ac_objext \ 9156 conftest$ac_exeext conftest.$ac_ext 9157fi 9158 9159 9160 CFLAGS="$xorg_testset_save_CFLAGS" 9161 9162 eval supported=\$$cacheid 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9164$as_echo "$supported" >&6; } 9165 if test "$supported" = "yes" ; then 9166 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9167 found="yes" 9168 fi 9169 fi 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185xorg_testset_save_CFLAGS="$CFLAGS" 9186 9187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193else 9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9195/* end confdefs.h. */ 9196int i; 9197_ACEOF 9198if ac_fn_c_try_compile "$LINENO"; then : 9199 xorg_cv_cc_flag_unknown_warning_option=yes 9200else 9201 xorg_cv_cc_flag_unknown_warning_option=no 9202fi 9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9204fi 9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9208 CFLAGS="$xorg_testset_save_CFLAGS" 9209fi 9210 9211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9214 fi 9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9219 $as_echo_n "(cached) " >&6 9220else 9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9222/* end confdefs.h. */ 9223int i; 9224_ACEOF 9225if ac_fn_c_try_compile "$LINENO"; then : 9226 xorg_cv_cc_flag_unused_command_line_argument=yes 9227else 9228 xorg_cv_cc_flag_unused_command_line_argument=no 9229fi 9230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9231fi 9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9235 CFLAGS="$xorg_testset_save_CFLAGS" 9236fi 9237 9238found="no" 9239 9240 if test $found = "no" ; then 9241 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 fi 9244 9245 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9247 fi 9248 9249 CFLAGS="$CFLAGS -Wtrigraphs" 9250 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9252$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9253 cacheid=xorg_cv_cc_flag__Wtrigraphs 9254 if eval \${$cacheid+:} false; then : 9255 $as_echo_n "(cached) " >&6 9256else 9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258/* end confdefs.h. */ 9259int i; 9260int 9261main () 9262{ 9263 9264 ; 9265 return 0; 9266} 9267_ACEOF 9268if ac_fn_c_try_link "$LINENO"; then : 9269 eval $cacheid=yes 9270else 9271 eval $cacheid=no 9272fi 9273rm -f core conftest.err conftest.$ac_objext \ 9274 conftest$ac_exeext conftest.$ac_ext 9275fi 9276 9277 9278 CFLAGS="$xorg_testset_save_CFLAGS" 9279 9280 eval supported=\$$cacheid 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9282$as_echo "$supported" >&6; } 9283 if test "$supported" = "yes" ; then 9284 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9285 found="yes" 9286 fi 9287 fi 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303xorg_testset_save_CFLAGS="$CFLAGS" 9304 9305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9310 $as_echo_n "(cached) " >&6 9311else 9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313/* end confdefs.h. */ 9314int i; 9315_ACEOF 9316if ac_fn_c_try_compile "$LINENO"; then : 9317 xorg_cv_cc_flag_unknown_warning_option=yes 9318else 9319 xorg_cv_cc_flag_unknown_warning_option=no 9320fi 9321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9322fi 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9326 CFLAGS="$xorg_testset_save_CFLAGS" 9327fi 9328 9329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9332 fi 9333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9337 $as_echo_n "(cached) " >&6 9338else 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340/* end confdefs.h. */ 9341int i; 9342_ACEOF 9343if ac_fn_c_try_compile "$LINENO"; then : 9344 xorg_cv_cc_flag_unused_command_line_argument=yes 9345else 9346 xorg_cv_cc_flag_unused_command_line_argument=no 9347fi 9348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9349fi 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9353 CFLAGS="$xorg_testset_save_CFLAGS" 9354fi 9355 9356found="no" 9357 9358 if test $found = "no" ; then 9359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9361 fi 9362 9363 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9365 fi 9366 9367 CFLAGS="$CFLAGS -Warray-bounds" 9368 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9370$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9371 cacheid=xorg_cv_cc_flag__Warray_bounds 9372 if eval \${$cacheid+:} false; then : 9373 $as_echo_n "(cached) " >&6 9374else 9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9376/* end confdefs.h. */ 9377int i; 9378int 9379main () 9380{ 9381 9382 ; 9383 return 0; 9384} 9385_ACEOF 9386if ac_fn_c_try_link "$LINENO"; then : 9387 eval $cacheid=yes 9388else 9389 eval $cacheid=no 9390fi 9391rm -f core conftest.err conftest.$ac_objext \ 9392 conftest$ac_exeext conftest.$ac_ext 9393fi 9394 9395 9396 CFLAGS="$xorg_testset_save_CFLAGS" 9397 9398 eval supported=\$$cacheid 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9400$as_echo "$supported" >&6; } 9401 if test "$supported" = "yes" ; then 9402 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9403 found="yes" 9404 fi 9405 fi 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421xorg_testset_save_CFLAGS="$CFLAGS" 9422 9423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9431/* end confdefs.h. */ 9432int i; 9433_ACEOF 9434if ac_fn_c_try_compile "$LINENO"; then : 9435 xorg_cv_cc_flag_unknown_warning_option=yes 9436else 9437 xorg_cv_cc_flag_unknown_warning_option=no 9438fi 9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9440fi 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9444 CFLAGS="$xorg_testset_save_CFLAGS" 9445fi 9446 9447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456else 9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9458/* end confdefs.h. */ 9459int i; 9460_ACEOF 9461if ac_fn_c_try_compile "$LINENO"; then : 9462 xorg_cv_cc_flag_unused_command_line_argument=yes 9463else 9464 xorg_cv_cc_flag_unused_command_line_argument=no 9465fi 9466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9467fi 9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9471 CFLAGS="$xorg_testset_save_CFLAGS" 9472fi 9473 9474found="no" 9475 9476 if test $found = "no" ; then 9477 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9479 fi 9480 9481 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9483 fi 9484 9485 CFLAGS="$CFLAGS -Wwrite-strings" 9486 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9488$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9489 cacheid=xorg_cv_cc_flag__Wwrite_strings 9490 if eval \${$cacheid+:} false; then : 9491 $as_echo_n "(cached) " >&6 9492else 9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9494/* end confdefs.h. */ 9495int i; 9496int 9497main () 9498{ 9499 9500 ; 9501 return 0; 9502} 9503_ACEOF 9504if ac_fn_c_try_link "$LINENO"; then : 9505 eval $cacheid=yes 9506else 9507 eval $cacheid=no 9508fi 9509rm -f core conftest.err conftest.$ac_objext \ 9510 conftest$ac_exeext conftest.$ac_ext 9511fi 9512 9513 9514 CFLAGS="$xorg_testset_save_CFLAGS" 9515 9516 eval supported=\$$cacheid 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9518$as_echo "$supported" >&6; } 9519 if test "$supported" = "yes" ; then 9520 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9521 found="yes" 9522 fi 9523 fi 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539xorg_testset_save_CFLAGS="$CFLAGS" 9540 9541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9546 $as_echo_n "(cached) " >&6 9547else 9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549/* end confdefs.h. */ 9550int i; 9551_ACEOF 9552if ac_fn_c_try_compile "$LINENO"; then : 9553 xorg_cv_cc_flag_unknown_warning_option=yes 9554else 9555 xorg_cv_cc_flag_unknown_warning_option=no 9556fi 9557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9558fi 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9562 CFLAGS="$xorg_testset_save_CFLAGS" 9563fi 9564 9565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9568 fi 9569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9573 $as_echo_n "(cached) " >&6 9574else 9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9576/* end confdefs.h. */ 9577int i; 9578_ACEOF 9579if ac_fn_c_try_compile "$LINENO"; then : 9580 xorg_cv_cc_flag_unused_command_line_argument=yes 9581else 9582 xorg_cv_cc_flag_unused_command_line_argument=no 9583fi 9584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9585fi 9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9589 CFLAGS="$xorg_testset_save_CFLAGS" 9590fi 9591 9592found="no" 9593 9594 if test $found = "no" ; then 9595 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9597 fi 9598 9599 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9601 fi 9602 9603 CFLAGS="$CFLAGS -Waddress" 9604 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9606$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9607 cacheid=xorg_cv_cc_flag__Waddress 9608 if eval \${$cacheid+:} false; then : 9609 $as_echo_n "(cached) " >&6 9610else 9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9612/* end confdefs.h. */ 9613int i; 9614int 9615main () 9616{ 9617 9618 ; 9619 return 0; 9620} 9621_ACEOF 9622if ac_fn_c_try_link "$LINENO"; then : 9623 eval $cacheid=yes 9624else 9625 eval $cacheid=no 9626fi 9627rm -f core conftest.err conftest.$ac_objext \ 9628 conftest$ac_exeext conftest.$ac_ext 9629fi 9630 9631 9632 CFLAGS="$xorg_testset_save_CFLAGS" 9633 9634 eval supported=\$$cacheid 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9636$as_echo "$supported" >&6; } 9637 if test "$supported" = "yes" ; then 9638 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9639 found="yes" 9640 fi 9641 fi 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657xorg_testset_save_CFLAGS="$CFLAGS" 9658 9659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667/* end confdefs.h. */ 9668int i; 9669_ACEOF 9670if ac_fn_c_try_compile "$LINENO"; then : 9671 xorg_cv_cc_flag_unknown_warning_option=yes 9672else 9673 xorg_cv_cc_flag_unknown_warning_option=no 9674fi 9675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9676fi 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9680 CFLAGS="$xorg_testset_save_CFLAGS" 9681fi 9682 9683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686 fi 9687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9691 $as_echo_n "(cached) " >&6 9692else 9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694/* end confdefs.h. */ 9695int i; 9696_ACEOF 9697if ac_fn_c_try_compile "$LINENO"; then : 9698 xorg_cv_cc_flag_unused_command_line_argument=yes 9699else 9700 xorg_cv_cc_flag_unused_command_line_argument=no 9701fi 9702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9703fi 9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9707 CFLAGS="$xorg_testset_save_CFLAGS" 9708fi 9709 9710found="no" 9711 9712 if test $found = "no" ; then 9713 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 fi 9716 9717 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9719 fi 9720 9721 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9722 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9724$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9725 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9726 if eval \${$cacheid+:} false; then : 9727 $as_echo_n "(cached) " >&6 9728else 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730/* end confdefs.h. */ 9731int i; 9732int 9733main () 9734{ 9735 9736 ; 9737 return 0; 9738} 9739_ACEOF 9740if ac_fn_c_try_link "$LINENO"; then : 9741 eval $cacheid=yes 9742else 9743 eval $cacheid=no 9744fi 9745rm -f core conftest.err conftest.$ac_objext \ 9746 conftest$ac_exeext conftest.$ac_ext 9747fi 9748 9749 9750 CFLAGS="$xorg_testset_save_CFLAGS" 9751 9752 eval supported=\$$cacheid 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9754$as_echo "$supported" >&6; } 9755 if test "$supported" = "yes" ; then 9756 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9757 found="yes" 9758 fi 9759 fi 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775xorg_testset_save_CFLAGS="$CFLAGS" 9776 9777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9782 $as_echo_n "(cached) " >&6 9783else 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785/* end confdefs.h. */ 9786int i; 9787_ACEOF 9788if ac_fn_c_try_compile "$LINENO"; then : 9789 xorg_cv_cc_flag_unknown_warning_option=yes 9790else 9791 xorg_cv_cc_flag_unknown_warning_option=no 9792fi 9793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9794fi 9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9798 CFLAGS="$xorg_testset_save_CFLAGS" 9799fi 9800 9801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9804 fi 9805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9809 $as_echo_n "(cached) " >&6 9810else 9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9812/* end confdefs.h. */ 9813int i; 9814_ACEOF 9815if ac_fn_c_try_compile "$LINENO"; then : 9816 xorg_cv_cc_flag_unused_command_line_argument=yes 9817else 9818 xorg_cv_cc_flag_unused_command_line_argument=no 9819fi 9820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9821fi 9822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9825 CFLAGS="$xorg_testset_save_CFLAGS" 9826fi 9827 9828found="no" 9829 9830 if test $found = "no" ; then 9831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9833 fi 9834 9835 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9837 fi 9838 9839 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9840 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9842$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9843 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9844 if eval \${$cacheid+:} false; then : 9845 $as_echo_n "(cached) " >&6 9846else 9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9848/* end confdefs.h. */ 9849int i; 9850int 9851main () 9852{ 9853 9854 ; 9855 return 0; 9856} 9857_ACEOF 9858if ac_fn_c_try_link "$LINENO"; then : 9859 eval $cacheid=yes 9860else 9861 eval $cacheid=no 9862fi 9863rm -f core conftest.err conftest.$ac_objext \ 9864 conftest$ac_exeext conftest.$ac_ext 9865fi 9866 9867 9868 CFLAGS="$xorg_testset_save_CFLAGS" 9869 9870 eval supported=\$$cacheid 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9872$as_echo "$supported" >&6; } 9873 if test "$supported" = "yes" ; then 9874 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9875 found="yes" 9876 fi 9877 fi 9878 9879 9880fi 9881 9882 9883 9884 9885 9886 9887 9888 CWARNFLAGS="$BASE_CFLAGS" 9889 if test "x$GCC" = xyes ; then 9890 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9891 fi 9892 9893 9894 9895 9896 9897 9898 9899 9900# Check whether --enable-strict-compilation was given. 9901if test "${enable_strict_compilation+set}" = set; then : 9902 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9903else 9904 STRICT_COMPILE=no 9905fi 9906 9907 9908 9909 9910 9911 9912STRICT_CFLAGS="" 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926xorg_testset_save_CFLAGS="$CFLAGS" 9927 9928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9936/* end confdefs.h. */ 9937int i; 9938_ACEOF 9939if ac_fn_c_try_compile "$LINENO"; then : 9940 xorg_cv_cc_flag_unknown_warning_option=yes 9941else 9942 xorg_cv_cc_flag_unknown_warning_option=no 9943fi 9944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9945fi 9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9949 CFLAGS="$xorg_testset_save_CFLAGS" 9950fi 9951 9952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 fi 9956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9963/* end confdefs.h. */ 9964int i; 9965_ACEOF 9966if ac_fn_c_try_compile "$LINENO"; then : 9967 xorg_cv_cc_flag_unused_command_line_argument=yes 9968else 9969 xorg_cv_cc_flag_unused_command_line_argument=no 9970fi 9971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9972fi 9973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977fi 9978 9979found="no" 9980 9981 if test $found = "no" ; then 9982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9984 fi 9985 9986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9988 fi 9989 9990 CFLAGS="$CFLAGS -pedantic" 9991 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9993$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9994 cacheid=xorg_cv_cc_flag__pedantic 9995 if eval \${$cacheid+:} false; then : 9996 $as_echo_n "(cached) " >&6 9997else 9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000int i; 10001int 10002main () 10003{ 10004 10005 ; 10006 return 0; 10007} 10008_ACEOF 10009if ac_fn_c_try_link "$LINENO"; then : 10010 eval $cacheid=yes 10011else 10012 eval $cacheid=no 10013fi 10014rm -f core conftest.err conftest.$ac_objext \ 10015 conftest$ac_exeext conftest.$ac_ext 10016fi 10017 10018 10019 CFLAGS="$xorg_testset_save_CFLAGS" 10020 10021 eval supported=\$$cacheid 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10023$as_echo "$supported" >&6; } 10024 if test "$supported" = "yes" ; then 10025 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10026 found="yes" 10027 fi 10028 fi 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044xorg_testset_save_CFLAGS="$CFLAGS" 10045 10046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10051 $as_echo_n "(cached) " >&6 10052else 10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054/* end confdefs.h. */ 10055int i; 10056_ACEOF 10057if ac_fn_c_try_compile "$LINENO"; then : 10058 xorg_cv_cc_flag_unknown_warning_option=yes 10059else 10060 xorg_cv_cc_flag_unknown_warning_option=no 10061fi 10062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10063fi 10064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10067 CFLAGS="$xorg_testset_save_CFLAGS" 10068fi 10069 10070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10073 fi 10074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10078 $as_echo_n "(cached) " >&6 10079else 10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10081/* end confdefs.h. */ 10082int i; 10083_ACEOF 10084if ac_fn_c_try_compile "$LINENO"; then : 10085 xorg_cv_cc_flag_unused_command_line_argument=yes 10086else 10087 xorg_cv_cc_flag_unused_command_line_argument=no 10088fi 10089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10090fi 10091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10094 CFLAGS="$xorg_testset_save_CFLAGS" 10095fi 10096 10097found="no" 10098 10099 if test $found = "no" ; then 10100 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10102 fi 10103 10104 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10106 fi 10107 10108 CFLAGS="$CFLAGS -Werror" 10109 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10111$as_echo_n "checking if $CC supports -Werror... " >&6; } 10112 cacheid=xorg_cv_cc_flag__Werror 10113 if eval \${$cacheid+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115else 10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10117/* end confdefs.h. */ 10118int i; 10119int 10120main () 10121{ 10122 10123 ; 10124 return 0; 10125} 10126_ACEOF 10127if ac_fn_c_try_link "$LINENO"; then : 10128 eval $cacheid=yes 10129else 10130 eval $cacheid=no 10131fi 10132rm -f core conftest.err conftest.$ac_objext \ 10133 conftest$ac_exeext conftest.$ac_ext 10134fi 10135 10136 10137 CFLAGS="$xorg_testset_save_CFLAGS" 10138 10139 eval supported=\$$cacheid 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10141$as_echo "$supported" >&6; } 10142 if test "$supported" = "yes" ; then 10143 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10144 found="yes" 10145 fi 10146 fi 10147 10148 if test $found = "no" ; then 10149 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10151 fi 10152 10153 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10155 fi 10156 10157 CFLAGS="$CFLAGS -errwarn" 10158 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10160$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10161 cacheid=xorg_cv_cc_flag__errwarn 10162 if eval \${$cacheid+:} false; then : 10163 $as_echo_n "(cached) " >&6 10164else 10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10166/* end confdefs.h. */ 10167int i; 10168int 10169main () 10170{ 10171 10172 ; 10173 return 0; 10174} 10175_ACEOF 10176if ac_fn_c_try_link "$LINENO"; then : 10177 eval $cacheid=yes 10178else 10179 eval $cacheid=no 10180fi 10181rm -f core conftest.err conftest.$ac_objext \ 10182 conftest$ac_exeext conftest.$ac_ext 10183fi 10184 10185 10186 CFLAGS="$xorg_testset_save_CFLAGS" 10187 10188 eval supported=\$$cacheid 10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10190$as_echo "$supported" >&6; } 10191 if test "$supported" = "yes" ; then 10192 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10193 found="yes" 10194 fi 10195 fi 10196 10197 10198 10199# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10200# activate it with -Werror, so we add it here explicitly. 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214xorg_testset_save_CFLAGS="$CFLAGS" 10215 10216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10221 $as_echo_n "(cached) " >&6 10222else 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225int i; 10226_ACEOF 10227if ac_fn_c_try_compile "$LINENO"; then : 10228 xorg_cv_cc_flag_unknown_warning_option=yes 10229else 10230 xorg_cv_cc_flag_unknown_warning_option=no 10231fi 10232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10233fi 10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10237 CFLAGS="$xorg_testset_save_CFLAGS" 10238fi 10239 10240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10243 fi 10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10248 $as_echo_n "(cached) " >&6 10249else 10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10251/* end confdefs.h. */ 10252int i; 10253_ACEOF 10254if ac_fn_c_try_compile "$LINENO"; then : 10255 xorg_cv_cc_flag_unused_command_line_argument=yes 10256else 10257 xorg_cv_cc_flag_unused_command_line_argument=no 10258fi 10259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10260fi 10261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10264 CFLAGS="$xorg_testset_save_CFLAGS" 10265fi 10266 10267found="no" 10268 10269 if test $found = "no" ; then 10270 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10272 fi 10273 10274 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10276 fi 10277 10278 CFLAGS="$CFLAGS -Werror=attributes" 10279 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10281$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10282 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10283 if eval \${$cacheid+:} false; then : 10284 $as_echo_n "(cached) " >&6 10285else 10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288int i; 10289int 10290main () 10291{ 10292 10293 ; 10294 return 0; 10295} 10296_ACEOF 10297if ac_fn_c_try_link "$LINENO"; then : 10298 eval $cacheid=yes 10299else 10300 eval $cacheid=no 10301fi 10302rm -f core conftest.err conftest.$ac_objext \ 10303 conftest$ac_exeext conftest.$ac_ext 10304fi 10305 10306 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308 10309 eval supported=\$$cacheid 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10311$as_echo "$supported" >&6; } 10312 if test "$supported" = "yes" ; then 10313 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10314 found="yes" 10315 fi 10316 fi 10317 10318 10319 10320if test "x$STRICT_COMPILE" = "xyes"; then 10321 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10322 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10323fi 10324 10325 10326 10327 10328 10329 10330cat >>confdefs.h <<_ACEOF 10331#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10332_ACEOF 10333 10334 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10335 if test "x$PVM" = "x"; then 10336 PVM="0" 10337 fi 10338 10339cat >>confdefs.h <<_ACEOF 10340#define PACKAGE_VERSION_MINOR $PVM 10341_ACEOF 10342 10343 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10344 if test "x$PVP" = "x"; then 10345 PVP="0" 10346 fi 10347 10348cat >>confdefs.h <<_ACEOF 10349#define PACKAGE_VERSION_PATCHLEVEL $PVP 10350_ACEOF 10351 10352 10353 10354CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10355mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10356|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10357echo 'git directory not found: installing possibly empty changelog.' >&2)" 10358 10359 10360 10361 10362macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10363INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10364mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10365|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10366echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10367 10368 10369 10370 10371 10372 10373if test x$APP_MAN_SUFFIX = x ; then 10374 APP_MAN_SUFFIX=1 10375fi 10376if test x$APP_MAN_DIR = x ; then 10377 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10378fi 10379 10380if test x$LIB_MAN_SUFFIX = x ; then 10381 LIB_MAN_SUFFIX=3 10382fi 10383if test x$LIB_MAN_DIR = x ; then 10384 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10385fi 10386 10387if test x$FILE_MAN_SUFFIX = x ; then 10388 case $host_os in 10389 solaris*) FILE_MAN_SUFFIX=4 ;; 10390 *) FILE_MAN_SUFFIX=5 ;; 10391 esac 10392fi 10393if test x$FILE_MAN_DIR = x ; then 10394 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10395fi 10396 10397if test x$MISC_MAN_SUFFIX = x ; then 10398 case $host_os in 10399 solaris*) MISC_MAN_SUFFIX=5 ;; 10400 *) MISC_MAN_SUFFIX=7 ;; 10401 esac 10402fi 10403if test x$MISC_MAN_DIR = x ; then 10404 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10405fi 10406 10407if test x$DRIVER_MAN_SUFFIX = x ; then 10408 case $host_os in 10409 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10410 *) DRIVER_MAN_SUFFIX=4 ;; 10411 esac 10412fi 10413if test x$DRIVER_MAN_DIR = x ; then 10414 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10415fi 10416 10417if test x$ADMIN_MAN_SUFFIX = x ; then 10418 case $host_os in 10419 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10420 *) ADMIN_MAN_SUFFIX=8 ;; 10421 esac 10422fi 10423if test x$ADMIN_MAN_DIR = x ; then 10424 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10425fi 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441XORG_MAN_PAGE="X Version 11" 10442 10443MAN_SUBSTS="\ 10444 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10445 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10446 -e 's|__xservername__|Xorg|g' \ 10447 -e 's|__xconfigfile__|xorg.conf|g' \ 10448 -e 's|__projectroot__|\$(prefix)|g' \ 10449 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10450 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10451 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10452 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10453 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10454 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10455 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10456 10457 10458 10459# Check whether --enable-silent-rules was given. 10460if test "${enable_silent_rules+set}" = set; then : 10461 enableval=$enable_silent_rules; 10462fi 10463 10464case $enable_silent_rules in 10465yes) AM_DEFAULT_VERBOSITY=0;; 10466no) AM_DEFAULT_VERBOSITY=1;; 10467*) AM_DEFAULT_VERBOSITY=0;; 10468esac 10469AM_BACKSLASH='\' 10470 10471 10472 10473 10474pkg_failed=no 10475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RGB" >&5 10476$as_echo_n "checking for RGB... " >&6; } 10477 10478if test -n "$RGB_CFLAGS"; then 10479 pkg_cv_RGB_CFLAGS="$RGB_CFLAGS" 10480 elif test -n "$PKG_CONFIG"; then 10481 if test -n "$PKG_CONFIG" && \ 10482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 10483 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 10484 ac_status=$? 10485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10486 test $ac_status = 0; }; then 10487 pkg_cv_RGB_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 10488else 10489 pkg_failed=yes 10490fi 10491 else 10492 pkg_failed=untried 10493fi 10494if test -n "$RGB_LIBS"; then 10495 pkg_cv_RGB_LIBS="$RGB_LIBS" 10496 elif test -n "$PKG_CONFIG"; then 10497 if test -n "$PKG_CONFIG" && \ 10498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 10499 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 10500 ac_status=$? 10501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10502 test $ac_status = 0; }; then 10503 pkg_cv_RGB_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 10504else 10505 pkg_failed=yes 10506fi 10507 else 10508 pkg_failed=untried 10509fi 10510 10511 10512 10513if test $pkg_failed = yes; then 10514 10515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10516 _pkg_short_errors_supported=yes 10517else 10518 _pkg_short_errors_supported=no 10519fi 10520 if test $_pkg_short_errors_supported = yes; then 10521 RGB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 10522 else 10523 RGB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 10524 fi 10525 # Put the nasty error message in config.log where it belongs 10526 echo "$RGB_PKG_ERRORS" >&5 10527 10528 as_fn_error $? "Package requirements (xproto) were not met: 10529 10530$RGB_PKG_ERRORS 10531 10532Consider adjusting the PKG_CONFIG_PATH environment variable if you 10533installed software in a non-standard prefix. 10534 10535Alternatively, you may set the environment variables RGB_CFLAGS 10536and RGB_LIBS to avoid the need to call pkg-config. 10537See the pkg-config man page for more details. 10538" "$LINENO" 5 10539elif test $pkg_failed = untried; then 10540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10542as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10543is in your PATH or set the PKG_CONFIG environment variable to the full 10544path to pkg-config. 10545 10546Alternatively, you may set the environment variables RGB_CFLAGS 10547and RGB_LIBS to avoid the need to call pkg-config. 10548See the pkg-config man page for more details. 10549 10550To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10551See \`config.log' for more details" "$LINENO" 5; } 10552else 10553 RGB_CFLAGS=$pkg_cv_RGB_CFLAGS 10554 RGB_LIBS=$pkg_cv_RGB_LIBS 10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10556$as_echo "yes" >&6; } 10557 : 10558fi 10559 10560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database location" >&5 10561$as_echo_n "checking for rgb database location... " >&6; } 10562 10563# Check whether --with-rgb-db-dir was given. 10564if test "${with_rgb_db_dir+set}" = set; then : 10565 withval=$with_rgb_db_dir; db_path=$withval 10566else 10567 db_path=${datadir}/X11/rgb 10568fi 10569 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_path" >&5 10571$as_echo "$db_path" >&6; } 10572db_file=`basename $db_path` 10573db_dir=`dirname $db_path` 10574 10575 10576 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database format" >&5 10578$as_echo_n "checking for rgb database format... " >&6; } 10579 10580# Check whether --with-rgb-db-type was given. 10581if test "${with_rgb_db_type+set}" = set; then : 10582 withval=$with_rgb_db_type; db_type=$withval 10583else 10584 db_type="text" 10585fi 10586 10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_type" >&5 10588$as_echo "$db_type" >&6; } 10589 10590RGB_DB_TYPE=$db_type 10591 10592case $db_type in 10593 text) 10594 RGB_DB_FILES="" 10595 10596$as_echo "#define USE_RGB_TXT 1" >>confdefs.h 10597 10598 ;; 10599 dbm) 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbminit" >&5 10601$as_echo_n "checking for library containing dbminit... " >&6; } 10602if ${ac_cv_search_dbminit+:} false; then : 10603 $as_echo_n "(cached) " >&6 10604else 10605 ac_func_search_save_LIBS=$LIBS 10606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10607/* end confdefs.h. */ 10608 10609/* Override any GCC internal prototype to avoid an error. 10610 Use char because int might match the return type of a GCC 10611 builtin and then its argument prototype would still apply. */ 10612#ifdef __cplusplus 10613extern "C" 10614#endif 10615char dbminit (); 10616int 10617main () 10618{ 10619return dbminit (); 10620 ; 10621 return 0; 10622} 10623_ACEOF 10624for ac_lib in '' db dbm nsl; do 10625 if test -z "$ac_lib"; then 10626 ac_res="none required" 10627 else 10628 ac_res=-l$ac_lib 10629 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10630 fi 10631 if ac_fn_c_try_link "$LINENO"; then : 10632 ac_cv_search_dbminit=$ac_res 10633fi 10634rm -f core conftest.err conftest.$ac_objext \ 10635 conftest$ac_exeext 10636 if ${ac_cv_search_dbminit+:} false; then : 10637 break 10638fi 10639done 10640if ${ac_cv_search_dbminit+:} false; then : 10641 10642else 10643 ac_cv_search_dbminit=no 10644fi 10645rm conftest.$ac_ext 10646LIBS=$ac_func_search_save_LIBS 10647fi 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbminit" >&5 10649$as_echo "$ac_cv_search_dbminit" >&6; } 10650ac_res=$ac_cv_search_dbminit 10651if test "$ac_res" != no; then : 10652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10653 10654else 10655 as_fn_error $? "dbm requested but dbminit() not found in any libraries" "$LINENO" 5 10656fi 10657 10658 ac_fn_c_check_header_mongrel "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default" 10659if test "x$ac_cv_header_dbm_h" = xyes; then : 10660 DBM_HEADER='<dbm.h>' 10661else 10662 ac_fn_c_check_header_mongrel "$LINENO" "rpcsvc/dbm.h" "ac_cv_header_rpcsvc_dbm_h" "$ac_includes_default" 10663if test "x$ac_cv_header_rpcsvc_dbm_h" = xyes; then : 10664 DBM_HEADER='<rpcsvc/dbm.h>' 10665else 10666 as_fn_error $? "dbm requested but dbm.h not found" "$LINENO" 5 10667fi 10668 10669 10670fi 10671 10672 10673 10674pkg_failed=no 10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 10676$as_echo_n "checking for XORG... " >&6; } 10677 10678if test -n "$XORG_CFLAGS"; then 10679 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 10680 elif test -n "$PKG_CONFIG"; then 10681 if test -n "$PKG_CONFIG" && \ 10682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 10683 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 10684 ac_status=$? 10685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10686 test $ac_status = 0; }; then 10687 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null` 10688else 10689 pkg_failed=yes 10690fi 10691 else 10692 pkg_failed=untried 10693fi 10694if test -n "$XORG_LIBS"; then 10695 pkg_cv_XORG_LIBS="$XORG_LIBS" 10696 elif test -n "$PKG_CONFIG"; then 10697 if test -n "$PKG_CONFIG" && \ 10698 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 10699 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 10700 ac_status=$? 10701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10702 test $ac_status = 0; }; then 10703 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null` 10704else 10705 pkg_failed=yes 10706fi 10707 else 10708 pkg_failed=untried 10709fi 10710 10711 10712 10713if test $pkg_failed = yes; then 10714 10715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10716 _pkg_short_errors_supported=yes 10717else 10718 _pkg_short_errors_supported=no 10719fi 10720 if test $_pkg_short_errors_supported = yes; then 10721 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1` 10722 else 10723 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1` 10724 fi 10725 # Put the nasty error message in config.log where it belongs 10726 echo "$XORG_PKG_ERRORS" >&5 10727 10728 as_fn_error $? "Package requirements (xorg-server) were not met: 10729 10730$XORG_PKG_ERRORS 10731 10732Consider adjusting the PKG_CONFIG_PATH environment variable if you 10733installed software in a non-standard prefix. 10734 10735Alternatively, you may set the environment variables XORG_CFLAGS 10736and XORG_LIBS to avoid the need to call pkg-config. 10737See the pkg-config man page for more details. 10738" "$LINENO" 5 10739elif test $pkg_failed = untried; then 10740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10742as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10743is in your PATH or set the PKG_CONFIG environment variable to the full 10744path to pkg-config. 10745 10746Alternatively, you may set the environment variables XORG_CFLAGS 10747and XORG_LIBS to avoid the need to call pkg-config. 10748See the pkg-config man page for more details. 10749 10750To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10751See \`config.log' for more details" "$LINENO" 5; } 10752else 10753 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 10754 XORG_LIBS=$pkg_cv_XORG_LIBS 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10756$as_echo "yes" >&6; } 10757 : 10758fi 10759 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS" 10760 RGB_DB_FILES='$(db_file).dir $(db_file).pag' 10761 ;; 10762 ndbm) 10763 # Find a dbm or ndbm implementation 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5 10765$as_echo_n "checking for library containing dbm_open... " >&6; } 10766if ${ac_cv_search_dbm_open+:} false; then : 10767 $as_echo_n "(cached) " >&6 10768else 10769 ac_func_search_save_LIBS=$LIBS 10770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10771/* end confdefs.h. */ 10772 10773/* Override any GCC internal prototype to avoid an error. 10774 Use char because int might match the return type of a GCC 10775 builtin and then its argument prototype would still apply. */ 10776#ifdef __cplusplus 10777extern "C" 10778#endif 10779char dbm_open (); 10780int 10781main () 10782{ 10783return dbm_open (); 10784 ; 10785 return 0; 10786} 10787_ACEOF 10788for ac_lib in '' db ndbm dbm; do 10789 if test -z "$ac_lib"; then 10790 ac_res="none required" 10791 else 10792 ac_res=-l$ac_lib 10793 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10794 fi 10795 if ac_fn_c_try_link "$LINENO"; then : 10796 ac_cv_search_dbm_open=$ac_res 10797fi 10798rm -f core conftest.err conftest.$ac_objext \ 10799 conftest$ac_exeext 10800 if ${ac_cv_search_dbm_open+:} false; then : 10801 break 10802fi 10803done 10804if ${ac_cv_search_dbm_open+:} false; then : 10805 10806else 10807 ac_cv_search_dbm_open=no 10808fi 10809rm conftest.$ac_ext 10810LIBS=$ac_func_search_save_LIBS 10811fi 10812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5 10813$as_echo "$ac_cv_search_dbm_open" >&6; } 10814ac_res=$ac_cv_search_dbm_open 10815if test "$ac_res" != no; then : 10816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10817 10818$as_echo "#define NDBM 1" >>confdefs.h 10819 10820else 10821 as_fn_error $? "ndbm requested but dbm_open() not found in any libraries" "$LINENO" 5 10822fi 10823 10824 DBM_HEADER='<ndbm.h>' 10825 10826pkg_failed=no 10827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 10828$as_echo_n "checking for XORG... " >&6; } 10829 10830if test -n "$XORG_CFLAGS"; then 10831 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 10832 elif test -n "$PKG_CONFIG"; then 10833 if test -n "$PKG_CONFIG" && \ 10834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 10835 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 10836 ac_status=$? 10837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10838 test $ac_status = 0; }; then 10839 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null` 10840else 10841 pkg_failed=yes 10842fi 10843 else 10844 pkg_failed=untried 10845fi 10846if test -n "$XORG_LIBS"; then 10847 pkg_cv_XORG_LIBS="$XORG_LIBS" 10848 elif test -n "$PKG_CONFIG"; then 10849 if test -n "$PKG_CONFIG" && \ 10850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5 10851 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5 10852 ac_status=$? 10853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10854 test $ac_status = 0; }; then 10855 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null` 10856else 10857 pkg_failed=yes 10858fi 10859 else 10860 pkg_failed=untried 10861fi 10862 10863 10864 10865if test $pkg_failed = yes; then 10866 10867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10868 _pkg_short_errors_supported=yes 10869else 10870 _pkg_short_errors_supported=no 10871fi 10872 if test $_pkg_short_errors_supported = yes; then 10873 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1` 10874 else 10875 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1` 10876 fi 10877 # Put the nasty error message in config.log where it belongs 10878 echo "$XORG_PKG_ERRORS" >&5 10879 10880 as_fn_error $? "Package requirements (xorg-server) were not met: 10881 10882$XORG_PKG_ERRORS 10883 10884Consider adjusting the PKG_CONFIG_PATH environment variable if you 10885installed software in a non-standard prefix. 10886 10887Alternatively, you may set the environment variables XORG_CFLAGS 10888and XORG_LIBS to avoid the need to call pkg-config. 10889See the pkg-config man page for more details. 10890" "$LINENO" 5 10891elif test $pkg_failed = untried; then 10892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10894as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10895is in your PATH or set the PKG_CONFIG environment variable to the full 10896path to pkg-config. 10897 10898Alternatively, you may set the environment variables XORG_CFLAGS 10899and XORG_LIBS to avoid the need to call pkg-config. 10900See the pkg-config man page for more details. 10901 10902To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10903See \`config.log' for more details" "$LINENO" 5; } 10904else 10905 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 10906 XORG_LIBS=$pkg_cv_XORG_LIBS 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10908$as_echo "yes" >&6; } 10909 : 10910fi 10911 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS" 10912 RGB_DB_FILES='$(db_file).dir $(db_file).pag' 10913 ;; 10914esac 10915if test x$DBM_HEADER != x ; then 10916 10917cat >>confdefs.h <<_ACEOF 10918#define DBM_HEADER $DBM_HEADER 10919_ACEOF 10920 10921fi 10922 10923 10924 if test x$db_type != xtext; then 10925 RGB_DB_TRUE= 10926 RGB_DB_FALSE='#' 10927else 10928 RGB_DB_TRUE='#' 10929 RGB_DB_FALSE= 10930fi 10931 10932 10933ac_config_files="$ac_config_files Makefile man/Makefile" 10934 10935 10936cat >confcache <<\_ACEOF 10937# This file is a shell script that caches the results of configure 10938# tests run on this system so they can be shared between configure 10939# scripts and configure runs, see configure's option --config-cache. 10940# It is not useful on other systems. If it contains results you don't 10941# want to keep, you may remove or edit it. 10942# 10943# config.status only pays attention to the cache file if you give it 10944# the --recheck option to rerun configure. 10945# 10946# `ac_cv_env_foo' variables (set or unset) will be overridden when 10947# loading this file, other *unset* `ac_cv_foo' will be assigned the 10948# following values. 10949 10950_ACEOF 10951 10952# The following way of writing the cache mishandles newlines in values, 10953# but we know of no workaround that is simple, portable, and efficient. 10954# So, we kill variables containing newlines. 10955# Ultrix sh set writes to stderr and can't be redirected directly, 10956# and sets the high bit in the cache file unless we assign to the vars. 10957( 10958 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10959 eval ac_val=\$$ac_var 10960 case $ac_val in #( 10961 *${as_nl}*) 10962 case $ac_var in #( 10963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10964$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10965 esac 10966 case $ac_var in #( 10967 _ | IFS | as_nl) ;; #( 10968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10969 *) { eval $ac_var=; unset $ac_var;} ;; 10970 esac ;; 10971 esac 10972 done 10973 10974 (set) 2>&1 | 10975 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10976 *${as_nl}ac_space=\ *) 10977 # `set' does not quote correctly, so add quotes: double-quote 10978 # substitution turns \\\\ into \\, and sed turns \\ into \. 10979 sed -n \ 10980 "s/'/'\\\\''/g; 10981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10982 ;; #( 10983 *) 10984 # `set' quotes correctly as required by POSIX, so do not add quotes. 10985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10986 ;; 10987 esac | 10988 sort 10989) | 10990 sed ' 10991 /^ac_cv_env_/b end 10992 t clear 10993 :clear 10994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10995 t end 10996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10997 :end' >>confcache 10998if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10999 if test -w "$cache_file"; then 11000 if test "x$cache_file" != "x/dev/null"; then 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11002$as_echo "$as_me: updating cache $cache_file" >&6;} 11003 if test ! -f "$cache_file" || test -h "$cache_file"; then 11004 cat confcache >"$cache_file" 11005 else 11006 case $cache_file in #( 11007 */* | ?:*) 11008 mv -f confcache "$cache_file"$$ && 11009 mv -f "$cache_file"$$ "$cache_file" ;; #( 11010 *) 11011 mv -f confcache "$cache_file" ;; 11012 esac 11013 fi 11014 fi 11015 else 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11017$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11018 fi 11019fi 11020rm -f confcache 11021 11022test "x$prefix" = xNONE && prefix=$ac_default_prefix 11023# Let make expand exec_prefix. 11024test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11025 11026DEFS=-DHAVE_CONFIG_H 11027 11028ac_libobjs= 11029ac_ltlibobjs= 11030U= 11031for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11032 # 1. Remove the extension, and $U if already installed. 11033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11034 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11036 # will be set to the directory where LIBOBJS objects are built. 11037 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11038 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11039done 11040LIBOBJS=$ac_libobjs 11041 11042LTLIBOBJS=$ac_ltlibobjs 11043 11044 11045 if test -n "$EXEEXT"; then 11046 am__EXEEXT_TRUE= 11047 am__EXEEXT_FALSE='#' 11048else 11049 am__EXEEXT_TRUE='#' 11050 am__EXEEXT_FALSE= 11051fi 11052 11053if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11054 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11055Usually this means the macro was only invoked conditionally." "$LINENO" 5 11056fi 11057if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11058 as_fn_error $? "conditional \"AMDEP\" was never defined. 11059Usually this means the macro was only invoked conditionally." "$LINENO" 5 11060fi 11061if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11062 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11063Usually this means the macro was only invoked conditionally." "$LINENO" 5 11064fi 11065if test -z "${RGB_DB_TRUE}" && test -z "${RGB_DB_FALSE}"; then 11066 as_fn_error $? "conditional \"RGB_DB\" was never defined. 11067Usually this means the macro was only invoked conditionally." "$LINENO" 5 11068fi 11069 11070: "${CONFIG_STATUS=./config.status}" 11071ac_write_fail=0 11072ac_clean_files_save=$ac_clean_files 11073ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11074{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11075$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11076as_write_fail=0 11077cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11078#! $SHELL 11079# Generated by $as_me. 11080# Run this file to recreate the current configuration. 11081# Compiler output produced by configure, useful for debugging 11082# configure, is in config.log if it exists. 11083 11084debug=false 11085ac_cs_recheck=false 11086ac_cs_silent=false 11087 11088SHELL=\${CONFIG_SHELL-$SHELL} 11089export SHELL 11090_ASEOF 11091cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11092## -------------------- ## 11093## M4sh Initialization. ## 11094## -------------------- ## 11095 11096# Be more Bourne compatible 11097DUALCASE=1; export DUALCASE # for MKS sh 11098if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11099 emulate sh 11100 NULLCMD=: 11101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11102 # is contrary to our usage. Disable this feature. 11103 alias -g '${1+"$@"}'='"$@"' 11104 setopt NO_GLOB_SUBST 11105else 11106 case `(set -o) 2>/dev/null` in #( 11107 *posix*) : 11108 set -o posix ;; #( 11109 *) : 11110 ;; 11111esac 11112fi 11113 11114 11115as_nl=' 11116' 11117export as_nl 11118# Printing a long string crashes Solaris 7 /usr/bin/printf. 11119as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11120as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11121as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11122# Prefer a ksh shell builtin over an external printf program on Solaris, 11123# but without wasting forks for bash or zsh. 11124if test -z "$BASH_VERSION$ZSH_VERSION" \ 11125 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11126 as_echo='print -r --' 11127 as_echo_n='print -rn --' 11128elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11129 as_echo='printf %s\n' 11130 as_echo_n='printf %s' 11131else 11132 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11133 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11134 as_echo_n='/usr/ucb/echo -n' 11135 else 11136 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11137 as_echo_n_body='eval 11138 arg=$1; 11139 case $arg in #( 11140 *"$as_nl"*) 11141 expr "X$arg" : "X\\(.*\\)$as_nl"; 11142 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11143 esac; 11144 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11145 ' 11146 export as_echo_n_body 11147 as_echo_n='sh -c $as_echo_n_body as_echo' 11148 fi 11149 export as_echo_body 11150 as_echo='sh -c $as_echo_body as_echo' 11151fi 11152 11153# The user is always right. 11154if test "${PATH_SEPARATOR+set}" != set; then 11155 PATH_SEPARATOR=: 11156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11158 PATH_SEPARATOR=';' 11159 } 11160fi 11161 11162 11163# IFS 11164# We need space, tab and new line, in precisely that order. Quoting is 11165# there to prevent editors from complaining about space-tab. 11166# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11167# splitting by setting IFS to empty value.) 11168IFS=" "" $as_nl" 11169 11170# Find who we are. Look in the path if we contain no directory separator. 11171as_myself= 11172case $0 in #(( 11173 *[\\/]* ) as_myself=$0 ;; 11174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11175for as_dir in $PATH 11176do 11177 IFS=$as_save_IFS 11178 test -z "$as_dir" && as_dir=. 11179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11180 done 11181IFS=$as_save_IFS 11182 11183 ;; 11184esac 11185# We did not find ourselves, most probably we were run as `sh COMMAND' 11186# in which case we are not to be found in the path. 11187if test "x$as_myself" = x; then 11188 as_myself=$0 11189fi 11190if test ! -f "$as_myself"; then 11191 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11192 exit 1 11193fi 11194 11195# Unset variables that we do not need and which cause bugs (e.g. in 11196# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11197# suppresses any "Segmentation fault" message there. '((' could 11198# trigger a bug in pdksh 5.2.14. 11199for as_var in BASH_ENV ENV MAIL MAILPATH 11200do eval test x\${$as_var+set} = xset \ 11201 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11202done 11203PS1='$ ' 11204PS2='> ' 11205PS4='+ ' 11206 11207# NLS nuisances. 11208LC_ALL=C 11209export LC_ALL 11210LANGUAGE=C 11211export LANGUAGE 11212 11213# CDPATH. 11214(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11215 11216 11217# as_fn_error STATUS ERROR [LINENO LOG_FD] 11218# ---------------------------------------- 11219# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11220# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11221# script with STATUS, using 1 if that was 0. 11222as_fn_error () 11223{ 11224 as_status=$1; test $as_status -eq 0 && as_status=1 11225 if test "$4"; then 11226 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11227 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11228 fi 11229 $as_echo "$as_me: error: $2" >&2 11230 as_fn_exit $as_status 11231} # as_fn_error 11232 11233 11234# as_fn_set_status STATUS 11235# ----------------------- 11236# Set $? to STATUS, without forking. 11237as_fn_set_status () 11238{ 11239 return $1 11240} # as_fn_set_status 11241 11242# as_fn_exit STATUS 11243# ----------------- 11244# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11245as_fn_exit () 11246{ 11247 set +e 11248 as_fn_set_status $1 11249 exit $1 11250} # as_fn_exit 11251 11252# as_fn_unset VAR 11253# --------------- 11254# Portably unset VAR. 11255as_fn_unset () 11256{ 11257 { eval $1=; unset $1;} 11258} 11259as_unset=as_fn_unset 11260# as_fn_append VAR VALUE 11261# ---------------------- 11262# Append the text in VALUE to the end of the definition contained in VAR. Take 11263# advantage of any shell optimizations that allow amortized linear growth over 11264# repeated appends, instead of the typical quadratic growth present in naive 11265# implementations. 11266if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11267 eval 'as_fn_append () 11268 { 11269 eval $1+=\$2 11270 }' 11271else 11272 as_fn_append () 11273 { 11274 eval $1=\$$1\$2 11275 } 11276fi # as_fn_append 11277 11278# as_fn_arith ARG... 11279# ------------------ 11280# Perform arithmetic evaluation on the ARGs, and store the result in the 11281# global $as_val. Take advantage of shells that can avoid forks. The arguments 11282# must be portable across $(()) and expr. 11283if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11284 eval 'as_fn_arith () 11285 { 11286 as_val=$(( $* )) 11287 }' 11288else 11289 as_fn_arith () 11290 { 11291 as_val=`expr "$@" || test $? -eq 1` 11292 } 11293fi # as_fn_arith 11294 11295 11296if expr a : '\(a\)' >/dev/null 2>&1 && 11297 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11298 as_expr=expr 11299else 11300 as_expr=false 11301fi 11302 11303if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11304 as_basename=basename 11305else 11306 as_basename=false 11307fi 11308 11309if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11310 as_dirname=dirname 11311else 11312 as_dirname=false 11313fi 11314 11315as_me=`$as_basename -- "$0" || 11316$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11317 X"$0" : 'X\(//\)$' \| \ 11318 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11319$as_echo X/"$0" | 11320 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11321 s//\1/ 11322 q 11323 } 11324 /^X\/\(\/\/\)$/{ 11325 s//\1/ 11326 q 11327 } 11328 /^X\/\(\/\).*/{ 11329 s//\1/ 11330 q 11331 } 11332 s/.*/./; q'` 11333 11334# Avoid depending upon Character Ranges. 11335as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11336as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11337as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11338as_cr_digits='0123456789' 11339as_cr_alnum=$as_cr_Letters$as_cr_digits 11340 11341ECHO_C= ECHO_N= ECHO_T= 11342case `echo -n x` in #((((( 11343-n*) 11344 case `echo 'xy\c'` in 11345 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11346 xy) ECHO_C='\c';; 11347 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11348 ECHO_T=' ';; 11349 esac;; 11350*) 11351 ECHO_N='-n';; 11352esac 11353 11354rm -f conf$$ conf$$.exe conf$$.file 11355if test -d conf$$.dir; then 11356 rm -f conf$$.dir/conf$$.file 11357else 11358 rm -f conf$$.dir 11359 mkdir conf$$.dir 2>/dev/null 11360fi 11361if (echo >conf$$.file) 2>/dev/null; then 11362 if ln -s conf$$.file conf$$ 2>/dev/null; then 11363 as_ln_s='ln -s' 11364 # ... but there are two gotchas: 11365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11367 # In both cases, we have to default to `cp -p'. 11368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11369 as_ln_s='cp -p' 11370 elif ln conf$$.file conf$$ 2>/dev/null; then 11371 as_ln_s=ln 11372 else 11373 as_ln_s='cp -p' 11374 fi 11375else 11376 as_ln_s='cp -p' 11377fi 11378rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11379rmdir conf$$.dir 2>/dev/null 11380 11381 11382# as_fn_mkdir_p 11383# ------------- 11384# Create "$as_dir" as a directory, including parents if necessary. 11385as_fn_mkdir_p () 11386{ 11387 11388 case $as_dir in #( 11389 -*) as_dir=./$as_dir;; 11390 esac 11391 test -d "$as_dir" || eval $as_mkdir_p || { 11392 as_dirs= 11393 while :; do 11394 case $as_dir in #( 11395 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11396 *) as_qdir=$as_dir;; 11397 esac 11398 as_dirs="'$as_qdir' $as_dirs" 11399 as_dir=`$as_dirname -- "$as_dir" || 11400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11401 X"$as_dir" : 'X\(//\)[^/]' \| \ 11402 X"$as_dir" : 'X\(//\)$' \| \ 11403 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11404$as_echo X"$as_dir" | 11405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11406 s//\1/ 11407 q 11408 } 11409 /^X\(\/\/\)[^/].*/{ 11410 s//\1/ 11411 q 11412 } 11413 /^X\(\/\/\)$/{ 11414 s//\1/ 11415 q 11416 } 11417 /^X\(\/\).*/{ 11418 s//\1/ 11419 q 11420 } 11421 s/.*/./; q'` 11422 test -d "$as_dir" && break 11423 done 11424 test -z "$as_dirs" || eval "mkdir $as_dirs" 11425 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11426 11427 11428} # as_fn_mkdir_p 11429if mkdir -p . 2>/dev/null; then 11430 as_mkdir_p='mkdir -p "$as_dir"' 11431else 11432 test -d ./-p && rmdir ./-p 11433 as_mkdir_p=false 11434fi 11435 11436if test -x / >/dev/null 2>&1; then 11437 as_test_x='test -x' 11438else 11439 if ls -dL / >/dev/null 2>&1; then 11440 as_ls_L_option=L 11441 else 11442 as_ls_L_option= 11443 fi 11444 as_test_x=' 11445 eval sh -c '\'' 11446 if test -d "$1"; then 11447 test -d "$1/."; 11448 else 11449 case $1 in #( 11450 -*)set "./$1";; 11451 esac; 11452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11453 ???[sx]*):;;*)false;;esac;fi 11454 '\'' sh 11455 ' 11456fi 11457as_executable_p=$as_test_x 11458 11459# Sed expression to map a string onto a valid CPP name. 11460as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11461 11462# Sed expression to map a string onto a valid variable name. 11463as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11464 11465 11466exec 6>&1 11467## ----------------------------------- ## 11468## Main body of $CONFIG_STATUS script. ## 11469## ----------------------------------- ## 11470_ASEOF 11471test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11472 11473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11474# Save the log message, to keep $0 and so on meaningful, and to 11475# report actual input values of CONFIG_FILES etc. instead of their 11476# values after options handling. 11477ac_log=" 11478This file was extended by rgb $as_me 1.0.5, which was 11479generated by GNU Autoconf 2.68. Invocation command line was 11480 11481 CONFIG_FILES = $CONFIG_FILES 11482 CONFIG_HEADERS = $CONFIG_HEADERS 11483 CONFIG_LINKS = $CONFIG_LINKS 11484 CONFIG_COMMANDS = $CONFIG_COMMANDS 11485 $ $0 $@ 11486 11487on `(hostname || uname -n) 2>/dev/null | sed 1q` 11488" 11489 11490_ACEOF 11491 11492case $ac_config_files in *" 11493"*) set x $ac_config_files; shift; ac_config_files=$*;; 11494esac 11495 11496case $ac_config_headers in *" 11497"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11498esac 11499 11500 11501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11502# Files that config.status was made for. 11503config_files="$ac_config_files" 11504config_headers="$ac_config_headers" 11505config_commands="$ac_config_commands" 11506 11507_ACEOF 11508 11509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11510ac_cs_usage="\ 11511\`$as_me' instantiates files and other configuration actions 11512from templates according to the current configuration. Unless the files 11513and actions are specified as TAGs, all are instantiated by default. 11514 11515Usage: $0 [OPTION]... [TAG]... 11516 11517 -h, --help print this help, then exit 11518 -V, --version print version number and configuration settings, then exit 11519 --config print configuration, then exit 11520 -q, --quiet, --silent 11521 do not print progress messages 11522 -d, --debug don't remove temporary files 11523 --recheck update $as_me by reconfiguring in the same conditions 11524 --file=FILE[:TEMPLATE] 11525 instantiate the configuration file FILE 11526 --header=FILE[:TEMPLATE] 11527 instantiate the configuration header FILE 11528 11529Configuration files: 11530$config_files 11531 11532Configuration headers: 11533$config_headers 11534 11535Configuration commands: 11536$config_commands 11537 11538Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11539 11540_ACEOF 11541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11542ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11543ac_cs_version="\\ 11544rgb config.status 1.0.5 11545configured by $0, generated by GNU Autoconf 2.68, 11546 with options \\"\$ac_cs_config\\" 11547 11548Copyright (C) 2010 Free Software Foundation, Inc. 11549This config.status script is free software; the Free Software Foundation 11550gives unlimited permission to copy, distribute and modify it." 11551 11552ac_pwd='$ac_pwd' 11553srcdir='$srcdir' 11554INSTALL='$INSTALL' 11555MKDIR_P='$MKDIR_P' 11556AWK='$AWK' 11557test -n "\$AWK" || AWK=awk 11558_ACEOF 11559 11560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11561# The default lists apply if the user does not specify any file. 11562ac_need_defaults=: 11563while test $# != 0 11564do 11565 case $1 in 11566 --*=?*) 11567 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11569 ac_shift=: 11570 ;; 11571 --*=) 11572 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11573 ac_optarg= 11574 ac_shift=: 11575 ;; 11576 *) 11577 ac_option=$1 11578 ac_optarg=$2 11579 ac_shift=shift 11580 ;; 11581 esac 11582 11583 case $ac_option in 11584 # Handling of the options. 11585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11586 ac_cs_recheck=: ;; 11587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11588 $as_echo "$ac_cs_version"; exit ;; 11589 --config | --confi | --conf | --con | --co | --c ) 11590 $as_echo "$ac_cs_config"; exit ;; 11591 --debug | --debu | --deb | --de | --d | -d ) 11592 debug=: ;; 11593 --file | --fil | --fi | --f ) 11594 $ac_shift 11595 case $ac_optarg in 11596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11597 '') as_fn_error $? "missing file argument" ;; 11598 esac 11599 as_fn_append CONFIG_FILES " '$ac_optarg'" 11600 ac_need_defaults=false;; 11601 --header | --heade | --head | --hea ) 11602 $ac_shift 11603 case $ac_optarg in 11604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11605 esac 11606 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11607 ac_need_defaults=false;; 11608 --he | --h) 11609 # Conflict between --help and --header 11610 as_fn_error $? "ambiguous option: \`$1' 11611Try \`$0 --help' for more information.";; 11612 --help | --hel | -h ) 11613 $as_echo "$ac_cs_usage"; exit ;; 11614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11615 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11616 ac_cs_silent=: ;; 11617 11618 # This is an error. 11619 -*) as_fn_error $? "unrecognized option: \`$1' 11620Try \`$0 --help' for more information." ;; 11621 11622 *) as_fn_append ac_config_targets " $1" 11623 ac_need_defaults=false ;; 11624 11625 esac 11626 shift 11627done 11628 11629ac_configure_extra_args= 11630 11631if $ac_cs_silent; then 11632 exec 6>/dev/null 11633 ac_configure_extra_args="$ac_configure_extra_args --silent" 11634fi 11635 11636_ACEOF 11637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11638if \$ac_cs_recheck; then 11639 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11640 shift 11641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11642 CONFIG_SHELL='$SHELL' 11643 export CONFIG_SHELL 11644 exec "\$@" 11645fi 11646 11647_ACEOF 11648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11649exec 5>>config.log 11650{ 11651 echo 11652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11653## Running $as_me. ## 11654_ASBOX 11655 $as_echo "$ac_log" 11656} >&5 11657 11658_ACEOF 11659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11660# 11661# INIT-COMMANDS 11662# 11663AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11664 11665_ACEOF 11666 11667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11668 11669# Handling of arguments. 11670for ac_config_target in $ac_config_targets 11671do 11672 case $ac_config_target in 11673 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11674 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11676 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11677 11678 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11679 esac 11680done 11681 11682 11683# If the user did not use the arguments to specify the items to instantiate, 11684# then the envvar interface is used. Set only those that are not. 11685# We use the long form for the default assignment because of an extremely 11686# bizarre bug on SunOS 4.1.3. 11687if $ac_need_defaults; then 11688 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11689 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11690 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11691fi 11692 11693# Have a temporary directory for convenience. Make it in the build tree 11694# simply because there is no reason against having it here, and in addition, 11695# creating and moving files from /tmp can sometimes cause problems. 11696# Hook for its removal unless debugging. 11697# Note that there is a small window in which the directory will not be cleaned: 11698# after its creation but before its name has been assigned to `$tmp'. 11699$debug || 11700{ 11701 tmp= ac_tmp= 11702 trap 'exit_status=$? 11703 : "${ac_tmp:=$tmp}" 11704 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11705' 0 11706 trap 'as_fn_exit 1' 1 2 13 15 11707} 11708# Create a (secure) tmp directory for tmp files. 11709 11710{ 11711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11712 test -d "$tmp" 11713} || 11714{ 11715 tmp=./conf$$-$RANDOM 11716 (umask 077 && mkdir "$tmp") 11717} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11718ac_tmp=$tmp 11719 11720# Set up the scripts for CONFIG_FILES section. 11721# No need to generate them if there are no CONFIG_FILES. 11722# This happens for instance with `./config.status config.h'. 11723if test -n "$CONFIG_FILES"; then 11724 11725 11726ac_cr=`echo X | tr X '\015'` 11727# On cygwin, bash can eat \r inside `` if the user requested igncr. 11728# But we know of no other shell where ac_cr would be empty at this 11729# point, so we can use a bashism as a fallback. 11730if test "x$ac_cr" = x; then 11731 eval ac_cr=\$\'\\r\' 11732fi 11733ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11734if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11735 ac_cs_awk_cr='\\r' 11736else 11737 ac_cs_awk_cr=$ac_cr 11738fi 11739 11740echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11741_ACEOF 11742 11743 11744{ 11745 echo "cat >conf$$subs.awk <<_ACEOF" && 11746 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11747 echo "_ACEOF" 11748} >conf$$subs.sh || 11749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11750ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11751ac_delim='%!_!# ' 11752for ac_last_try in false false false false false :; do 11753 . ./conf$$subs.sh || 11754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11755 11756 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11757 if test $ac_delim_n = $ac_delim_num; then 11758 break 11759 elif $ac_last_try; then 11760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11761 else 11762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11763 fi 11764done 11765rm -f conf$$subs.sh 11766 11767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11768cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11769_ACEOF 11770sed -n ' 11771h 11772s/^/S["/; s/!.*/"]=/ 11773p 11774g 11775s/^[^!]*!// 11776:repl 11777t repl 11778s/'"$ac_delim"'$// 11779t delim 11780:nl 11781h 11782s/\(.\{148\}\)..*/\1/ 11783t more1 11784s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11785p 11786n 11787b repl 11788:more1 11789s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11790p 11791g 11792s/.\{148\}// 11793t nl 11794:delim 11795h 11796s/\(.\{148\}\)..*/\1/ 11797t more2 11798s/["\\]/\\&/g; s/^/"/; s/$/"/ 11799p 11800b 11801:more2 11802s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11803p 11804g 11805s/.\{148\}// 11806t delim 11807' <conf$$subs.awk | sed ' 11808/^[^""]/{ 11809 N 11810 s/\n// 11811} 11812' >>$CONFIG_STATUS || ac_write_fail=1 11813rm -f conf$$subs.awk 11814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11815_ACAWK 11816cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11817 for (key in S) S_is_set[key] = 1 11818 FS = "" 11819 11820} 11821{ 11822 line = $ 0 11823 nfields = split(line, field, "@") 11824 substed = 0 11825 len = length(field[1]) 11826 for (i = 2; i < nfields; i++) { 11827 key = field[i] 11828 keylen = length(key) 11829 if (S_is_set[key]) { 11830 value = S[key] 11831 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11832 len += length(value) + length(field[++i]) 11833 substed = 1 11834 } else 11835 len += 1 + keylen 11836 } 11837 11838 print line 11839} 11840 11841_ACAWK 11842_ACEOF 11843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11844if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11845 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11846else 11847 cat 11848fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11849 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11850_ACEOF 11851 11852# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11853# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11854# trailing colons and then remove the whole line if VPATH becomes empty 11855# (actually we leave an empty line to preserve line numbers). 11856if test "x$srcdir" = x.; then 11857 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11858h 11859s/// 11860s/^/:/ 11861s/[ ]*$/:/ 11862s/:\$(srcdir):/:/g 11863s/:\${srcdir}:/:/g 11864s/:@srcdir@:/:/g 11865s/^:*// 11866s/:*$// 11867x 11868s/\(=[ ]*\).*/\1/ 11869G 11870s/\n// 11871s/^[^=]*=[ ]*$// 11872}' 11873fi 11874 11875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11876fi # test -n "$CONFIG_FILES" 11877 11878# Set up the scripts for CONFIG_HEADERS section. 11879# No need to generate them if there are no CONFIG_HEADERS. 11880# This happens for instance with `./config.status Makefile'. 11881if test -n "$CONFIG_HEADERS"; then 11882cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11883BEGIN { 11884_ACEOF 11885 11886# Transform confdefs.h into an awk script `defines.awk', embedded as 11887# here-document in config.status, that substitutes the proper values into 11888# config.h.in to produce config.h. 11889 11890# Create a delimiter string that does not exist in confdefs.h, to ease 11891# handling of long lines. 11892ac_delim='%!_!# ' 11893for ac_last_try in false false :; do 11894 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11895 if test -z "$ac_tt"; then 11896 break 11897 elif $ac_last_try; then 11898 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11899 else 11900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11901 fi 11902done 11903 11904# For the awk script, D is an array of macro values keyed by name, 11905# likewise P contains macro parameters if any. Preserve backslash 11906# newline sequences. 11907 11908ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11909sed -n ' 11910s/.\{148\}/&'"$ac_delim"'/g 11911t rset 11912:rset 11913s/^[ ]*#[ ]*define[ ][ ]*/ / 11914t def 11915d 11916:def 11917s/\\$// 11918t bsnl 11919s/["\\]/\\&/g 11920s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11921D["\1"]=" \3"/p 11922s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11923d 11924:bsnl 11925s/["\\]/\\&/g 11926s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11927D["\1"]=" \3\\\\\\n"\\/p 11928t cont 11929s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11930t cont 11931d 11932:cont 11933n 11934s/.\{148\}/&'"$ac_delim"'/g 11935t clear 11936:clear 11937s/\\$// 11938t bsnlc 11939s/["\\]/\\&/g; s/^/"/; s/$/"/p 11940d 11941:bsnlc 11942s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11943b cont 11944' <confdefs.h | sed ' 11945s/'"$ac_delim"'/"\\\ 11946"/g' >>$CONFIG_STATUS || ac_write_fail=1 11947 11948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11949 for (key in D) D_is_set[key] = 1 11950 FS = "" 11951} 11952/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11953 line = \$ 0 11954 split(line, arg, " ") 11955 if (arg[1] == "#") { 11956 defundef = arg[2] 11957 mac1 = arg[3] 11958 } else { 11959 defundef = substr(arg[1], 2) 11960 mac1 = arg[2] 11961 } 11962 split(mac1, mac2, "(") #) 11963 macro = mac2[1] 11964 prefix = substr(line, 1, index(line, defundef) - 1) 11965 if (D_is_set[macro]) { 11966 # Preserve the white space surrounding the "#". 11967 print prefix "define", macro P[macro] D[macro] 11968 next 11969 } else { 11970 # Replace #undef with comments. This is necessary, for example, 11971 # in the case of _POSIX_SOURCE, which is predefined and required 11972 # on some systems where configure will not decide to define it. 11973 if (defundef == "undef") { 11974 print "/*", prefix defundef, macro, "*/" 11975 next 11976 } 11977 } 11978} 11979{ print } 11980_ACAWK 11981_ACEOF 11982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11983 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11984fi # test -n "$CONFIG_HEADERS" 11985 11986 11987eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11988shift 11989for ac_tag 11990do 11991 case $ac_tag in 11992 :[FHLC]) ac_mode=$ac_tag; continue;; 11993 esac 11994 case $ac_mode$ac_tag in 11995 :[FHL]*:*);; 11996 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11997 :[FH]-) ac_tag=-:-;; 11998 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11999 esac 12000 ac_save_IFS=$IFS 12001 IFS=: 12002 set x $ac_tag 12003 IFS=$ac_save_IFS 12004 shift 12005 ac_file=$1 12006 shift 12007 12008 case $ac_mode in 12009 :L) ac_source=$1;; 12010 :[FH]) 12011 ac_file_inputs= 12012 for ac_f 12013 do 12014 case $ac_f in 12015 -) ac_f="$ac_tmp/stdin";; 12016 *) # Look for the file first in the build tree, then in the source tree 12017 # (if the path is not absolute). The absolute path cannot be DOS-style, 12018 # because $ac_f cannot contain `:'. 12019 test -f "$ac_f" || 12020 case $ac_f in 12021 [\\/$]*) false;; 12022 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12023 esac || 12024 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12025 esac 12026 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12027 as_fn_append ac_file_inputs " '$ac_f'" 12028 done 12029 12030 # Let's still pretend it is `configure' which instantiates (i.e., don't 12031 # use $as_me), people would be surprised to read: 12032 # /* config.h. Generated by config.status. */ 12033 configure_input='Generated from '` 12034 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12035 `' by configure.' 12036 if test x"$ac_file" != x-; then 12037 configure_input="$ac_file. $configure_input" 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12039$as_echo "$as_me: creating $ac_file" >&6;} 12040 fi 12041 # Neutralize special characters interpreted by sed in replacement strings. 12042 case $configure_input in #( 12043 *\&* | *\|* | *\\* ) 12044 ac_sed_conf_input=`$as_echo "$configure_input" | 12045 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12046 *) ac_sed_conf_input=$configure_input;; 12047 esac 12048 12049 case $ac_tag in 12050 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12052 esac 12053 ;; 12054 esac 12055 12056 ac_dir=`$as_dirname -- "$ac_file" || 12057$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12058 X"$ac_file" : 'X\(//\)[^/]' \| \ 12059 X"$ac_file" : 'X\(//\)$' \| \ 12060 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12061$as_echo X"$ac_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="$ac_dir"; as_fn_mkdir_p 12080 ac_builddir=. 12081 12082case "$ac_dir" in 12083.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12084*) 12085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12086 # A ".." for each directory in $ac_dir_suffix. 12087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12088 case $ac_top_builddir_sub in 12089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12091 esac ;; 12092esac 12093ac_abs_top_builddir=$ac_pwd 12094ac_abs_builddir=$ac_pwd$ac_dir_suffix 12095# for backward compatibility: 12096ac_top_builddir=$ac_top_build_prefix 12097 12098case $srcdir in 12099 .) # We are building in place. 12100 ac_srcdir=. 12101 ac_top_srcdir=$ac_top_builddir_sub 12102 ac_abs_top_srcdir=$ac_pwd ;; 12103 [\\/]* | ?:[\\/]* ) # Absolute name. 12104 ac_srcdir=$srcdir$ac_dir_suffix; 12105 ac_top_srcdir=$srcdir 12106 ac_abs_top_srcdir=$srcdir ;; 12107 *) # Relative name. 12108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12109 ac_top_srcdir=$ac_top_build_prefix$srcdir 12110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12111esac 12112ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12113 12114 12115 case $ac_mode in 12116 :F) 12117 # 12118 # CONFIG_FILE 12119 # 12120 12121 case $INSTALL in 12122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12123 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12124 esac 12125 ac_MKDIR_P=$MKDIR_P 12126 case $MKDIR_P in 12127 [\\/$]* | ?:[\\/]* ) ;; 12128 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12129 esac 12130_ACEOF 12131 12132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12133# If the template does not know about datarootdir, expand it. 12134# FIXME: This hack should be removed a few years after 2.60. 12135ac_datarootdir_hack=; ac_datarootdir_seen= 12136ac_sed_dataroot=' 12137/datarootdir/ { 12138 p 12139 q 12140} 12141/@datadir@/p 12142/@docdir@/p 12143/@infodir@/p 12144/@localedir@/p 12145/@mandir@/p' 12146case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12147*datarootdir*) ac_datarootdir_seen=yes;; 12148*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12150$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12151_ACEOF 12152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12153 ac_datarootdir_hack=' 12154 s&@datadir@&$datadir&g 12155 s&@docdir@&$docdir&g 12156 s&@infodir@&$infodir&g 12157 s&@localedir@&$localedir&g 12158 s&@mandir@&$mandir&g 12159 s&\\\${datarootdir}&$datarootdir&g' ;; 12160esac 12161_ACEOF 12162 12163# Neutralize VPATH when `$srcdir' = `.'. 12164# Shell code in configure.ac might set extrasub. 12165# FIXME: do we really want to maintain this feature? 12166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12167ac_sed_extra="$ac_vpsub 12168$extrasub 12169_ACEOF 12170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12171:t 12172/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12173s|@configure_input@|$ac_sed_conf_input|;t t 12174s&@top_builddir@&$ac_top_builddir_sub&;t t 12175s&@top_build_prefix@&$ac_top_build_prefix&;t t 12176s&@srcdir@&$ac_srcdir&;t t 12177s&@abs_srcdir@&$ac_abs_srcdir&;t t 12178s&@top_srcdir@&$ac_top_srcdir&;t t 12179s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12180s&@builddir@&$ac_builddir&;t t 12181s&@abs_builddir@&$ac_abs_builddir&;t t 12182s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12183s&@INSTALL@&$ac_INSTALL&;t t 12184s&@MKDIR_P@&$ac_MKDIR_P&;t t 12185$ac_datarootdir_hack 12186" 12187eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12188 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12189 12190test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12191 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12192 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12193 "$ac_tmp/out"`; test -z "$ac_out"; } && 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12195which seems to be undefined. Please make sure it is defined" >&5 12196$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12197which seems to be undefined. Please make sure it is defined" >&2;} 12198 12199 rm -f "$ac_tmp/stdin" 12200 case $ac_file in 12201 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12202 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12203 esac \ 12204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12205 ;; 12206 :H) 12207 # 12208 # CONFIG_HEADER 12209 # 12210 if test x"$ac_file" != x-; then 12211 { 12212 $as_echo "/* $configure_input */" \ 12213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12214 } >"$ac_tmp/config.h" \ 12215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12216 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12218$as_echo "$as_me: $ac_file is unchanged" >&6;} 12219 else 12220 rm -f "$ac_file" 12221 mv "$ac_tmp/config.h" "$ac_file" \ 12222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12223 fi 12224 else 12225 $as_echo "/* $configure_input */" \ 12226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12227 || as_fn_error $? "could not create -" "$LINENO" 5 12228 fi 12229# Compute "$ac_file"'s index in $config_headers. 12230_am_arg="$ac_file" 12231_am_stamp_count=1 12232for _am_header in $config_headers :; do 12233 case $_am_header in 12234 $_am_arg | $_am_arg:* ) 12235 break ;; 12236 * ) 12237 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12238 esac 12239done 12240echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12241$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12242 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12243 X"$_am_arg" : 'X\(//\)$' \| \ 12244 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12245$as_echo X"$_am_arg" | 12246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12247 s//\1/ 12248 q 12249 } 12250 /^X\(\/\/\)[^/].*/{ 12251 s//\1/ 12252 q 12253 } 12254 /^X\(\/\/\)$/{ 12255 s//\1/ 12256 q 12257 } 12258 /^X\(\/\).*/{ 12259 s//\1/ 12260 q 12261 } 12262 s/.*/./; q'`/stamp-h$_am_stamp_count 12263 ;; 12264 12265 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12266$as_echo "$as_me: executing $ac_file commands" >&6;} 12267 ;; 12268 esac 12269 12270 12271 case $ac_file$ac_mode in 12272 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12273 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12274 # are listed without --file. Let's play safe and only enable the eval 12275 # if we detect the quoting. 12276 case $CONFIG_FILES in 12277 *\'*) eval set x "$CONFIG_FILES" ;; 12278 *) set x $CONFIG_FILES ;; 12279 esac 12280 shift 12281 for mf 12282 do 12283 # Strip MF so we end up with the name of the file. 12284 mf=`echo "$mf" | sed -e 's/:.*$//'` 12285 # Check whether this is an Automake generated Makefile or not. 12286 # We used to match only the files named `Makefile.in', but 12287 # some people rename them; so instead we look at the file content. 12288 # Grep'ing the first line is not enough: some people post-process 12289 # each Makefile.in and add a new line on top of each file to say so. 12290 # Grep'ing the whole file is not good either: AIX grep has a line 12291 # limit of 2048, but all sed's we know have understand at least 4000. 12292 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12293 dirpart=`$as_dirname -- "$mf" || 12294$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12295 X"$mf" : 'X\(//\)[^/]' \| \ 12296 X"$mf" : 'X\(//\)$' \| \ 12297 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12298$as_echo X"$mf" | 12299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12300 s//\1/ 12301 q 12302 } 12303 /^X\(\/\/\)[^/].*/{ 12304 s//\1/ 12305 q 12306 } 12307 /^X\(\/\/\)$/{ 12308 s//\1/ 12309 q 12310 } 12311 /^X\(\/\).*/{ 12312 s//\1/ 12313 q 12314 } 12315 s/.*/./; q'` 12316 else 12317 continue 12318 fi 12319 # Extract the definition of DEPDIR, am__include, and am__quote 12320 # from the Makefile without running `make'. 12321 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12322 test -z "$DEPDIR" && continue 12323 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12324 test -z "am__include" && continue 12325 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12326 # When using ansi2knr, U may be empty or an underscore; expand it 12327 U=`sed -n 's/^U = //p' < "$mf"` 12328 # Find all dependency output files, they are included files with 12329 # $(DEPDIR) in their names. We invoke sed twice because it is the 12330 # simplest approach to changing $(DEPDIR) to its actual value in the 12331 # expansion. 12332 for file in `sed -n " 12333 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12334 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12335 # Make sure the directory exists. 12336 test -f "$dirpart/$file" && continue 12337 fdir=`$as_dirname -- "$file" || 12338$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12339 X"$file" : 'X\(//\)[^/]' \| \ 12340 X"$file" : 'X\(//\)$' \| \ 12341 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12342$as_echo X"$file" | 12343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12344 s//\1/ 12345 q 12346 } 12347 /^X\(\/\/\)[^/].*/{ 12348 s//\1/ 12349 q 12350 } 12351 /^X\(\/\/\)$/{ 12352 s//\1/ 12353 q 12354 } 12355 /^X\(\/\).*/{ 12356 s//\1/ 12357 q 12358 } 12359 s/.*/./; q'` 12360 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12361 # echo "creating $dirpart/$file" 12362 echo '# dummy' > "$dirpart/$file" 12363 done 12364 done 12365} 12366 ;; 12367 12368 esac 12369done # for ac_tag 12370 12371 12372as_fn_exit 0 12373_ACEOF 12374ac_clean_files=$ac_clean_files_save 12375 12376test $ac_write_fail = 0 || 12377 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12378 12379 12380# configure is writing to config.log, and then calls config.status. 12381# config.status does its own redirection, appending to config.log. 12382# Unfortunately, on DOS this fails, as config.log is still kept open 12383# by configure, so config.status won't be able to write to it; its 12384# output is simply discarded. So we exec the FD to /dev/null, 12385# effectively closing config.log, so it can be properly (re)opened and 12386# appended to by config.status. When coming back to configure, we 12387# need to make the FD available again. 12388if test "$no_create" != yes; then 12389 ac_cs_success=: 12390 ac_config_status_args= 12391 test "$silent" = yes && 12392 ac_config_status_args="$ac_config_status_args --quiet" 12393 exec 5>/dev/null 12394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12395 exec 5>>config.log 12396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12397 # would make configure fail if this is the last instruction. 12398 $ac_cs_success || as_fn_exit 1 12399fi 12400if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12402$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12403fi 12404 12405