configure revision eea2e341
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xgamma 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='xgamma' 563PACKAGE_TARNAME='xgamma' 564PACKAGE_VERSION='1.0.5' 565PACKAGE_STRING='xgamma 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 610XGAMMA_LIBS 611XGAMMA_CFLAGS 612AM_BACKSLASH 613AM_DEFAULT_VERBOSITY 614MAN_SUBSTS 615XORG_MAN_PAGE 616ADMIN_MAN_DIR 617DRIVER_MAN_DIR 618MISC_MAN_DIR 619FILE_MAN_DIR 620LIB_MAN_DIR 621APP_MAN_DIR 622ADMIN_MAN_SUFFIX 623DRIVER_MAN_SUFFIX 624MISC_MAN_SUFFIX 625FILE_MAN_SUFFIX 626LIB_MAN_SUFFIX 627APP_MAN_SUFFIX 628SED 629host_os 630host_vendor 631host_cpu 632host 633build_os 634build_vendor 635build_cpu 636build 637INSTALL_CMD 638PKG_CONFIG 639CHANGELOG_CMD 640STRICT_CFLAGS 641CWARNFLAGS 642BASE_CFLAGS 643EGREP 644GREP 645CPP 646am__fastdepCC_FALSE 647am__fastdepCC_TRUE 648CCDEPMODE 649AMDEPBACKSLASH 650AMDEP_FALSE 651AMDEP_TRUE 652am__quote 653am__include 654DEPDIR 655OBJEXT 656EXEEXT 657ac_ct_CC 658CPPFLAGS 659LDFLAGS 660CFLAGS 661CC 662MAINT 663MAINTAINER_MODE_FALSE 664MAINTAINER_MODE_TRUE 665am__untar 666am__tar 667AMTAR 668am__leading_dot 669SET_MAKE 670AWK 671mkdir_p 672MKDIR_P 673INSTALL_STRIP_PROGRAM 674STRIP 675install_sh 676MAKEINFO 677AUTOHEADER 678AUTOMAKE 679AUTOCONF 680ACLOCAL 681VERSION 682PACKAGE 683CYGPATH_W 684am__isrc 685INSTALL_DATA 686INSTALL_SCRIPT 687INSTALL_PROGRAM 688target_alias 689host_alias 690build_alias 691LIBS 692ECHO_T 693ECHO_N 694ECHO_C 695DEFS 696mandir 697localedir 698libdir 699psdir 700pdfdir 701dvidir 702htmldir 703infodir 704docdir 705oldincludedir 706includedir 707localstatedir 708sharedstatedir 709sysconfdir 710datadir 711datarootdir 712libexecdir 713sbindir 714bindir 715program_transform_name 716prefix 717exec_prefix 718PACKAGE_URL 719PACKAGE_BUGREPORT 720PACKAGE_STRING 721PACKAGE_VERSION 722PACKAGE_TARNAME 723PACKAGE_NAME 724PATH_SEPARATOR 725SHELL' 726ac_subst_files='' 727ac_user_opts=' 728enable_option_checking 729enable_maintainer_mode 730enable_dependency_tracking 731enable_selective_werror 732enable_strict_compilation 733enable_silent_rules 734' 735 ac_precious_vars='build_alias 736host_alias 737target_alias 738CC 739CFLAGS 740LDFLAGS 741LIBS 742CPPFLAGS 743CPP 744PKG_CONFIG 745XGAMMA_CFLAGS 746XGAMMA_LIBS' 747 748 749# Initialize some variables set by options. 750ac_init_help= 751ac_init_version=false 752ac_unrecognized_opts= 753ac_unrecognized_sep= 754# The variables have the same names as the options, with 755# dashes changed to underlines. 756cache_file=/dev/null 757exec_prefix=NONE 758no_create= 759no_recursion= 760prefix=NONE 761program_prefix=NONE 762program_suffix=NONE 763program_transform_name=s,x,x, 764silent= 765site= 766srcdir= 767verbose= 768x_includes=NONE 769x_libraries=NONE 770 771# Installation directory options. 772# These are left unexpanded so users can "make install exec_prefix=/foo" 773# and all the variables that are supposed to be based on exec_prefix 774# by default will actually change. 775# Use braces instead of parens because sh, perl, etc. also accept them. 776# (The list follows the same order as the GNU Coding Standards.) 777bindir='${exec_prefix}/bin' 778sbindir='${exec_prefix}/sbin' 779libexecdir='${exec_prefix}/libexec' 780datarootdir='${prefix}/share' 781datadir='${datarootdir}' 782sysconfdir='${prefix}/etc' 783sharedstatedir='${prefix}/com' 784localstatedir='${prefix}/var' 785includedir='${prefix}/include' 786oldincludedir='/usr/include' 787docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 788infodir='${datarootdir}/info' 789htmldir='${docdir}' 790dvidir='${docdir}' 791pdfdir='${docdir}' 792psdir='${docdir}' 793libdir='${exec_prefix}/lib' 794localedir='${datarootdir}/locale' 795mandir='${datarootdir}/man' 796 797ac_prev= 798ac_dashdash= 799for ac_option 800do 801 # If the previous option needs an argument, assign it. 802 if test -n "$ac_prev"; then 803 eval $ac_prev=\$ac_option 804 ac_prev= 805 continue 806 fi 807 808 case $ac_option in 809 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 810 *=) ac_optarg= ;; 811 *) ac_optarg=yes ;; 812 esac 813 814 # Accept the important Cygnus configure options, so we can diagnose typos. 815 816 case $ac_dashdash$ac_option in 817 --) 818 ac_dashdash=yes ;; 819 820 -bindir | --bindir | --bindi | --bind | --bin | --bi) 821 ac_prev=bindir ;; 822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 823 bindir=$ac_optarg ;; 824 825 -build | --build | --buil | --bui | --bu) 826 ac_prev=build_alias ;; 827 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 828 build_alias=$ac_optarg ;; 829 830 -cache-file | --cache-file | --cache-fil | --cache-fi \ 831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 832 ac_prev=cache_file ;; 833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 835 cache_file=$ac_optarg ;; 836 837 --config-cache | -C) 838 cache_file=config.cache ;; 839 840 -datadir | --datadir | --datadi | --datad) 841 ac_prev=datadir ;; 842 -datadir=* | --datadir=* | --datadi=* | --datad=*) 843 datadir=$ac_optarg ;; 844 845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 846 | --dataroo | --dataro | --datar) 847 ac_prev=datarootdir ;; 848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 850 datarootdir=$ac_optarg ;; 851 852 -disable-* | --disable-*) 853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 854 # Reject names that are not valid shell variable names. 855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 856 as_fn_error $? "invalid feature name: $ac_useropt" 857 ac_useropt_orig=$ac_useropt 858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 859 case $ac_user_opts in 860 *" 861"enable_$ac_useropt" 862"*) ;; 863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 864 ac_unrecognized_sep=', ';; 865 esac 866 eval enable_$ac_useropt=no ;; 867 868 -docdir | --docdir | --docdi | --doc | --do) 869 ac_prev=docdir ;; 870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 871 docdir=$ac_optarg ;; 872 873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 874 ac_prev=dvidir ;; 875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 876 dvidir=$ac_optarg ;; 877 878 -enable-* | --enable-*) 879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 880 # Reject names that are not valid shell variable names. 881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 882 as_fn_error $? "invalid feature name: $ac_useropt" 883 ac_useropt_orig=$ac_useropt 884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 885 case $ac_user_opts in 886 *" 887"enable_$ac_useropt" 888"*) ;; 889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 890 ac_unrecognized_sep=', ';; 891 esac 892 eval enable_$ac_useropt=\$ac_optarg ;; 893 894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 896 | --exec | --exe | --ex) 897 ac_prev=exec_prefix ;; 898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 900 | --exec=* | --exe=* | --ex=*) 901 exec_prefix=$ac_optarg ;; 902 903 -gas | --gas | --ga | --g) 904 # Obsolete; use --with-gas. 905 with_gas=yes ;; 906 907 -help | --help | --hel | --he | -h) 908 ac_init_help=long ;; 909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 910 ac_init_help=recursive ;; 911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 912 ac_init_help=short ;; 913 914 -host | --host | --hos | --ho) 915 ac_prev=host_alias ;; 916 -host=* | --host=* | --hos=* | --ho=*) 917 host_alias=$ac_optarg ;; 918 919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 920 ac_prev=htmldir ;; 921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 922 | --ht=*) 923 htmldir=$ac_optarg ;; 924 925 -includedir | --includedir | --includedi | --included | --include \ 926 | --includ | --inclu | --incl | --inc) 927 ac_prev=includedir ;; 928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 929 | --includ=* | --inclu=* | --incl=* | --inc=*) 930 includedir=$ac_optarg ;; 931 932 -infodir | --infodir | --infodi | --infod | --info | --inf) 933 ac_prev=infodir ;; 934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 935 infodir=$ac_optarg ;; 936 937 -libdir | --libdir | --libdi | --libd) 938 ac_prev=libdir ;; 939 -libdir=* | --libdir=* | --libdi=* | --libd=*) 940 libdir=$ac_optarg ;; 941 942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 943 | --libexe | --libex | --libe) 944 ac_prev=libexecdir ;; 945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 946 | --libexe=* | --libex=* | --libe=*) 947 libexecdir=$ac_optarg ;; 948 949 -localedir | --localedir | --localedi | --localed | --locale) 950 ac_prev=localedir ;; 951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 952 localedir=$ac_optarg ;; 953 954 -localstatedir | --localstatedir | --localstatedi | --localstated \ 955 | --localstate | --localstat | --localsta | --localst | --locals) 956 ac_prev=localstatedir ;; 957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 959 localstatedir=$ac_optarg ;; 960 961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 962 ac_prev=mandir ;; 963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 964 mandir=$ac_optarg ;; 965 966 -nfp | --nfp | --nf) 967 # Obsolete; use --without-fp. 968 with_fp=no ;; 969 970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 971 | --no-cr | --no-c | -n) 972 no_create=yes ;; 973 974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 976 no_recursion=yes ;; 977 978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 980 | --oldin | --oldi | --old | --ol | --o) 981 ac_prev=oldincludedir ;; 982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 985 oldincludedir=$ac_optarg ;; 986 987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 988 ac_prev=prefix ;; 989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 990 prefix=$ac_optarg ;; 991 992 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 993 | --program-pre | --program-pr | --program-p) 994 ac_prev=program_prefix ;; 995 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 997 program_prefix=$ac_optarg ;; 998 999 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1000 | --program-suf | --program-su | --program-s) 1001 ac_prev=program_suffix ;; 1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1004 program_suffix=$ac_optarg ;; 1005 1006 -program-transform-name | --program-transform-name \ 1007 | --program-transform-nam | --program-transform-na \ 1008 | --program-transform-n | --program-transform- \ 1009 | --program-transform | --program-transfor \ 1010 | --program-transfo | --program-transf \ 1011 | --program-trans | --program-tran \ 1012 | --progr-tra | --program-tr | --program-t) 1013 ac_prev=program_transform_name ;; 1014 -program-transform-name=* | --program-transform-name=* \ 1015 | --program-transform-nam=* | --program-transform-na=* \ 1016 | --program-transform-n=* | --program-transform-=* \ 1017 | --program-transform=* | --program-transfor=* \ 1018 | --program-transfo=* | --program-transf=* \ 1019 | --program-trans=* | --program-tran=* \ 1020 | --progr-tra=* | --program-tr=* | --program-t=*) 1021 program_transform_name=$ac_optarg ;; 1022 1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1024 ac_prev=pdfdir ;; 1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1026 pdfdir=$ac_optarg ;; 1027 1028 -psdir | --psdir | --psdi | --psd | --ps) 1029 ac_prev=psdir ;; 1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1031 psdir=$ac_optarg ;; 1032 1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1034 | -silent | --silent | --silen | --sile | --sil) 1035 silent=yes ;; 1036 1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1038 ac_prev=sbindir ;; 1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1040 | --sbi=* | --sb=*) 1041 sbindir=$ac_optarg ;; 1042 1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1045 | --sharedst | --shareds | --shared | --share | --shar \ 1046 | --sha | --sh) 1047 ac_prev=sharedstatedir ;; 1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1051 | --sha=* | --sh=*) 1052 sharedstatedir=$ac_optarg ;; 1053 1054 -site | --site | --sit) 1055 ac_prev=site ;; 1056 -site=* | --site=* | --sit=*) 1057 site=$ac_optarg ;; 1058 1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1060 ac_prev=srcdir ;; 1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1062 srcdir=$ac_optarg ;; 1063 1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1065 | --syscon | --sysco | --sysc | --sys | --sy) 1066 ac_prev=sysconfdir ;; 1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1069 sysconfdir=$ac_optarg ;; 1070 1071 -target | --target | --targe | --targ | --tar | --ta | --t) 1072 ac_prev=target_alias ;; 1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1074 target_alias=$ac_optarg ;; 1075 1076 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1077 verbose=yes ;; 1078 1079 -version | --version | --versio | --versi | --vers | -V) 1080 ac_init_version=: ;; 1081 1082 -with-* | --with-*) 1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1084 # Reject names that are not valid shell variable names. 1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1086 as_fn_error $? "invalid package name: $ac_useropt" 1087 ac_useropt_orig=$ac_useropt 1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1089 case $ac_user_opts in 1090 *" 1091"with_$ac_useropt" 1092"*) ;; 1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1094 ac_unrecognized_sep=', ';; 1095 esac 1096 eval with_$ac_useropt=\$ac_optarg ;; 1097 1098 -without-* | --without-*) 1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1100 # Reject names that are not valid shell variable names. 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1102 as_fn_error $? "invalid package name: $ac_useropt" 1103 ac_useropt_orig=$ac_useropt 1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1105 case $ac_user_opts in 1106 *" 1107"with_$ac_useropt" 1108"*) ;; 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1110 ac_unrecognized_sep=', ';; 1111 esac 1112 eval with_$ac_useropt=no ;; 1113 1114 --x) 1115 # Obsolete; use --with-x. 1116 with_x=yes ;; 1117 1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1119 | --x-incl | --x-inc | --x-in | --x-i) 1120 ac_prev=x_includes ;; 1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1123 x_includes=$ac_optarg ;; 1124 1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1127 ac_prev=x_libraries ;; 1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1130 x_libraries=$ac_optarg ;; 1131 1132 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1133Try \`$0 --help' for more information" 1134 ;; 1135 1136 *=*) 1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1138 # Reject names that are not valid shell variable names. 1139 case $ac_envvar in #( 1140 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1142 esac 1143 eval $ac_envvar=\$ac_optarg 1144 export $ac_envvar ;; 1145 1146 *) 1147 # FIXME: should be removed in autoconf 3.0. 1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1152 ;; 1153 1154 esac 1155done 1156 1157if test -n "$ac_prev"; then 1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1159 as_fn_error $? "missing argument to $ac_option" 1160fi 1161 1162if test -n "$ac_unrecognized_opts"; then 1163 case $enable_option_checking in 1164 no) ;; 1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1167 esac 1168fi 1169 1170# Check all directory arguments for consistency. 1171for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1172 datadir sysconfdir sharedstatedir localstatedir includedir \ 1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1174 libdir localedir mandir 1175do 1176 eval ac_val=\$$ac_var 1177 # Remove trailing slashes. 1178 case $ac_val in 1179 */ ) 1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1181 eval $ac_var=\$ac_val;; 1182 esac 1183 # Be sure to have absolute directory names. 1184 case $ac_val in 1185 [\\/$]* | ?:[\\/]* ) continue;; 1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1187 esac 1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1189done 1190 1191# There might be people who depend on the old broken behavior: `$host' 1192# used to hold the argument of --host etc. 1193# FIXME: To remove some day. 1194build=$build_alias 1195host=$host_alias 1196target=$target_alias 1197 1198# FIXME: To remove some day. 1199if test "x$host_alias" != x; then 1200 if test "x$build_alias" = x; then 1201 cross_compiling=maybe 1202 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1203 If a cross compiler is detected then cross compile mode will be used" >&2 1204 elif test "x$build_alias" != "x$host_alias"; then 1205 cross_compiling=yes 1206 fi 1207fi 1208 1209ac_tool_prefix= 1210test -n "$host_alias" && ac_tool_prefix=$host_alias- 1211 1212test "$silent" = yes && exec 6>/dev/null 1213 1214 1215ac_pwd=`pwd` && test -n "$ac_pwd" && 1216ac_ls_di=`ls -di .` && 1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1218 as_fn_error $? "working directory cannot be determined" 1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1220 as_fn_error $? "pwd does not report name of working directory" 1221 1222 1223# Find the source files, if location was not specified. 1224if test -z "$srcdir"; then 1225 ac_srcdir_defaulted=yes 1226 # Try the directory containing this script, then the parent directory. 1227 ac_confdir=`$as_dirname -- "$as_myself" || 1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1229 X"$as_myself" : 'X\(//\)[^/]' \| \ 1230 X"$as_myself" : 'X\(//\)$' \| \ 1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1232$as_echo X"$as_myself" | 1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\/\)[^/].*/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\/\)$/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\).*/{ 1246 s//\1/ 1247 q 1248 } 1249 s/.*/./; q'` 1250 srcdir=$ac_confdir 1251 if test ! -r "$srcdir/$ac_unique_file"; then 1252 srcdir=.. 1253 fi 1254else 1255 ac_srcdir_defaulted=no 1256fi 1257if test ! -r "$srcdir/$ac_unique_file"; then 1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1259 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1260fi 1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1262ac_abs_confdir=`( 1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1264 pwd)` 1265# When building in place, set srcdir=. 1266if test "$ac_abs_confdir" = "$ac_pwd"; then 1267 srcdir=. 1268fi 1269# Remove unnecessary trailing slashes from srcdir. 1270# Double slashes in file names in object file debugging info 1271# mess up M-x gdb in Emacs. 1272case $srcdir in 1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1274esac 1275for ac_var in $ac_precious_vars; do 1276 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1277 eval ac_env_${ac_var}_value=\$${ac_var} 1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1279 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1280done 1281 1282# 1283# Report the --help message. 1284# 1285if test "$ac_init_help" = "long"; then 1286 # Omit some internal or obsolete options to make the list less imposing. 1287 # This message is too long to be a string in the A/UX 3.1 sh. 1288 cat <<_ACEOF 1289\`configure' configures xgamma 1.0.5 to adapt to many kinds of systems. 1290 1291Usage: $0 [OPTION]... [VAR=VALUE]... 1292 1293To assign environment variables (e.g., CC, CFLAGS...), specify them as 1294VAR=VALUE. See below for descriptions of some of the useful variables. 1295 1296Defaults for the options are specified in brackets. 1297 1298Configuration: 1299 -h, --help display this help and exit 1300 --help=short display options specific to this package 1301 --help=recursive display the short help of all the included packages 1302 -V, --version display version information and exit 1303 -q, --quiet, --silent do not print \`checking ...' messages 1304 --cache-file=FILE cache test results in FILE [disabled] 1305 -C, --config-cache alias for \`--cache-file=config.cache' 1306 -n, --no-create do not create output files 1307 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1308 1309Installation directories: 1310 --prefix=PREFIX install architecture-independent files in PREFIX 1311 [$ac_default_prefix] 1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1313 [PREFIX] 1314 1315By default, \`make install' will install all the files in 1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1317an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1318for instance \`--prefix=\$HOME'. 1319 1320For better control, use the options below. 1321 1322Fine tuning of the installation directories: 1323 --bindir=DIR user executables [EPREFIX/bin] 1324 --sbindir=DIR system admin executables [EPREFIX/sbin] 1325 --libexecdir=DIR program executables [EPREFIX/libexec] 1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1329 --libdir=DIR object code libraries [EPREFIX/lib] 1330 --includedir=DIR C header files [PREFIX/include] 1331 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1334 --infodir=DIR info documentation [DATAROOTDIR/info] 1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1336 --mandir=DIR man documentation [DATAROOTDIR/man] 1337 --docdir=DIR documentation root [DATAROOTDIR/doc/xgamma] 1338 --htmldir=DIR html documentation [DOCDIR] 1339 --dvidir=DIR dvi documentation [DOCDIR] 1340 --pdfdir=DIR pdf documentation [DOCDIR] 1341 --psdir=DIR ps documentation [DOCDIR] 1342_ACEOF 1343 1344 cat <<\_ACEOF 1345 1346Program names: 1347 --program-prefix=PREFIX prepend PREFIX to installed program names 1348 --program-suffix=SUFFIX append SUFFIX to installed program names 1349 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1350 1351System types: 1352 --build=BUILD configure for building on BUILD [guessed] 1353 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1354_ACEOF 1355fi 1356 1357if test -n "$ac_init_help"; then 1358 case $ac_init_help in 1359 short | recursive ) echo "Configuration of xgamma 1.0.5:";; 1360 esac 1361 cat <<\_ACEOF 1362 1363Optional Features: 1364 --disable-option-checking ignore unrecognized --enable/--with options 1365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1367 --enable-maintainer-mode enable make rules and dependencies not useful 1368 (and sometimes confusing) to the casual installer 1369 --disable-dependency-tracking speeds up one-time build 1370 --enable-dependency-tracking do not reject slow dependency extractors 1371 --disable-selective-werror 1372 Turn off selective compiler errors. (default: 1373 enabled) 1374 --enable-strict-compilation 1375 Enable all warnings from compiler and make them 1376 errors (default: disabled) 1377 --enable-silent-rules less verbose build output (undo: `make V=1') 1378 --disable-silent-rules verbose build output (undo: `make V=0') 1379 1380Some influential environment variables: 1381 CC C compiler command 1382 CFLAGS C compiler flags 1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1384 nonstandard directory <lib dir> 1385 LIBS libraries to pass to the linker, e.g. -l<library> 1386 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1387 you have headers in a nonstandard directory <include dir> 1388 CPP C preprocessor 1389 PKG_CONFIG path to pkg-config utility 1390 XGAMMA_CFLAGS 1391 C compiler flags for XGAMMA, overriding pkg-config 1392 XGAMMA_LIBS linker flags for XGAMMA, overriding pkg-config 1393 1394Use these variables to override the choices made by `configure' or to help 1395it to find libraries and programs with nonstandard names/locations. 1396 1397Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1398_ACEOF 1399ac_status=$? 1400fi 1401 1402if test "$ac_init_help" = "recursive"; then 1403 # If there are subdirs, report their specific --help. 1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1405 test -d "$ac_dir" || 1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1407 continue 1408 ac_builddir=. 1409 1410case "$ac_dir" in 1411.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1412*) 1413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1414 # A ".." for each directory in $ac_dir_suffix. 1415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1416 case $ac_top_builddir_sub in 1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1419 esac ;; 1420esac 1421ac_abs_top_builddir=$ac_pwd 1422ac_abs_builddir=$ac_pwd$ac_dir_suffix 1423# for backward compatibility: 1424ac_top_builddir=$ac_top_build_prefix 1425 1426case $srcdir in 1427 .) # We are building in place. 1428 ac_srcdir=. 1429 ac_top_srcdir=$ac_top_builddir_sub 1430 ac_abs_top_srcdir=$ac_pwd ;; 1431 [\\/]* | ?:[\\/]* ) # Absolute name. 1432 ac_srcdir=$srcdir$ac_dir_suffix; 1433 ac_top_srcdir=$srcdir 1434 ac_abs_top_srcdir=$srcdir ;; 1435 *) # Relative name. 1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1437 ac_top_srcdir=$ac_top_build_prefix$srcdir 1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1439esac 1440ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1441 1442 cd "$ac_dir" || { ac_status=$?; continue; } 1443 # Check for guested configure. 1444 if test -f "$ac_srcdir/configure.gnu"; then 1445 echo && 1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1447 elif test -f "$ac_srcdir/configure"; then 1448 echo && 1449 $SHELL "$ac_srcdir/configure" --help=recursive 1450 else 1451 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1452 fi || ac_status=$? 1453 cd "$ac_pwd" || { ac_status=$?; break; } 1454 done 1455fi 1456 1457test -n "$ac_init_help" && exit $ac_status 1458if $ac_init_version; then 1459 cat <<\_ACEOF 1460xgamma configure 1.0.5 1461generated by GNU Autoconf 2.68 1462 1463Copyright (C) 2010 Free Software Foundation, Inc. 1464This configure script is free software; the Free Software Foundation 1465gives unlimited permission to copy, distribute and modify it. 1466_ACEOF 1467 exit 1468fi 1469 1470## ------------------------ ## 1471## Autoconf initialization. ## 1472## ------------------------ ## 1473 1474# ac_fn_c_try_compile LINENO 1475# -------------------------- 1476# Try to compile conftest.$ac_ext, and return whether this succeeded. 1477ac_fn_c_try_compile () 1478{ 1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1480 rm -f conftest.$ac_objext 1481 if { { ac_try="$ac_compile" 1482case "(($ac_try" in 1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1484 *) ac_try_echo=$ac_try;; 1485esac 1486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1487$as_echo "$ac_try_echo"; } >&5 1488 (eval "$ac_compile") 2>conftest.err 1489 ac_status=$? 1490 if test -s conftest.err; then 1491 grep -v '^ *+' conftest.err >conftest.er1 1492 cat conftest.er1 >&5 1493 mv -f conftest.er1 conftest.err 1494 fi 1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1496 test $ac_status = 0; } && { 1497 test -z "$ac_c_werror_flag" || 1498 test ! -s conftest.err 1499 } && test -s conftest.$ac_objext; then : 1500 ac_retval=0 1501else 1502 $as_echo "$as_me: failed program was:" >&5 1503sed 's/^/| /' conftest.$ac_ext >&5 1504 1505 ac_retval=1 1506fi 1507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1508 as_fn_set_status $ac_retval 1509 1510} # ac_fn_c_try_compile 1511 1512# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1513# --------------------------------------------- 1514# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1515# accordingly. 1516ac_fn_c_check_decl () 1517{ 1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1519 as_decl_name=`echo $2|sed 's/ *(.*//'` 1520 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1522$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1523if eval \${$3+:} false; then : 1524 $as_echo_n "(cached) " >&6 1525else 1526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1527/* end confdefs.h. */ 1528$4 1529int 1530main () 1531{ 1532#ifndef $as_decl_name 1533#ifdef __cplusplus 1534 (void) $as_decl_use; 1535#else 1536 (void) $as_decl_name; 1537#endif 1538#endif 1539 1540 ; 1541 return 0; 1542} 1543_ACEOF 1544if ac_fn_c_try_compile "$LINENO"; then : 1545 eval "$3=yes" 1546else 1547 eval "$3=no" 1548fi 1549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1550fi 1551eval ac_res=\$$3 1552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1553$as_echo "$ac_res" >&6; } 1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1555 1556} # ac_fn_c_check_decl 1557 1558# ac_fn_c_try_cpp LINENO 1559# ---------------------- 1560# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1561ac_fn_c_try_cpp () 1562{ 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564 if { { ac_try="$ac_cpp conftest.$ac_ext" 1565case "(($ac_try" in 1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1567 *) ac_try_echo=$ac_try;; 1568esac 1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1570$as_echo "$ac_try_echo"; } >&5 1571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1572 ac_status=$? 1573 if test -s conftest.err; then 1574 grep -v '^ *+' conftest.err >conftest.er1 1575 cat conftest.er1 >&5 1576 mv -f conftest.er1 conftest.err 1577 fi 1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1579 test $ac_status = 0; } > conftest.i && { 1580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1581 test ! -s conftest.err 1582 }; then : 1583 ac_retval=0 1584else 1585 $as_echo "$as_me: failed program was:" >&5 1586sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589fi 1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1591 as_fn_set_status $ac_retval 1592 1593} # ac_fn_c_try_cpp 1594 1595# ac_fn_c_try_run LINENO 1596# ---------------------- 1597# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1598# that executables *can* be run. 1599ac_fn_c_try_run () 1600{ 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 if { { ac_try="$ac_link" 1603case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606esac 1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608$as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_link") 2>&5 1610 ac_status=$? 1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1612 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1613 { { case "(($ac_try" in 1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1615 *) ac_try_echo=$ac_try;; 1616esac 1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1618$as_echo "$ac_try_echo"; } >&5 1619 (eval "$ac_try") 2>&5 1620 ac_status=$? 1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1622 test $ac_status = 0; }; }; then : 1623 ac_retval=0 1624else 1625 $as_echo "$as_me: program exited with status $ac_status" >&5 1626 $as_echo "$as_me: failed program was:" >&5 1627sed 's/^/| /' conftest.$ac_ext >&5 1628 1629 ac_retval=$ac_status 1630fi 1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1633 as_fn_set_status $ac_retval 1634 1635} # ac_fn_c_try_run 1636 1637# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1638# ------------------------------------------------------- 1639# Tests whether HEADER exists and can be compiled using the include files in 1640# INCLUDES, setting the cache variable VAR accordingly. 1641ac_fn_c_check_header_compile () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1645$as_echo_n "checking for $2... " >&6; } 1646if eval \${$3+:} false; then : 1647 $as_echo_n "(cached) " >&6 1648else 1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650/* end confdefs.h. */ 1651$4 1652#include <$2> 1653_ACEOF 1654if ac_fn_c_try_compile "$LINENO"; then : 1655 eval "$3=yes" 1656else 1657 eval "$3=no" 1658fi 1659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1660fi 1661eval ac_res=\$$3 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1663$as_echo "$ac_res" >&6; } 1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1665 1666} # ac_fn_c_check_header_compile 1667 1668# ac_fn_c_try_link LINENO 1669# ----------------------- 1670# Try to link conftest.$ac_ext, and return whether this succeeded. 1671ac_fn_c_try_link () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 rm -f conftest.$ac_objext conftest$ac_exeext 1675 if { { ac_try="$ac_link" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_link") 2>conftest.err 1683 ac_status=$? 1684 if test -s conftest.err; then 1685 grep -v '^ *+' conftest.err >conftest.er1 1686 cat conftest.er1 >&5 1687 mv -f conftest.er1 conftest.err 1688 fi 1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; } && { 1691 test -z "$ac_c_werror_flag" || 1692 test ! -s conftest.err 1693 } && test -s conftest$ac_exeext && { 1694 test "$cross_compiling" = yes || 1695 $as_test_x conftest$ac_exeext 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1706 # interfere with the next link command; also delete a directory that is 1707 # left behind by Apple's compiler. We do this before executing the actions. 1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 as_fn_set_status $ac_retval 1711 1712} # ac_fn_c_try_link 1713cat >config.log <<_ACEOF 1714This file contains any messages produced by compilers while 1715running configure, to aid debugging if configure makes a mistake. 1716 1717It was created by xgamma $as_me 1.0.5, which was 1718generated by GNU Autoconf 2.68. Invocation command line was 1719 1720 $ $0 $@ 1721 1722_ACEOF 1723exec 5>>config.log 1724{ 1725cat <<_ASUNAME 1726## --------- ## 1727## Platform. ## 1728## --------- ## 1729 1730hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1731uname -m = `(uname -m) 2>/dev/null || echo unknown` 1732uname -r = `(uname -r) 2>/dev/null || echo unknown` 1733uname -s = `(uname -s) 2>/dev/null || echo unknown` 1734uname -v = `(uname -v) 2>/dev/null || echo unknown` 1735 1736/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1737/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1738 1739/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1740/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1741/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1742/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1743/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1744/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1745/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1746 1747_ASUNAME 1748 1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1750for as_dir in $PATH 1751do 1752 IFS=$as_save_IFS 1753 test -z "$as_dir" && as_dir=. 1754 $as_echo "PATH: $as_dir" 1755 done 1756IFS=$as_save_IFS 1757 1758} >&5 1759 1760cat >&5 <<_ACEOF 1761 1762 1763## ----------- ## 1764## Core tests. ## 1765## ----------- ## 1766 1767_ACEOF 1768 1769 1770# Keep a trace of the command line. 1771# Strip out --no-create and --no-recursion so they do not pile up. 1772# Strip out --silent because we don't want to record it for future runs. 1773# Also quote any args containing shell meta-characters. 1774# Make two passes to allow for proper duplicate-argument suppression. 1775ac_configure_args= 1776ac_configure_args0= 1777ac_configure_args1= 1778ac_must_keep_next=false 1779for ac_pass in 1 2 1780do 1781 for ac_arg 1782 do 1783 case $ac_arg in 1784 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1786 | -silent | --silent | --silen | --sile | --sil) 1787 continue ;; 1788 *\'*) 1789 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1790 esac 1791 case $ac_pass in 1792 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1793 2) 1794 as_fn_append ac_configure_args1 " '$ac_arg'" 1795 if test $ac_must_keep_next = true; then 1796 ac_must_keep_next=false # Got value, back to normal. 1797 else 1798 case $ac_arg in 1799 *=* | --config-cache | -C | -disable-* | --disable-* \ 1800 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1801 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1802 | -with-* | --with-* | -without-* | --without-* | --x) 1803 case "$ac_configure_args0 " in 1804 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1805 esac 1806 ;; 1807 -* ) ac_must_keep_next=true ;; 1808 esac 1809 fi 1810 as_fn_append ac_configure_args " '$ac_arg'" 1811 ;; 1812 esac 1813 done 1814done 1815{ ac_configure_args0=; unset ac_configure_args0;} 1816{ ac_configure_args1=; unset ac_configure_args1;} 1817 1818# When interrupted or exit'd, cleanup temporary files, and complete 1819# config.log. We remove comments because anyway the quotes in there 1820# would cause problems or look ugly. 1821# WARNING: Use '\'' to represent an apostrophe within the trap. 1822# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1823trap 'exit_status=$? 1824 # Save into config.log some information that might help in debugging. 1825 { 1826 echo 1827 1828 $as_echo "## ---------------- ## 1829## Cache variables. ## 1830## ---------------- ##" 1831 echo 1832 # The following way of writing the cache mishandles newlines in values, 1833( 1834 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1835 eval ac_val=\$$ac_var 1836 case $ac_val in #( 1837 *${as_nl}*) 1838 case $ac_var in #( 1839 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1840$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1841 esac 1842 case $ac_var in #( 1843 _ | IFS | as_nl) ;; #( 1844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1845 *) { eval $ac_var=; unset $ac_var;} ;; 1846 esac ;; 1847 esac 1848 done 1849 (set) 2>&1 | 1850 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1851 *${as_nl}ac_space=\ *) 1852 sed -n \ 1853 "s/'\''/'\''\\\\'\'''\''/g; 1854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1855 ;; #( 1856 *) 1857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1858 ;; 1859 esac | 1860 sort 1861) 1862 echo 1863 1864 $as_echo "## ----------------- ## 1865## Output variables. ## 1866## ----------------- ##" 1867 echo 1868 for ac_var in $ac_subst_vars 1869 do 1870 eval ac_val=\$$ac_var 1871 case $ac_val in 1872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1873 esac 1874 $as_echo "$ac_var='\''$ac_val'\''" 1875 done | sort 1876 echo 1877 1878 if test -n "$ac_subst_files"; then 1879 $as_echo "## ------------------- ## 1880## File substitutions. ## 1881## ------------------- ##" 1882 echo 1883 for ac_var in $ac_subst_files 1884 do 1885 eval ac_val=\$$ac_var 1886 case $ac_val in 1887 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1888 esac 1889 $as_echo "$ac_var='\''$ac_val'\''" 1890 done | sort 1891 echo 1892 fi 1893 1894 if test -s confdefs.h; then 1895 $as_echo "## ----------- ## 1896## confdefs.h. ## 1897## ----------- ##" 1898 echo 1899 cat confdefs.h 1900 echo 1901 fi 1902 test "$ac_signal" != 0 && 1903 $as_echo "$as_me: caught signal $ac_signal" 1904 $as_echo "$as_me: exit $exit_status" 1905 } >&5 1906 rm -f core *.core core.conftest.* && 1907 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1908 exit $exit_status 1909' 0 1910for ac_signal in 1 2 13 15; do 1911 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1912done 1913ac_signal=0 1914 1915# confdefs.h avoids OS command line length limits that DEFS can exceed. 1916rm -f -r conftest* confdefs.h 1917 1918$as_echo "/* confdefs.h */" > confdefs.h 1919 1920# Predefined preprocessor variables. 1921 1922cat >>confdefs.h <<_ACEOF 1923#define PACKAGE_NAME "$PACKAGE_NAME" 1924_ACEOF 1925 1926cat >>confdefs.h <<_ACEOF 1927#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1928_ACEOF 1929 1930cat >>confdefs.h <<_ACEOF 1931#define PACKAGE_VERSION "$PACKAGE_VERSION" 1932_ACEOF 1933 1934cat >>confdefs.h <<_ACEOF 1935#define PACKAGE_STRING "$PACKAGE_STRING" 1936_ACEOF 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1940_ACEOF 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_URL "$PACKAGE_URL" 1944_ACEOF 1945 1946 1947# Let the site file select an alternate cache file if it wants to. 1948# Prefer an explicitly selected file to automatically selected ones. 1949ac_site_file1=NONE 1950ac_site_file2=NONE 1951if test -n "$CONFIG_SITE"; then 1952 # We do not want a PATH search for config.site. 1953 case $CONFIG_SITE in #(( 1954 -*) ac_site_file1=./$CONFIG_SITE;; 1955 */*) ac_site_file1=$CONFIG_SITE;; 1956 *) ac_site_file1=./$CONFIG_SITE;; 1957 esac 1958elif test "x$prefix" != xNONE; then 1959 ac_site_file1=$prefix/share/config.site 1960 ac_site_file2=$prefix/etc/config.site 1961else 1962 ac_site_file1=$ac_default_prefix/share/config.site 1963 ac_site_file2=$ac_default_prefix/etc/config.site 1964fi 1965for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1966do 1967 test "x$ac_site_file" = xNONE && continue 1968 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1970$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1971 sed 's/^/| /' "$ac_site_file" >&5 1972 . "$ac_site_file" \ 1973 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1975as_fn_error $? "failed to load site script $ac_site_file 1976See \`config.log' for more details" "$LINENO" 5; } 1977 fi 1978done 1979 1980if test -r "$cache_file"; then 1981 # Some versions of bash will fail to source /dev/null (special files 1982 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1983 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1985$as_echo "$as_me: loading cache $cache_file" >&6;} 1986 case $cache_file in 1987 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1988 *) . "./$cache_file";; 1989 esac 1990 fi 1991else 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1993$as_echo "$as_me: creating cache $cache_file" >&6;} 1994 >$cache_file 1995fi 1996 1997# Check that the precious variables saved in the cache have kept the same 1998# value. 1999ac_cache_corrupted=false 2000for ac_var in $ac_precious_vars; do 2001 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2002 eval ac_new_set=\$ac_env_${ac_var}_set 2003 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2004 eval ac_new_val=\$ac_env_${ac_var}_value 2005 case $ac_old_set,$ac_new_set in 2006 set,) 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2008$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2009 ac_cache_corrupted=: ;; 2010 ,set) 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2012$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2013 ac_cache_corrupted=: ;; 2014 ,);; 2015 *) 2016 if test "x$ac_old_val" != "x$ac_new_val"; then 2017 # differences in whitespace do not lead to failure. 2018 ac_old_val_w=`echo x $ac_old_val` 2019 ac_new_val_w=`echo x $ac_new_val` 2020 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2022$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2023 ac_cache_corrupted=: 2024 else 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2026$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2027 eval $ac_var=\$ac_old_val 2028 fi 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2030$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2032$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2033 fi;; 2034 esac 2035 # Pass precious variables to config.status. 2036 if test "$ac_new_set" = set; then 2037 case $ac_new_val in 2038 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2039 *) ac_arg=$ac_var=$ac_new_val ;; 2040 esac 2041 case " $ac_configure_args " in 2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2043 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2044 esac 2045 fi 2046done 2047if $ac_cache_corrupted; then 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2051$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2052 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2053fi 2054## -------------------- ## 2055## Main body of script. ## 2056## -------------------- ## 2057 2058ac_ext=c 2059ac_cpp='$CPP $CPPFLAGS' 2060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2062ac_compiler_gnu=$ac_cv_c_compiler_gnu 2063 2064 2065 2066ac_config_headers="$ac_config_headers config.h" 2067 2068 2069# Initialize Automake 2070am__api_version='1.11' 2071 2072ac_aux_dir= 2073for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2074 if test -f "$ac_dir/install-sh"; then 2075 ac_aux_dir=$ac_dir 2076 ac_install_sh="$ac_aux_dir/install-sh -c" 2077 break 2078 elif test -f "$ac_dir/install.sh"; then 2079 ac_aux_dir=$ac_dir 2080 ac_install_sh="$ac_aux_dir/install.sh -c" 2081 break 2082 elif test -f "$ac_dir/shtool"; then 2083 ac_aux_dir=$ac_dir 2084 ac_install_sh="$ac_aux_dir/shtool install -c" 2085 break 2086 fi 2087done 2088if test -z "$ac_aux_dir"; then 2089 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2090fi 2091 2092# These three variables are undocumented and unsupported, 2093# and are intended to be withdrawn in a future Autoconf release. 2094# They can cause serious problems if a builder's source tree is in a directory 2095# whose full name contains unusual characters. 2096ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2097ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2098ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2099 2100 2101# Find a good install program. We prefer a C program (faster), 2102# so one script is as good as another. But avoid the broken or 2103# incompatible versions: 2104# SysV /etc/install, /usr/sbin/install 2105# SunOS /usr/etc/install 2106# IRIX /sbin/install 2107# AIX /bin/install 2108# AmigaOS /C/install, which installs bootblocks on floppy discs 2109# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2110# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2112# OS/2's system install, which has a completely different semantic 2113# ./install, which can be erroneously created by make from ./install.sh. 2114# Reject install programs that cannot install multiple files. 2115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2116$as_echo_n "checking for a BSD-compatible install... " >&6; } 2117if test -z "$INSTALL"; then 2118if ${ac_cv_path_install+:} false; then : 2119 $as_echo_n "(cached) " >&6 2120else 2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2122for as_dir in $PATH 2123do 2124 IFS=$as_save_IFS 2125 test -z "$as_dir" && as_dir=. 2126 # Account for people who put trailing slashes in PATH elements. 2127case $as_dir/ in #(( 2128 ./ | .// | /[cC]/* | \ 2129 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2130 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2131 /usr/ucb/* ) ;; 2132 *) 2133 # OSF1 and SCO ODT 3.0 have their own names for install. 2134 # Don't use installbsd from OSF since it installs stuff as root 2135 # by default. 2136 for ac_prog in ginstall scoinst install; do 2137 for ac_exec_ext in '' $ac_executable_extensions; do 2138 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2139 if test $ac_prog = install && 2140 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2141 # AIX install. It has an incompatible calling convention. 2142 : 2143 elif test $ac_prog = install && 2144 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2145 # program-specific install script used by HP pwplus--don't use. 2146 : 2147 else 2148 rm -rf conftest.one conftest.two conftest.dir 2149 echo one > conftest.one 2150 echo two > conftest.two 2151 mkdir conftest.dir 2152 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2153 test -s conftest.one && test -s conftest.two && 2154 test -s conftest.dir/conftest.one && 2155 test -s conftest.dir/conftest.two 2156 then 2157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2158 break 3 2159 fi 2160 fi 2161 fi 2162 done 2163 done 2164 ;; 2165esac 2166 2167 done 2168IFS=$as_save_IFS 2169 2170rm -rf conftest.one conftest.two conftest.dir 2171 2172fi 2173 if test "${ac_cv_path_install+set}" = set; then 2174 INSTALL=$ac_cv_path_install 2175 else 2176 # As a last resort, use the slow shell script. Don't cache a 2177 # value for INSTALL within a source directory, because that will 2178 # break other packages using the cache if that directory is 2179 # removed, or if the value is a relative name. 2180 INSTALL=$ac_install_sh 2181 fi 2182fi 2183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2184$as_echo "$INSTALL" >&6; } 2185 2186# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2187# It thinks the first close brace ends the variable substitution. 2188test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2189 2190test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2191 2192test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2193 2194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2195$as_echo_n "checking whether build environment is sane... " >&6; } 2196# Just in case 2197sleep 1 2198echo timestamp > conftest.file 2199# Reject unsafe characters in $srcdir or the absolute working directory 2200# name. Accept space and tab only in the latter. 2201am_lf=' 2202' 2203case `pwd` in 2204 *[\\\"\#\$\&\'\`$am_lf]*) 2205 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2206esac 2207case $srcdir in 2208 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2209 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2210esac 2211 2212# Do `set' in a subshell so we don't clobber the current shell's 2213# arguments. Must try -L first in case configure is actually a 2214# symlink; some systems play weird games with the mod time of symlinks 2215# (eg FreeBSD returns the mod time of the symlink's containing 2216# directory). 2217if ( 2218 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2219 if test "$*" = "X"; then 2220 # -L didn't work. 2221 set X `ls -t "$srcdir/configure" conftest.file` 2222 fi 2223 rm -f conftest.file 2224 if test "$*" != "X $srcdir/configure conftest.file" \ 2225 && test "$*" != "X conftest.file $srcdir/configure"; then 2226 2227 # If neither matched, then we have a broken ls. This can happen 2228 # if, for instance, CONFIG_SHELL is bash and it inherits a 2229 # broken ls alias from the environment. This has actually 2230 # happened. Such a system could not be considered "sane". 2231 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2232alias in your environment" "$LINENO" 5 2233 fi 2234 2235 test "$2" = conftest.file 2236 ) 2237then 2238 # Ok. 2239 : 2240else 2241 as_fn_error $? "newly created file is older than distributed files! 2242Check your system clock" "$LINENO" 5 2243fi 2244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2245$as_echo "yes" >&6; } 2246test "$program_prefix" != NONE && 2247 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2248# Use a double $ so make ignores it. 2249test "$program_suffix" != NONE && 2250 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2251# Double any \ or $. 2252# By default was `s,x,x', remove it if useless. 2253ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2254program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2255 2256# expand $ac_aux_dir to an absolute path 2257am_aux_dir=`cd $ac_aux_dir && pwd` 2258 2259if test x"${MISSING+set}" != xset; then 2260 case $am_aux_dir in 2261 *\ * | *\ *) 2262 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2263 *) 2264 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2265 esac 2266fi 2267# Use eval to expand $SHELL 2268if eval "$MISSING --run true"; then 2269 am_missing_run="$MISSING --run " 2270else 2271 am_missing_run= 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2273$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2274fi 2275 2276if test x"${install_sh}" != xset; then 2277 case $am_aux_dir in 2278 *\ * | *\ *) 2279 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2280 *) 2281 install_sh="\${SHELL} $am_aux_dir/install-sh" 2282 esac 2283fi 2284 2285# Installed binaries are usually stripped using `strip' when the user 2286# run `make install-strip'. However `strip' might not be the right 2287# tool to use in cross-compilation environments, therefore Automake 2288# will honor the `STRIP' environment variable to overrule this program. 2289if test "$cross_compiling" != no; then 2290 if test -n "$ac_tool_prefix"; then 2291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2292set dummy ${ac_tool_prefix}strip; ac_word=$2 2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2294$as_echo_n "checking for $ac_word... " >&6; } 2295if ${ac_cv_prog_STRIP+:} false; then : 2296 $as_echo_n "(cached) " >&6 2297else 2298 if test -n "$STRIP"; then 2299 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2300else 2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2302for as_dir in $PATH 2303do 2304 IFS=$as_save_IFS 2305 test -z "$as_dir" && as_dir=. 2306 for ac_exec_ext in '' $ac_executable_extensions; do 2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2308 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2310 break 2 2311 fi 2312done 2313 done 2314IFS=$as_save_IFS 2315 2316fi 2317fi 2318STRIP=$ac_cv_prog_STRIP 2319if test -n "$STRIP"; then 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2321$as_echo "$STRIP" >&6; } 2322else 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2324$as_echo "no" >&6; } 2325fi 2326 2327 2328fi 2329if test -z "$ac_cv_prog_STRIP"; then 2330 ac_ct_STRIP=$STRIP 2331 # Extract the first word of "strip", so it can be a program name with args. 2332set dummy strip; ac_word=$2 2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2334$as_echo_n "checking for $ac_word... " >&6; } 2335if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 if test -n "$ac_ct_STRIP"; then 2339 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2340else 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2348 ac_cv_prog_ac_ct_STRIP="strip" 2349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2350 break 2 2351 fi 2352done 2353 done 2354IFS=$as_save_IFS 2355 2356fi 2357fi 2358ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2359if test -n "$ac_ct_STRIP"; then 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2361$as_echo "$ac_ct_STRIP" >&6; } 2362else 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2364$as_echo "no" >&6; } 2365fi 2366 2367 if test "x$ac_ct_STRIP" = x; then 2368 STRIP=":" 2369 else 2370 case $cross_compiling:$ac_tool_warned in 2371yes:) 2372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2374ac_tool_warned=yes ;; 2375esac 2376 STRIP=$ac_ct_STRIP 2377 fi 2378else 2379 STRIP="$ac_cv_prog_STRIP" 2380fi 2381 2382fi 2383INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2384 2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2386$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2387if test -z "$MKDIR_P"; then 2388 if ${ac_cv_path_mkdir+:} false; then : 2389 $as_echo_n "(cached) " >&6 2390else 2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2392for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2393do 2394 IFS=$as_save_IFS 2395 test -z "$as_dir" && as_dir=. 2396 for ac_prog in mkdir gmkdir; do 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2399 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2400 'mkdir (GNU coreutils) '* | \ 2401 'mkdir (coreutils) '* | \ 2402 'mkdir (fileutils) '4.1*) 2403 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2404 break 3;; 2405 esac 2406 done 2407 done 2408 done 2409IFS=$as_save_IFS 2410 2411fi 2412 2413 test -d ./--version && rmdir ./--version 2414 if test "${ac_cv_path_mkdir+set}" = set; then 2415 MKDIR_P="$ac_cv_path_mkdir -p" 2416 else 2417 # As a last resort, use the slow shell script. Don't cache a 2418 # value for MKDIR_P within a source directory, because that will 2419 # break other packages using the cache if that directory is 2420 # removed, or if the value is a relative name. 2421 MKDIR_P="$ac_install_sh -d" 2422 fi 2423fi 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2425$as_echo "$MKDIR_P" >&6; } 2426 2427mkdir_p="$MKDIR_P" 2428case $mkdir_p in 2429 [\\/$]* | ?:[\\/]*) ;; 2430 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2431esac 2432 2433for ac_prog in gawk mawk nawk awk 2434do 2435 # Extract the first word of "$ac_prog", so it can be a program name with args. 2436set dummy $ac_prog; ac_word=$2 2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2438$as_echo_n "checking for $ac_word... " >&6; } 2439if ${ac_cv_prog_AWK+:} false; then : 2440 $as_echo_n "(cached) " >&6 2441else 2442 if test -n "$AWK"; then 2443 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2444else 2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2446for as_dir in $PATH 2447do 2448 IFS=$as_save_IFS 2449 test -z "$as_dir" && as_dir=. 2450 for ac_exec_ext in '' $ac_executable_extensions; do 2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2452 ac_cv_prog_AWK="$ac_prog" 2453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2454 break 2 2455 fi 2456done 2457 done 2458IFS=$as_save_IFS 2459 2460fi 2461fi 2462AWK=$ac_cv_prog_AWK 2463if test -n "$AWK"; then 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2465$as_echo "$AWK" >&6; } 2466else 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2468$as_echo "no" >&6; } 2469fi 2470 2471 2472 test -n "$AWK" && break 2473done 2474 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2476$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2477set x ${MAKE-make} 2478ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2479if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2480 $as_echo_n "(cached) " >&6 2481else 2482 cat >conftest.make <<\_ACEOF 2483SHELL = /bin/sh 2484all: 2485 @echo '@@@%%%=$(MAKE)=@@@%%%' 2486_ACEOF 2487# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2488case `${MAKE-make} -f conftest.make 2>/dev/null` in 2489 *@@@%%%=?*=@@@%%%*) 2490 eval ac_cv_prog_make_${ac_make}_set=yes;; 2491 *) 2492 eval ac_cv_prog_make_${ac_make}_set=no;; 2493esac 2494rm -f conftest.make 2495fi 2496if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2498$as_echo "yes" >&6; } 2499 SET_MAKE= 2500else 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2502$as_echo "no" >&6; } 2503 SET_MAKE="MAKE=${MAKE-make}" 2504fi 2505 2506rm -rf .tst 2>/dev/null 2507mkdir .tst 2>/dev/null 2508if test -d .tst; then 2509 am__leading_dot=. 2510else 2511 am__leading_dot=_ 2512fi 2513rmdir .tst 2>/dev/null 2514 2515if test "`cd $srcdir && pwd`" != "`pwd`"; then 2516 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2517 # is not polluted with repeated "-I." 2518 am__isrc=' -I$(srcdir)' 2519 # test to see if srcdir already configured 2520 if test -f $srcdir/config.status; then 2521 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2522 fi 2523fi 2524 2525# test whether we have cygpath 2526if test -z "$CYGPATH_W"; then 2527 if (cygpath --version) >/dev/null 2>/dev/null; then 2528 CYGPATH_W='cygpath -w' 2529 else 2530 CYGPATH_W=echo 2531 fi 2532fi 2533 2534 2535# Define the identity of the package. 2536 PACKAGE='xgamma' 2537 VERSION='1.0.5' 2538 2539 2540cat >>confdefs.h <<_ACEOF 2541#define PACKAGE "$PACKAGE" 2542_ACEOF 2543 2544 2545cat >>confdefs.h <<_ACEOF 2546#define VERSION "$VERSION" 2547_ACEOF 2548 2549# Some tools Automake needs. 2550 2551ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2552 2553 2554AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2555 2556 2557AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2558 2559 2560AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2561 2562 2563MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2564 2565# We need awk for the "check" target. The system "awk" is bad on 2566# some platforms. 2567# Always define AMTAR for backward compatibility. 2568 2569AMTAR=${AMTAR-"${am_missing_run}tar"} 2570 2571am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2572 2573 2574 2575 2576 2577 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2579$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2580 # Check whether --enable-maintainer-mode was given. 2581if test "${enable_maintainer_mode+set}" = set; then : 2582 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2583else 2584 USE_MAINTAINER_MODE=no 2585fi 2586 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2588$as_echo "$USE_MAINTAINER_MODE" >&6; } 2589 if test $USE_MAINTAINER_MODE = yes; then 2590 MAINTAINER_MODE_TRUE= 2591 MAINTAINER_MODE_FALSE='#' 2592else 2593 MAINTAINER_MODE_TRUE='#' 2594 MAINTAINER_MODE_FALSE= 2595fi 2596 2597 MAINT=$MAINTAINER_MODE_TRUE 2598 2599 2600 2601# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613DEPDIR="${am__leading_dot}deps" 2614 2615ac_config_commands="$ac_config_commands depfiles" 2616 2617 2618am_make=${MAKE-make} 2619cat > confinc << 'END' 2620am__doit: 2621 @echo this is the am__doit target 2622.PHONY: am__doit 2623END 2624# If we don't find an include directive, just comment out the code. 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2626$as_echo_n "checking for style of include used by $am_make... " >&6; } 2627am__include="#" 2628am__quote= 2629_am_result=none 2630# First try GNU make style include. 2631echo "include confinc" > confmf 2632# Ignore all kinds of additional output from `make'. 2633case `$am_make -s -f confmf 2> /dev/null` in #( 2634*the\ am__doit\ target*) 2635 am__include=include 2636 am__quote= 2637 _am_result=GNU 2638 ;; 2639esac 2640# Now try BSD make style include. 2641if test "$am__include" = "#"; then 2642 echo '.include "confinc"' > confmf 2643 case `$am_make -s -f confmf 2> /dev/null` in #( 2644 *the\ am__doit\ target*) 2645 am__include=.include 2646 am__quote="\"" 2647 _am_result=BSD 2648 ;; 2649 esac 2650fi 2651 2652 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2654$as_echo "$_am_result" >&6; } 2655rm -f confinc confmf 2656 2657# Check whether --enable-dependency-tracking was given. 2658if test "${enable_dependency_tracking+set}" = set; then : 2659 enableval=$enable_dependency_tracking; 2660fi 2661 2662if test "x$enable_dependency_tracking" != xno; then 2663 am_depcomp="$ac_aux_dir/depcomp" 2664 AMDEPBACKSLASH='\' 2665fi 2666 if test "x$enable_dependency_tracking" != xno; then 2667 AMDEP_TRUE= 2668 AMDEP_FALSE='#' 2669else 2670 AMDEP_TRUE='#' 2671 AMDEP_FALSE= 2672fi 2673 2674 2675ac_ext=c 2676ac_cpp='$CPP $CPPFLAGS' 2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2679ac_compiler_gnu=$ac_cv_c_compiler_gnu 2680if test -n "$ac_tool_prefix"; then 2681 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2682set dummy ${ac_tool_prefix}gcc; ac_word=$2 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2684$as_echo_n "checking for $ac_word... " >&6; } 2685if ${ac_cv_prog_CC+:} false; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 if test -n "$CC"; then 2689 ac_cv_prog_CC="$CC" # Let the user override the test. 2690else 2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2692for as_dir in $PATH 2693do 2694 IFS=$as_save_IFS 2695 test -z "$as_dir" && as_dir=. 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2698 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2700 break 2 2701 fi 2702done 2703 done 2704IFS=$as_save_IFS 2705 2706fi 2707fi 2708CC=$ac_cv_prog_CC 2709if test -n "$CC"; then 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2711$as_echo "$CC" >&6; } 2712else 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714$as_echo "no" >&6; } 2715fi 2716 2717 2718fi 2719if test -z "$ac_cv_prog_CC"; then 2720 ac_ct_CC=$CC 2721 # Extract the first word of "gcc", so it can be a program name with args. 2722set dummy gcc; ac_word=$2 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724$as_echo_n "checking for $ac_word... " >&6; } 2725if ${ac_cv_prog_ac_ct_CC+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 if test -n "$ac_ct_CC"; then 2729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2730else 2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2738 ac_cv_prog_ac_ct_CC="gcc" 2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743 done 2744IFS=$as_save_IFS 2745 2746fi 2747fi 2748ac_ct_CC=$ac_cv_prog_ac_ct_CC 2749if test -n "$ac_ct_CC"; then 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2751$as_echo "$ac_ct_CC" >&6; } 2752else 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754$as_echo "no" >&6; } 2755fi 2756 2757 if test "x$ac_ct_CC" = x; then 2758 CC="" 2759 else 2760 case $cross_compiling:$ac_tool_warned in 2761yes:) 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2764ac_tool_warned=yes ;; 2765esac 2766 CC=$ac_ct_CC 2767 fi 2768else 2769 CC="$ac_cv_prog_CC" 2770fi 2771 2772if test -z "$CC"; then 2773 if test -n "$ac_tool_prefix"; then 2774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2775set dummy ${ac_tool_prefix}cc; ac_word=$2 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2777$as_echo_n "checking for $ac_word... " >&6; } 2778if ${ac_cv_prog_CC+:} false; then : 2779 $as_echo_n "(cached) " >&6 2780else 2781 if test -n "$CC"; then 2782 ac_cv_prog_CC="$CC" # Let the user override the test. 2783else 2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2785for as_dir in $PATH 2786do 2787 IFS=$as_save_IFS 2788 test -z "$as_dir" && as_dir=. 2789 for ac_exec_ext in '' $ac_executable_extensions; do 2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2791 ac_cv_prog_CC="${ac_tool_prefix}cc" 2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2793 break 2 2794 fi 2795done 2796 done 2797IFS=$as_save_IFS 2798 2799fi 2800fi 2801CC=$ac_cv_prog_CC 2802if test -n "$CC"; then 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2804$as_echo "$CC" >&6; } 2805else 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2807$as_echo "no" >&6; } 2808fi 2809 2810 2811 fi 2812fi 2813if test -z "$CC"; then 2814 # Extract the first word of "cc", so it can be a program name with args. 2815set dummy cc; ac_word=$2 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2817$as_echo_n "checking for $ac_word... " >&6; } 2818if ${ac_cv_prog_CC+:} false; then : 2819 $as_echo_n "(cached) " >&6 2820else 2821 if test -n "$CC"; then 2822 ac_cv_prog_CC="$CC" # Let the user override the test. 2823else 2824 ac_prog_rejected=no 2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2826for as_dir in $PATH 2827do 2828 IFS=$as_save_IFS 2829 test -z "$as_dir" && as_dir=. 2830 for ac_exec_ext in '' $ac_executable_extensions; do 2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2832 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2833 ac_prog_rejected=yes 2834 continue 2835 fi 2836 ac_cv_prog_CC="cc" 2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840done 2841 done 2842IFS=$as_save_IFS 2843 2844if test $ac_prog_rejected = yes; then 2845 # We found a bogon in the path, so make sure we never use it. 2846 set dummy $ac_cv_prog_CC 2847 shift 2848 if test $# != 0; then 2849 # We chose a different compiler from the bogus one. 2850 # However, it has the same basename, so the bogon will be chosen 2851 # first if we set CC to just the basename; use the full file name. 2852 shift 2853 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2854 fi 2855fi 2856fi 2857fi 2858CC=$ac_cv_prog_CC 2859if test -n "$CC"; then 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2861$as_echo "$CC" >&6; } 2862else 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2864$as_echo "no" >&6; } 2865fi 2866 2867 2868fi 2869if test -z "$CC"; then 2870 if test -n "$ac_tool_prefix"; then 2871 for ac_prog in cl.exe 2872 do 2873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2874set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if ${ac_cv_prog_CC+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$CC"; then 2881 ac_cv_prog_CC="$CC" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2890 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900CC=$ac_cv_prog_CC 2901if test -n "$CC"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2903$as_echo "$CC" >&6; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 2910 test -n "$CC" && break 2911 done 2912fi 2913if test -z "$CC"; then 2914 ac_ct_CC=$CC 2915 for ac_prog in cl.exe 2916do 2917 # Extract the first word of "$ac_prog", so it can be a program name with args. 2918set dummy $ac_prog; ac_word=$2 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2920$as_echo_n "checking for $ac_word... " >&6; } 2921if ${ac_cv_prog_ac_ct_CC+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 if test -n "$ac_ct_CC"; then 2925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2926else 2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2928for as_dir in $PATH 2929do 2930 IFS=$as_save_IFS 2931 test -z "$as_dir" && as_dir=. 2932 for ac_exec_ext in '' $ac_executable_extensions; do 2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2934 ac_cv_prog_ac_ct_CC="$ac_prog" 2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2936 break 2 2937 fi 2938done 2939 done 2940IFS=$as_save_IFS 2941 2942fi 2943fi 2944ac_ct_CC=$ac_cv_prog_ac_ct_CC 2945if test -n "$ac_ct_CC"; then 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2947$as_echo "$ac_ct_CC" >&6; } 2948else 2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2950$as_echo "no" >&6; } 2951fi 2952 2953 2954 test -n "$ac_ct_CC" && break 2955done 2956 2957 if test "x$ac_ct_CC" = x; then 2958 CC="" 2959 else 2960 case $cross_compiling:$ac_tool_warned in 2961yes:) 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2964ac_tool_warned=yes ;; 2965esac 2966 CC=$ac_ct_CC 2967 fi 2968fi 2969 2970fi 2971 2972 2973test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2975as_fn_error $? "no acceptable C compiler found in \$PATH 2976See \`config.log' for more details" "$LINENO" 5; } 2977 2978# Provide some information about the compiler. 2979$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2980set X $ac_compile 2981ac_compiler=$2 2982for ac_option in --version -v -V -qversion; do 2983 { { ac_try="$ac_compiler $ac_option >&5" 2984case "(($ac_try" in 2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2986 *) ac_try_echo=$ac_try;; 2987esac 2988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2989$as_echo "$ac_try_echo"; } >&5 2990 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2991 ac_status=$? 2992 if test -s conftest.err; then 2993 sed '10a\ 2994... rest of stderr output deleted ... 2995 10q' conftest.err >conftest.er1 2996 cat conftest.er1 >&5 2997 fi 2998 rm -f conftest.er1 conftest.err 2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3000 test $ac_status = 0; } 3001done 3002 3003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3004/* end confdefs.h. */ 3005 3006int 3007main () 3008{ 3009 3010 ; 3011 return 0; 3012} 3013_ACEOF 3014ac_clean_files_save=$ac_clean_files 3015ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3016# Try to create an executable without -o first, disregard a.out. 3017# It will help us diagnose broken compilers, and finding out an intuition 3018# of exeext. 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3020$as_echo_n "checking whether the C compiler works... " >&6; } 3021ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3022 3023# The possible output files: 3024ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3025 3026ac_rmfiles= 3027for ac_file in $ac_files 3028do 3029 case $ac_file in 3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3031 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3032 esac 3033done 3034rm -f $ac_rmfiles 3035 3036if { { ac_try="$ac_link_default" 3037case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3042$as_echo "$ac_try_echo"; } >&5 3043 (eval "$ac_link_default") 2>&5 3044 ac_status=$? 3045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3046 test $ac_status = 0; }; then : 3047 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3048# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3049# in a Makefile. We should not override ac_cv_exeext if it was cached, 3050# so that the user can short-circuit this test for compilers unknown to 3051# Autoconf. 3052for ac_file in $ac_files '' 3053do 3054 test -f "$ac_file" || continue 3055 case $ac_file in 3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3057 ;; 3058 [ab].out ) 3059 # We found the default executable, but exeext='' is most 3060 # certainly right. 3061 break;; 3062 *.* ) 3063 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3064 then :; else 3065 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3066 fi 3067 # We set ac_cv_exeext here because the later test for it is not 3068 # safe: cross compilers may not add the suffix if given an `-o' 3069 # argument, so we may need to know it at that point already. 3070 # Even if this section looks crufty: it has the advantage of 3071 # actually working. 3072 break;; 3073 * ) 3074 break;; 3075 esac 3076done 3077test "$ac_cv_exeext" = no && ac_cv_exeext= 3078 3079else 3080 ac_file='' 3081fi 3082if test -z "$ac_file"; then : 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084$as_echo "no" >&6; } 3085$as_echo "$as_me: failed program was:" >&5 3086sed 's/^/| /' conftest.$ac_ext >&5 3087 3088{ { $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 77 "C compiler cannot create executables 3091See \`config.log' for more details" "$LINENO" 5; } 3092else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3094$as_echo "yes" >&6; } 3095fi 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3097$as_echo_n "checking for C compiler default output file name... " >&6; } 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3099$as_echo "$ac_file" >&6; } 3100ac_exeext=$ac_cv_exeext 3101 3102rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3103ac_clean_files=$ac_clean_files_save 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3105$as_echo_n "checking for suffix of executables... " >&6; } 3106if { { ac_try="$ac_link" 3107case "(($ac_try" in 3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3109 *) ac_try_echo=$ac_try;; 3110esac 3111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3112$as_echo "$ac_try_echo"; } >&5 3113 (eval "$ac_link") 2>&5 3114 ac_status=$? 3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3116 test $ac_status = 0; }; then : 3117 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3118# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3119# work properly (i.e., refer to `conftest.exe'), while it won't with 3120# `rm'. 3121for ac_file in conftest.exe conftest conftest.*; do 3122 test -f "$ac_file" || continue 3123 case $ac_file in 3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3126 break;; 3127 * ) break;; 3128 esac 3129done 3130else 3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3133as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3134See \`config.log' for more details" "$LINENO" 5; } 3135fi 3136rm -f conftest conftest$ac_cv_exeext 3137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3138$as_echo "$ac_cv_exeext" >&6; } 3139 3140rm -f conftest.$ac_ext 3141EXEEXT=$ac_cv_exeext 3142ac_exeext=$EXEEXT 3143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3144/* end confdefs.h. */ 3145#include <stdio.h> 3146int 3147main () 3148{ 3149FILE *f = fopen ("conftest.out", "w"); 3150 return ferror (f) || fclose (f) != 0; 3151 3152 ; 3153 return 0; 3154} 3155_ACEOF 3156ac_clean_files="$ac_clean_files conftest.out" 3157# Check that the compiler produces executables we can run. If not, either 3158# the compiler is broken, or we cross compile. 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3160$as_echo_n "checking whether we are cross compiling... " >&6; } 3161if test "$cross_compiling" != yes; then 3162 { { ac_try="$ac_link" 3163case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3168$as_echo "$ac_try_echo"; } >&5 3169 (eval "$ac_link") 2>&5 3170 ac_status=$? 3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3172 test $ac_status = 0; } 3173 if { ac_try='./conftest$ac_cv_exeext' 3174 { { case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177esac 3178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3179$as_echo "$ac_try_echo"; } >&5 3180 (eval "$ac_try") 2>&5 3181 ac_status=$? 3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3183 test $ac_status = 0; }; }; then 3184 cross_compiling=no 3185 else 3186 if test "$cross_compiling" = maybe; then 3187 cross_compiling=yes 3188 else 3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3191as_fn_error $? "cannot run C compiled programs. 3192If you meant to cross compile, use \`--host'. 3193See \`config.log' for more details" "$LINENO" 5; } 3194 fi 3195 fi 3196fi 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3198$as_echo "$cross_compiling" >&6; } 3199 3200rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3201ac_clean_files=$ac_clean_files_save 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3203$as_echo_n "checking for suffix of object files... " >&6; } 3204if ${ac_cv_objext+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3208/* end confdefs.h. */ 3209 3210int 3211main () 3212{ 3213 3214 ; 3215 return 0; 3216} 3217_ACEOF 3218rm -f conftest.o conftest.obj 3219if { { ac_try="$ac_compile" 3220case "(($ac_try" in 3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3222 *) ac_try_echo=$ac_try;; 3223esac 3224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3225$as_echo "$ac_try_echo"; } >&5 3226 (eval "$ac_compile") 2>&5 3227 ac_status=$? 3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3229 test $ac_status = 0; }; then : 3230 for ac_file in conftest.o conftest.obj conftest.*; do 3231 test -f "$ac_file" || continue; 3232 case $ac_file in 3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3234 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3235 break;; 3236 esac 3237done 3238else 3239 $as_echo "$as_me: failed program was:" >&5 3240sed 's/^/| /' conftest.$ac_ext >&5 3241 3242{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3244as_fn_error $? "cannot compute suffix of object files: cannot compile 3245See \`config.log' for more details" "$LINENO" 5; } 3246fi 3247rm -f conftest.$ac_cv_objext conftest.$ac_ext 3248fi 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3250$as_echo "$ac_cv_objext" >&6; } 3251OBJEXT=$ac_cv_objext 3252ac_objext=$OBJEXT 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3254$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3255if ${ac_cv_c_compiler_gnu+:} false; then : 3256 $as_echo_n "(cached) " >&6 3257else 3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3259/* end confdefs.h. */ 3260 3261int 3262main () 3263{ 3264#ifndef __GNUC__ 3265 choke me 3266#endif 3267 3268 ; 3269 return 0; 3270} 3271_ACEOF 3272if ac_fn_c_try_compile "$LINENO"; then : 3273 ac_compiler_gnu=yes 3274else 3275 ac_compiler_gnu=no 3276fi 3277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3278ac_cv_c_compiler_gnu=$ac_compiler_gnu 3279 3280fi 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3282$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3283if test $ac_compiler_gnu = yes; then 3284 GCC=yes 3285else 3286 GCC= 3287fi 3288ac_test_CFLAGS=${CFLAGS+set} 3289ac_save_CFLAGS=$CFLAGS 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3291$as_echo_n "checking whether $CC accepts -g... " >&6; } 3292if ${ac_cv_prog_cc_g+:} false; then : 3293 $as_echo_n "(cached) " >&6 3294else 3295 ac_save_c_werror_flag=$ac_c_werror_flag 3296 ac_c_werror_flag=yes 3297 ac_cv_prog_cc_g=no 3298 CFLAGS="-g" 3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3300/* end confdefs.h. */ 3301 3302int 3303main () 3304{ 3305 3306 ; 3307 return 0; 3308} 3309_ACEOF 3310if ac_fn_c_try_compile "$LINENO"; then : 3311 ac_cv_prog_cc_g=yes 3312else 3313 CFLAGS="" 3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315/* end confdefs.h. */ 3316 3317int 3318main () 3319{ 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325if ac_fn_c_try_compile "$LINENO"; then : 3326 3327else 3328 ac_c_werror_flag=$ac_save_c_werror_flag 3329 CFLAGS="-g" 3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3331/* end confdefs.h. */ 3332 3333int 3334main () 3335{ 3336 3337 ; 3338 return 0; 3339} 3340_ACEOF 3341if ac_fn_c_try_compile "$LINENO"; then : 3342 ac_cv_prog_cc_g=yes 3343fi 3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3345fi 3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3347fi 3348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3349 ac_c_werror_flag=$ac_save_c_werror_flag 3350fi 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3352$as_echo "$ac_cv_prog_cc_g" >&6; } 3353if test "$ac_test_CFLAGS" = set; then 3354 CFLAGS=$ac_save_CFLAGS 3355elif test $ac_cv_prog_cc_g = yes; then 3356 if test "$GCC" = yes; then 3357 CFLAGS="-g -O2" 3358 else 3359 CFLAGS="-g" 3360 fi 3361else 3362 if test "$GCC" = yes; then 3363 CFLAGS="-O2" 3364 else 3365 CFLAGS= 3366 fi 3367fi 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3369$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3370if ${ac_cv_prog_cc_c89+:} false; then : 3371 $as_echo_n "(cached) " >&6 3372else 3373 ac_cv_prog_cc_c89=no 3374ac_save_CC=$CC 3375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3376/* end confdefs.h. */ 3377#include <stdarg.h> 3378#include <stdio.h> 3379#include <sys/types.h> 3380#include <sys/stat.h> 3381/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3382struct buf { int x; }; 3383FILE * (*rcsopen) (struct buf *, struct stat *, int); 3384static char *e (p, i) 3385 char **p; 3386 int i; 3387{ 3388 return p[i]; 3389} 3390static char *f (char * (*g) (char **, int), char **p, ...) 3391{ 3392 char *s; 3393 va_list v; 3394 va_start (v,p); 3395 s = g (p, va_arg (v,int)); 3396 va_end (v); 3397 return s; 3398} 3399 3400/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3401 function prototypes and stuff, but not '\xHH' hex character constants. 3402 These don't provoke an error unfortunately, instead are silently treated 3403 as 'x'. The following induces an error, until -std is added to get 3404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3405 array size at least. It's necessary to write '\x00'==0 to get something 3406 that's true only with -std. */ 3407int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3408 3409/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3410 inside strings and character constants. */ 3411#define FOO(x) 'x' 3412int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3413 3414int test (int i, double x); 3415struct s1 {int (*f) (int a);}; 3416struct s2 {int (*f) (double a);}; 3417int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3418int argc; 3419char **argv; 3420int 3421main () 3422{ 3423return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3429 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3430do 3431 CC="$ac_save_CC $ac_arg" 3432 if ac_fn_c_try_compile "$LINENO"; then : 3433 ac_cv_prog_cc_c89=$ac_arg 3434fi 3435rm -f core conftest.err conftest.$ac_objext 3436 test "x$ac_cv_prog_cc_c89" != "xno" && break 3437done 3438rm -f conftest.$ac_ext 3439CC=$ac_save_CC 3440 3441fi 3442# AC_CACHE_VAL 3443case "x$ac_cv_prog_cc_c89" in 3444 x) 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3446$as_echo "none needed" >&6; } ;; 3447 xno) 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3449$as_echo "unsupported" >&6; } ;; 3450 *) 3451 CC="$CC $ac_cv_prog_cc_c89" 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3453$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3454esac 3455if test "x$ac_cv_prog_cc_c89" != xno; then : 3456 3457fi 3458 3459ac_ext=c 3460ac_cpp='$CPP $CPPFLAGS' 3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3463ac_compiler_gnu=$ac_cv_c_compiler_gnu 3464 3465depcc="$CC" am_compiler_list= 3466 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3468$as_echo_n "checking dependency style of $depcc... " >&6; } 3469if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3470 $as_echo_n "(cached) " >&6 3471else 3472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3473 # We make a subdir and do the tests there. Otherwise we can end up 3474 # making bogus files that we don't know about and never remove. For 3475 # instance it was reported that on HP-UX the gcc test will end up 3476 # making a dummy file named `D' -- because `-MD' means `put the output 3477 # in D'. 3478 mkdir conftest.dir 3479 # Copy depcomp to subdir because otherwise we won't find it if we're 3480 # using a relative directory. 3481 cp "$am_depcomp" conftest.dir 3482 cd conftest.dir 3483 # We will build objects and dependencies in a subdirectory because 3484 # it helps to detect inapplicable dependency modes. For instance 3485 # both Tru64's cc and ICC support -MD to output dependencies as a 3486 # side effect of compilation, but ICC will put the dependencies in 3487 # the current directory while Tru64 will put them in the object 3488 # directory. 3489 mkdir sub 3490 3491 am_cv_CC_dependencies_compiler_type=none 3492 if test "$am_compiler_list" = ""; then 3493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3494 fi 3495 am__universal=false 3496 case " $depcc " in #( 3497 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3498 esac 3499 3500 for depmode in $am_compiler_list; do 3501 # Setup a source with many dependencies, because some compilers 3502 # like to wrap large dependency lists on column 80 (with \), and 3503 # we should not choose a depcomp mode which is confused by this. 3504 # 3505 # We need to recreate these files for each test, as the compiler may 3506 # overwrite some of them when testing with obscure command lines. 3507 # This happens at least with the AIX C compiler. 3508 : > sub/conftest.c 3509 for i in 1 2 3 4 5 6; do 3510 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3512 # Solaris 8's {/usr,}/bin/sh. 3513 touch sub/conftst$i.h 3514 done 3515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3516 3517 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3518 # mode. It turns out that the SunPro C++ compiler does not properly 3519 # handle `-M -o', and we need to detect this. Also, some Intel 3520 # versions had trouble with output in subdirs 3521 am__obj=sub/conftest.${OBJEXT-o} 3522 am__minus_obj="-o $am__obj" 3523 case $depmode in 3524 gcc) 3525 # This depmode causes a compiler race in universal mode. 3526 test "$am__universal" = false || continue 3527 ;; 3528 nosideeffect) 3529 # after this tag, mechanisms are not by side-effect, so they'll 3530 # only be used when explicitly requested 3531 if test "x$enable_dependency_tracking" = xyes; then 3532 continue 3533 else 3534 break 3535 fi 3536 ;; 3537 msvisualcpp | msvcmsys) 3538 # This compiler won't grok `-c -o', but also, the minuso test has 3539 # not run yet. These depmodes are late enough in the game, and 3540 # so weak that their functioning should not be impacted. 3541 am__obj=conftest.${OBJEXT-o} 3542 am__minus_obj= 3543 ;; 3544 none) break ;; 3545 esac 3546 if depmode=$depmode \ 3547 source=sub/conftest.c object=$am__obj \ 3548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3550 >/dev/null 2>conftest.err && 3551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3555 # icc doesn't choke on unknown options, it will just issue warnings 3556 # or remarks (even with -Werror). So we grep stderr for any message 3557 # that says an option was ignored or not supported. 3558 # When given -MP, icc 7.0 and 7.1 complain thusly: 3559 # icc: Command line warning: ignoring option '-M'; no argument required 3560 # The diagnosis changed in icc 8.0: 3561 # icc: Command line remark: option '-MP' not supported 3562 if (grep 'ignoring option' conftest.err || 3563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3564 am_cv_CC_dependencies_compiler_type=$depmode 3565 break 3566 fi 3567 fi 3568 done 3569 3570 cd .. 3571 rm -rf conftest.dir 3572else 3573 am_cv_CC_dependencies_compiler_type=none 3574fi 3575 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3578$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3579CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3580 3581 if 3582 test "x$enable_dependency_tracking" != xno \ 3583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3584 am__fastdepCC_TRUE= 3585 am__fastdepCC_FALSE='#' 3586else 3587 am__fastdepCC_TRUE='#' 3588 am__fastdepCC_FALSE= 3589fi 3590 3591 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3593$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3594if ${ac_cv_prog_cc_c99+:} false; then : 3595 $as_echo_n "(cached) " >&6 3596else 3597 ac_cv_prog_cc_c99=no 3598ac_save_CC=$CC 3599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601#include <stdarg.h> 3602#include <stdbool.h> 3603#include <stdlib.h> 3604#include <wchar.h> 3605#include <stdio.h> 3606 3607// Check varargs macros. These examples are taken from C99 6.10.3.5. 3608#define debug(...) fprintf (stderr, __VA_ARGS__) 3609#define showlist(...) puts (#__VA_ARGS__) 3610#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3611static void 3612test_varargs_macros (void) 3613{ 3614 int x = 1234; 3615 int y = 5678; 3616 debug ("Flag"); 3617 debug ("X = %d\n", x); 3618 showlist (The first, second, and third items.); 3619 report (x>y, "x is %d but y is %d", x, y); 3620} 3621 3622// Check long long types. 3623#define BIG64 18446744073709551615ull 3624#define BIG32 4294967295ul 3625#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3626#if !BIG_OK 3627 your preprocessor is broken; 3628#endif 3629#if BIG_OK 3630#else 3631 your preprocessor is broken; 3632#endif 3633static long long int bignum = -9223372036854775807LL; 3634static unsigned long long int ubignum = BIG64; 3635 3636struct incomplete_array 3637{ 3638 int datasize; 3639 double data[]; 3640}; 3641 3642struct named_init { 3643 int number; 3644 const wchar_t *name; 3645 double average; 3646}; 3647 3648typedef const char *ccp; 3649 3650static inline int 3651test_restrict (ccp restrict text) 3652{ 3653 // See if C++-style comments work. 3654 // Iterate through items via the restricted pointer. 3655 // Also check for declarations in for loops. 3656 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3657 continue; 3658 return 0; 3659} 3660 3661// Check varargs and va_copy. 3662static void 3663test_varargs (const char *format, ...) 3664{ 3665 va_list args; 3666 va_start (args, format); 3667 va_list args_copy; 3668 va_copy (args_copy, args); 3669 3670 const char *str; 3671 int number; 3672 float fnumber; 3673 3674 while (*format) 3675 { 3676 switch (*format++) 3677 { 3678 case 's': // string 3679 str = va_arg (args_copy, const char *); 3680 break; 3681 case 'd': // int 3682 number = va_arg (args_copy, int); 3683 break; 3684 case 'f': // float 3685 fnumber = va_arg (args_copy, double); 3686 break; 3687 default: 3688 break; 3689 } 3690 } 3691 va_end (args_copy); 3692 va_end (args); 3693} 3694 3695int 3696main () 3697{ 3698 3699 // Check bool. 3700 _Bool success = false; 3701 3702 // Check restrict. 3703 if (test_restrict ("String literal") == 0) 3704 success = true; 3705 char *restrict newvar = "Another string"; 3706 3707 // Check varargs. 3708 test_varargs ("s, d' f .", "string", 65, 34.234); 3709 test_varargs_macros (); 3710 3711 // Check flexible array members. 3712 struct incomplete_array *ia = 3713 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3714 ia->datasize = 10; 3715 for (int i = 0; i < ia->datasize; ++i) 3716 ia->data[i] = i * 1.234; 3717 3718 // Check named initializers. 3719 struct named_init ni = { 3720 .number = 34, 3721 .name = L"Test wide string", 3722 .average = 543.34343, 3723 }; 3724 3725 ni.number = 58; 3726 3727 int dynamic_array[ni.number]; 3728 dynamic_array[ni.number - 1] = 543; 3729 3730 // work around unused variable warnings 3731 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3732 || dynamic_array[ni.number - 1] != 543); 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3739do 3740 CC="$ac_save_CC $ac_arg" 3741 if ac_fn_c_try_compile "$LINENO"; then : 3742 ac_cv_prog_cc_c99=$ac_arg 3743fi 3744rm -f core conftest.err conftest.$ac_objext 3745 test "x$ac_cv_prog_cc_c99" != "xno" && break 3746done 3747rm -f conftest.$ac_ext 3748CC=$ac_save_CC 3749 3750fi 3751# AC_CACHE_VAL 3752case "x$ac_cv_prog_cc_c99" in 3753 x) 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3755$as_echo "none needed" >&6; } ;; 3756 xno) 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3758$as_echo "unsupported" >&6; } ;; 3759 *) 3760 CC="$CC $ac_cv_prog_cc_c99" 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3762$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3763esac 3764if test "x$ac_cv_prog_cc_c99" != xno; then : 3765 3766fi 3767 3768 3769 3770ac_ext=c 3771ac_cpp='$CPP $CPPFLAGS' 3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3774ac_compiler_gnu=$ac_cv_c_compiler_gnu 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3776$as_echo_n "checking how to run the C preprocessor... " >&6; } 3777# On Suns, sometimes $CPP names a directory. 3778if test -n "$CPP" && test -d "$CPP"; then 3779 CPP= 3780fi 3781if test -z "$CPP"; then 3782 if ${ac_cv_prog_CPP+:} false; then : 3783 $as_echo_n "(cached) " >&6 3784else 3785 # Double quotes because CPP needs to be expanded 3786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3787 do 3788 ac_preproc_ok=false 3789for ac_c_preproc_warn_flag in '' yes 3790do 3791 # Use a header file that comes with gcc, so configuring glibc 3792 # with a fresh cross-compiler works. 3793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3794 # <limits.h> exists even on freestanding compilers. 3795 # On the NeXT, cc -E runs the code through the compiler's parser, 3796 # not just through cpp. "Syntax error" is here to catch this case. 3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3798/* end confdefs.h. */ 3799#ifdef __STDC__ 3800# include <limits.h> 3801#else 3802# include <assert.h> 3803#endif 3804 Syntax error 3805_ACEOF 3806if ac_fn_c_try_cpp "$LINENO"; then : 3807 3808else 3809 # Broken: fails on valid input. 3810continue 3811fi 3812rm -f conftest.err conftest.i conftest.$ac_ext 3813 3814 # OK, works on sane cases. Now check whether nonexistent headers 3815 # can be detected and how. 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817/* end confdefs.h. */ 3818#include <ac_nonexistent.h> 3819_ACEOF 3820if ac_fn_c_try_cpp "$LINENO"; then : 3821 # Broken: success on invalid input. 3822continue 3823else 3824 # Passes both tests. 3825ac_preproc_ok=: 3826break 3827fi 3828rm -f conftest.err conftest.i conftest.$ac_ext 3829 3830done 3831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3832rm -f conftest.i conftest.err conftest.$ac_ext 3833if $ac_preproc_ok; then : 3834 break 3835fi 3836 3837 done 3838 ac_cv_prog_CPP=$CPP 3839 3840fi 3841 CPP=$ac_cv_prog_CPP 3842else 3843 ac_cv_prog_CPP=$CPP 3844fi 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3846$as_echo "$CPP" >&6; } 3847ac_preproc_ok=false 3848for ac_c_preproc_warn_flag in '' yes 3849do 3850 # Use a header file that comes with gcc, so configuring glibc 3851 # with a fresh cross-compiler works. 3852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3853 # <limits.h> exists even on freestanding compilers. 3854 # On the NeXT, cc -E runs the code through the compiler's parser, 3855 # not just through cpp. "Syntax error" is here to catch this case. 3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3857/* end confdefs.h. */ 3858#ifdef __STDC__ 3859# include <limits.h> 3860#else 3861# include <assert.h> 3862#endif 3863 Syntax error 3864_ACEOF 3865if ac_fn_c_try_cpp "$LINENO"; then : 3866 3867else 3868 # Broken: fails on valid input. 3869continue 3870fi 3871rm -f conftest.err conftest.i conftest.$ac_ext 3872 3873 # OK, works on sane cases. Now check whether nonexistent headers 3874 # can be detected and how. 3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876/* end confdefs.h. */ 3877#include <ac_nonexistent.h> 3878_ACEOF 3879if ac_fn_c_try_cpp "$LINENO"; then : 3880 # Broken: success on invalid input. 3881continue 3882else 3883 # Passes both tests. 3884ac_preproc_ok=: 3885break 3886fi 3887rm -f conftest.err conftest.i conftest.$ac_ext 3888 3889done 3890# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3891rm -f conftest.i conftest.err conftest.$ac_ext 3892if $ac_preproc_ok; then : 3893 3894else 3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3897as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3898See \`config.log' for more details" "$LINENO" 5; } 3899fi 3900 3901ac_ext=c 3902ac_cpp='$CPP $CPPFLAGS' 3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3905ac_compiler_gnu=$ac_cv_c_compiler_gnu 3906 3907 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3909$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3910if ${ac_cv_path_GREP+:} false; then : 3911 $as_echo_n "(cached) " >&6 3912else 3913 if test -z "$GREP"; then 3914 ac_path_GREP_found=false 3915 # Loop through the user's path and test for each of PROGNAME-LIST 3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3917for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3918do 3919 IFS=$as_save_IFS 3920 test -z "$as_dir" && as_dir=. 3921 for ac_prog in grep ggrep; do 3922 for ac_exec_ext in '' $ac_executable_extensions; do 3923 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3924 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3925# Check for GNU ac_path_GREP and select it if it is found. 3926 # Check for GNU $ac_path_GREP 3927case `"$ac_path_GREP" --version 2>&1` in 3928*GNU*) 3929 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3930*) 3931 ac_count=0 3932 $as_echo_n 0123456789 >"conftest.in" 3933 while : 3934 do 3935 cat "conftest.in" "conftest.in" >"conftest.tmp" 3936 mv "conftest.tmp" "conftest.in" 3937 cp "conftest.in" "conftest.nl" 3938 $as_echo 'GREP' >> "conftest.nl" 3939 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3941 as_fn_arith $ac_count + 1 && ac_count=$as_val 3942 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3943 # Best one so far, save it but keep looking for a better one 3944 ac_cv_path_GREP="$ac_path_GREP" 3945 ac_path_GREP_max=$ac_count 3946 fi 3947 # 10*(2^10) chars as input seems more than enough 3948 test $ac_count -gt 10 && break 3949 done 3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3951esac 3952 3953 $ac_path_GREP_found && break 3 3954 done 3955 done 3956 done 3957IFS=$as_save_IFS 3958 if test -z "$ac_cv_path_GREP"; then 3959 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3960 fi 3961else 3962 ac_cv_path_GREP=$GREP 3963fi 3964 3965fi 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3967$as_echo "$ac_cv_path_GREP" >&6; } 3968 GREP="$ac_cv_path_GREP" 3969 3970 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3972$as_echo_n "checking for egrep... " >&6; } 3973if ${ac_cv_path_EGREP+:} false; then : 3974 $as_echo_n "(cached) " >&6 3975else 3976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3977 then ac_cv_path_EGREP="$GREP -E" 3978 else 3979 if test -z "$EGREP"; then 3980 ac_path_EGREP_found=false 3981 # Loop through the user's path and test for each of PROGNAME-LIST 3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3983for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3984do 3985 IFS=$as_save_IFS 3986 test -z "$as_dir" && as_dir=. 3987 for ac_prog in egrep; do 3988 for ac_exec_ext in '' $ac_executable_extensions; do 3989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3991# Check for GNU ac_path_EGREP and select it if it is found. 3992 # Check for GNU $ac_path_EGREP 3993case `"$ac_path_EGREP" --version 2>&1` in 3994*GNU*) 3995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3996*) 3997 ac_count=0 3998 $as_echo_n 0123456789 >"conftest.in" 3999 while : 4000 do 4001 cat "conftest.in" "conftest.in" >"conftest.tmp" 4002 mv "conftest.tmp" "conftest.in" 4003 cp "conftest.in" "conftest.nl" 4004 $as_echo 'EGREP' >> "conftest.nl" 4005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4007 as_fn_arith $ac_count + 1 && ac_count=$as_val 4008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4009 # Best one so far, save it but keep looking for a better one 4010 ac_cv_path_EGREP="$ac_path_EGREP" 4011 ac_path_EGREP_max=$ac_count 4012 fi 4013 # 10*(2^10) chars as input seems more than enough 4014 test $ac_count -gt 10 && break 4015 done 4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4017esac 4018 4019 $ac_path_EGREP_found && break 3 4020 done 4021 done 4022 done 4023IFS=$as_save_IFS 4024 if test -z "$ac_cv_path_EGREP"; then 4025 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4026 fi 4027else 4028 ac_cv_path_EGREP=$EGREP 4029fi 4030 4031 fi 4032fi 4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4034$as_echo "$ac_cv_path_EGREP" >&6; } 4035 EGREP="$ac_cv_path_EGREP" 4036 4037 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4039$as_echo_n "checking for ANSI C header files... " >&6; } 4040if ${ac_cv_header_stdc+:} false; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045#include <stdlib.h> 4046#include <stdarg.h> 4047#include <string.h> 4048#include <float.h> 4049 4050int 4051main () 4052{ 4053 4054 ; 4055 return 0; 4056} 4057_ACEOF 4058if ac_fn_c_try_compile "$LINENO"; then : 4059 ac_cv_header_stdc=yes 4060else 4061 ac_cv_header_stdc=no 4062fi 4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4064 4065if test $ac_cv_header_stdc = yes; then 4066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4068/* end confdefs.h. */ 4069#include <string.h> 4070 4071_ACEOF 4072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4073 $EGREP "memchr" >/dev/null 2>&1; then : 4074 4075else 4076 ac_cv_header_stdc=no 4077fi 4078rm -f conftest* 4079 4080fi 4081 4082if test $ac_cv_header_stdc = yes; then 4083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4085/* end confdefs.h. */ 4086#include <stdlib.h> 4087 4088_ACEOF 4089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4090 $EGREP "free" >/dev/null 2>&1; then : 4091 4092else 4093 ac_cv_header_stdc=no 4094fi 4095rm -f conftest* 4096 4097fi 4098 4099if test $ac_cv_header_stdc = yes; then 4100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4101 if test "$cross_compiling" = yes; then : 4102 : 4103else 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106#include <ctype.h> 4107#include <stdlib.h> 4108#if ((' ' & 0x0FF) == 0x020) 4109# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4110# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4111#else 4112# define ISLOWER(c) \ 4113 (('a' <= (c) && (c) <= 'i') \ 4114 || ('j' <= (c) && (c) <= 'r') \ 4115 || ('s' <= (c) && (c) <= 'z')) 4116# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4117#endif 4118 4119#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4120int 4121main () 4122{ 4123 int i; 4124 for (i = 0; i < 256; i++) 4125 if (XOR (islower (i), ISLOWER (i)) 4126 || toupper (i) != TOUPPER (i)) 4127 return 2; 4128 return 0; 4129} 4130_ACEOF 4131if ac_fn_c_try_run "$LINENO"; then : 4132 4133else 4134 ac_cv_header_stdc=no 4135fi 4136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4137 conftest.$ac_objext conftest.beam conftest.$ac_ext 4138fi 4139 4140fi 4141fi 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4143$as_echo "$ac_cv_header_stdc" >&6; } 4144if test $ac_cv_header_stdc = yes; then 4145 4146$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4147 4148fi 4149 4150# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4151for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4152 inttypes.h stdint.h unistd.h 4153do : 4154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4155ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4156" 4157if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4158 cat >>confdefs.h <<_ACEOF 4159#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4160_ACEOF 4161 4162fi 4163 4164done 4165 4166 4167 4168 4169 4170 4171ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4172if test "x$ac_cv_have_decl___clang__" = xyes; then : 4173 CLANGCC="yes" 4174else 4175 CLANGCC="no" 4176fi 4177 4178ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4179if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4180 INTELCC="yes" 4181else 4182 INTELCC="no" 4183fi 4184 4185ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4186if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4187 SUNCC="yes" 4188else 4189 SUNCC="no" 4190fi 4191 4192 4193 4194 4195if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4196 if test -n "$ac_tool_prefix"; then 4197 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4198set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4200$as_echo_n "checking for $ac_word... " >&6; } 4201if ${ac_cv_path_PKG_CONFIG+:} false; then : 4202 $as_echo_n "(cached) " >&6 4203else 4204 case $PKG_CONFIG in 4205 [\\/]* | ?:[\\/]*) 4206 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4207 ;; 4208 *) 4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4210for as_dir in $PATH 4211do 4212 IFS=$as_save_IFS 4213 test -z "$as_dir" && as_dir=. 4214 for ac_exec_ext in '' $ac_executable_extensions; do 4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4216 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4218 break 2 4219 fi 4220done 4221 done 4222IFS=$as_save_IFS 4223 4224 ;; 4225esac 4226fi 4227PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4228if test -n "$PKG_CONFIG"; then 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4230$as_echo "$PKG_CONFIG" >&6; } 4231else 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4233$as_echo "no" >&6; } 4234fi 4235 4236 4237fi 4238if test -z "$ac_cv_path_PKG_CONFIG"; then 4239 ac_pt_PKG_CONFIG=$PKG_CONFIG 4240 # Extract the first word of "pkg-config", so it can be a program name with args. 4241set dummy pkg-config; ac_word=$2 4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4243$as_echo_n "checking for $ac_word... " >&6; } 4244if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4245 $as_echo_n "(cached) " >&6 4246else 4247 case $ac_pt_PKG_CONFIG in 4248 [\\/]* | ?:[\\/]*) 4249 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4250 ;; 4251 *) 4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4253for as_dir in $PATH 4254do 4255 IFS=$as_save_IFS 4256 test -z "$as_dir" && as_dir=. 4257 for ac_exec_ext in '' $ac_executable_extensions; do 4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4259 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4261 break 2 4262 fi 4263done 4264 done 4265IFS=$as_save_IFS 4266 4267 ;; 4268esac 4269fi 4270ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4271if test -n "$ac_pt_PKG_CONFIG"; then 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4273$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4274else 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4276$as_echo "no" >&6; } 4277fi 4278 4279 if test "x$ac_pt_PKG_CONFIG" = x; then 4280 PKG_CONFIG="" 4281 else 4282 case $cross_compiling:$ac_tool_warned in 4283yes:) 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4286ac_tool_warned=yes ;; 4287esac 4288 PKG_CONFIG=$ac_pt_PKG_CONFIG 4289 fi 4290else 4291 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4292fi 4293 4294fi 4295if test -n "$PKG_CONFIG"; then 4296 _pkg_min_version=0.9.0 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4298$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4299 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4301$as_echo "yes" >&6; } 4302 else 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4304$as_echo "no" >&6; } 4305 PKG_CONFIG="" 4306 fi 4307 4308fi 4309# Make sure we can run config.sub. 4310$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4311 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4312 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4314$as_echo_n "checking build system type... " >&6; } 4315if ${ac_cv_build+:} false; then : 4316 $as_echo_n "(cached) " >&6 4317else 4318 ac_build_alias=$build_alias 4319test "x$ac_build_alias" = x && 4320 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4321test "x$ac_build_alias" = x && 4322 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4323ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4324 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4325 4326fi 4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4328$as_echo "$ac_cv_build" >&6; } 4329case $ac_cv_build in 4330*-*-*) ;; 4331*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4332esac 4333build=$ac_cv_build 4334ac_save_IFS=$IFS; IFS='-' 4335set x $ac_cv_build 4336shift 4337build_cpu=$1 4338build_vendor=$2 4339shift; shift 4340# Remember, the first character of IFS is used to create $*, 4341# except with old shells: 4342build_os=$* 4343IFS=$ac_save_IFS 4344case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4345 4346 4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4348$as_echo_n "checking host system type... " >&6; } 4349if ${ac_cv_host+:} false; then : 4350 $as_echo_n "(cached) " >&6 4351else 4352 if test "x$host_alias" = x; then 4353 ac_cv_host=$ac_cv_build 4354else 4355 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4356 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4357fi 4358 4359fi 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4361$as_echo "$ac_cv_host" >&6; } 4362case $ac_cv_host in 4363*-*-*) ;; 4364*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4365esac 4366host=$ac_cv_host 4367ac_save_IFS=$IFS; IFS='-' 4368set x $ac_cv_host 4369shift 4370host_cpu=$1 4371host_vendor=$2 4372shift; shift 4373# Remember, the first character of IFS is used to create $*, 4374# except with old shells: 4375host_os=$* 4376IFS=$ac_save_IFS 4377case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4378 4379 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4381$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4382if ${ac_cv_path_SED+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4386 for ac_i in 1 2 3 4 5 6 7; do 4387 ac_script="$ac_script$as_nl$ac_script" 4388 done 4389 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4390 { ac_script=; unset ac_script;} 4391 if test -z "$SED"; then 4392 ac_path_SED_found=false 4393 # Loop through the user's path and test for each of PROGNAME-LIST 4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4395for as_dir in $PATH 4396do 4397 IFS=$as_save_IFS 4398 test -z "$as_dir" && as_dir=. 4399 for ac_prog in sed gsed; do 4400 for ac_exec_ext in '' $ac_executable_extensions; do 4401 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4402 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4403# Check for GNU ac_path_SED and select it if it is found. 4404 # Check for GNU $ac_path_SED 4405case `"$ac_path_SED" --version 2>&1` in 4406*GNU*) 4407 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4408*) 4409 ac_count=0 4410 $as_echo_n 0123456789 >"conftest.in" 4411 while : 4412 do 4413 cat "conftest.in" "conftest.in" >"conftest.tmp" 4414 mv "conftest.tmp" "conftest.in" 4415 cp "conftest.in" "conftest.nl" 4416 $as_echo '' >> "conftest.nl" 4417 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4419 as_fn_arith $ac_count + 1 && ac_count=$as_val 4420 if test $ac_count -gt ${ac_path_SED_max-0}; then 4421 # Best one so far, save it but keep looking for a better one 4422 ac_cv_path_SED="$ac_path_SED" 4423 ac_path_SED_max=$ac_count 4424 fi 4425 # 10*(2^10) chars as input seems more than enough 4426 test $ac_count -gt 10 && break 4427 done 4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4429esac 4430 4431 $ac_path_SED_found && break 3 4432 done 4433 done 4434 done 4435IFS=$as_save_IFS 4436 if test -z "$ac_cv_path_SED"; then 4437 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4438 fi 4439else 4440 ac_cv_path_SED=$SED 4441fi 4442 4443fi 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4445$as_echo "$ac_cv_path_SED" >&6; } 4446 SED="$ac_cv_path_SED" 4447 rm -f conftest.sed 4448 4449 4450 4451 4452 4453 4454# Check whether --enable-selective-werror was given. 4455if test "${enable_selective_werror+set}" = set; then : 4456 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4457else 4458 SELECTIVE_WERROR=yes 4459fi 4460 4461 4462 4463 4464 4465# -v is too short to test reliably with XORG_TESTSET_CFLAG 4466if test "x$SUNCC" = "xyes"; then 4467 BASE_CFLAGS="-v" 4468else 4469 BASE_CFLAGS="" 4470fi 4471 4472# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486xorg_testset_save_CFLAGS="$CFLAGS" 4487 4488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494else 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496/* end confdefs.h. */ 4497int i; 4498_ACEOF 4499if ac_fn_c_try_compile "$LINENO"; then : 4500 xorg_cv_cc_flag_unknown_warning_option=yes 4501else 4502 xorg_cv_cc_flag_unknown_warning_option=no 4503fi 4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4505fi 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4509 CFLAGS="$xorg_testset_save_CFLAGS" 4510fi 4511 4512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4515 fi 4516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521else 4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4523/* end confdefs.h. */ 4524int i; 4525_ACEOF 4526if ac_fn_c_try_compile "$LINENO"; then : 4527 xorg_cv_cc_flag_unused_command_line_argument=yes 4528else 4529 xorg_cv_cc_flag_unused_command_line_argument=no 4530fi 4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4532fi 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4536 CFLAGS="$xorg_testset_save_CFLAGS" 4537fi 4538 4539found="no" 4540 4541 if test $found = "no" ; then 4542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4544 fi 4545 4546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4548 fi 4549 4550 CFLAGS="$CFLAGS -Wall" 4551 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 4553$as_echo_n "checking if $CC supports-Wall... " >&6; } 4554 cacheid=xorg_cv_cc_flag__Wall 4555 if eval \${$cacheid+:} false; then : 4556 $as_echo_n "(cached) " >&6 4557else 4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4559/* end confdefs.h. */ 4560int i; 4561int 4562main () 4563{ 4564 4565 ; 4566 return 0; 4567} 4568_ACEOF 4569if ac_fn_c_try_link "$LINENO"; then : 4570 eval $cacheid=yes 4571else 4572 eval $cacheid=no 4573fi 4574rm -f core conftest.err conftest.$ac_objext \ 4575 conftest$ac_exeext conftest.$ac_ext 4576fi 4577 4578 4579 CFLAGS="$xorg_testset_save_CFLAGS" 4580 4581 eval supported=\$$cacheid 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4583$as_echo "$supported" >&6; } 4584 if test "$supported" = "yes" ; then 4585 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4586 found="yes" 4587 fi 4588 fi 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604xorg_testset_save_CFLAGS="$CFLAGS" 4605 4606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4611 $as_echo_n "(cached) " >&6 4612else 4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4614/* end confdefs.h. */ 4615int i; 4616_ACEOF 4617if ac_fn_c_try_compile "$LINENO"; then : 4618 xorg_cv_cc_flag_unknown_warning_option=yes 4619else 4620 xorg_cv_cc_flag_unknown_warning_option=no 4621fi 4622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4623fi 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4627 CFLAGS="$xorg_testset_save_CFLAGS" 4628fi 4629 4630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4633 fi 4634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641/* end confdefs.h. */ 4642int i; 4643_ACEOF 4644if ac_fn_c_try_compile "$LINENO"; then : 4645 xorg_cv_cc_flag_unused_command_line_argument=yes 4646else 4647 xorg_cv_cc_flag_unused_command_line_argument=no 4648fi 4649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4650fi 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4654 CFLAGS="$xorg_testset_save_CFLAGS" 4655fi 4656 4657found="no" 4658 4659 if test $found = "no" ; then 4660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4662 fi 4663 4664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4666 fi 4667 4668 CFLAGS="$CFLAGS -Wpointer-arith" 4669 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 4671$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 4672 cacheid=xorg_cv_cc_flag__Wpointer_arith 4673 if eval \${$cacheid+:} false; then : 4674 $as_echo_n "(cached) " >&6 4675else 4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4677/* end confdefs.h. */ 4678int i; 4679int 4680main () 4681{ 4682 4683 ; 4684 return 0; 4685} 4686_ACEOF 4687if ac_fn_c_try_link "$LINENO"; then : 4688 eval $cacheid=yes 4689else 4690 eval $cacheid=no 4691fi 4692rm -f core conftest.err conftest.$ac_objext \ 4693 conftest$ac_exeext conftest.$ac_ext 4694fi 4695 4696 4697 CFLAGS="$xorg_testset_save_CFLAGS" 4698 4699 eval supported=\$$cacheid 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4701$as_echo "$supported" >&6; } 4702 if test "$supported" = "yes" ; then 4703 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4704 found="yes" 4705 fi 4706 fi 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722xorg_testset_save_CFLAGS="$CFLAGS" 4723 4724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732/* end confdefs.h. */ 4733int i; 4734_ACEOF 4735if ac_fn_c_try_compile "$LINENO"; then : 4736 xorg_cv_cc_flag_unknown_warning_option=yes 4737else 4738 xorg_cv_cc_flag_unknown_warning_option=no 4739fi 4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4741fi 4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4745 CFLAGS="$xorg_testset_save_CFLAGS" 4746fi 4747 4748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4751 fi 4752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4756 $as_echo_n "(cached) " >&6 4757else 4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4759/* end confdefs.h. */ 4760int i; 4761_ACEOF 4762if ac_fn_c_try_compile "$LINENO"; then : 4763 xorg_cv_cc_flag_unused_command_line_argument=yes 4764else 4765 xorg_cv_cc_flag_unused_command_line_argument=no 4766fi 4767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4768fi 4769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4772 CFLAGS="$xorg_testset_save_CFLAGS" 4773fi 4774 4775found="no" 4776 4777 if test $found = "no" ; then 4778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4780 fi 4781 4782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4784 fi 4785 4786 CFLAGS="$CFLAGS -Wmissing-declarations" 4787 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 4789$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 4790 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4791 if eval \${$cacheid+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4795/* end confdefs.h. */ 4796int i; 4797int 4798main () 4799{ 4800 4801 ; 4802 return 0; 4803} 4804_ACEOF 4805if ac_fn_c_try_link "$LINENO"; then : 4806 eval $cacheid=yes 4807else 4808 eval $cacheid=no 4809fi 4810rm -f core conftest.err conftest.$ac_objext \ 4811 conftest$ac_exeext conftest.$ac_ext 4812fi 4813 4814 4815 CFLAGS="$xorg_testset_save_CFLAGS" 4816 4817 eval supported=\$$cacheid 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4819$as_echo "$supported" >&6; } 4820 if test "$supported" = "yes" ; then 4821 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4822 found="yes" 4823 fi 4824 fi 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840xorg_testset_save_CFLAGS="$CFLAGS" 4841 4842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4850/* end confdefs.h. */ 4851int i; 4852_ACEOF 4853if ac_fn_c_try_compile "$LINENO"; then : 4854 xorg_cv_cc_flag_unknown_warning_option=yes 4855else 4856 xorg_cv_cc_flag_unknown_warning_option=no 4857fi 4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4859fi 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4863 CFLAGS="$xorg_testset_save_CFLAGS" 4864fi 4865 4866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4869 fi 4870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4874 $as_echo_n "(cached) " >&6 4875else 4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877/* end confdefs.h. */ 4878int i; 4879_ACEOF 4880if ac_fn_c_try_compile "$LINENO"; then : 4881 xorg_cv_cc_flag_unused_command_line_argument=yes 4882else 4883 xorg_cv_cc_flag_unused_command_line_argument=no 4884fi 4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4886fi 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4890 CFLAGS="$xorg_testset_save_CFLAGS" 4891fi 4892 4893found="no" 4894 4895 if test $found = "no" ; then 4896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4898 fi 4899 4900 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4902 fi 4903 4904 CFLAGS="$CFLAGS -Wformat=2" 4905 4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 4907$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 4908 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 4909 if eval \${$cacheid+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911else 4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4913/* end confdefs.h. */ 4914int i; 4915int 4916main () 4917{ 4918 4919 ; 4920 return 0; 4921} 4922_ACEOF 4923if ac_fn_c_try_link "$LINENO"; then : 4924 eval $cacheid=yes 4925else 4926 eval $cacheid=no 4927fi 4928rm -f core conftest.err conftest.$ac_objext \ 4929 conftest$ac_exeext conftest.$ac_ext 4930fi 4931 4932 4933 CFLAGS="$xorg_testset_save_CFLAGS" 4934 4935 eval supported=\$$cacheid 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4937$as_echo "$supported" >&6; } 4938 if test "$supported" = "yes" ; then 4939 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4940 found="yes" 4941 fi 4942 fi 4943 4944 if test $found = "no" ; then 4945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4947 fi 4948 4949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4951 fi 4952 4953 CFLAGS="$CFLAGS -Wformat" 4954 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 4956$as_echo_n "checking if $CC supports-Wformat... " >&6; } 4957 cacheid=xorg_cv_cc_flag__Wformat 4958 if eval \${$cacheid+:} false; then : 4959 $as_echo_n "(cached) " >&6 4960else 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962/* end confdefs.h. */ 4963int i; 4964int 4965main () 4966{ 4967 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972if ac_fn_c_try_link "$LINENO"; then : 4973 eval $cacheid=yes 4974else 4975 eval $cacheid=no 4976fi 4977rm -f core conftest.err conftest.$ac_objext \ 4978 conftest$ac_exeext conftest.$ac_ext 4979fi 4980 4981 4982 CFLAGS="$xorg_testset_save_CFLAGS" 4983 4984 eval supported=\$$cacheid 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4986$as_echo "$supported" >&6; } 4987 if test "$supported" = "yes" ; then 4988 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4989 found="yes" 4990 fi 4991 fi 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009xorg_testset_save_CFLAGS="$CFLAGS" 5010 5011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020int i; 5021_ACEOF 5022if ac_fn_c_try_compile "$LINENO"; then : 5023 xorg_cv_cc_flag_unknown_warning_option=yes 5024else 5025 xorg_cv_cc_flag_unknown_warning_option=no 5026fi 5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5028fi 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5032 CFLAGS="$xorg_testset_save_CFLAGS" 5033fi 5034 5035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 fi 5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046/* end confdefs.h. */ 5047int i; 5048_ACEOF 5049if ac_fn_c_try_compile "$LINENO"; then : 5050 xorg_cv_cc_flag_unused_command_line_argument=yes 5051else 5052 xorg_cv_cc_flag_unused_command_line_argument=no 5053fi 5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060fi 5061 5062found="no" 5063 5064 if test $found = "no" ; then 5065 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5067 fi 5068 5069 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5071 fi 5072 5073 CFLAGS="$CFLAGS -Wstrict-prototypes" 5074 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 5076$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 5077 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5078 if eval \${$cacheid+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082/* end confdefs.h. */ 5083int i; 5084int 5085main () 5086{ 5087 5088 ; 5089 return 0; 5090} 5091_ACEOF 5092if ac_fn_c_try_link "$LINENO"; then : 5093 eval $cacheid=yes 5094else 5095 eval $cacheid=no 5096fi 5097rm -f core conftest.err conftest.$ac_objext \ 5098 conftest$ac_exeext conftest.$ac_ext 5099fi 5100 5101 5102 CFLAGS="$xorg_testset_save_CFLAGS" 5103 5104 eval supported=\$$cacheid 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5106$as_echo "$supported" >&6; } 5107 if test "$supported" = "yes" ; then 5108 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5109 found="yes" 5110 fi 5111 fi 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127xorg_testset_save_CFLAGS="$CFLAGS" 5128 5129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5137/* end confdefs.h. */ 5138int i; 5139_ACEOF 5140if ac_fn_c_try_compile "$LINENO"; then : 5141 xorg_cv_cc_flag_unknown_warning_option=yes 5142else 5143 xorg_cv_cc_flag_unknown_warning_option=no 5144fi 5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5146fi 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5150 CFLAGS="$xorg_testset_save_CFLAGS" 5151fi 5152 5153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5156 fi 5157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164/* end confdefs.h. */ 5165int i; 5166_ACEOF 5167if ac_fn_c_try_compile "$LINENO"; then : 5168 xorg_cv_cc_flag_unused_command_line_argument=yes 5169else 5170 xorg_cv_cc_flag_unused_command_line_argument=no 5171fi 5172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5173fi 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5177 CFLAGS="$xorg_testset_save_CFLAGS" 5178fi 5179 5180found="no" 5181 5182 if test $found = "no" ; then 5183 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5185 fi 5186 5187 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5189 fi 5190 5191 CFLAGS="$CFLAGS -Wmissing-prototypes" 5192 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 5194$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 5195 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5196 if eval \${$cacheid+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201int i; 5202int 5203main () 5204{ 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210if ac_fn_c_try_link "$LINENO"; then : 5211 eval $cacheid=yes 5212else 5213 eval $cacheid=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext \ 5216 conftest$ac_exeext conftest.$ac_ext 5217fi 5218 5219 5220 CFLAGS="$xorg_testset_save_CFLAGS" 5221 5222 eval supported=\$$cacheid 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5224$as_echo "$supported" >&6; } 5225 if test "$supported" = "yes" ; then 5226 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5227 found="yes" 5228 fi 5229 fi 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245xorg_testset_save_CFLAGS="$CFLAGS" 5246 5247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256int i; 5257_ACEOF 5258if ac_fn_c_try_compile "$LINENO"; then : 5259 xorg_cv_cc_flag_unknown_warning_option=yes 5260else 5261 xorg_cv_cc_flag_unknown_warning_option=no 5262fi 5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5264fi 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5268 CFLAGS="$xorg_testset_save_CFLAGS" 5269fi 5270 5271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5274 fi 5275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282/* end confdefs.h. */ 5283int i; 5284_ACEOF 5285if ac_fn_c_try_compile "$LINENO"; then : 5286 xorg_cv_cc_flag_unused_command_line_argument=yes 5287else 5288 xorg_cv_cc_flag_unused_command_line_argument=no 5289fi 5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5291fi 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5295 CFLAGS="$xorg_testset_save_CFLAGS" 5296fi 5297 5298found="no" 5299 5300 if test $found = "no" ; then 5301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5303 fi 5304 5305 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5307 fi 5308 5309 CFLAGS="$CFLAGS -Wnested-externs" 5310 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 5312$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 5313 cacheid=xorg_cv_cc_flag__Wnested_externs 5314 if eval \${$cacheid+:} false; then : 5315 $as_echo_n "(cached) " >&6 5316else 5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318/* end confdefs.h. */ 5319int i; 5320int 5321main () 5322{ 5323 5324 ; 5325 return 0; 5326} 5327_ACEOF 5328if ac_fn_c_try_link "$LINENO"; then : 5329 eval $cacheid=yes 5330else 5331 eval $cacheid=no 5332fi 5333rm -f core conftest.err conftest.$ac_objext \ 5334 conftest$ac_exeext conftest.$ac_ext 5335fi 5336 5337 5338 CFLAGS="$xorg_testset_save_CFLAGS" 5339 5340 eval supported=\$$cacheid 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5342$as_echo "$supported" >&6; } 5343 if test "$supported" = "yes" ; then 5344 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5345 found="yes" 5346 fi 5347 fi 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363xorg_testset_save_CFLAGS="$CFLAGS" 5364 5365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5373/* end confdefs.h. */ 5374int i; 5375_ACEOF 5376if ac_fn_c_try_compile "$LINENO"; then : 5377 xorg_cv_cc_flag_unknown_warning_option=yes 5378else 5379 xorg_cv_cc_flag_unknown_warning_option=no 5380fi 5381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5382fi 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5386 CFLAGS="$xorg_testset_save_CFLAGS" 5387fi 5388 5389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5392 fi 5393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398else 5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5400/* end confdefs.h. */ 5401int i; 5402_ACEOF 5403if ac_fn_c_try_compile "$LINENO"; then : 5404 xorg_cv_cc_flag_unused_command_line_argument=yes 5405else 5406 xorg_cv_cc_flag_unused_command_line_argument=no 5407fi 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5409fi 5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5413 CFLAGS="$xorg_testset_save_CFLAGS" 5414fi 5415 5416found="no" 5417 5418 if test $found = "no" ; then 5419 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5421 fi 5422 5423 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5425 fi 5426 5427 CFLAGS="$CFLAGS -Wbad-function-cast" 5428 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 5430$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 5431 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5432 if eval \${$cacheid+:} false; then : 5433 $as_echo_n "(cached) " >&6 5434else 5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5436/* end confdefs.h. */ 5437int i; 5438int 5439main () 5440{ 5441 5442 ; 5443 return 0; 5444} 5445_ACEOF 5446if ac_fn_c_try_link "$LINENO"; then : 5447 eval $cacheid=yes 5448else 5449 eval $cacheid=no 5450fi 5451rm -f core conftest.err conftest.$ac_objext \ 5452 conftest$ac_exeext conftest.$ac_ext 5453fi 5454 5455 5456 CFLAGS="$xorg_testset_save_CFLAGS" 5457 5458 eval supported=\$$cacheid 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5460$as_echo "$supported" >&6; } 5461 if test "$supported" = "yes" ; then 5462 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5463 found="yes" 5464 fi 5465 fi 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481xorg_testset_save_CFLAGS="$CFLAGS" 5482 5483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5488 $as_echo_n "(cached) " >&6 5489else 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491/* end confdefs.h. */ 5492int i; 5493_ACEOF 5494if ac_fn_c_try_compile "$LINENO"; then : 5495 xorg_cv_cc_flag_unknown_warning_option=yes 5496else 5497 xorg_cv_cc_flag_unknown_warning_option=no 5498fi 5499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5500fi 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5504 CFLAGS="$xorg_testset_save_CFLAGS" 5505fi 5506 5507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5510 fi 5511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516else 5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5518/* end confdefs.h. */ 5519int i; 5520_ACEOF 5521if ac_fn_c_try_compile "$LINENO"; then : 5522 xorg_cv_cc_flag_unused_command_line_argument=yes 5523else 5524 xorg_cv_cc_flag_unused_command_line_argument=no 5525fi 5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5527fi 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5531 CFLAGS="$xorg_testset_save_CFLAGS" 5532fi 5533 5534found="no" 5535 5536 if test $found = "no" ; then 5537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5539 fi 5540 5541 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5543 fi 5544 5545 CFLAGS="$CFLAGS -Wold-style-definition" 5546 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 5548$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 5549 cacheid=xorg_cv_cc_flag__Wold_style_definition 5550 if eval \${$cacheid+:} false; then : 5551 $as_echo_n "(cached) " >&6 5552else 5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5554/* end confdefs.h. */ 5555int i; 5556int 5557main () 5558{ 5559 5560 ; 5561 return 0; 5562} 5563_ACEOF 5564if ac_fn_c_try_link "$LINENO"; then : 5565 eval $cacheid=yes 5566else 5567 eval $cacheid=no 5568fi 5569rm -f core conftest.err conftest.$ac_objext \ 5570 conftest$ac_exeext conftest.$ac_ext 5571fi 5572 5573 5574 CFLAGS="$xorg_testset_save_CFLAGS" 5575 5576 eval supported=\$$cacheid 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5578$as_echo "$supported" >&6; } 5579 if test "$supported" = "yes" ; then 5580 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5581 found="yes" 5582 fi 5583 fi 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599xorg_testset_save_CFLAGS="$CFLAGS" 5600 5601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5606 $as_echo_n "(cached) " >&6 5607else 5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5609/* end confdefs.h. */ 5610int i; 5611_ACEOF 5612if ac_fn_c_try_compile "$LINENO"; then : 5613 xorg_cv_cc_flag_unknown_warning_option=yes 5614else 5615 xorg_cv_cc_flag_unknown_warning_option=no 5616fi 5617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5618fi 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5622 CFLAGS="$xorg_testset_save_CFLAGS" 5623fi 5624 5625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5628 fi 5629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637int i; 5638_ACEOF 5639if ac_fn_c_try_compile "$LINENO"; then : 5640 xorg_cv_cc_flag_unused_command_line_argument=yes 5641else 5642 xorg_cv_cc_flag_unused_command_line_argument=no 5643fi 5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5645fi 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5649 CFLAGS="$xorg_testset_save_CFLAGS" 5650fi 5651 5652found="no" 5653 5654 if test $found = "no" ; then 5655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5657 fi 5658 5659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5661 fi 5662 5663 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5664 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 5666$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 5667 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5668 if eval \${$cacheid+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670else 5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5672/* end confdefs.h. */ 5673int i; 5674int 5675main () 5676{ 5677 5678 ; 5679 return 0; 5680} 5681_ACEOF 5682if ac_fn_c_try_link "$LINENO"; then : 5683 eval $cacheid=yes 5684else 5685 eval $cacheid=no 5686fi 5687rm -f core conftest.err conftest.$ac_objext \ 5688 conftest$ac_exeext conftest.$ac_ext 5689fi 5690 5691 5692 CFLAGS="$xorg_testset_save_CFLAGS" 5693 5694 eval supported=\$$cacheid 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5696$as_echo "$supported" >&6; } 5697 if test "$supported" = "yes" ; then 5698 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5699 found="yes" 5700 fi 5701 fi 5702 5703 5704 5705 5706 5707# This chunk adds additional warnings that could catch undesired effects. 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721xorg_testset_save_CFLAGS="$CFLAGS" 5722 5723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5728 $as_echo_n "(cached) " >&6 5729else 5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5731/* end confdefs.h. */ 5732int i; 5733_ACEOF 5734if ac_fn_c_try_compile "$LINENO"; then : 5735 xorg_cv_cc_flag_unknown_warning_option=yes 5736else 5737 xorg_cv_cc_flag_unknown_warning_option=no 5738fi 5739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5740fi 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5744 CFLAGS="$xorg_testset_save_CFLAGS" 5745fi 5746 5747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5750 fi 5751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5758/* end confdefs.h. */ 5759int i; 5760_ACEOF 5761if ac_fn_c_try_compile "$LINENO"; then : 5762 xorg_cv_cc_flag_unused_command_line_argument=yes 5763else 5764 xorg_cv_cc_flag_unused_command_line_argument=no 5765fi 5766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5767fi 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5771 CFLAGS="$xorg_testset_save_CFLAGS" 5772fi 5773 5774found="no" 5775 5776 if test $found = "no" ; then 5777 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5779 fi 5780 5781 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5783 fi 5784 5785 CFLAGS="$CFLAGS -Wunused" 5786 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 5788$as_echo_n "checking if $CC supports-Wunused... " >&6; } 5789 cacheid=xorg_cv_cc_flag__Wunused 5790 if eval \${$cacheid+:} false; then : 5791 $as_echo_n "(cached) " >&6 5792else 5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5794/* end confdefs.h. */ 5795int i; 5796int 5797main () 5798{ 5799 5800 ; 5801 return 0; 5802} 5803_ACEOF 5804if ac_fn_c_try_link "$LINENO"; then : 5805 eval $cacheid=yes 5806else 5807 eval $cacheid=no 5808fi 5809rm -f core conftest.err conftest.$ac_objext \ 5810 conftest$ac_exeext conftest.$ac_ext 5811fi 5812 5813 5814 CFLAGS="$xorg_testset_save_CFLAGS" 5815 5816 eval supported=\$$cacheid 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5818$as_echo "$supported" >&6; } 5819 if test "$supported" = "yes" ; then 5820 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5821 found="yes" 5822 fi 5823 fi 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839xorg_testset_save_CFLAGS="$CFLAGS" 5840 5841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5846 $as_echo_n "(cached) " >&6 5847else 5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5849/* end confdefs.h. */ 5850int i; 5851_ACEOF 5852if ac_fn_c_try_compile "$LINENO"; then : 5853 xorg_cv_cc_flag_unknown_warning_option=yes 5854else 5855 xorg_cv_cc_flag_unknown_warning_option=no 5856fi 5857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5858fi 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5862 CFLAGS="$xorg_testset_save_CFLAGS" 5863fi 5864 5865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5868 fi 5869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5873 $as_echo_n "(cached) " >&6 5874else 5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5876/* end confdefs.h. */ 5877int i; 5878_ACEOF 5879if ac_fn_c_try_compile "$LINENO"; then : 5880 xorg_cv_cc_flag_unused_command_line_argument=yes 5881else 5882 xorg_cv_cc_flag_unused_command_line_argument=no 5883fi 5884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5885fi 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5889 CFLAGS="$xorg_testset_save_CFLAGS" 5890fi 5891 5892found="no" 5893 5894 if test $found = "no" ; then 5895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5897 fi 5898 5899 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5901 fi 5902 5903 CFLAGS="$CFLAGS -Wuninitialized" 5904 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 5906$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 5907 cacheid=xorg_cv_cc_flag__Wuninitialized 5908 if eval \${$cacheid+:} false; then : 5909 $as_echo_n "(cached) " >&6 5910else 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912/* end confdefs.h. */ 5913int i; 5914int 5915main () 5916{ 5917 5918 ; 5919 return 0; 5920} 5921_ACEOF 5922if ac_fn_c_try_link "$LINENO"; then : 5923 eval $cacheid=yes 5924else 5925 eval $cacheid=no 5926fi 5927rm -f core conftest.err conftest.$ac_objext \ 5928 conftest$ac_exeext conftest.$ac_ext 5929fi 5930 5931 5932 CFLAGS="$xorg_testset_save_CFLAGS" 5933 5934 eval supported=\$$cacheid 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5936$as_echo "$supported" >&6; } 5937 if test "$supported" = "yes" ; then 5938 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5939 found="yes" 5940 fi 5941 fi 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957xorg_testset_save_CFLAGS="$CFLAGS" 5958 5959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967/* end confdefs.h. */ 5968int i; 5969_ACEOF 5970if ac_fn_c_try_compile "$LINENO"; then : 5971 xorg_cv_cc_flag_unknown_warning_option=yes 5972else 5973 xorg_cv_cc_flag_unknown_warning_option=no 5974fi 5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5976fi 5977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5980 CFLAGS="$xorg_testset_save_CFLAGS" 5981fi 5982 5983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5986 fi 5987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5994/* end confdefs.h. */ 5995int i; 5996_ACEOF 5997if ac_fn_c_try_compile "$LINENO"; then : 5998 xorg_cv_cc_flag_unused_command_line_argument=yes 5999else 6000 xorg_cv_cc_flag_unused_command_line_argument=no 6001fi 6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6003fi 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6007 CFLAGS="$xorg_testset_save_CFLAGS" 6008fi 6009 6010found="no" 6011 6012 if test $found = "no" ; then 6013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6015 fi 6016 6017 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6019 fi 6020 6021 CFLAGS="$CFLAGS -Wshadow" 6022 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 6024$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 6025 cacheid=xorg_cv_cc_flag__Wshadow 6026 if eval \${$cacheid+:} false; then : 6027 $as_echo_n "(cached) " >&6 6028else 6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6030/* end confdefs.h. */ 6031int i; 6032int 6033main () 6034{ 6035 6036 ; 6037 return 0; 6038} 6039_ACEOF 6040if ac_fn_c_try_link "$LINENO"; then : 6041 eval $cacheid=yes 6042else 6043 eval $cacheid=no 6044fi 6045rm -f core conftest.err conftest.$ac_objext \ 6046 conftest$ac_exeext conftest.$ac_ext 6047fi 6048 6049 6050 CFLAGS="$xorg_testset_save_CFLAGS" 6051 6052 eval supported=\$$cacheid 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6054$as_echo "$supported" >&6; } 6055 if test "$supported" = "yes" ; then 6056 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6057 found="yes" 6058 fi 6059 fi 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075xorg_testset_save_CFLAGS="$CFLAGS" 6076 6077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6082 $as_echo_n "(cached) " >&6 6083else 6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085/* end confdefs.h. */ 6086int i; 6087_ACEOF 6088if ac_fn_c_try_compile "$LINENO"; then : 6089 xorg_cv_cc_flag_unknown_warning_option=yes 6090else 6091 xorg_cv_cc_flag_unknown_warning_option=no 6092fi 6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6094fi 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6098 CFLAGS="$xorg_testset_save_CFLAGS" 6099fi 6100 6101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6104 fi 6105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6109 $as_echo_n "(cached) " >&6 6110else 6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6112/* end confdefs.h. */ 6113int i; 6114_ACEOF 6115if ac_fn_c_try_compile "$LINENO"; then : 6116 xorg_cv_cc_flag_unused_command_line_argument=yes 6117else 6118 xorg_cv_cc_flag_unused_command_line_argument=no 6119fi 6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6121fi 6122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6125 CFLAGS="$xorg_testset_save_CFLAGS" 6126fi 6127 6128found="no" 6129 6130 if test $found = "no" ; then 6131 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6133 fi 6134 6135 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6137 fi 6138 6139 CFLAGS="$CFLAGS -Wcast-qual" 6140 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 6142$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 6143 cacheid=xorg_cv_cc_flag__Wcast_qual 6144 if eval \${$cacheid+:} false; then : 6145 $as_echo_n "(cached) " >&6 6146else 6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6148/* end confdefs.h. */ 6149int i; 6150int 6151main () 6152{ 6153 6154 ; 6155 return 0; 6156} 6157_ACEOF 6158if ac_fn_c_try_link "$LINENO"; then : 6159 eval $cacheid=yes 6160else 6161 eval $cacheid=no 6162fi 6163rm -f core conftest.err conftest.$ac_objext \ 6164 conftest$ac_exeext conftest.$ac_ext 6165fi 6166 6167 6168 CFLAGS="$xorg_testset_save_CFLAGS" 6169 6170 eval supported=\$$cacheid 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6172$as_echo "$supported" >&6; } 6173 if test "$supported" = "yes" ; then 6174 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6175 found="yes" 6176 fi 6177 fi 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193xorg_testset_save_CFLAGS="$CFLAGS" 6194 6195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6200 $as_echo_n "(cached) " >&6 6201else 6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6203/* end confdefs.h. */ 6204int i; 6205_ACEOF 6206if ac_fn_c_try_compile "$LINENO"; then : 6207 xorg_cv_cc_flag_unknown_warning_option=yes 6208else 6209 xorg_cv_cc_flag_unknown_warning_option=no 6210fi 6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6212fi 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6216 CFLAGS="$xorg_testset_save_CFLAGS" 6217fi 6218 6219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6222 fi 6223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6227 $as_echo_n "(cached) " >&6 6228else 6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6230/* end confdefs.h. */ 6231int i; 6232_ACEOF 6233if ac_fn_c_try_compile "$LINENO"; then : 6234 xorg_cv_cc_flag_unused_command_line_argument=yes 6235else 6236 xorg_cv_cc_flag_unused_command_line_argument=no 6237fi 6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6239fi 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6243 CFLAGS="$xorg_testset_save_CFLAGS" 6244fi 6245 6246found="no" 6247 6248 if test $found = "no" ; then 6249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6251 fi 6252 6253 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6255 fi 6256 6257 CFLAGS="$CFLAGS -Wmissing-noreturn" 6258 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 6260$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 6261 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6262 if eval \${$cacheid+:} false; then : 6263 $as_echo_n "(cached) " >&6 6264else 6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6266/* end confdefs.h. */ 6267int i; 6268int 6269main () 6270{ 6271 6272 ; 6273 return 0; 6274} 6275_ACEOF 6276if ac_fn_c_try_link "$LINENO"; then : 6277 eval $cacheid=yes 6278else 6279 eval $cacheid=no 6280fi 6281rm -f core conftest.err conftest.$ac_objext \ 6282 conftest$ac_exeext conftest.$ac_ext 6283fi 6284 6285 6286 CFLAGS="$xorg_testset_save_CFLAGS" 6287 6288 eval supported=\$$cacheid 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6290$as_echo "$supported" >&6; } 6291 if test "$supported" = "yes" ; then 6292 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6293 found="yes" 6294 fi 6295 fi 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311xorg_testset_save_CFLAGS="$CFLAGS" 6312 6313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6321/* end confdefs.h. */ 6322int i; 6323_ACEOF 6324if ac_fn_c_try_compile "$LINENO"; then : 6325 xorg_cv_cc_flag_unknown_warning_option=yes 6326else 6327 xorg_cv_cc_flag_unknown_warning_option=no 6328fi 6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6330fi 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6334 CFLAGS="$xorg_testset_save_CFLAGS" 6335fi 6336 6337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6340 fi 6341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6348/* end confdefs.h. */ 6349int i; 6350_ACEOF 6351if ac_fn_c_try_compile "$LINENO"; then : 6352 xorg_cv_cc_flag_unused_command_line_argument=yes 6353else 6354 xorg_cv_cc_flag_unused_command_line_argument=no 6355fi 6356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6357fi 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6361 CFLAGS="$xorg_testset_save_CFLAGS" 6362fi 6363 6364found="no" 6365 6366 if test $found = "no" ; then 6367 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6369 fi 6370 6371 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6373 fi 6374 6375 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6376 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 6378$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 6379 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6380 if eval \${$cacheid+:} false; then : 6381 $as_echo_n "(cached) " >&6 6382else 6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6384/* end confdefs.h. */ 6385int i; 6386int 6387main () 6388{ 6389 6390 ; 6391 return 0; 6392} 6393_ACEOF 6394if ac_fn_c_try_link "$LINENO"; then : 6395 eval $cacheid=yes 6396else 6397 eval $cacheid=no 6398fi 6399rm -f core conftest.err conftest.$ac_objext \ 6400 conftest$ac_exeext conftest.$ac_ext 6401fi 6402 6403 6404 CFLAGS="$xorg_testset_save_CFLAGS" 6405 6406 eval supported=\$$cacheid 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6408$as_echo "$supported" >&6; } 6409 if test "$supported" = "yes" ; then 6410 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6411 found="yes" 6412 fi 6413 fi 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429xorg_testset_save_CFLAGS="$CFLAGS" 6430 6431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6439/* end confdefs.h. */ 6440int i; 6441_ACEOF 6442if ac_fn_c_try_compile "$LINENO"; then : 6443 xorg_cv_cc_flag_unknown_warning_option=yes 6444else 6445 xorg_cv_cc_flag_unknown_warning_option=no 6446fi 6447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6448fi 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6452 CFLAGS="$xorg_testset_save_CFLAGS" 6453fi 6454 6455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6458 fi 6459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6466/* end confdefs.h. */ 6467int i; 6468_ACEOF 6469if ac_fn_c_try_compile "$LINENO"; then : 6470 xorg_cv_cc_flag_unused_command_line_argument=yes 6471else 6472 xorg_cv_cc_flag_unused_command_line_argument=no 6473fi 6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6475fi 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6479 CFLAGS="$xorg_testset_save_CFLAGS" 6480fi 6481 6482found="no" 6483 6484 if test $found = "no" ; then 6485 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6487 fi 6488 6489 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6491 fi 6492 6493 CFLAGS="$CFLAGS -Wredundant-decls" 6494 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 6496$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 6497 cacheid=xorg_cv_cc_flag__Wredundant_decls 6498 if eval \${$cacheid+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6502/* end confdefs.h. */ 6503int i; 6504int 6505main () 6506{ 6507 6508 ; 6509 return 0; 6510} 6511_ACEOF 6512if ac_fn_c_try_link "$LINENO"; then : 6513 eval $cacheid=yes 6514else 6515 eval $cacheid=no 6516fi 6517rm -f core conftest.err conftest.$ac_objext \ 6518 conftest$ac_exeext conftest.$ac_ext 6519fi 6520 6521 6522 CFLAGS="$xorg_testset_save_CFLAGS" 6523 6524 eval supported=\$$cacheid 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6526$as_echo "$supported" >&6; } 6527 if test "$supported" = "yes" ; then 6528 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6529 found="yes" 6530 fi 6531 fi 6532 6533 6534 6535# These are currently disabled because they are noisy. They will be enabled 6536# in the future once the codebase is sufficiently modernized to silence 6537# them. For now, I don't want them to drown out the other warnings. 6538# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6539# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6540# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6541 6542# Turn some warnings into errors, so we don't accidently get successful builds 6543# when there are problems that should be fixed. 6544 6545if test "x$SELECTIVE_WERROR" = "xyes" ; then 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559xorg_testset_save_CFLAGS="$CFLAGS" 6560 6561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6569/* end confdefs.h. */ 6570int i; 6571_ACEOF 6572if ac_fn_c_try_compile "$LINENO"; then : 6573 xorg_cv_cc_flag_unknown_warning_option=yes 6574else 6575 xorg_cv_cc_flag_unknown_warning_option=no 6576fi 6577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6578fi 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6582 CFLAGS="$xorg_testset_save_CFLAGS" 6583fi 6584 6585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6588 fi 6589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6596/* end confdefs.h. */ 6597int i; 6598_ACEOF 6599if ac_fn_c_try_compile "$LINENO"; then : 6600 xorg_cv_cc_flag_unused_command_line_argument=yes 6601else 6602 xorg_cv_cc_flag_unused_command_line_argument=no 6603fi 6604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6605fi 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6609 CFLAGS="$xorg_testset_save_CFLAGS" 6610fi 6611 6612found="no" 6613 6614 if test $found = "no" ; then 6615 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6617 fi 6618 6619 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6621 fi 6622 6623 CFLAGS="$CFLAGS -Werror=implicit" 6624 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 6626$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 6627 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6628 if eval \${$cacheid+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630else 6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6632/* end confdefs.h. */ 6633int i; 6634int 6635main () 6636{ 6637 6638 ; 6639 return 0; 6640} 6641_ACEOF 6642if ac_fn_c_try_link "$LINENO"; then : 6643 eval $cacheid=yes 6644else 6645 eval $cacheid=no 6646fi 6647rm -f core conftest.err conftest.$ac_objext \ 6648 conftest$ac_exeext conftest.$ac_ext 6649fi 6650 6651 6652 CFLAGS="$xorg_testset_save_CFLAGS" 6653 6654 eval supported=\$$cacheid 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6656$as_echo "$supported" >&6; } 6657 if test "$supported" = "yes" ; then 6658 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6659 found="yes" 6660 fi 6661 fi 6662 6663 if test $found = "no" ; then 6664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6666 fi 6667 6668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6670 fi 6671 6672 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6673 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6675$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6676 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6677 if eval \${$cacheid+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679else 6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6681/* end confdefs.h. */ 6682int i; 6683int 6684main () 6685{ 6686 6687 ; 6688 return 0; 6689} 6690_ACEOF 6691if ac_fn_c_try_link "$LINENO"; then : 6692 eval $cacheid=yes 6693else 6694 eval $cacheid=no 6695fi 6696rm -f core conftest.err conftest.$ac_objext \ 6697 conftest$ac_exeext conftest.$ac_ext 6698fi 6699 6700 6701 CFLAGS="$xorg_testset_save_CFLAGS" 6702 6703 eval supported=\$$cacheid 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6705$as_echo "$supported" >&6; } 6706 if test "$supported" = "yes" ; then 6707 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6708 found="yes" 6709 fi 6710 fi 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726xorg_testset_save_CFLAGS="$CFLAGS" 6727 6728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736/* end confdefs.h. */ 6737int i; 6738_ACEOF 6739if ac_fn_c_try_compile "$LINENO"; then : 6740 xorg_cv_cc_flag_unknown_warning_option=yes 6741else 6742 xorg_cv_cc_flag_unknown_warning_option=no 6743fi 6744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6745fi 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6749 CFLAGS="$xorg_testset_save_CFLAGS" 6750fi 6751 6752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6755 fi 6756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763/* end confdefs.h. */ 6764int i; 6765_ACEOF 6766if ac_fn_c_try_compile "$LINENO"; then : 6767 xorg_cv_cc_flag_unused_command_line_argument=yes 6768else 6769 xorg_cv_cc_flag_unused_command_line_argument=no 6770fi 6771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6772fi 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6776 CFLAGS="$xorg_testset_save_CFLAGS" 6777fi 6778 6779found="no" 6780 6781 if test $found = "no" ; then 6782 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6784 fi 6785 6786 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6788 fi 6789 6790 CFLAGS="$CFLAGS -Werror=nonnull" 6791 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 6793$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 6794 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6795 if eval \${$cacheid+:} false; then : 6796 $as_echo_n "(cached) " >&6 6797else 6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799/* end confdefs.h. */ 6800int i; 6801int 6802main () 6803{ 6804 6805 ; 6806 return 0; 6807} 6808_ACEOF 6809if ac_fn_c_try_link "$LINENO"; then : 6810 eval $cacheid=yes 6811else 6812 eval $cacheid=no 6813fi 6814rm -f core conftest.err conftest.$ac_objext \ 6815 conftest$ac_exeext conftest.$ac_ext 6816fi 6817 6818 6819 CFLAGS="$xorg_testset_save_CFLAGS" 6820 6821 eval supported=\$$cacheid 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6823$as_echo "$supported" >&6; } 6824 if test "$supported" = "yes" ; then 6825 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6826 found="yes" 6827 fi 6828 fi 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844xorg_testset_save_CFLAGS="$CFLAGS" 6845 6846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6854/* end confdefs.h. */ 6855int i; 6856_ACEOF 6857if ac_fn_c_try_compile "$LINENO"; then : 6858 xorg_cv_cc_flag_unknown_warning_option=yes 6859else 6860 xorg_cv_cc_flag_unknown_warning_option=no 6861fi 6862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6863fi 6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6867 CFLAGS="$xorg_testset_save_CFLAGS" 6868fi 6869 6870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6873 fi 6874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6881/* end confdefs.h. */ 6882int i; 6883_ACEOF 6884if ac_fn_c_try_compile "$LINENO"; then : 6885 xorg_cv_cc_flag_unused_command_line_argument=yes 6886else 6887 xorg_cv_cc_flag_unused_command_line_argument=no 6888fi 6889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6890fi 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6894 CFLAGS="$xorg_testset_save_CFLAGS" 6895fi 6896 6897found="no" 6898 6899 if test $found = "no" ; then 6900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6902 fi 6903 6904 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6906 fi 6907 6908 CFLAGS="$CFLAGS -Werror=init-self" 6909 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 6911$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 6912 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 6913 if eval \${$cacheid+:} false; then : 6914 $as_echo_n "(cached) " >&6 6915else 6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6917/* end confdefs.h. */ 6918int i; 6919int 6920main () 6921{ 6922 6923 ; 6924 return 0; 6925} 6926_ACEOF 6927if ac_fn_c_try_link "$LINENO"; then : 6928 eval $cacheid=yes 6929else 6930 eval $cacheid=no 6931fi 6932rm -f core conftest.err conftest.$ac_objext \ 6933 conftest$ac_exeext conftest.$ac_ext 6934fi 6935 6936 6937 CFLAGS="$xorg_testset_save_CFLAGS" 6938 6939 eval supported=\$$cacheid 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6941$as_echo "$supported" >&6; } 6942 if test "$supported" = "yes" ; then 6943 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6944 found="yes" 6945 fi 6946 fi 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962xorg_testset_save_CFLAGS="$CFLAGS" 6963 6964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6969 $as_echo_n "(cached) " >&6 6970else 6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6972/* end confdefs.h. */ 6973int i; 6974_ACEOF 6975if ac_fn_c_try_compile "$LINENO"; then : 6976 xorg_cv_cc_flag_unknown_warning_option=yes 6977else 6978 xorg_cv_cc_flag_unknown_warning_option=no 6979fi 6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6981fi 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986fi 6987 6988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6991 fi 6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6996 $as_echo_n "(cached) " >&6 6997else 6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999/* end confdefs.h. */ 7000int i; 7001_ACEOF 7002if ac_fn_c_try_compile "$LINENO"; then : 7003 xorg_cv_cc_flag_unused_command_line_argument=yes 7004else 7005 xorg_cv_cc_flag_unused_command_line_argument=no 7006fi 7007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7008fi 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7012 CFLAGS="$xorg_testset_save_CFLAGS" 7013fi 7014 7015found="no" 7016 7017 if test $found = "no" ; then 7018 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7020 fi 7021 7022 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7024 fi 7025 7026 CFLAGS="$CFLAGS -Werror=main" 7027 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 7029$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 7030 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7031 if eval \${$cacheid+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7035/* end confdefs.h. */ 7036int i; 7037int 7038main () 7039{ 7040 7041 ; 7042 return 0; 7043} 7044_ACEOF 7045if ac_fn_c_try_link "$LINENO"; then : 7046 eval $cacheid=yes 7047else 7048 eval $cacheid=no 7049fi 7050rm -f core conftest.err conftest.$ac_objext \ 7051 conftest$ac_exeext conftest.$ac_ext 7052fi 7053 7054 7055 CFLAGS="$xorg_testset_save_CFLAGS" 7056 7057 eval supported=\$$cacheid 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7059$as_echo "$supported" >&6; } 7060 if test "$supported" = "yes" ; then 7061 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7062 found="yes" 7063 fi 7064 fi 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080xorg_testset_save_CFLAGS="$CFLAGS" 7081 7082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090/* end confdefs.h. */ 7091int i; 7092_ACEOF 7093if ac_fn_c_try_compile "$LINENO"; then : 7094 xorg_cv_cc_flag_unknown_warning_option=yes 7095else 7096 xorg_cv_cc_flag_unknown_warning_option=no 7097fi 7098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7099fi 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7103 CFLAGS="$xorg_testset_save_CFLAGS" 7104fi 7105 7106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7109 fi 7110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7117/* end confdefs.h. */ 7118int i; 7119_ACEOF 7120if ac_fn_c_try_compile "$LINENO"; then : 7121 xorg_cv_cc_flag_unused_command_line_argument=yes 7122else 7123 xorg_cv_cc_flag_unused_command_line_argument=no 7124fi 7125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7126fi 7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7130 CFLAGS="$xorg_testset_save_CFLAGS" 7131fi 7132 7133found="no" 7134 7135 if test $found = "no" ; then 7136 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7138 fi 7139 7140 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7142 fi 7143 7144 CFLAGS="$CFLAGS -Werror=missing-braces" 7145 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 7147$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 7148 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7149 if eval \${$cacheid+:} false; then : 7150 $as_echo_n "(cached) " >&6 7151else 7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153/* end confdefs.h. */ 7154int i; 7155int 7156main () 7157{ 7158 7159 ; 7160 return 0; 7161} 7162_ACEOF 7163if ac_fn_c_try_link "$LINENO"; then : 7164 eval $cacheid=yes 7165else 7166 eval $cacheid=no 7167fi 7168rm -f core conftest.err conftest.$ac_objext \ 7169 conftest$ac_exeext conftest.$ac_ext 7170fi 7171 7172 7173 CFLAGS="$xorg_testset_save_CFLAGS" 7174 7175 eval supported=\$$cacheid 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7177$as_echo "$supported" >&6; } 7178 if test "$supported" = "yes" ; then 7179 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7180 found="yes" 7181 fi 7182 fi 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198xorg_testset_save_CFLAGS="$CFLAGS" 7199 7200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7205 $as_echo_n "(cached) " >&6 7206else 7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7208/* end confdefs.h. */ 7209int i; 7210_ACEOF 7211if ac_fn_c_try_compile "$LINENO"; then : 7212 xorg_cv_cc_flag_unknown_warning_option=yes 7213else 7214 xorg_cv_cc_flag_unknown_warning_option=no 7215fi 7216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7217fi 7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7221 CFLAGS="$xorg_testset_save_CFLAGS" 7222fi 7223 7224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7227 fi 7228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7232 $as_echo_n "(cached) " >&6 7233else 7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7235/* end confdefs.h. */ 7236int i; 7237_ACEOF 7238if ac_fn_c_try_compile "$LINENO"; then : 7239 xorg_cv_cc_flag_unused_command_line_argument=yes 7240else 7241 xorg_cv_cc_flag_unused_command_line_argument=no 7242fi 7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7244fi 7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7248 CFLAGS="$xorg_testset_save_CFLAGS" 7249fi 7250 7251found="no" 7252 7253 if test $found = "no" ; then 7254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7256 fi 7257 7258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7260 fi 7261 7262 CFLAGS="$CFLAGS -Werror=sequence-point" 7263 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 7265$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 7266 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7267 if eval \${$cacheid+:} false; then : 7268 $as_echo_n "(cached) " >&6 7269else 7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7271/* end confdefs.h. */ 7272int i; 7273int 7274main () 7275{ 7276 7277 ; 7278 return 0; 7279} 7280_ACEOF 7281if ac_fn_c_try_link "$LINENO"; then : 7282 eval $cacheid=yes 7283else 7284 eval $cacheid=no 7285fi 7286rm -f core conftest.err conftest.$ac_objext \ 7287 conftest$ac_exeext conftest.$ac_ext 7288fi 7289 7290 7291 CFLAGS="$xorg_testset_save_CFLAGS" 7292 7293 eval supported=\$$cacheid 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7295$as_echo "$supported" >&6; } 7296 if test "$supported" = "yes" ; then 7297 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7298 found="yes" 7299 fi 7300 fi 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316xorg_testset_save_CFLAGS="$CFLAGS" 7317 7318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7326/* end confdefs.h. */ 7327int i; 7328_ACEOF 7329if ac_fn_c_try_compile "$LINENO"; then : 7330 xorg_cv_cc_flag_unknown_warning_option=yes 7331else 7332 xorg_cv_cc_flag_unknown_warning_option=no 7333fi 7334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7335fi 7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7339 CFLAGS="$xorg_testset_save_CFLAGS" 7340fi 7341 7342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7345 fi 7346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7353/* end confdefs.h. */ 7354int i; 7355_ACEOF 7356if ac_fn_c_try_compile "$LINENO"; then : 7357 xorg_cv_cc_flag_unused_command_line_argument=yes 7358else 7359 xorg_cv_cc_flag_unused_command_line_argument=no 7360fi 7361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7362fi 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7366 CFLAGS="$xorg_testset_save_CFLAGS" 7367fi 7368 7369found="no" 7370 7371 if test $found = "no" ; then 7372 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7374 fi 7375 7376 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7378 fi 7379 7380 CFLAGS="$CFLAGS -Werror=return-type" 7381 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 7383$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 7384 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7385 if eval \${$cacheid+:} false; then : 7386 $as_echo_n "(cached) " >&6 7387else 7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389/* end confdefs.h. */ 7390int i; 7391int 7392main () 7393{ 7394 7395 ; 7396 return 0; 7397} 7398_ACEOF 7399if ac_fn_c_try_link "$LINENO"; then : 7400 eval $cacheid=yes 7401else 7402 eval $cacheid=no 7403fi 7404rm -f core conftest.err conftest.$ac_objext \ 7405 conftest$ac_exeext conftest.$ac_ext 7406fi 7407 7408 7409 CFLAGS="$xorg_testset_save_CFLAGS" 7410 7411 eval supported=\$$cacheid 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7413$as_echo "$supported" >&6; } 7414 if test "$supported" = "yes" ; then 7415 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7416 found="yes" 7417 fi 7418 fi 7419 7420 if test $found = "no" ; then 7421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7423 fi 7424 7425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7427 fi 7428 7429 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7430 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7432$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7433 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7434 if eval \${$cacheid+:} false; then : 7435 $as_echo_n "(cached) " >&6 7436else 7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7438/* end confdefs.h. */ 7439int i; 7440int 7441main () 7442{ 7443 7444 ; 7445 return 0; 7446} 7447_ACEOF 7448if ac_fn_c_try_link "$LINENO"; then : 7449 eval $cacheid=yes 7450else 7451 eval $cacheid=no 7452fi 7453rm -f core conftest.err conftest.$ac_objext \ 7454 conftest$ac_exeext conftest.$ac_ext 7455fi 7456 7457 7458 CFLAGS="$xorg_testset_save_CFLAGS" 7459 7460 eval supported=\$$cacheid 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7462$as_echo "$supported" >&6; } 7463 if test "$supported" = "yes" ; then 7464 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7465 found="yes" 7466 fi 7467 fi 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483xorg_testset_save_CFLAGS="$CFLAGS" 7484 7485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7493/* end confdefs.h. */ 7494int i; 7495_ACEOF 7496if ac_fn_c_try_compile "$LINENO"; then : 7497 xorg_cv_cc_flag_unknown_warning_option=yes 7498else 7499 xorg_cv_cc_flag_unknown_warning_option=no 7500fi 7501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7502fi 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7506 CFLAGS="$xorg_testset_save_CFLAGS" 7507fi 7508 7509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7512 fi 7513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518else 7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7520/* end confdefs.h. */ 7521int i; 7522_ACEOF 7523if ac_fn_c_try_compile "$LINENO"; then : 7524 xorg_cv_cc_flag_unused_command_line_argument=yes 7525else 7526 xorg_cv_cc_flag_unused_command_line_argument=no 7527fi 7528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7529fi 7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7533 CFLAGS="$xorg_testset_save_CFLAGS" 7534fi 7535 7536found="no" 7537 7538 if test $found = "no" ; then 7539 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 fi 7542 7543 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7545 fi 7546 7547 CFLAGS="$CFLAGS -Werror=trigraphs" 7548 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 7550$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 7551 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7552 if eval \${$cacheid+:} false; then : 7553 $as_echo_n "(cached) " >&6 7554else 7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7556/* end confdefs.h. */ 7557int i; 7558int 7559main () 7560{ 7561 7562 ; 7563 return 0; 7564} 7565_ACEOF 7566if ac_fn_c_try_link "$LINENO"; then : 7567 eval $cacheid=yes 7568else 7569 eval $cacheid=no 7570fi 7571rm -f core conftest.err conftest.$ac_objext \ 7572 conftest$ac_exeext conftest.$ac_ext 7573fi 7574 7575 7576 CFLAGS="$xorg_testset_save_CFLAGS" 7577 7578 eval supported=\$$cacheid 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7580$as_echo "$supported" >&6; } 7581 if test "$supported" = "yes" ; then 7582 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7583 found="yes" 7584 fi 7585 fi 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601xorg_testset_save_CFLAGS="$CFLAGS" 7602 7603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7611/* end confdefs.h. */ 7612int i; 7613_ACEOF 7614if ac_fn_c_try_compile "$LINENO"; then : 7615 xorg_cv_cc_flag_unknown_warning_option=yes 7616else 7617 xorg_cv_cc_flag_unknown_warning_option=no 7618fi 7619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7620fi 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625fi 7626 7627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7630 fi 7631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7635 $as_echo_n "(cached) " >&6 7636else 7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7638/* end confdefs.h. */ 7639int i; 7640_ACEOF 7641if ac_fn_c_try_compile "$LINENO"; then : 7642 xorg_cv_cc_flag_unused_command_line_argument=yes 7643else 7644 xorg_cv_cc_flag_unused_command_line_argument=no 7645fi 7646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7647fi 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7651 CFLAGS="$xorg_testset_save_CFLAGS" 7652fi 7653 7654found="no" 7655 7656 if test $found = "no" ; then 7657 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7659 fi 7660 7661 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7663 fi 7664 7665 CFLAGS="$CFLAGS -Werror=array-bounds" 7666 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 7668$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 7669 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7670 if eval \${$cacheid+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675int i; 7676int 7677main () 7678{ 7679 7680 ; 7681 return 0; 7682} 7683_ACEOF 7684if ac_fn_c_try_link "$LINENO"; then : 7685 eval $cacheid=yes 7686else 7687 eval $cacheid=no 7688fi 7689rm -f core conftest.err conftest.$ac_objext \ 7690 conftest$ac_exeext conftest.$ac_ext 7691fi 7692 7693 7694 CFLAGS="$xorg_testset_save_CFLAGS" 7695 7696 eval supported=\$$cacheid 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7698$as_echo "$supported" >&6; } 7699 if test "$supported" = "yes" ; then 7700 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7701 found="yes" 7702 fi 7703 fi 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719xorg_testset_save_CFLAGS="$CFLAGS" 7720 7721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7726 $as_echo_n "(cached) " >&6 7727else 7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7729/* end confdefs.h. */ 7730int i; 7731_ACEOF 7732if ac_fn_c_try_compile "$LINENO"; then : 7733 xorg_cv_cc_flag_unknown_warning_option=yes 7734else 7735 xorg_cv_cc_flag_unknown_warning_option=no 7736fi 7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7738fi 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7742 CFLAGS="$xorg_testset_save_CFLAGS" 7743fi 7744 7745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7748 fi 7749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7756/* end confdefs.h. */ 7757int i; 7758_ACEOF 7759if ac_fn_c_try_compile "$LINENO"; then : 7760 xorg_cv_cc_flag_unused_command_line_argument=yes 7761else 7762 xorg_cv_cc_flag_unused_command_line_argument=no 7763fi 7764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7765fi 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7769 CFLAGS="$xorg_testset_save_CFLAGS" 7770fi 7771 7772found="no" 7773 7774 if test $found = "no" ; then 7775 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7777 fi 7778 7779 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7781 fi 7782 7783 CFLAGS="$CFLAGS -Werror=write-strings" 7784 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 7786$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 7787 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7788 if eval \${$cacheid+:} false; then : 7789 $as_echo_n "(cached) " >&6 7790else 7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7792/* end confdefs.h. */ 7793int i; 7794int 7795main () 7796{ 7797 7798 ; 7799 return 0; 7800} 7801_ACEOF 7802if ac_fn_c_try_link "$LINENO"; then : 7803 eval $cacheid=yes 7804else 7805 eval $cacheid=no 7806fi 7807rm -f core conftest.err conftest.$ac_objext \ 7808 conftest$ac_exeext conftest.$ac_ext 7809fi 7810 7811 7812 CFLAGS="$xorg_testset_save_CFLAGS" 7813 7814 eval supported=\$$cacheid 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7816$as_echo "$supported" >&6; } 7817 if test "$supported" = "yes" ; then 7818 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7819 found="yes" 7820 fi 7821 fi 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837xorg_testset_save_CFLAGS="$CFLAGS" 7838 7839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7844 $as_echo_n "(cached) " >&6 7845else 7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7847/* end confdefs.h. */ 7848int i; 7849_ACEOF 7850if ac_fn_c_try_compile "$LINENO"; then : 7851 xorg_cv_cc_flag_unknown_warning_option=yes 7852else 7853 xorg_cv_cc_flag_unknown_warning_option=no 7854fi 7855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7856fi 7857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7860 CFLAGS="$xorg_testset_save_CFLAGS" 7861fi 7862 7863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7866 fi 7867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7871 $as_echo_n "(cached) " >&6 7872else 7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7874/* end confdefs.h. */ 7875int i; 7876_ACEOF 7877if ac_fn_c_try_compile "$LINENO"; then : 7878 xorg_cv_cc_flag_unused_command_line_argument=yes 7879else 7880 xorg_cv_cc_flag_unused_command_line_argument=no 7881fi 7882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7883fi 7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7887 CFLAGS="$xorg_testset_save_CFLAGS" 7888fi 7889 7890found="no" 7891 7892 if test $found = "no" ; then 7893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7895 fi 7896 7897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7899 fi 7900 7901 CFLAGS="$CFLAGS -Werror=address" 7902 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 7904$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 7905 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 7906 if eval \${$cacheid+:} false; then : 7907 $as_echo_n "(cached) " >&6 7908else 7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7910/* end confdefs.h. */ 7911int i; 7912int 7913main () 7914{ 7915 7916 ; 7917 return 0; 7918} 7919_ACEOF 7920if ac_fn_c_try_link "$LINENO"; then : 7921 eval $cacheid=yes 7922else 7923 eval $cacheid=no 7924fi 7925rm -f core conftest.err conftest.$ac_objext \ 7926 conftest$ac_exeext conftest.$ac_ext 7927fi 7928 7929 7930 CFLAGS="$xorg_testset_save_CFLAGS" 7931 7932 eval supported=\$$cacheid 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7934$as_echo "$supported" >&6; } 7935 if test "$supported" = "yes" ; then 7936 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7937 found="yes" 7938 fi 7939 fi 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955xorg_testset_save_CFLAGS="$CFLAGS" 7956 7957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7962 $as_echo_n "(cached) " >&6 7963else 7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7965/* end confdefs.h. */ 7966int i; 7967_ACEOF 7968if ac_fn_c_try_compile "$LINENO"; then : 7969 xorg_cv_cc_flag_unknown_warning_option=yes 7970else 7971 xorg_cv_cc_flag_unknown_warning_option=no 7972fi 7973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7974fi 7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7978 CFLAGS="$xorg_testset_save_CFLAGS" 7979fi 7980 7981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7984 fi 7985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7989 $as_echo_n "(cached) " >&6 7990else 7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7992/* end confdefs.h. */ 7993int i; 7994_ACEOF 7995if ac_fn_c_try_compile "$LINENO"; then : 7996 xorg_cv_cc_flag_unused_command_line_argument=yes 7997else 7998 xorg_cv_cc_flag_unused_command_line_argument=no 7999fi 8000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8001fi 8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8005 CFLAGS="$xorg_testset_save_CFLAGS" 8006fi 8007 8008found="no" 8009 8010 if test $found = "no" ; then 8011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8013 fi 8014 8015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8017 fi 8018 8019 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8020 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 8022$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 8023 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8024 if eval \${$cacheid+:} false; then : 8025 $as_echo_n "(cached) " >&6 8026else 8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8028/* end confdefs.h. */ 8029int i; 8030int 8031main () 8032{ 8033 8034 ; 8035 return 0; 8036} 8037_ACEOF 8038if ac_fn_c_try_link "$LINENO"; then : 8039 eval $cacheid=yes 8040else 8041 eval $cacheid=no 8042fi 8043rm -f core conftest.err conftest.$ac_objext \ 8044 conftest$ac_exeext conftest.$ac_ext 8045fi 8046 8047 8048 CFLAGS="$xorg_testset_save_CFLAGS" 8049 8050 eval supported=\$$cacheid 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8052$as_echo "$supported" >&6; } 8053 if test "$supported" = "yes" ; then 8054 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8055 found="yes" 8056 fi 8057 fi 8058 8059 if test $found = "no" ; then 8060 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8062 fi 8063 8064 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8066 fi 8067 8068 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8069 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8071$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8072 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8073 if eval \${$cacheid+:} false; then : 8074 $as_echo_n "(cached) " >&6 8075else 8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8077/* end confdefs.h. */ 8078int i; 8079int 8080main () 8081{ 8082 8083 ; 8084 return 0; 8085} 8086_ACEOF 8087if ac_fn_c_try_link "$LINENO"; then : 8088 eval $cacheid=yes 8089else 8090 eval $cacheid=no 8091fi 8092rm -f core conftest.err conftest.$ac_objext \ 8093 conftest$ac_exeext conftest.$ac_ext 8094fi 8095 8096 8097 CFLAGS="$xorg_testset_save_CFLAGS" 8098 8099 eval supported=\$$cacheid 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8101$as_echo "$supported" >&6; } 8102 if test "$supported" = "yes" ; then 8103 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8104 found="yes" 8105 fi 8106 fi 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122xorg_testset_save_CFLAGS="$CFLAGS" 8123 8124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8132/* end confdefs.h. */ 8133int i; 8134_ACEOF 8135if ac_fn_c_try_compile "$LINENO"; then : 8136 xorg_cv_cc_flag_unknown_warning_option=yes 8137else 8138 xorg_cv_cc_flag_unknown_warning_option=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8141fi 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146fi 8147 8148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8151 fi 8152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160int i; 8161_ACEOF 8162if ac_fn_c_try_compile "$LINENO"; then : 8163 xorg_cv_cc_flag_unused_command_line_argument=yes 8164else 8165 xorg_cv_cc_flag_unused_command_line_argument=no 8166fi 8167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8168fi 8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8172 CFLAGS="$xorg_testset_save_CFLAGS" 8173fi 8174 8175found="no" 8176 8177 if test $found = "no" ; then 8178 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8180 fi 8181 8182 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8184 fi 8185 8186 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8187 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 8189$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 8190 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8191 if eval \${$cacheid+:} false; then : 8192 $as_echo_n "(cached) " >&6 8193else 8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8195/* end confdefs.h. */ 8196int i; 8197int 8198main () 8199{ 8200 8201 ; 8202 return 0; 8203} 8204_ACEOF 8205if ac_fn_c_try_link "$LINENO"; then : 8206 eval $cacheid=yes 8207else 8208 eval $cacheid=no 8209fi 8210rm -f core conftest.err conftest.$ac_objext \ 8211 conftest$ac_exeext conftest.$ac_ext 8212fi 8213 8214 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216 8217 eval supported=\$$cacheid 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8219$as_echo "$supported" >&6; } 8220 if test "$supported" = "yes" ; then 8221 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8222 found="yes" 8223 fi 8224 fi 8225 8226 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8227else 8228{ $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 8229$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;} 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243xorg_testset_save_CFLAGS="$CFLAGS" 8244 8245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254int i; 8255_ACEOF 8256if ac_fn_c_try_compile "$LINENO"; then : 8257 xorg_cv_cc_flag_unknown_warning_option=yes 8258else 8259 xorg_cv_cc_flag_unknown_warning_option=no 8260fi 8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8262fi 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8266 CFLAGS="$xorg_testset_save_CFLAGS" 8267fi 8268 8269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8272 fi 8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278else 8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8280/* end confdefs.h. */ 8281int i; 8282_ACEOF 8283if ac_fn_c_try_compile "$LINENO"; then : 8284 xorg_cv_cc_flag_unused_command_line_argument=yes 8285else 8286 xorg_cv_cc_flag_unused_command_line_argument=no 8287fi 8288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8289fi 8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8293 CFLAGS="$xorg_testset_save_CFLAGS" 8294fi 8295 8296found="no" 8297 8298 if test $found = "no" ; then 8299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8301 fi 8302 8303 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8305 fi 8306 8307 CFLAGS="$CFLAGS -Wimplicit" 8308 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 8310$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 8311 cacheid=xorg_cv_cc_flag__Wimplicit 8312 if eval \${$cacheid+:} false; then : 8313 $as_echo_n "(cached) " >&6 8314else 8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316/* end confdefs.h. */ 8317int i; 8318int 8319main () 8320{ 8321 8322 ; 8323 return 0; 8324} 8325_ACEOF 8326if ac_fn_c_try_link "$LINENO"; then : 8327 eval $cacheid=yes 8328else 8329 eval $cacheid=no 8330fi 8331rm -f core conftest.err conftest.$ac_objext \ 8332 conftest$ac_exeext conftest.$ac_ext 8333fi 8334 8335 8336 CFLAGS="$xorg_testset_save_CFLAGS" 8337 8338 eval supported=\$$cacheid 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8340$as_echo "$supported" >&6; } 8341 if test "$supported" = "yes" ; then 8342 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8343 found="yes" 8344 fi 8345 fi 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361xorg_testset_save_CFLAGS="$CFLAGS" 8362 8363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369else 8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372int i; 8373_ACEOF 8374if ac_fn_c_try_compile "$LINENO"; then : 8375 xorg_cv_cc_flag_unknown_warning_option=yes 8376else 8377 xorg_cv_cc_flag_unknown_warning_option=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8380fi 8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385fi 8386 8387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8390 fi 8391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8395 $as_echo_n "(cached) " >&6 8396else 8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8398/* end confdefs.h. */ 8399int i; 8400_ACEOF 8401if ac_fn_c_try_compile "$LINENO"; then : 8402 xorg_cv_cc_flag_unused_command_line_argument=yes 8403else 8404 xorg_cv_cc_flag_unused_command_line_argument=no 8405fi 8406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8407fi 8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8411 CFLAGS="$xorg_testset_save_CFLAGS" 8412fi 8413 8414found="no" 8415 8416 if test $found = "no" ; then 8417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8419 fi 8420 8421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8423 fi 8424 8425 CFLAGS="$CFLAGS -Wnonnull" 8426 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 8428$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 8429 cacheid=xorg_cv_cc_flag__Wnonnull 8430 if eval \${$cacheid+:} false; then : 8431 $as_echo_n "(cached) " >&6 8432else 8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434/* end confdefs.h. */ 8435int i; 8436int 8437main () 8438{ 8439 8440 ; 8441 return 0; 8442} 8443_ACEOF 8444if ac_fn_c_try_link "$LINENO"; then : 8445 eval $cacheid=yes 8446else 8447 eval $cacheid=no 8448fi 8449rm -f core conftest.err conftest.$ac_objext \ 8450 conftest$ac_exeext conftest.$ac_ext 8451fi 8452 8453 8454 CFLAGS="$xorg_testset_save_CFLAGS" 8455 8456 eval supported=\$$cacheid 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8458$as_echo "$supported" >&6; } 8459 if test "$supported" = "yes" ; then 8460 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8461 found="yes" 8462 fi 8463 fi 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479xorg_testset_save_CFLAGS="$CFLAGS" 8480 8481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8486 $as_echo_n "(cached) " >&6 8487else 8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490int i; 8491_ACEOF 8492if ac_fn_c_try_compile "$LINENO"; then : 8493 xorg_cv_cc_flag_unknown_warning_option=yes 8494else 8495 xorg_cv_cc_flag_unknown_warning_option=no 8496fi 8497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8498fi 8499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8502 CFLAGS="$xorg_testset_save_CFLAGS" 8503fi 8504 8505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8508 fi 8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8516/* end confdefs.h. */ 8517int i; 8518_ACEOF 8519if ac_fn_c_try_compile "$LINENO"; then : 8520 xorg_cv_cc_flag_unused_command_line_argument=yes 8521else 8522 xorg_cv_cc_flag_unused_command_line_argument=no 8523fi 8524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8525fi 8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530fi 8531 8532found="no" 8533 8534 if test $found = "no" ; then 8535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8537 fi 8538 8539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8541 fi 8542 8543 CFLAGS="$CFLAGS -Winit-self" 8544 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 8546$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 8547 cacheid=xorg_cv_cc_flag__Winit_self 8548 if eval \${$cacheid+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553int i; 8554int 8555main () 8556{ 8557 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562if ac_fn_c_try_link "$LINENO"; then : 8563 eval $cacheid=yes 8564else 8565 eval $cacheid=no 8566fi 8567rm -f core conftest.err conftest.$ac_objext \ 8568 conftest$ac_exeext conftest.$ac_ext 8569fi 8570 8571 8572 CFLAGS="$xorg_testset_save_CFLAGS" 8573 8574 eval supported=\$$cacheid 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8576$as_echo "$supported" >&6; } 8577 if test "$supported" = "yes" ; then 8578 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8579 found="yes" 8580 fi 8581 fi 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597xorg_testset_save_CFLAGS="$CFLAGS" 8598 8599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607/* end confdefs.h. */ 8608int i; 8609_ACEOF 8610if ac_fn_c_try_compile "$LINENO"; then : 8611 xorg_cv_cc_flag_unknown_warning_option=yes 8612else 8613 xorg_cv_cc_flag_unknown_warning_option=no 8614fi 8615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8616fi 8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8620 CFLAGS="$xorg_testset_save_CFLAGS" 8621fi 8622 8623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8626 fi 8627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8631 $as_echo_n "(cached) " >&6 8632else 8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8634/* end confdefs.h. */ 8635int i; 8636_ACEOF 8637if ac_fn_c_try_compile "$LINENO"; then : 8638 xorg_cv_cc_flag_unused_command_line_argument=yes 8639else 8640 xorg_cv_cc_flag_unused_command_line_argument=no 8641fi 8642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8643fi 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8647 CFLAGS="$xorg_testset_save_CFLAGS" 8648fi 8649 8650found="no" 8651 8652 if test $found = "no" ; then 8653 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8655 fi 8656 8657 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8659 fi 8660 8661 CFLAGS="$CFLAGS -Wmain" 8662 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 8664$as_echo_n "checking if $CC supports-Wmain... " >&6; } 8665 cacheid=xorg_cv_cc_flag__Wmain 8666 if eval \${$cacheid+:} false; then : 8667 $as_echo_n "(cached) " >&6 8668else 8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8670/* end confdefs.h. */ 8671int i; 8672int 8673main () 8674{ 8675 8676 ; 8677 return 0; 8678} 8679_ACEOF 8680if ac_fn_c_try_link "$LINENO"; then : 8681 eval $cacheid=yes 8682else 8683 eval $cacheid=no 8684fi 8685rm -f core conftest.err conftest.$ac_objext \ 8686 conftest$ac_exeext conftest.$ac_ext 8687fi 8688 8689 8690 CFLAGS="$xorg_testset_save_CFLAGS" 8691 8692 eval supported=\$$cacheid 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8694$as_echo "$supported" >&6; } 8695 if test "$supported" = "yes" ; then 8696 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8697 found="yes" 8698 fi 8699 fi 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715xorg_testset_save_CFLAGS="$CFLAGS" 8716 8717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8722 $as_echo_n "(cached) " >&6 8723else 8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8725/* end confdefs.h. */ 8726int i; 8727_ACEOF 8728if ac_fn_c_try_compile "$LINENO"; then : 8729 xorg_cv_cc_flag_unknown_warning_option=yes 8730else 8731 xorg_cv_cc_flag_unknown_warning_option=no 8732fi 8733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8734fi 8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8738 CFLAGS="$xorg_testset_save_CFLAGS" 8739fi 8740 8741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 fi 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8749 $as_echo_n "(cached) " >&6 8750else 8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8752/* end confdefs.h. */ 8753int i; 8754_ACEOF 8755if ac_fn_c_try_compile "$LINENO"; then : 8756 xorg_cv_cc_flag_unused_command_line_argument=yes 8757else 8758 xorg_cv_cc_flag_unused_command_line_argument=no 8759fi 8760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8761fi 8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8765 CFLAGS="$xorg_testset_save_CFLAGS" 8766fi 8767 8768found="no" 8769 8770 if test $found = "no" ; then 8771 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8773 fi 8774 8775 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8777 fi 8778 8779 CFLAGS="$CFLAGS -Wmissing-braces" 8780 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 8782$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 8783 cacheid=xorg_cv_cc_flag__Wmissing_braces 8784 if eval \${$cacheid+:} false; then : 8785 $as_echo_n "(cached) " >&6 8786else 8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8788/* end confdefs.h. */ 8789int i; 8790int 8791main () 8792{ 8793 8794 ; 8795 return 0; 8796} 8797_ACEOF 8798if ac_fn_c_try_link "$LINENO"; then : 8799 eval $cacheid=yes 8800else 8801 eval $cacheid=no 8802fi 8803rm -f core conftest.err conftest.$ac_objext \ 8804 conftest$ac_exeext conftest.$ac_ext 8805fi 8806 8807 8808 CFLAGS="$xorg_testset_save_CFLAGS" 8809 8810 eval supported=\$$cacheid 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8812$as_echo "$supported" >&6; } 8813 if test "$supported" = "yes" ; then 8814 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8815 found="yes" 8816 fi 8817 fi 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833xorg_testset_save_CFLAGS="$CFLAGS" 8834 8835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8840 $as_echo_n "(cached) " >&6 8841else 8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8843/* end confdefs.h. */ 8844int i; 8845_ACEOF 8846if ac_fn_c_try_compile "$LINENO"; then : 8847 xorg_cv_cc_flag_unknown_warning_option=yes 8848else 8849 xorg_cv_cc_flag_unknown_warning_option=no 8850fi 8851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8852fi 8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8856 CFLAGS="$xorg_testset_save_CFLAGS" 8857fi 8858 8859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8862 fi 8863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8867 $as_echo_n "(cached) " >&6 8868else 8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8870/* end confdefs.h. */ 8871int i; 8872_ACEOF 8873if ac_fn_c_try_compile "$LINENO"; then : 8874 xorg_cv_cc_flag_unused_command_line_argument=yes 8875else 8876 xorg_cv_cc_flag_unused_command_line_argument=no 8877fi 8878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8879fi 8880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8883 CFLAGS="$xorg_testset_save_CFLAGS" 8884fi 8885 8886found="no" 8887 8888 if test $found = "no" ; then 8889 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8891 fi 8892 8893 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8895 fi 8896 8897 CFLAGS="$CFLAGS -Wsequence-point" 8898 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 8900$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 8901 cacheid=xorg_cv_cc_flag__Wsequence_point 8902 if eval \${$cacheid+:} false; then : 8903 $as_echo_n "(cached) " >&6 8904else 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907int i; 8908int 8909main () 8910{ 8911 8912 ; 8913 return 0; 8914} 8915_ACEOF 8916if ac_fn_c_try_link "$LINENO"; then : 8917 eval $cacheid=yes 8918else 8919 eval $cacheid=no 8920fi 8921rm -f core conftest.err conftest.$ac_objext \ 8922 conftest$ac_exeext conftest.$ac_ext 8923fi 8924 8925 8926 CFLAGS="$xorg_testset_save_CFLAGS" 8927 8928 eval supported=\$$cacheid 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8930$as_echo "$supported" >&6; } 8931 if test "$supported" = "yes" ; then 8932 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8933 found="yes" 8934 fi 8935 fi 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951xorg_testset_save_CFLAGS="$CFLAGS" 8952 8953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8958 $as_echo_n "(cached) " >&6 8959else 8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8961/* end confdefs.h. */ 8962int i; 8963_ACEOF 8964if ac_fn_c_try_compile "$LINENO"; then : 8965 xorg_cv_cc_flag_unknown_warning_option=yes 8966else 8967 xorg_cv_cc_flag_unknown_warning_option=no 8968fi 8969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8970fi 8971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8974 CFLAGS="$xorg_testset_save_CFLAGS" 8975fi 8976 8977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8980 fi 8981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8985 $as_echo_n "(cached) " >&6 8986else 8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988/* end confdefs.h. */ 8989int i; 8990_ACEOF 8991if ac_fn_c_try_compile "$LINENO"; then : 8992 xorg_cv_cc_flag_unused_command_line_argument=yes 8993else 8994 xorg_cv_cc_flag_unused_command_line_argument=no 8995fi 8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8997fi 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9001 CFLAGS="$xorg_testset_save_CFLAGS" 9002fi 9003 9004found="no" 9005 9006 if test $found = "no" ; then 9007 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9009 fi 9010 9011 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9013 fi 9014 9015 CFLAGS="$CFLAGS -Wreturn-type" 9016 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 9018$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 9019 cacheid=xorg_cv_cc_flag__Wreturn_type 9020 if eval \${$cacheid+:} false; then : 9021 $as_echo_n "(cached) " >&6 9022else 9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9024/* end confdefs.h. */ 9025int i; 9026int 9027main () 9028{ 9029 9030 ; 9031 return 0; 9032} 9033_ACEOF 9034if ac_fn_c_try_link "$LINENO"; then : 9035 eval $cacheid=yes 9036else 9037 eval $cacheid=no 9038fi 9039rm -f core conftest.err conftest.$ac_objext \ 9040 conftest$ac_exeext conftest.$ac_ext 9041fi 9042 9043 9044 CFLAGS="$xorg_testset_save_CFLAGS" 9045 9046 eval supported=\$$cacheid 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9048$as_echo "$supported" >&6; } 9049 if test "$supported" = "yes" ; then 9050 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9051 found="yes" 9052 fi 9053 fi 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069xorg_testset_save_CFLAGS="$CFLAGS" 9070 9071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9076 $as_echo_n "(cached) " >&6 9077else 9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9079/* end confdefs.h. */ 9080int i; 9081_ACEOF 9082if ac_fn_c_try_compile "$LINENO"; then : 9083 xorg_cv_cc_flag_unknown_warning_option=yes 9084else 9085 xorg_cv_cc_flag_unknown_warning_option=no 9086fi 9087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9088fi 9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9092 CFLAGS="$xorg_testset_save_CFLAGS" 9093fi 9094 9095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9098 fi 9099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9103 $as_echo_n "(cached) " >&6 9104else 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107int i; 9108_ACEOF 9109if ac_fn_c_try_compile "$LINENO"; then : 9110 xorg_cv_cc_flag_unused_command_line_argument=yes 9111else 9112 xorg_cv_cc_flag_unused_command_line_argument=no 9113fi 9114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9115fi 9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9119 CFLAGS="$xorg_testset_save_CFLAGS" 9120fi 9121 9122found="no" 9123 9124 if test $found = "no" ; then 9125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9127 fi 9128 9129 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9131 fi 9132 9133 CFLAGS="$CFLAGS -Wtrigraphs" 9134 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 9136$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 9137 cacheid=xorg_cv_cc_flag__Wtrigraphs 9138 if eval \${$cacheid+:} false; then : 9139 $as_echo_n "(cached) " >&6 9140else 9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9142/* end confdefs.h. */ 9143int i; 9144int 9145main () 9146{ 9147 9148 ; 9149 return 0; 9150} 9151_ACEOF 9152if ac_fn_c_try_link "$LINENO"; then : 9153 eval $cacheid=yes 9154else 9155 eval $cacheid=no 9156fi 9157rm -f core conftest.err conftest.$ac_objext \ 9158 conftest$ac_exeext conftest.$ac_ext 9159fi 9160 9161 9162 CFLAGS="$xorg_testset_save_CFLAGS" 9163 9164 eval supported=\$$cacheid 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9166$as_echo "$supported" >&6; } 9167 if test "$supported" = "yes" ; then 9168 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9169 found="yes" 9170 fi 9171 fi 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187xorg_testset_save_CFLAGS="$CFLAGS" 9188 9189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198int i; 9199_ACEOF 9200if ac_fn_c_try_compile "$LINENO"; then : 9201 xorg_cv_cc_flag_unknown_warning_option=yes 9202else 9203 xorg_cv_cc_flag_unknown_warning_option=no 9204fi 9205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9206fi 9207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9210 CFLAGS="$xorg_testset_save_CFLAGS" 9211fi 9212 9213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9216 fi 9217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9221 $as_echo_n "(cached) " >&6 9222else 9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9224/* end confdefs.h. */ 9225int i; 9226_ACEOF 9227if ac_fn_c_try_compile "$LINENO"; then : 9228 xorg_cv_cc_flag_unused_command_line_argument=yes 9229else 9230 xorg_cv_cc_flag_unused_command_line_argument=no 9231fi 9232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9233fi 9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9237 CFLAGS="$xorg_testset_save_CFLAGS" 9238fi 9239 9240found="no" 9241 9242 if test $found = "no" ; then 9243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9245 fi 9246 9247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9249 fi 9250 9251 CFLAGS="$CFLAGS -Warray-bounds" 9252 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 9254$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 9255 cacheid=xorg_cv_cc_flag__Warray_bounds 9256 if eval \${$cacheid+:} false; then : 9257 $as_echo_n "(cached) " >&6 9258else 9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9260/* end confdefs.h. */ 9261int i; 9262int 9263main () 9264{ 9265 9266 ; 9267 return 0; 9268} 9269_ACEOF 9270if ac_fn_c_try_link "$LINENO"; then : 9271 eval $cacheid=yes 9272else 9273 eval $cacheid=no 9274fi 9275rm -f core conftest.err conftest.$ac_objext \ 9276 conftest$ac_exeext conftest.$ac_ext 9277fi 9278 9279 9280 CFLAGS="$xorg_testset_save_CFLAGS" 9281 9282 eval supported=\$$cacheid 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9284$as_echo "$supported" >&6; } 9285 if test "$supported" = "yes" ; then 9286 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9287 found="yes" 9288 fi 9289 fi 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305xorg_testset_save_CFLAGS="$CFLAGS" 9306 9307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9312 $as_echo_n "(cached) " >&6 9313else 9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9315/* end confdefs.h. */ 9316int i; 9317_ACEOF 9318if ac_fn_c_try_compile "$LINENO"; then : 9319 xorg_cv_cc_flag_unknown_warning_option=yes 9320else 9321 xorg_cv_cc_flag_unknown_warning_option=no 9322fi 9323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9324fi 9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9328 CFLAGS="$xorg_testset_save_CFLAGS" 9329fi 9330 9331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9334 fi 9335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340else 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342/* end confdefs.h. */ 9343int i; 9344_ACEOF 9345if ac_fn_c_try_compile "$LINENO"; then : 9346 xorg_cv_cc_flag_unused_command_line_argument=yes 9347else 9348 xorg_cv_cc_flag_unused_command_line_argument=no 9349fi 9350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9351fi 9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9355 CFLAGS="$xorg_testset_save_CFLAGS" 9356fi 9357 9358found="no" 9359 9360 if test $found = "no" ; then 9361 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9363 fi 9364 9365 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9367 fi 9368 9369 CFLAGS="$CFLAGS -Wwrite-strings" 9370 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 9372$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 9373 cacheid=xorg_cv_cc_flag__Wwrite_strings 9374 if eval \${$cacheid+:} false; then : 9375 $as_echo_n "(cached) " >&6 9376else 9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9378/* end confdefs.h. */ 9379int i; 9380int 9381main () 9382{ 9383 9384 ; 9385 return 0; 9386} 9387_ACEOF 9388if ac_fn_c_try_link "$LINENO"; then : 9389 eval $cacheid=yes 9390else 9391 eval $cacheid=no 9392fi 9393rm -f core conftest.err conftest.$ac_objext \ 9394 conftest$ac_exeext conftest.$ac_ext 9395fi 9396 9397 9398 CFLAGS="$xorg_testset_save_CFLAGS" 9399 9400 eval supported=\$$cacheid 9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9402$as_echo "$supported" >&6; } 9403 if test "$supported" = "yes" ; then 9404 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9405 found="yes" 9406 fi 9407 fi 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423xorg_testset_save_CFLAGS="$CFLAGS" 9424 9425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9430 $as_echo_n "(cached) " >&6 9431else 9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433/* end confdefs.h. */ 9434int i; 9435_ACEOF 9436if ac_fn_c_try_compile "$LINENO"; then : 9437 xorg_cv_cc_flag_unknown_warning_option=yes 9438else 9439 xorg_cv_cc_flag_unknown_warning_option=no 9440fi 9441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9442fi 9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9446 CFLAGS="$xorg_testset_save_CFLAGS" 9447fi 9448 9449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9452 fi 9453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9457 $as_echo_n "(cached) " >&6 9458else 9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9460/* end confdefs.h. */ 9461int i; 9462_ACEOF 9463if ac_fn_c_try_compile "$LINENO"; then : 9464 xorg_cv_cc_flag_unused_command_line_argument=yes 9465else 9466 xorg_cv_cc_flag_unused_command_line_argument=no 9467fi 9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9469fi 9470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9473 CFLAGS="$xorg_testset_save_CFLAGS" 9474fi 9475 9476found="no" 9477 9478 if test $found = "no" ; then 9479 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9481 fi 9482 9483 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9485 fi 9486 9487 CFLAGS="$CFLAGS -Waddress" 9488 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 9490$as_echo_n "checking if $CC supports-Waddress... " >&6; } 9491 cacheid=xorg_cv_cc_flag__Waddress 9492 if eval \${$cacheid+:} false; then : 9493 $as_echo_n "(cached) " >&6 9494else 9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9496/* end confdefs.h. */ 9497int i; 9498int 9499main () 9500{ 9501 9502 ; 9503 return 0; 9504} 9505_ACEOF 9506if ac_fn_c_try_link "$LINENO"; then : 9507 eval $cacheid=yes 9508else 9509 eval $cacheid=no 9510fi 9511rm -f core conftest.err conftest.$ac_objext \ 9512 conftest$ac_exeext conftest.$ac_ext 9513fi 9514 9515 9516 CFLAGS="$xorg_testset_save_CFLAGS" 9517 9518 eval supported=\$$cacheid 9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9520$as_echo "$supported" >&6; } 9521 if test "$supported" = "yes" ; then 9522 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9523 found="yes" 9524 fi 9525 fi 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541xorg_testset_save_CFLAGS="$CFLAGS" 9542 9543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9548 $as_echo_n "(cached) " >&6 9549else 9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9551/* end confdefs.h. */ 9552int i; 9553_ACEOF 9554if ac_fn_c_try_compile "$LINENO"; then : 9555 xorg_cv_cc_flag_unknown_warning_option=yes 9556else 9557 xorg_cv_cc_flag_unknown_warning_option=no 9558fi 9559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9560fi 9561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9564 CFLAGS="$xorg_testset_save_CFLAGS" 9565fi 9566 9567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9570 fi 9571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9575 $as_echo_n "(cached) " >&6 9576else 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578/* end confdefs.h. */ 9579int i; 9580_ACEOF 9581if ac_fn_c_try_compile "$LINENO"; then : 9582 xorg_cv_cc_flag_unused_command_line_argument=yes 9583else 9584 xorg_cv_cc_flag_unused_command_line_argument=no 9585fi 9586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9587fi 9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9591 CFLAGS="$xorg_testset_save_CFLAGS" 9592fi 9593 9594found="no" 9595 9596 if test $found = "no" ; then 9597 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599 fi 9600 9601 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9603 fi 9604 9605 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9606 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 9608$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 9609 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9610 if eval \${$cacheid+:} false; then : 9611 $as_echo_n "(cached) " >&6 9612else 9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9614/* end confdefs.h. */ 9615int i; 9616int 9617main () 9618{ 9619 9620 ; 9621 return 0; 9622} 9623_ACEOF 9624if ac_fn_c_try_link "$LINENO"; then : 9625 eval $cacheid=yes 9626else 9627 eval $cacheid=no 9628fi 9629rm -f core conftest.err conftest.$ac_objext \ 9630 conftest$ac_exeext conftest.$ac_ext 9631fi 9632 9633 9634 CFLAGS="$xorg_testset_save_CFLAGS" 9635 9636 eval supported=\$$cacheid 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9638$as_echo "$supported" >&6; } 9639 if test "$supported" = "yes" ; then 9640 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9641 found="yes" 9642 fi 9643 fi 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659xorg_testset_save_CFLAGS="$CFLAGS" 9660 9661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9666 $as_echo_n "(cached) " >&6 9667else 9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9669/* end confdefs.h. */ 9670int i; 9671_ACEOF 9672if ac_fn_c_try_compile "$LINENO"; then : 9673 xorg_cv_cc_flag_unknown_warning_option=yes 9674else 9675 xorg_cv_cc_flag_unknown_warning_option=no 9676fi 9677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9678fi 9679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9682 CFLAGS="$xorg_testset_save_CFLAGS" 9683fi 9684 9685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9688 fi 9689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697int i; 9698_ACEOF 9699if ac_fn_c_try_compile "$LINENO"; then : 9700 xorg_cv_cc_flag_unused_command_line_argument=yes 9701else 9702 xorg_cv_cc_flag_unused_command_line_argument=no 9703fi 9704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9705fi 9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9709 CFLAGS="$xorg_testset_save_CFLAGS" 9710fi 9711 9712found="no" 9713 9714 if test $found = "no" ; then 9715 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9717 fi 9718 9719 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9721 fi 9722 9723 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9724 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 9726$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 9727 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9728 if eval \${$cacheid+:} false; then : 9729 $as_echo_n "(cached) " >&6 9730else 9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732/* end confdefs.h. */ 9733int i; 9734int 9735main () 9736{ 9737 9738 ; 9739 return 0; 9740} 9741_ACEOF 9742if ac_fn_c_try_link "$LINENO"; then : 9743 eval $cacheid=yes 9744else 9745 eval $cacheid=no 9746fi 9747rm -f core conftest.err conftest.$ac_objext \ 9748 conftest$ac_exeext conftest.$ac_ext 9749fi 9750 9751 9752 CFLAGS="$xorg_testset_save_CFLAGS" 9753 9754 eval supported=\$$cacheid 9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9756$as_echo "$supported" >&6; } 9757 if test "$supported" = "yes" ; then 9758 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9759 found="yes" 9760 fi 9761 fi 9762 9763 9764fi 9765 9766 9767 9768 9769 9770 9771 9772 CWARNFLAGS="$BASE_CFLAGS" 9773 if test "x$GCC" = xyes ; then 9774 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9775 fi 9776 9777 9778 9779 9780 9781 9782 9783 9784# Check whether --enable-strict-compilation was given. 9785if test "${enable_strict_compilation+set}" = set; then : 9786 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9787else 9788 STRICT_COMPILE=no 9789fi 9790 9791 9792 9793 9794 9795 9796STRICT_CFLAGS="" 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810xorg_testset_save_CFLAGS="$CFLAGS" 9811 9812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9817 $as_echo_n "(cached) " >&6 9818else 9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821int i; 9822_ACEOF 9823if ac_fn_c_try_compile "$LINENO"; then : 9824 xorg_cv_cc_flag_unknown_warning_option=yes 9825else 9826 xorg_cv_cc_flag_unknown_warning_option=no 9827fi 9828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9829fi 9830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9833 CFLAGS="$xorg_testset_save_CFLAGS" 9834fi 9835 9836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9839 fi 9840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9844 $as_echo_n "(cached) " >&6 9845else 9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9847/* end confdefs.h. */ 9848int i; 9849_ACEOF 9850if ac_fn_c_try_compile "$LINENO"; then : 9851 xorg_cv_cc_flag_unused_command_line_argument=yes 9852else 9853 xorg_cv_cc_flag_unused_command_line_argument=no 9854fi 9855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9856fi 9857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9860 CFLAGS="$xorg_testset_save_CFLAGS" 9861fi 9862 9863found="no" 9864 9865 if test $found = "no" ; then 9866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9868 fi 9869 9870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9872 fi 9873 9874 CFLAGS="$CFLAGS -pedantic" 9875 9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 9877$as_echo_n "checking if $CC supports-pedantic... " >&6; } 9878 cacheid=xorg_cv_cc_flag__pedantic 9879 if eval \${$cacheid+:} false; then : 9880 $as_echo_n "(cached) " >&6 9881else 9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9883/* end confdefs.h. */ 9884int i; 9885int 9886main () 9887{ 9888 9889 ; 9890 return 0; 9891} 9892_ACEOF 9893if ac_fn_c_try_link "$LINENO"; then : 9894 eval $cacheid=yes 9895else 9896 eval $cacheid=no 9897fi 9898rm -f core conftest.err conftest.$ac_objext \ 9899 conftest$ac_exeext conftest.$ac_ext 9900fi 9901 9902 9903 CFLAGS="$xorg_testset_save_CFLAGS" 9904 9905 eval supported=\$$cacheid 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9907$as_echo "$supported" >&6; } 9908 if test "$supported" = "yes" ; then 9909 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9910 found="yes" 9911 fi 9912 fi 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928xorg_testset_save_CFLAGS="$CFLAGS" 9929 9930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9935 $as_echo_n "(cached) " >&6 9936else 9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938/* end confdefs.h. */ 9939int i; 9940_ACEOF 9941if ac_fn_c_try_compile "$LINENO"; then : 9942 xorg_cv_cc_flag_unknown_warning_option=yes 9943else 9944 xorg_cv_cc_flag_unknown_warning_option=no 9945fi 9946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9947fi 9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9951 CFLAGS="$xorg_testset_save_CFLAGS" 9952fi 9953 9954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9957 fi 9958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9962 $as_echo_n "(cached) " >&6 9963else 9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9965/* end confdefs.h. */ 9966int i; 9967_ACEOF 9968if ac_fn_c_try_compile "$LINENO"; then : 9969 xorg_cv_cc_flag_unused_command_line_argument=yes 9970else 9971 xorg_cv_cc_flag_unused_command_line_argument=no 9972fi 9973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9974fi 9975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9978 CFLAGS="$xorg_testset_save_CFLAGS" 9979fi 9980 9981found="no" 9982 9983 if test $found = "no" ; then 9984 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9986 fi 9987 9988 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9990 fi 9991 9992 CFLAGS="$CFLAGS -Werror" 9993 9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 9995$as_echo_n "checking if $CC supports-Werror... " >&6; } 9996 cacheid=xorg_cv_cc_flag__Werror 9997 if eval \${$cacheid+:} false; then : 9998 $as_echo_n "(cached) " >&6 9999else 10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10001/* end confdefs.h. */ 10002int i; 10003int 10004main () 10005{ 10006 10007 ; 10008 return 0; 10009} 10010_ACEOF 10011if ac_fn_c_try_link "$LINENO"; then : 10012 eval $cacheid=yes 10013else 10014 eval $cacheid=no 10015fi 10016rm -f core conftest.err conftest.$ac_objext \ 10017 conftest$ac_exeext conftest.$ac_ext 10018fi 10019 10020 10021 CFLAGS="$xorg_testset_save_CFLAGS" 10022 10023 eval supported=\$$cacheid 10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10025$as_echo "$supported" >&6; } 10026 if test "$supported" = "yes" ; then 10027 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10028 found="yes" 10029 fi 10030 fi 10031 10032 if test $found = "no" ; then 10033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10035 fi 10036 10037 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10039 fi 10040 10041 CFLAGS="$CFLAGS -errwarn" 10042 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 10044$as_echo_n "checking if $CC supports-errwarn... " >&6; } 10045 cacheid=xorg_cv_cc_flag__errwarn 10046 if eval \${$cacheid+:} false; then : 10047 $as_echo_n "(cached) " >&6 10048else 10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10050/* end confdefs.h. */ 10051int i; 10052int 10053main () 10054{ 10055 10056 ; 10057 return 0; 10058} 10059_ACEOF 10060if ac_fn_c_try_link "$LINENO"; then : 10061 eval $cacheid=yes 10062else 10063 eval $cacheid=no 10064fi 10065rm -f core conftest.err conftest.$ac_objext \ 10066 conftest$ac_exeext conftest.$ac_ext 10067fi 10068 10069 10070 CFLAGS="$xorg_testset_save_CFLAGS" 10071 10072 eval supported=\$$cacheid 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10074$as_echo "$supported" >&6; } 10075 if test "$supported" = "yes" ; then 10076 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10077 found="yes" 10078 fi 10079 fi 10080 10081 10082 10083# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10084# activate it with -Werror, so we add it here explicitly. 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098xorg_testset_save_CFLAGS="$CFLAGS" 10099 10100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10105 $as_echo_n "(cached) " >&6 10106else 10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10108/* end confdefs.h. */ 10109int i; 10110_ACEOF 10111if ac_fn_c_try_compile "$LINENO"; then : 10112 xorg_cv_cc_flag_unknown_warning_option=yes 10113else 10114 xorg_cv_cc_flag_unknown_warning_option=no 10115fi 10116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10117fi 10118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10121 CFLAGS="$xorg_testset_save_CFLAGS" 10122fi 10123 10124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10127 fi 10128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136int i; 10137_ACEOF 10138if ac_fn_c_try_compile "$LINENO"; then : 10139 xorg_cv_cc_flag_unused_command_line_argument=yes 10140else 10141 xorg_cv_cc_flag_unused_command_line_argument=no 10142fi 10143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10144fi 10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10148 CFLAGS="$xorg_testset_save_CFLAGS" 10149fi 10150 10151found="no" 10152 10153 if test $found = "no" ; then 10154 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10156 fi 10157 10158 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10160 fi 10161 10162 CFLAGS="$CFLAGS -Werror=attributes" 10163 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 10165$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 10166 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10167 if eval \${$cacheid+:} false; then : 10168 $as_echo_n "(cached) " >&6 10169else 10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10171/* end confdefs.h. */ 10172int i; 10173int 10174main () 10175{ 10176 10177 ; 10178 return 0; 10179} 10180_ACEOF 10181if ac_fn_c_try_link "$LINENO"; then : 10182 eval $cacheid=yes 10183else 10184 eval $cacheid=no 10185fi 10186rm -f core conftest.err conftest.$ac_objext \ 10187 conftest$ac_exeext conftest.$ac_ext 10188fi 10189 10190 10191 CFLAGS="$xorg_testset_save_CFLAGS" 10192 10193 eval supported=\$$cacheid 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10195$as_echo "$supported" >&6; } 10196 if test "$supported" = "yes" ; then 10197 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10198 found="yes" 10199 fi 10200 fi 10201 10202 10203 10204if test "x$STRICT_COMPILE" = "xyes"; then 10205 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10206 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10207fi 10208 10209 10210 10211 10212 10213 10214cat >>confdefs.h <<_ACEOF 10215#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10216_ACEOF 10217 10218 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10219 if test "x$PVM" = "x"; then 10220 PVM="0" 10221 fi 10222 10223cat >>confdefs.h <<_ACEOF 10224#define PACKAGE_VERSION_MINOR $PVM 10225_ACEOF 10226 10227 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10228 if test "x$PVP" = "x"; then 10229 PVP="0" 10230 fi 10231 10232cat >>confdefs.h <<_ACEOF 10233#define PACKAGE_VERSION_PATCHLEVEL $PVP 10234_ACEOF 10235 10236 10237 10238CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10239mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10240|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10241echo 'git directory not found: installing possibly empty changelog.' >&2)" 10242 10243 10244 10245 10246macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10247INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10248mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10249|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10250echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10251 10252 10253 10254 10255 10256 10257if test x$APP_MAN_SUFFIX = x ; then 10258 APP_MAN_SUFFIX=1 10259fi 10260if test x$APP_MAN_DIR = x ; then 10261 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10262fi 10263 10264if test x$LIB_MAN_SUFFIX = x ; then 10265 LIB_MAN_SUFFIX=3 10266fi 10267if test x$LIB_MAN_DIR = x ; then 10268 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10269fi 10270 10271if test x$FILE_MAN_SUFFIX = x ; then 10272 case $host_os in 10273 solaris*) FILE_MAN_SUFFIX=4 ;; 10274 *) FILE_MAN_SUFFIX=5 ;; 10275 esac 10276fi 10277if test x$FILE_MAN_DIR = x ; then 10278 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10279fi 10280 10281if test x$MISC_MAN_SUFFIX = x ; then 10282 case $host_os in 10283 solaris*) MISC_MAN_SUFFIX=5 ;; 10284 *) MISC_MAN_SUFFIX=7 ;; 10285 esac 10286fi 10287if test x$MISC_MAN_DIR = x ; then 10288 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10289fi 10290 10291if test x$DRIVER_MAN_SUFFIX = x ; then 10292 case $host_os in 10293 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10294 *) DRIVER_MAN_SUFFIX=4 ;; 10295 esac 10296fi 10297if test x$DRIVER_MAN_DIR = x ; then 10298 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10299fi 10300 10301if test x$ADMIN_MAN_SUFFIX = x ; then 10302 case $host_os in 10303 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10304 *) ADMIN_MAN_SUFFIX=8 ;; 10305 esac 10306fi 10307if test x$ADMIN_MAN_DIR = x ; then 10308 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10309fi 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325XORG_MAN_PAGE="X Version 11" 10326 10327MAN_SUBSTS="\ 10328 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10329 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10330 -e 's|__xservername__|Xorg|g' \ 10331 -e 's|__xconfigfile__|xorg.conf|g' \ 10332 -e 's|__projectroot__|\$(prefix)|g' \ 10333 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10334 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10335 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10336 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10337 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10338 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10339 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10340 10341 10342 10343# Check whether --enable-silent-rules was given. 10344if test "${enable_silent_rules+set}" = set; then : 10345 enableval=$enable_silent_rules; 10346fi 10347 10348case $enable_silent_rules in 10349yes) AM_DEFAULT_VERBOSITY=0;; 10350no) AM_DEFAULT_VERBOSITY=1;; 10351*) AM_DEFAULT_VERBOSITY=0;; 10352esac 10353AM_BACKSLASH='\' 10354 10355 10356 10357# Checks for pkg-config packages 10358 10359pkg_failed=no 10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGAMMA" >&5 10361$as_echo_n "checking for XGAMMA... " >&6; } 10362 10363if test -n "$XGAMMA_CFLAGS"; then 10364 pkg_cv_XGAMMA_CFLAGS="$XGAMMA_CFLAGS" 10365 elif test -n "$PKG_CONFIG"; then 10366 if test -n "$PKG_CONFIG" && \ 10367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm\""; } >&5 10368 ($PKG_CONFIG --exists --print-errors "x11 xxf86vm") 2>&5 10369 ac_status=$? 10370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10371 test $ac_status = 0; }; then 10372 pkg_cv_XGAMMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xxf86vm" 2>/dev/null` 10373else 10374 pkg_failed=yes 10375fi 10376 else 10377 pkg_failed=untried 10378fi 10379if test -n "$XGAMMA_LIBS"; then 10380 pkg_cv_XGAMMA_LIBS="$XGAMMA_LIBS" 10381 elif test -n "$PKG_CONFIG"; then 10382 if test -n "$PKG_CONFIG" && \ 10383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xxf86vm\""; } >&5 10384 ($PKG_CONFIG --exists --print-errors "x11 xxf86vm") 2>&5 10385 ac_status=$? 10386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10387 test $ac_status = 0; }; then 10388 pkg_cv_XGAMMA_LIBS=`$PKG_CONFIG --libs "x11 xxf86vm" 2>/dev/null` 10389else 10390 pkg_failed=yes 10391fi 10392 else 10393 pkg_failed=untried 10394fi 10395 10396 10397 10398if test $pkg_failed = yes; then 10399 10400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10401 _pkg_short_errors_supported=yes 10402else 10403 _pkg_short_errors_supported=no 10404fi 10405 if test $_pkg_short_errors_supported = yes; then 10406 XGAMMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xxf86vm" 2>&1` 10407 else 10408 XGAMMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xxf86vm" 2>&1` 10409 fi 10410 # Put the nasty error message in config.log where it belongs 10411 echo "$XGAMMA_PKG_ERRORS" >&5 10412 10413 as_fn_error $? "Package requirements (x11 xxf86vm) were not met: 10414 10415$XGAMMA_PKG_ERRORS 10416 10417Consider adjusting the PKG_CONFIG_PATH environment variable if you 10418installed software in a non-standard prefix. 10419 10420Alternatively, you may set the environment variables XGAMMA_CFLAGS 10421and XGAMMA_LIBS to avoid the need to call pkg-config. 10422See the pkg-config man page for more details. 10423" "$LINENO" 5 10424elif test $pkg_failed = untried; then 10425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10427as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10428is in your PATH or set the PKG_CONFIG environment variable to the full 10429path to pkg-config. 10430 10431Alternatively, you may set the environment variables XGAMMA_CFLAGS 10432and XGAMMA_LIBS to avoid the need to call pkg-config. 10433See the pkg-config man page for more details. 10434 10435To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10436See \`config.log' for more details" "$LINENO" 5; } 10437else 10438 XGAMMA_CFLAGS=$pkg_cv_XGAMMA_CFLAGS 10439 XGAMMA_LIBS=$pkg_cv_XGAMMA_LIBS 10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10441$as_echo "yes" >&6; } 10442 : 10443fi 10444 10445ac_config_files="$ac_config_files Makefile man/Makefile" 10446 10447cat >confcache <<\_ACEOF 10448# This file is a shell script that caches the results of configure 10449# tests run on this system so they can be shared between configure 10450# scripts and configure runs, see configure's option --config-cache. 10451# It is not useful on other systems. If it contains results you don't 10452# want to keep, you may remove or edit it. 10453# 10454# config.status only pays attention to the cache file if you give it 10455# the --recheck option to rerun configure. 10456# 10457# `ac_cv_env_foo' variables (set or unset) will be overridden when 10458# loading this file, other *unset* `ac_cv_foo' will be assigned the 10459# following values. 10460 10461_ACEOF 10462 10463# The following way of writing the cache mishandles newlines in values, 10464# but we know of no workaround that is simple, portable, and efficient. 10465# So, we kill variables containing newlines. 10466# Ultrix sh set writes to stderr and can't be redirected directly, 10467# and sets the high bit in the cache file unless we assign to the vars. 10468( 10469 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10470 eval ac_val=\$$ac_var 10471 case $ac_val in #( 10472 *${as_nl}*) 10473 case $ac_var in #( 10474 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10475$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10476 esac 10477 case $ac_var in #( 10478 _ | IFS | as_nl) ;; #( 10479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10480 *) { eval $ac_var=; unset $ac_var;} ;; 10481 esac ;; 10482 esac 10483 done 10484 10485 (set) 2>&1 | 10486 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10487 *${as_nl}ac_space=\ *) 10488 # `set' does not quote correctly, so add quotes: double-quote 10489 # substitution turns \\\\ into \\, and sed turns \\ into \. 10490 sed -n \ 10491 "s/'/'\\\\''/g; 10492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10493 ;; #( 10494 *) 10495 # `set' quotes correctly as required by POSIX, so do not add quotes. 10496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10497 ;; 10498 esac | 10499 sort 10500) | 10501 sed ' 10502 /^ac_cv_env_/b end 10503 t clear 10504 :clear 10505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10506 t end 10507 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10508 :end' >>confcache 10509if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10510 if test -w "$cache_file"; then 10511 if test "x$cache_file" != "x/dev/null"; then 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10513$as_echo "$as_me: updating cache $cache_file" >&6;} 10514 if test ! -f "$cache_file" || test -h "$cache_file"; then 10515 cat confcache >"$cache_file" 10516 else 10517 case $cache_file in #( 10518 */* | ?:*) 10519 mv -f confcache "$cache_file"$$ && 10520 mv -f "$cache_file"$$ "$cache_file" ;; #( 10521 *) 10522 mv -f confcache "$cache_file" ;; 10523 esac 10524 fi 10525 fi 10526 else 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10528$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10529 fi 10530fi 10531rm -f confcache 10532 10533test "x$prefix" = xNONE && prefix=$ac_default_prefix 10534# Let make expand exec_prefix. 10535test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10536 10537DEFS=-DHAVE_CONFIG_H 10538 10539ac_libobjs= 10540ac_ltlibobjs= 10541U= 10542for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10543 # 1. Remove the extension, and $U if already installed. 10544 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10545 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10546 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10547 # will be set to the directory where LIBOBJS objects are built. 10548 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10549 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10550done 10551LIBOBJS=$ac_libobjs 10552 10553LTLIBOBJS=$ac_ltlibobjs 10554 10555 10556 if test -n "$EXEEXT"; then 10557 am__EXEEXT_TRUE= 10558 am__EXEEXT_FALSE='#' 10559else 10560 am__EXEEXT_TRUE='#' 10561 am__EXEEXT_FALSE= 10562fi 10563 10564if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10565 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10566Usually this means the macro was only invoked conditionally." "$LINENO" 5 10567fi 10568if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10569 as_fn_error $? "conditional \"AMDEP\" was never defined. 10570Usually this means the macro was only invoked conditionally." "$LINENO" 5 10571fi 10572if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10573 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10574Usually this means the macro was only invoked conditionally." "$LINENO" 5 10575fi 10576 10577: "${CONFIG_STATUS=./config.status}" 10578ac_write_fail=0 10579ac_clean_files_save=$ac_clean_files 10580ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10581{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10582$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10583as_write_fail=0 10584cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10585#! $SHELL 10586# Generated by $as_me. 10587# Run this file to recreate the current configuration. 10588# Compiler output produced by configure, useful for debugging 10589# configure, is in config.log if it exists. 10590 10591debug=false 10592ac_cs_recheck=false 10593ac_cs_silent=false 10594 10595SHELL=\${CONFIG_SHELL-$SHELL} 10596export SHELL 10597_ASEOF 10598cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10599## -------------------- ## 10600## M4sh Initialization. ## 10601## -------------------- ## 10602 10603# Be more Bourne compatible 10604DUALCASE=1; export DUALCASE # for MKS sh 10605if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10606 emulate sh 10607 NULLCMD=: 10608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10609 # is contrary to our usage. Disable this feature. 10610 alias -g '${1+"$@"}'='"$@"' 10611 setopt NO_GLOB_SUBST 10612else 10613 case `(set -o) 2>/dev/null` in #( 10614 *posix*) : 10615 set -o posix ;; #( 10616 *) : 10617 ;; 10618esac 10619fi 10620 10621 10622as_nl=' 10623' 10624export as_nl 10625# Printing a long string crashes Solaris 7 /usr/bin/printf. 10626as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10627as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10628as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10629# Prefer a ksh shell builtin over an external printf program on Solaris, 10630# but without wasting forks for bash or zsh. 10631if test -z "$BASH_VERSION$ZSH_VERSION" \ 10632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10633 as_echo='print -r --' 10634 as_echo_n='print -rn --' 10635elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10636 as_echo='printf %s\n' 10637 as_echo_n='printf %s' 10638else 10639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10640 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10641 as_echo_n='/usr/ucb/echo -n' 10642 else 10643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10644 as_echo_n_body='eval 10645 arg=$1; 10646 case $arg in #( 10647 *"$as_nl"*) 10648 expr "X$arg" : "X\\(.*\\)$as_nl"; 10649 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10650 esac; 10651 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10652 ' 10653 export as_echo_n_body 10654 as_echo_n='sh -c $as_echo_n_body as_echo' 10655 fi 10656 export as_echo_body 10657 as_echo='sh -c $as_echo_body as_echo' 10658fi 10659 10660# The user is always right. 10661if test "${PATH_SEPARATOR+set}" != set; then 10662 PATH_SEPARATOR=: 10663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10665 PATH_SEPARATOR=';' 10666 } 10667fi 10668 10669 10670# IFS 10671# We need space, tab and new line, in precisely that order. Quoting is 10672# there to prevent editors from complaining about space-tab. 10673# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10674# splitting by setting IFS to empty value.) 10675IFS=" "" $as_nl" 10676 10677# Find who we are. Look in the path if we contain no directory separator. 10678as_myself= 10679case $0 in #(( 10680 *[\\/]* ) as_myself=$0 ;; 10681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10682for as_dir in $PATH 10683do 10684 IFS=$as_save_IFS 10685 test -z "$as_dir" && as_dir=. 10686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10687 done 10688IFS=$as_save_IFS 10689 10690 ;; 10691esac 10692# We did not find ourselves, most probably we were run as `sh COMMAND' 10693# in which case we are not to be found in the path. 10694if test "x$as_myself" = x; then 10695 as_myself=$0 10696fi 10697if test ! -f "$as_myself"; then 10698 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10699 exit 1 10700fi 10701 10702# Unset variables that we do not need and which cause bugs (e.g. in 10703# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10704# suppresses any "Segmentation fault" message there. '((' could 10705# trigger a bug in pdksh 5.2.14. 10706for as_var in BASH_ENV ENV MAIL MAILPATH 10707do eval test x\${$as_var+set} = xset \ 10708 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10709done 10710PS1='$ ' 10711PS2='> ' 10712PS4='+ ' 10713 10714# NLS nuisances. 10715LC_ALL=C 10716export LC_ALL 10717LANGUAGE=C 10718export LANGUAGE 10719 10720# CDPATH. 10721(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10722 10723 10724# as_fn_error STATUS ERROR [LINENO LOG_FD] 10725# ---------------------------------------- 10726# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10727# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10728# script with STATUS, using 1 if that was 0. 10729as_fn_error () 10730{ 10731 as_status=$1; test $as_status -eq 0 && as_status=1 10732 if test "$4"; then 10733 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10734 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10735 fi 10736 $as_echo "$as_me: error: $2" >&2 10737 as_fn_exit $as_status 10738} # as_fn_error 10739 10740 10741# as_fn_set_status STATUS 10742# ----------------------- 10743# Set $? to STATUS, without forking. 10744as_fn_set_status () 10745{ 10746 return $1 10747} # as_fn_set_status 10748 10749# as_fn_exit STATUS 10750# ----------------- 10751# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10752as_fn_exit () 10753{ 10754 set +e 10755 as_fn_set_status $1 10756 exit $1 10757} # as_fn_exit 10758 10759# as_fn_unset VAR 10760# --------------- 10761# Portably unset VAR. 10762as_fn_unset () 10763{ 10764 { eval $1=; unset $1;} 10765} 10766as_unset=as_fn_unset 10767# as_fn_append VAR VALUE 10768# ---------------------- 10769# Append the text in VALUE to the end of the definition contained in VAR. Take 10770# advantage of any shell optimizations that allow amortized linear growth over 10771# repeated appends, instead of the typical quadratic growth present in naive 10772# implementations. 10773if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10774 eval 'as_fn_append () 10775 { 10776 eval $1+=\$2 10777 }' 10778else 10779 as_fn_append () 10780 { 10781 eval $1=\$$1\$2 10782 } 10783fi # as_fn_append 10784 10785# as_fn_arith ARG... 10786# ------------------ 10787# Perform arithmetic evaluation on the ARGs, and store the result in the 10788# global $as_val. Take advantage of shells that can avoid forks. The arguments 10789# must be portable across $(()) and expr. 10790if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10791 eval 'as_fn_arith () 10792 { 10793 as_val=$(( $* )) 10794 }' 10795else 10796 as_fn_arith () 10797 { 10798 as_val=`expr "$@" || test $? -eq 1` 10799 } 10800fi # as_fn_arith 10801 10802 10803if expr a : '\(a\)' >/dev/null 2>&1 && 10804 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10805 as_expr=expr 10806else 10807 as_expr=false 10808fi 10809 10810if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10811 as_basename=basename 10812else 10813 as_basename=false 10814fi 10815 10816if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10817 as_dirname=dirname 10818else 10819 as_dirname=false 10820fi 10821 10822as_me=`$as_basename -- "$0" || 10823$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10824 X"$0" : 'X\(//\)$' \| \ 10825 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10826$as_echo X/"$0" | 10827 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10828 s//\1/ 10829 q 10830 } 10831 /^X\/\(\/\/\)$/{ 10832 s//\1/ 10833 q 10834 } 10835 /^X\/\(\/\).*/{ 10836 s//\1/ 10837 q 10838 } 10839 s/.*/./; q'` 10840 10841# Avoid depending upon Character Ranges. 10842as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10843as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10844as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10845as_cr_digits='0123456789' 10846as_cr_alnum=$as_cr_Letters$as_cr_digits 10847 10848ECHO_C= ECHO_N= ECHO_T= 10849case `echo -n x` in #((((( 10850-n*) 10851 case `echo 'xy\c'` in 10852 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10853 xy) ECHO_C='\c';; 10854 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10855 ECHO_T=' ';; 10856 esac;; 10857*) 10858 ECHO_N='-n';; 10859esac 10860 10861rm -f conf$$ conf$$.exe conf$$.file 10862if test -d conf$$.dir; then 10863 rm -f conf$$.dir/conf$$.file 10864else 10865 rm -f conf$$.dir 10866 mkdir conf$$.dir 2>/dev/null 10867fi 10868if (echo >conf$$.file) 2>/dev/null; then 10869 if ln -s conf$$.file conf$$ 2>/dev/null; then 10870 as_ln_s='ln -s' 10871 # ... but there are two gotchas: 10872 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10873 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10874 # In both cases, we have to default to `cp -p'. 10875 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10876 as_ln_s='cp -p' 10877 elif ln conf$$.file conf$$ 2>/dev/null; then 10878 as_ln_s=ln 10879 else 10880 as_ln_s='cp -p' 10881 fi 10882else 10883 as_ln_s='cp -p' 10884fi 10885rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10886rmdir conf$$.dir 2>/dev/null 10887 10888 10889# as_fn_mkdir_p 10890# ------------- 10891# Create "$as_dir" as a directory, including parents if necessary. 10892as_fn_mkdir_p () 10893{ 10894 10895 case $as_dir in #( 10896 -*) as_dir=./$as_dir;; 10897 esac 10898 test -d "$as_dir" || eval $as_mkdir_p || { 10899 as_dirs= 10900 while :; do 10901 case $as_dir in #( 10902 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10903 *) as_qdir=$as_dir;; 10904 esac 10905 as_dirs="'$as_qdir' $as_dirs" 10906 as_dir=`$as_dirname -- "$as_dir" || 10907$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10908 X"$as_dir" : 'X\(//\)[^/]' \| \ 10909 X"$as_dir" : 'X\(//\)$' \| \ 10910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10911$as_echo X"$as_dir" | 10912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10913 s//\1/ 10914 q 10915 } 10916 /^X\(\/\/\)[^/].*/{ 10917 s//\1/ 10918 q 10919 } 10920 /^X\(\/\/\)$/{ 10921 s//\1/ 10922 q 10923 } 10924 /^X\(\/\).*/{ 10925 s//\1/ 10926 q 10927 } 10928 s/.*/./; q'` 10929 test -d "$as_dir" && break 10930 done 10931 test -z "$as_dirs" || eval "mkdir $as_dirs" 10932 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10933 10934 10935} # as_fn_mkdir_p 10936if mkdir -p . 2>/dev/null; then 10937 as_mkdir_p='mkdir -p "$as_dir"' 10938else 10939 test -d ./-p && rmdir ./-p 10940 as_mkdir_p=false 10941fi 10942 10943if test -x / >/dev/null 2>&1; then 10944 as_test_x='test -x' 10945else 10946 if ls -dL / >/dev/null 2>&1; then 10947 as_ls_L_option=L 10948 else 10949 as_ls_L_option= 10950 fi 10951 as_test_x=' 10952 eval sh -c '\'' 10953 if test -d "$1"; then 10954 test -d "$1/."; 10955 else 10956 case $1 in #( 10957 -*)set "./$1";; 10958 esac; 10959 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 10960 ???[sx]*):;;*)false;;esac;fi 10961 '\'' sh 10962 ' 10963fi 10964as_executable_p=$as_test_x 10965 10966# Sed expression to map a string onto a valid CPP name. 10967as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10968 10969# Sed expression to map a string onto a valid variable name. 10970as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10971 10972 10973exec 6>&1 10974## ----------------------------------- ## 10975## Main body of $CONFIG_STATUS script. ## 10976## ----------------------------------- ## 10977_ASEOF 10978test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10979 10980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10981# Save the log message, to keep $0 and so on meaningful, and to 10982# report actual input values of CONFIG_FILES etc. instead of their 10983# values after options handling. 10984ac_log=" 10985This file was extended by xgamma $as_me 1.0.5, which was 10986generated by GNU Autoconf 2.68. Invocation command line was 10987 10988 CONFIG_FILES = $CONFIG_FILES 10989 CONFIG_HEADERS = $CONFIG_HEADERS 10990 CONFIG_LINKS = $CONFIG_LINKS 10991 CONFIG_COMMANDS = $CONFIG_COMMANDS 10992 $ $0 $@ 10993 10994on `(hostname || uname -n) 2>/dev/null | sed 1q` 10995" 10996 10997_ACEOF 10998 10999case $ac_config_files in *" 11000"*) set x $ac_config_files; shift; ac_config_files=$*;; 11001esac 11002 11003case $ac_config_headers in *" 11004"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11005esac 11006 11007 11008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11009# Files that config.status was made for. 11010config_files="$ac_config_files" 11011config_headers="$ac_config_headers" 11012config_commands="$ac_config_commands" 11013 11014_ACEOF 11015 11016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11017ac_cs_usage="\ 11018\`$as_me' instantiates files and other configuration actions 11019from templates according to the current configuration. Unless the files 11020and actions are specified as TAGs, all are instantiated by default. 11021 11022Usage: $0 [OPTION]... [TAG]... 11023 11024 -h, --help print this help, then exit 11025 -V, --version print version number and configuration settings, then exit 11026 --config print configuration, then exit 11027 -q, --quiet, --silent 11028 do not print progress messages 11029 -d, --debug don't remove temporary files 11030 --recheck update $as_me by reconfiguring in the same conditions 11031 --file=FILE[:TEMPLATE] 11032 instantiate the configuration file FILE 11033 --header=FILE[:TEMPLATE] 11034 instantiate the configuration header FILE 11035 11036Configuration files: 11037$config_files 11038 11039Configuration headers: 11040$config_headers 11041 11042Configuration commands: 11043$config_commands 11044 11045Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11046 11047_ACEOF 11048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11049ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11050ac_cs_version="\\ 11051xgamma config.status 1.0.5 11052configured by $0, generated by GNU Autoconf 2.68, 11053 with options \\"\$ac_cs_config\\" 11054 11055Copyright (C) 2010 Free Software Foundation, Inc. 11056This config.status script is free software; the Free Software Foundation 11057gives unlimited permission to copy, distribute and modify it." 11058 11059ac_pwd='$ac_pwd' 11060srcdir='$srcdir' 11061INSTALL='$INSTALL' 11062MKDIR_P='$MKDIR_P' 11063AWK='$AWK' 11064test -n "\$AWK" || AWK=awk 11065_ACEOF 11066 11067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11068# The default lists apply if the user does not specify any file. 11069ac_need_defaults=: 11070while test $# != 0 11071do 11072 case $1 in 11073 --*=?*) 11074 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11075 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11076 ac_shift=: 11077 ;; 11078 --*=) 11079 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11080 ac_optarg= 11081 ac_shift=: 11082 ;; 11083 *) 11084 ac_option=$1 11085 ac_optarg=$2 11086 ac_shift=shift 11087 ;; 11088 esac 11089 11090 case $ac_option in 11091 # Handling of the options. 11092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11093 ac_cs_recheck=: ;; 11094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11095 $as_echo "$ac_cs_version"; exit ;; 11096 --config | --confi | --conf | --con | --co | --c ) 11097 $as_echo "$ac_cs_config"; exit ;; 11098 --debug | --debu | --deb | --de | --d | -d ) 11099 debug=: ;; 11100 --file | --fil | --fi | --f ) 11101 $ac_shift 11102 case $ac_optarg in 11103 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11104 '') as_fn_error $? "missing file argument" ;; 11105 esac 11106 as_fn_append CONFIG_FILES " '$ac_optarg'" 11107 ac_need_defaults=false;; 11108 --header | --heade | --head | --hea ) 11109 $ac_shift 11110 case $ac_optarg in 11111 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11112 esac 11113 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11114 ac_need_defaults=false;; 11115 --he | --h) 11116 # Conflict between --help and --header 11117 as_fn_error $? "ambiguous option: \`$1' 11118Try \`$0 --help' for more information.";; 11119 --help | --hel | -h ) 11120 $as_echo "$ac_cs_usage"; exit ;; 11121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11122 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11123 ac_cs_silent=: ;; 11124 11125 # This is an error. 11126 -*) as_fn_error $? "unrecognized option: \`$1' 11127Try \`$0 --help' for more information." ;; 11128 11129 *) as_fn_append ac_config_targets " $1" 11130 ac_need_defaults=false ;; 11131 11132 esac 11133 shift 11134done 11135 11136ac_configure_extra_args= 11137 11138if $ac_cs_silent; then 11139 exec 6>/dev/null 11140 ac_configure_extra_args="$ac_configure_extra_args --silent" 11141fi 11142 11143_ACEOF 11144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11145if \$ac_cs_recheck; then 11146 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11147 shift 11148 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11149 CONFIG_SHELL='$SHELL' 11150 export CONFIG_SHELL 11151 exec "\$@" 11152fi 11153 11154_ACEOF 11155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11156exec 5>>config.log 11157{ 11158 echo 11159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11160## Running $as_me. ## 11161_ASBOX 11162 $as_echo "$ac_log" 11163} >&5 11164 11165_ACEOF 11166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11167# 11168# INIT-COMMANDS 11169# 11170AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11171 11172_ACEOF 11173 11174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11175 11176# Handling of arguments. 11177for ac_config_target in $ac_config_targets 11178do 11179 case $ac_config_target in 11180 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11181 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11182 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11183 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11184 11185 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11186 esac 11187done 11188 11189 11190# If the user did not use the arguments to specify the items to instantiate, 11191# then the envvar interface is used. Set only those that are not. 11192# We use the long form for the default assignment because of an extremely 11193# bizarre bug on SunOS 4.1.3. 11194if $ac_need_defaults; then 11195 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11196 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11197 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11198fi 11199 11200# Have a temporary directory for convenience. Make it in the build tree 11201# simply because there is no reason against having it here, and in addition, 11202# creating and moving files from /tmp can sometimes cause problems. 11203# Hook for its removal unless debugging. 11204# Note that there is a small window in which the directory will not be cleaned: 11205# after its creation but before its name has been assigned to `$tmp'. 11206$debug || 11207{ 11208 tmp= ac_tmp= 11209 trap 'exit_status=$? 11210 : "${ac_tmp:=$tmp}" 11211 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11212' 0 11213 trap 'as_fn_exit 1' 1 2 13 15 11214} 11215# Create a (secure) tmp directory for tmp files. 11216 11217{ 11218 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11219 test -d "$tmp" 11220} || 11221{ 11222 tmp=./conf$$-$RANDOM 11223 (umask 077 && mkdir "$tmp") 11224} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11225ac_tmp=$tmp 11226 11227# Set up the scripts for CONFIG_FILES section. 11228# No need to generate them if there are no CONFIG_FILES. 11229# This happens for instance with `./config.status config.h'. 11230if test -n "$CONFIG_FILES"; then 11231 11232 11233ac_cr=`echo X | tr X '\015'` 11234# On cygwin, bash can eat \r inside `` if the user requested igncr. 11235# But we know of no other shell where ac_cr would be empty at this 11236# point, so we can use a bashism as a fallback. 11237if test "x$ac_cr" = x; then 11238 eval ac_cr=\$\'\\r\' 11239fi 11240ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11241if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11242 ac_cs_awk_cr='\\r' 11243else 11244 ac_cs_awk_cr=$ac_cr 11245fi 11246 11247echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11248_ACEOF 11249 11250 11251{ 11252 echo "cat >conf$$subs.awk <<_ACEOF" && 11253 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11254 echo "_ACEOF" 11255} >conf$$subs.sh || 11256 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11257ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11258ac_delim='%!_!# ' 11259for ac_last_try in false false false false false :; do 11260 . ./conf$$subs.sh || 11261 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11262 11263 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11264 if test $ac_delim_n = $ac_delim_num; then 11265 break 11266 elif $ac_last_try; then 11267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11268 else 11269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11270 fi 11271done 11272rm -f conf$$subs.sh 11273 11274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11275cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11276_ACEOF 11277sed -n ' 11278h 11279s/^/S["/; s/!.*/"]=/ 11280p 11281g 11282s/^[^!]*!// 11283:repl 11284t repl 11285s/'"$ac_delim"'$// 11286t delim 11287:nl 11288h 11289s/\(.\{148\}\)..*/\1/ 11290t more1 11291s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11292p 11293n 11294b repl 11295:more1 11296s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11297p 11298g 11299s/.\{148\}// 11300t nl 11301:delim 11302h 11303s/\(.\{148\}\)..*/\1/ 11304t more2 11305s/["\\]/\\&/g; s/^/"/; s/$/"/ 11306p 11307b 11308:more2 11309s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11310p 11311g 11312s/.\{148\}// 11313t delim 11314' <conf$$subs.awk | sed ' 11315/^[^""]/{ 11316 N 11317 s/\n// 11318} 11319' >>$CONFIG_STATUS || ac_write_fail=1 11320rm -f conf$$subs.awk 11321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11322_ACAWK 11323cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11324 for (key in S) S_is_set[key] = 1 11325 FS = "" 11326 11327} 11328{ 11329 line = $ 0 11330 nfields = split(line, field, "@") 11331 substed = 0 11332 len = length(field[1]) 11333 for (i = 2; i < nfields; i++) { 11334 key = field[i] 11335 keylen = length(key) 11336 if (S_is_set[key]) { 11337 value = S[key] 11338 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11339 len += length(value) + length(field[++i]) 11340 substed = 1 11341 } else 11342 len += 1 + keylen 11343 } 11344 11345 print line 11346} 11347 11348_ACAWK 11349_ACEOF 11350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11351if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11352 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11353else 11354 cat 11355fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11356 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11357_ACEOF 11358 11359# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11360# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11361# trailing colons and then remove the whole line if VPATH becomes empty 11362# (actually we leave an empty line to preserve line numbers). 11363if test "x$srcdir" = x.; then 11364 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11365h 11366s/// 11367s/^/:/ 11368s/[ ]*$/:/ 11369s/:\$(srcdir):/:/g 11370s/:\${srcdir}:/:/g 11371s/:@srcdir@:/:/g 11372s/^:*// 11373s/:*$// 11374x 11375s/\(=[ ]*\).*/\1/ 11376G 11377s/\n// 11378s/^[^=]*=[ ]*$// 11379}' 11380fi 11381 11382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11383fi # test -n "$CONFIG_FILES" 11384 11385# Set up the scripts for CONFIG_HEADERS section. 11386# No need to generate them if there are no CONFIG_HEADERS. 11387# This happens for instance with `./config.status Makefile'. 11388if test -n "$CONFIG_HEADERS"; then 11389cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11390BEGIN { 11391_ACEOF 11392 11393# Transform confdefs.h into an awk script `defines.awk', embedded as 11394# here-document in config.status, that substitutes the proper values into 11395# config.h.in to produce config.h. 11396 11397# Create a delimiter string that does not exist in confdefs.h, to ease 11398# handling of long lines. 11399ac_delim='%!_!# ' 11400for ac_last_try in false false :; do 11401 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11402 if test -z "$ac_tt"; then 11403 break 11404 elif $ac_last_try; then 11405 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11406 else 11407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11408 fi 11409done 11410 11411# For the awk script, D is an array of macro values keyed by name, 11412# likewise P contains macro parameters if any. Preserve backslash 11413# newline sequences. 11414 11415ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11416sed -n ' 11417s/.\{148\}/&'"$ac_delim"'/g 11418t rset 11419:rset 11420s/^[ ]*#[ ]*define[ ][ ]*/ / 11421t def 11422d 11423:def 11424s/\\$// 11425t bsnl 11426s/["\\]/\\&/g 11427s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11428D["\1"]=" \3"/p 11429s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11430d 11431:bsnl 11432s/["\\]/\\&/g 11433s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11434D["\1"]=" \3\\\\\\n"\\/p 11435t cont 11436s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11437t cont 11438d 11439:cont 11440n 11441s/.\{148\}/&'"$ac_delim"'/g 11442t clear 11443:clear 11444s/\\$// 11445t bsnlc 11446s/["\\]/\\&/g; s/^/"/; s/$/"/p 11447d 11448:bsnlc 11449s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11450b cont 11451' <confdefs.h | sed ' 11452s/'"$ac_delim"'/"\\\ 11453"/g' >>$CONFIG_STATUS || ac_write_fail=1 11454 11455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11456 for (key in D) D_is_set[key] = 1 11457 FS = "" 11458} 11459/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11460 line = \$ 0 11461 split(line, arg, " ") 11462 if (arg[1] == "#") { 11463 defundef = arg[2] 11464 mac1 = arg[3] 11465 } else { 11466 defundef = substr(arg[1], 2) 11467 mac1 = arg[2] 11468 } 11469 split(mac1, mac2, "(") #) 11470 macro = mac2[1] 11471 prefix = substr(line, 1, index(line, defundef) - 1) 11472 if (D_is_set[macro]) { 11473 # Preserve the white space surrounding the "#". 11474 print prefix "define", macro P[macro] D[macro] 11475 next 11476 } else { 11477 # Replace #undef with comments. This is necessary, for example, 11478 # in the case of _POSIX_SOURCE, which is predefined and required 11479 # on some systems where configure will not decide to define it. 11480 if (defundef == "undef") { 11481 print "/*", prefix defundef, macro, "*/" 11482 next 11483 } 11484 } 11485} 11486{ print } 11487_ACAWK 11488_ACEOF 11489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11490 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11491fi # test -n "$CONFIG_HEADERS" 11492 11493 11494eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11495shift 11496for ac_tag 11497do 11498 case $ac_tag in 11499 :[FHLC]) ac_mode=$ac_tag; continue;; 11500 esac 11501 case $ac_mode$ac_tag in 11502 :[FHL]*:*);; 11503 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11504 :[FH]-) ac_tag=-:-;; 11505 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11506 esac 11507 ac_save_IFS=$IFS 11508 IFS=: 11509 set x $ac_tag 11510 IFS=$ac_save_IFS 11511 shift 11512 ac_file=$1 11513 shift 11514 11515 case $ac_mode in 11516 :L) ac_source=$1;; 11517 :[FH]) 11518 ac_file_inputs= 11519 for ac_f 11520 do 11521 case $ac_f in 11522 -) ac_f="$ac_tmp/stdin";; 11523 *) # Look for the file first in the build tree, then in the source tree 11524 # (if the path is not absolute). The absolute path cannot be DOS-style, 11525 # because $ac_f cannot contain `:'. 11526 test -f "$ac_f" || 11527 case $ac_f in 11528 [\\/$]*) false;; 11529 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11530 esac || 11531 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11532 esac 11533 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11534 as_fn_append ac_file_inputs " '$ac_f'" 11535 done 11536 11537 # Let's still pretend it is `configure' which instantiates (i.e., don't 11538 # use $as_me), people would be surprised to read: 11539 # /* config.h. Generated by config.status. */ 11540 configure_input='Generated from '` 11541 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11542 `' by configure.' 11543 if test x"$ac_file" != x-; then 11544 configure_input="$ac_file. $configure_input" 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11546$as_echo "$as_me: creating $ac_file" >&6;} 11547 fi 11548 # Neutralize special characters interpreted by sed in replacement strings. 11549 case $configure_input in #( 11550 *\&* | *\|* | *\\* ) 11551 ac_sed_conf_input=`$as_echo "$configure_input" | 11552 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11553 *) ac_sed_conf_input=$configure_input;; 11554 esac 11555 11556 case $ac_tag in 11557 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11559 esac 11560 ;; 11561 esac 11562 11563 ac_dir=`$as_dirname -- "$ac_file" || 11564$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11565 X"$ac_file" : 'X\(//\)[^/]' \| \ 11566 X"$ac_file" : 'X\(//\)$' \| \ 11567 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11568$as_echo X"$ac_file" | 11569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11570 s//\1/ 11571 q 11572 } 11573 /^X\(\/\/\)[^/].*/{ 11574 s//\1/ 11575 q 11576 } 11577 /^X\(\/\/\)$/{ 11578 s//\1/ 11579 q 11580 } 11581 /^X\(\/\).*/{ 11582 s//\1/ 11583 q 11584 } 11585 s/.*/./; q'` 11586 as_dir="$ac_dir"; as_fn_mkdir_p 11587 ac_builddir=. 11588 11589case "$ac_dir" in 11590.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11591*) 11592 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11593 # A ".." for each directory in $ac_dir_suffix. 11594 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11595 case $ac_top_builddir_sub in 11596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11598 esac ;; 11599esac 11600ac_abs_top_builddir=$ac_pwd 11601ac_abs_builddir=$ac_pwd$ac_dir_suffix 11602# for backward compatibility: 11603ac_top_builddir=$ac_top_build_prefix 11604 11605case $srcdir in 11606 .) # We are building in place. 11607 ac_srcdir=. 11608 ac_top_srcdir=$ac_top_builddir_sub 11609 ac_abs_top_srcdir=$ac_pwd ;; 11610 [\\/]* | ?:[\\/]* ) # Absolute name. 11611 ac_srcdir=$srcdir$ac_dir_suffix; 11612 ac_top_srcdir=$srcdir 11613 ac_abs_top_srcdir=$srcdir ;; 11614 *) # Relative name. 11615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11616 ac_top_srcdir=$ac_top_build_prefix$srcdir 11617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11618esac 11619ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11620 11621 11622 case $ac_mode in 11623 :F) 11624 # 11625 # CONFIG_FILE 11626 # 11627 11628 case $INSTALL in 11629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11630 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11631 esac 11632 ac_MKDIR_P=$MKDIR_P 11633 case $MKDIR_P in 11634 [\\/$]* | ?:[\\/]* ) ;; 11635 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11636 esac 11637_ACEOF 11638 11639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11640# If the template does not know about datarootdir, expand it. 11641# FIXME: This hack should be removed a few years after 2.60. 11642ac_datarootdir_hack=; ac_datarootdir_seen= 11643ac_sed_dataroot=' 11644/datarootdir/ { 11645 p 11646 q 11647} 11648/@datadir@/p 11649/@docdir@/p 11650/@infodir@/p 11651/@localedir@/p 11652/@mandir@/p' 11653case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11654*datarootdir*) ac_datarootdir_seen=yes;; 11655*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11657$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11658_ACEOF 11659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11660 ac_datarootdir_hack=' 11661 s&@datadir@&$datadir&g 11662 s&@docdir@&$docdir&g 11663 s&@infodir@&$infodir&g 11664 s&@localedir@&$localedir&g 11665 s&@mandir@&$mandir&g 11666 s&\\\${datarootdir}&$datarootdir&g' ;; 11667esac 11668_ACEOF 11669 11670# Neutralize VPATH when `$srcdir' = `.'. 11671# Shell code in configure.ac might set extrasub. 11672# FIXME: do we really want to maintain this feature? 11673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11674ac_sed_extra="$ac_vpsub 11675$extrasub 11676_ACEOF 11677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11678:t 11679/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11680s|@configure_input@|$ac_sed_conf_input|;t t 11681s&@top_builddir@&$ac_top_builddir_sub&;t t 11682s&@top_build_prefix@&$ac_top_build_prefix&;t t 11683s&@srcdir@&$ac_srcdir&;t t 11684s&@abs_srcdir@&$ac_abs_srcdir&;t t 11685s&@top_srcdir@&$ac_top_srcdir&;t t 11686s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11687s&@builddir@&$ac_builddir&;t t 11688s&@abs_builddir@&$ac_abs_builddir&;t t 11689s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11690s&@INSTALL@&$ac_INSTALL&;t t 11691s&@MKDIR_P@&$ac_MKDIR_P&;t t 11692$ac_datarootdir_hack 11693" 11694eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11695 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11696 11697test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11698 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11699 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11700 "$ac_tmp/out"`; test -z "$ac_out"; } && 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11702which seems to be undefined. Please make sure it is defined" >&5 11703$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11704which seems to be undefined. Please make sure it is defined" >&2;} 11705 11706 rm -f "$ac_tmp/stdin" 11707 case $ac_file in 11708 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11709 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11710 esac \ 11711 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11712 ;; 11713 :H) 11714 # 11715 # CONFIG_HEADER 11716 # 11717 if test x"$ac_file" != x-; then 11718 { 11719 $as_echo "/* $configure_input */" \ 11720 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11721 } >"$ac_tmp/config.h" \ 11722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11723 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11725$as_echo "$as_me: $ac_file is unchanged" >&6;} 11726 else 11727 rm -f "$ac_file" 11728 mv "$ac_tmp/config.h" "$ac_file" \ 11729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11730 fi 11731 else 11732 $as_echo "/* $configure_input */" \ 11733 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11734 || as_fn_error $? "could not create -" "$LINENO" 5 11735 fi 11736# Compute "$ac_file"'s index in $config_headers. 11737_am_arg="$ac_file" 11738_am_stamp_count=1 11739for _am_header in $config_headers :; do 11740 case $_am_header in 11741 $_am_arg | $_am_arg:* ) 11742 break ;; 11743 * ) 11744 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11745 esac 11746done 11747echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11748$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11749 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11750 X"$_am_arg" : 'X\(//\)$' \| \ 11751 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11752$as_echo X"$_am_arg" | 11753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11754 s//\1/ 11755 q 11756 } 11757 /^X\(\/\/\)[^/].*/{ 11758 s//\1/ 11759 q 11760 } 11761 /^X\(\/\/\)$/{ 11762 s//\1/ 11763 q 11764 } 11765 /^X\(\/\).*/{ 11766 s//\1/ 11767 q 11768 } 11769 s/.*/./; q'`/stamp-h$_am_stamp_count 11770 ;; 11771 11772 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11773$as_echo "$as_me: executing $ac_file commands" >&6;} 11774 ;; 11775 esac 11776 11777 11778 case $ac_file$ac_mode in 11779 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11780 # Autoconf 2.62 quotes --file arguments for eval, but not when files 11781 # are listed without --file. Let's play safe and only enable the eval 11782 # if we detect the quoting. 11783 case $CONFIG_FILES in 11784 *\'*) eval set x "$CONFIG_FILES" ;; 11785 *) set x $CONFIG_FILES ;; 11786 esac 11787 shift 11788 for mf 11789 do 11790 # Strip MF so we end up with the name of the file. 11791 mf=`echo "$mf" | sed -e 's/:.*$//'` 11792 # Check whether this is an Automake generated Makefile or not. 11793 # We used to match only the files named `Makefile.in', but 11794 # some people rename them; so instead we look at the file content. 11795 # Grep'ing the first line is not enough: some people post-process 11796 # each Makefile.in and add a new line on top of each file to say so. 11797 # Grep'ing the whole file is not good either: AIX grep has a line 11798 # limit of 2048, but all sed's we know have understand at least 4000. 11799 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11800 dirpart=`$as_dirname -- "$mf" || 11801$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11802 X"$mf" : 'X\(//\)[^/]' \| \ 11803 X"$mf" : 'X\(//\)$' \| \ 11804 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11805$as_echo X"$mf" | 11806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11807 s//\1/ 11808 q 11809 } 11810 /^X\(\/\/\)[^/].*/{ 11811 s//\1/ 11812 q 11813 } 11814 /^X\(\/\/\)$/{ 11815 s//\1/ 11816 q 11817 } 11818 /^X\(\/\).*/{ 11819 s//\1/ 11820 q 11821 } 11822 s/.*/./; q'` 11823 else 11824 continue 11825 fi 11826 # Extract the definition of DEPDIR, am__include, and am__quote 11827 # from the Makefile without running `make'. 11828 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11829 test -z "$DEPDIR" && continue 11830 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11831 test -z "am__include" && continue 11832 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11833 # When using ansi2knr, U may be empty or an underscore; expand it 11834 U=`sed -n 's/^U = //p' < "$mf"` 11835 # Find all dependency output files, they are included files with 11836 # $(DEPDIR) in their names. We invoke sed twice because it is the 11837 # simplest approach to changing $(DEPDIR) to its actual value in the 11838 # expansion. 11839 for file in `sed -n " 11840 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11841 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 11842 # Make sure the directory exists. 11843 test -f "$dirpart/$file" && continue 11844 fdir=`$as_dirname -- "$file" || 11845$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11846 X"$file" : 'X\(//\)[^/]' \| \ 11847 X"$file" : 'X\(//\)$' \| \ 11848 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11849$as_echo X"$file" | 11850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11851 s//\1/ 11852 q 11853 } 11854 /^X\(\/\/\)[^/].*/{ 11855 s//\1/ 11856 q 11857 } 11858 /^X\(\/\/\)$/{ 11859 s//\1/ 11860 q 11861 } 11862 /^X\(\/\).*/{ 11863 s//\1/ 11864 q 11865 } 11866 s/.*/./; q'` 11867 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11868 # echo "creating $dirpart/$file" 11869 echo '# dummy' > "$dirpart/$file" 11870 done 11871 done 11872} 11873 ;; 11874 11875 esac 11876done # for ac_tag 11877 11878 11879as_fn_exit 0 11880_ACEOF 11881ac_clean_files=$ac_clean_files_save 11882 11883test $ac_write_fail = 0 || 11884 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11885 11886 11887# configure is writing to config.log, and then calls config.status. 11888# config.status does its own redirection, appending to config.log. 11889# Unfortunately, on DOS this fails, as config.log is still kept open 11890# by configure, so config.status won't be able to write to it; its 11891# output is simply discarded. So we exec the FD to /dev/null, 11892# effectively closing config.log, so it can be properly (re)opened and 11893# appended to by config.status. When coming back to configure, we 11894# need to make the FD available again. 11895if test "$no_create" != yes; then 11896 ac_cs_success=: 11897 ac_config_status_args= 11898 test "$silent" = yes && 11899 ac_config_status_args="$ac_config_status_args --quiet" 11900 exec 5>/dev/null 11901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11902 exec 5>>config.log 11903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11904 # would make configure fail if this is the last instruction. 11905 $ac_cs_success || as_fn_exit 1 11906fi 11907if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11909$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11910fi 11911 11912