configure revision 41fe0c2a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xorg-cf-files 1.0.6. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xorg-cf-files' 583PACKAGE_TARNAME='xorg-cf-files' 584PACKAGE_VERSION='1.0.6' 585PACKAGE_STRING='xorg-cf-files 1.0.6' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630XCONFDIR 631ENCODINGSDIR 632FONTROOTDIR 633MAN_SUBSTS 634XORG_MAN_PAGE 635ADMIN_MAN_DIR 636DRIVER_MAN_DIR 637MISC_MAN_DIR 638FILE_MAN_DIR 639LIB_MAN_DIR 640APP_MAN_DIR 641ADMIN_MAN_SUFFIX 642DRIVER_MAN_SUFFIX 643MISC_MAN_SUFFIX 644FILE_MAN_SUFFIX 645LIB_MAN_SUFFIX 646APP_MAN_SUFFIX 647SED 648host_os 649host_vendor 650host_cpu 651host 652build_os 653build_vendor 654build_cpu 655build 656INSTALL_CMD 657PKG_CONFIG 658CHANGELOG_CMD 659STRICT_CFLAGS 660CWARNFLAGS 661BASE_CFLAGS 662EGREP 663GREP 664CPP 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__quote 673am__include 674DEPDIR 675OBJEXT 676EXEEXT 677ac_ct_CC 678CPPFLAGS 679LDFLAGS 680CFLAGS 681CC 682AM_BACKSLASH 683AM_DEFAULT_VERBOSITY 684AM_DEFAULT_V 685AM_V 686am__untar 687am__tar 688AMTAR 689am__leading_dot 690SET_MAKE 691AWK 692mkdir_p 693MKDIR_P 694INSTALL_STRIP_PROGRAM 695STRIP 696install_sh 697MAKEINFO 698AUTOHEADER 699AUTOMAKE 700AUTOCONF 701ACLOCAL 702VERSION 703PACKAGE 704CYGPATH_W 705am__isrc 706INSTALL_DATA 707INSTALL_SCRIPT 708INSTALL_PROGRAM 709target_alias 710host_alias 711build_alias 712LIBS 713ECHO_T 714ECHO_N 715ECHO_C 716DEFS 717mandir 718localedir 719libdir 720psdir 721pdfdir 722dvidir 723htmldir 724infodir 725docdir 726oldincludedir 727includedir 728localstatedir 729sharedstatedir 730sysconfdir 731datadir 732datarootdir 733libexecdir 734sbindir 735bindir 736program_transform_name 737prefix 738exec_prefix 739PACKAGE_URL 740PACKAGE_BUGREPORT 741PACKAGE_STRING 742PACKAGE_VERSION 743PACKAGE_TARNAME 744PACKAGE_NAME 745PATH_SEPARATOR 746SHELL' 747ac_subst_files='' 748ac_user_opts=' 749enable_option_checking 750enable_silent_rules 751enable_dependency_tracking 752enable_selective_werror 753enable_strict_compilation 754with_fontrootdir 755with_encodingsdir 756with_config_dir 757' 758 ac_precious_vars='build_alias 759host_alias 760target_alias 761CC 762CFLAGS 763LDFLAGS 764LIBS 765CPPFLAGS 766CPP 767PKG_CONFIG' 768 769 770# Initialize some variables set by options. 771ac_init_help= 772ac_init_version=false 773ac_unrecognized_opts= 774ac_unrecognized_sep= 775# The variables have the same names as the options, with 776# dashes changed to underlines. 777cache_file=/dev/null 778exec_prefix=NONE 779no_create= 780no_recursion= 781prefix=NONE 782program_prefix=NONE 783program_suffix=NONE 784program_transform_name=s,x,x, 785silent= 786site= 787srcdir= 788verbose= 789x_includes=NONE 790x_libraries=NONE 791 792# Installation directory options. 793# These are left unexpanded so users can "make install exec_prefix=/foo" 794# and all the variables that are supposed to be based on exec_prefix 795# by default will actually change. 796# Use braces instead of parens because sh, perl, etc. also accept them. 797# (The list follows the same order as the GNU Coding Standards.) 798bindir='${exec_prefix}/bin' 799sbindir='${exec_prefix}/sbin' 800libexecdir='${exec_prefix}/libexec' 801datarootdir='${prefix}/share' 802datadir='${datarootdir}' 803sysconfdir='${prefix}/etc' 804sharedstatedir='${prefix}/com' 805localstatedir='${prefix}/var' 806includedir='${prefix}/include' 807oldincludedir='/usr/include' 808docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 809infodir='${datarootdir}/info' 810htmldir='${docdir}' 811dvidir='${docdir}' 812pdfdir='${docdir}' 813psdir='${docdir}' 814libdir='${exec_prefix}/lib' 815localedir='${datarootdir}/locale' 816mandir='${datarootdir}/man' 817 818ac_prev= 819ac_dashdash= 820for ac_option 821do 822 # If the previous option needs an argument, assign it. 823 if test -n "$ac_prev"; then 824 eval $ac_prev=\$ac_option 825 ac_prev= 826 continue 827 fi 828 829 case $ac_option in 830 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 831 *=) ac_optarg= ;; 832 *) ac_optarg=yes ;; 833 esac 834 835 # Accept the important Cygnus configure options, so we can diagnose typos. 836 837 case $ac_dashdash$ac_option in 838 --) 839 ac_dashdash=yes ;; 840 841 -bindir | --bindir | --bindi | --bind | --bin | --bi) 842 ac_prev=bindir ;; 843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 844 bindir=$ac_optarg ;; 845 846 -build | --build | --buil | --bui | --bu) 847 ac_prev=build_alias ;; 848 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 849 build_alias=$ac_optarg ;; 850 851 -cache-file | --cache-file | --cache-fil | --cache-fi \ 852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 853 ac_prev=cache_file ;; 854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 856 cache_file=$ac_optarg ;; 857 858 --config-cache | -C) 859 cache_file=config.cache ;; 860 861 -datadir | --datadir | --datadi | --datad) 862 ac_prev=datadir ;; 863 -datadir=* | --datadir=* | --datadi=* | --datad=*) 864 datadir=$ac_optarg ;; 865 866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 867 | --dataroo | --dataro | --datar) 868 ac_prev=datarootdir ;; 869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 871 datarootdir=$ac_optarg ;; 872 873 -disable-* | --disable-*) 874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 875 # Reject names that are not valid shell variable names. 876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 877 as_fn_error $? "invalid feature name: $ac_useropt" 878 ac_useropt_orig=$ac_useropt 879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 880 case $ac_user_opts in 881 *" 882"enable_$ac_useropt" 883"*) ;; 884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 885 ac_unrecognized_sep=', ';; 886 esac 887 eval enable_$ac_useropt=no ;; 888 889 -docdir | --docdir | --docdi | --doc | --do) 890 ac_prev=docdir ;; 891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 892 docdir=$ac_optarg ;; 893 894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 895 ac_prev=dvidir ;; 896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 897 dvidir=$ac_optarg ;; 898 899 -enable-* | --enable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: $ac_useropt" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908"enable_$ac_useropt" 909"*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=\$ac_optarg ;; 914 915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 917 | --exec | --exe | --ex) 918 ac_prev=exec_prefix ;; 919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 921 | --exec=* | --exe=* | --ex=*) 922 exec_prefix=$ac_optarg ;; 923 924 -gas | --gas | --ga | --g) 925 # Obsolete; use --with-gas. 926 with_gas=yes ;; 927 928 -help | --help | --hel | --he | -h) 929 ac_init_help=long ;; 930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 931 ac_init_help=recursive ;; 932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 933 ac_init_help=short ;; 934 935 -host | --host | --hos | --ho) 936 ac_prev=host_alias ;; 937 -host=* | --host=* | --hos=* | --ho=*) 938 host_alias=$ac_optarg ;; 939 940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 941 ac_prev=htmldir ;; 942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 943 | --ht=*) 944 htmldir=$ac_optarg ;; 945 946 -includedir | --includedir | --includedi | --included | --include \ 947 | --includ | --inclu | --incl | --inc) 948 ac_prev=includedir ;; 949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 950 | --includ=* | --inclu=* | --incl=* | --inc=*) 951 includedir=$ac_optarg ;; 952 953 -infodir | --infodir | --infodi | --infod | --info | --inf) 954 ac_prev=infodir ;; 955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 956 infodir=$ac_optarg ;; 957 958 -libdir | --libdir | --libdi | --libd) 959 ac_prev=libdir ;; 960 -libdir=* | --libdir=* | --libdi=* | --libd=*) 961 libdir=$ac_optarg ;; 962 963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 964 | --libexe | --libex | --libe) 965 ac_prev=libexecdir ;; 966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 967 | --libexe=* | --libex=* | --libe=*) 968 libexecdir=$ac_optarg ;; 969 970 -localedir | --localedir | --localedi | --localed | --locale) 971 ac_prev=localedir ;; 972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 973 localedir=$ac_optarg ;; 974 975 -localstatedir | --localstatedir | --localstatedi | --localstated \ 976 | --localstate | --localstat | --localsta | --localst | --locals) 977 ac_prev=localstatedir ;; 978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 980 localstatedir=$ac_optarg ;; 981 982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 983 ac_prev=mandir ;; 984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 985 mandir=$ac_optarg ;; 986 987 -nfp | --nfp | --nf) 988 # Obsolete; use --without-fp. 989 with_fp=no ;; 990 991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 992 | --no-cr | --no-c | -n) 993 no_create=yes ;; 994 995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 997 no_recursion=yes ;; 998 999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1001 | --oldin | --oldi | --old | --ol | --o) 1002 ac_prev=oldincludedir ;; 1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1006 oldincludedir=$ac_optarg ;; 1007 1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1009 ac_prev=prefix ;; 1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1011 prefix=$ac_optarg ;; 1012 1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1014 | --program-pre | --program-pr | --program-p) 1015 ac_prev=program_prefix ;; 1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1018 program_prefix=$ac_optarg ;; 1019 1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1021 | --program-suf | --program-su | --program-s) 1022 ac_prev=program_suffix ;; 1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1025 program_suffix=$ac_optarg ;; 1026 1027 -program-transform-name | --program-transform-name \ 1028 | --program-transform-nam | --program-transform-na \ 1029 | --program-transform-n | --program-transform- \ 1030 | --program-transform | --program-transfor \ 1031 | --program-transfo | --program-transf \ 1032 | --program-trans | --program-tran \ 1033 | --progr-tra | --program-tr | --program-t) 1034 ac_prev=program_transform_name ;; 1035 -program-transform-name=* | --program-transform-name=* \ 1036 | --program-transform-nam=* | --program-transform-na=* \ 1037 | --program-transform-n=* | --program-transform-=* \ 1038 | --program-transform=* | --program-transfor=* \ 1039 | --program-transfo=* | --program-transf=* \ 1040 | --program-trans=* | --program-tran=* \ 1041 | --progr-tra=* | --program-tr=* | --program-t=*) 1042 program_transform_name=$ac_optarg ;; 1043 1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1045 ac_prev=pdfdir ;; 1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1047 pdfdir=$ac_optarg ;; 1048 1049 -psdir | --psdir | --psdi | --psd | --ps) 1050 ac_prev=psdir ;; 1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1052 psdir=$ac_optarg ;; 1053 1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1055 | -silent | --silent | --silen | --sile | --sil) 1056 silent=yes ;; 1057 1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1059 ac_prev=sbindir ;; 1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1061 | --sbi=* | --sb=*) 1062 sbindir=$ac_optarg ;; 1063 1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1066 | --sharedst | --shareds | --shared | --share | --shar \ 1067 | --sha | --sh) 1068 ac_prev=sharedstatedir ;; 1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1072 | --sha=* | --sh=*) 1073 sharedstatedir=$ac_optarg ;; 1074 1075 -site | --site | --sit) 1076 ac_prev=site ;; 1077 -site=* | --site=* | --sit=*) 1078 site=$ac_optarg ;; 1079 1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1081 ac_prev=srcdir ;; 1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1083 srcdir=$ac_optarg ;; 1084 1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1086 | --syscon | --sysco | --sysc | --sys | --sy) 1087 ac_prev=sysconfdir ;; 1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1090 sysconfdir=$ac_optarg ;; 1091 1092 -target | --target | --targe | --targ | --tar | --ta | --t) 1093 ac_prev=target_alias ;; 1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1095 target_alias=$ac_optarg ;; 1096 1097 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1098 verbose=yes ;; 1099 1100 -version | --version | --versio | --versi | --vers | -V) 1101 ac_init_version=: ;; 1102 1103 -with-* | --with-*) 1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1105 # Reject names that are not valid shell variable names. 1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1107 as_fn_error $? "invalid package name: $ac_useropt" 1108 ac_useropt_orig=$ac_useropt 1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1110 case $ac_user_opts in 1111 *" 1112"with_$ac_useropt" 1113"*) ;; 1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1115 ac_unrecognized_sep=', ';; 1116 esac 1117 eval with_$ac_useropt=\$ac_optarg ;; 1118 1119 -without-* | --without-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid package name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"with_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval with_$ac_useropt=no ;; 1134 1135 --x) 1136 # Obsolete; use --with-x. 1137 with_x=yes ;; 1138 1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1140 | --x-incl | --x-inc | --x-in | --x-i) 1141 ac_prev=x_includes ;; 1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1144 x_includes=$ac_optarg ;; 1145 1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1148 ac_prev=x_libraries ;; 1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1151 x_libraries=$ac_optarg ;; 1152 1153 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1154Try \`$0 --help' for more information" 1155 ;; 1156 1157 *=*) 1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1159 # Reject names that are not valid shell variable names. 1160 case $ac_envvar in #( 1161 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1162 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1163 esac 1164 eval $ac_envvar=\$ac_optarg 1165 export $ac_envvar ;; 1166 1167 *) 1168 # FIXME: should be removed in autoconf 3.0. 1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1173 ;; 1174 1175 esac 1176done 1177 1178if test -n "$ac_prev"; then 1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1180 as_fn_error $? "missing argument to $ac_option" 1181fi 1182 1183if test -n "$ac_unrecognized_opts"; then 1184 case $enable_option_checking in 1185 no) ;; 1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1188 esac 1189fi 1190 1191# Check all directory arguments for consistency. 1192for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1193 datadir sysconfdir sharedstatedir localstatedir includedir \ 1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1195 libdir localedir mandir 1196do 1197 eval ac_val=\$$ac_var 1198 # Remove trailing slashes. 1199 case $ac_val in 1200 */ ) 1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1202 eval $ac_var=\$ac_val;; 1203 esac 1204 # Be sure to have absolute directory names. 1205 case $ac_val in 1206 [\\/$]* | ?:[\\/]* ) continue;; 1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1208 esac 1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1210done 1211 1212# There might be people who depend on the old broken behavior: `$host' 1213# used to hold the argument of --host etc. 1214# FIXME: To remove some day. 1215build=$build_alias 1216host=$host_alias 1217target=$target_alias 1218 1219# FIXME: To remove some day. 1220if test "x$host_alias" != x; then 1221 if test "x$build_alias" = x; then 1222 cross_compiling=maybe 1223 elif test "x$build_alias" != "x$host_alias"; then 1224 cross_compiling=yes 1225 fi 1226fi 1227 1228ac_tool_prefix= 1229test -n "$host_alias" && ac_tool_prefix=$host_alias- 1230 1231test "$silent" = yes && exec 6>/dev/null 1232 1233 1234ac_pwd=`pwd` && test -n "$ac_pwd" && 1235ac_ls_di=`ls -di .` && 1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1237 as_fn_error $? "working directory cannot be determined" 1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1239 as_fn_error $? "pwd does not report name of working directory" 1240 1241 1242# Find the source files, if location was not specified. 1243if test -z "$srcdir"; then 1244 ac_srcdir_defaulted=yes 1245 # Try the directory containing this script, then the parent directory. 1246 ac_confdir=`$as_dirname -- "$as_myself" || 1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1248 X"$as_myself" : 'X\(//\)[^/]' \| \ 1249 X"$as_myself" : 'X\(//\)$' \| \ 1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1251$as_echo X"$as_myself" | 1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1253 s//\1/ 1254 q 1255 } 1256 /^X\(\/\/\)[^/].*/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\/\)$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\).*/{ 1265 s//\1/ 1266 q 1267 } 1268 s/.*/./; q'` 1269 srcdir=$ac_confdir 1270 if test ! -r "$srcdir/$ac_unique_file"; then 1271 srcdir=.. 1272 fi 1273else 1274 ac_srcdir_defaulted=no 1275fi 1276if test ! -r "$srcdir/$ac_unique_file"; then 1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1279fi 1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1281ac_abs_confdir=`( 1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1283 pwd)` 1284# When building in place, set srcdir=. 1285if test "$ac_abs_confdir" = "$ac_pwd"; then 1286 srcdir=. 1287fi 1288# Remove unnecessary trailing slashes from srcdir. 1289# Double slashes in file names in object file debugging info 1290# mess up M-x gdb in Emacs. 1291case $srcdir in 1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1293esac 1294for ac_var in $ac_precious_vars; do 1295 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_env_${ac_var}_value=\$${ac_var} 1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1299done 1300 1301# 1302# Report the --help message. 1303# 1304if test "$ac_init_help" = "long"; then 1305 # Omit some internal or obsolete options to make the list less imposing. 1306 # This message is too long to be a string in the A/UX 3.1 sh. 1307 cat <<_ACEOF 1308\`configure' configures xorg-cf-files 1.0.6 to adapt to many kinds of systems. 1309 1310Usage: $0 [OPTION]... [VAR=VALUE]... 1311 1312To assign environment variables (e.g., CC, CFLAGS...), specify them as 1313VAR=VALUE. See below for descriptions of some of the useful variables. 1314 1315Defaults for the options are specified in brackets. 1316 1317Configuration: 1318 -h, --help display this help and exit 1319 --help=short display options specific to this package 1320 --help=recursive display the short help of all the included packages 1321 -V, --version display version information and exit 1322 -q, --quiet, --silent do not print \`checking ...' messages 1323 --cache-file=FILE cache test results in FILE [disabled] 1324 -C, --config-cache alias for \`--cache-file=config.cache' 1325 -n, --no-create do not create output files 1326 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1327 1328Installation directories: 1329 --prefix=PREFIX install architecture-independent files in PREFIX 1330 [$ac_default_prefix] 1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1332 [PREFIX] 1333 1334By default, \`make install' will install all the files in 1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1336an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1337for instance \`--prefix=\$HOME'. 1338 1339For better control, use the options below. 1340 1341Fine tuning of the installation directories: 1342 --bindir=DIR user executables [EPREFIX/bin] 1343 --sbindir=DIR system admin executables [EPREFIX/sbin] 1344 --libexecdir=DIR program executables [EPREFIX/libexec] 1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1348 --libdir=DIR object code libraries [EPREFIX/lib] 1349 --includedir=DIR C header files [PREFIX/include] 1350 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1353 --infodir=DIR info documentation [DATAROOTDIR/info] 1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1355 --mandir=DIR man documentation [DATAROOTDIR/man] 1356 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-cf-files] 1357 --htmldir=DIR html documentation [DOCDIR] 1358 --dvidir=DIR dvi documentation [DOCDIR] 1359 --pdfdir=DIR pdf documentation [DOCDIR] 1360 --psdir=DIR ps documentation [DOCDIR] 1361_ACEOF 1362 1363 cat <<\_ACEOF 1364 1365Program names: 1366 --program-prefix=PREFIX prepend PREFIX to installed program names 1367 --program-suffix=SUFFIX append SUFFIX to installed program names 1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1369 1370System types: 1371 --build=BUILD configure for building on BUILD [guessed] 1372 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1373_ACEOF 1374fi 1375 1376if test -n "$ac_init_help"; then 1377 case $ac_init_help in 1378 short | recursive ) echo "Configuration of xorg-cf-files 1.0.6:";; 1379 esac 1380 cat <<\_ACEOF 1381 1382Optional Features: 1383 --disable-option-checking ignore unrecognized --enable/--with options 1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1386 --enable-silent-rules less verbose build output (undo: "make V=1") 1387 --disable-silent-rules verbose build output (undo: "make V=0") 1388 --enable-dependency-tracking 1389 do not reject slow dependency extractors 1390 --disable-dependency-tracking 1391 speeds up one-time build 1392 --disable-selective-werror 1393 Turn off selective compiler errors. (default: 1394 enabled) 1395 --enable-strict-compilation 1396 Enable all warnings from compiler and make them 1397 errors (default: disabled) 1398 1399Optional Packages: 1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1402 --with-fontrootdir=DIR Path to root directory for font files 1403 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings] 1404 --with-config-dir=<path> 1405 Path to config dir (default: ${libdir}/X11/config) 1406 1407Some influential environment variables: 1408 CC C compiler command 1409 CFLAGS C compiler flags 1410 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1411 nonstandard directory <lib dir> 1412 LIBS libraries to pass to the linker, e.g. -l<library> 1413 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1414 you have headers in a nonstandard directory <include dir> 1415 CPP C preprocessor 1416 PKG_CONFIG path to pkg-config utility 1417 1418Use these variables to override the choices made by `configure' or to help 1419it to find libraries and programs with nonstandard names/locations. 1420 1421Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1422_ACEOF 1423ac_status=$? 1424fi 1425 1426if test "$ac_init_help" = "recursive"; then 1427 # If there are subdirs, report their specific --help. 1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1429 test -d "$ac_dir" || 1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1431 continue 1432 ac_builddir=. 1433 1434case "$ac_dir" in 1435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1436*) 1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1438 # A ".." for each directory in $ac_dir_suffix. 1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1440 case $ac_top_builddir_sub in 1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1443 esac ;; 1444esac 1445ac_abs_top_builddir=$ac_pwd 1446ac_abs_builddir=$ac_pwd$ac_dir_suffix 1447# for backward compatibility: 1448ac_top_builddir=$ac_top_build_prefix 1449 1450case $srcdir in 1451 .) # We are building in place. 1452 ac_srcdir=. 1453 ac_top_srcdir=$ac_top_builddir_sub 1454 ac_abs_top_srcdir=$ac_pwd ;; 1455 [\\/]* | ?:[\\/]* ) # Absolute name. 1456 ac_srcdir=$srcdir$ac_dir_suffix; 1457 ac_top_srcdir=$srcdir 1458 ac_abs_top_srcdir=$srcdir ;; 1459 *) # Relative name. 1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1461 ac_top_srcdir=$ac_top_build_prefix$srcdir 1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1463esac 1464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1465 1466 cd "$ac_dir" || { ac_status=$?; continue; } 1467 # Check for guested configure. 1468 if test -f "$ac_srcdir/configure.gnu"; then 1469 echo && 1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1471 elif test -f "$ac_srcdir/configure"; then 1472 echo && 1473 $SHELL "$ac_srcdir/configure" --help=recursive 1474 else 1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1476 fi || ac_status=$? 1477 cd "$ac_pwd" || { ac_status=$?; break; } 1478 done 1479fi 1480 1481test -n "$ac_init_help" && exit $ac_status 1482if $ac_init_version; then 1483 cat <<\_ACEOF 1484xorg-cf-files configure 1.0.6 1485generated by GNU Autoconf 2.69 1486 1487Copyright (C) 2012 Free Software Foundation, Inc. 1488This configure script is free software; the Free Software Foundation 1489gives unlimited permission to copy, distribute and modify it. 1490_ACEOF 1491 exit 1492fi 1493 1494## ------------------------ ## 1495## Autoconf initialization. ## 1496## ------------------------ ## 1497 1498# ac_fn_c_try_compile LINENO 1499# -------------------------- 1500# Try to compile conftest.$ac_ext, and return whether this succeeded. 1501ac_fn_c_try_compile () 1502{ 1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1504 rm -f conftest.$ac_objext 1505 if { { ac_try="$ac_compile" 1506case "(($ac_try" in 1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1508 *) ac_try_echo=$ac_try;; 1509esac 1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1511$as_echo "$ac_try_echo"; } >&5 1512 (eval "$ac_compile") 2>conftest.err 1513 ac_status=$? 1514 if test -s conftest.err; then 1515 grep -v '^ *+' conftest.err >conftest.er1 1516 cat conftest.er1 >&5 1517 mv -f conftest.er1 conftest.err 1518 fi 1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1520 test $ac_status = 0; } && { 1521 test -z "$ac_c_werror_flag" || 1522 test ! -s conftest.err 1523 } && test -s conftest.$ac_objext; then : 1524 ac_retval=0 1525else 1526 $as_echo "$as_me: failed program was:" >&5 1527sed 's/^/| /' conftest.$ac_ext >&5 1528 1529 ac_retval=1 1530fi 1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1532 as_fn_set_status $ac_retval 1533 1534} # ac_fn_c_try_compile 1535 1536# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1537# --------------------------------------------- 1538# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1539# accordingly. 1540ac_fn_c_check_decl () 1541{ 1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1543 as_decl_name=`echo $2|sed 's/ *(.*//'` 1544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1546$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1547if eval \${$3+:} false; then : 1548 $as_echo_n "(cached) " >&6 1549else 1550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1551/* end confdefs.h. */ 1552$4 1553int 1554main () 1555{ 1556#ifndef $as_decl_name 1557#ifdef __cplusplus 1558 (void) $as_decl_use; 1559#else 1560 (void) $as_decl_name; 1561#endif 1562#endif 1563 1564 ; 1565 return 0; 1566} 1567_ACEOF 1568if ac_fn_c_try_compile "$LINENO"; then : 1569 eval "$3=yes" 1570else 1571 eval "$3=no" 1572fi 1573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1574fi 1575eval ac_res=\$$3 1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1577$as_echo "$ac_res" >&6; } 1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1579 1580} # ac_fn_c_check_decl 1581 1582# ac_fn_c_try_cpp LINENO 1583# ---------------------- 1584# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_c_try_cpp () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 if { { ac_try="$ac_cpp conftest.$ac_ext" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } > conftest.i && { 1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 }; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617} # ac_fn_c_try_cpp 1618 1619# ac_fn_c_try_run LINENO 1620# ---------------------- 1621# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1622# that executables *can* be run. 1623ac_fn_c_try_run () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 if { { ac_try="$ac_link" 1627case "(($ac_try" in 1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1629 *) ac_try_echo=$ac_try;; 1630esac 1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1632$as_echo "$ac_try_echo"; } >&5 1633 (eval "$ac_link") 2>&5 1634 ac_status=$? 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1637 { { case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_try") 2>&5 1644 ac_status=$? 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; }; }; then : 1647 ac_retval=0 1648else 1649 $as_echo "$as_me: program exited with status $ac_status" >&5 1650 $as_echo "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=$ac_status 1654fi 1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_run 1660 1661# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1662# ------------------------------------------------------- 1663# Tests whether HEADER exists and can be compiled using the include files in 1664# INCLUDES, setting the cache variable VAR accordingly. 1665ac_fn_c_check_header_compile () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669$as_echo_n "checking for $2... " >&6; } 1670if eval \${$3+:} false; then : 1671 $as_echo_n "(cached) " >&6 1672else 1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674/* end confdefs.h. */ 1675$4 1676#include <$2> 1677_ACEOF 1678if ac_fn_c_try_compile "$LINENO"; then : 1679 eval "$3=yes" 1680else 1681 eval "$3=no" 1682fi 1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1684fi 1685eval ac_res=\$$3 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1687$as_echo "$ac_res" >&6; } 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 1690} # ac_fn_c_check_header_compile 1691 1692# ac_fn_c_try_link LINENO 1693# ----------------------- 1694# Try to link conftest.$ac_ext, and return whether this succeeded. 1695ac_fn_c_try_link () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 rm -f conftest.$ac_objext conftest$ac_exeext 1699 if { { ac_try="$ac_link" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705$as_echo "$ac_try_echo"; } >&5 1706 (eval "$ac_link") 2>conftest.err 1707 ac_status=$? 1708 if test -s conftest.err; then 1709 grep -v '^ *+' conftest.err >conftest.er1 1710 cat conftest.er1 >&5 1711 mv -f conftest.er1 conftest.err 1712 fi 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } && { 1715 test -z "$ac_c_werror_flag" || 1716 test ! -s conftest.err 1717 } && test -s conftest$ac_exeext && { 1718 test "$cross_compiling" = yes || 1719 test -x conftest$ac_exeext 1720 }; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=1 1727fi 1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1730 # interfere with the next link command; also delete a directory that is 1731 # left behind by Apple's compiler. We do this before executing the actions. 1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736} # ac_fn_c_try_link 1737cat >config.log <<_ACEOF 1738This file contains any messages produced by compilers while 1739running configure, to aid debugging if configure makes a mistake. 1740 1741It was created by xorg-cf-files $as_me 1.0.6, which was 1742generated by GNU Autoconf 2.69. Invocation command line was 1743 1744 $ $0 $@ 1745 1746_ACEOF 1747exec 5>>config.log 1748{ 1749cat <<_ASUNAME 1750## --------- ## 1751## Platform. ## 1752## --------- ## 1753 1754hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1755uname -m = `(uname -m) 2>/dev/null || echo unknown` 1756uname -r = `(uname -r) 2>/dev/null || echo unknown` 1757uname -s = `(uname -s) 2>/dev/null || echo unknown` 1758uname -v = `(uname -v) 2>/dev/null || echo unknown` 1759 1760/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1761/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1762 1763/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1764/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1765/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1766/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1767/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1768/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1769/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1770 1771_ASUNAME 1772 1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1774for as_dir in $PATH 1775do 1776 IFS=$as_save_IFS 1777 test -z "$as_dir" && as_dir=. 1778 $as_echo "PATH: $as_dir" 1779 done 1780IFS=$as_save_IFS 1781 1782} >&5 1783 1784cat >&5 <<_ACEOF 1785 1786 1787## ----------- ## 1788## Core tests. ## 1789## ----------- ## 1790 1791_ACEOF 1792 1793 1794# Keep a trace of the command line. 1795# Strip out --no-create and --no-recursion so they do not pile up. 1796# Strip out --silent because we don't want to record it for future runs. 1797# Also quote any args containing shell meta-characters. 1798# Make two passes to allow for proper duplicate-argument suppression. 1799ac_configure_args= 1800ac_configure_args0= 1801ac_configure_args1= 1802ac_must_keep_next=false 1803for ac_pass in 1 2 1804do 1805 for ac_arg 1806 do 1807 case $ac_arg in 1808 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1810 | -silent | --silent | --silen | --sile | --sil) 1811 continue ;; 1812 *\'*) 1813 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1814 esac 1815 case $ac_pass in 1816 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1817 2) 1818 as_fn_append ac_configure_args1 " '$ac_arg'" 1819 if test $ac_must_keep_next = true; then 1820 ac_must_keep_next=false # Got value, back to normal. 1821 else 1822 case $ac_arg in 1823 *=* | --config-cache | -C | -disable-* | --disable-* \ 1824 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1825 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1826 | -with-* | --with-* | -without-* | --without-* | --x) 1827 case "$ac_configure_args0 " in 1828 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1829 esac 1830 ;; 1831 -* ) ac_must_keep_next=true ;; 1832 esac 1833 fi 1834 as_fn_append ac_configure_args " '$ac_arg'" 1835 ;; 1836 esac 1837 done 1838done 1839{ ac_configure_args0=; unset ac_configure_args0;} 1840{ ac_configure_args1=; unset ac_configure_args1;} 1841 1842# When interrupted or exit'd, cleanup temporary files, and complete 1843# config.log. We remove comments because anyway the quotes in there 1844# would cause problems or look ugly. 1845# WARNING: Use '\'' to represent an apostrophe within the trap. 1846# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1847trap 'exit_status=$? 1848 # Save into config.log some information that might help in debugging. 1849 { 1850 echo 1851 1852 $as_echo "## ---------------- ## 1853## Cache variables. ## 1854## ---------------- ##" 1855 echo 1856 # The following way of writing the cache mishandles newlines in values, 1857( 1858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1859 eval ac_val=\$$ac_var 1860 case $ac_val in #( 1861 *${as_nl}*) 1862 case $ac_var in #( 1863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1864$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1865 esac 1866 case $ac_var in #( 1867 _ | IFS | as_nl) ;; #( 1868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1869 *) { eval $ac_var=; unset $ac_var;} ;; 1870 esac ;; 1871 esac 1872 done 1873 (set) 2>&1 | 1874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1875 *${as_nl}ac_space=\ *) 1876 sed -n \ 1877 "s/'\''/'\''\\\\'\'''\''/g; 1878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1879 ;; #( 1880 *) 1881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1882 ;; 1883 esac | 1884 sort 1885) 1886 echo 1887 1888 $as_echo "## ----------------- ## 1889## Output variables. ## 1890## ----------------- ##" 1891 echo 1892 for ac_var in $ac_subst_vars 1893 do 1894 eval ac_val=\$$ac_var 1895 case $ac_val in 1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1897 esac 1898 $as_echo "$ac_var='\''$ac_val'\''" 1899 done | sort 1900 echo 1901 1902 if test -n "$ac_subst_files"; then 1903 $as_echo "## ------------------- ## 1904## File substitutions. ## 1905## ------------------- ##" 1906 echo 1907 for ac_var in $ac_subst_files 1908 do 1909 eval ac_val=\$$ac_var 1910 case $ac_val in 1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1912 esac 1913 $as_echo "$ac_var='\''$ac_val'\''" 1914 done | sort 1915 echo 1916 fi 1917 1918 if test -s confdefs.h; then 1919 $as_echo "## ----------- ## 1920## confdefs.h. ## 1921## ----------- ##" 1922 echo 1923 cat confdefs.h 1924 echo 1925 fi 1926 test "$ac_signal" != 0 && 1927 $as_echo "$as_me: caught signal $ac_signal" 1928 $as_echo "$as_me: exit $exit_status" 1929 } >&5 1930 rm -f core *.core core.conftest.* && 1931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1932 exit $exit_status 1933' 0 1934for ac_signal in 1 2 13 15; do 1935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1936done 1937ac_signal=0 1938 1939# confdefs.h avoids OS command line length limits that DEFS can exceed. 1940rm -f -r conftest* confdefs.h 1941 1942$as_echo "/* confdefs.h */" > confdefs.h 1943 1944# Predefined preprocessor variables. 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_NAME "$PACKAGE_NAME" 1948_ACEOF 1949 1950cat >>confdefs.h <<_ACEOF 1951#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1952_ACEOF 1953 1954cat >>confdefs.h <<_ACEOF 1955#define PACKAGE_VERSION "$PACKAGE_VERSION" 1956_ACEOF 1957 1958cat >>confdefs.h <<_ACEOF 1959#define PACKAGE_STRING "$PACKAGE_STRING" 1960_ACEOF 1961 1962cat >>confdefs.h <<_ACEOF 1963#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1964_ACEOF 1965 1966cat >>confdefs.h <<_ACEOF 1967#define PACKAGE_URL "$PACKAGE_URL" 1968_ACEOF 1969 1970 1971# Let the site file select an alternate cache file if it wants to. 1972# Prefer an explicitly selected file to automatically selected ones. 1973ac_site_file1=NONE 1974ac_site_file2=NONE 1975if test -n "$CONFIG_SITE"; then 1976 # We do not want a PATH search for config.site. 1977 case $CONFIG_SITE in #(( 1978 -*) ac_site_file1=./$CONFIG_SITE;; 1979 */*) ac_site_file1=$CONFIG_SITE;; 1980 *) ac_site_file1=./$CONFIG_SITE;; 1981 esac 1982elif test "x$prefix" != xNONE; then 1983 ac_site_file1=$prefix/share/config.site 1984 ac_site_file2=$prefix/etc/config.site 1985else 1986 ac_site_file1=$ac_default_prefix/share/config.site 1987 ac_site_file2=$ac_default_prefix/etc/config.site 1988fi 1989for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1990do 1991 test "x$ac_site_file" = xNONE && continue 1992 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1994$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1995 sed 's/^/| /' "$ac_site_file" >&5 1996 . "$ac_site_file" \ 1997 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1999as_fn_error $? "failed to load site script $ac_site_file 2000See \`config.log' for more details" "$LINENO" 5; } 2001 fi 2002done 2003 2004if test -r "$cache_file"; then 2005 # Some versions of bash will fail to source /dev/null (special files 2006 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2007 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2009$as_echo "$as_me: loading cache $cache_file" >&6;} 2010 case $cache_file in 2011 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2012 *) . "./$cache_file";; 2013 esac 2014 fi 2015else 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2017$as_echo "$as_me: creating cache $cache_file" >&6;} 2018 >$cache_file 2019fi 2020 2021# Check that the precious variables saved in the cache have kept the same 2022# value. 2023ac_cache_corrupted=false 2024for ac_var in $ac_precious_vars; do 2025 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2026 eval ac_new_set=\$ac_env_${ac_var}_set 2027 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2028 eval ac_new_val=\$ac_env_${ac_var}_value 2029 case $ac_old_set,$ac_new_set in 2030 set,) 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2032$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2033 ac_cache_corrupted=: ;; 2034 ,set) 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2036$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2037 ac_cache_corrupted=: ;; 2038 ,);; 2039 *) 2040 if test "x$ac_old_val" != "x$ac_new_val"; then 2041 # differences in whitespace do not lead to failure. 2042 ac_old_val_w=`echo x $ac_old_val` 2043 ac_new_val_w=`echo x $ac_new_val` 2044 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2046$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2047 ac_cache_corrupted=: 2048 else 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2050$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2051 eval $ac_var=\$ac_old_val 2052 fi 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2054$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2056$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2057 fi;; 2058 esac 2059 # Pass precious variables to config.status. 2060 if test "$ac_new_set" = set; then 2061 case $ac_new_val in 2062 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2063 *) ac_arg=$ac_var=$ac_new_val ;; 2064 esac 2065 case " $ac_configure_args " in 2066 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2067 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2068 esac 2069 fi 2070done 2071if $ac_cache_corrupted; then 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2075$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2076 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2077fi 2078## -------------------- ## 2079## Main body of script. ## 2080## -------------------- ## 2081 2082ac_ext=c 2083ac_cpp='$CPP $CPPFLAGS' 2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2086ac_compiler_gnu=$ac_cv_c_compiler_gnu 2087 2088 2089 2090 2091# Initialize Automake 2092am__api_version='1.15' 2093 2094ac_aux_dir= 2095for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2096 if test -f "$ac_dir/install-sh"; then 2097 ac_aux_dir=$ac_dir 2098 ac_install_sh="$ac_aux_dir/install-sh -c" 2099 break 2100 elif test -f "$ac_dir/install.sh"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/install.sh -c" 2103 break 2104 elif test -f "$ac_dir/shtool"; then 2105 ac_aux_dir=$ac_dir 2106 ac_install_sh="$ac_aux_dir/shtool install -c" 2107 break 2108 fi 2109done 2110if test -z "$ac_aux_dir"; then 2111 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2112fi 2113 2114# These three variables are undocumented and unsupported, 2115# and are intended to be withdrawn in a future Autoconf release. 2116# They can cause serious problems if a builder's source tree is in a directory 2117# whose full name contains unusual characters. 2118ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2119ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2120ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2121 2122 2123# Find a good install program. We prefer a C program (faster), 2124# so one script is as good as another. But avoid the broken or 2125# incompatible versions: 2126# SysV /etc/install, /usr/sbin/install 2127# SunOS /usr/etc/install 2128# IRIX /sbin/install 2129# AIX /bin/install 2130# AmigaOS /C/install, which installs bootblocks on floppy discs 2131# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2132# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2133# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2134# OS/2's system install, which has a completely different semantic 2135# ./install, which can be erroneously created by make from ./install.sh. 2136# Reject install programs that cannot install multiple files. 2137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2138$as_echo_n "checking for a BSD-compatible install... " >&6; } 2139if test -z "$INSTALL"; then 2140if ${ac_cv_path_install+:} false; then : 2141 $as_echo_n "(cached) " >&6 2142else 2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2144for as_dir in $PATH 2145do 2146 IFS=$as_save_IFS 2147 test -z "$as_dir" && as_dir=. 2148 # Account for people who put trailing slashes in PATH elements. 2149case $as_dir/ in #(( 2150 ./ | .// | /[cC]/* | \ 2151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2152 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2153 /usr/ucb/* ) ;; 2154 *) 2155 # OSF1 and SCO ODT 3.0 have their own names for install. 2156 # Don't use installbsd from OSF since it installs stuff as root 2157 # by default. 2158 for ac_prog in ginstall scoinst install; do 2159 for ac_exec_ext in '' $ac_executable_extensions; do 2160 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2161 if test $ac_prog = install && 2162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2163 # AIX install. It has an incompatible calling convention. 2164 : 2165 elif test $ac_prog = install && 2166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2167 # program-specific install script used by HP pwplus--don't use. 2168 : 2169 else 2170 rm -rf conftest.one conftest.two conftest.dir 2171 echo one > conftest.one 2172 echo two > conftest.two 2173 mkdir conftest.dir 2174 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2175 test -s conftest.one && test -s conftest.two && 2176 test -s conftest.dir/conftest.one && 2177 test -s conftest.dir/conftest.two 2178 then 2179 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2180 break 3 2181 fi 2182 fi 2183 fi 2184 done 2185 done 2186 ;; 2187esac 2188 2189 done 2190IFS=$as_save_IFS 2191 2192rm -rf conftest.one conftest.two conftest.dir 2193 2194fi 2195 if test "${ac_cv_path_install+set}" = set; then 2196 INSTALL=$ac_cv_path_install 2197 else 2198 # As a last resort, use the slow shell script. Don't cache a 2199 # value for INSTALL within a source directory, because that will 2200 # break other packages using the cache if that directory is 2201 # removed, or if the value is a relative name. 2202 INSTALL=$ac_install_sh 2203 fi 2204fi 2205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2206$as_echo "$INSTALL" >&6; } 2207 2208# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2209# It thinks the first close brace ends the variable substitution. 2210test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2211 2212test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2213 2214test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2215 2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2217$as_echo_n "checking whether build environment is sane... " >&6; } 2218# Reject unsafe characters in $srcdir or the absolute working directory 2219# name. Accept space and tab only in the latter. 2220am_lf=' 2221' 2222case `pwd` in 2223 *[\\\"\#\$\&\'\`$am_lf]*) 2224 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2225esac 2226case $srcdir in 2227 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2228 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2229esac 2230 2231# Do 'set' in a subshell so we don't clobber the current shell's 2232# arguments. Must try -L first in case configure is actually a 2233# symlink; some systems play weird games with the mod time of symlinks 2234# (eg FreeBSD returns the mod time of the symlink's containing 2235# directory). 2236if ( 2237 am_has_slept=no 2238 for am_try in 1 2; do 2239 echo "timestamp, slept: $am_has_slept" > conftest.file 2240 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2241 if test "$*" = "X"; then 2242 # -L didn't work. 2243 set X `ls -t "$srcdir/configure" conftest.file` 2244 fi 2245 if test "$*" != "X $srcdir/configure conftest.file" \ 2246 && test "$*" != "X conftest.file $srcdir/configure"; then 2247 2248 # If neither matched, then we have a broken ls. This can happen 2249 # if, for instance, CONFIG_SHELL is bash and it inherits a 2250 # broken ls alias from the environment. This has actually 2251 # happened. Such a system could not be considered "sane". 2252 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2253 alias in your environment" "$LINENO" 5 2254 fi 2255 if test "$2" = conftest.file || test $am_try -eq 2; then 2256 break 2257 fi 2258 # Just in case. 2259 sleep 1 2260 am_has_slept=yes 2261 done 2262 test "$2" = conftest.file 2263 ) 2264then 2265 # Ok. 2266 : 2267else 2268 as_fn_error $? "newly created file is older than distributed files! 2269Check your system clock" "$LINENO" 5 2270fi 2271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2272$as_echo "yes" >&6; } 2273# If we didn't sleep, we still need to ensure time stamps of config.status and 2274# generated files are strictly newer. 2275am_sleep_pid= 2276if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2277 ( sleep 1 ) & 2278 am_sleep_pid=$! 2279fi 2280 2281rm -f conftest.file 2282 2283test "$program_prefix" != NONE && 2284 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2285# Use a double $ so make ignores it. 2286test "$program_suffix" != NONE && 2287 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2288# Double any \ or $. 2289# By default was `s,x,x', remove it if useless. 2290ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2291program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2292 2293# Expand $ac_aux_dir to an absolute path. 2294am_aux_dir=`cd "$ac_aux_dir" && pwd` 2295 2296if test x"${MISSING+set}" != xset; then 2297 case $am_aux_dir in 2298 *\ * | *\ *) 2299 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2300 *) 2301 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2302 esac 2303fi 2304# Use eval to expand $SHELL 2305if eval "$MISSING --is-lightweight"; then 2306 am_missing_run="$MISSING " 2307else 2308 am_missing_run= 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2310$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2311fi 2312 2313if test x"${install_sh+set}" != xset; then 2314 case $am_aux_dir in 2315 *\ * | *\ *) 2316 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2317 *) 2318 install_sh="\${SHELL} $am_aux_dir/install-sh" 2319 esac 2320fi 2321 2322# Installed binaries are usually stripped using 'strip' when the user 2323# run "make install-strip". However 'strip' might not be the right 2324# tool to use in cross-compilation environments, therefore Automake 2325# will honor the 'STRIP' environment variable to overrule this program. 2326if test "$cross_compiling" != no; then 2327 if test -n "$ac_tool_prefix"; then 2328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2329set dummy ${ac_tool_prefix}strip; ac_word=$2 2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2331$as_echo_n "checking for $ac_word... " >&6; } 2332if ${ac_cv_prog_STRIP+:} false; then : 2333 $as_echo_n "(cached) " >&6 2334else 2335 if test -n "$STRIP"; then 2336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2337else 2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2339for as_dir in $PATH 2340do 2341 IFS=$as_save_IFS 2342 test -z "$as_dir" && as_dir=. 2343 for ac_exec_ext in '' $ac_executable_extensions; do 2344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2345 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2347 break 2 2348 fi 2349done 2350 done 2351IFS=$as_save_IFS 2352 2353fi 2354fi 2355STRIP=$ac_cv_prog_STRIP 2356if test -n "$STRIP"; then 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2358$as_echo "$STRIP" >&6; } 2359else 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2361$as_echo "no" >&6; } 2362fi 2363 2364 2365fi 2366if test -z "$ac_cv_prog_STRIP"; then 2367 ac_ct_STRIP=$STRIP 2368 # Extract the first word of "strip", so it can be a program name with args. 2369set dummy strip; ac_word=$2 2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2371$as_echo_n "checking for $ac_word... " >&6; } 2372if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2373 $as_echo_n "(cached) " >&6 2374else 2375 if test -n "$ac_ct_STRIP"; then 2376 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2377else 2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2379for as_dir in $PATH 2380do 2381 IFS=$as_save_IFS 2382 test -z "$as_dir" && as_dir=. 2383 for ac_exec_ext in '' $ac_executable_extensions; do 2384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2385 ac_cv_prog_ac_ct_STRIP="strip" 2386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2387 break 2 2388 fi 2389done 2390 done 2391IFS=$as_save_IFS 2392 2393fi 2394fi 2395ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2396if test -n "$ac_ct_STRIP"; then 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2398$as_echo "$ac_ct_STRIP" >&6; } 2399else 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2401$as_echo "no" >&6; } 2402fi 2403 2404 if test "x$ac_ct_STRIP" = x; then 2405 STRIP=":" 2406 else 2407 case $cross_compiling:$ac_tool_warned in 2408yes:) 2409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2411ac_tool_warned=yes ;; 2412esac 2413 STRIP=$ac_ct_STRIP 2414 fi 2415else 2416 STRIP="$ac_cv_prog_STRIP" 2417fi 2418 2419fi 2420INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2421 2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2423$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2424if test -z "$MKDIR_P"; then 2425 if ${ac_cv_path_mkdir+:} false; then : 2426 $as_echo_n "(cached) " >&6 2427else 2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2429for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2430do 2431 IFS=$as_save_IFS 2432 test -z "$as_dir" && as_dir=. 2433 for ac_prog in mkdir gmkdir; do 2434 for ac_exec_ext in '' $ac_executable_extensions; do 2435 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2436 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2437 'mkdir (GNU coreutils) '* | \ 2438 'mkdir (coreutils) '* | \ 2439 'mkdir (fileutils) '4.1*) 2440 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2441 break 3;; 2442 esac 2443 done 2444 done 2445 done 2446IFS=$as_save_IFS 2447 2448fi 2449 2450 test -d ./--version && rmdir ./--version 2451 if test "${ac_cv_path_mkdir+set}" = set; then 2452 MKDIR_P="$ac_cv_path_mkdir -p" 2453 else 2454 # As a last resort, use the slow shell script. Don't cache a 2455 # value for MKDIR_P within a source directory, because that will 2456 # break other packages using the cache if that directory is 2457 # removed, or if the value is a relative name. 2458 MKDIR_P="$ac_install_sh -d" 2459 fi 2460fi 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2462$as_echo "$MKDIR_P" >&6; } 2463 2464for ac_prog in gawk mawk nawk awk 2465do 2466 # Extract the first word of "$ac_prog", so it can be a program name with args. 2467set dummy $ac_prog; ac_word=$2 2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2469$as_echo_n "checking for $ac_word... " >&6; } 2470if ${ac_cv_prog_AWK+:} false; then : 2471 $as_echo_n "(cached) " >&6 2472else 2473 if test -n "$AWK"; then 2474 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2475else 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477for as_dir in $PATH 2478do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 for ac_exec_ext in '' $ac_executable_extensions; do 2482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2483 ac_cv_prog_AWK="$ac_prog" 2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2485 break 2 2486 fi 2487done 2488 done 2489IFS=$as_save_IFS 2490 2491fi 2492fi 2493AWK=$ac_cv_prog_AWK 2494if test -n "$AWK"; then 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2496$as_echo "$AWK" >&6; } 2497else 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2499$as_echo "no" >&6; } 2500fi 2501 2502 2503 test -n "$AWK" && break 2504done 2505 2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2507$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2508set x ${MAKE-make} 2509ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2510if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2511 $as_echo_n "(cached) " >&6 2512else 2513 cat >conftest.make <<\_ACEOF 2514SHELL = /bin/sh 2515all: 2516 @echo '@@@%%%=$(MAKE)=@@@%%%' 2517_ACEOF 2518# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2519case `${MAKE-make} -f conftest.make 2>/dev/null` in 2520 *@@@%%%=?*=@@@%%%*) 2521 eval ac_cv_prog_make_${ac_make}_set=yes;; 2522 *) 2523 eval ac_cv_prog_make_${ac_make}_set=no;; 2524esac 2525rm -f conftest.make 2526fi 2527if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2529$as_echo "yes" >&6; } 2530 SET_MAKE= 2531else 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2533$as_echo "no" >&6; } 2534 SET_MAKE="MAKE=${MAKE-make}" 2535fi 2536 2537rm -rf .tst 2>/dev/null 2538mkdir .tst 2>/dev/null 2539if test -d .tst; then 2540 am__leading_dot=. 2541else 2542 am__leading_dot=_ 2543fi 2544rmdir .tst 2>/dev/null 2545 2546# Check whether --enable-silent-rules was given. 2547if test "${enable_silent_rules+set}" = set; then : 2548 enableval=$enable_silent_rules; 2549fi 2550 2551case $enable_silent_rules in # ((( 2552 yes) AM_DEFAULT_VERBOSITY=0;; 2553 no) AM_DEFAULT_VERBOSITY=1;; 2554 *) AM_DEFAULT_VERBOSITY=1;; 2555esac 2556am_make=${MAKE-make} 2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2558$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2559if ${am_cv_make_support_nested_variables+:} false; then : 2560 $as_echo_n "(cached) " >&6 2561else 2562 if $as_echo 'TRUE=$(BAR$(V)) 2563BAR0=false 2564BAR1=true 2565V=1 2566am__doit: 2567 @$(TRUE) 2568.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2569 am_cv_make_support_nested_variables=yes 2570else 2571 am_cv_make_support_nested_variables=no 2572fi 2573fi 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2575$as_echo "$am_cv_make_support_nested_variables" >&6; } 2576if test $am_cv_make_support_nested_variables = yes; then 2577 AM_V='$(V)' 2578 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2579else 2580 AM_V=$AM_DEFAULT_VERBOSITY 2581 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2582fi 2583AM_BACKSLASH='\' 2584 2585if test "`cd $srcdir && pwd`" != "`pwd`"; then 2586 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2587 # is not polluted with repeated "-I." 2588 am__isrc=' -I$(srcdir)' 2589 # test to see if srcdir already configured 2590 if test -f $srcdir/config.status; then 2591 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2592 fi 2593fi 2594 2595# test whether we have cygpath 2596if test -z "$CYGPATH_W"; then 2597 if (cygpath --version) >/dev/null 2>/dev/null; then 2598 CYGPATH_W='cygpath -w' 2599 else 2600 CYGPATH_W=echo 2601 fi 2602fi 2603 2604 2605# Define the identity of the package. 2606 PACKAGE='xorg-cf-files' 2607 VERSION='1.0.6' 2608 2609 2610cat >>confdefs.h <<_ACEOF 2611#define PACKAGE "$PACKAGE" 2612_ACEOF 2613 2614 2615cat >>confdefs.h <<_ACEOF 2616#define VERSION "$VERSION" 2617_ACEOF 2618 2619# Some tools Automake needs. 2620 2621ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2622 2623 2624AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2625 2626 2627AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2628 2629 2630AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2631 2632 2633MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2634 2635# For better backward compatibility. To be removed once Automake 1.9.x 2636# dies out for good. For more background, see: 2637# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2638# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2639mkdir_p='$(MKDIR_P)' 2640 2641# We need awk for the "check" target (and possibly the TAP driver). The 2642# system "awk" is bad on some platforms. 2643# Always define AMTAR for backward compatibility. Yes, it's still used 2644# in the wild :-( We should find a proper way to deprecate it ... 2645AMTAR='$${TAR-tar}' 2646 2647 2648# We'll loop over all known methods to create a tar archive until one works. 2649_am_tools='gnutar pax cpio none' 2650 2651am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2652 2653 2654 2655 2656 2657 2658# POSIX will say in a future version that running "rm -f" with no argument 2659# is OK; and we want to be able to make that assumption in our Makefile 2660# recipes. So use an aggressive probe to check that the usage we want is 2661# actually supported "in the wild" to an acceptable degree. 2662# See automake bug#10828. 2663# To make any issue more visible, cause the running configure to be aborted 2664# by default if the 'rm' program in use doesn't match our expectations; the 2665# user can still override this though. 2666if rm -f && rm -fr && rm -rf; then : OK; else 2667 cat >&2 <<'END' 2668Oops! 2669 2670Your 'rm' program seems unable to run without file operands specified 2671on the command line, even when the '-f' option is present. This is contrary 2672to the behaviour of most rm programs out there, and not conforming with 2673the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2674 2675Please tell bug-automake@gnu.org about your system, including the value 2676of your $PATH and any error possibly output before this message. This 2677can help us improve future automake versions. 2678 2679END 2680 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2681 echo 'Configuration will proceed anyway, since you have set the' >&2 2682 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2683 echo >&2 2684 else 2685 cat >&2 <<'END' 2686Aborting the configuration process, to ensure you take notice of the issue. 2687 2688You can download and install GNU coreutils to get an 'rm' implementation 2689that behaves properly: <http://www.gnu.org/software/coreutils/>. 2690 2691If you want to complete the configuration process using your problematic 2692'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2693to "yes", and re-run configure. 2694 2695END 2696 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2697 fi 2698fi 2699 2700 2701# Require xorg-macros 1.4 or later: XORG_DEFAULT_OPTIONS, XORG_INSTALL 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713DEPDIR="${am__leading_dot}deps" 2714 2715ac_config_commands="$ac_config_commands depfiles" 2716 2717 2718am_make=${MAKE-make} 2719cat > confinc << 'END' 2720am__doit: 2721 @echo this is the am__doit target 2722.PHONY: am__doit 2723END 2724# If we don't find an include directive, just comment out the code. 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2726$as_echo_n "checking for style of include used by $am_make... " >&6; } 2727am__include="#" 2728am__quote= 2729_am_result=none 2730# First try GNU make style include. 2731echo "include confinc" > confmf 2732# Ignore all kinds of additional output from 'make'. 2733case `$am_make -s -f confmf 2> /dev/null` in #( 2734*the\ am__doit\ target*) 2735 am__include=include 2736 am__quote= 2737 _am_result=GNU 2738 ;; 2739esac 2740# Now try BSD make style include. 2741if test "$am__include" = "#"; then 2742 echo '.include "confinc"' > confmf 2743 case `$am_make -s -f confmf 2> /dev/null` in #( 2744 *the\ am__doit\ target*) 2745 am__include=.include 2746 am__quote="\"" 2747 _am_result=BSD 2748 ;; 2749 esac 2750fi 2751 2752 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2754$as_echo "$_am_result" >&6; } 2755rm -f confinc confmf 2756 2757# Check whether --enable-dependency-tracking was given. 2758if test "${enable_dependency_tracking+set}" = set; then : 2759 enableval=$enable_dependency_tracking; 2760fi 2761 2762if test "x$enable_dependency_tracking" != xno; then 2763 am_depcomp="$ac_aux_dir/depcomp" 2764 AMDEPBACKSLASH='\' 2765 am__nodep='_no' 2766fi 2767 if test "x$enable_dependency_tracking" != xno; then 2768 AMDEP_TRUE= 2769 AMDEP_FALSE='#' 2770else 2771 AMDEP_TRUE='#' 2772 AMDEP_FALSE= 2773fi 2774 2775 2776ac_ext=c 2777ac_cpp='$CPP $CPPFLAGS' 2778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2780ac_compiler_gnu=$ac_cv_c_compiler_gnu 2781if test -n "$ac_tool_prefix"; then 2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2783set dummy ${ac_tool_prefix}gcc; ac_word=$2 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2785$as_echo_n "checking for $ac_word... " >&6; } 2786if ${ac_cv_prog_CC+:} false; then : 2787 $as_echo_n "(cached) " >&6 2788else 2789 if test -n "$CC"; then 2790 ac_cv_prog_CC="$CC" # Let the user override the test. 2791else 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2799 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2801 break 2 2802 fi 2803done 2804 done 2805IFS=$as_save_IFS 2806 2807fi 2808fi 2809CC=$ac_cv_prog_CC 2810if test -n "$CC"; then 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2812$as_echo "$CC" >&6; } 2813else 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2815$as_echo "no" >&6; } 2816fi 2817 2818 2819fi 2820if test -z "$ac_cv_prog_CC"; then 2821 ac_ct_CC=$CC 2822 # Extract the first word of "gcc", so it can be a program name with args. 2823set dummy gcc; ac_word=$2 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2825$as_echo_n "checking for $ac_word... " >&6; } 2826if ${ac_cv_prog_ac_ct_CC+:} false; then : 2827 $as_echo_n "(cached) " >&6 2828else 2829 if test -n "$ac_ct_CC"; then 2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2831else 2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833for as_dir in $PATH 2834do 2835 IFS=$as_save_IFS 2836 test -z "$as_dir" && as_dir=. 2837 for ac_exec_ext in '' $ac_executable_extensions; do 2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2839 ac_cv_prog_ac_ct_CC="gcc" 2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2841 break 2 2842 fi 2843done 2844 done 2845IFS=$as_save_IFS 2846 2847fi 2848fi 2849ac_ct_CC=$ac_cv_prog_ac_ct_CC 2850if test -n "$ac_ct_CC"; then 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2852$as_echo "$ac_ct_CC" >&6; } 2853else 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2855$as_echo "no" >&6; } 2856fi 2857 2858 if test "x$ac_ct_CC" = x; then 2859 CC="" 2860 else 2861 case $cross_compiling:$ac_tool_warned in 2862yes:) 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2865ac_tool_warned=yes ;; 2866esac 2867 CC=$ac_ct_CC 2868 fi 2869else 2870 CC="$ac_cv_prog_CC" 2871fi 2872 2873if test -z "$CC"; then 2874 if test -n "$ac_tool_prefix"; then 2875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2876set dummy ${ac_tool_prefix}cc; ac_word=$2 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2878$as_echo_n "checking for $ac_word... " >&6; } 2879if ${ac_cv_prog_CC+:} false; then : 2880 $as_echo_n "(cached) " >&6 2881else 2882 if test -n "$CC"; then 2883 ac_cv_prog_CC="$CC" # Let the user override the test. 2884else 2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886for as_dir in $PATH 2887do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_CC="${ac_tool_prefix}cc" 2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897 done 2898IFS=$as_save_IFS 2899 2900fi 2901fi 2902CC=$ac_cv_prog_CC 2903if test -n "$CC"; then 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2905$as_echo "$CC" >&6; } 2906else 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908$as_echo "no" >&6; } 2909fi 2910 2911 2912 fi 2913fi 2914if test -z "$CC"; then 2915 # Extract the first word of "cc", so it can be a program name with args. 2916set dummy cc; ac_word=$2 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2918$as_echo_n "checking for $ac_word... " >&6; } 2919if ${ac_cv_prog_CC+:} false; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test -n "$CC"; then 2923 ac_cv_prog_CC="$CC" # Let the user override the test. 2924else 2925 ac_prog_rejected=no 2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH 2928do 2929 IFS=$as_save_IFS 2930 test -z "$as_dir" && as_dir=. 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2934 ac_prog_rejected=yes 2935 continue 2936 fi 2937 ac_cv_prog_CC="cc" 2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2939 break 2 2940 fi 2941done 2942 done 2943IFS=$as_save_IFS 2944 2945if test $ac_prog_rejected = yes; then 2946 # We found a bogon in the path, so make sure we never use it. 2947 set dummy $ac_cv_prog_CC 2948 shift 2949 if test $# != 0; then 2950 # We chose a different compiler from the bogus one. 2951 # However, it has the same basename, so the bogon will be chosen 2952 # first if we set CC to just the basename; use the full file name. 2953 shift 2954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2955 fi 2956fi 2957fi 2958fi 2959CC=$ac_cv_prog_CC 2960if test -n "$CC"; then 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2962$as_echo "$CC" >&6; } 2963else 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965$as_echo "no" >&6; } 2966fi 2967 2968 2969fi 2970if test -z "$CC"; then 2971 if test -n "$ac_tool_prefix"; then 2972 for ac_prog in cl.exe 2973 do 2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2975set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2977$as_echo_n "checking for $ac_word... " >&6; } 2978if ${ac_cv_prog_CC+:} false; then : 2979 $as_echo_n "(cached) " >&6 2980else 2981 if test -n "$CC"; then 2982 ac_cv_prog_CC="$CC" # Let the user override the test. 2983else 2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2985for as_dir in $PATH 2986do 2987 IFS=$as_save_IFS 2988 test -z "$as_dir" && as_dir=. 2989 for ac_exec_ext in '' $ac_executable_extensions; do 2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2993 break 2 2994 fi 2995done 2996 done 2997IFS=$as_save_IFS 2998 2999fi 3000fi 3001CC=$ac_cv_prog_CC 3002if test -n "$CC"; then 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3004$as_echo "$CC" >&6; } 3005else 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3007$as_echo "no" >&6; } 3008fi 3009 3010 3011 test -n "$CC" && break 3012 done 3013fi 3014if test -z "$CC"; then 3015 ac_ct_CC=$CC 3016 for ac_prog in cl.exe 3017do 3018 # Extract the first word of "$ac_prog", so it can be a program name with args. 3019set dummy $ac_prog; ac_word=$2 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3021$as_echo_n "checking for $ac_word... " >&6; } 3022if ${ac_cv_prog_ac_ct_CC+:} false; then : 3023 $as_echo_n "(cached) " >&6 3024else 3025 if test -n "$ac_ct_CC"; then 3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3027else 3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3029for as_dir in $PATH 3030do 3031 IFS=$as_save_IFS 3032 test -z "$as_dir" && as_dir=. 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3035 ac_cv_prog_ac_ct_CC="$ac_prog" 3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3037 break 2 3038 fi 3039done 3040 done 3041IFS=$as_save_IFS 3042 3043fi 3044fi 3045ac_ct_CC=$ac_cv_prog_ac_ct_CC 3046if test -n "$ac_ct_CC"; then 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3048$as_echo "$ac_ct_CC" >&6; } 3049else 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051$as_echo "no" >&6; } 3052fi 3053 3054 3055 test -n "$ac_ct_CC" && break 3056done 3057 3058 if test "x$ac_ct_CC" = x; then 3059 CC="" 3060 else 3061 case $cross_compiling:$ac_tool_warned in 3062yes:) 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3065ac_tool_warned=yes ;; 3066esac 3067 CC=$ac_ct_CC 3068 fi 3069fi 3070 3071fi 3072 3073 3074test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3076as_fn_error $? "no acceptable C compiler found in \$PATH 3077See \`config.log' for more details" "$LINENO" 5; } 3078 3079# Provide some information about the compiler. 3080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3081set X $ac_compile 3082ac_compiler=$2 3083for ac_option in --version -v -V -qversion; do 3084 { { ac_try="$ac_compiler $ac_option >&5" 3085case "(($ac_try" in 3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087 *) ac_try_echo=$ac_try;; 3088esac 3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3090$as_echo "$ac_try_echo"; } >&5 3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3092 ac_status=$? 3093 if test -s conftest.err; then 3094 sed '10a\ 3095... rest of stderr output deleted ... 3096 10q' conftest.err >conftest.er1 3097 cat conftest.er1 >&5 3098 fi 3099 rm -f conftest.er1 conftest.err 3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3101 test $ac_status = 0; } 3102done 3103 3104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3105/* end confdefs.h. */ 3106 3107int 3108main () 3109{ 3110 3111 ; 3112 return 0; 3113} 3114_ACEOF 3115ac_clean_files_save=$ac_clean_files 3116ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3117# Try to create an executable without -o first, disregard a.out. 3118# It will help us diagnose broken compilers, and finding out an intuition 3119# of exeext. 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3121$as_echo_n "checking whether the C compiler works... " >&6; } 3122ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3123 3124# The possible output files: 3125ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3126 3127ac_rmfiles= 3128for ac_file in $ac_files 3129do 3130 case $ac_file in 3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3133 esac 3134done 3135rm -f $ac_rmfiles 3136 3137if { { ac_try="$ac_link_default" 3138case "(($ac_try" in 3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140 *) ac_try_echo=$ac_try;; 3141esac 3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3143$as_echo "$ac_try_echo"; } >&5 3144 (eval "$ac_link_default") 2>&5 3145 ac_status=$? 3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3147 test $ac_status = 0; }; then : 3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3149# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3150# in a Makefile. We should not override ac_cv_exeext if it was cached, 3151# so that the user can short-circuit this test for compilers unknown to 3152# Autoconf. 3153for ac_file in $ac_files '' 3154do 3155 test -f "$ac_file" || continue 3156 case $ac_file in 3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3158 ;; 3159 [ab].out ) 3160 # We found the default executable, but exeext='' is most 3161 # certainly right. 3162 break;; 3163 *.* ) 3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3165 then :; else 3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3167 fi 3168 # We set ac_cv_exeext here because the later test for it is not 3169 # safe: cross compilers may not add the suffix if given an `-o' 3170 # argument, so we may need to know it at that point already. 3171 # Even if this section looks crufty: it has the advantage of 3172 # actually working. 3173 break;; 3174 * ) 3175 break;; 3176 esac 3177done 3178test "$ac_cv_exeext" = no && ac_cv_exeext= 3179 3180else 3181 ac_file='' 3182fi 3183if test -z "$ac_file"; then : 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3185$as_echo "no" >&6; } 3186$as_echo "$as_me: failed program was:" >&5 3187sed 's/^/| /' conftest.$ac_ext >&5 3188 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 77 "C compiler cannot create executables 3192See \`config.log' for more details" "$LINENO" 5; } 3193else 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3195$as_echo "yes" >&6; } 3196fi 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3198$as_echo_n "checking for C compiler default output file name... " >&6; } 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3200$as_echo "$ac_file" >&6; } 3201ac_exeext=$ac_cv_exeext 3202 3203rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3204ac_clean_files=$ac_clean_files_save 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3206$as_echo_n "checking for suffix of executables... " >&6; } 3207if { { ac_try="$ac_link" 3208case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3213$as_echo "$ac_try_echo"; } >&5 3214 (eval "$ac_link") 2>&5 3215 ac_status=$? 3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3217 test $ac_status = 0; }; then : 3218 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3219# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3220# work properly (i.e., refer to `conftest.exe'), while it won't with 3221# `rm'. 3222for ac_file in conftest.exe conftest conftest.*; do 3223 test -f "$ac_file" || continue 3224 case $ac_file in 3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3227 break;; 3228 * ) break;; 3229 esac 3230done 3231else 3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3234as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3235See \`config.log' for more details" "$LINENO" 5; } 3236fi 3237rm -f conftest conftest$ac_cv_exeext 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3239$as_echo "$ac_cv_exeext" >&6; } 3240 3241rm -f conftest.$ac_ext 3242EXEEXT=$ac_cv_exeext 3243ac_exeext=$EXEEXT 3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3245/* end confdefs.h. */ 3246#include <stdio.h> 3247int 3248main () 3249{ 3250FILE *f = fopen ("conftest.out", "w"); 3251 return ferror (f) || fclose (f) != 0; 3252 3253 ; 3254 return 0; 3255} 3256_ACEOF 3257ac_clean_files="$ac_clean_files conftest.out" 3258# Check that the compiler produces executables we can run. If not, either 3259# the compiler is broken, or we cross compile. 3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3261$as_echo_n "checking whether we are cross compiling... " >&6; } 3262if test "$cross_compiling" != yes; then 3263 { { ac_try="$ac_link" 3264case "(($ac_try" in 3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3266 *) ac_try_echo=$ac_try;; 3267esac 3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3269$as_echo "$ac_try_echo"; } >&5 3270 (eval "$ac_link") 2>&5 3271 ac_status=$? 3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3273 test $ac_status = 0; } 3274 if { ac_try='./conftest$ac_cv_exeext' 3275 { { case "(($ac_try" in 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3277 *) ac_try_echo=$ac_try;; 3278esac 3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3280$as_echo "$ac_try_echo"; } >&5 3281 (eval "$ac_try") 2>&5 3282 ac_status=$? 3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3284 test $ac_status = 0; }; }; then 3285 cross_compiling=no 3286 else 3287 if test "$cross_compiling" = maybe; then 3288 cross_compiling=yes 3289 else 3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3292as_fn_error $? "cannot run C compiled programs. 3293If you meant to cross compile, use \`--host'. 3294See \`config.log' for more details" "$LINENO" 5; } 3295 fi 3296 fi 3297fi 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3299$as_echo "$cross_compiling" >&6; } 3300 3301rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3302ac_clean_files=$ac_clean_files_save 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3304$as_echo_n "checking for suffix of object files... " >&6; } 3305if ${ac_cv_objext+:} false; then : 3306 $as_echo_n "(cached) " >&6 3307else 3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3309/* end confdefs.h. */ 3310 3311int 3312main () 3313{ 3314 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319rm -f conftest.o conftest.obj 3320if { { ac_try="$ac_compile" 3321case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324esac 3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3326$as_echo "$ac_try_echo"; } >&5 3327 (eval "$ac_compile") 2>&5 3328 ac_status=$? 3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3330 test $ac_status = 0; }; then : 3331 for ac_file in conftest.o conftest.obj conftest.*; do 3332 test -f "$ac_file" || continue; 3333 case $ac_file in 3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3336 break;; 3337 esac 3338done 3339else 3340 $as_echo "$as_me: failed program was:" >&5 3341sed 's/^/| /' conftest.$ac_ext >&5 3342 3343{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3345as_fn_error $? "cannot compute suffix of object files: cannot compile 3346See \`config.log' for more details" "$LINENO" 5; } 3347fi 3348rm -f conftest.$ac_cv_objext conftest.$ac_ext 3349fi 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3351$as_echo "$ac_cv_objext" >&6; } 3352OBJEXT=$ac_cv_objext 3353ac_objext=$OBJEXT 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3355$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3356if ${ac_cv_c_compiler_gnu+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3360/* end confdefs.h. */ 3361 3362int 3363main () 3364{ 3365#ifndef __GNUC__ 3366 choke me 3367#endif 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373if ac_fn_c_try_compile "$LINENO"; then : 3374 ac_compiler_gnu=yes 3375else 3376 ac_compiler_gnu=no 3377fi 3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3379ac_cv_c_compiler_gnu=$ac_compiler_gnu 3380 3381fi 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3383$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3384if test $ac_compiler_gnu = yes; then 3385 GCC=yes 3386else 3387 GCC= 3388fi 3389ac_test_CFLAGS=${CFLAGS+set} 3390ac_save_CFLAGS=$CFLAGS 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3392$as_echo_n "checking whether $CC accepts -g... " >&6; } 3393if ${ac_cv_prog_cc_g+:} false; then : 3394 $as_echo_n "(cached) " >&6 3395else 3396 ac_save_c_werror_flag=$ac_c_werror_flag 3397 ac_c_werror_flag=yes 3398 ac_cv_prog_cc_g=no 3399 CFLAGS="-g" 3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401/* end confdefs.h. */ 3402 3403int 3404main () 3405{ 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411if ac_fn_c_try_compile "$LINENO"; then : 3412 ac_cv_prog_cc_g=yes 3413else 3414 CFLAGS="" 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416/* end confdefs.h. */ 3417 3418int 3419main () 3420{ 3421 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426if ac_fn_c_try_compile "$LINENO"; then : 3427 3428else 3429 ac_c_werror_flag=$ac_save_c_werror_flag 3430 CFLAGS="-g" 3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3432/* end confdefs.h. */ 3433 3434int 3435main () 3436{ 3437 3438 ; 3439 return 0; 3440} 3441_ACEOF 3442if ac_fn_c_try_compile "$LINENO"; then : 3443 ac_cv_prog_cc_g=yes 3444fi 3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3446fi 3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3448fi 3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450 ac_c_werror_flag=$ac_save_c_werror_flag 3451fi 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3453$as_echo "$ac_cv_prog_cc_g" >&6; } 3454if test "$ac_test_CFLAGS" = set; then 3455 CFLAGS=$ac_save_CFLAGS 3456elif test $ac_cv_prog_cc_g = yes; then 3457 if test "$GCC" = yes; then 3458 CFLAGS="-g -O2" 3459 else 3460 CFLAGS="-g" 3461 fi 3462else 3463 if test "$GCC" = yes; then 3464 CFLAGS="-O2" 3465 else 3466 CFLAGS= 3467 fi 3468fi 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3470$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3471if ${ac_cv_prog_cc_c89+:} false; then : 3472 $as_echo_n "(cached) " >&6 3473else 3474 ac_cv_prog_cc_c89=no 3475ac_save_CC=$CC 3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478#include <stdarg.h> 3479#include <stdio.h> 3480struct stat; 3481/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3482struct buf { int x; }; 3483FILE * (*rcsopen) (struct buf *, struct stat *, int); 3484static char *e (p, i) 3485 char **p; 3486 int i; 3487{ 3488 return p[i]; 3489} 3490static char *f (char * (*g) (char **, int), char **p, ...) 3491{ 3492 char *s; 3493 va_list v; 3494 va_start (v,p); 3495 s = g (p, va_arg (v,int)); 3496 va_end (v); 3497 return s; 3498} 3499 3500/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3501 function prototypes and stuff, but not '\xHH' hex character constants. 3502 These don't provoke an error unfortunately, instead are silently treated 3503 as 'x'. The following induces an error, until -std is added to get 3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3505 array size at least. It's necessary to write '\x00'==0 to get something 3506 that's true only with -std. */ 3507int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3508 3509/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3510 inside strings and character constants. */ 3511#define FOO(x) 'x' 3512int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3513 3514int test (int i, double x); 3515struct s1 {int (*f) (int a);}; 3516struct s2 {int (*f) (double a);}; 3517int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3518int argc; 3519char **argv; 3520int 3521main () 3522{ 3523return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3524 ; 3525 return 0; 3526} 3527_ACEOF 3528for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3530do 3531 CC="$ac_save_CC $ac_arg" 3532 if ac_fn_c_try_compile "$LINENO"; then : 3533 ac_cv_prog_cc_c89=$ac_arg 3534fi 3535rm -f core conftest.err conftest.$ac_objext 3536 test "x$ac_cv_prog_cc_c89" != "xno" && break 3537done 3538rm -f conftest.$ac_ext 3539CC=$ac_save_CC 3540 3541fi 3542# AC_CACHE_VAL 3543case "x$ac_cv_prog_cc_c89" in 3544 x) 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3546$as_echo "none needed" >&6; } ;; 3547 xno) 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3549$as_echo "unsupported" >&6; } ;; 3550 *) 3551 CC="$CC $ac_cv_prog_cc_c89" 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3553$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3554esac 3555if test "x$ac_cv_prog_cc_c89" != xno; then : 3556 3557fi 3558 3559ac_ext=c 3560ac_cpp='$CPP $CPPFLAGS' 3561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3563ac_compiler_gnu=$ac_cv_c_compiler_gnu 3564 3565ac_ext=c 3566ac_cpp='$CPP $CPPFLAGS' 3567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3569ac_compiler_gnu=$ac_cv_c_compiler_gnu 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3571$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3572if ${am_cv_prog_cc_c_o+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577 3578int 3579main () 3580{ 3581 3582 ; 3583 return 0; 3584} 3585_ACEOF 3586 # Make sure it works both with $CC and with simple cc. 3587 # Following AC_PROG_CC_C_O, we do the test twice because some 3588 # compilers refuse to overwrite an existing .o file with -o, 3589 # though they will create one. 3590 am_cv_prog_cc_c_o=yes 3591 for am_i in 1 2; do 3592 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3593 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3594 ac_status=$? 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); } \ 3597 && test -f conftest2.$ac_objext; then 3598 : OK 3599 else 3600 am_cv_prog_cc_c_o=no 3601 break 3602 fi 3603 done 3604 rm -f core conftest* 3605 unset am_i 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3608$as_echo "$am_cv_prog_cc_c_o" >&6; } 3609if test "$am_cv_prog_cc_c_o" != yes; then 3610 # Losing compiler, so override with the script. 3611 # FIXME: It is wrong to rewrite CC. 3612 # But if we don't then we get into trouble of one sort or another. 3613 # A longer-term fix would be to have automake use am__CC in this case, 3614 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3615 CC="$am_aux_dir/compile $CC" 3616fi 3617ac_ext=c 3618ac_cpp='$CPP $CPPFLAGS' 3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3621ac_compiler_gnu=$ac_cv_c_compiler_gnu 3622 3623 3624depcc="$CC" am_compiler_list= 3625 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3627$as_echo_n "checking dependency style of $depcc... " >&6; } 3628if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3629 $as_echo_n "(cached) " >&6 3630else 3631 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3632 # We make a subdir and do the tests there. Otherwise we can end up 3633 # making bogus files that we don't know about and never remove. For 3634 # instance it was reported that on HP-UX the gcc test will end up 3635 # making a dummy file named 'D' -- because '-MD' means "put the output 3636 # in D". 3637 rm -rf conftest.dir 3638 mkdir conftest.dir 3639 # Copy depcomp to subdir because otherwise we won't find it if we're 3640 # using a relative directory. 3641 cp "$am_depcomp" conftest.dir 3642 cd conftest.dir 3643 # We will build objects and dependencies in a subdirectory because 3644 # it helps to detect inapplicable dependency modes. For instance 3645 # both Tru64's cc and ICC support -MD to output dependencies as a 3646 # side effect of compilation, but ICC will put the dependencies in 3647 # the current directory while Tru64 will put them in the object 3648 # directory. 3649 mkdir sub 3650 3651 am_cv_CC_dependencies_compiler_type=none 3652 if test "$am_compiler_list" = ""; then 3653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3654 fi 3655 am__universal=false 3656 case " $depcc " in #( 3657 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3658 esac 3659 3660 for depmode in $am_compiler_list; do 3661 # Setup a source with many dependencies, because some compilers 3662 # like to wrap large dependency lists on column 80 (with \), and 3663 # we should not choose a depcomp mode which is confused by this. 3664 # 3665 # We need to recreate these files for each test, as the compiler may 3666 # overwrite some of them when testing with obscure command lines. 3667 # This happens at least with the AIX C compiler. 3668 : > sub/conftest.c 3669 for i in 1 2 3 4 5 6; do 3670 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3671 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3672 # Solaris 10 /bin/sh. 3673 echo '/* dummy */' > sub/conftst$i.h 3674 done 3675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3676 3677 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3678 # mode. It turns out that the SunPro C++ compiler does not properly 3679 # handle '-M -o', and we need to detect this. Also, some Intel 3680 # versions had trouble with output in subdirs. 3681 am__obj=sub/conftest.${OBJEXT-o} 3682 am__minus_obj="-o $am__obj" 3683 case $depmode in 3684 gcc) 3685 # This depmode causes a compiler race in universal mode. 3686 test "$am__universal" = false || continue 3687 ;; 3688 nosideeffect) 3689 # After this tag, mechanisms are not by side-effect, so they'll 3690 # only be used when explicitly requested. 3691 if test "x$enable_dependency_tracking" = xyes; then 3692 continue 3693 else 3694 break 3695 fi 3696 ;; 3697 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3698 # This compiler won't grok '-c -o', but also, the minuso test has 3699 # not run yet. These depmodes are late enough in the game, and 3700 # so weak that their functioning should not be impacted. 3701 am__obj=conftest.${OBJEXT-o} 3702 am__minus_obj= 3703 ;; 3704 none) break ;; 3705 esac 3706 if depmode=$depmode \ 3707 source=sub/conftest.c object=$am__obj \ 3708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3709 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3710 >/dev/null 2>conftest.err && 3711 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3713 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3715 # icc doesn't choke on unknown options, it will just issue warnings 3716 # or remarks (even with -Werror). So we grep stderr for any message 3717 # that says an option was ignored or not supported. 3718 # When given -MP, icc 7.0 and 7.1 complain thusly: 3719 # icc: Command line warning: ignoring option '-M'; no argument required 3720 # The diagnosis changed in icc 8.0: 3721 # icc: Command line remark: option '-MP' not supported 3722 if (grep 'ignoring option' conftest.err || 3723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3724 am_cv_CC_dependencies_compiler_type=$depmode 3725 break 3726 fi 3727 fi 3728 done 3729 3730 cd .. 3731 rm -rf conftest.dir 3732else 3733 am_cv_CC_dependencies_compiler_type=none 3734fi 3735 3736fi 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3738$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3739CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3740 3741 if 3742 test "x$enable_dependency_tracking" != xno \ 3743 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3744 am__fastdepCC_TRUE= 3745 am__fastdepCC_FALSE='#' 3746else 3747 am__fastdepCC_TRUE='#' 3748 am__fastdepCC_FALSE= 3749fi 3750 3751 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3753$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3754if ${ac_cv_prog_cc_c99+:} false; then : 3755 $as_echo_n "(cached) " >&6 3756else 3757 ac_cv_prog_cc_c99=no 3758ac_save_CC=$CC 3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760/* end confdefs.h. */ 3761#include <stdarg.h> 3762#include <stdbool.h> 3763#include <stdlib.h> 3764#include <wchar.h> 3765#include <stdio.h> 3766 3767// Check varargs macros. These examples are taken from C99 6.10.3.5. 3768#define debug(...) fprintf (stderr, __VA_ARGS__) 3769#define showlist(...) puts (#__VA_ARGS__) 3770#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3771static void 3772test_varargs_macros (void) 3773{ 3774 int x = 1234; 3775 int y = 5678; 3776 debug ("Flag"); 3777 debug ("X = %d\n", x); 3778 showlist (The first, second, and third items.); 3779 report (x>y, "x is %d but y is %d", x, y); 3780} 3781 3782// Check long long types. 3783#define BIG64 18446744073709551615ull 3784#define BIG32 4294967295ul 3785#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3786#if !BIG_OK 3787 your preprocessor is broken; 3788#endif 3789#if BIG_OK 3790#else 3791 your preprocessor is broken; 3792#endif 3793static long long int bignum = -9223372036854775807LL; 3794static unsigned long long int ubignum = BIG64; 3795 3796struct incomplete_array 3797{ 3798 int datasize; 3799 double data[]; 3800}; 3801 3802struct named_init { 3803 int number; 3804 const wchar_t *name; 3805 double average; 3806}; 3807 3808typedef const char *ccp; 3809 3810static inline int 3811test_restrict (ccp restrict text) 3812{ 3813 // See if C++-style comments work. 3814 // Iterate through items via the restricted pointer. 3815 // Also check for declarations in for loops. 3816 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3817 continue; 3818 return 0; 3819} 3820 3821// Check varargs and va_copy. 3822static void 3823test_varargs (const char *format, ...) 3824{ 3825 va_list args; 3826 va_start (args, format); 3827 va_list args_copy; 3828 va_copy (args_copy, args); 3829 3830 const char *str; 3831 int number; 3832 float fnumber; 3833 3834 while (*format) 3835 { 3836 switch (*format++) 3837 { 3838 case 's': // string 3839 str = va_arg (args_copy, const char *); 3840 break; 3841 case 'd': // int 3842 number = va_arg (args_copy, int); 3843 break; 3844 case 'f': // float 3845 fnumber = va_arg (args_copy, double); 3846 break; 3847 default: 3848 break; 3849 } 3850 } 3851 va_end (args_copy); 3852 va_end (args); 3853} 3854 3855int 3856main () 3857{ 3858 3859 // Check bool. 3860 _Bool success = false; 3861 3862 // Check restrict. 3863 if (test_restrict ("String literal") == 0) 3864 success = true; 3865 char *restrict newvar = "Another string"; 3866 3867 // Check varargs. 3868 test_varargs ("s, d' f .", "string", 65, 34.234); 3869 test_varargs_macros (); 3870 3871 // Check flexible array members. 3872 struct incomplete_array *ia = 3873 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3874 ia->datasize = 10; 3875 for (int i = 0; i < ia->datasize; ++i) 3876 ia->data[i] = i * 1.234; 3877 3878 // Check named initializers. 3879 struct named_init ni = { 3880 .number = 34, 3881 .name = L"Test wide string", 3882 .average = 543.34343, 3883 }; 3884 3885 ni.number = 58; 3886 3887 int dynamic_array[ni.number]; 3888 dynamic_array[ni.number - 1] = 543; 3889 3890 // work around unused variable warnings 3891 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3892 || dynamic_array[ni.number - 1] != 543); 3893 3894 ; 3895 return 0; 3896} 3897_ACEOF 3898for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3899do 3900 CC="$ac_save_CC $ac_arg" 3901 if ac_fn_c_try_compile "$LINENO"; then : 3902 ac_cv_prog_cc_c99=$ac_arg 3903fi 3904rm -f core conftest.err conftest.$ac_objext 3905 test "x$ac_cv_prog_cc_c99" != "xno" && break 3906done 3907rm -f conftest.$ac_ext 3908CC=$ac_save_CC 3909 3910fi 3911# AC_CACHE_VAL 3912case "x$ac_cv_prog_cc_c99" in 3913 x) 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3915$as_echo "none needed" >&6; } ;; 3916 xno) 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3918$as_echo "unsupported" >&6; } ;; 3919 *) 3920 CC="$CC $ac_cv_prog_cc_c99" 3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3922$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3923esac 3924if test "x$ac_cv_prog_cc_c99" != xno; then : 3925 3926fi 3927 3928 3929 3930ac_ext=c 3931ac_cpp='$CPP $CPPFLAGS' 3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3934ac_compiler_gnu=$ac_cv_c_compiler_gnu 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3936$as_echo_n "checking how to run the C preprocessor... " >&6; } 3937# On Suns, sometimes $CPP names a directory. 3938if test -n "$CPP" && test -d "$CPP"; then 3939 CPP= 3940fi 3941if test -z "$CPP"; then 3942 if ${ac_cv_prog_CPP+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 # Double quotes because CPP needs to be expanded 3946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3947 do 3948 ac_preproc_ok=false 3949for ac_c_preproc_warn_flag in '' yes 3950do 3951 # Use a header file that comes with gcc, so configuring glibc 3952 # with a fresh cross-compiler works. 3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3954 # <limits.h> exists even on freestanding compilers. 3955 # On the NeXT, cc -E runs the code through the compiler's parser, 3956 # not just through cpp. "Syntax error" is here to catch this case. 3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3958/* end confdefs.h. */ 3959#ifdef __STDC__ 3960# include <limits.h> 3961#else 3962# include <assert.h> 3963#endif 3964 Syntax error 3965_ACEOF 3966if ac_fn_c_try_cpp "$LINENO"; then : 3967 3968else 3969 # Broken: fails on valid input. 3970continue 3971fi 3972rm -f conftest.err conftest.i conftest.$ac_ext 3973 3974 # OK, works on sane cases. Now check whether nonexistent headers 3975 # can be detected and how. 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978#include <ac_nonexistent.h> 3979_ACEOF 3980if ac_fn_c_try_cpp "$LINENO"; then : 3981 # Broken: success on invalid input. 3982continue 3983else 3984 # Passes both tests. 3985ac_preproc_ok=: 3986break 3987fi 3988rm -f conftest.err conftest.i conftest.$ac_ext 3989 3990done 3991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3992rm -f conftest.i conftest.err conftest.$ac_ext 3993if $ac_preproc_ok; then : 3994 break 3995fi 3996 3997 done 3998 ac_cv_prog_CPP=$CPP 3999 4000fi 4001 CPP=$ac_cv_prog_CPP 4002else 4003 ac_cv_prog_CPP=$CPP 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4006$as_echo "$CPP" >&6; } 4007ac_preproc_ok=false 4008for ac_c_preproc_warn_flag in '' yes 4009do 4010 # Use a header file that comes with gcc, so configuring glibc 4011 # with a fresh cross-compiler works. 4012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4013 # <limits.h> exists even on freestanding compilers. 4014 # On the NeXT, cc -E runs the code through the compiler's parser, 4015 # not just through cpp. "Syntax error" is here to catch this case. 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018#ifdef __STDC__ 4019# include <limits.h> 4020#else 4021# include <assert.h> 4022#endif 4023 Syntax error 4024_ACEOF 4025if ac_fn_c_try_cpp "$LINENO"; then : 4026 4027else 4028 # Broken: fails on valid input. 4029continue 4030fi 4031rm -f conftest.err conftest.i conftest.$ac_ext 4032 4033 # OK, works on sane cases. Now check whether nonexistent headers 4034 # can be detected and how. 4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4036/* end confdefs.h. */ 4037#include <ac_nonexistent.h> 4038_ACEOF 4039if ac_fn_c_try_cpp "$LINENO"; then : 4040 # Broken: success on invalid input. 4041continue 4042else 4043 # Passes both tests. 4044ac_preproc_ok=: 4045break 4046fi 4047rm -f conftest.err conftest.i conftest.$ac_ext 4048 4049done 4050# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4051rm -f conftest.i conftest.err conftest.$ac_ext 4052if $ac_preproc_ok; then : 4053 4054else 4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4057as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4058See \`config.log' for more details" "$LINENO" 5; } 4059fi 4060 4061ac_ext=c 4062ac_cpp='$CPP $CPPFLAGS' 4063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4065ac_compiler_gnu=$ac_cv_c_compiler_gnu 4066 4067 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4069$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4070if ${ac_cv_path_GREP+:} false; then : 4071 $as_echo_n "(cached) " >&6 4072else 4073 if test -z "$GREP"; then 4074 ac_path_GREP_found=false 4075 # Loop through the user's path and test for each of PROGNAME-LIST 4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4078do 4079 IFS=$as_save_IFS 4080 test -z "$as_dir" && as_dir=. 4081 for ac_prog in grep ggrep; do 4082 for ac_exec_ext in '' $ac_executable_extensions; do 4083 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4084 as_fn_executable_p "$ac_path_GREP" || continue 4085# Check for GNU ac_path_GREP and select it if it is found. 4086 # Check for GNU $ac_path_GREP 4087case `"$ac_path_GREP" --version 2>&1` in 4088*GNU*) 4089 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4090*) 4091 ac_count=0 4092 $as_echo_n 0123456789 >"conftest.in" 4093 while : 4094 do 4095 cat "conftest.in" "conftest.in" >"conftest.tmp" 4096 mv "conftest.tmp" "conftest.in" 4097 cp "conftest.in" "conftest.nl" 4098 $as_echo 'GREP' >> "conftest.nl" 4099 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4101 as_fn_arith $ac_count + 1 && ac_count=$as_val 4102 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4103 # Best one so far, save it but keep looking for a better one 4104 ac_cv_path_GREP="$ac_path_GREP" 4105 ac_path_GREP_max=$ac_count 4106 fi 4107 # 10*(2^10) chars as input seems more than enough 4108 test $ac_count -gt 10 && break 4109 done 4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4111esac 4112 4113 $ac_path_GREP_found && break 3 4114 done 4115 done 4116 done 4117IFS=$as_save_IFS 4118 if test -z "$ac_cv_path_GREP"; then 4119 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4120 fi 4121else 4122 ac_cv_path_GREP=$GREP 4123fi 4124 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4127$as_echo "$ac_cv_path_GREP" >&6; } 4128 GREP="$ac_cv_path_GREP" 4129 4130 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4132$as_echo_n "checking for egrep... " >&6; } 4133if ${ac_cv_path_EGREP+:} false; then : 4134 $as_echo_n "(cached) " >&6 4135else 4136 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4137 then ac_cv_path_EGREP="$GREP -E" 4138 else 4139 if test -z "$EGREP"; then 4140 ac_path_EGREP_found=false 4141 # Loop through the user's path and test for each of PROGNAME-LIST 4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4143for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4144do 4145 IFS=$as_save_IFS 4146 test -z "$as_dir" && as_dir=. 4147 for ac_prog in egrep; do 4148 for ac_exec_ext in '' $ac_executable_extensions; do 4149 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4150 as_fn_executable_p "$ac_path_EGREP" || continue 4151# Check for GNU ac_path_EGREP and select it if it is found. 4152 # Check for GNU $ac_path_EGREP 4153case `"$ac_path_EGREP" --version 2>&1` in 4154*GNU*) 4155 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4156*) 4157 ac_count=0 4158 $as_echo_n 0123456789 >"conftest.in" 4159 while : 4160 do 4161 cat "conftest.in" "conftest.in" >"conftest.tmp" 4162 mv "conftest.tmp" "conftest.in" 4163 cp "conftest.in" "conftest.nl" 4164 $as_echo 'EGREP' >> "conftest.nl" 4165 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4167 as_fn_arith $ac_count + 1 && ac_count=$as_val 4168 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4169 # Best one so far, save it but keep looking for a better one 4170 ac_cv_path_EGREP="$ac_path_EGREP" 4171 ac_path_EGREP_max=$ac_count 4172 fi 4173 # 10*(2^10) chars as input seems more than enough 4174 test $ac_count -gt 10 && break 4175 done 4176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4177esac 4178 4179 $ac_path_EGREP_found && break 3 4180 done 4181 done 4182 done 4183IFS=$as_save_IFS 4184 if test -z "$ac_cv_path_EGREP"; then 4185 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4186 fi 4187else 4188 ac_cv_path_EGREP=$EGREP 4189fi 4190 4191 fi 4192fi 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4194$as_echo "$ac_cv_path_EGREP" >&6; } 4195 EGREP="$ac_cv_path_EGREP" 4196 4197 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4199$as_echo_n "checking for ANSI C header files... " >&6; } 4200if ${ac_cv_header_stdc+:} false; then : 4201 $as_echo_n "(cached) " >&6 4202else 4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204/* end confdefs.h. */ 4205#include <stdlib.h> 4206#include <stdarg.h> 4207#include <string.h> 4208#include <float.h> 4209 4210int 4211main () 4212{ 4213 4214 ; 4215 return 0; 4216} 4217_ACEOF 4218if ac_fn_c_try_compile "$LINENO"; then : 4219 ac_cv_header_stdc=yes 4220else 4221 ac_cv_header_stdc=no 4222fi 4223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4224 4225if test $ac_cv_header_stdc = yes; then 4226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228/* end confdefs.h. */ 4229#include <string.h> 4230 4231_ACEOF 4232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4233 $EGREP "memchr" >/dev/null 2>&1; then : 4234 4235else 4236 ac_cv_header_stdc=no 4237fi 4238rm -f conftest* 4239 4240fi 4241 4242if test $ac_cv_header_stdc = yes; then 4243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245/* end confdefs.h. */ 4246#include <stdlib.h> 4247 4248_ACEOF 4249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4250 $EGREP "free" >/dev/null 2>&1; then : 4251 4252else 4253 ac_cv_header_stdc=no 4254fi 4255rm -f conftest* 4256 4257fi 4258 4259if test $ac_cv_header_stdc = yes; then 4260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4261 if test "$cross_compiling" = yes; then : 4262 : 4263else 4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4265/* end confdefs.h. */ 4266#include <ctype.h> 4267#include <stdlib.h> 4268#if ((' ' & 0x0FF) == 0x020) 4269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4271#else 4272# define ISLOWER(c) \ 4273 (('a' <= (c) && (c) <= 'i') \ 4274 || ('j' <= (c) && (c) <= 'r') \ 4275 || ('s' <= (c) && (c) <= 'z')) 4276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4277#endif 4278 4279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4280int 4281main () 4282{ 4283 int i; 4284 for (i = 0; i < 256; i++) 4285 if (XOR (islower (i), ISLOWER (i)) 4286 || toupper (i) != TOUPPER (i)) 4287 return 2; 4288 return 0; 4289} 4290_ACEOF 4291if ac_fn_c_try_run "$LINENO"; then : 4292 4293else 4294 ac_cv_header_stdc=no 4295fi 4296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4297 conftest.$ac_objext conftest.beam conftest.$ac_ext 4298fi 4299 4300fi 4301fi 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4303$as_echo "$ac_cv_header_stdc" >&6; } 4304if test $ac_cv_header_stdc = yes; then 4305 4306$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4307 4308fi 4309 4310# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4311for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4312 inttypes.h stdint.h unistd.h 4313do : 4314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4315ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4316" 4317if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4318 cat >>confdefs.h <<_ACEOF 4319#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4320_ACEOF 4321 4322fi 4323 4324done 4325 4326 4327 4328 4329 4330 4331ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4332if test "x$ac_cv_have_decl___clang__" = xyes; then : 4333 CLANGCC="yes" 4334else 4335 CLANGCC="no" 4336fi 4337 4338ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4339if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4340 INTELCC="yes" 4341else 4342 INTELCC="no" 4343fi 4344 4345ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4346if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4347 SUNCC="yes" 4348else 4349 SUNCC="no" 4350fi 4351 4352 4353 4354 4355if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4356 if test -n "$ac_tool_prefix"; then 4357 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4358set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4360$as_echo_n "checking for $ac_word... " >&6; } 4361if ${ac_cv_path_PKG_CONFIG+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 case $PKG_CONFIG in 4365 [\\/]* | ?:[\\/]*) 4366 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4367 ;; 4368 *) 4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4370for as_dir in $PATH 4371do 4372 IFS=$as_save_IFS 4373 test -z "$as_dir" && as_dir=. 4374 for ac_exec_ext in '' $ac_executable_extensions; do 4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4376 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4378 break 2 4379 fi 4380done 4381 done 4382IFS=$as_save_IFS 4383 4384 ;; 4385esac 4386fi 4387PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4388if test -n "$PKG_CONFIG"; then 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4390$as_echo "$PKG_CONFIG" >&6; } 4391else 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4393$as_echo "no" >&6; } 4394fi 4395 4396 4397fi 4398if test -z "$ac_cv_path_PKG_CONFIG"; then 4399 ac_pt_PKG_CONFIG=$PKG_CONFIG 4400 # Extract the first word of "pkg-config", so it can be a program name with args. 4401set dummy pkg-config; ac_word=$2 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4403$as_echo_n "checking for $ac_word... " >&6; } 4404if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4405 $as_echo_n "(cached) " >&6 4406else 4407 case $ac_pt_PKG_CONFIG in 4408 [\\/]* | ?:[\\/]*) 4409 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4410 ;; 4411 *) 4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4413for as_dir in $PATH 4414do 4415 IFS=$as_save_IFS 4416 test -z "$as_dir" && as_dir=. 4417 for ac_exec_ext in '' $ac_executable_extensions; do 4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4419 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4421 break 2 4422 fi 4423done 4424 done 4425IFS=$as_save_IFS 4426 4427 ;; 4428esac 4429fi 4430ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4431if test -n "$ac_pt_PKG_CONFIG"; then 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4433$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4434else 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4436$as_echo "no" >&6; } 4437fi 4438 4439 if test "x$ac_pt_PKG_CONFIG" = x; then 4440 PKG_CONFIG="" 4441 else 4442 case $cross_compiling:$ac_tool_warned in 4443yes:) 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4446ac_tool_warned=yes ;; 4447esac 4448 PKG_CONFIG=$ac_pt_PKG_CONFIG 4449 fi 4450else 4451 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4452fi 4453 4454fi 4455if test -n "$PKG_CONFIG"; then 4456 _pkg_min_version=0.9.0 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4458$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4459 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4461$as_echo "yes" >&6; } 4462 else 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4464$as_echo "no" >&6; } 4465 PKG_CONFIG="" 4466 fi 4467 4468fi 4469# Make sure we can run config.sub. 4470$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4471 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4472 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4474$as_echo_n "checking build system type... " >&6; } 4475if ${ac_cv_build+:} false; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 ac_build_alias=$build_alias 4479test "x$ac_build_alias" = x && 4480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4481test "x$ac_build_alias" = x && 4482 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4483ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4485 4486fi 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4488$as_echo "$ac_cv_build" >&6; } 4489case $ac_cv_build in 4490*-*-*) ;; 4491*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4492esac 4493build=$ac_cv_build 4494ac_save_IFS=$IFS; IFS='-' 4495set x $ac_cv_build 4496shift 4497build_cpu=$1 4498build_vendor=$2 4499shift; shift 4500# Remember, the first character of IFS is used to create $*, 4501# except with old shells: 4502build_os=$* 4503IFS=$ac_save_IFS 4504case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4505 4506 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4508$as_echo_n "checking host system type... " >&6; } 4509if ${ac_cv_host+:} false; then : 4510 $as_echo_n "(cached) " >&6 4511else 4512 if test "x$host_alias" = x; then 4513 ac_cv_host=$ac_cv_build 4514else 4515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4517fi 4518 4519fi 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4521$as_echo "$ac_cv_host" >&6; } 4522case $ac_cv_host in 4523*-*-*) ;; 4524*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4525esac 4526host=$ac_cv_host 4527ac_save_IFS=$IFS; IFS='-' 4528set x $ac_cv_host 4529shift 4530host_cpu=$1 4531host_vendor=$2 4532shift; shift 4533# Remember, the first character of IFS is used to create $*, 4534# except with old shells: 4535host_os=$* 4536IFS=$ac_save_IFS 4537case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4538 4539 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4541$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4542if ${ac_cv_path_SED+:} false; then : 4543 $as_echo_n "(cached) " >&6 4544else 4545 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4546 for ac_i in 1 2 3 4 5 6 7; do 4547 ac_script="$ac_script$as_nl$ac_script" 4548 done 4549 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4550 { ac_script=; unset ac_script;} 4551 if test -z "$SED"; then 4552 ac_path_SED_found=false 4553 # Loop through the user's path and test for each of PROGNAME-LIST 4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4555for as_dir in $PATH 4556do 4557 IFS=$as_save_IFS 4558 test -z "$as_dir" && as_dir=. 4559 for ac_prog in sed gsed; do 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4562 as_fn_executable_p "$ac_path_SED" || continue 4563# Check for GNU ac_path_SED and select it if it is found. 4564 # Check for GNU $ac_path_SED 4565case `"$ac_path_SED" --version 2>&1` in 4566*GNU*) 4567 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4568*) 4569 ac_count=0 4570 $as_echo_n 0123456789 >"conftest.in" 4571 while : 4572 do 4573 cat "conftest.in" "conftest.in" >"conftest.tmp" 4574 mv "conftest.tmp" "conftest.in" 4575 cp "conftest.in" "conftest.nl" 4576 $as_echo '' >> "conftest.nl" 4577 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4579 as_fn_arith $ac_count + 1 && ac_count=$as_val 4580 if test $ac_count -gt ${ac_path_SED_max-0}; then 4581 # Best one so far, save it but keep looking for a better one 4582 ac_cv_path_SED="$ac_path_SED" 4583 ac_path_SED_max=$ac_count 4584 fi 4585 # 10*(2^10) chars as input seems more than enough 4586 test $ac_count -gt 10 && break 4587 done 4588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4589esac 4590 4591 $ac_path_SED_found && break 3 4592 done 4593 done 4594 done 4595IFS=$as_save_IFS 4596 if test -z "$ac_cv_path_SED"; then 4597 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4598 fi 4599else 4600 ac_cv_path_SED=$SED 4601fi 4602 4603fi 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4605$as_echo "$ac_cv_path_SED" >&6; } 4606 SED="$ac_cv_path_SED" 4607 rm -f conftest.sed 4608 4609 4610 4611 4612 4613 4614# Check whether --enable-selective-werror was given. 4615if test "${enable_selective_werror+set}" = set; then : 4616 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4617else 4618 SELECTIVE_WERROR=yes 4619fi 4620 4621 4622 4623 4624 4625# -v is too short to test reliably with XORG_TESTSET_CFLAG 4626if test "x$SUNCC" = "xyes"; then 4627 BASE_CFLAGS="-v" 4628else 4629 BASE_CFLAGS="" 4630fi 4631 4632# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646xorg_testset_save_CFLAGS="$CFLAGS" 4647 4648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4653 $as_echo_n "(cached) " >&6 4654else 4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4656/* end confdefs.h. */ 4657int i; 4658_ACEOF 4659if ac_fn_c_try_compile "$LINENO"; then : 4660 xorg_cv_cc_flag_unknown_warning_option=yes 4661else 4662 xorg_cv_cc_flag_unknown_warning_option=no 4663fi 4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4665fi 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4669 CFLAGS="$xorg_testset_save_CFLAGS" 4670fi 4671 4672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4675 fi 4676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4680 $as_echo_n "(cached) " >&6 4681else 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683/* end confdefs.h. */ 4684int i; 4685_ACEOF 4686if ac_fn_c_try_compile "$LINENO"; then : 4687 xorg_cv_cc_flag_unused_command_line_argument=yes 4688else 4689 xorg_cv_cc_flag_unused_command_line_argument=no 4690fi 4691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4692fi 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4696 CFLAGS="$xorg_testset_save_CFLAGS" 4697fi 4698 4699found="no" 4700 4701 if test $found = "no" ; then 4702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4704 fi 4705 4706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4708 fi 4709 4710 CFLAGS="$CFLAGS -Wall" 4711 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4713$as_echo_n "checking if $CC supports -Wall... " >&6; } 4714 cacheid=xorg_cv_cc_flag__Wall 4715 if eval \${$cacheid+:} false; then : 4716 $as_echo_n "(cached) " >&6 4717else 4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4719/* end confdefs.h. */ 4720int i; 4721int 4722main () 4723{ 4724 4725 ; 4726 return 0; 4727} 4728_ACEOF 4729if ac_fn_c_try_link "$LINENO"; then : 4730 eval $cacheid=yes 4731else 4732 eval $cacheid=no 4733fi 4734rm -f core conftest.err conftest.$ac_objext \ 4735 conftest$ac_exeext conftest.$ac_ext 4736fi 4737 4738 4739 CFLAGS="$xorg_testset_save_CFLAGS" 4740 4741 eval supported=\$$cacheid 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4743$as_echo "$supported" >&6; } 4744 if test "$supported" = "yes" ; then 4745 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4746 found="yes" 4747 fi 4748 fi 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764xorg_testset_save_CFLAGS="$CFLAGS" 4765 4766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4771 $as_echo_n "(cached) " >&6 4772else 4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4774/* end confdefs.h. */ 4775int i; 4776_ACEOF 4777if ac_fn_c_try_compile "$LINENO"; then : 4778 xorg_cv_cc_flag_unknown_warning_option=yes 4779else 4780 xorg_cv_cc_flag_unknown_warning_option=no 4781fi 4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4783fi 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4787 CFLAGS="$xorg_testset_save_CFLAGS" 4788fi 4789 4790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4793 fi 4794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4798 $as_echo_n "(cached) " >&6 4799else 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802int i; 4803_ACEOF 4804if ac_fn_c_try_compile "$LINENO"; then : 4805 xorg_cv_cc_flag_unused_command_line_argument=yes 4806else 4807 xorg_cv_cc_flag_unused_command_line_argument=no 4808fi 4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4810fi 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4814 CFLAGS="$xorg_testset_save_CFLAGS" 4815fi 4816 4817found="no" 4818 4819 if test $found = "no" ; then 4820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4822 fi 4823 4824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4826 fi 4827 4828 CFLAGS="$CFLAGS -Wpointer-arith" 4829 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4831$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4832 cacheid=xorg_cv_cc_flag__Wpointer_arith 4833 if eval \${$cacheid+:} false; then : 4834 $as_echo_n "(cached) " >&6 4835else 4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4837/* end confdefs.h. */ 4838int i; 4839int 4840main () 4841{ 4842 4843 ; 4844 return 0; 4845} 4846_ACEOF 4847if ac_fn_c_try_link "$LINENO"; then : 4848 eval $cacheid=yes 4849else 4850 eval $cacheid=no 4851fi 4852rm -f core conftest.err conftest.$ac_objext \ 4853 conftest$ac_exeext conftest.$ac_ext 4854fi 4855 4856 4857 CFLAGS="$xorg_testset_save_CFLAGS" 4858 4859 eval supported=\$$cacheid 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4861$as_echo "$supported" >&6; } 4862 if test "$supported" = "yes" ; then 4863 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4864 found="yes" 4865 fi 4866 fi 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882xorg_testset_save_CFLAGS="$CFLAGS" 4883 4884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4889 $as_echo_n "(cached) " >&6 4890else 4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4892/* end confdefs.h. */ 4893int i; 4894_ACEOF 4895if ac_fn_c_try_compile "$LINENO"; then : 4896 xorg_cv_cc_flag_unknown_warning_option=yes 4897else 4898 xorg_cv_cc_flag_unknown_warning_option=no 4899fi 4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4901fi 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4905 CFLAGS="$xorg_testset_save_CFLAGS" 4906fi 4907 4908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4911 fi 4912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4916 $as_echo_n "(cached) " >&6 4917else 4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919/* end confdefs.h. */ 4920int i; 4921_ACEOF 4922if ac_fn_c_try_compile "$LINENO"; then : 4923 xorg_cv_cc_flag_unused_command_line_argument=yes 4924else 4925 xorg_cv_cc_flag_unused_command_line_argument=no 4926fi 4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4928fi 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4932 CFLAGS="$xorg_testset_save_CFLAGS" 4933fi 4934 4935found="no" 4936 4937 if test $found = "no" ; then 4938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4940 fi 4941 4942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4944 fi 4945 4946 CFLAGS="$CFLAGS -Wmissing-declarations" 4947 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4949$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4950 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4951 if eval \${$cacheid+:} false; then : 4952 $as_echo_n "(cached) " >&6 4953else 4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4955/* end confdefs.h. */ 4956int i; 4957int 4958main () 4959{ 4960 4961 ; 4962 return 0; 4963} 4964_ACEOF 4965if ac_fn_c_try_link "$LINENO"; then : 4966 eval $cacheid=yes 4967else 4968 eval $cacheid=no 4969fi 4970rm -f core conftest.err conftest.$ac_objext \ 4971 conftest$ac_exeext conftest.$ac_ext 4972fi 4973 4974 4975 CFLAGS="$xorg_testset_save_CFLAGS" 4976 4977 eval supported=\$$cacheid 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4979$as_echo "$supported" >&6; } 4980 if test "$supported" = "yes" ; then 4981 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4982 found="yes" 4983 fi 4984 fi 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000xorg_testset_save_CFLAGS="$CFLAGS" 5001 5002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5007 $as_echo_n "(cached) " >&6 5008else 5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5010/* end confdefs.h. */ 5011int i; 5012_ACEOF 5013if ac_fn_c_try_compile "$LINENO"; then : 5014 xorg_cv_cc_flag_unknown_warning_option=yes 5015else 5016 xorg_cv_cc_flag_unknown_warning_option=no 5017fi 5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5019fi 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5023 CFLAGS="$xorg_testset_save_CFLAGS" 5024fi 5025 5026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5029 fi 5030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5034 $as_echo_n "(cached) " >&6 5035else 5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5037/* end confdefs.h. */ 5038int i; 5039_ACEOF 5040if ac_fn_c_try_compile "$LINENO"; then : 5041 xorg_cv_cc_flag_unused_command_line_argument=yes 5042else 5043 xorg_cv_cc_flag_unused_command_line_argument=no 5044fi 5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5046fi 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5050 CFLAGS="$xorg_testset_save_CFLAGS" 5051fi 5052 5053found="no" 5054 5055 if test $found = "no" ; then 5056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5058 fi 5059 5060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5062 fi 5063 5064 CFLAGS="$CFLAGS -Wformat=2" 5065 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5067$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5068 cacheid=xorg_cv_cc_flag__Wformat_2 5069 if eval \${$cacheid+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071else 5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5073/* end confdefs.h. */ 5074int i; 5075int 5076main () 5077{ 5078 5079 ; 5080 return 0; 5081} 5082_ACEOF 5083if ac_fn_c_try_link "$LINENO"; then : 5084 eval $cacheid=yes 5085else 5086 eval $cacheid=no 5087fi 5088rm -f core conftest.err conftest.$ac_objext \ 5089 conftest$ac_exeext conftest.$ac_ext 5090fi 5091 5092 5093 CFLAGS="$xorg_testset_save_CFLAGS" 5094 5095 eval supported=\$$cacheid 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5097$as_echo "$supported" >&6; } 5098 if test "$supported" = "yes" ; then 5099 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5100 found="yes" 5101 fi 5102 fi 5103 5104 if test $found = "no" ; then 5105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5107 fi 5108 5109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5111 fi 5112 5113 CFLAGS="$CFLAGS -Wformat" 5114 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5116$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5117 cacheid=xorg_cv_cc_flag__Wformat 5118 if eval \${$cacheid+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5122/* end confdefs.h. */ 5123int i; 5124int 5125main () 5126{ 5127 5128 ; 5129 return 0; 5130} 5131_ACEOF 5132if ac_fn_c_try_link "$LINENO"; then : 5133 eval $cacheid=yes 5134else 5135 eval $cacheid=no 5136fi 5137rm -f core conftest.err conftest.$ac_objext \ 5138 conftest$ac_exeext conftest.$ac_ext 5139fi 5140 5141 5142 CFLAGS="$xorg_testset_save_CFLAGS" 5143 5144 eval supported=\$$cacheid 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5146$as_echo "$supported" >&6; } 5147 if test "$supported" = "yes" ; then 5148 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5149 found="yes" 5150 fi 5151 fi 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169xorg_testset_save_CFLAGS="$CFLAGS" 5170 5171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5176 $as_echo_n "(cached) " >&6 5177else 5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5179/* end confdefs.h. */ 5180int i; 5181_ACEOF 5182if ac_fn_c_try_compile "$LINENO"; then : 5183 xorg_cv_cc_flag_unknown_warning_option=yes 5184else 5185 xorg_cv_cc_flag_unknown_warning_option=no 5186fi 5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5188fi 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5192 CFLAGS="$xorg_testset_save_CFLAGS" 5193fi 5194 5195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5198 fi 5199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204else 5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5206/* end confdefs.h. */ 5207int i; 5208_ACEOF 5209if ac_fn_c_try_compile "$LINENO"; then : 5210 xorg_cv_cc_flag_unused_command_line_argument=yes 5211else 5212 xorg_cv_cc_flag_unused_command_line_argument=no 5213fi 5214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5215fi 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5219 CFLAGS="$xorg_testset_save_CFLAGS" 5220fi 5221 5222found="no" 5223 5224 if test $found = "no" ; then 5225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5227 fi 5228 5229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5231 fi 5232 5233 CFLAGS="$CFLAGS -Wstrict-prototypes" 5234 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5236$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5237 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5238 if eval \${$cacheid+:} false; then : 5239 $as_echo_n "(cached) " >&6 5240else 5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5242/* end confdefs.h. */ 5243int i; 5244int 5245main () 5246{ 5247 5248 ; 5249 return 0; 5250} 5251_ACEOF 5252if ac_fn_c_try_link "$LINENO"; then : 5253 eval $cacheid=yes 5254else 5255 eval $cacheid=no 5256fi 5257rm -f core conftest.err conftest.$ac_objext \ 5258 conftest$ac_exeext conftest.$ac_ext 5259fi 5260 5261 5262 CFLAGS="$xorg_testset_save_CFLAGS" 5263 5264 eval supported=\$$cacheid 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5266$as_echo "$supported" >&6; } 5267 if test "$supported" = "yes" ; then 5268 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5269 found="yes" 5270 fi 5271 fi 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287xorg_testset_save_CFLAGS="$CFLAGS" 5288 5289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5294 $as_echo_n "(cached) " >&6 5295else 5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5297/* end confdefs.h. */ 5298int i; 5299_ACEOF 5300if ac_fn_c_try_compile "$LINENO"; then : 5301 xorg_cv_cc_flag_unknown_warning_option=yes 5302else 5303 xorg_cv_cc_flag_unknown_warning_option=no 5304fi 5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5306fi 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5310 CFLAGS="$xorg_testset_save_CFLAGS" 5311fi 5312 5313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5316 fi 5317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322else 5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5324/* end confdefs.h. */ 5325int i; 5326_ACEOF 5327if ac_fn_c_try_compile "$LINENO"; then : 5328 xorg_cv_cc_flag_unused_command_line_argument=yes 5329else 5330 xorg_cv_cc_flag_unused_command_line_argument=no 5331fi 5332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5333fi 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5337 CFLAGS="$xorg_testset_save_CFLAGS" 5338fi 5339 5340found="no" 5341 5342 if test $found = "no" ; then 5343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5345 fi 5346 5347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5349 fi 5350 5351 CFLAGS="$CFLAGS -Wmissing-prototypes" 5352 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5354$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5355 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5356 if eval \${$cacheid+:} false; then : 5357 $as_echo_n "(cached) " >&6 5358else 5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5360/* end confdefs.h. */ 5361int i; 5362int 5363main () 5364{ 5365 5366 ; 5367 return 0; 5368} 5369_ACEOF 5370if ac_fn_c_try_link "$LINENO"; then : 5371 eval $cacheid=yes 5372else 5373 eval $cacheid=no 5374fi 5375rm -f core conftest.err conftest.$ac_objext \ 5376 conftest$ac_exeext conftest.$ac_ext 5377fi 5378 5379 5380 CFLAGS="$xorg_testset_save_CFLAGS" 5381 5382 eval supported=\$$cacheid 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5384$as_echo "$supported" >&6; } 5385 if test "$supported" = "yes" ; then 5386 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5387 found="yes" 5388 fi 5389 fi 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405xorg_testset_save_CFLAGS="$CFLAGS" 5406 5407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5412 $as_echo_n "(cached) " >&6 5413else 5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5415/* end confdefs.h. */ 5416int i; 5417_ACEOF 5418if ac_fn_c_try_compile "$LINENO"; then : 5419 xorg_cv_cc_flag_unknown_warning_option=yes 5420else 5421 xorg_cv_cc_flag_unknown_warning_option=no 5422fi 5423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5424fi 5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5428 CFLAGS="$xorg_testset_save_CFLAGS" 5429fi 5430 5431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5434 fi 5435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5439 $as_echo_n "(cached) " >&6 5440else 5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5442/* end confdefs.h. */ 5443int i; 5444_ACEOF 5445if ac_fn_c_try_compile "$LINENO"; then : 5446 xorg_cv_cc_flag_unused_command_line_argument=yes 5447else 5448 xorg_cv_cc_flag_unused_command_line_argument=no 5449fi 5450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5451fi 5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5455 CFLAGS="$xorg_testset_save_CFLAGS" 5456fi 5457 5458found="no" 5459 5460 if test $found = "no" ; then 5461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5463 fi 5464 5465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5467 fi 5468 5469 CFLAGS="$CFLAGS -Wnested-externs" 5470 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5472$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5473 cacheid=xorg_cv_cc_flag__Wnested_externs 5474 if eval \${$cacheid+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476else 5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5478/* end confdefs.h. */ 5479int i; 5480int 5481main () 5482{ 5483 5484 ; 5485 return 0; 5486} 5487_ACEOF 5488if ac_fn_c_try_link "$LINENO"; then : 5489 eval $cacheid=yes 5490else 5491 eval $cacheid=no 5492fi 5493rm -f core conftest.err conftest.$ac_objext \ 5494 conftest$ac_exeext conftest.$ac_ext 5495fi 5496 5497 5498 CFLAGS="$xorg_testset_save_CFLAGS" 5499 5500 eval supported=\$$cacheid 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5502$as_echo "$supported" >&6; } 5503 if test "$supported" = "yes" ; then 5504 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5505 found="yes" 5506 fi 5507 fi 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523xorg_testset_save_CFLAGS="$CFLAGS" 5524 5525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5533/* end confdefs.h. */ 5534int i; 5535_ACEOF 5536if ac_fn_c_try_compile "$LINENO"; then : 5537 xorg_cv_cc_flag_unknown_warning_option=yes 5538else 5539 xorg_cv_cc_flag_unknown_warning_option=no 5540fi 5541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5542fi 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5546 CFLAGS="$xorg_testset_save_CFLAGS" 5547fi 5548 5549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5552 fi 5553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5560/* end confdefs.h. */ 5561int i; 5562_ACEOF 5563if ac_fn_c_try_compile "$LINENO"; then : 5564 xorg_cv_cc_flag_unused_command_line_argument=yes 5565else 5566 xorg_cv_cc_flag_unused_command_line_argument=no 5567fi 5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5569fi 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5573 CFLAGS="$xorg_testset_save_CFLAGS" 5574fi 5575 5576found="no" 5577 5578 if test $found = "no" ; then 5579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5581 fi 5582 5583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5585 fi 5586 5587 CFLAGS="$CFLAGS -Wbad-function-cast" 5588 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5590$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5591 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5592 if eval \${$cacheid+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594else 5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5596/* end confdefs.h. */ 5597int i; 5598int 5599main () 5600{ 5601 5602 ; 5603 return 0; 5604} 5605_ACEOF 5606if ac_fn_c_try_link "$LINENO"; then : 5607 eval $cacheid=yes 5608else 5609 eval $cacheid=no 5610fi 5611rm -f core conftest.err conftest.$ac_objext \ 5612 conftest$ac_exeext conftest.$ac_ext 5613fi 5614 5615 5616 CFLAGS="$xorg_testset_save_CFLAGS" 5617 5618 eval supported=\$$cacheid 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5620$as_echo "$supported" >&6; } 5621 if test "$supported" = "yes" ; then 5622 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5623 found="yes" 5624 fi 5625 fi 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641xorg_testset_save_CFLAGS="$CFLAGS" 5642 5643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5651/* end confdefs.h. */ 5652int i; 5653_ACEOF 5654if ac_fn_c_try_compile "$LINENO"; then : 5655 xorg_cv_cc_flag_unknown_warning_option=yes 5656else 5657 xorg_cv_cc_flag_unknown_warning_option=no 5658fi 5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5660fi 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5664 CFLAGS="$xorg_testset_save_CFLAGS" 5665fi 5666 5667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5670 fi 5671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5675 $as_echo_n "(cached) " >&6 5676else 5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5678/* end confdefs.h. */ 5679int i; 5680_ACEOF 5681if ac_fn_c_try_compile "$LINENO"; then : 5682 xorg_cv_cc_flag_unused_command_line_argument=yes 5683else 5684 xorg_cv_cc_flag_unused_command_line_argument=no 5685fi 5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5687fi 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5691 CFLAGS="$xorg_testset_save_CFLAGS" 5692fi 5693 5694found="no" 5695 5696 if test $found = "no" ; then 5697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5699 fi 5700 5701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5703 fi 5704 5705 CFLAGS="$CFLAGS -Wold-style-definition" 5706 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5708$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5709 cacheid=xorg_cv_cc_flag__Wold_style_definition 5710 if eval \${$cacheid+:} false; then : 5711 $as_echo_n "(cached) " >&6 5712else 5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714/* end confdefs.h. */ 5715int i; 5716int 5717main () 5718{ 5719 5720 ; 5721 return 0; 5722} 5723_ACEOF 5724if ac_fn_c_try_link "$LINENO"; then : 5725 eval $cacheid=yes 5726else 5727 eval $cacheid=no 5728fi 5729rm -f core conftest.err conftest.$ac_objext \ 5730 conftest$ac_exeext conftest.$ac_ext 5731fi 5732 5733 5734 CFLAGS="$xorg_testset_save_CFLAGS" 5735 5736 eval supported=\$$cacheid 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5738$as_echo "$supported" >&6; } 5739 if test "$supported" = "yes" ; then 5740 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5741 found="yes" 5742 fi 5743 fi 5744 5745 if test $found = "no" ; then 5746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5748 fi 5749 5750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5752 fi 5753 5754 CFLAGS="$CFLAGS -fd" 5755 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5757$as_echo_n "checking if $CC supports -fd... " >&6; } 5758 cacheid=xorg_cv_cc_flag__fd 5759 if eval \${$cacheid+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5763/* end confdefs.h. */ 5764int i; 5765int 5766main () 5767{ 5768 5769 ; 5770 return 0; 5771} 5772_ACEOF 5773if ac_fn_c_try_link "$LINENO"; then : 5774 eval $cacheid=yes 5775else 5776 eval $cacheid=no 5777fi 5778rm -f core conftest.err conftest.$ac_objext \ 5779 conftest$ac_exeext conftest.$ac_ext 5780fi 5781 5782 5783 CFLAGS="$xorg_testset_save_CFLAGS" 5784 5785 eval supported=\$$cacheid 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5787$as_echo "$supported" >&6; } 5788 if test "$supported" = "yes" ; then 5789 BASE_CFLAGS="$BASE_CFLAGS -fd" 5790 found="yes" 5791 fi 5792 fi 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808xorg_testset_save_CFLAGS="$CFLAGS" 5809 5810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5815 $as_echo_n "(cached) " >&6 5816else 5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819int i; 5820_ACEOF 5821if ac_fn_c_try_compile "$LINENO"; then : 5822 xorg_cv_cc_flag_unknown_warning_option=yes 5823else 5824 xorg_cv_cc_flag_unknown_warning_option=no 5825fi 5826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5827fi 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5831 CFLAGS="$xorg_testset_save_CFLAGS" 5832fi 5833 5834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5837 fi 5838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5845/* end confdefs.h. */ 5846int i; 5847_ACEOF 5848if ac_fn_c_try_compile "$LINENO"; then : 5849 xorg_cv_cc_flag_unused_command_line_argument=yes 5850else 5851 xorg_cv_cc_flag_unused_command_line_argument=no 5852fi 5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5854fi 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5858 CFLAGS="$xorg_testset_save_CFLAGS" 5859fi 5860 5861found="no" 5862 5863 if test $found = "no" ; then 5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5866 fi 5867 5868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5870 fi 5871 5872 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5873 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5875$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5876 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5877 if eval \${$cacheid+:} false; then : 5878 $as_echo_n "(cached) " >&6 5879else 5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5881/* end confdefs.h. */ 5882int i; 5883int 5884main () 5885{ 5886 5887 ; 5888 return 0; 5889} 5890_ACEOF 5891if ac_fn_c_try_link "$LINENO"; then : 5892 eval $cacheid=yes 5893else 5894 eval $cacheid=no 5895fi 5896rm -f core conftest.err conftest.$ac_objext \ 5897 conftest$ac_exeext conftest.$ac_ext 5898fi 5899 5900 5901 CFLAGS="$xorg_testset_save_CFLAGS" 5902 5903 eval supported=\$$cacheid 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5905$as_echo "$supported" >&6; } 5906 if test "$supported" = "yes" ; then 5907 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5908 found="yes" 5909 fi 5910 fi 5911 5912 5913 5914 5915 5916# This chunk adds additional warnings that could catch undesired effects. 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930xorg_testset_save_CFLAGS="$CFLAGS" 5931 5932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5935$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5936if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5937 $as_echo_n "(cached) " >&6 5938else 5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5940/* end confdefs.h. */ 5941int i; 5942_ACEOF 5943if ac_fn_c_try_compile "$LINENO"; then : 5944 xorg_cv_cc_flag_unknown_warning_option=yes 5945else 5946 xorg_cv_cc_flag_unknown_warning_option=no 5947fi 5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5949fi 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5951$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5953 CFLAGS="$xorg_testset_save_CFLAGS" 5954fi 5955 5956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959 fi 5960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5962$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5963if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 5972else 5973 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5978$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5980 CFLAGS="$xorg_testset_save_CFLAGS" 5981fi 5982 5983found="no" 5984 5985 if test $found = "no" ; then 5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988 fi 5989 5990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5992 fi 5993 5994 CFLAGS="$CFLAGS -Wunused" 5995 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5997$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5998 cacheid=xorg_cv_cc_flag__Wunused 5999 if eval \${$cacheid+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6003/* end confdefs.h. */ 6004int i; 6005int 6006main () 6007{ 6008 6009 ; 6010 return 0; 6011} 6012_ACEOF 6013if ac_fn_c_try_link "$LINENO"; then : 6014 eval $cacheid=yes 6015else 6016 eval $cacheid=no 6017fi 6018rm -f core conftest.err conftest.$ac_objext \ 6019 conftest$ac_exeext conftest.$ac_ext 6020fi 6021 6022 6023 CFLAGS="$xorg_testset_save_CFLAGS" 6024 6025 eval supported=\$$cacheid 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6027$as_echo "$supported" >&6; } 6028 if test "$supported" = "yes" ; then 6029 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6030 found="yes" 6031 fi 6032 fi 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048xorg_testset_save_CFLAGS="$CFLAGS" 6049 6050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6055 $as_echo_n "(cached) " >&6 6056else 6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6058/* end confdefs.h. */ 6059int i; 6060_ACEOF 6061if ac_fn_c_try_compile "$LINENO"; then : 6062 xorg_cv_cc_flag_unknown_warning_option=yes 6063else 6064 xorg_cv_cc_flag_unknown_warning_option=no 6065fi 6066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6067fi 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6071 CFLAGS="$xorg_testset_save_CFLAGS" 6072fi 6073 6074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6077 fi 6078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6081if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 6090else 6091 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6098 CFLAGS="$xorg_testset_save_CFLAGS" 6099fi 6100 6101found="no" 6102 6103 if test $found = "no" ; then 6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6106 fi 6107 6108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6110 fi 6111 6112 CFLAGS="$CFLAGS -Wuninitialized" 6113 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6115$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6116 cacheid=xorg_cv_cc_flag__Wuninitialized 6117 if eval \${$cacheid+:} false; then : 6118 $as_echo_n "(cached) " >&6 6119else 6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121/* end confdefs.h. */ 6122int i; 6123int 6124main () 6125{ 6126 6127 ; 6128 return 0; 6129} 6130_ACEOF 6131if ac_fn_c_try_link "$LINENO"; then : 6132 eval $cacheid=yes 6133else 6134 eval $cacheid=no 6135fi 6136rm -f core conftest.err conftest.$ac_objext \ 6137 conftest$ac_exeext conftest.$ac_ext 6138fi 6139 6140 6141 CFLAGS="$xorg_testset_save_CFLAGS" 6142 6143 eval supported=\$$cacheid 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6145$as_echo "$supported" >&6; } 6146 if test "$supported" = "yes" ; then 6147 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6148 found="yes" 6149 fi 6150 fi 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166xorg_testset_save_CFLAGS="$CFLAGS" 6167 6168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6173 $as_echo_n "(cached) " >&6 6174else 6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6176/* end confdefs.h. */ 6177int i; 6178_ACEOF 6179if ac_fn_c_try_compile "$LINENO"; then : 6180 xorg_cv_cc_flag_unknown_warning_option=yes 6181else 6182 xorg_cv_cc_flag_unknown_warning_option=no 6183fi 6184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6185fi 6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6189 CFLAGS="$xorg_testset_save_CFLAGS" 6190fi 6191 6192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6195 fi 6196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6199if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 6208else 6209 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6216 CFLAGS="$xorg_testset_save_CFLAGS" 6217fi 6218 6219found="no" 6220 6221 if test $found = "no" ; then 6222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6224 fi 6225 6226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6228 fi 6229 6230 CFLAGS="$CFLAGS -Wshadow" 6231 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6233$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6234 cacheid=xorg_cv_cc_flag__Wshadow 6235 if eval \${$cacheid+:} false; then : 6236 $as_echo_n "(cached) " >&6 6237else 6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6239/* end confdefs.h. */ 6240int i; 6241int 6242main () 6243{ 6244 6245 ; 6246 return 0; 6247} 6248_ACEOF 6249if ac_fn_c_try_link "$LINENO"; then : 6250 eval $cacheid=yes 6251else 6252 eval $cacheid=no 6253fi 6254rm -f core conftest.err conftest.$ac_objext \ 6255 conftest$ac_exeext conftest.$ac_ext 6256fi 6257 6258 6259 CFLAGS="$xorg_testset_save_CFLAGS" 6260 6261 eval supported=\$$cacheid 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6263$as_echo "$supported" >&6; } 6264 if test "$supported" = "yes" ; then 6265 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6266 found="yes" 6267 fi 6268 fi 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284xorg_testset_save_CFLAGS="$CFLAGS" 6285 6286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6294/* end confdefs.h. */ 6295int i; 6296_ACEOF 6297if ac_fn_c_try_compile "$LINENO"; then : 6298 xorg_cv_cc_flag_unknown_warning_option=yes 6299else 6300 xorg_cv_cc_flag_unknown_warning_option=no 6301fi 6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6303fi 6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6307 CFLAGS="$xorg_testset_save_CFLAGS" 6308fi 6309 6310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6313 fi 6314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6317if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 6326else 6327 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6334 CFLAGS="$xorg_testset_save_CFLAGS" 6335fi 6336 6337found="no" 6338 6339 if test $found = "no" ; then 6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 fi 6343 6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6346 fi 6347 6348 CFLAGS="$CFLAGS -Wmissing-noreturn" 6349 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6351$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6352 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6353 if eval \${$cacheid+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355else 6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6357/* end confdefs.h. */ 6358int i; 6359int 6360main () 6361{ 6362 6363 ; 6364 return 0; 6365} 6366_ACEOF 6367if ac_fn_c_try_link "$LINENO"; then : 6368 eval $cacheid=yes 6369else 6370 eval $cacheid=no 6371fi 6372rm -f core conftest.err conftest.$ac_objext \ 6373 conftest$ac_exeext conftest.$ac_ext 6374fi 6375 6376 6377 CFLAGS="$xorg_testset_save_CFLAGS" 6378 6379 eval supported=\$$cacheid 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6381$as_echo "$supported" >&6; } 6382 if test "$supported" = "yes" ; then 6383 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6384 found="yes" 6385 fi 6386 fi 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402xorg_testset_save_CFLAGS="$CFLAGS" 6403 6404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6412/* end confdefs.h. */ 6413int i; 6414_ACEOF 6415if ac_fn_c_try_compile "$LINENO"; then : 6416 xorg_cv_cc_flag_unknown_warning_option=yes 6417else 6418 xorg_cv_cc_flag_unknown_warning_option=no 6419fi 6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6421fi 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6425 CFLAGS="$xorg_testset_save_CFLAGS" 6426fi 6427 6428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6431 fi 6432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6435if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 6444else 6445 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6452 CFLAGS="$xorg_testset_save_CFLAGS" 6453fi 6454 6455found="no" 6456 6457 if test $found = "no" ; then 6458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6460 fi 6461 6462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6464 fi 6465 6466 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6467 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6469$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6470 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6471 if eval \${$cacheid+:} false; then : 6472 $as_echo_n "(cached) " >&6 6473else 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475/* end confdefs.h. */ 6476int i; 6477int 6478main () 6479{ 6480 6481 ; 6482 return 0; 6483} 6484_ACEOF 6485if ac_fn_c_try_link "$LINENO"; then : 6486 eval $cacheid=yes 6487else 6488 eval $cacheid=no 6489fi 6490rm -f core conftest.err conftest.$ac_objext \ 6491 conftest$ac_exeext conftest.$ac_ext 6492fi 6493 6494 6495 CFLAGS="$xorg_testset_save_CFLAGS" 6496 6497 eval supported=\$$cacheid 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6499$as_echo "$supported" >&6; } 6500 if test "$supported" = "yes" ; then 6501 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6502 found="yes" 6503 fi 6504 fi 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520xorg_testset_save_CFLAGS="$CFLAGS" 6521 6522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6530/* end confdefs.h. */ 6531int i; 6532_ACEOF 6533if ac_fn_c_try_compile "$LINENO"; then : 6534 xorg_cv_cc_flag_unknown_warning_option=yes 6535else 6536 xorg_cv_cc_flag_unknown_warning_option=no 6537fi 6538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6539fi 6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6543 CFLAGS="$xorg_testset_save_CFLAGS" 6544fi 6545 6546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6549 fi 6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6557/* end confdefs.h. */ 6558int i; 6559_ACEOF 6560if ac_fn_c_try_compile "$LINENO"; then : 6561 xorg_cv_cc_flag_unused_command_line_argument=yes 6562else 6563 xorg_cv_cc_flag_unused_command_line_argument=no 6564fi 6565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6566fi 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6570 CFLAGS="$xorg_testset_save_CFLAGS" 6571fi 6572 6573found="no" 6574 6575 if test $found = "no" ; then 6576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6578 fi 6579 6580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6582 fi 6583 6584 CFLAGS="$CFLAGS -Wredundant-decls" 6585 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6587$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6588 cacheid=xorg_cv_cc_flag__Wredundant_decls 6589 if eval \${$cacheid+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591else 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593/* end confdefs.h. */ 6594int i; 6595int 6596main () 6597{ 6598 6599 ; 6600 return 0; 6601} 6602_ACEOF 6603if ac_fn_c_try_link "$LINENO"; then : 6604 eval $cacheid=yes 6605else 6606 eval $cacheid=no 6607fi 6608rm -f core conftest.err conftest.$ac_objext \ 6609 conftest$ac_exeext conftest.$ac_ext 6610fi 6611 6612 6613 CFLAGS="$xorg_testset_save_CFLAGS" 6614 6615 eval supported=\$$cacheid 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6617$as_echo "$supported" >&6; } 6618 if test "$supported" = "yes" ; then 6619 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6620 found="yes" 6621 fi 6622 fi 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638xorg_testset_save_CFLAGS="$CFLAGS" 6639 6640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6648/* end confdefs.h. */ 6649int i; 6650_ACEOF 6651if ac_fn_c_try_compile "$LINENO"; then : 6652 xorg_cv_cc_flag_unknown_warning_option=yes 6653else 6654 xorg_cv_cc_flag_unknown_warning_option=no 6655fi 6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6657fi 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6661 CFLAGS="$xorg_testset_save_CFLAGS" 6662fi 6663 6664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6667 fi 6668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6672 $as_echo_n "(cached) " >&6 6673else 6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6675/* end confdefs.h. */ 6676int i; 6677_ACEOF 6678if ac_fn_c_try_compile "$LINENO"; then : 6679 xorg_cv_cc_flag_unused_command_line_argument=yes 6680else 6681 xorg_cv_cc_flag_unused_command_line_argument=no 6682fi 6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6684fi 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6688 CFLAGS="$xorg_testset_save_CFLAGS" 6689fi 6690 6691found="no" 6692 6693 if test $found = "no" ; then 6694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6696 fi 6697 6698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6700 fi 6701 6702 CFLAGS="$CFLAGS -Wlogical-op" 6703 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6705$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6706 cacheid=xorg_cv_cc_flag__Wlogical_op 6707 if eval \${$cacheid+:} false; then : 6708 $as_echo_n "(cached) " >&6 6709else 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711/* end confdefs.h. */ 6712int i; 6713int 6714main () 6715{ 6716 6717 ; 6718 return 0; 6719} 6720_ACEOF 6721if ac_fn_c_try_link "$LINENO"; then : 6722 eval $cacheid=yes 6723else 6724 eval $cacheid=no 6725fi 6726rm -f core conftest.err conftest.$ac_objext \ 6727 conftest$ac_exeext conftest.$ac_ext 6728fi 6729 6730 6731 CFLAGS="$xorg_testset_save_CFLAGS" 6732 6733 eval supported=\$$cacheid 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6735$as_echo "$supported" >&6; } 6736 if test "$supported" = "yes" ; then 6737 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6738 found="yes" 6739 fi 6740 fi 6741 6742 6743 6744# These are currently disabled because they are noisy. They will be enabled 6745# in the future once the codebase is sufficiently modernized to silence 6746# them. For now, I don't want them to drown out the other warnings. 6747# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6748# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6749# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6750 6751# Turn some warnings into errors, so we don't accidently get successful builds 6752# when there are problems that should be fixed. 6753 6754if test "x$SELECTIVE_WERROR" = "xyes" ; then 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768xorg_testset_save_CFLAGS="$CFLAGS" 6769 6770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6778/* end confdefs.h. */ 6779int i; 6780_ACEOF 6781if ac_fn_c_try_compile "$LINENO"; then : 6782 xorg_cv_cc_flag_unknown_warning_option=yes 6783else 6784 xorg_cv_cc_flag_unknown_warning_option=no 6785fi 6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6787fi 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6791 CFLAGS="$xorg_testset_save_CFLAGS" 6792fi 6793 6794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 fi 6798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6802 $as_echo_n "(cached) " >&6 6803else 6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6805/* end confdefs.h. */ 6806int i; 6807_ACEOF 6808if ac_fn_c_try_compile "$LINENO"; then : 6809 xorg_cv_cc_flag_unused_command_line_argument=yes 6810else 6811 xorg_cv_cc_flag_unused_command_line_argument=no 6812fi 6813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6814fi 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6818 CFLAGS="$xorg_testset_save_CFLAGS" 6819fi 6820 6821found="no" 6822 6823 if test $found = "no" ; then 6824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6826 fi 6827 6828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6830 fi 6831 6832 CFLAGS="$CFLAGS -Werror=implicit" 6833 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6835$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6836 cacheid=xorg_cv_cc_flag__Werror_implicit 6837 if eval \${$cacheid+:} false; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6841/* end confdefs.h. */ 6842int i; 6843int 6844main () 6845{ 6846 6847 ; 6848 return 0; 6849} 6850_ACEOF 6851if ac_fn_c_try_link "$LINENO"; then : 6852 eval $cacheid=yes 6853else 6854 eval $cacheid=no 6855fi 6856rm -f core conftest.err conftest.$ac_objext \ 6857 conftest$ac_exeext conftest.$ac_ext 6858fi 6859 6860 6861 CFLAGS="$xorg_testset_save_CFLAGS" 6862 6863 eval supported=\$$cacheid 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6865$as_echo "$supported" >&6; } 6866 if test "$supported" = "yes" ; then 6867 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6868 found="yes" 6869 fi 6870 fi 6871 6872 if test $found = "no" ; then 6873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6875 fi 6876 6877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6879 fi 6880 6881 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6882 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6884$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6885 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6886 if eval \${$cacheid+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890/* end confdefs.h. */ 6891int i; 6892int 6893main () 6894{ 6895 6896 ; 6897 return 0; 6898} 6899_ACEOF 6900if ac_fn_c_try_link "$LINENO"; then : 6901 eval $cacheid=yes 6902else 6903 eval $cacheid=no 6904fi 6905rm -f core conftest.err conftest.$ac_objext \ 6906 conftest$ac_exeext conftest.$ac_ext 6907fi 6908 6909 6910 CFLAGS="$xorg_testset_save_CFLAGS" 6911 6912 eval supported=\$$cacheid 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6914$as_echo "$supported" >&6; } 6915 if test "$supported" = "yes" ; then 6916 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6917 found="yes" 6918 fi 6919 fi 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935xorg_testset_save_CFLAGS="$CFLAGS" 6936 6937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6942 $as_echo_n "(cached) " >&6 6943else 6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6945/* end confdefs.h. */ 6946int i; 6947_ACEOF 6948if ac_fn_c_try_compile "$LINENO"; then : 6949 xorg_cv_cc_flag_unknown_warning_option=yes 6950else 6951 xorg_cv_cc_flag_unknown_warning_option=no 6952fi 6953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6954fi 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6958 CFLAGS="$xorg_testset_save_CFLAGS" 6959fi 6960 6961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6964 fi 6965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6968if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 6977else 6978 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986fi 6987 6988found="no" 6989 6990 if test $found = "no" ; then 6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6993 fi 6994 6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6997 fi 6998 6999 CFLAGS="$CFLAGS -Werror=nonnull" 7000 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7002$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7003 cacheid=xorg_cv_cc_flag__Werror_nonnull 7004 if eval \${$cacheid+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7008/* end confdefs.h. */ 7009int i; 7010int 7011main () 7012{ 7013 7014 ; 7015 return 0; 7016} 7017_ACEOF 7018if ac_fn_c_try_link "$LINENO"; then : 7019 eval $cacheid=yes 7020else 7021 eval $cacheid=no 7022fi 7023rm -f core conftest.err conftest.$ac_objext \ 7024 conftest$ac_exeext conftest.$ac_ext 7025fi 7026 7027 7028 CFLAGS="$xorg_testset_save_CFLAGS" 7029 7030 eval supported=\$$cacheid 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7032$as_echo "$supported" >&6; } 7033 if test "$supported" = "yes" ; then 7034 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7035 found="yes" 7036 fi 7037 fi 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053xorg_testset_save_CFLAGS="$CFLAGS" 7054 7055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064int i; 7065_ACEOF 7066if ac_fn_c_try_compile "$LINENO"; then : 7067 xorg_cv_cc_flag_unknown_warning_option=yes 7068else 7069 xorg_cv_cc_flag_unknown_warning_option=no 7070fi 7071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7072fi 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7076 CFLAGS="$xorg_testset_save_CFLAGS" 7077fi 7078 7079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7082 fi 7083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7086if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 7095else 7096 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7103 CFLAGS="$xorg_testset_save_CFLAGS" 7104fi 7105 7106found="no" 7107 7108 if test $found = "no" ; then 7109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7111 fi 7112 7113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7115 fi 7116 7117 CFLAGS="$CFLAGS -Werror=init-self" 7118 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7120$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7121 cacheid=xorg_cv_cc_flag__Werror_init_self 7122 if eval \${$cacheid+:} false; then : 7123 $as_echo_n "(cached) " >&6 7124else 7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7126/* end confdefs.h. */ 7127int i; 7128int 7129main () 7130{ 7131 7132 ; 7133 return 0; 7134} 7135_ACEOF 7136if ac_fn_c_try_link "$LINENO"; then : 7137 eval $cacheid=yes 7138else 7139 eval $cacheid=no 7140fi 7141rm -f core conftest.err conftest.$ac_objext \ 7142 conftest$ac_exeext conftest.$ac_ext 7143fi 7144 7145 7146 CFLAGS="$xorg_testset_save_CFLAGS" 7147 7148 eval supported=\$$cacheid 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7150$as_echo "$supported" >&6; } 7151 if test "$supported" = "yes" ; then 7152 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7153 found="yes" 7154 fi 7155 fi 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171xorg_testset_save_CFLAGS="$CFLAGS" 7172 7173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7178 $as_echo_n "(cached) " >&6 7179else 7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7181/* end confdefs.h. */ 7182int i; 7183_ACEOF 7184if ac_fn_c_try_compile "$LINENO"; then : 7185 xorg_cv_cc_flag_unknown_warning_option=yes 7186else 7187 xorg_cv_cc_flag_unknown_warning_option=no 7188fi 7189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7190fi 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7194 CFLAGS="$xorg_testset_save_CFLAGS" 7195fi 7196 7197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7200 fi 7201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7204if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 7213else 7214 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7221 CFLAGS="$xorg_testset_save_CFLAGS" 7222fi 7223 7224found="no" 7225 7226 if test $found = "no" ; then 7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7229 fi 7230 7231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7233 fi 7234 7235 CFLAGS="$CFLAGS -Werror=main" 7236 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7238$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7239 cacheid=xorg_cv_cc_flag__Werror_main 7240 if eval \${$cacheid+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242else 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244/* end confdefs.h. */ 7245int i; 7246int 7247main () 7248{ 7249 7250 ; 7251 return 0; 7252} 7253_ACEOF 7254if ac_fn_c_try_link "$LINENO"; then : 7255 eval $cacheid=yes 7256else 7257 eval $cacheid=no 7258fi 7259rm -f core conftest.err conftest.$ac_objext \ 7260 conftest$ac_exeext conftest.$ac_ext 7261fi 7262 7263 7264 CFLAGS="$xorg_testset_save_CFLAGS" 7265 7266 eval supported=\$$cacheid 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7268$as_echo "$supported" >&6; } 7269 if test "$supported" = "yes" ; then 7270 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7271 found="yes" 7272 fi 7273 fi 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289xorg_testset_save_CFLAGS="$CFLAGS" 7290 7291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7296 $as_echo_n "(cached) " >&6 7297else 7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7299/* end confdefs.h. */ 7300int i; 7301_ACEOF 7302if ac_fn_c_try_compile "$LINENO"; then : 7303 xorg_cv_cc_flag_unknown_warning_option=yes 7304else 7305 xorg_cv_cc_flag_unknown_warning_option=no 7306fi 7307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7308fi 7309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7312 CFLAGS="$xorg_testset_save_CFLAGS" 7313fi 7314 7315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7318 fi 7319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7322if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 7331else 7332 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7339 CFLAGS="$xorg_testset_save_CFLAGS" 7340fi 7341 7342found="no" 7343 7344 if test $found = "no" ; then 7345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7347 fi 7348 7349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7351 fi 7352 7353 CFLAGS="$CFLAGS -Werror=missing-braces" 7354 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7356$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7357 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7358 if eval \${$cacheid+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362/* end confdefs.h. */ 7363int i; 7364int 7365main () 7366{ 7367 7368 ; 7369 return 0; 7370} 7371_ACEOF 7372if ac_fn_c_try_link "$LINENO"; then : 7373 eval $cacheid=yes 7374else 7375 eval $cacheid=no 7376fi 7377rm -f core conftest.err conftest.$ac_objext \ 7378 conftest$ac_exeext conftest.$ac_ext 7379fi 7380 7381 7382 CFLAGS="$xorg_testset_save_CFLAGS" 7383 7384 eval supported=\$$cacheid 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7386$as_echo "$supported" >&6; } 7387 if test "$supported" = "yes" ; then 7388 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7389 found="yes" 7390 fi 7391 fi 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407xorg_testset_save_CFLAGS="$CFLAGS" 7408 7409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417/* end confdefs.h. */ 7418int i; 7419_ACEOF 7420if ac_fn_c_try_compile "$LINENO"; then : 7421 xorg_cv_cc_flag_unknown_warning_option=yes 7422else 7423 xorg_cv_cc_flag_unknown_warning_option=no 7424fi 7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7426fi 7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7430 CFLAGS="$xorg_testset_save_CFLAGS" 7431fi 7432 7433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 fi 7437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7441 $as_echo_n "(cached) " >&6 7442else 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444/* end confdefs.h. */ 7445int i; 7446_ACEOF 7447if ac_fn_c_try_compile "$LINENO"; then : 7448 xorg_cv_cc_flag_unused_command_line_argument=yes 7449else 7450 xorg_cv_cc_flag_unused_command_line_argument=no 7451fi 7452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7453fi 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7457 CFLAGS="$xorg_testset_save_CFLAGS" 7458fi 7459 7460found="no" 7461 7462 if test $found = "no" ; then 7463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7465 fi 7466 7467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7469 fi 7470 7471 CFLAGS="$CFLAGS -Werror=sequence-point" 7472 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7474$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7475 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7476 if eval \${$cacheid+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480/* end confdefs.h. */ 7481int i; 7482int 7483main () 7484{ 7485 7486 ; 7487 return 0; 7488} 7489_ACEOF 7490if ac_fn_c_try_link "$LINENO"; then : 7491 eval $cacheid=yes 7492else 7493 eval $cacheid=no 7494fi 7495rm -f core conftest.err conftest.$ac_objext \ 7496 conftest$ac_exeext conftest.$ac_ext 7497fi 7498 7499 7500 CFLAGS="$xorg_testset_save_CFLAGS" 7501 7502 eval supported=\$$cacheid 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7504$as_echo "$supported" >&6; } 7505 if test "$supported" = "yes" ; then 7506 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7507 found="yes" 7508 fi 7509 fi 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525xorg_testset_save_CFLAGS="$CFLAGS" 7526 7527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7532 $as_echo_n "(cached) " >&6 7533else 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535/* end confdefs.h. */ 7536int i; 7537_ACEOF 7538if ac_fn_c_try_compile "$LINENO"; then : 7539 xorg_cv_cc_flag_unknown_warning_option=yes 7540else 7541 xorg_cv_cc_flag_unknown_warning_option=no 7542fi 7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7544fi 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7548 CFLAGS="$xorg_testset_save_CFLAGS" 7549fi 7550 7551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7554 fi 7555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7562/* end confdefs.h. */ 7563int i; 7564_ACEOF 7565if ac_fn_c_try_compile "$LINENO"; then : 7566 xorg_cv_cc_flag_unused_command_line_argument=yes 7567else 7568 xorg_cv_cc_flag_unused_command_line_argument=no 7569fi 7570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7571fi 7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7575 CFLAGS="$xorg_testset_save_CFLAGS" 7576fi 7577 7578found="no" 7579 7580 if test $found = "no" ; then 7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7583 fi 7584 7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7587 fi 7588 7589 CFLAGS="$CFLAGS -Werror=return-type" 7590 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7592$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7593 cacheid=xorg_cv_cc_flag__Werror_return_type 7594 if eval \${$cacheid+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596else 7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7598/* end confdefs.h. */ 7599int i; 7600int 7601main () 7602{ 7603 7604 ; 7605 return 0; 7606} 7607_ACEOF 7608if ac_fn_c_try_link "$LINENO"; then : 7609 eval $cacheid=yes 7610else 7611 eval $cacheid=no 7612fi 7613rm -f core conftest.err conftest.$ac_objext \ 7614 conftest$ac_exeext conftest.$ac_ext 7615fi 7616 7617 7618 CFLAGS="$xorg_testset_save_CFLAGS" 7619 7620 eval supported=\$$cacheid 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7622$as_echo "$supported" >&6; } 7623 if test "$supported" = "yes" ; then 7624 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7625 found="yes" 7626 fi 7627 fi 7628 7629 if test $found = "no" ; then 7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7632 fi 7633 7634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7636 fi 7637 7638 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7639 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7641$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7642 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7643 if eval \${$cacheid+:} false; then : 7644 $as_echo_n "(cached) " >&6 7645else 7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7647/* end confdefs.h. */ 7648int i; 7649int 7650main () 7651{ 7652 7653 ; 7654 return 0; 7655} 7656_ACEOF 7657if ac_fn_c_try_link "$LINENO"; then : 7658 eval $cacheid=yes 7659else 7660 eval $cacheid=no 7661fi 7662rm -f core conftest.err conftest.$ac_objext \ 7663 conftest$ac_exeext conftest.$ac_ext 7664fi 7665 7666 7667 CFLAGS="$xorg_testset_save_CFLAGS" 7668 7669 eval supported=\$$cacheid 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7671$as_echo "$supported" >&6; } 7672 if test "$supported" = "yes" ; then 7673 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7674 found="yes" 7675 fi 7676 fi 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692xorg_testset_save_CFLAGS="$CFLAGS" 7693 7694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700else 7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7702/* end confdefs.h. */ 7703int i; 7704_ACEOF 7705if ac_fn_c_try_compile "$LINENO"; then : 7706 xorg_cv_cc_flag_unknown_warning_option=yes 7707else 7708 xorg_cv_cc_flag_unknown_warning_option=no 7709fi 7710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7711fi 7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7715 CFLAGS="$xorg_testset_save_CFLAGS" 7716fi 7717 7718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7721 fi 7722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7725if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 7734else 7735 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7742 CFLAGS="$xorg_testset_save_CFLAGS" 7743fi 7744 7745found="no" 7746 7747 if test $found = "no" ; then 7748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7750 fi 7751 7752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7754 fi 7755 7756 CFLAGS="$CFLAGS -Werror=trigraphs" 7757 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7759$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7760 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7761 if eval \${$cacheid+:} false; then : 7762 $as_echo_n "(cached) " >&6 7763else 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765/* end confdefs.h. */ 7766int i; 7767int 7768main () 7769{ 7770 7771 ; 7772 return 0; 7773} 7774_ACEOF 7775if ac_fn_c_try_link "$LINENO"; then : 7776 eval $cacheid=yes 7777else 7778 eval $cacheid=no 7779fi 7780rm -f core conftest.err conftest.$ac_objext \ 7781 conftest$ac_exeext conftest.$ac_ext 7782fi 7783 7784 7785 CFLAGS="$xorg_testset_save_CFLAGS" 7786 7787 eval supported=\$$cacheid 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7789$as_echo "$supported" >&6; } 7790 if test "$supported" = "yes" ; then 7791 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7792 found="yes" 7793 fi 7794 fi 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810xorg_testset_save_CFLAGS="$CFLAGS" 7811 7812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7817 $as_echo_n "(cached) " >&6 7818else 7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7820/* end confdefs.h. */ 7821int i; 7822_ACEOF 7823if ac_fn_c_try_compile "$LINENO"; then : 7824 xorg_cv_cc_flag_unknown_warning_option=yes 7825else 7826 xorg_cv_cc_flag_unknown_warning_option=no 7827fi 7828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7829fi 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7833 CFLAGS="$xorg_testset_save_CFLAGS" 7834fi 7835 7836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7839 fi 7840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7843if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 7852else 7853 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7860 CFLAGS="$xorg_testset_save_CFLAGS" 7861fi 7862 7863found="no" 7864 7865 if test $found = "no" ; then 7866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7868 fi 7869 7870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7872 fi 7873 7874 CFLAGS="$CFLAGS -Werror=array-bounds" 7875 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7877$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7878 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7879 if eval \${$cacheid+:} false; then : 7880 $as_echo_n "(cached) " >&6 7881else 7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7883/* end confdefs.h. */ 7884int i; 7885int 7886main () 7887{ 7888 7889 ; 7890 return 0; 7891} 7892_ACEOF 7893if ac_fn_c_try_link "$LINENO"; then : 7894 eval $cacheid=yes 7895else 7896 eval $cacheid=no 7897fi 7898rm -f core conftest.err conftest.$ac_objext \ 7899 conftest$ac_exeext conftest.$ac_ext 7900fi 7901 7902 7903 CFLAGS="$xorg_testset_save_CFLAGS" 7904 7905 eval supported=\$$cacheid 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7907$as_echo "$supported" >&6; } 7908 if test "$supported" = "yes" ; then 7909 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7910 found="yes" 7911 fi 7912 fi 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928xorg_testset_save_CFLAGS="$CFLAGS" 7929 7930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7938/* end confdefs.h. */ 7939int i; 7940_ACEOF 7941if ac_fn_c_try_compile "$LINENO"; then : 7942 xorg_cv_cc_flag_unknown_warning_option=yes 7943else 7944 xorg_cv_cc_flag_unknown_warning_option=no 7945fi 7946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7947fi 7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7951 CFLAGS="$xorg_testset_save_CFLAGS" 7952fi 7953 7954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7957 fi 7958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7961if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 7970else 7971 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 7976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7978 CFLAGS="$xorg_testset_save_CFLAGS" 7979fi 7980 7981found="no" 7982 7983 if test $found = "no" ; then 7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7986 fi 7987 7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7990 fi 7991 7992 CFLAGS="$CFLAGS -Werror=write-strings" 7993 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7995$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7996 cacheid=xorg_cv_cc_flag__Werror_write_strings 7997 if eval \${$cacheid+:} false; then : 7998 $as_echo_n "(cached) " >&6 7999else 8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8001/* end confdefs.h. */ 8002int i; 8003int 8004main () 8005{ 8006 8007 ; 8008 return 0; 8009} 8010_ACEOF 8011if ac_fn_c_try_link "$LINENO"; then : 8012 eval $cacheid=yes 8013else 8014 eval $cacheid=no 8015fi 8016rm -f core conftest.err conftest.$ac_objext \ 8017 conftest$ac_exeext conftest.$ac_ext 8018fi 8019 8020 8021 CFLAGS="$xorg_testset_save_CFLAGS" 8022 8023 eval supported=\$$cacheid 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8025$as_echo "$supported" >&6; } 8026 if test "$supported" = "yes" ; then 8027 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8028 found="yes" 8029 fi 8030 fi 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046xorg_testset_save_CFLAGS="$CFLAGS" 8047 8048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8053 $as_echo_n "(cached) " >&6 8054else 8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8056/* end confdefs.h. */ 8057int i; 8058_ACEOF 8059if ac_fn_c_try_compile "$LINENO"; then : 8060 xorg_cv_cc_flag_unknown_warning_option=yes 8061else 8062 xorg_cv_cc_flag_unknown_warning_option=no 8063fi 8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8065fi 8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8069 CFLAGS="$xorg_testset_save_CFLAGS" 8070fi 8071 8072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8075 fi 8076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8080 $as_echo_n "(cached) " >&6 8081else 8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8083/* end confdefs.h. */ 8084int i; 8085_ACEOF 8086if ac_fn_c_try_compile "$LINENO"; then : 8087 xorg_cv_cc_flag_unused_command_line_argument=yes 8088else 8089 xorg_cv_cc_flag_unused_command_line_argument=no 8090fi 8091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8092fi 8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8096 CFLAGS="$xorg_testset_save_CFLAGS" 8097fi 8098 8099found="no" 8100 8101 if test $found = "no" ; then 8102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8104 fi 8105 8106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8108 fi 8109 8110 CFLAGS="$CFLAGS -Werror=address" 8111 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8113$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8114 cacheid=xorg_cv_cc_flag__Werror_address 8115 if eval \${$cacheid+:} false; then : 8116 $as_echo_n "(cached) " >&6 8117else 8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8119/* end confdefs.h. */ 8120int i; 8121int 8122main () 8123{ 8124 8125 ; 8126 return 0; 8127} 8128_ACEOF 8129if ac_fn_c_try_link "$LINENO"; then : 8130 eval $cacheid=yes 8131else 8132 eval $cacheid=no 8133fi 8134rm -f core conftest.err conftest.$ac_objext \ 8135 conftest$ac_exeext conftest.$ac_ext 8136fi 8137 8138 8139 CFLAGS="$xorg_testset_save_CFLAGS" 8140 8141 eval supported=\$$cacheid 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8143$as_echo "$supported" >&6; } 8144 if test "$supported" = "yes" ; then 8145 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8146 found="yes" 8147 fi 8148 fi 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164xorg_testset_save_CFLAGS="$CFLAGS" 8165 8166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8169$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8170if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8171 $as_echo_n "(cached) " >&6 8172else 8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8174/* end confdefs.h. */ 8175int i; 8176_ACEOF 8177if ac_fn_c_try_compile "$LINENO"; then : 8178 xorg_cv_cc_flag_unknown_warning_option=yes 8179else 8180 xorg_cv_cc_flag_unknown_warning_option=no 8181fi 8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8183fi 8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8185$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8187 CFLAGS="$xorg_testset_save_CFLAGS" 8188fi 8189 8190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8193 fi 8194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8196$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8197if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8201/* end confdefs.h. */ 8202int i; 8203_ACEOF 8204if ac_fn_c_try_compile "$LINENO"; then : 8205 xorg_cv_cc_flag_unused_command_line_argument=yes 8206else 8207 xorg_cv_cc_flag_unused_command_line_argument=no 8208fi 8209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8210fi 8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8212$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8214 CFLAGS="$xorg_testset_save_CFLAGS" 8215fi 8216 8217found="no" 8218 8219 if test $found = "no" ; then 8220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8222 fi 8223 8224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8226 fi 8227 8228 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8229 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8231$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8232 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8233 if eval \${$cacheid+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235else 8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8237/* end confdefs.h. */ 8238int i; 8239int 8240main () 8241{ 8242 8243 ; 8244 return 0; 8245} 8246_ACEOF 8247if ac_fn_c_try_link "$LINENO"; then : 8248 eval $cacheid=yes 8249else 8250 eval $cacheid=no 8251fi 8252rm -f core conftest.err conftest.$ac_objext \ 8253 conftest$ac_exeext conftest.$ac_ext 8254fi 8255 8256 8257 CFLAGS="$xorg_testset_save_CFLAGS" 8258 8259 eval supported=\$$cacheid 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8261$as_echo "$supported" >&6; } 8262 if test "$supported" = "yes" ; then 8263 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8264 found="yes" 8265 fi 8266 fi 8267 8268 if test $found = "no" ; then 8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8271 fi 8272 8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8275 fi 8276 8277 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8278 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8280$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8281 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8282 if eval \${$cacheid+:} false; then : 8283 $as_echo_n "(cached) " >&6 8284else 8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286/* end confdefs.h. */ 8287int i; 8288int 8289main () 8290{ 8291 8292 ; 8293 return 0; 8294} 8295_ACEOF 8296if ac_fn_c_try_link "$LINENO"; then : 8297 eval $cacheid=yes 8298else 8299 eval $cacheid=no 8300fi 8301rm -f core conftest.err conftest.$ac_objext \ 8302 conftest$ac_exeext conftest.$ac_ext 8303fi 8304 8305 8306 CFLAGS="$xorg_testset_save_CFLAGS" 8307 8308 eval supported=\$$cacheid 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8310$as_echo "$supported" >&6; } 8311 if test "$supported" = "yes" ; then 8312 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8313 found="yes" 8314 fi 8315 fi 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331xorg_testset_save_CFLAGS="$CFLAGS" 8332 8333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8338 $as_echo_n "(cached) " >&6 8339else 8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8341/* end confdefs.h. */ 8342int i; 8343_ACEOF 8344if ac_fn_c_try_compile "$LINENO"; then : 8345 xorg_cv_cc_flag_unknown_warning_option=yes 8346else 8347 xorg_cv_cc_flag_unknown_warning_option=no 8348fi 8349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8350fi 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8354 CFLAGS="$xorg_testset_save_CFLAGS" 8355fi 8356 8357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8360 fi 8361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368/* end confdefs.h. */ 8369int i; 8370_ACEOF 8371if ac_fn_c_try_compile "$LINENO"; then : 8372 xorg_cv_cc_flag_unused_command_line_argument=yes 8373else 8374 xorg_cv_cc_flag_unused_command_line_argument=no 8375fi 8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8377fi 8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8381 CFLAGS="$xorg_testset_save_CFLAGS" 8382fi 8383 8384found="no" 8385 8386 if test $found = "no" ; then 8387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8389 fi 8390 8391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8393 fi 8394 8395 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8396 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8398$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8399 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8400 if eval \${$cacheid+:} false; then : 8401 $as_echo_n "(cached) " >&6 8402else 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405int i; 8406int 8407main () 8408{ 8409 8410 ; 8411 return 0; 8412} 8413_ACEOF 8414if ac_fn_c_try_link "$LINENO"; then : 8415 eval $cacheid=yes 8416else 8417 eval $cacheid=no 8418fi 8419rm -f core conftest.err conftest.$ac_objext \ 8420 conftest$ac_exeext conftest.$ac_ext 8421fi 8422 8423 8424 CFLAGS="$xorg_testset_save_CFLAGS" 8425 8426 eval supported=\$$cacheid 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8428$as_echo "$supported" >&6; } 8429 if test "$supported" = "yes" ; then 8430 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8431 found="yes" 8432 fi 8433 fi 8434 8435 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8436else 8437{ $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 8438$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;} 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452xorg_testset_save_CFLAGS="$CFLAGS" 8453 8454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8459 $as_echo_n "(cached) " >&6 8460else 8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462/* end confdefs.h. */ 8463int i; 8464_ACEOF 8465if ac_fn_c_try_compile "$LINENO"; then : 8466 xorg_cv_cc_flag_unknown_warning_option=yes 8467else 8468 xorg_cv_cc_flag_unknown_warning_option=no 8469fi 8470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8471fi 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8475 CFLAGS="$xorg_testset_save_CFLAGS" 8476fi 8477 8478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8481 fi 8482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8485if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 8494else 8495 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8502 CFLAGS="$xorg_testset_save_CFLAGS" 8503fi 8504 8505found="no" 8506 8507 if test $found = "no" ; then 8508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8510 fi 8511 8512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8514 fi 8515 8516 CFLAGS="$CFLAGS -Wimplicit" 8517 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8519$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8520 cacheid=xorg_cv_cc_flag__Wimplicit 8521 if eval \${$cacheid+:} false; then : 8522 $as_echo_n "(cached) " >&6 8523else 8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8525/* end confdefs.h. */ 8526int i; 8527int 8528main () 8529{ 8530 8531 ; 8532 return 0; 8533} 8534_ACEOF 8535if ac_fn_c_try_link "$LINENO"; then : 8536 eval $cacheid=yes 8537else 8538 eval $cacheid=no 8539fi 8540rm -f core conftest.err conftest.$ac_objext \ 8541 conftest$ac_exeext conftest.$ac_ext 8542fi 8543 8544 8545 CFLAGS="$xorg_testset_save_CFLAGS" 8546 8547 eval supported=\$$cacheid 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8549$as_echo "$supported" >&6; } 8550 if test "$supported" = "yes" ; then 8551 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8552 found="yes" 8553 fi 8554 fi 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570xorg_testset_save_CFLAGS="$CFLAGS" 8571 8572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8577 $as_echo_n "(cached) " >&6 8578else 8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8580/* end confdefs.h. */ 8581int i; 8582_ACEOF 8583if ac_fn_c_try_compile "$LINENO"; then : 8584 xorg_cv_cc_flag_unknown_warning_option=yes 8585else 8586 xorg_cv_cc_flag_unknown_warning_option=no 8587fi 8588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8589fi 8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8593 CFLAGS="$xorg_testset_save_CFLAGS" 8594fi 8595 8596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8599 fi 8600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8603if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 8612else 8613 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8620 CFLAGS="$xorg_testset_save_CFLAGS" 8621fi 8622 8623found="no" 8624 8625 if test $found = "no" ; then 8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8628 fi 8629 8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8632 fi 8633 8634 CFLAGS="$CFLAGS -Wnonnull" 8635 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8637$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8638 cacheid=xorg_cv_cc_flag__Wnonnull 8639 if eval \${$cacheid+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641else 8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643/* end confdefs.h. */ 8644int i; 8645int 8646main () 8647{ 8648 8649 ; 8650 return 0; 8651} 8652_ACEOF 8653if ac_fn_c_try_link "$LINENO"; then : 8654 eval $cacheid=yes 8655else 8656 eval $cacheid=no 8657fi 8658rm -f core conftest.err conftest.$ac_objext \ 8659 conftest$ac_exeext conftest.$ac_ext 8660fi 8661 8662 8663 CFLAGS="$xorg_testset_save_CFLAGS" 8664 8665 eval supported=\$$cacheid 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8667$as_echo "$supported" >&6; } 8668 if test "$supported" = "yes" ; then 8669 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8670 found="yes" 8671 fi 8672 fi 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688xorg_testset_save_CFLAGS="$CFLAGS" 8689 8690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8695 $as_echo_n "(cached) " >&6 8696else 8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8698/* end confdefs.h. */ 8699int i; 8700_ACEOF 8701if ac_fn_c_try_compile "$LINENO"; then : 8702 xorg_cv_cc_flag_unknown_warning_option=yes 8703else 8704 xorg_cv_cc_flag_unknown_warning_option=no 8705fi 8706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8707fi 8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8711 CFLAGS="$xorg_testset_save_CFLAGS" 8712fi 8713 8714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8717 fi 8718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8721if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 8730else 8731 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8738 CFLAGS="$xorg_testset_save_CFLAGS" 8739fi 8740 8741found="no" 8742 8743 if test $found = "no" ; then 8744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8746 fi 8747 8748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8750 fi 8751 8752 CFLAGS="$CFLAGS -Winit-self" 8753 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8755$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8756 cacheid=xorg_cv_cc_flag__Winit_self 8757 if eval \${$cacheid+:} false; then : 8758 $as_echo_n "(cached) " >&6 8759else 8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8761/* end confdefs.h. */ 8762int i; 8763int 8764main () 8765{ 8766 8767 ; 8768 return 0; 8769} 8770_ACEOF 8771if ac_fn_c_try_link "$LINENO"; then : 8772 eval $cacheid=yes 8773else 8774 eval $cacheid=no 8775fi 8776rm -f core conftest.err conftest.$ac_objext \ 8777 conftest$ac_exeext conftest.$ac_ext 8778fi 8779 8780 8781 CFLAGS="$xorg_testset_save_CFLAGS" 8782 8783 eval supported=\$$cacheid 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8785$as_echo "$supported" >&6; } 8786 if test "$supported" = "yes" ; then 8787 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8788 found="yes" 8789 fi 8790 fi 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806xorg_testset_save_CFLAGS="$CFLAGS" 8807 8808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8813 $as_echo_n "(cached) " >&6 8814else 8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8816/* end confdefs.h. */ 8817int i; 8818_ACEOF 8819if ac_fn_c_try_compile "$LINENO"; then : 8820 xorg_cv_cc_flag_unknown_warning_option=yes 8821else 8822 xorg_cv_cc_flag_unknown_warning_option=no 8823fi 8824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8825fi 8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8829 CFLAGS="$xorg_testset_save_CFLAGS" 8830fi 8831 8832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8835 fi 8836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8839if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 8848else 8849 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8856 CFLAGS="$xorg_testset_save_CFLAGS" 8857fi 8858 8859found="no" 8860 8861 if test $found = "no" ; then 8862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8864 fi 8865 8866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8868 fi 8869 8870 CFLAGS="$CFLAGS -Wmain" 8871 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8873$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8874 cacheid=xorg_cv_cc_flag__Wmain 8875 if eval \${$cacheid+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8879/* end confdefs.h. */ 8880int i; 8881int 8882main () 8883{ 8884 8885 ; 8886 return 0; 8887} 8888_ACEOF 8889if ac_fn_c_try_link "$LINENO"; then : 8890 eval $cacheid=yes 8891else 8892 eval $cacheid=no 8893fi 8894rm -f core conftest.err conftest.$ac_objext \ 8895 conftest$ac_exeext conftest.$ac_ext 8896fi 8897 8898 8899 CFLAGS="$xorg_testset_save_CFLAGS" 8900 8901 eval supported=\$$cacheid 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8903$as_echo "$supported" >&6; } 8904 if test "$supported" = "yes" ; then 8905 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8906 found="yes" 8907 fi 8908 fi 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924xorg_testset_save_CFLAGS="$CFLAGS" 8925 8926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932else 8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8934/* end confdefs.h. */ 8935int i; 8936_ACEOF 8937if ac_fn_c_try_compile "$LINENO"; then : 8938 xorg_cv_cc_flag_unknown_warning_option=yes 8939else 8940 xorg_cv_cc_flag_unknown_warning_option=no 8941fi 8942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8943fi 8944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8947 CFLAGS="$xorg_testset_save_CFLAGS" 8948fi 8949 8950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8953 fi 8954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8957if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 8966else 8967 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 8972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8974 CFLAGS="$xorg_testset_save_CFLAGS" 8975fi 8976 8977found="no" 8978 8979 if test $found = "no" ; then 8980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8982 fi 8983 8984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8986 fi 8987 8988 CFLAGS="$CFLAGS -Wmissing-braces" 8989 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8991$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8992 cacheid=xorg_cv_cc_flag__Wmissing_braces 8993 if eval \${$cacheid+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995else 8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8997/* end confdefs.h. */ 8998int i; 8999int 9000main () 9001{ 9002 9003 ; 9004 return 0; 9005} 9006_ACEOF 9007if ac_fn_c_try_link "$LINENO"; then : 9008 eval $cacheid=yes 9009else 9010 eval $cacheid=no 9011fi 9012rm -f core conftest.err conftest.$ac_objext \ 9013 conftest$ac_exeext conftest.$ac_ext 9014fi 9015 9016 9017 CFLAGS="$xorg_testset_save_CFLAGS" 9018 9019 eval supported=\$$cacheid 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9021$as_echo "$supported" >&6; } 9022 if test "$supported" = "yes" ; then 9023 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9024 found="yes" 9025 fi 9026 fi 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042xorg_testset_save_CFLAGS="$CFLAGS" 9043 9044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9049 $as_echo_n "(cached) " >&6 9050else 9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9052/* end confdefs.h. */ 9053int i; 9054_ACEOF 9055if ac_fn_c_try_compile "$LINENO"; then : 9056 xorg_cv_cc_flag_unknown_warning_option=yes 9057else 9058 xorg_cv_cc_flag_unknown_warning_option=no 9059fi 9060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9061fi 9062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9065 CFLAGS="$xorg_testset_save_CFLAGS" 9066fi 9067 9068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9071 fi 9072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9075if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 9084else 9085 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9092 CFLAGS="$xorg_testset_save_CFLAGS" 9093fi 9094 9095found="no" 9096 9097 if test $found = "no" ; then 9098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9100 fi 9101 9102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9104 fi 9105 9106 CFLAGS="$CFLAGS -Wsequence-point" 9107 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9109$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9110 cacheid=xorg_cv_cc_flag__Wsequence_point 9111 if eval \${$cacheid+:} false; then : 9112 $as_echo_n "(cached) " >&6 9113else 9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9115/* end confdefs.h. */ 9116int i; 9117int 9118main () 9119{ 9120 9121 ; 9122 return 0; 9123} 9124_ACEOF 9125if ac_fn_c_try_link "$LINENO"; then : 9126 eval $cacheid=yes 9127else 9128 eval $cacheid=no 9129fi 9130rm -f core conftest.err conftest.$ac_objext \ 9131 conftest$ac_exeext conftest.$ac_ext 9132fi 9133 9134 9135 CFLAGS="$xorg_testset_save_CFLAGS" 9136 9137 eval supported=\$$cacheid 9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9139$as_echo "$supported" >&6; } 9140 if test "$supported" = "yes" ; then 9141 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9142 found="yes" 9143 fi 9144 fi 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160xorg_testset_save_CFLAGS="$CFLAGS" 9161 9162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9167 $as_echo_n "(cached) " >&6 9168else 9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9170/* end confdefs.h. */ 9171int i; 9172_ACEOF 9173if ac_fn_c_try_compile "$LINENO"; then : 9174 xorg_cv_cc_flag_unknown_warning_option=yes 9175else 9176 xorg_cv_cc_flag_unknown_warning_option=no 9177fi 9178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9179fi 9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9183 CFLAGS="$xorg_testset_save_CFLAGS" 9184fi 9185 9186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 fi 9190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9193if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 9202else 9203 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9210 CFLAGS="$xorg_testset_save_CFLAGS" 9211fi 9212 9213found="no" 9214 9215 if test $found = "no" ; then 9216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9218 fi 9219 9220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9222 fi 9223 9224 CFLAGS="$CFLAGS -Wreturn-type" 9225 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9227$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9228 cacheid=xorg_cv_cc_flag__Wreturn_type 9229 if eval \${$cacheid+:} false; then : 9230 $as_echo_n "(cached) " >&6 9231else 9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9233/* end confdefs.h. */ 9234int i; 9235int 9236main () 9237{ 9238 9239 ; 9240 return 0; 9241} 9242_ACEOF 9243if ac_fn_c_try_link "$LINENO"; then : 9244 eval $cacheid=yes 9245else 9246 eval $cacheid=no 9247fi 9248rm -f core conftest.err conftest.$ac_objext \ 9249 conftest$ac_exeext conftest.$ac_ext 9250fi 9251 9252 9253 CFLAGS="$xorg_testset_save_CFLAGS" 9254 9255 eval supported=\$$cacheid 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9257$as_echo "$supported" >&6; } 9258 if test "$supported" = "yes" ; then 9259 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9260 found="yes" 9261 fi 9262 fi 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278xorg_testset_save_CFLAGS="$CFLAGS" 9279 9280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9285 $as_echo_n "(cached) " >&6 9286else 9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9288/* end confdefs.h. */ 9289int i; 9290_ACEOF 9291if ac_fn_c_try_compile "$LINENO"; then : 9292 xorg_cv_cc_flag_unknown_warning_option=yes 9293else 9294 xorg_cv_cc_flag_unknown_warning_option=no 9295fi 9296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9297fi 9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9301 CFLAGS="$xorg_testset_save_CFLAGS" 9302fi 9303 9304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9307 fi 9308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9311if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 9320else 9321 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9328 CFLAGS="$xorg_testset_save_CFLAGS" 9329fi 9330 9331found="no" 9332 9333 if test $found = "no" ; then 9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9336 fi 9337 9338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9340 fi 9341 9342 CFLAGS="$CFLAGS -Wtrigraphs" 9343 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9345$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9346 cacheid=xorg_cv_cc_flag__Wtrigraphs 9347 if eval \${$cacheid+:} false; then : 9348 $as_echo_n "(cached) " >&6 9349else 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351/* end confdefs.h. */ 9352int i; 9353int 9354main () 9355{ 9356 9357 ; 9358 return 0; 9359} 9360_ACEOF 9361if ac_fn_c_try_link "$LINENO"; then : 9362 eval $cacheid=yes 9363else 9364 eval $cacheid=no 9365fi 9366rm -f core conftest.err conftest.$ac_objext \ 9367 conftest$ac_exeext conftest.$ac_ext 9368fi 9369 9370 9371 CFLAGS="$xorg_testset_save_CFLAGS" 9372 9373 eval supported=\$$cacheid 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9375$as_echo "$supported" >&6; } 9376 if test "$supported" = "yes" ; then 9377 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9378 found="yes" 9379 fi 9380 fi 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396xorg_testset_save_CFLAGS="$CFLAGS" 9397 9398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9403 $as_echo_n "(cached) " >&6 9404else 9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9406/* end confdefs.h. */ 9407int i; 9408_ACEOF 9409if ac_fn_c_try_compile "$LINENO"; then : 9410 xorg_cv_cc_flag_unknown_warning_option=yes 9411else 9412 xorg_cv_cc_flag_unknown_warning_option=no 9413fi 9414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9415fi 9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9419 CFLAGS="$xorg_testset_save_CFLAGS" 9420fi 9421 9422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9425 fi 9426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9429if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 9438else 9439 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9446 CFLAGS="$xorg_testset_save_CFLAGS" 9447fi 9448 9449found="no" 9450 9451 if test $found = "no" ; then 9452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9454 fi 9455 9456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9458 fi 9459 9460 CFLAGS="$CFLAGS -Warray-bounds" 9461 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9463$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9464 cacheid=xorg_cv_cc_flag__Warray_bounds 9465 if eval \${$cacheid+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467else 9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9469/* end confdefs.h. */ 9470int i; 9471int 9472main () 9473{ 9474 9475 ; 9476 return 0; 9477} 9478_ACEOF 9479if ac_fn_c_try_link "$LINENO"; then : 9480 eval $cacheid=yes 9481else 9482 eval $cacheid=no 9483fi 9484rm -f core conftest.err conftest.$ac_objext \ 9485 conftest$ac_exeext conftest.$ac_ext 9486fi 9487 9488 9489 CFLAGS="$xorg_testset_save_CFLAGS" 9490 9491 eval supported=\$$cacheid 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9493$as_echo "$supported" >&6; } 9494 if test "$supported" = "yes" ; then 9495 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9496 found="yes" 9497 fi 9498 fi 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514xorg_testset_save_CFLAGS="$CFLAGS" 9515 9516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9521 $as_echo_n "(cached) " >&6 9522else 9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9524/* end confdefs.h. */ 9525int i; 9526_ACEOF 9527if ac_fn_c_try_compile "$LINENO"; then : 9528 xorg_cv_cc_flag_unknown_warning_option=yes 9529else 9530 xorg_cv_cc_flag_unknown_warning_option=no 9531fi 9532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9533fi 9534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9537 CFLAGS="$xorg_testset_save_CFLAGS" 9538fi 9539 9540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9543 fi 9544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9547if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 9556else 9557 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9564 CFLAGS="$xorg_testset_save_CFLAGS" 9565fi 9566 9567found="no" 9568 9569 if test $found = "no" ; then 9570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9572 fi 9573 9574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9576 fi 9577 9578 CFLAGS="$CFLAGS -Wwrite-strings" 9579 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9581$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9582 cacheid=xorg_cv_cc_flag__Wwrite_strings 9583 if eval \${$cacheid+:} false; then : 9584 $as_echo_n "(cached) " >&6 9585else 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587/* end confdefs.h. */ 9588int i; 9589int 9590main () 9591{ 9592 9593 ; 9594 return 0; 9595} 9596_ACEOF 9597if ac_fn_c_try_link "$LINENO"; then : 9598 eval $cacheid=yes 9599else 9600 eval $cacheid=no 9601fi 9602rm -f core conftest.err conftest.$ac_objext \ 9603 conftest$ac_exeext conftest.$ac_ext 9604fi 9605 9606 9607 CFLAGS="$xorg_testset_save_CFLAGS" 9608 9609 eval supported=\$$cacheid 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9611$as_echo "$supported" >&6; } 9612 if test "$supported" = "yes" ; then 9613 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9614 found="yes" 9615 fi 9616 fi 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632xorg_testset_save_CFLAGS="$CFLAGS" 9633 9634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9637$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9638if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9639 $as_echo_n "(cached) " >&6 9640else 9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9642/* end confdefs.h. */ 9643int i; 9644_ACEOF 9645if ac_fn_c_try_compile "$LINENO"; then : 9646 xorg_cv_cc_flag_unknown_warning_option=yes 9647else 9648 xorg_cv_cc_flag_unknown_warning_option=no 9649fi 9650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9651fi 9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9653$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9655 CFLAGS="$xorg_testset_save_CFLAGS" 9656fi 9657 9658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9661 fi 9662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9664$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9665if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 9674else 9675 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 9680$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9682 CFLAGS="$xorg_testset_save_CFLAGS" 9683fi 9684 9685found="no" 9686 9687 if test $found = "no" ; then 9688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9690 fi 9691 9692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9694 fi 9695 9696 CFLAGS="$CFLAGS -Waddress" 9697 9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9699$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9700 cacheid=xorg_cv_cc_flag__Waddress 9701 if eval \${$cacheid+:} false; then : 9702 $as_echo_n "(cached) " >&6 9703else 9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9705/* end confdefs.h. */ 9706int i; 9707int 9708main () 9709{ 9710 9711 ; 9712 return 0; 9713} 9714_ACEOF 9715if ac_fn_c_try_link "$LINENO"; then : 9716 eval $cacheid=yes 9717else 9718 eval $cacheid=no 9719fi 9720rm -f core conftest.err conftest.$ac_objext \ 9721 conftest$ac_exeext conftest.$ac_ext 9722fi 9723 9724 9725 CFLAGS="$xorg_testset_save_CFLAGS" 9726 9727 eval supported=\$$cacheid 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9729$as_echo "$supported" >&6; } 9730 if test "$supported" = "yes" ; then 9731 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9732 found="yes" 9733 fi 9734 fi 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750xorg_testset_save_CFLAGS="$CFLAGS" 9751 9752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9757 $as_echo_n "(cached) " >&6 9758else 9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9760/* end confdefs.h. */ 9761int i; 9762_ACEOF 9763if ac_fn_c_try_compile "$LINENO"; then : 9764 xorg_cv_cc_flag_unknown_warning_option=yes 9765else 9766 xorg_cv_cc_flag_unknown_warning_option=no 9767fi 9768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9769fi 9770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9773 CFLAGS="$xorg_testset_save_CFLAGS" 9774fi 9775 9776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9779 fi 9780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9783if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9784 $as_echo_n "(cached) " >&6 9785else 9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787/* end confdefs.h. */ 9788int i; 9789_ACEOF 9790if ac_fn_c_try_compile "$LINENO"; then : 9791 xorg_cv_cc_flag_unused_command_line_argument=yes 9792else 9793 xorg_cv_cc_flag_unused_command_line_argument=no 9794fi 9795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9796fi 9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9800 CFLAGS="$xorg_testset_save_CFLAGS" 9801fi 9802 9803found="no" 9804 9805 if test $found = "no" ; then 9806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9808 fi 9809 9810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9812 fi 9813 9814 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9815 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9817$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9818 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9819 if eval \${$cacheid+:} false; then : 9820 $as_echo_n "(cached) " >&6 9821else 9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823/* end confdefs.h. */ 9824int i; 9825int 9826main () 9827{ 9828 9829 ; 9830 return 0; 9831} 9832_ACEOF 9833if ac_fn_c_try_link "$LINENO"; then : 9834 eval $cacheid=yes 9835else 9836 eval $cacheid=no 9837fi 9838rm -f core conftest.err conftest.$ac_objext \ 9839 conftest$ac_exeext conftest.$ac_ext 9840fi 9841 9842 9843 CFLAGS="$xorg_testset_save_CFLAGS" 9844 9845 eval supported=\$$cacheid 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9847$as_echo "$supported" >&6; } 9848 if test "$supported" = "yes" ; then 9849 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9850 found="yes" 9851 fi 9852 fi 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868xorg_testset_save_CFLAGS="$CFLAGS" 9869 9870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9875 $as_echo_n "(cached) " >&6 9876else 9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9878/* end confdefs.h. */ 9879int i; 9880_ACEOF 9881if ac_fn_c_try_compile "$LINENO"; then : 9882 xorg_cv_cc_flag_unknown_warning_option=yes 9883else 9884 xorg_cv_cc_flag_unknown_warning_option=no 9885fi 9886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9887fi 9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9891 CFLAGS="$xorg_testset_save_CFLAGS" 9892fi 9893 9894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9897 fi 9898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9902 $as_echo_n "(cached) " >&6 9903else 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905/* end confdefs.h. */ 9906int i; 9907_ACEOF 9908if ac_fn_c_try_compile "$LINENO"; then : 9909 xorg_cv_cc_flag_unused_command_line_argument=yes 9910else 9911 xorg_cv_cc_flag_unused_command_line_argument=no 9912fi 9913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9914fi 9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9918 CFLAGS="$xorg_testset_save_CFLAGS" 9919fi 9920 9921found="no" 9922 9923 if test $found = "no" ; then 9924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9926 fi 9927 9928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9930 fi 9931 9932 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9933 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9935$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9936 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9937 if eval \${$cacheid+:} false; then : 9938 $as_echo_n "(cached) " >&6 9939else 9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9941/* end confdefs.h. */ 9942int i; 9943int 9944main () 9945{ 9946 9947 ; 9948 return 0; 9949} 9950_ACEOF 9951if ac_fn_c_try_link "$LINENO"; then : 9952 eval $cacheid=yes 9953else 9954 eval $cacheid=no 9955fi 9956rm -f core conftest.err conftest.$ac_objext \ 9957 conftest$ac_exeext conftest.$ac_ext 9958fi 9959 9960 9961 CFLAGS="$xorg_testset_save_CFLAGS" 9962 9963 eval supported=\$$cacheid 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9965$as_echo "$supported" >&6; } 9966 if test "$supported" = "yes" ; then 9967 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9968 found="yes" 9969 fi 9970 fi 9971 9972 9973fi 9974 9975 9976 9977 9978 9979 9980 9981 CWARNFLAGS="$BASE_CFLAGS" 9982 if test "x$GCC" = xyes ; then 9983 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9984 fi 9985 9986 9987 9988 9989 9990 9991 9992 9993# Check whether --enable-strict-compilation was given. 9994if test "${enable_strict_compilation+set}" = set; then : 9995 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9996else 9997 STRICT_COMPILE=no 9998fi 9999 10000 10001 10002 10003 10004 10005STRICT_CFLAGS="" 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019xorg_testset_save_CFLAGS="$CFLAGS" 10020 10021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10024$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10025if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10026 $as_echo_n "(cached) " >&6 10027else 10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10029/* end confdefs.h. */ 10030int i; 10031_ACEOF 10032if ac_fn_c_try_compile "$LINENO"; then : 10033 xorg_cv_cc_flag_unknown_warning_option=yes 10034else 10035 xorg_cv_cc_flag_unknown_warning_option=no 10036fi 10037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10038fi 10039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10040$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10042 CFLAGS="$xorg_testset_save_CFLAGS" 10043fi 10044 10045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10048 fi 10049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10051$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10052if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10053 $as_echo_n "(cached) " >&6 10054else 10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10056/* end confdefs.h. */ 10057int i; 10058_ACEOF 10059if ac_fn_c_try_compile "$LINENO"; then : 10060 xorg_cv_cc_flag_unused_command_line_argument=yes 10061else 10062 xorg_cv_cc_flag_unused_command_line_argument=no 10063fi 10064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10065fi 10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10067$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10069 CFLAGS="$xorg_testset_save_CFLAGS" 10070fi 10071 10072found="no" 10073 10074 if test $found = "no" ; then 10075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10077 fi 10078 10079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10081 fi 10082 10083 CFLAGS="$CFLAGS -pedantic" 10084 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10086$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10087 cacheid=xorg_cv_cc_flag__pedantic 10088 if eval \${$cacheid+:} false; then : 10089 $as_echo_n "(cached) " >&6 10090else 10091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10092/* end confdefs.h. */ 10093int i; 10094int 10095main () 10096{ 10097 10098 ; 10099 return 0; 10100} 10101_ACEOF 10102if ac_fn_c_try_link "$LINENO"; then : 10103 eval $cacheid=yes 10104else 10105 eval $cacheid=no 10106fi 10107rm -f core conftest.err conftest.$ac_objext \ 10108 conftest$ac_exeext conftest.$ac_ext 10109fi 10110 10111 10112 CFLAGS="$xorg_testset_save_CFLAGS" 10113 10114 eval supported=\$$cacheid 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10116$as_echo "$supported" >&6; } 10117 if test "$supported" = "yes" ; then 10118 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10119 found="yes" 10120 fi 10121 fi 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137xorg_testset_save_CFLAGS="$CFLAGS" 10138 10139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10144 $as_echo_n "(cached) " >&6 10145else 10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10147/* end confdefs.h. */ 10148int i; 10149_ACEOF 10150if ac_fn_c_try_compile "$LINENO"; then : 10151 xorg_cv_cc_flag_unknown_warning_option=yes 10152else 10153 xorg_cv_cc_flag_unknown_warning_option=no 10154fi 10155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10156fi 10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10160 CFLAGS="$xorg_testset_save_CFLAGS" 10161fi 10162 10163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10166 fi 10167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10171 $as_echo_n "(cached) " >&6 10172else 10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10174/* end confdefs.h. */ 10175int i; 10176_ACEOF 10177if ac_fn_c_try_compile "$LINENO"; then : 10178 xorg_cv_cc_flag_unused_command_line_argument=yes 10179else 10180 xorg_cv_cc_flag_unused_command_line_argument=no 10181fi 10182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10183fi 10184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10187 CFLAGS="$xorg_testset_save_CFLAGS" 10188fi 10189 10190found="no" 10191 10192 if test $found = "no" ; then 10193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10195 fi 10196 10197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10199 fi 10200 10201 CFLAGS="$CFLAGS -Werror" 10202 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10204$as_echo_n "checking if $CC supports -Werror... " >&6; } 10205 cacheid=xorg_cv_cc_flag__Werror 10206 if eval \${$cacheid+:} false; then : 10207 $as_echo_n "(cached) " >&6 10208else 10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10210/* end confdefs.h. */ 10211int i; 10212int 10213main () 10214{ 10215 10216 ; 10217 return 0; 10218} 10219_ACEOF 10220if ac_fn_c_try_link "$LINENO"; then : 10221 eval $cacheid=yes 10222else 10223 eval $cacheid=no 10224fi 10225rm -f core conftest.err conftest.$ac_objext \ 10226 conftest$ac_exeext conftest.$ac_ext 10227fi 10228 10229 10230 CFLAGS="$xorg_testset_save_CFLAGS" 10231 10232 eval supported=\$$cacheid 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10234$as_echo "$supported" >&6; } 10235 if test "$supported" = "yes" ; then 10236 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10237 found="yes" 10238 fi 10239 fi 10240 10241 if test $found = "no" ; then 10242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10244 fi 10245 10246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10248 fi 10249 10250 CFLAGS="$CFLAGS -errwarn" 10251 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10253$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10254 cacheid=xorg_cv_cc_flag__errwarn 10255 if eval \${$cacheid+:} false; then : 10256 $as_echo_n "(cached) " >&6 10257else 10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10259/* end confdefs.h. */ 10260int i; 10261int 10262main () 10263{ 10264 10265 ; 10266 return 0; 10267} 10268_ACEOF 10269if ac_fn_c_try_link "$LINENO"; then : 10270 eval $cacheid=yes 10271else 10272 eval $cacheid=no 10273fi 10274rm -f core conftest.err conftest.$ac_objext \ 10275 conftest$ac_exeext conftest.$ac_ext 10276fi 10277 10278 10279 CFLAGS="$xorg_testset_save_CFLAGS" 10280 10281 eval supported=\$$cacheid 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10283$as_echo "$supported" >&6; } 10284 if test "$supported" = "yes" ; then 10285 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10286 found="yes" 10287 fi 10288 fi 10289 10290 10291 10292# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10293# activate it with -Werror, so we add it here explicitly. 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307xorg_testset_save_CFLAGS="$CFLAGS" 10308 10309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10314 $as_echo_n "(cached) " >&6 10315else 10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10317/* end confdefs.h. */ 10318int i; 10319_ACEOF 10320if ac_fn_c_try_compile "$LINENO"; then : 10321 xorg_cv_cc_flag_unknown_warning_option=yes 10322else 10323 xorg_cv_cc_flag_unknown_warning_option=no 10324fi 10325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10326fi 10327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10330 CFLAGS="$xorg_testset_save_CFLAGS" 10331fi 10332 10333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10336 fi 10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10341 $as_echo_n "(cached) " >&6 10342else 10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344/* end confdefs.h. */ 10345int i; 10346_ACEOF 10347if ac_fn_c_try_compile "$LINENO"; then : 10348 xorg_cv_cc_flag_unused_command_line_argument=yes 10349else 10350 xorg_cv_cc_flag_unused_command_line_argument=no 10351fi 10352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10353fi 10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10357 CFLAGS="$xorg_testset_save_CFLAGS" 10358fi 10359 10360found="no" 10361 10362 if test $found = "no" ; then 10363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10365 fi 10366 10367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10369 fi 10370 10371 CFLAGS="$CFLAGS -Werror=attributes" 10372 10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10374$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10375 cacheid=xorg_cv_cc_flag__Werror_attributes 10376 if eval \${$cacheid+:} false; then : 10377 $as_echo_n "(cached) " >&6 10378else 10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10380/* end confdefs.h. */ 10381int i; 10382int 10383main () 10384{ 10385 10386 ; 10387 return 0; 10388} 10389_ACEOF 10390if ac_fn_c_try_link "$LINENO"; then : 10391 eval $cacheid=yes 10392else 10393 eval $cacheid=no 10394fi 10395rm -f core conftest.err conftest.$ac_objext \ 10396 conftest$ac_exeext conftest.$ac_ext 10397fi 10398 10399 10400 CFLAGS="$xorg_testset_save_CFLAGS" 10401 10402 eval supported=\$$cacheid 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10404$as_echo "$supported" >&6; } 10405 if test "$supported" = "yes" ; then 10406 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10407 found="yes" 10408 fi 10409 fi 10410 10411 10412 10413if test "x$STRICT_COMPILE" = "xyes"; then 10414 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10415 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10416fi 10417 10418 10419 10420 10421 10422 10423cat >>confdefs.h <<_ACEOF 10424#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10425_ACEOF 10426 10427 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10428 if test "x$PVM" = "x"; then 10429 PVM="0" 10430 fi 10431 10432cat >>confdefs.h <<_ACEOF 10433#define PACKAGE_VERSION_MINOR $PVM 10434_ACEOF 10435 10436 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10437 if test "x$PVP" = "x"; then 10438 PVP="0" 10439 fi 10440 10441cat >>confdefs.h <<_ACEOF 10442#define PACKAGE_VERSION_PATCHLEVEL $PVP 10443_ACEOF 10444 10445 10446 10447CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10448mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10449|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10450echo 'git directory not found: installing possibly empty changelog.' >&2)" 10451 10452 10453 10454 10455macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10456INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10457mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10458|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10459echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10460 10461 10462 10463 10464 10465 10466if test x$APP_MAN_SUFFIX = x ; then 10467 APP_MAN_SUFFIX=1 10468fi 10469if test x$APP_MAN_DIR = x ; then 10470 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10471fi 10472 10473if test x$LIB_MAN_SUFFIX = x ; then 10474 LIB_MAN_SUFFIX=3 10475fi 10476if test x$LIB_MAN_DIR = x ; then 10477 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10478fi 10479 10480if test x$FILE_MAN_SUFFIX = x ; then 10481 case $host_os in 10482 # Solaris 2.0 - 11 use SysV man page sections 10483 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10484 *) FILE_MAN_SUFFIX=5 ;; 10485 esac 10486fi 10487if test x$FILE_MAN_DIR = x ; then 10488 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10489fi 10490 10491if test x$MISC_MAN_SUFFIX = x ; then 10492 case $host_os in 10493 # Solaris 2.0 - 11 use SysV man page sections 10494 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10495 *) MISC_MAN_SUFFIX=7 ;; 10496 esac 10497fi 10498if test x$MISC_MAN_DIR = x ; then 10499 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10500fi 10501 10502if test x$DRIVER_MAN_SUFFIX = x ; then 10503 case $host_os in 10504 # Solaris 2.0 - 11 use SysV man page sections 10505 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10506 *) DRIVER_MAN_SUFFIX=4 ;; 10507 esac 10508fi 10509if test x$DRIVER_MAN_DIR = x ; then 10510 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10511fi 10512 10513if test x$ADMIN_MAN_SUFFIX = x ; then 10514 case $host_os in 10515 # Solaris 2.0 - 11 use SysV man page sections 10516 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10517 *) ADMIN_MAN_SUFFIX=8 ;; 10518 esac 10519fi 10520if test x$ADMIN_MAN_DIR = x ; then 10521 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10522fi 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538XORG_MAN_PAGE="X Version 11" 10539 10540MAN_SUBSTS="\ 10541 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10542 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10543 -e 's|__xservername__|Xorg|g' \ 10544 -e 's|__xconfigfile__|xorg.conf|g' \ 10545 -e 's|__projectroot__|\$(prefix)|g' \ 10546 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10547 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10548 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10549 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10550 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10551 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10552 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10553 10554 10555 10556# Check whether --enable-silent-rules was given. 10557if test "${enable_silent_rules+set}" = set; then : 10558 enableval=$enable_silent_rules; 10559fi 10560 10561case $enable_silent_rules in # ((( 10562 yes) AM_DEFAULT_VERBOSITY=0;; 10563 no) AM_DEFAULT_VERBOSITY=1;; 10564 *) AM_DEFAULT_VERBOSITY=0;; 10565esac 10566am_make=${MAKE-make} 10567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10568$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10569if ${am_cv_make_support_nested_variables+:} false; then : 10570 $as_echo_n "(cached) " >&6 10571else 10572 if $as_echo 'TRUE=$(BAR$(V)) 10573BAR0=false 10574BAR1=true 10575V=1 10576am__doit: 10577 @$(TRUE) 10578.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10579 am_cv_make_support_nested_variables=yes 10580else 10581 am_cv_make_support_nested_variables=no 10582fi 10583fi 10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10585$as_echo "$am_cv_make_support_nested_variables" >&6; } 10586if test $am_cv_make_support_nested_variables = yes; then 10587 AM_V='$(V)' 10588 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10589else 10590 AM_V=$AM_DEFAULT_VERBOSITY 10591 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10592fi 10593AM_BACKSLASH='\' 10594 10595 10596 10597# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 10613$as_echo_n "checking for root directory for font files... " >&6; } 10614 10615# Check whether --with-fontrootdir was given. 10616if test "${with_fontrootdir+set}" = set; then : 10617 withval=$with_fontrootdir; FONTROOTDIR="$withval" 10618fi 10619 10620 # if --with-fontrootdir not specified... 10621 if test "x${FONTROOTDIR}" = "x"; then 10622 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 10623 fi 10624 # ...and if pkg-config didn't find fontdir in fontutil.pc... 10625 if test "x${FONTROOTDIR}" = "x"; then 10626 FONTROOTDIR="${datadir}/fonts/X11" 10627 fi 10628 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 10630$as_echo "${FONTROOTDIR}" >&6; } 10631 10632 10633 10634 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5 10636$as_echo_n "checking for directory for encodings files... " >&6; } 10637 10638# Check whether --with-encodingsdir was given. 10639if test "${with_encodingsdir+set}" = set; then : 10640 withval=$with_encodingsdir; ENCODINGSDIR="${withval}" 10641else 10642 ENCODINGSDIR='${FONTROOTDIR}/encodings' 10643fi 10644 10645 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5 10647$as_echo "${ENCODINGSDIR}" >&6; } 10648 10649 10650 10651 10652DEFAULT_XCONFDIR="${libdir}/X11/config" 10653 10654# Check whether --with-config-dir was given. 10655if test "${with_config_dir+set}" = set; then : 10656 withval=$with_config_dir; XCONFDIR="$withval" 10657else 10658 XCONFDIR="$DEFAULT_XCONFDIR" 10659fi 10660 10661 10662 10663ac_config_files="$ac_config_files Makefile site.def" 10664 10665cat >confcache <<\_ACEOF 10666# This file is a shell script that caches the results of configure 10667# tests run on this system so they can be shared between configure 10668# scripts and configure runs, see configure's option --config-cache. 10669# It is not useful on other systems. If it contains results you don't 10670# want to keep, you may remove or edit it. 10671# 10672# config.status only pays attention to the cache file if you give it 10673# the --recheck option to rerun configure. 10674# 10675# `ac_cv_env_foo' variables (set or unset) will be overridden when 10676# loading this file, other *unset* `ac_cv_foo' will be assigned the 10677# following values. 10678 10679_ACEOF 10680 10681# The following way of writing the cache mishandles newlines in values, 10682# but we know of no workaround that is simple, portable, and efficient. 10683# So, we kill variables containing newlines. 10684# Ultrix sh set writes to stderr and can't be redirected directly, 10685# and sets the high bit in the cache file unless we assign to the vars. 10686( 10687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10688 eval ac_val=\$$ac_var 10689 case $ac_val in #( 10690 *${as_nl}*) 10691 case $ac_var in #( 10692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10693$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10694 esac 10695 case $ac_var in #( 10696 _ | IFS | as_nl) ;; #( 10697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10698 *) { eval $ac_var=; unset $ac_var;} ;; 10699 esac ;; 10700 esac 10701 done 10702 10703 (set) 2>&1 | 10704 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10705 *${as_nl}ac_space=\ *) 10706 # `set' does not quote correctly, so add quotes: double-quote 10707 # substitution turns \\\\ into \\, and sed turns \\ into \. 10708 sed -n \ 10709 "s/'/'\\\\''/g; 10710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10711 ;; #( 10712 *) 10713 # `set' quotes correctly as required by POSIX, so do not add quotes. 10714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10715 ;; 10716 esac | 10717 sort 10718) | 10719 sed ' 10720 /^ac_cv_env_/b end 10721 t clear 10722 :clear 10723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10724 t end 10725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10726 :end' >>confcache 10727if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10728 if test -w "$cache_file"; then 10729 if test "x$cache_file" != "x/dev/null"; then 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10731$as_echo "$as_me: updating cache $cache_file" >&6;} 10732 if test ! -f "$cache_file" || test -h "$cache_file"; then 10733 cat confcache >"$cache_file" 10734 else 10735 case $cache_file in #( 10736 */* | ?:*) 10737 mv -f confcache "$cache_file"$$ && 10738 mv -f "$cache_file"$$ "$cache_file" ;; #( 10739 *) 10740 mv -f confcache "$cache_file" ;; 10741 esac 10742 fi 10743 fi 10744 else 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10746$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10747 fi 10748fi 10749rm -f confcache 10750 10751test "x$prefix" = xNONE && prefix=$ac_default_prefix 10752# Let make expand exec_prefix. 10753test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10754 10755# Transform confdefs.h into DEFS. 10756# Protect against shell expansion while executing Makefile rules. 10757# Protect against Makefile macro expansion. 10758# 10759# If the first sed substitution is executed (which looks for macros that 10760# take arguments), then branch to the quote section. Otherwise, 10761# look for a macro that doesn't take arguments. 10762ac_script=' 10763:mline 10764/\\$/{ 10765 N 10766 s,\\\n,, 10767 b mline 10768} 10769t clear 10770:clear 10771s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10772t quote 10773s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10774t quote 10775b any 10776:quote 10777s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10778s/\[/\\&/g 10779s/\]/\\&/g 10780s/\$/$$/g 10781H 10782:any 10783${ 10784 g 10785 s/^\n// 10786 s/\n/ /g 10787 p 10788} 10789' 10790DEFS=`sed -n "$ac_script" confdefs.h` 10791 10792 10793ac_libobjs= 10794ac_ltlibobjs= 10795U= 10796for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10797 # 1. Remove the extension, and $U if already installed. 10798 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10799 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10800 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10801 # will be set to the directory where LIBOBJS objects are built. 10802 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10803 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10804done 10805LIBOBJS=$ac_libobjs 10806 10807LTLIBOBJS=$ac_ltlibobjs 10808 10809 10810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10811$as_echo_n "checking that generated files are newer than configure... " >&6; } 10812 if test -n "$am_sleep_pid"; then 10813 # Hide warnings about reused PIDs. 10814 wait $am_sleep_pid 2>/dev/null 10815 fi 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10817$as_echo "done" >&6; } 10818 if test -n "$EXEEXT"; then 10819 am__EXEEXT_TRUE= 10820 am__EXEEXT_FALSE='#' 10821else 10822 am__EXEEXT_TRUE='#' 10823 am__EXEEXT_FALSE= 10824fi 10825 10826if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10827 as_fn_error $? "conditional \"AMDEP\" was never defined. 10828Usually this means the macro was only invoked conditionally." "$LINENO" 5 10829fi 10830if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10831 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10832Usually this means the macro was only invoked conditionally." "$LINENO" 5 10833fi 10834 10835: "${CONFIG_STATUS=./config.status}" 10836ac_write_fail=0 10837ac_clean_files_save=$ac_clean_files 10838ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10839{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10840$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10841as_write_fail=0 10842cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10843#! $SHELL 10844# Generated by $as_me. 10845# Run this file to recreate the current configuration. 10846# Compiler output produced by configure, useful for debugging 10847# configure, is in config.log if it exists. 10848 10849debug=false 10850ac_cs_recheck=false 10851ac_cs_silent=false 10852 10853SHELL=\${CONFIG_SHELL-$SHELL} 10854export SHELL 10855_ASEOF 10856cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10857## -------------------- ## 10858## M4sh Initialization. ## 10859## -------------------- ## 10860 10861# Be more Bourne compatible 10862DUALCASE=1; export DUALCASE # for MKS sh 10863if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10864 emulate sh 10865 NULLCMD=: 10866 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10867 # is contrary to our usage. Disable this feature. 10868 alias -g '${1+"$@"}'='"$@"' 10869 setopt NO_GLOB_SUBST 10870else 10871 case `(set -o) 2>/dev/null` in #( 10872 *posix*) : 10873 set -o posix ;; #( 10874 *) : 10875 ;; 10876esac 10877fi 10878 10879 10880as_nl=' 10881' 10882export as_nl 10883# Printing a long string crashes Solaris 7 /usr/bin/printf. 10884as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10885as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10886as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10887# Prefer a ksh shell builtin over an external printf program on Solaris, 10888# but without wasting forks for bash or zsh. 10889if test -z "$BASH_VERSION$ZSH_VERSION" \ 10890 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10891 as_echo='print -r --' 10892 as_echo_n='print -rn --' 10893elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10894 as_echo='printf %s\n' 10895 as_echo_n='printf %s' 10896else 10897 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10898 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10899 as_echo_n='/usr/ucb/echo -n' 10900 else 10901 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10902 as_echo_n_body='eval 10903 arg=$1; 10904 case $arg in #( 10905 *"$as_nl"*) 10906 expr "X$arg" : "X\\(.*\\)$as_nl"; 10907 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10908 esac; 10909 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10910 ' 10911 export as_echo_n_body 10912 as_echo_n='sh -c $as_echo_n_body as_echo' 10913 fi 10914 export as_echo_body 10915 as_echo='sh -c $as_echo_body as_echo' 10916fi 10917 10918# The user is always right. 10919if test "${PATH_SEPARATOR+set}" != set; then 10920 PATH_SEPARATOR=: 10921 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10922 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10923 PATH_SEPARATOR=';' 10924 } 10925fi 10926 10927 10928# IFS 10929# We need space, tab and new line, in precisely that order. Quoting is 10930# there to prevent editors from complaining about space-tab. 10931# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10932# splitting by setting IFS to empty value.) 10933IFS=" "" $as_nl" 10934 10935# Find who we are. Look in the path if we contain no directory separator. 10936as_myself= 10937case $0 in #(( 10938 *[\\/]* ) as_myself=$0 ;; 10939 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10940for as_dir in $PATH 10941do 10942 IFS=$as_save_IFS 10943 test -z "$as_dir" && as_dir=. 10944 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10945 done 10946IFS=$as_save_IFS 10947 10948 ;; 10949esac 10950# We did not find ourselves, most probably we were run as `sh COMMAND' 10951# in which case we are not to be found in the path. 10952if test "x$as_myself" = x; then 10953 as_myself=$0 10954fi 10955if test ! -f "$as_myself"; then 10956 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10957 exit 1 10958fi 10959 10960# Unset variables that we do not need and which cause bugs (e.g. in 10961# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10962# suppresses any "Segmentation fault" message there. '((' could 10963# trigger a bug in pdksh 5.2.14. 10964for as_var in BASH_ENV ENV MAIL MAILPATH 10965do eval test x\${$as_var+set} = xset \ 10966 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10967done 10968PS1='$ ' 10969PS2='> ' 10970PS4='+ ' 10971 10972# NLS nuisances. 10973LC_ALL=C 10974export LC_ALL 10975LANGUAGE=C 10976export LANGUAGE 10977 10978# CDPATH. 10979(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10980 10981 10982# as_fn_error STATUS ERROR [LINENO LOG_FD] 10983# ---------------------------------------- 10984# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10985# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10986# script with STATUS, using 1 if that was 0. 10987as_fn_error () 10988{ 10989 as_status=$1; test $as_status -eq 0 && as_status=1 10990 if test "$4"; then 10991 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10992 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10993 fi 10994 $as_echo "$as_me: error: $2" >&2 10995 as_fn_exit $as_status 10996} # as_fn_error 10997 10998 10999# as_fn_set_status STATUS 11000# ----------------------- 11001# Set $? to STATUS, without forking. 11002as_fn_set_status () 11003{ 11004 return $1 11005} # as_fn_set_status 11006 11007# as_fn_exit STATUS 11008# ----------------- 11009# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11010as_fn_exit () 11011{ 11012 set +e 11013 as_fn_set_status $1 11014 exit $1 11015} # as_fn_exit 11016 11017# as_fn_unset VAR 11018# --------------- 11019# Portably unset VAR. 11020as_fn_unset () 11021{ 11022 { eval $1=; unset $1;} 11023} 11024as_unset=as_fn_unset 11025# as_fn_append VAR VALUE 11026# ---------------------- 11027# Append the text in VALUE to the end of the definition contained in VAR. Take 11028# advantage of any shell optimizations that allow amortized linear growth over 11029# repeated appends, instead of the typical quadratic growth present in naive 11030# implementations. 11031if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11032 eval 'as_fn_append () 11033 { 11034 eval $1+=\$2 11035 }' 11036else 11037 as_fn_append () 11038 { 11039 eval $1=\$$1\$2 11040 } 11041fi # as_fn_append 11042 11043# as_fn_arith ARG... 11044# ------------------ 11045# Perform arithmetic evaluation on the ARGs, and store the result in the 11046# global $as_val. Take advantage of shells that can avoid forks. The arguments 11047# must be portable across $(()) and expr. 11048if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11049 eval 'as_fn_arith () 11050 { 11051 as_val=$(( $* )) 11052 }' 11053else 11054 as_fn_arith () 11055 { 11056 as_val=`expr "$@" || test $? -eq 1` 11057 } 11058fi # as_fn_arith 11059 11060 11061if expr a : '\(a\)' >/dev/null 2>&1 && 11062 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11063 as_expr=expr 11064else 11065 as_expr=false 11066fi 11067 11068if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11069 as_basename=basename 11070else 11071 as_basename=false 11072fi 11073 11074if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11075 as_dirname=dirname 11076else 11077 as_dirname=false 11078fi 11079 11080as_me=`$as_basename -- "$0" || 11081$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11082 X"$0" : 'X\(//\)$' \| \ 11083 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11084$as_echo X/"$0" | 11085 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11086 s//\1/ 11087 q 11088 } 11089 /^X\/\(\/\/\)$/{ 11090 s//\1/ 11091 q 11092 } 11093 /^X\/\(\/\).*/{ 11094 s//\1/ 11095 q 11096 } 11097 s/.*/./; q'` 11098 11099# Avoid depending upon Character Ranges. 11100as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11101as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11102as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11103as_cr_digits='0123456789' 11104as_cr_alnum=$as_cr_Letters$as_cr_digits 11105 11106ECHO_C= ECHO_N= ECHO_T= 11107case `echo -n x` in #((((( 11108-n*) 11109 case `echo 'xy\c'` in 11110 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11111 xy) ECHO_C='\c';; 11112 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11113 ECHO_T=' ';; 11114 esac;; 11115*) 11116 ECHO_N='-n';; 11117esac 11118 11119rm -f conf$$ conf$$.exe conf$$.file 11120if test -d conf$$.dir; then 11121 rm -f conf$$.dir/conf$$.file 11122else 11123 rm -f conf$$.dir 11124 mkdir conf$$.dir 2>/dev/null 11125fi 11126if (echo >conf$$.file) 2>/dev/null; then 11127 if ln -s conf$$.file conf$$ 2>/dev/null; then 11128 as_ln_s='ln -s' 11129 # ... but there are two gotchas: 11130 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11131 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11132 # In both cases, we have to default to `cp -pR'. 11133 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11134 as_ln_s='cp -pR' 11135 elif ln conf$$.file conf$$ 2>/dev/null; then 11136 as_ln_s=ln 11137 else 11138 as_ln_s='cp -pR' 11139 fi 11140else 11141 as_ln_s='cp -pR' 11142fi 11143rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11144rmdir conf$$.dir 2>/dev/null 11145 11146 11147# as_fn_mkdir_p 11148# ------------- 11149# Create "$as_dir" as a directory, including parents if necessary. 11150as_fn_mkdir_p () 11151{ 11152 11153 case $as_dir in #( 11154 -*) as_dir=./$as_dir;; 11155 esac 11156 test -d "$as_dir" || eval $as_mkdir_p || { 11157 as_dirs= 11158 while :; do 11159 case $as_dir in #( 11160 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11161 *) as_qdir=$as_dir;; 11162 esac 11163 as_dirs="'$as_qdir' $as_dirs" 11164 as_dir=`$as_dirname -- "$as_dir" || 11165$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11166 X"$as_dir" : 'X\(//\)[^/]' \| \ 11167 X"$as_dir" : 'X\(//\)$' \| \ 11168 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11169$as_echo X"$as_dir" | 11170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11171 s//\1/ 11172 q 11173 } 11174 /^X\(\/\/\)[^/].*/{ 11175 s//\1/ 11176 q 11177 } 11178 /^X\(\/\/\)$/{ 11179 s//\1/ 11180 q 11181 } 11182 /^X\(\/\).*/{ 11183 s//\1/ 11184 q 11185 } 11186 s/.*/./; q'` 11187 test -d "$as_dir" && break 11188 done 11189 test -z "$as_dirs" || eval "mkdir $as_dirs" 11190 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11191 11192 11193} # as_fn_mkdir_p 11194if mkdir -p . 2>/dev/null; then 11195 as_mkdir_p='mkdir -p "$as_dir"' 11196else 11197 test -d ./-p && rmdir ./-p 11198 as_mkdir_p=false 11199fi 11200 11201 11202# as_fn_executable_p FILE 11203# ----------------------- 11204# Test if FILE is an executable regular file. 11205as_fn_executable_p () 11206{ 11207 test -f "$1" && test -x "$1" 11208} # as_fn_executable_p 11209as_test_x='test -x' 11210as_executable_p=as_fn_executable_p 11211 11212# Sed expression to map a string onto a valid CPP name. 11213as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11214 11215# Sed expression to map a string onto a valid variable name. 11216as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11217 11218 11219exec 6>&1 11220## ----------------------------------- ## 11221## Main body of $CONFIG_STATUS script. ## 11222## ----------------------------------- ## 11223_ASEOF 11224test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11225 11226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11227# Save the log message, to keep $0 and so on meaningful, and to 11228# report actual input values of CONFIG_FILES etc. instead of their 11229# values after options handling. 11230ac_log=" 11231This file was extended by xorg-cf-files $as_me 1.0.6, which was 11232generated by GNU Autoconf 2.69. Invocation command line was 11233 11234 CONFIG_FILES = $CONFIG_FILES 11235 CONFIG_HEADERS = $CONFIG_HEADERS 11236 CONFIG_LINKS = $CONFIG_LINKS 11237 CONFIG_COMMANDS = $CONFIG_COMMANDS 11238 $ $0 $@ 11239 11240on `(hostname || uname -n) 2>/dev/null | sed 1q` 11241" 11242 11243_ACEOF 11244 11245case $ac_config_files in *" 11246"*) set x $ac_config_files; shift; ac_config_files=$*;; 11247esac 11248 11249 11250 11251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11252# Files that config.status was made for. 11253config_files="$ac_config_files" 11254config_commands="$ac_config_commands" 11255 11256_ACEOF 11257 11258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11259ac_cs_usage="\ 11260\`$as_me' instantiates files and other configuration actions 11261from templates according to the current configuration. Unless the files 11262and actions are specified as TAGs, all are instantiated by default. 11263 11264Usage: $0 [OPTION]... [TAG]... 11265 11266 -h, --help print this help, then exit 11267 -V, --version print version number and configuration settings, then exit 11268 --config print configuration, then exit 11269 -q, --quiet, --silent 11270 do not print progress messages 11271 -d, --debug don't remove temporary files 11272 --recheck update $as_me by reconfiguring in the same conditions 11273 --file=FILE[:TEMPLATE] 11274 instantiate the configuration file FILE 11275 11276Configuration files: 11277$config_files 11278 11279Configuration commands: 11280$config_commands 11281 11282Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11283 11284_ACEOF 11285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11286ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11287ac_cs_version="\\ 11288xorg-cf-files config.status 1.0.6 11289configured by $0, generated by GNU Autoconf 2.69, 11290 with options \\"\$ac_cs_config\\" 11291 11292Copyright (C) 2012 Free Software Foundation, Inc. 11293This config.status script is free software; the Free Software Foundation 11294gives unlimited permission to copy, distribute and modify it." 11295 11296ac_pwd='$ac_pwd' 11297srcdir='$srcdir' 11298INSTALL='$INSTALL' 11299MKDIR_P='$MKDIR_P' 11300AWK='$AWK' 11301test -n "\$AWK" || AWK=awk 11302_ACEOF 11303 11304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11305# The default lists apply if the user does not specify any file. 11306ac_need_defaults=: 11307while test $# != 0 11308do 11309 case $1 in 11310 --*=?*) 11311 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11312 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11313 ac_shift=: 11314 ;; 11315 --*=) 11316 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11317 ac_optarg= 11318 ac_shift=: 11319 ;; 11320 *) 11321 ac_option=$1 11322 ac_optarg=$2 11323 ac_shift=shift 11324 ;; 11325 esac 11326 11327 case $ac_option in 11328 # Handling of the options. 11329 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11330 ac_cs_recheck=: ;; 11331 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11332 $as_echo "$ac_cs_version"; exit ;; 11333 --config | --confi | --conf | --con | --co | --c ) 11334 $as_echo "$ac_cs_config"; exit ;; 11335 --debug | --debu | --deb | --de | --d | -d ) 11336 debug=: ;; 11337 --file | --fil | --fi | --f ) 11338 $ac_shift 11339 case $ac_optarg in 11340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11341 '') as_fn_error $? "missing file argument" ;; 11342 esac 11343 as_fn_append CONFIG_FILES " '$ac_optarg'" 11344 ac_need_defaults=false;; 11345 --he | --h | --help | --hel | -h ) 11346 $as_echo "$ac_cs_usage"; exit ;; 11347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11348 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11349 ac_cs_silent=: ;; 11350 11351 # This is an error. 11352 -*) as_fn_error $? "unrecognized option: \`$1' 11353Try \`$0 --help' for more information." ;; 11354 11355 *) as_fn_append ac_config_targets " $1" 11356 ac_need_defaults=false ;; 11357 11358 esac 11359 shift 11360done 11361 11362ac_configure_extra_args= 11363 11364if $ac_cs_silent; then 11365 exec 6>/dev/null 11366 ac_configure_extra_args="$ac_configure_extra_args --silent" 11367fi 11368 11369_ACEOF 11370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11371if \$ac_cs_recheck; then 11372 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11373 shift 11374 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11375 CONFIG_SHELL='$SHELL' 11376 export CONFIG_SHELL 11377 exec "\$@" 11378fi 11379 11380_ACEOF 11381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11382exec 5>>config.log 11383{ 11384 echo 11385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11386## Running $as_me. ## 11387_ASBOX 11388 $as_echo "$ac_log" 11389} >&5 11390 11391_ACEOF 11392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11393# 11394# INIT-COMMANDS 11395# 11396AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11397 11398_ACEOF 11399 11400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11401 11402# Handling of arguments. 11403for ac_config_target in $ac_config_targets 11404do 11405 case $ac_config_target in 11406 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11407 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11408 "site.def") CONFIG_FILES="$CONFIG_FILES site.def" ;; 11409 11410 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11411 esac 11412done 11413 11414 11415# If the user did not use the arguments to specify the items to instantiate, 11416# then the envvar interface is used. Set only those that are not. 11417# We use the long form for the default assignment because of an extremely 11418# bizarre bug on SunOS 4.1.3. 11419if $ac_need_defaults; then 11420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11421 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11422fi 11423 11424# Have a temporary directory for convenience. Make it in the build tree 11425# simply because there is no reason against having it here, and in addition, 11426# creating and moving files from /tmp can sometimes cause problems. 11427# Hook for its removal unless debugging. 11428# Note that there is a small window in which the directory will not be cleaned: 11429# after its creation but before its name has been assigned to `$tmp'. 11430$debug || 11431{ 11432 tmp= ac_tmp= 11433 trap 'exit_status=$? 11434 : "${ac_tmp:=$tmp}" 11435 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11436' 0 11437 trap 'as_fn_exit 1' 1 2 13 15 11438} 11439# Create a (secure) tmp directory for tmp files. 11440 11441{ 11442 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11443 test -d "$tmp" 11444} || 11445{ 11446 tmp=./conf$$-$RANDOM 11447 (umask 077 && mkdir "$tmp") 11448} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11449ac_tmp=$tmp 11450 11451# Set up the scripts for CONFIG_FILES section. 11452# No need to generate them if there are no CONFIG_FILES. 11453# This happens for instance with `./config.status config.h'. 11454if test -n "$CONFIG_FILES"; then 11455 11456 11457ac_cr=`echo X | tr X '\015'` 11458# On cygwin, bash can eat \r inside `` if the user requested igncr. 11459# But we know of no other shell where ac_cr would be empty at this 11460# point, so we can use a bashism as a fallback. 11461if test "x$ac_cr" = x; then 11462 eval ac_cr=\$\'\\r\' 11463fi 11464ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11465if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11466 ac_cs_awk_cr='\\r' 11467else 11468 ac_cs_awk_cr=$ac_cr 11469fi 11470 11471echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11472_ACEOF 11473 11474 11475{ 11476 echo "cat >conf$$subs.awk <<_ACEOF" && 11477 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11478 echo "_ACEOF" 11479} >conf$$subs.sh || 11480 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11481ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11482ac_delim='%!_!# ' 11483for ac_last_try in false false false false false :; do 11484 . ./conf$$subs.sh || 11485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11486 11487 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11488 if test $ac_delim_n = $ac_delim_num; then 11489 break 11490 elif $ac_last_try; then 11491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11492 else 11493 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11494 fi 11495done 11496rm -f conf$$subs.sh 11497 11498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11499cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11500_ACEOF 11501sed -n ' 11502h 11503s/^/S["/; s/!.*/"]=/ 11504p 11505g 11506s/^[^!]*!// 11507:repl 11508t repl 11509s/'"$ac_delim"'$// 11510t delim 11511:nl 11512h 11513s/\(.\{148\}\)..*/\1/ 11514t more1 11515s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11516p 11517n 11518b repl 11519:more1 11520s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11521p 11522g 11523s/.\{148\}// 11524t nl 11525:delim 11526h 11527s/\(.\{148\}\)..*/\1/ 11528t more2 11529s/["\\]/\\&/g; s/^/"/; s/$/"/ 11530p 11531b 11532:more2 11533s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11534p 11535g 11536s/.\{148\}// 11537t delim 11538' <conf$$subs.awk | sed ' 11539/^[^""]/{ 11540 N 11541 s/\n// 11542} 11543' >>$CONFIG_STATUS || ac_write_fail=1 11544rm -f conf$$subs.awk 11545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11546_ACAWK 11547cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11548 for (key in S) S_is_set[key] = 1 11549 FS = "" 11550 11551} 11552{ 11553 line = $ 0 11554 nfields = split(line, field, "@") 11555 substed = 0 11556 len = length(field[1]) 11557 for (i = 2; i < nfields; i++) { 11558 key = field[i] 11559 keylen = length(key) 11560 if (S_is_set[key]) { 11561 value = S[key] 11562 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11563 len += length(value) + length(field[++i]) 11564 substed = 1 11565 } else 11566 len += 1 + keylen 11567 } 11568 11569 print line 11570} 11571 11572_ACAWK 11573_ACEOF 11574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11575if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11576 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11577else 11578 cat 11579fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11580 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11581_ACEOF 11582 11583# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11584# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11585# trailing colons and then remove the whole line if VPATH becomes empty 11586# (actually we leave an empty line to preserve line numbers). 11587if test "x$srcdir" = x.; then 11588 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11589h 11590s/// 11591s/^/:/ 11592s/[ ]*$/:/ 11593s/:\$(srcdir):/:/g 11594s/:\${srcdir}:/:/g 11595s/:@srcdir@:/:/g 11596s/^:*// 11597s/:*$// 11598x 11599s/\(=[ ]*\).*/\1/ 11600G 11601s/\n// 11602s/^[^=]*=[ ]*$// 11603}' 11604fi 11605 11606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11607fi # test -n "$CONFIG_FILES" 11608 11609 11610eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 11611shift 11612for ac_tag 11613do 11614 case $ac_tag in 11615 :[FHLC]) ac_mode=$ac_tag; continue;; 11616 esac 11617 case $ac_mode$ac_tag in 11618 :[FHL]*:*);; 11619 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11620 :[FH]-) ac_tag=-:-;; 11621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11622 esac 11623 ac_save_IFS=$IFS 11624 IFS=: 11625 set x $ac_tag 11626 IFS=$ac_save_IFS 11627 shift 11628 ac_file=$1 11629 shift 11630 11631 case $ac_mode in 11632 :L) ac_source=$1;; 11633 :[FH]) 11634 ac_file_inputs= 11635 for ac_f 11636 do 11637 case $ac_f in 11638 -) ac_f="$ac_tmp/stdin";; 11639 *) # Look for the file first in the build tree, then in the source tree 11640 # (if the path is not absolute). The absolute path cannot be DOS-style, 11641 # because $ac_f cannot contain `:'. 11642 test -f "$ac_f" || 11643 case $ac_f in 11644 [\\/$]*) false;; 11645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11646 esac || 11647 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11648 esac 11649 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11650 as_fn_append ac_file_inputs " '$ac_f'" 11651 done 11652 11653 # Let's still pretend it is `configure' which instantiates (i.e., don't 11654 # use $as_me), people would be surprised to read: 11655 # /* config.h. Generated by config.status. */ 11656 configure_input='Generated from '` 11657 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11658 `' by configure.' 11659 if test x"$ac_file" != x-; then 11660 configure_input="$ac_file. $configure_input" 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11662$as_echo "$as_me: creating $ac_file" >&6;} 11663 fi 11664 # Neutralize special characters interpreted by sed in replacement strings. 11665 case $configure_input in #( 11666 *\&* | *\|* | *\\* ) 11667 ac_sed_conf_input=`$as_echo "$configure_input" | 11668 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11669 *) ac_sed_conf_input=$configure_input;; 11670 esac 11671 11672 case $ac_tag in 11673 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11675 esac 11676 ;; 11677 esac 11678 11679 ac_dir=`$as_dirname -- "$ac_file" || 11680$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11681 X"$ac_file" : 'X\(//\)[^/]' \| \ 11682 X"$ac_file" : 'X\(//\)$' \| \ 11683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11684$as_echo X"$ac_file" | 11685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11686 s//\1/ 11687 q 11688 } 11689 /^X\(\/\/\)[^/].*/{ 11690 s//\1/ 11691 q 11692 } 11693 /^X\(\/\/\)$/{ 11694 s//\1/ 11695 q 11696 } 11697 /^X\(\/\).*/{ 11698 s//\1/ 11699 q 11700 } 11701 s/.*/./; q'` 11702 as_dir="$ac_dir"; as_fn_mkdir_p 11703 ac_builddir=. 11704 11705case "$ac_dir" in 11706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11707*) 11708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11709 # A ".." for each directory in $ac_dir_suffix. 11710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11711 case $ac_top_builddir_sub in 11712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11714 esac ;; 11715esac 11716ac_abs_top_builddir=$ac_pwd 11717ac_abs_builddir=$ac_pwd$ac_dir_suffix 11718# for backward compatibility: 11719ac_top_builddir=$ac_top_build_prefix 11720 11721case $srcdir in 11722 .) # We are building in place. 11723 ac_srcdir=. 11724 ac_top_srcdir=$ac_top_builddir_sub 11725 ac_abs_top_srcdir=$ac_pwd ;; 11726 [\\/]* | ?:[\\/]* ) # Absolute name. 11727 ac_srcdir=$srcdir$ac_dir_suffix; 11728 ac_top_srcdir=$srcdir 11729 ac_abs_top_srcdir=$srcdir ;; 11730 *) # Relative name. 11731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11732 ac_top_srcdir=$ac_top_build_prefix$srcdir 11733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11734esac 11735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11736 11737 11738 case $ac_mode in 11739 :F) 11740 # 11741 # CONFIG_FILE 11742 # 11743 11744 case $INSTALL in 11745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11746 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11747 esac 11748 ac_MKDIR_P=$MKDIR_P 11749 case $MKDIR_P in 11750 [\\/$]* | ?:[\\/]* ) ;; 11751 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11752 esac 11753_ACEOF 11754 11755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11756# If the template does not know about datarootdir, expand it. 11757# FIXME: This hack should be removed a few years after 2.60. 11758ac_datarootdir_hack=; ac_datarootdir_seen= 11759ac_sed_dataroot=' 11760/datarootdir/ { 11761 p 11762 q 11763} 11764/@datadir@/p 11765/@docdir@/p 11766/@infodir@/p 11767/@localedir@/p 11768/@mandir@/p' 11769case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11770*datarootdir*) ac_datarootdir_seen=yes;; 11771*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11773$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11774_ACEOF 11775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11776 ac_datarootdir_hack=' 11777 s&@datadir@&$datadir&g 11778 s&@docdir@&$docdir&g 11779 s&@infodir@&$infodir&g 11780 s&@localedir@&$localedir&g 11781 s&@mandir@&$mandir&g 11782 s&\\\${datarootdir}&$datarootdir&g' ;; 11783esac 11784_ACEOF 11785 11786# Neutralize VPATH when `$srcdir' = `.'. 11787# Shell code in configure.ac might set extrasub. 11788# FIXME: do we really want to maintain this feature? 11789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11790ac_sed_extra="$ac_vpsub 11791$extrasub 11792_ACEOF 11793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11794:t 11795/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11796s|@configure_input@|$ac_sed_conf_input|;t t 11797s&@top_builddir@&$ac_top_builddir_sub&;t t 11798s&@top_build_prefix@&$ac_top_build_prefix&;t t 11799s&@srcdir@&$ac_srcdir&;t t 11800s&@abs_srcdir@&$ac_abs_srcdir&;t t 11801s&@top_srcdir@&$ac_top_srcdir&;t t 11802s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11803s&@builddir@&$ac_builddir&;t t 11804s&@abs_builddir@&$ac_abs_builddir&;t t 11805s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11806s&@INSTALL@&$ac_INSTALL&;t t 11807s&@MKDIR_P@&$ac_MKDIR_P&;t t 11808$ac_datarootdir_hack 11809" 11810eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11811 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11812 11813test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11814 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11815 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11816 "$ac_tmp/out"`; test -z "$ac_out"; } && 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11818which seems to be undefined. Please make sure it is defined" >&5 11819$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11820which seems to be undefined. Please make sure it is defined" >&2;} 11821 11822 rm -f "$ac_tmp/stdin" 11823 case $ac_file in 11824 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11825 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11826 esac \ 11827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11828 ;; 11829 11830 11831 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11832$as_echo "$as_me: executing $ac_file commands" >&6;} 11833 ;; 11834 esac 11835 11836 11837 case $ac_file$ac_mode in 11838 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11839 # Older Autoconf quotes --file arguments for eval, but not when files 11840 # are listed without --file. Let's play safe and only enable the eval 11841 # if we detect the quoting. 11842 case $CONFIG_FILES in 11843 *\'*) eval set x "$CONFIG_FILES" ;; 11844 *) set x $CONFIG_FILES ;; 11845 esac 11846 shift 11847 for mf 11848 do 11849 # Strip MF so we end up with the name of the file. 11850 mf=`echo "$mf" | sed -e 's/:.*$//'` 11851 # Check whether this is an Automake generated Makefile or not. 11852 # We used to match only the files named 'Makefile.in', but 11853 # some people rename them; so instead we look at the file content. 11854 # Grep'ing the first line is not enough: some people post-process 11855 # each Makefile.in and add a new line on top of each file to say so. 11856 # Grep'ing the whole file is not good either: AIX grep has a line 11857 # limit of 2048, but all sed's we know have understand at least 4000. 11858 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11859 dirpart=`$as_dirname -- "$mf" || 11860$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11861 X"$mf" : 'X\(//\)[^/]' \| \ 11862 X"$mf" : 'X\(//\)$' \| \ 11863 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11864$as_echo X"$mf" | 11865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11866 s//\1/ 11867 q 11868 } 11869 /^X\(\/\/\)[^/].*/{ 11870 s//\1/ 11871 q 11872 } 11873 /^X\(\/\/\)$/{ 11874 s//\1/ 11875 q 11876 } 11877 /^X\(\/\).*/{ 11878 s//\1/ 11879 q 11880 } 11881 s/.*/./; q'` 11882 else 11883 continue 11884 fi 11885 # Extract the definition of DEPDIR, am__include, and am__quote 11886 # from the Makefile without running 'make'. 11887 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11888 test -z "$DEPDIR" && continue 11889 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11890 test -z "$am__include" && continue 11891 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11892 # Find all dependency output files, they are included files with 11893 # $(DEPDIR) in their names. We invoke sed twice because it is the 11894 # simplest approach to changing $(DEPDIR) to its actual value in the 11895 # expansion. 11896 for file in `sed -n " 11897 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11898 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 11899 # Make sure the directory exists. 11900 test -f "$dirpart/$file" && continue 11901 fdir=`$as_dirname -- "$file" || 11902$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11903 X"$file" : 'X\(//\)[^/]' \| \ 11904 X"$file" : 'X\(//\)$' \| \ 11905 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11906$as_echo X"$file" | 11907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11908 s//\1/ 11909 q 11910 } 11911 /^X\(\/\/\)[^/].*/{ 11912 s//\1/ 11913 q 11914 } 11915 /^X\(\/\/\)$/{ 11916 s//\1/ 11917 q 11918 } 11919 /^X\(\/\).*/{ 11920 s//\1/ 11921 q 11922 } 11923 s/.*/./; q'` 11924 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11925 # echo "creating $dirpart/$file" 11926 echo '# dummy' > "$dirpart/$file" 11927 done 11928 done 11929} 11930 ;; 11931 11932 esac 11933done # for ac_tag 11934 11935 11936as_fn_exit 0 11937_ACEOF 11938ac_clean_files=$ac_clean_files_save 11939 11940test $ac_write_fail = 0 || 11941 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11942 11943 11944# configure is writing to config.log, and then calls config.status. 11945# config.status does its own redirection, appending to config.log. 11946# Unfortunately, on DOS this fails, as config.log is still kept open 11947# by configure, so config.status won't be able to write to it; its 11948# output is simply discarded. So we exec the FD to /dev/null, 11949# effectively closing config.log, so it can be properly (re)opened and 11950# appended to by config.status. When coming back to configure, we 11951# need to make the FD available again. 11952if test "$no_create" != yes; then 11953 ac_cs_success=: 11954 ac_config_status_args= 11955 test "$silent" = yes && 11956 ac_config_status_args="$ac_config_status_args --quiet" 11957 exec 5>/dev/null 11958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11959 exec 5>>config.log 11960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11961 # would make configure fail if this is the last instruction. 11962 $ac_cs_success || as_fn_exit 1 11963fi 11964if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11966$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11967fi 11968 11969