configure revision 05641e18
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xev 1.2.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xev' 583PACKAGE_TARNAME='xev' 584PACKAGE_VERSION='1.2.2' 585PACKAGE_STRING='xev 1.2.2' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630XEV_LIBS 631XEV_CFLAGS 632MAN_SUBSTS 633XORG_MAN_PAGE 634ADMIN_MAN_DIR 635DRIVER_MAN_DIR 636MISC_MAN_DIR 637FILE_MAN_DIR 638LIB_MAN_DIR 639APP_MAN_DIR 640ADMIN_MAN_SUFFIX 641DRIVER_MAN_SUFFIX 642MISC_MAN_SUFFIX 643FILE_MAN_SUFFIX 644LIB_MAN_SUFFIX 645APP_MAN_SUFFIX 646SED 647host_os 648host_vendor 649host_cpu 650host 651build_os 652build_vendor 653build_cpu 654build 655INSTALL_CMD 656PKG_CONFIG 657CHANGELOG_CMD 658STRICT_CFLAGS 659CWARNFLAGS 660BASE_CFLAGS 661AM_BACKSLASH 662AM_DEFAULT_VERBOSITY 663AM_DEFAULT_V 664AM_V 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__quote 673am__include 674DEPDIR 675am__untar 676am__tar 677AMTAR 678am__leading_dot 679SET_MAKE 680AWK 681mkdir_p 682MKDIR_P 683INSTALL_STRIP_PROGRAM 684STRIP 685install_sh 686MAKEINFO 687AUTOHEADER 688AUTOMAKE 689AUTOCONF 690ACLOCAL 691VERSION 692PACKAGE 693CYGPATH_W 694am__isrc 695INSTALL_DATA 696INSTALL_SCRIPT 697INSTALL_PROGRAM 698EGREP 699GREP 700CPP 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708target_alias 709host_alias 710build_alias 711LIBS 712ECHO_T 713ECHO_N 714ECHO_C 715DEFS 716mandir 717localedir 718libdir 719psdir 720pdfdir 721dvidir 722htmldir 723infodir 724docdir 725oldincludedir 726includedir 727localstatedir 728sharedstatedir 729sysconfdir 730datadir 731datarootdir 732libexecdir 733sbindir 734bindir 735program_transform_name 736prefix 737exec_prefix 738PACKAGE_URL 739PACKAGE_BUGREPORT 740PACKAGE_STRING 741PACKAGE_VERSION 742PACKAGE_TARNAME 743PACKAGE_NAME 744PATH_SEPARATOR 745SHELL' 746ac_subst_files='' 747ac_user_opts=' 748enable_option_checking 749enable_dependency_tracking 750enable_silent_rules 751enable_selective_werror 752enable_strict_compilation 753' 754 ac_precious_vars='build_alias 755host_alias 756target_alias 757CC 758CFLAGS 759LDFLAGS 760LIBS 761CPPFLAGS 762CPP 763PKG_CONFIG 764XEV_CFLAGS 765XEV_LIBS' 766 767 768# Initialize some variables set by options. 769ac_init_help= 770ac_init_version=false 771ac_unrecognized_opts= 772ac_unrecognized_sep= 773# The variables have the same names as the options, with 774# dashes changed to underlines. 775cache_file=/dev/null 776exec_prefix=NONE 777no_create= 778no_recursion= 779prefix=NONE 780program_prefix=NONE 781program_suffix=NONE 782program_transform_name=s,x,x, 783silent= 784site= 785srcdir= 786verbose= 787x_includes=NONE 788x_libraries=NONE 789 790# Installation directory options. 791# These are left unexpanded so users can "make install exec_prefix=/foo" 792# and all the variables that are supposed to be based on exec_prefix 793# by default will actually change. 794# Use braces instead of parens because sh, perl, etc. also accept them. 795# (The list follows the same order as the GNU Coding Standards.) 796bindir='${exec_prefix}/bin' 797sbindir='${exec_prefix}/sbin' 798libexecdir='${exec_prefix}/libexec' 799datarootdir='${prefix}/share' 800datadir='${datarootdir}' 801sysconfdir='${prefix}/etc' 802sharedstatedir='${prefix}/com' 803localstatedir='${prefix}/var' 804includedir='${prefix}/include' 805oldincludedir='/usr/include' 806docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 807infodir='${datarootdir}/info' 808htmldir='${docdir}' 809dvidir='${docdir}' 810pdfdir='${docdir}' 811psdir='${docdir}' 812libdir='${exec_prefix}/lib' 813localedir='${datarootdir}/locale' 814mandir='${datarootdir}/man' 815 816ac_prev= 817ac_dashdash= 818for ac_option 819do 820 # If the previous option needs an argument, assign it. 821 if test -n "$ac_prev"; then 822 eval $ac_prev=\$ac_option 823 ac_prev= 824 continue 825 fi 826 827 case $ac_option in 828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 829 *=) ac_optarg= ;; 830 *) ac_optarg=yes ;; 831 esac 832 833 # Accept the important Cygnus configure options, so we can diagnose typos. 834 835 case $ac_dashdash$ac_option in 836 --) 837 ac_dashdash=yes ;; 838 839 -bindir | --bindir | --bindi | --bind | --bin | --bi) 840 ac_prev=bindir ;; 841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 842 bindir=$ac_optarg ;; 843 844 -build | --build | --buil | --bui | --bu) 845 ac_prev=build_alias ;; 846 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 847 build_alias=$ac_optarg ;; 848 849 -cache-file | --cache-file | --cache-fil | --cache-fi \ 850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 851 ac_prev=cache_file ;; 852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 854 cache_file=$ac_optarg ;; 855 856 --config-cache | -C) 857 cache_file=config.cache ;; 858 859 -datadir | --datadir | --datadi | --datad) 860 ac_prev=datadir ;; 861 -datadir=* | --datadir=* | --datadi=* | --datad=*) 862 datadir=$ac_optarg ;; 863 864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 865 | --dataroo | --dataro | --datar) 866 ac_prev=datarootdir ;; 867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 869 datarootdir=$ac_optarg ;; 870 871 -disable-* | --disable-*) 872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 873 # Reject names that are not valid shell variable names. 874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 875 as_fn_error $? "invalid feature name: $ac_useropt" 876 ac_useropt_orig=$ac_useropt 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878 case $ac_user_opts in 879 *" 880"enable_$ac_useropt" 881"*) ;; 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 883 ac_unrecognized_sep=', ';; 884 esac 885 eval enable_$ac_useropt=no ;; 886 887 -docdir | --docdir | --docdi | --doc | --do) 888 ac_prev=docdir ;; 889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 890 docdir=$ac_optarg ;; 891 892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 893 ac_prev=dvidir ;; 894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 895 dvidir=$ac_optarg ;; 896 897 -enable-* | --enable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=\$ac_optarg ;; 912 913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 915 | --exec | --exe | --ex) 916 ac_prev=exec_prefix ;; 917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 919 | --exec=* | --exe=* | --ex=*) 920 exec_prefix=$ac_optarg ;; 921 922 -gas | --gas | --ga | --g) 923 # Obsolete; use --with-gas. 924 with_gas=yes ;; 925 926 -help | --help | --hel | --he | -h) 927 ac_init_help=long ;; 928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 929 ac_init_help=recursive ;; 930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 931 ac_init_help=short ;; 932 933 -host | --host | --hos | --ho) 934 ac_prev=host_alias ;; 935 -host=* | --host=* | --hos=* | --ho=*) 936 host_alias=$ac_optarg ;; 937 938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 939 ac_prev=htmldir ;; 940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 941 | --ht=*) 942 htmldir=$ac_optarg ;; 943 944 -includedir | --includedir | --includedi | --included | --include \ 945 | --includ | --inclu | --incl | --inc) 946 ac_prev=includedir ;; 947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 948 | --includ=* | --inclu=* | --incl=* | --inc=*) 949 includedir=$ac_optarg ;; 950 951 -infodir | --infodir | --infodi | --infod | --info | --inf) 952 ac_prev=infodir ;; 953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 954 infodir=$ac_optarg ;; 955 956 -libdir | --libdir | --libdi | --libd) 957 ac_prev=libdir ;; 958 -libdir=* | --libdir=* | --libdi=* | --libd=*) 959 libdir=$ac_optarg ;; 960 961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 962 | --libexe | --libex | --libe) 963 ac_prev=libexecdir ;; 964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 965 | --libexe=* | --libex=* | --libe=*) 966 libexecdir=$ac_optarg ;; 967 968 -localedir | --localedir | --localedi | --localed | --locale) 969 ac_prev=localedir ;; 970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 971 localedir=$ac_optarg ;; 972 973 -localstatedir | --localstatedir | --localstatedi | --localstated \ 974 | --localstate | --localstat | --localsta | --localst | --locals) 975 ac_prev=localstatedir ;; 976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 978 localstatedir=$ac_optarg ;; 979 980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 981 ac_prev=mandir ;; 982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 983 mandir=$ac_optarg ;; 984 985 -nfp | --nfp | --nf) 986 # Obsolete; use --without-fp. 987 with_fp=no ;; 988 989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 990 | --no-cr | --no-c | -n) 991 no_create=yes ;; 992 993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 995 no_recursion=yes ;; 996 997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 999 | --oldin | --oldi | --old | --ol | --o) 1000 ac_prev=oldincludedir ;; 1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1004 oldincludedir=$ac_optarg ;; 1005 1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1007 ac_prev=prefix ;; 1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1009 prefix=$ac_optarg ;; 1010 1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1012 | --program-pre | --program-pr | --program-p) 1013 ac_prev=program_prefix ;; 1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1016 program_prefix=$ac_optarg ;; 1017 1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1019 | --program-suf | --program-su | --program-s) 1020 ac_prev=program_suffix ;; 1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1023 program_suffix=$ac_optarg ;; 1024 1025 -program-transform-name | --program-transform-name \ 1026 | --program-transform-nam | --program-transform-na \ 1027 | --program-transform-n | --program-transform- \ 1028 | --program-transform | --program-transfor \ 1029 | --program-transfo | --program-transf \ 1030 | --program-trans | --program-tran \ 1031 | --progr-tra | --program-tr | --program-t) 1032 ac_prev=program_transform_name ;; 1033 -program-transform-name=* | --program-transform-name=* \ 1034 | --program-transform-nam=* | --program-transform-na=* \ 1035 | --program-transform-n=* | --program-transform-=* \ 1036 | --program-transform=* | --program-transfor=* \ 1037 | --program-transfo=* | --program-transf=* \ 1038 | --program-trans=* | --program-tran=* \ 1039 | --progr-tra=* | --program-tr=* | --program-t=*) 1040 program_transform_name=$ac_optarg ;; 1041 1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1043 ac_prev=pdfdir ;; 1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1045 pdfdir=$ac_optarg ;; 1046 1047 -psdir | --psdir | --psdi | --psd | --ps) 1048 ac_prev=psdir ;; 1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1050 psdir=$ac_optarg ;; 1051 1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1053 | -silent | --silent | --silen | --sile | --sil) 1054 silent=yes ;; 1055 1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1057 ac_prev=sbindir ;; 1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1059 | --sbi=* | --sb=*) 1060 sbindir=$ac_optarg ;; 1061 1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1064 | --sharedst | --shareds | --shared | --share | --shar \ 1065 | --sha | --sh) 1066 ac_prev=sharedstatedir ;; 1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1070 | --sha=* | --sh=*) 1071 sharedstatedir=$ac_optarg ;; 1072 1073 -site | --site | --sit) 1074 ac_prev=site ;; 1075 -site=* | --site=* | --sit=*) 1076 site=$ac_optarg ;; 1077 1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1079 ac_prev=srcdir ;; 1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1081 srcdir=$ac_optarg ;; 1082 1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1084 | --syscon | --sysco | --sysc | --sys | --sy) 1085 ac_prev=sysconfdir ;; 1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1088 sysconfdir=$ac_optarg ;; 1089 1090 -target | --target | --targe | --targ | --tar | --ta | --t) 1091 ac_prev=target_alias ;; 1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1093 target_alias=$ac_optarg ;; 1094 1095 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1096 verbose=yes ;; 1097 1098 -version | --version | --versio | --versi | --vers | -V) 1099 ac_init_version=: ;; 1100 1101 -with-* | --with-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=\$ac_optarg ;; 1116 1117 -without-* | --without-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=no ;; 1132 1133 --x) 1134 # Obsolete; use --with-x. 1135 with_x=yes ;; 1136 1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1138 | --x-incl | --x-inc | --x-in | --x-i) 1139 ac_prev=x_includes ;; 1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1142 x_includes=$ac_optarg ;; 1143 1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1146 ac_prev=x_libraries ;; 1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1149 x_libraries=$ac_optarg ;; 1150 1151 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1152Try \`$0 --help' for more information" 1153 ;; 1154 1155 *=*) 1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1157 # Reject names that are not valid shell variable names. 1158 case $ac_envvar in #( 1159 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1161 esac 1162 eval $ac_envvar=\$ac_optarg 1163 export $ac_envvar ;; 1164 1165 *) 1166 # FIXME: should be removed in autoconf 3.0. 1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1171 ;; 1172 1173 esac 1174done 1175 1176if test -n "$ac_prev"; then 1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1178 as_fn_error $? "missing argument to $ac_option" 1179fi 1180 1181if test -n "$ac_unrecognized_opts"; then 1182 case $enable_option_checking in 1183 no) ;; 1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1186 esac 1187fi 1188 1189# Check all directory arguments for consistency. 1190for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1191 datadir sysconfdir sharedstatedir localstatedir includedir \ 1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1193 libdir localedir mandir 1194do 1195 eval ac_val=\$$ac_var 1196 # Remove trailing slashes. 1197 case $ac_val in 1198 */ ) 1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1200 eval $ac_var=\$ac_val;; 1201 esac 1202 # Be sure to have absolute directory names. 1203 case $ac_val in 1204 [\\/$]* | ?:[\\/]* ) continue;; 1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1206 esac 1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1208done 1209 1210# There might be people who depend on the old broken behavior: `$host' 1211# used to hold the argument of --host etc. 1212# FIXME: To remove some day. 1213build=$build_alias 1214host=$host_alias 1215target=$target_alias 1216 1217# FIXME: To remove some day. 1218if test "x$host_alias" != x; then 1219 if test "x$build_alias" = x; then 1220 cross_compiling=maybe 1221 elif test "x$build_alias" != "x$host_alias"; then 1222 cross_compiling=yes 1223 fi 1224fi 1225 1226ac_tool_prefix= 1227test -n "$host_alias" && ac_tool_prefix=$host_alias- 1228 1229test "$silent" = yes && exec 6>/dev/null 1230 1231 1232ac_pwd=`pwd` && test -n "$ac_pwd" && 1233ac_ls_di=`ls -di .` && 1234ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1235 as_fn_error $? "working directory cannot be determined" 1236test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1237 as_fn_error $? "pwd does not report name of working directory" 1238 1239 1240# Find the source files, if location was not specified. 1241if test -z "$srcdir"; then 1242 ac_srcdir_defaulted=yes 1243 # Try the directory containing this script, then the parent directory. 1244 ac_confdir=`$as_dirname -- "$as_myself" || 1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1246 X"$as_myself" : 'X\(//\)[^/]' \| \ 1247 X"$as_myself" : 'X\(//\)$' \| \ 1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1249$as_echo X"$as_myself" | 1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)[^/].*/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\).*/{ 1263 s//\1/ 1264 q 1265 } 1266 s/.*/./; q'` 1267 srcdir=$ac_confdir 1268 if test ! -r "$srcdir/$ac_unique_file"; then 1269 srcdir=.. 1270 fi 1271else 1272 ac_srcdir_defaulted=no 1273fi 1274if test ! -r "$srcdir/$ac_unique_file"; then 1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1277fi 1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1279ac_abs_confdir=`( 1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1281 pwd)` 1282# When building in place, set srcdir=. 1283if test "$ac_abs_confdir" = "$ac_pwd"; then 1284 srcdir=. 1285fi 1286# Remove unnecessary trailing slashes from srcdir. 1287# Double slashes in file names in object file debugging info 1288# mess up M-x gdb in Emacs. 1289case $srcdir in 1290*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1291esac 1292for ac_var in $ac_precious_vars; do 1293 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_env_${ac_var}_value=\$${ac_var} 1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1297done 1298 1299# 1300# Report the --help message. 1301# 1302if test "$ac_init_help" = "long"; then 1303 # Omit some internal or obsolete options to make the list less imposing. 1304 # This message is too long to be a string in the A/UX 3.1 sh. 1305 cat <<_ACEOF 1306\`configure' configures xev 1.2.2 to adapt to many kinds of systems. 1307 1308Usage: $0 [OPTION]... [VAR=VALUE]... 1309 1310To assign environment variables (e.g., CC, CFLAGS...), specify them as 1311VAR=VALUE. See below for descriptions of some of the useful variables. 1312 1313Defaults for the options are specified in brackets. 1314 1315Configuration: 1316 -h, --help display this help and exit 1317 --help=short display options specific to this package 1318 --help=recursive display the short help of all the included packages 1319 -V, --version display version information and exit 1320 -q, --quiet, --silent do not print \`checking ...' messages 1321 --cache-file=FILE cache test results in FILE [disabled] 1322 -C, --config-cache alias for \`--cache-file=config.cache' 1323 -n, --no-create do not create output files 1324 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1325 1326Installation directories: 1327 --prefix=PREFIX install architecture-independent files in PREFIX 1328 [$ac_default_prefix] 1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1330 [PREFIX] 1331 1332By default, \`make install' will install all the files in 1333\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1334an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1335for instance \`--prefix=\$HOME'. 1336 1337For better control, use the options below. 1338 1339Fine tuning of the installation directories: 1340 --bindir=DIR user executables [EPREFIX/bin] 1341 --sbindir=DIR system admin executables [EPREFIX/sbin] 1342 --libexecdir=DIR program executables [EPREFIX/libexec] 1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1346 --libdir=DIR object code libraries [EPREFIX/lib] 1347 --includedir=DIR C header files [PREFIX/include] 1348 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1351 --infodir=DIR info documentation [DATAROOTDIR/info] 1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1353 --mandir=DIR man documentation [DATAROOTDIR/man] 1354 --docdir=DIR documentation root [DATAROOTDIR/doc/xev] 1355 --htmldir=DIR html documentation [DOCDIR] 1356 --dvidir=DIR dvi documentation [DOCDIR] 1357 --pdfdir=DIR pdf documentation [DOCDIR] 1358 --psdir=DIR ps documentation [DOCDIR] 1359_ACEOF 1360 1361 cat <<\_ACEOF 1362 1363Program names: 1364 --program-prefix=PREFIX prepend PREFIX to installed program names 1365 --program-suffix=SUFFIX append SUFFIX to installed program names 1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1367 1368System types: 1369 --build=BUILD configure for building on BUILD [guessed] 1370 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1371_ACEOF 1372fi 1373 1374if test -n "$ac_init_help"; then 1375 case $ac_init_help in 1376 short | recursive ) echo "Configuration of xev 1.2.2:";; 1377 esac 1378 cat <<\_ACEOF 1379 1380Optional Features: 1381 --disable-option-checking ignore unrecognized --enable/--with options 1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1384 --enable-dependency-tracking 1385 do not reject slow dependency extractors 1386 --disable-dependency-tracking 1387 speeds up one-time build 1388 --enable-silent-rules less verbose build output (undo: "make V=1") 1389 --disable-silent-rules verbose build output (undo: "make V=0") 1390 --disable-selective-werror 1391 Turn off selective compiler errors. (default: 1392 enabled) 1393 --enable-strict-compilation 1394 Enable all warnings from compiler and make them 1395 errors (default: disabled) 1396 1397Some influential environment variables: 1398 CC C compiler command 1399 CFLAGS C compiler flags 1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1401 nonstandard directory <lib dir> 1402 LIBS libraries to pass to the linker, e.g. -l<library> 1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1404 you have headers in a nonstandard directory <include dir> 1405 CPP C preprocessor 1406 PKG_CONFIG path to pkg-config utility 1407 XEV_CFLAGS C compiler flags for XEV, overriding pkg-config 1408 XEV_LIBS linker flags for XEV, overriding pkg-config 1409 1410Use these variables to override the choices made by `configure' or to help 1411it to find libraries and programs with nonstandard names/locations. 1412 1413Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1414_ACEOF 1415ac_status=$? 1416fi 1417 1418if test "$ac_init_help" = "recursive"; then 1419 # If there are subdirs, report their specific --help. 1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1421 test -d "$ac_dir" || 1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1423 continue 1424 ac_builddir=. 1425 1426case "$ac_dir" in 1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1428*) 1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1430 # A ".." for each directory in $ac_dir_suffix. 1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1432 case $ac_top_builddir_sub in 1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1435 esac ;; 1436esac 1437ac_abs_top_builddir=$ac_pwd 1438ac_abs_builddir=$ac_pwd$ac_dir_suffix 1439# for backward compatibility: 1440ac_top_builddir=$ac_top_build_prefix 1441 1442case $srcdir in 1443 .) # We are building in place. 1444 ac_srcdir=. 1445 ac_top_srcdir=$ac_top_builddir_sub 1446 ac_abs_top_srcdir=$ac_pwd ;; 1447 [\\/]* | ?:[\\/]* ) # Absolute name. 1448 ac_srcdir=$srcdir$ac_dir_suffix; 1449 ac_top_srcdir=$srcdir 1450 ac_abs_top_srcdir=$srcdir ;; 1451 *) # Relative name. 1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1453 ac_top_srcdir=$ac_top_build_prefix$srcdir 1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1455esac 1456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1457 1458 cd "$ac_dir" || { ac_status=$?; continue; } 1459 # Check for guested configure. 1460 if test -f "$ac_srcdir/configure.gnu"; then 1461 echo && 1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1463 elif test -f "$ac_srcdir/configure"; then 1464 echo && 1465 $SHELL "$ac_srcdir/configure" --help=recursive 1466 else 1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1468 fi || ac_status=$? 1469 cd "$ac_pwd" || { ac_status=$?; break; } 1470 done 1471fi 1472 1473test -n "$ac_init_help" && exit $ac_status 1474if $ac_init_version; then 1475 cat <<\_ACEOF 1476xev configure 1.2.2 1477generated by GNU Autoconf 2.69 1478 1479Copyright (C) 2012 Free Software Foundation, Inc. 1480This configure script is free software; the Free Software Foundation 1481gives unlimited permission to copy, distribute and modify it. 1482_ACEOF 1483 exit 1484fi 1485 1486## ------------------------ ## 1487## Autoconf initialization. ## 1488## ------------------------ ## 1489 1490# ac_fn_c_try_compile LINENO 1491# -------------------------- 1492# Try to compile conftest.$ac_ext, and return whether this succeeded. 1493ac_fn_c_try_compile () 1494{ 1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1496 rm -f conftest.$ac_objext 1497 if { { ac_try="$ac_compile" 1498case "(($ac_try" in 1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1500 *) ac_try_echo=$ac_try;; 1501esac 1502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1503$as_echo "$ac_try_echo"; } >&5 1504 (eval "$ac_compile") 2>conftest.err 1505 ac_status=$? 1506 if test -s conftest.err; then 1507 grep -v '^ *+' conftest.err >conftest.er1 1508 cat conftest.er1 >&5 1509 mv -f conftest.er1 conftest.err 1510 fi 1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1512 test $ac_status = 0; } && { 1513 test -z "$ac_c_werror_flag" || 1514 test ! -s conftest.err 1515 } && test -s conftest.$ac_objext; then : 1516 ac_retval=0 1517else 1518 $as_echo "$as_me: failed program was:" >&5 1519sed 's/^/| /' conftest.$ac_ext >&5 1520 1521 ac_retval=1 1522fi 1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1524 as_fn_set_status $ac_retval 1525 1526} # ac_fn_c_try_compile 1527 1528# ac_fn_c_try_cpp LINENO 1529# ---------------------- 1530# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1531ac_fn_c_try_cpp () 1532{ 1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1534 if { { ac_try="$ac_cpp conftest.$ac_ext" 1535case "(($ac_try" in 1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1537 *) ac_try_echo=$ac_try;; 1538esac 1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1540$as_echo "$ac_try_echo"; } >&5 1541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1542 ac_status=$? 1543 if test -s conftest.err; then 1544 grep -v '^ *+' conftest.err >conftest.er1 1545 cat conftest.er1 >&5 1546 mv -f conftest.er1 conftest.err 1547 fi 1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1549 test $ac_status = 0; } > conftest.i && { 1550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1551 test ! -s conftest.err 1552 }; then : 1553 ac_retval=0 1554else 1555 $as_echo "$as_me: failed program was:" >&5 1556sed 's/^/| /' conftest.$ac_ext >&5 1557 1558 ac_retval=1 1559fi 1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1561 as_fn_set_status $ac_retval 1562 1563} # ac_fn_c_try_cpp 1564 1565# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1566# ------------------------------------------------------- 1567# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1568# the include files in INCLUDES and setting the cache variable VAR 1569# accordingly. 1570ac_fn_c_check_header_mongrel () 1571{ 1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1573 if eval \${$3+:} false; then : 1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1575$as_echo_n "checking for $2... " >&6; } 1576if eval \${$3+:} false; then : 1577 $as_echo_n "(cached) " >&6 1578fi 1579eval ac_res=\$$3 1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1581$as_echo "$ac_res" >&6; } 1582else 1583 # Is the header compilable? 1584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1585$as_echo_n "checking $2 usability... " >&6; } 1586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1587/* end confdefs.h. */ 1588$4 1589#include <$2> 1590_ACEOF 1591if ac_fn_c_try_compile "$LINENO"; then : 1592 ac_header_compiler=yes 1593else 1594 ac_header_compiler=no 1595fi 1596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1598$as_echo "$ac_header_compiler" >&6; } 1599 1600# Is the header present? 1601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1602$as_echo_n "checking $2 presence... " >&6; } 1603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1604/* end confdefs.h. */ 1605#include <$2> 1606_ACEOF 1607if ac_fn_c_try_cpp "$LINENO"; then : 1608 ac_header_preproc=yes 1609else 1610 ac_header_preproc=no 1611fi 1612rm -f conftest.err conftest.i conftest.$ac_ext 1613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1614$as_echo "$ac_header_preproc" >&6; } 1615 1616# So? What about this header? 1617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1618 yes:no: ) 1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1620$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1622$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1623 ;; 1624 no:yes:* ) 1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1626$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1628$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1630$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1632$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1634$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1635( $as_echo "## ---------------------------------------------------------------------- ## 1636## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1637## ---------------------------------------------------------------------- ##" 1638 ) | sed "s/^/$as_me: WARNING: /" >&2 1639 ;; 1640esac 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1642$as_echo_n "checking for $2... " >&6; } 1643if eval \${$3+:} false; then : 1644 $as_echo_n "(cached) " >&6 1645else 1646 eval "$3=\$ac_header_compiler" 1647fi 1648eval ac_res=\$$3 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1650$as_echo "$ac_res" >&6; } 1651fi 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 1654} # ac_fn_c_check_header_mongrel 1655 1656# ac_fn_c_try_run LINENO 1657# ---------------------- 1658# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1659# that executables *can* be run. 1660ac_fn_c_try_run () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 if { { ac_try="$ac_link" 1664case "(($ac_try" in 1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1666 *) ac_try_echo=$ac_try;; 1667esac 1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1669$as_echo "$ac_try_echo"; } >&5 1670 (eval "$ac_link") 2>&5 1671 ac_status=$? 1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1673 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1674 { { case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679$as_echo "$ac_try_echo"; } >&5 1680 (eval "$ac_try") 2>&5 1681 ac_status=$? 1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; }; }; then : 1684 ac_retval=0 1685else 1686 $as_echo "$as_me: program exited with status $ac_status" >&5 1687 $as_echo "$as_me: failed program was:" >&5 1688sed 's/^/| /' conftest.$ac_ext >&5 1689 1690 ac_retval=$ac_status 1691fi 1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_run 1697 1698# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1699# ------------------------------------------------------- 1700# Tests whether HEADER exists and can be compiled using the include files in 1701# INCLUDES, setting the cache variable VAR accordingly. 1702ac_fn_c_check_header_compile () 1703{ 1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1706$as_echo_n "checking for $2... " >&6; } 1707if eval \${$3+:} false; then : 1708 $as_echo_n "(cached) " >&6 1709else 1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711/* end confdefs.h. */ 1712$4 1713#include <$2> 1714_ACEOF 1715if ac_fn_c_try_compile "$LINENO"; then : 1716 eval "$3=yes" 1717else 1718 eval "$3=no" 1719fi 1720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1721fi 1722eval ac_res=\$$3 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1724$as_echo "$ac_res" >&6; } 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 1727} # ac_fn_c_check_header_compile 1728 1729# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1730# --------------------------------------------- 1731# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1732# accordingly. 1733ac_fn_c_check_decl () 1734{ 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 as_decl_name=`echo $2|sed 's/ *(.*//'` 1737 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1739$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1740if eval \${$3+:} false; then : 1741 $as_echo_n "(cached) " >&6 1742else 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745$4 1746int 1747main () 1748{ 1749#ifndef $as_decl_name 1750#ifdef __cplusplus 1751 (void) $as_decl_use; 1752#else 1753 (void) $as_decl_name; 1754#endif 1755#endif 1756 1757 ; 1758 return 0; 1759} 1760_ACEOF 1761if ac_fn_c_try_compile "$LINENO"; then : 1762 eval "$3=yes" 1763else 1764 eval "$3=no" 1765fi 1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1767fi 1768eval ac_res=\$$3 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770$as_echo "$ac_res" >&6; } 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 1773} # ac_fn_c_check_decl 1774 1775# ac_fn_c_try_link LINENO 1776# ----------------------- 1777# Try to link conftest.$ac_ext, and return whether this succeeded. 1778ac_fn_c_try_link () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 rm -f conftest.$ac_objext conftest$ac_exeext 1782 if { { ac_try="$ac_link" 1783case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786esac 1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788$as_echo "$ac_try_echo"; } >&5 1789 (eval "$ac_link") 2>conftest.err 1790 ac_status=$? 1791 if test -s conftest.err; then 1792 grep -v '^ *+' conftest.err >conftest.er1 1793 cat conftest.er1 >&5 1794 mv -f conftest.er1 conftest.err 1795 fi 1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } && { 1798 test -z "$ac_c_werror_flag" || 1799 test ! -s conftest.err 1800 } && test -s conftest$ac_exeext && { 1801 test "$cross_compiling" = yes || 1802 test -x conftest$ac_exeext 1803 }; then : 1804 ac_retval=0 1805else 1806 $as_echo "$as_me: failed program was:" >&5 1807sed 's/^/| /' conftest.$ac_ext >&5 1808 1809 ac_retval=1 1810fi 1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1813 # interfere with the next link command; also delete a directory that is 1814 # left behind by Apple's compiler. We do this before executing the actions. 1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1817 as_fn_set_status $ac_retval 1818 1819} # ac_fn_c_try_link 1820cat >config.log <<_ACEOF 1821This file contains any messages produced by compilers while 1822running configure, to aid debugging if configure makes a mistake. 1823 1824It was created by xev $as_me 1.2.2, which was 1825generated by GNU Autoconf 2.69. Invocation command line was 1826 1827 $ $0 $@ 1828 1829_ACEOF 1830exec 5>>config.log 1831{ 1832cat <<_ASUNAME 1833## --------- ## 1834## Platform. ## 1835## --------- ## 1836 1837hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1838uname -m = `(uname -m) 2>/dev/null || echo unknown` 1839uname -r = `(uname -r) 2>/dev/null || echo unknown` 1840uname -s = `(uname -s) 2>/dev/null || echo unknown` 1841uname -v = `(uname -v) 2>/dev/null || echo unknown` 1842 1843/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1844/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1845 1846/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1847/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1848/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1849/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1850/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1851/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1852/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1853 1854_ASUNAME 1855 1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1857for as_dir in $PATH 1858do 1859 IFS=$as_save_IFS 1860 test -z "$as_dir" && as_dir=. 1861 $as_echo "PATH: $as_dir" 1862 done 1863IFS=$as_save_IFS 1864 1865} >&5 1866 1867cat >&5 <<_ACEOF 1868 1869 1870## ----------- ## 1871## Core tests. ## 1872## ----------- ## 1873 1874_ACEOF 1875 1876 1877# Keep a trace of the command line. 1878# Strip out --no-create and --no-recursion so they do not pile up. 1879# Strip out --silent because we don't want to record it for future runs. 1880# Also quote any args containing shell meta-characters. 1881# Make two passes to allow for proper duplicate-argument suppression. 1882ac_configure_args= 1883ac_configure_args0= 1884ac_configure_args1= 1885ac_must_keep_next=false 1886for ac_pass in 1 2 1887do 1888 for ac_arg 1889 do 1890 case $ac_arg in 1891 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1893 | -silent | --silent | --silen | --sile | --sil) 1894 continue ;; 1895 *\'*) 1896 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1897 esac 1898 case $ac_pass in 1899 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1900 2) 1901 as_fn_append ac_configure_args1 " '$ac_arg'" 1902 if test $ac_must_keep_next = true; then 1903 ac_must_keep_next=false # Got value, back to normal. 1904 else 1905 case $ac_arg in 1906 *=* | --config-cache | -C | -disable-* | --disable-* \ 1907 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1908 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1909 | -with-* | --with-* | -without-* | --without-* | --x) 1910 case "$ac_configure_args0 " in 1911 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1912 esac 1913 ;; 1914 -* ) ac_must_keep_next=true ;; 1915 esac 1916 fi 1917 as_fn_append ac_configure_args " '$ac_arg'" 1918 ;; 1919 esac 1920 done 1921done 1922{ ac_configure_args0=; unset ac_configure_args0;} 1923{ ac_configure_args1=; unset ac_configure_args1;} 1924 1925# When interrupted or exit'd, cleanup temporary files, and complete 1926# config.log. We remove comments because anyway the quotes in there 1927# would cause problems or look ugly. 1928# WARNING: Use '\'' to represent an apostrophe within the trap. 1929# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1930trap 'exit_status=$? 1931 # Save into config.log some information that might help in debugging. 1932 { 1933 echo 1934 1935 $as_echo "## ---------------- ## 1936## Cache variables. ## 1937## ---------------- ##" 1938 echo 1939 # The following way of writing the cache mishandles newlines in values, 1940( 1941 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1942 eval ac_val=\$$ac_var 1943 case $ac_val in #( 1944 *${as_nl}*) 1945 case $ac_var in #( 1946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1947$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1948 esac 1949 case $ac_var in #( 1950 _ | IFS | as_nl) ;; #( 1951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1952 *) { eval $ac_var=; unset $ac_var;} ;; 1953 esac ;; 1954 esac 1955 done 1956 (set) 2>&1 | 1957 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1958 *${as_nl}ac_space=\ *) 1959 sed -n \ 1960 "s/'\''/'\''\\\\'\'''\''/g; 1961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1962 ;; #( 1963 *) 1964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1965 ;; 1966 esac | 1967 sort 1968) 1969 echo 1970 1971 $as_echo "## ----------------- ## 1972## Output variables. ## 1973## ----------------- ##" 1974 echo 1975 for ac_var in $ac_subst_vars 1976 do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in 1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1980 esac 1981 $as_echo "$ac_var='\''$ac_val'\''" 1982 done | sort 1983 echo 1984 1985 if test -n "$ac_subst_files"; then 1986 $as_echo "## ------------------- ## 1987## File substitutions. ## 1988## ------------------- ##" 1989 echo 1990 for ac_var in $ac_subst_files 1991 do 1992 eval ac_val=\$$ac_var 1993 case $ac_val in 1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1995 esac 1996 $as_echo "$ac_var='\''$ac_val'\''" 1997 done | sort 1998 echo 1999 fi 2000 2001 if test -s confdefs.h; then 2002 $as_echo "## ----------- ## 2003## confdefs.h. ## 2004## ----------- ##" 2005 echo 2006 cat confdefs.h 2007 echo 2008 fi 2009 test "$ac_signal" != 0 && 2010 $as_echo "$as_me: caught signal $ac_signal" 2011 $as_echo "$as_me: exit $exit_status" 2012 } >&5 2013 rm -f core *.core core.conftest.* && 2014 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2015 exit $exit_status 2016' 0 2017for ac_signal in 1 2 13 15; do 2018 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2019done 2020ac_signal=0 2021 2022# confdefs.h avoids OS command line length limits that DEFS can exceed. 2023rm -f -r conftest* confdefs.h 2024 2025$as_echo "/* confdefs.h */" > confdefs.h 2026 2027# Predefined preprocessor variables. 2028 2029cat >>confdefs.h <<_ACEOF 2030#define PACKAGE_NAME "$PACKAGE_NAME" 2031_ACEOF 2032 2033cat >>confdefs.h <<_ACEOF 2034#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2035_ACEOF 2036 2037cat >>confdefs.h <<_ACEOF 2038#define PACKAGE_VERSION "$PACKAGE_VERSION" 2039_ACEOF 2040 2041cat >>confdefs.h <<_ACEOF 2042#define PACKAGE_STRING "$PACKAGE_STRING" 2043_ACEOF 2044 2045cat >>confdefs.h <<_ACEOF 2046#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2047_ACEOF 2048 2049cat >>confdefs.h <<_ACEOF 2050#define PACKAGE_URL "$PACKAGE_URL" 2051_ACEOF 2052 2053 2054# Let the site file select an alternate cache file if it wants to. 2055# Prefer an explicitly selected file to automatically selected ones. 2056ac_site_file1=NONE 2057ac_site_file2=NONE 2058if test -n "$CONFIG_SITE"; then 2059 # We do not want a PATH search for config.site. 2060 case $CONFIG_SITE in #(( 2061 -*) ac_site_file1=./$CONFIG_SITE;; 2062 */*) ac_site_file1=$CONFIG_SITE;; 2063 *) ac_site_file1=./$CONFIG_SITE;; 2064 esac 2065elif test "x$prefix" != xNONE; then 2066 ac_site_file1=$prefix/share/config.site 2067 ac_site_file2=$prefix/etc/config.site 2068else 2069 ac_site_file1=$ac_default_prefix/share/config.site 2070 ac_site_file2=$ac_default_prefix/etc/config.site 2071fi 2072for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2073do 2074 test "x$ac_site_file" = xNONE && continue 2075 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2077$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2078 sed 's/^/| /' "$ac_site_file" >&5 2079 . "$ac_site_file" \ 2080 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2082as_fn_error $? "failed to load site script $ac_site_file 2083See \`config.log' for more details" "$LINENO" 5; } 2084 fi 2085done 2086 2087if test -r "$cache_file"; then 2088 # Some versions of bash will fail to source /dev/null (special files 2089 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2090 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2092$as_echo "$as_me: loading cache $cache_file" >&6;} 2093 case $cache_file in 2094 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2095 *) . "./$cache_file";; 2096 esac 2097 fi 2098else 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2100$as_echo "$as_me: creating cache $cache_file" >&6;} 2101 >$cache_file 2102fi 2103 2104# Check that the precious variables saved in the cache have kept the same 2105# value. 2106ac_cache_corrupted=false 2107for ac_var in $ac_precious_vars; do 2108 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2109 eval ac_new_set=\$ac_env_${ac_var}_set 2110 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2111 eval ac_new_val=\$ac_env_${ac_var}_value 2112 case $ac_old_set,$ac_new_set in 2113 set,) 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2115$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2116 ac_cache_corrupted=: ;; 2117 ,set) 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2119$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2120 ac_cache_corrupted=: ;; 2121 ,);; 2122 *) 2123 if test "x$ac_old_val" != "x$ac_new_val"; then 2124 # differences in whitespace do not lead to failure. 2125 ac_old_val_w=`echo x $ac_old_val` 2126 ac_new_val_w=`echo x $ac_new_val` 2127 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2129$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2130 ac_cache_corrupted=: 2131 else 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2133$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2134 eval $ac_var=\$ac_old_val 2135 fi 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2137$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2139$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2140 fi;; 2141 esac 2142 # Pass precious variables to config.status. 2143 if test "$ac_new_set" = set; then 2144 case $ac_new_val in 2145 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2146 *) ac_arg=$ac_var=$ac_new_val ;; 2147 esac 2148 case " $ac_configure_args " in 2149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2150 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2151 esac 2152 fi 2153done 2154if $ac_cache_corrupted; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2158$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2159 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2160fi 2161## -------------------- ## 2162## Main body of script. ## 2163## -------------------- ## 2164 2165ac_ext=c 2166ac_cpp='$CPP $CPPFLAGS' 2167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2169ac_compiler_gnu=$ac_cv_c_compiler_gnu 2170 2171 2172 2173ac_config_headers="$ac_config_headers config.h" 2174 2175ac_aux_dir= 2176for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2177 if test -f "$ac_dir/install-sh"; then 2178 ac_aux_dir=$ac_dir 2179 ac_install_sh="$ac_aux_dir/install-sh -c" 2180 break 2181 elif test -f "$ac_dir/install.sh"; then 2182 ac_aux_dir=$ac_dir 2183 ac_install_sh="$ac_aux_dir/install.sh -c" 2184 break 2185 elif test -f "$ac_dir/shtool"; then 2186 ac_aux_dir=$ac_dir 2187 ac_install_sh="$ac_aux_dir/shtool install -c" 2188 break 2189 fi 2190done 2191if test -z "$ac_aux_dir"; then 2192 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2193fi 2194 2195# These three variables are undocumented and unsupported, 2196# and are intended to be withdrawn in a future Autoconf release. 2197# They can cause serious problems if a builder's source tree is in a directory 2198# whose full name contains unusual characters. 2199ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2200ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2201ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2202 2203 2204# Expand $ac_aux_dir to an absolute path. 2205am_aux_dir=`cd "$ac_aux_dir" && pwd` 2206 2207ac_ext=c 2208ac_cpp='$CPP $CPPFLAGS' 2209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2211ac_compiler_gnu=$ac_cv_c_compiler_gnu 2212if test -n "$ac_tool_prefix"; then 2213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2214set dummy ${ac_tool_prefix}gcc; ac_word=$2 2215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2216$as_echo_n "checking for $ac_word... " >&6; } 2217if ${ac_cv_prog_CC+:} false; then : 2218 $as_echo_n "(cached) " >&6 2219else 2220 if test -n "$CC"; then 2221 ac_cv_prog_CC="$CC" # Let the user override the test. 2222else 2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2224for as_dir in $PATH 2225do 2226 IFS=$as_save_IFS 2227 test -z "$as_dir" && as_dir=. 2228 for ac_exec_ext in '' $ac_executable_extensions; do 2229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2230 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2232 break 2 2233 fi 2234done 2235 done 2236IFS=$as_save_IFS 2237 2238fi 2239fi 2240CC=$ac_cv_prog_CC 2241if test -n "$CC"; then 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2243$as_echo "$CC" >&6; } 2244else 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2246$as_echo "no" >&6; } 2247fi 2248 2249 2250fi 2251if test -z "$ac_cv_prog_CC"; then 2252 ac_ct_CC=$CC 2253 # Extract the first word of "gcc", so it can be a program name with args. 2254set dummy gcc; ac_word=$2 2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2256$as_echo_n "checking for $ac_word... " >&6; } 2257if ${ac_cv_prog_ac_ct_CC+:} false; then : 2258 $as_echo_n "(cached) " >&6 2259else 2260 if test -n "$ac_ct_CC"; then 2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2262else 2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2264for as_dir in $PATH 2265do 2266 IFS=$as_save_IFS 2267 test -z "$as_dir" && as_dir=. 2268 for ac_exec_ext in '' $ac_executable_extensions; do 2269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2270 ac_cv_prog_ac_ct_CC="gcc" 2271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2272 break 2 2273 fi 2274done 2275 done 2276IFS=$as_save_IFS 2277 2278fi 2279fi 2280ac_ct_CC=$ac_cv_prog_ac_ct_CC 2281if test -n "$ac_ct_CC"; then 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2283$as_echo "$ac_ct_CC" >&6; } 2284else 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2286$as_echo "no" >&6; } 2287fi 2288 2289 if test "x$ac_ct_CC" = x; then 2290 CC="" 2291 else 2292 case $cross_compiling:$ac_tool_warned in 2293yes:) 2294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2296ac_tool_warned=yes ;; 2297esac 2298 CC=$ac_ct_CC 2299 fi 2300else 2301 CC="$ac_cv_prog_CC" 2302fi 2303 2304if test -z "$CC"; then 2305 if test -n "$ac_tool_prefix"; then 2306 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2307set dummy ${ac_tool_prefix}cc; ac_word=$2 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2309$as_echo_n "checking for $ac_word... " >&6; } 2310if ${ac_cv_prog_CC+:} false; then : 2311 $as_echo_n "(cached) " >&6 2312else 2313 if test -n "$CC"; then 2314 ac_cv_prog_CC="$CC" # Let the user override the test. 2315else 2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317for as_dir in $PATH 2318do 2319 IFS=$as_save_IFS 2320 test -z "$as_dir" && as_dir=. 2321 for ac_exec_ext in '' $ac_executable_extensions; do 2322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2323 ac_cv_prog_CC="${ac_tool_prefix}cc" 2324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2325 break 2 2326 fi 2327done 2328 done 2329IFS=$as_save_IFS 2330 2331fi 2332fi 2333CC=$ac_cv_prog_CC 2334if test -n "$CC"; then 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2336$as_echo "$CC" >&6; } 2337else 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2339$as_echo "no" >&6; } 2340fi 2341 2342 2343 fi 2344fi 2345if test -z "$CC"; then 2346 # Extract the first word of "cc", so it can be a program name with args. 2347set dummy cc; ac_word=$2 2348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2349$as_echo_n "checking for $ac_word... " >&6; } 2350if ${ac_cv_prog_CC+:} false; then : 2351 $as_echo_n "(cached) " >&6 2352else 2353 if test -n "$CC"; then 2354 ac_cv_prog_CC="$CC" # Let the user override the test. 2355else 2356 ac_prog_rejected=no 2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358for as_dir in $PATH 2359do 2360 IFS=$as_save_IFS 2361 test -z "$as_dir" && as_dir=. 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2365 ac_prog_rejected=yes 2366 continue 2367 fi 2368 ac_cv_prog_CC="cc" 2369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2370 break 2 2371 fi 2372done 2373 done 2374IFS=$as_save_IFS 2375 2376if test $ac_prog_rejected = yes; then 2377 # We found a bogon in the path, so make sure we never use it. 2378 set dummy $ac_cv_prog_CC 2379 shift 2380 if test $# != 0; then 2381 # We chose a different compiler from the bogus one. 2382 # However, it has the same basename, so the bogon will be chosen 2383 # first if we set CC to just the basename; use the full file name. 2384 shift 2385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2386 fi 2387fi 2388fi 2389fi 2390CC=$ac_cv_prog_CC 2391if test -n "$CC"; then 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2393$as_echo "$CC" >&6; } 2394else 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2396$as_echo "no" >&6; } 2397fi 2398 2399 2400fi 2401if test -z "$CC"; then 2402 if test -n "$ac_tool_prefix"; then 2403 for ac_prog in cl.exe 2404 do 2405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2406set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2408$as_echo_n "checking for $ac_word... " >&6; } 2409if ${ac_cv_prog_CC+:} false; then : 2410 $as_echo_n "(cached) " >&6 2411else 2412 if test -n "$CC"; then 2413 ac_cv_prog_CC="$CC" # Let the user override the test. 2414else 2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2416for as_dir in $PATH 2417do 2418 IFS=$as_save_IFS 2419 test -z "$as_dir" && as_dir=. 2420 for ac_exec_ext in '' $ac_executable_extensions; do 2421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2424 break 2 2425 fi 2426done 2427 done 2428IFS=$as_save_IFS 2429 2430fi 2431fi 2432CC=$ac_cv_prog_CC 2433if test -n "$CC"; then 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2435$as_echo "$CC" >&6; } 2436else 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2438$as_echo "no" >&6; } 2439fi 2440 2441 2442 test -n "$CC" && break 2443 done 2444fi 2445if test -z "$CC"; then 2446 ac_ct_CC=$CC 2447 for ac_prog in cl.exe 2448do 2449 # Extract the first word of "$ac_prog", so it can be a program name with args. 2450set dummy $ac_prog; ac_word=$2 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2452$as_echo_n "checking for $ac_word... " >&6; } 2453if ${ac_cv_prog_ac_ct_CC+:} false; then : 2454 $as_echo_n "(cached) " >&6 2455else 2456 if test -n "$ac_ct_CC"; then 2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2458else 2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2460for as_dir in $PATH 2461do 2462 IFS=$as_save_IFS 2463 test -z "$as_dir" && as_dir=. 2464 for ac_exec_ext in '' $ac_executable_extensions; do 2465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2466 ac_cv_prog_ac_ct_CC="$ac_prog" 2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2468 break 2 2469 fi 2470done 2471 done 2472IFS=$as_save_IFS 2473 2474fi 2475fi 2476ac_ct_CC=$ac_cv_prog_ac_ct_CC 2477if test -n "$ac_ct_CC"; then 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2479$as_echo "$ac_ct_CC" >&6; } 2480else 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2482$as_echo "no" >&6; } 2483fi 2484 2485 2486 test -n "$ac_ct_CC" && break 2487done 2488 2489 if test "x$ac_ct_CC" = x; then 2490 CC="" 2491 else 2492 case $cross_compiling:$ac_tool_warned in 2493yes:) 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2496ac_tool_warned=yes ;; 2497esac 2498 CC=$ac_ct_CC 2499 fi 2500fi 2501 2502fi 2503 2504 2505test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2507as_fn_error $? "no acceptable C compiler found in \$PATH 2508See \`config.log' for more details" "$LINENO" 5; } 2509 2510# Provide some information about the compiler. 2511$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2512set X $ac_compile 2513ac_compiler=$2 2514for ac_option in --version -v -V -qversion; do 2515 { { ac_try="$ac_compiler $ac_option >&5" 2516case "(($ac_try" in 2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2518 *) ac_try_echo=$ac_try;; 2519esac 2520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2521$as_echo "$ac_try_echo"; } >&5 2522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2523 ac_status=$? 2524 if test -s conftest.err; then 2525 sed '10a\ 2526... rest of stderr output deleted ... 2527 10q' conftest.err >conftest.er1 2528 cat conftest.er1 >&5 2529 fi 2530 rm -f conftest.er1 conftest.err 2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2532 test $ac_status = 0; } 2533done 2534 2535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2536/* end confdefs.h. */ 2537 2538int 2539main () 2540{ 2541 2542 ; 2543 return 0; 2544} 2545_ACEOF 2546ac_clean_files_save=$ac_clean_files 2547ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2548# Try to create an executable without -o first, disregard a.out. 2549# It will help us diagnose broken compilers, and finding out an intuition 2550# of exeext. 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2552$as_echo_n "checking whether the C compiler works... " >&6; } 2553ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2554 2555# The possible output files: 2556ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2557 2558ac_rmfiles= 2559for ac_file in $ac_files 2560do 2561 case $ac_file in 2562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2563 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2564 esac 2565done 2566rm -f $ac_rmfiles 2567 2568if { { ac_try="$ac_link_default" 2569case "(($ac_try" in 2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2571 *) ac_try_echo=$ac_try;; 2572esac 2573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2574$as_echo "$ac_try_echo"; } >&5 2575 (eval "$ac_link_default") 2>&5 2576 ac_status=$? 2577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2578 test $ac_status = 0; }; then : 2579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2580# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2581# in a Makefile. We should not override ac_cv_exeext if it was cached, 2582# so that the user can short-circuit this test for compilers unknown to 2583# Autoconf. 2584for ac_file in $ac_files '' 2585do 2586 test -f "$ac_file" || continue 2587 case $ac_file in 2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2589 ;; 2590 [ab].out ) 2591 # We found the default executable, but exeext='' is most 2592 # certainly right. 2593 break;; 2594 *.* ) 2595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2596 then :; else 2597 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2598 fi 2599 # We set ac_cv_exeext here because the later test for it is not 2600 # safe: cross compilers may not add the suffix if given an `-o' 2601 # argument, so we may need to know it at that point already. 2602 # Even if this section looks crufty: it has the advantage of 2603 # actually working. 2604 break;; 2605 * ) 2606 break;; 2607 esac 2608done 2609test "$ac_cv_exeext" = no && ac_cv_exeext= 2610 2611else 2612 ac_file='' 2613fi 2614if test -z "$ac_file"; then : 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2616$as_echo "no" >&6; } 2617$as_echo "$as_me: failed program was:" >&5 2618sed 's/^/| /' conftest.$ac_ext >&5 2619 2620{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2622as_fn_error 77 "C compiler cannot create executables 2623See \`config.log' for more details" "$LINENO" 5; } 2624else 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2626$as_echo "yes" >&6; } 2627fi 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2629$as_echo_n "checking for C compiler default output file name... " >&6; } 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2631$as_echo "$ac_file" >&6; } 2632ac_exeext=$ac_cv_exeext 2633 2634rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2635ac_clean_files=$ac_clean_files_save 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2637$as_echo_n "checking for suffix of executables... " >&6; } 2638if { { ac_try="$ac_link" 2639case "(($ac_try" in 2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2641 *) ac_try_echo=$ac_try;; 2642esac 2643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2644$as_echo "$ac_try_echo"; } >&5 2645 (eval "$ac_link") 2>&5 2646 ac_status=$? 2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2648 test $ac_status = 0; }; then : 2649 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2650# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2651# work properly (i.e., refer to `conftest.exe'), while it won't with 2652# `rm'. 2653for ac_file in conftest.exe conftest conftest.*; do 2654 test -f "$ac_file" || continue 2655 case $ac_file in 2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2658 break;; 2659 * ) break;; 2660 esac 2661done 2662else 2663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2665as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2666See \`config.log' for more details" "$LINENO" 5; } 2667fi 2668rm -f conftest conftest$ac_cv_exeext 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2670$as_echo "$ac_cv_exeext" >&6; } 2671 2672rm -f conftest.$ac_ext 2673EXEEXT=$ac_cv_exeext 2674ac_exeext=$EXEEXT 2675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2676/* end confdefs.h. */ 2677#include <stdio.h> 2678int 2679main () 2680{ 2681FILE *f = fopen ("conftest.out", "w"); 2682 return ferror (f) || fclose (f) != 0; 2683 2684 ; 2685 return 0; 2686} 2687_ACEOF 2688ac_clean_files="$ac_clean_files conftest.out" 2689# Check that the compiler produces executables we can run. If not, either 2690# the compiler is broken, or we cross compile. 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2692$as_echo_n "checking whether we are cross compiling... " >&6; } 2693if test "$cross_compiling" != yes; then 2694 { { ac_try="$ac_link" 2695case "(($ac_try" in 2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2697 *) ac_try_echo=$ac_try;; 2698esac 2699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2700$as_echo "$ac_try_echo"; } >&5 2701 (eval "$ac_link") 2>&5 2702 ac_status=$? 2703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2704 test $ac_status = 0; } 2705 if { ac_try='./conftest$ac_cv_exeext' 2706 { { case "(($ac_try" in 2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2708 *) ac_try_echo=$ac_try;; 2709esac 2710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2711$as_echo "$ac_try_echo"; } >&5 2712 (eval "$ac_try") 2>&5 2713 ac_status=$? 2714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2715 test $ac_status = 0; }; }; then 2716 cross_compiling=no 2717 else 2718 if test "$cross_compiling" = maybe; then 2719 cross_compiling=yes 2720 else 2721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2723as_fn_error $? "cannot run C compiled programs. 2724If you meant to cross compile, use \`--host'. 2725See \`config.log' for more details" "$LINENO" 5; } 2726 fi 2727 fi 2728fi 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2730$as_echo "$cross_compiling" >&6; } 2731 2732rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2733ac_clean_files=$ac_clean_files_save 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2735$as_echo_n "checking for suffix of object files... " >&6; } 2736if ${ac_cv_objext+:} false; then : 2737 $as_echo_n "(cached) " >&6 2738else 2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2740/* end confdefs.h. */ 2741 2742int 2743main () 2744{ 2745 2746 ; 2747 return 0; 2748} 2749_ACEOF 2750rm -f conftest.o conftest.obj 2751if { { ac_try="$ac_compile" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2757$as_echo "$ac_try_echo"; } >&5 2758 (eval "$ac_compile") 2>&5 2759 ac_status=$? 2760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2761 test $ac_status = 0; }; then : 2762 for ac_file in conftest.o conftest.obj conftest.*; do 2763 test -f "$ac_file" || continue; 2764 case $ac_file in 2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2766 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2767 break;; 2768 esac 2769done 2770else 2771 $as_echo "$as_me: failed program was:" >&5 2772sed 's/^/| /' conftest.$ac_ext >&5 2773 2774{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2776as_fn_error $? "cannot compute suffix of object files: cannot compile 2777See \`config.log' for more details" "$LINENO" 5; } 2778fi 2779rm -f conftest.$ac_cv_objext conftest.$ac_ext 2780fi 2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2782$as_echo "$ac_cv_objext" >&6; } 2783OBJEXT=$ac_cv_objext 2784ac_objext=$OBJEXT 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2786$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2787if ${ac_cv_c_compiler_gnu+:} false; then : 2788 $as_echo_n "(cached) " >&6 2789else 2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2791/* end confdefs.h. */ 2792 2793int 2794main () 2795{ 2796#ifndef __GNUC__ 2797 choke me 2798#endif 2799 2800 ; 2801 return 0; 2802} 2803_ACEOF 2804if ac_fn_c_try_compile "$LINENO"; then : 2805 ac_compiler_gnu=yes 2806else 2807 ac_compiler_gnu=no 2808fi 2809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2810ac_cv_c_compiler_gnu=$ac_compiler_gnu 2811 2812fi 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2814$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2815if test $ac_compiler_gnu = yes; then 2816 GCC=yes 2817else 2818 GCC= 2819fi 2820ac_test_CFLAGS=${CFLAGS+set} 2821ac_save_CFLAGS=$CFLAGS 2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2823$as_echo_n "checking whether $CC accepts -g... " >&6; } 2824if ${ac_cv_prog_cc_g+:} false; then : 2825 $as_echo_n "(cached) " >&6 2826else 2827 ac_save_c_werror_flag=$ac_c_werror_flag 2828 ac_c_werror_flag=yes 2829 ac_cv_prog_cc_g=no 2830 CFLAGS="-g" 2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2832/* end confdefs.h. */ 2833 2834int 2835main () 2836{ 2837 2838 ; 2839 return 0; 2840} 2841_ACEOF 2842if ac_fn_c_try_compile "$LINENO"; then : 2843 ac_cv_prog_cc_g=yes 2844else 2845 CFLAGS="" 2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2847/* end confdefs.h. */ 2848 2849int 2850main () 2851{ 2852 2853 ; 2854 return 0; 2855} 2856_ACEOF 2857if ac_fn_c_try_compile "$LINENO"; then : 2858 2859else 2860 ac_c_werror_flag=$ac_save_c_werror_flag 2861 CFLAGS="-g" 2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2863/* end confdefs.h. */ 2864 2865int 2866main () 2867{ 2868 2869 ; 2870 return 0; 2871} 2872_ACEOF 2873if ac_fn_c_try_compile "$LINENO"; then : 2874 ac_cv_prog_cc_g=yes 2875fi 2876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2877fi 2878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2879fi 2880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2881 ac_c_werror_flag=$ac_save_c_werror_flag 2882fi 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2884$as_echo "$ac_cv_prog_cc_g" >&6; } 2885if test "$ac_test_CFLAGS" = set; then 2886 CFLAGS=$ac_save_CFLAGS 2887elif test $ac_cv_prog_cc_g = yes; then 2888 if test "$GCC" = yes; then 2889 CFLAGS="-g -O2" 2890 else 2891 CFLAGS="-g" 2892 fi 2893else 2894 if test "$GCC" = yes; then 2895 CFLAGS="-O2" 2896 else 2897 CFLAGS= 2898 fi 2899fi 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2901$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2902if ${ac_cv_prog_cc_c89+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 ac_cv_prog_cc_c89=no 2906ac_save_CC=$CC 2907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2908/* end confdefs.h. */ 2909#include <stdarg.h> 2910#include <stdio.h> 2911struct stat; 2912/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2913struct buf { int x; }; 2914FILE * (*rcsopen) (struct buf *, struct stat *, int); 2915static char *e (p, i) 2916 char **p; 2917 int i; 2918{ 2919 return p[i]; 2920} 2921static char *f (char * (*g) (char **, int), char **p, ...) 2922{ 2923 char *s; 2924 va_list v; 2925 va_start (v,p); 2926 s = g (p, va_arg (v,int)); 2927 va_end (v); 2928 return s; 2929} 2930 2931/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2932 function prototypes and stuff, but not '\xHH' hex character constants. 2933 These don't provoke an error unfortunately, instead are silently treated 2934 as 'x'. The following induces an error, until -std is added to get 2935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2936 array size at least. It's necessary to write '\x00'==0 to get something 2937 that's true only with -std. */ 2938int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2939 2940/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2941 inside strings and character constants. */ 2942#define FOO(x) 'x' 2943int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2944 2945int test (int i, double x); 2946struct s1 {int (*f) (int a);}; 2947struct s2 {int (*f) (double a);}; 2948int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2949int argc; 2950char **argv; 2951int 2952main () 2953{ 2954return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2955 ; 2956 return 0; 2957} 2958_ACEOF 2959for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2961do 2962 CC="$ac_save_CC $ac_arg" 2963 if ac_fn_c_try_compile "$LINENO"; then : 2964 ac_cv_prog_cc_c89=$ac_arg 2965fi 2966rm -f core conftest.err conftest.$ac_objext 2967 test "x$ac_cv_prog_cc_c89" != "xno" && break 2968done 2969rm -f conftest.$ac_ext 2970CC=$ac_save_CC 2971 2972fi 2973# AC_CACHE_VAL 2974case "x$ac_cv_prog_cc_c89" in 2975 x) 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2977$as_echo "none needed" >&6; } ;; 2978 xno) 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2980$as_echo "unsupported" >&6; } ;; 2981 *) 2982 CC="$CC $ac_cv_prog_cc_c89" 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2984$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2985esac 2986if test "x$ac_cv_prog_cc_c89" != xno; then : 2987 2988fi 2989 2990ac_ext=c 2991ac_cpp='$CPP $CPPFLAGS' 2992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2994ac_compiler_gnu=$ac_cv_c_compiler_gnu 2995 2996ac_ext=c 2997ac_cpp='$CPP $CPPFLAGS' 2998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3000ac_compiler_gnu=$ac_cv_c_compiler_gnu 3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3002$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3003if ${am_cv_prog_cc_c_o+:} false; then : 3004 $as_echo_n "(cached) " >&6 3005else 3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3007/* end confdefs.h. */ 3008 3009int 3010main () 3011{ 3012 3013 ; 3014 return 0; 3015} 3016_ACEOF 3017 # Make sure it works both with $CC and with simple cc. 3018 # Following AC_PROG_CC_C_O, we do the test twice because some 3019 # compilers refuse to overwrite an existing .o file with -o, 3020 # though they will create one. 3021 am_cv_prog_cc_c_o=yes 3022 for am_i in 1 2; do 3023 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3024 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3025 ac_status=$? 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); } \ 3028 && test -f conftest2.$ac_objext; then 3029 : OK 3030 else 3031 am_cv_prog_cc_c_o=no 3032 break 3033 fi 3034 done 3035 rm -f core conftest* 3036 unset am_i 3037fi 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3039$as_echo "$am_cv_prog_cc_c_o" >&6; } 3040if test "$am_cv_prog_cc_c_o" != yes; then 3041 # Losing compiler, so override with the script. 3042 # FIXME: It is wrong to rewrite CC. 3043 # But if we don't then we get into trouble of one sort or another. 3044 # A longer-term fix would be to have automake use am__CC in this case, 3045 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3046 CC="$am_aux_dir/compile $CC" 3047fi 3048ac_ext=c 3049ac_cpp='$CPP $CPPFLAGS' 3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3052ac_compiler_gnu=$ac_cv_c_compiler_gnu 3053 3054 3055 3056ac_ext=c 3057ac_cpp='$CPP $CPPFLAGS' 3058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3060ac_compiler_gnu=$ac_cv_c_compiler_gnu 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3062$as_echo_n "checking how to run the C preprocessor... " >&6; } 3063# On Suns, sometimes $CPP names a directory. 3064if test -n "$CPP" && test -d "$CPP"; then 3065 CPP= 3066fi 3067if test -z "$CPP"; then 3068 if ${ac_cv_prog_CPP+:} false; then : 3069 $as_echo_n "(cached) " >&6 3070else 3071 # Double quotes because CPP needs to be expanded 3072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3073 do 3074 ac_preproc_ok=false 3075for ac_c_preproc_warn_flag in '' yes 3076do 3077 # Use a header file that comes with gcc, so configuring glibc 3078 # with a fresh cross-compiler works. 3079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3080 # <limits.h> exists even on freestanding compilers. 3081 # On the NeXT, cc -E runs the code through the compiler's parser, 3082 # not just through cpp. "Syntax error" is here to catch this case. 3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3084/* end confdefs.h. */ 3085#ifdef __STDC__ 3086# include <limits.h> 3087#else 3088# include <assert.h> 3089#endif 3090 Syntax error 3091_ACEOF 3092if ac_fn_c_try_cpp "$LINENO"; then : 3093 3094else 3095 # Broken: fails on valid input. 3096continue 3097fi 3098rm -f conftest.err conftest.i conftest.$ac_ext 3099 3100 # OK, works on sane cases. Now check whether nonexistent headers 3101 # can be detected and how. 3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3103/* end confdefs.h. */ 3104#include <ac_nonexistent.h> 3105_ACEOF 3106if ac_fn_c_try_cpp "$LINENO"; then : 3107 # Broken: success on invalid input. 3108continue 3109else 3110 # Passes both tests. 3111ac_preproc_ok=: 3112break 3113fi 3114rm -f conftest.err conftest.i conftest.$ac_ext 3115 3116done 3117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3118rm -f conftest.i conftest.err conftest.$ac_ext 3119if $ac_preproc_ok; then : 3120 break 3121fi 3122 3123 done 3124 ac_cv_prog_CPP=$CPP 3125 3126fi 3127 CPP=$ac_cv_prog_CPP 3128else 3129 ac_cv_prog_CPP=$CPP 3130fi 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3132$as_echo "$CPP" >&6; } 3133ac_preproc_ok=false 3134for ac_c_preproc_warn_flag in '' yes 3135do 3136 # Use a header file that comes with gcc, so configuring glibc 3137 # with a fresh cross-compiler works. 3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3139 # <limits.h> exists even on freestanding compilers. 3140 # On the NeXT, cc -E runs the code through the compiler's parser, 3141 # not just through cpp. "Syntax error" is here to catch this case. 3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3143/* end confdefs.h. */ 3144#ifdef __STDC__ 3145# include <limits.h> 3146#else 3147# include <assert.h> 3148#endif 3149 Syntax error 3150_ACEOF 3151if ac_fn_c_try_cpp "$LINENO"; then : 3152 3153else 3154 # Broken: fails on valid input. 3155continue 3156fi 3157rm -f conftest.err conftest.i conftest.$ac_ext 3158 3159 # OK, works on sane cases. Now check whether nonexistent headers 3160 # can be detected and how. 3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3162/* end confdefs.h. */ 3163#include <ac_nonexistent.h> 3164_ACEOF 3165if ac_fn_c_try_cpp "$LINENO"; then : 3166 # Broken: success on invalid input. 3167continue 3168else 3169 # Passes both tests. 3170ac_preproc_ok=: 3171break 3172fi 3173rm -f conftest.err conftest.i conftest.$ac_ext 3174 3175done 3176# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3177rm -f conftest.i conftest.err conftest.$ac_ext 3178if $ac_preproc_ok; then : 3179 3180else 3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3183as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3184See \`config.log' for more details" "$LINENO" 5; } 3185fi 3186 3187ac_ext=c 3188ac_cpp='$CPP $CPPFLAGS' 3189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3191ac_compiler_gnu=$ac_cv_c_compiler_gnu 3192 3193 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3195$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3196if ${ac_cv_path_GREP+:} false; then : 3197 $as_echo_n "(cached) " >&6 3198else 3199 if test -z "$GREP"; then 3200 ac_path_GREP_found=false 3201 # Loop through the user's path and test for each of PROGNAME-LIST 3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3203for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3204do 3205 IFS=$as_save_IFS 3206 test -z "$as_dir" && as_dir=. 3207 for ac_prog in grep ggrep; do 3208 for ac_exec_ext in '' $ac_executable_extensions; do 3209 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3210 as_fn_executable_p "$ac_path_GREP" || continue 3211# Check for GNU ac_path_GREP and select it if it is found. 3212 # Check for GNU $ac_path_GREP 3213case `"$ac_path_GREP" --version 2>&1` in 3214*GNU*) 3215 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3216*) 3217 ac_count=0 3218 $as_echo_n 0123456789 >"conftest.in" 3219 while : 3220 do 3221 cat "conftest.in" "conftest.in" >"conftest.tmp" 3222 mv "conftest.tmp" "conftest.in" 3223 cp "conftest.in" "conftest.nl" 3224 $as_echo 'GREP' >> "conftest.nl" 3225 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3227 as_fn_arith $ac_count + 1 && ac_count=$as_val 3228 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3229 # Best one so far, save it but keep looking for a better one 3230 ac_cv_path_GREP="$ac_path_GREP" 3231 ac_path_GREP_max=$ac_count 3232 fi 3233 # 10*(2^10) chars as input seems more than enough 3234 test $ac_count -gt 10 && break 3235 done 3236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3237esac 3238 3239 $ac_path_GREP_found && break 3 3240 done 3241 done 3242 done 3243IFS=$as_save_IFS 3244 if test -z "$ac_cv_path_GREP"; then 3245 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3246 fi 3247else 3248 ac_cv_path_GREP=$GREP 3249fi 3250 3251fi 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3253$as_echo "$ac_cv_path_GREP" >&6; } 3254 GREP="$ac_cv_path_GREP" 3255 3256 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3258$as_echo_n "checking for egrep... " >&6; } 3259if ${ac_cv_path_EGREP+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3263 then ac_cv_path_EGREP="$GREP -E" 3264 else 3265 if test -z "$EGREP"; then 3266 ac_path_EGREP_found=false 3267 # Loop through the user's path and test for each of PROGNAME-LIST 3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3269for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3270do 3271 IFS=$as_save_IFS 3272 test -z "$as_dir" && as_dir=. 3273 for ac_prog in egrep; do 3274 for ac_exec_ext in '' $ac_executable_extensions; do 3275 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3276 as_fn_executable_p "$ac_path_EGREP" || continue 3277# Check for GNU ac_path_EGREP and select it if it is found. 3278 # Check for GNU $ac_path_EGREP 3279case `"$ac_path_EGREP" --version 2>&1` in 3280*GNU*) 3281 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3282*) 3283 ac_count=0 3284 $as_echo_n 0123456789 >"conftest.in" 3285 while : 3286 do 3287 cat "conftest.in" "conftest.in" >"conftest.tmp" 3288 mv "conftest.tmp" "conftest.in" 3289 cp "conftest.in" "conftest.nl" 3290 $as_echo 'EGREP' >> "conftest.nl" 3291 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3293 as_fn_arith $ac_count + 1 && ac_count=$as_val 3294 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3295 # Best one so far, save it but keep looking for a better one 3296 ac_cv_path_EGREP="$ac_path_EGREP" 3297 ac_path_EGREP_max=$ac_count 3298 fi 3299 # 10*(2^10) chars as input seems more than enough 3300 test $ac_count -gt 10 && break 3301 done 3302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3303esac 3304 3305 $ac_path_EGREP_found && break 3 3306 done 3307 done 3308 done 3309IFS=$as_save_IFS 3310 if test -z "$ac_cv_path_EGREP"; then 3311 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3312 fi 3313else 3314 ac_cv_path_EGREP=$EGREP 3315fi 3316 3317 fi 3318fi 3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3320$as_echo "$ac_cv_path_EGREP" >&6; } 3321 EGREP="$ac_cv_path_EGREP" 3322 3323 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3325$as_echo_n "checking for ANSI C header files... " >&6; } 3326if ${ac_cv_header_stdc+:} false; then : 3327 $as_echo_n "(cached) " >&6 3328else 3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330/* end confdefs.h. */ 3331#include <stdlib.h> 3332#include <stdarg.h> 3333#include <string.h> 3334#include <float.h> 3335 3336int 3337main () 3338{ 3339 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344if ac_fn_c_try_compile "$LINENO"; then : 3345 ac_cv_header_stdc=yes 3346else 3347 ac_cv_header_stdc=no 3348fi 3349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3350 3351if test $ac_cv_header_stdc = yes; then 3352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354/* end confdefs.h. */ 3355#include <string.h> 3356 3357_ACEOF 3358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3359 $EGREP "memchr" >/dev/null 2>&1; then : 3360 3361else 3362 ac_cv_header_stdc=no 3363fi 3364rm -f conftest* 3365 3366fi 3367 3368if test $ac_cv_header_stdc = yes; then 3369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3371/* end confdefs.h. */ 3372#include <stdlib.h> 3373 3374_ACEOF 3375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3376 $EGREP "free" >/dev/null 2>&1; then : 3377 3378else 3379 ac_cv_header_stdc=no 3380fi 3381rm -f conftest* 3382 3383fi 3384 3385if test $ac_cv_header_stdc = yes; then 3386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3387 if test "$cross_compiling" = yes; then : 3388 : 3389else 3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3391/* end confdefs.h. */ 3392#include <ctype.h> 3393#include <stdlib.h> 3394#if ((' ' & 0x0FF) == 0x020) 3395# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3396# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3397#else 3398# define ISLOWER(c) \ 3399 (('a' <= (c) && (c) <= 'i') \ 3400 || ('j' <= (c) && (c) <= 'r') \ 3401 || ('s' <= (c) && (c) <= 'z')) 3402# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3403#endif 3404 3405#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3406int 3407main () 3408{ 3409 int i; 3410 for (i = 0; i < 256; i++) 3411 if (XOR (islower (i), ISLOWER (i)) 3412 || toupper (i) != TOUPPER (i)) 3413 return 2; 3414 return 0; 3415} 3416_ACEOF 3417if ac_fn_c_try_run "$LINENO"; then : 3418 3419else 3420 ac_cv_header_stdc=no 3421fi 3422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3423 conftest.$ac_objext conftest.beam conftest.$ac_ext 3424fi 3425 3426fi 3427fi 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3429$as_echo "$ac_cv_header_stdc" >&6; } 3430if test $ac_cv_header_stdc = yes; then 3431 3432$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3433 3434fi 3435 3436# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3437for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3438 inttypes.h stdint.h unistd.h 3439do : 3440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3441ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3442" 3443if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3444 cat >>confdefs.h <<_ACEOF 3445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3446_ACEOF 3447 3448fi 3449 3450done 3451 3452 3453 3454 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3455if test "x$ac_cv_header_minix_config_h" = xyes; then : 3456 MINIX=yes 3457else 3458 MINIX= 3459fi 3460 3461 3462 if test "$MINIX" = yes; then 3463 3464$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3465 3466 3467$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3468 3469 3470$as_echo "#define _MINIX 1" >>confdefs.h 3471 3472 fi 3473 3474 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3476$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3477if ${ac_cv_safe_to_define___extensions__+:} false; then : 3478 $as_echo_n "(cached) " >&6 3479else 3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482 3483# define __EXTENSIONS__ 1 3484 $ac_includes_default 3485int 3486main () 3487{ 3488 3489 ; 3490 return 0; 3491} 3492_ACEOF 3493if ac_fn_c_try_compile "$LINENO"; then : 3494 ac_cv_safe_to_define___extensions__=yes 3495else 3496 ac_cv_safe_to_define___extensions__=no 3497fi 3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3499fi 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3501$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3502 test $ac_cv_safe_to_define___extensions__ = yes && 3503 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3504 3505 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3506 3507 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3508 3509 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3510 3511 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3512 3513 3514 3515# Initialize Automake 3516am__api_version='1.15' 3517 3518# Find a good install program. We prefer a C program (faster), 3519# so one script is as good as another. But avoid the broken or 3520# incompatible versions: 3521# SysV /etc/install, /usr/sbin/install 3522# SunOS /usr/etc/install 3523# IRIX /sbin/install 3524# AIX /bin/install 3525# AmigaOS /C/install, which installs bootblocks on floppy discs 3526# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3527# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3528# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3529# OS/2's system install, which has a completely different semantic 3530# ./install, which can be erroneously created by make from ./install.sh. 3531# Reject install programs that cannot install multiple files. 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3533$as_echo_n "checking for a BSD-compatible install... " >&6; } 3534if test -z "$INSTALL"; then 3535if ${ac_cv_path_install+:} false; then : 3536 $as_echo_n "(cached) " >&6 3537else 3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3539for as_dir in $PATH 3540do 3541 IFS=$as_save_IFS 3542 test -z "$as_dir" && as_dir=. 3543 # Account for people who put trailing slashes in PATH elements. 3544case $as_dir/ in #(( 3545 ./ | .// | /[cC]/* | \ 3546 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3547 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3548 /usr/ucb/* ) ;; 3549 *) 3550 # OSF1 and SCO ODT 3.0 have their own names for install. 3551 # Don't use installbsd from OSF since it installs stuff as root 3552 # by default. 3553 for ac_prog in ginstall scoinst install; do 3554 for ac_exec_ext in '' $ac_executable_extensions; do 3555 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3556 if test $ac_prog = install && 3557 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3558 # AIX install. It has an incompatible calling convention. 3559 : 3560 elif test $ac_prog = install && 3561 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3562 # program-specific install script used by HP pwplus--don't use. 3563 : 3564 else 3565 rm -rf conftest.one conftest.two conftest.dir 3566 echo one > conftest.one 3567 echo two > conftest.two 3568 mkdir conftest.dir 3569 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3570 test -s conftest.one && test -s conftest.two && 3571 test -s conftest.dir/conftest.one && 3572 test -s conftest.dir/conftest.two 3573 then 3574 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3575 break 3 3576 fi 3577 fi 3578 fi 3579 done 3580 done 3581 ;; 3582esac 3583 3584 done 3585IFS=$as_save_IFS 3586 3587rm -rf conftest.one conftest.two conftest.dir 3588 3589fi 3590 if test "${ac_cv_path_install+set}" = set; then 3591 INSTALL=$ac_cv_path_install 3592 else 3593 # As a last resort, use the slow shell script. Don't cache a 3594 # value for INSTALL within a source directory, because that will 3595 # break other packages using the cache if that directory is 3596 # removed, or if the value is a relative name. 3597 INSTALL=$ac_install_sh 3598 fi 3599fi 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3601$as_echo "$INSTALL" >&6; } 3602 3603# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3604# It thinks the first close brace ends the variable substitution. 3605test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3606 3607test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3608 3609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3610 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3612$as_echo_n "checking whether build environment is sane... " >&6; } 3613# Reject unsafe characters in $srcdir or the absolute working directory 3614# name. Accept space and tab only in the latter. 3615am_lf=' 3616' 3617case `pwd` in 3618 *[\\\"\#\$\&\'\`$am_lf]*) 3619 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3620esac 3621case $srcdir in 3622 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3623 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3624esac 3625 3626# Do 'set' in a subshell so we don't clobber the current shell's 3627# arguments. Must try -L first in case configure is actually a 3628# symlink; some systems play weird games with the mod time of symlinks 3629# (eg FreeBSD returns the mod time of the symlink's containing 3630# directory). 3631if ( 3632 am_has_slept=no 3633 for am_try in 1 2; do 3634 echo "timestamp, slept: $am_has_slept" > conftest.file 3635 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3636 if test "$*" = "X"; then 3637 # -L didn't work. 3638 set X `ls -t "$srcdir/configure" conftest.file` 3639 fi 3640 if test "$*" != "X $srcdir/configure conftest.file" \ 3641 && test "$*" != "X conftest.file $srcdir/configure"; then 3642 3643 # If neither matched, then we have a broken ls. This can happen 3644 # if, for instance, CONFIG_SHELL is bash and it inherits a 3645 # broken ls alias from the environment. This has actually 3646 # happened. Such a system could not be considered "sane". 3647 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3648 alias in your environment" "$LINENO" 5 3649 fi 3650 if test "$2" = conftest.file || test $am_try -eq 2; then 3651 break 3652 fi 3653 # Just in case. 3654 sleep 1 3655 am_has_slept=yes 3656 done 3657 test "$2" = conftest.file 3658 ) 3659then 3660 # Ok. 3661 : 3662else 3663 as_fn_error $? "newly created file is older than distributed files! 3664Check your system clock" "$LINENO" 5 3665fi 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3667$as_echo "yes" >&6; } 3668# If we didn't sleep, we still need to ensure time stamps of config.status and 3669# generated files are strictly newer. 3670am_sleep_pid= 3671if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3672 ( sleep 1 ) & 3673 am_sleep_pid=$! 3674fi 3675 3676rm -f conftest.file 3677 3678test "$program_prefix" != NONE && 3679 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3680# Use a double $ so make ignores it. 3681test "$program_suffix" != NONE && 3682 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3683# Double any \ or $. 3684# By default was `s,x,x', remove it if useless. 3685ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3686program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3687 3688if test x"${MISSING+set}" != xset; then 3689 case $am_aux_dir in 3690 *\ * | *\ *) 3691 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3692 *) 3693 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3694 esac 3695fi 3696# Use eval to expand $SHELL 3697if eval "$MISSING --is-lightweight"; then 3698 am_missing_run="$MISSING " 3699else 3700 am_missing_run= 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3702$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3703fi 3704 3705if test x"${install_sh+set}" != xset; then 3706 case $am_aux_dir in 3707 *\ * | *\ *) 3708 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3709 *) 3710 install_sh="\${SHELL} $am_aux_dir/install-sh" 3711 esac 3712fi 3713 3714# Installed binaries are usually stripped using 'strip' when the user 3715# run "make install-strip". However 'strip' might not be the right 3716# tool to use in cross-compilation environments, therefore Automake 3717# will honor the 'STRIP' environment variable to overrule this program. 3718if test "$cross_compiling" != no; then 3719 if test -n "$ac_tool_prefix"; then 3720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3721set dummy ${ac_tool_prefix}strip; ac_word=$2 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3723$as_echo_n "checking for $ac_word... " >&6; } 3724if ${ac_cv_prog_STRIP+:} false; then : 3725 $as_echo_n "(cached) " >&6 3726else 3727 if test -n "$STRIP"; then 3728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3729else 3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3731for as_dir in $PATH 3732do 3733 IFS=$as_save_IFS 3734 test -z "$as_dir" && as_dir=. 3735 for ac_exec_ext in '' $ac_executable_extensions; do 3736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3737 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3739 break 2 3740 fi 3741done 3742 done 3743IFS=$as_save_IFS 3744 3745fi 3746fi 3747STRIP=$ac_cv_prog_STRIP 3748if test -n "$STRIP"; then 3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3750$as_echo "$STRIP" >&6; } 3751else 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753$as_echo "no" >&6; } 3754fi 3755 3756 3757fi 3758if test -z "$ac_cv_prog_STRIP"; then 3759 ac_ct_STRIP=$STRIP 3760 # Extract the first word of "strip", so it can be a program name with args. 3761set dummy strip; ac_word=$2 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3763$as_echo_n "checking for $ac_word... " >&6; } 3764if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3765 $as_echo_n "(cached) " >&6 3766else 3767 if test -n "$ac_ct_STRIP"; then 3768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3769else 3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771for as_dir in $PATH 3772do 3773 IFS=$as_save_IFS 3774 test -z "$as_dir" && as_dir=. 3775 for ac_exec_ext in '' $ac_executable_extensions; do 3776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3777 ac_cv_prog_ac_ct_STRIP="strip" 3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3779 break 2 3780 fi 3781done 3782 done 3783IFS=$as_save_IFS 3784 3785fi 3786fi 3787ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3788if test -n "$ac_ct_STRIP"; then 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3790$as_echo "$ac_ct_STRIP" >&6; } 3791else 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793$as_echo "no" >&6; } 3794fi 3795 3796 if test "x$ac_ct_STRIP" = x; then 3797 STRIP=":" 3798 else 3799 case $cross_compiling:$ac_tool_warned in 3800yes:) 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3803ac_tool_warned=yes ;; 3804esac 3805 STRIP=$ac_ct_STRIP 3806 fi 3807else 3808 STRIP="$ac_cv_prog_STRIP" 3809fi 3810 3811fi 3812INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3813 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3815$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3816if test -z "$MKDIR_P"; then 3817 if ${ac_cv_path_mkdir+:} false; then : 3818 $as_echo_n "(cached) " >&6 3819else 3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3821for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3822do 3823 IFS=$as_save_IFS 3824 test -z "$as_dir" && as_dir=. 3825 for ac_prog in mkdir gmkdir; do 3826 for ac_exec_ext in '' $ac_executable_extensions; do 3827 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3828 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3829 'mkdir (GNU coreutils) '* | \ 3830 'mkdir (coreutils) '* | \ 3831 'mkdir (fileutils) '4.1*) 3832 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3833 break 3;; 3834 esac 3835 done 3836 done 3837 done 3838IFS=$as_save_IFS 3839 3840fi 3841 3842 test -d ./--version && rmdir ./--version 3843 if test "${ac_cv_path_mkdir+set}" = set; then 3844 MKDIR_P="$ac_cv_path_mkdir -p" 3845 else 3846 # As a last resort, use the slow shell script. Don't cache a 3847 # value for MKDIR_P within a source directory, because that will 3848 # break other packages using the cache if that directory is 3849 # removed, or if the value is a relative name. 3850 MKDIR_P="$ac_install_sh -d" 3851 fi 3852fi 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3854$as_echo "$MKDIR_P" >&6; } 3855 3856for ac_prog in gawk mawk nawk awk 3857do 3858 # Extract the first word of "$ac_prog", so it can be a program name with args. 3859set dummy $ac_prog; ac_word=$2 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3861$as_echo_n "checking for $ac_word... " >&6; } 3862if ${ac_cv_prog_AWK+:} false; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 if test -n "$AWK"; then 3866 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3875 ac_cv_prog_AWK="$ac_prog" 3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3877 break 2 3878 fi 3879done 3880 done 3881IFS=$as_save_IFS 3882 3883fi 3884fi 3885AWK=$ac_cv_prog_AWK 3886if test -n "$AWK"; then 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3888$as_echo "$AWK" >&6; } 3889else 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3891$as_echo "no" >&6; } 3892fi 3893 3894 3895 test -n "$AWK" && break 3896done 3897 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3899$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3900set x ${MAKE-make} 3901ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3902if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3903 $as_echo_n "(cached) " >&6 3904else 3905 cat >conftest.make <<\_ACEOF 3906SHELL = /bin/sh 3907all: 3908 @echo '@@@%%%=$(MAKE)=@@@%%%' 3909_ACEOF 3910# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3911case `${MAKE-make} -f conftest.make 2>/dev/null` in 3912 *@@@%%%=?*=@@@%%%*) 3913 eval ac_cv_prog_make_${ac_make}_set=yes;; 3914 *) 3915 eval ac_cv_prog_make_${ac_make}_set=no;; 3916esac 3917rm -f conftest.make 3918fi 3919if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3921$as_echo "yes" >&6; } 3922 SET_MAKE= 3923else 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3925$as_echo "no" >&6; } 3926 SET_MAKE="MAKE=${MAKE-make}" 3927fi 3928 3929rm -rf .tst 2>/dev/null 3930mkdir .tst 2>/dev/null 3931if test -d .tst; then 3932 am__leading_dot=. 3933else 3934 am__leading_dot=_ 3935fi 3936rmdir .tst 2>/dev/null 3937 3938DEPDIR="${am__leading_dot}deps" 3939 3940ac_config_commands="$ac_config_commands depfiles" 3941 3942 3943am_make=${MAKE-make} 3944cat > confinc << 'END' 3945am__doit: 3946 @echo this is the am__doit target 3947.PHONY: am__doit 3948END 3949# If we don't find an include directive, just comment out the code. 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3951$as_echo_n "checking for style of include used by $am_make... " >&6; } 3952am__include="#" 3953am__quote= 3954_am_result=none 3955# First try GNU make style include. 3956echo "include confinc" > confmf 3957# Ignore all kinds of additional output from 'make'. 3958case `$am_make -s -f confmf 2> /dev/null` in #( 3959*the\ am__doit\ target*) 3960 am__include=include 3961 am__quote= 3962 _am_result=GNU 3963 ;; 3964esac 3965# Now try BSD make style include. 3966if test "$am__include" = "#"; then 3967 echo '.include "confinc"' > confmf 3968 case `$am_make -s -f confmf 2> /dev/null` in #( 3969 *the\ am__doit\ target*) 3970 am__include=.include 3971 am__quote="\"" 3972 _am_result=BSD 3973 ;; 3974 esac 3975fi 3976 3977 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3979$as_echo "$_am_result" >&6; } 3980rm -f confinc confmf 3981 3982# Check whether --enable-dependency-tracking was given. 3983if test "${enable_dependency_tracking+set}" = set; then : 3984 enableval=$enable_dependency_tracking; 3985fi 3986 3987if test "x$enable_dependency_tracking" != xno; then 3988 am_depcomp="$ac_aux_dir/depcomp" 3989 AMDEPBACKSLASH='\' 3990 am__nodep='_no' 3991fi 3992 if test "x$enable_dependency_tracking" != xno; then 3993 AMDEP_TRUE= 3994 AMDEP_FALSE='#' 3995else 3996 AMDEP_TRUE='#' 3997 AMDEP_FALSE= 3998fi 3999 4000 4001# Check whether --enable-silent-rules was given. 4002if test "${enable_silent_rules+set}" = set; then : 4003 enableval=$enable_silent_rules; 4004fi 4005 4006case $enable_silent_rules in # ((( 4007 yes) AM_DEFAULT_VERBOSITY=0;; 4008 no) AM_DEFAULT_VERBOSITY=1;; 4009 *) AM_DEFAULT_VERBOSITY=1;; 4010esac 4011am_make=${MAKE-make} 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4013$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4014if ${am_cv_make_support_nested_variables+:} false; then : 4015 $as_echo_n "(cached) " >&6 4016else 4017 if $as_echo 'TRUE=$(BAR$(V)) 4018BAR0=false 4019BAR1=true 4020V=1 4021am__doit: 4022 @$(TRUE) 4023.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4024 am_cv_make_support_nested_variables=yes 4025else 4026 am_cv_make_support_nested_variables=no 4027fi 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4030$as_echo "$am_cv_make_support_nested_variables" >&6; } 4031if test $am_cv_make_support_nested_variables = yes; then 4032 AM_V='$(V)' 4033 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4034else 4035 AM_V=$AM_DEFAULT_VERBOSITY 4036 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4037fi 4038AM_BACKSLASH='\' 4039 4040if test "`cd $srcdir && pwd`" != "`pwd`"; then 4041 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4042 # is not polluted with repeated "-I." 4043 am__isrc=' -I$(srcdir)' 4044 # test to see if srcdir already configured 4045 if test -f $srcdir/config.status; then 4046 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4047 fi 4048fi 4049 4050# test whether we have cygpath 4051if test -z "$CYGPATH_W"; then 4052 if (cygpath --version) >/dev/null 2>/dev/null; then 4053 CYGPATH_W='cygpath -w' 4054 else 4055 CYGPATH_W=echo 4056 fi 4057fi 4058 4059 4060# Define the identity of the package. 4061 PACKAGE='xev' 4062 VERSION='1.2.2' 4063 4064 4065cat >>confdefs.h <<_ACEOF 4066#define PACKAGE "$PACKAGE" 4067_ACEOF 4068 4069 4070cat >>confdefs.h <<_ACEOF 4071#define VERSION "$VERSION" 4072_ACEOF 4073 4074# Some tools Automake needs. 4075 4076ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4077 4078 4079AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4080 4081 4082AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4083 4084 4085AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4086 4087 4088MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4089 4090# For better backward compatibility. To be removed once Automake 1.9.x 4091# dies out for good. For more background, see: 4092# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4093# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4094mkdir_p='$(MKDIR_P)' 4095 4096# We need awk for the "check" target (and possibly the TAP driver). The 4097# system "awk" is bad on some platforms. 4098# Always define AMTAR for backward compatibility. Yes, it's still used 4099# in the wild :-( We should find a proper way to deprecate it ... 4100AMTAR='$${TAR-tar}' 4101 4102 4103# We'll loop over all known methods to create a tar archive until one works. 4104_am_tools='gnutar pax cpio none' 4105 4106am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4107 4108 4109 4110 4111 4112depcc="$CC" am_compiler_list= 4113 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4115$as_echo_n "checking dependency style of $depcc... " >&6; } 4116if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4117 $as_echo_n "(cached) " >&6 4118else 4119 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4120 # We make a subdir and do the tests there. Otherwise we can end up 4121 # making bogus files that we don't know about and never remove. For 4122 # instance it was reported that on HP-UX the gcc test will end up 4123 # making a dummy file named 'D' -- because '-MD' means "put the output 4124 # in D". 4125 rm -rf conftest.dir 4126 mkdir conftest.dir 4127 # Copy depcomp to subdir because otherwise we won't find it if we're 4128 # using a relative directory. 4129 cp "$am_depcomp" conftest.dir 4130 cd conftest.dir 4131 # We will build objects and dependencies in a subdirectory because 4132 # it helps to detect inapplicable dependency modes. For instance 4133 # both Tru64's cc and ICC support -MD to output dependencies as a 4134 # side effect of compilation, but ICC will put the dependencies in 4135 # the current directory while Tru64 will put them in the object 4136 # directory. 4137 mkdir sub 4138 4139 am_cv_CC_dependencies_compiler_type=none 4140 if test "$am_compiler_list" = ""; then 4141 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4142 fi 4143 am__universal=false 4144 case " $depcc " in #( 4145 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4146 esac 4147 4148 for depmode in $am_compiler_list; do 4149 # Setup a source with many dependencies, because some compilers 4150 # like to wrap large dependency lists on column 80 (with \), and 4151 # we should not choose a depcomp mode which is confused by this. 4152 # 4153 # We need to recreate these files for each test, as the compiler may 4154 # overwrite some of them when testing with obscure command lines. 4155 # This happens at least with the AIX C compiler. 4156 : > sub/conftest.c 4157 for i in 1 2 3 4 5 6; do 4158 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4159 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4160 # Solaris 10 /bin/sh. 4161 echo '/* dummy */' > sub/conftst$i.h 4162 done 4163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4164 4165 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4166 # mode. It turns out that the SunPro C++ compiler does not properly 4167 # handle '-M -o', and we need to detect this. Also, some Intel 4168 # versions had trouble with output in subdirs. 4169 am__obj=sub/conftest.${OBJEXT-o} 4170 am__minus_obj="-o $am__obj" 4171 case $depmode in 4172 gcc) 4173 # This depmode causes a compiler race in universal mode. 4174 test "$am__universal" = false || continue 4175 ;; 4176 nosideeffect) 4177 # After this tag, mechanisms are not by side-effect, so they'll 4178 # only be used when explicitly requested. 4179 if test "x$enable_dependency_tracking" = xyes; then 4180 continue 4181 else 4182 break 4183 fi 4184 ;; 4185 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4186 # This compiler won't grok '-c -o', but also, the minuso test has 4187 # not run yet. These depmodes are late enough in the game, and 4188 # so weak that their functioning should not be impacted. 4189 am__obj=conftest.${OBJEXT-o} 4190 am__minus_obj= 4191 ;; 4192 none) break ;; 4193 esac 4194 if depmode=$depmode \ 4195 source=sub/conftest.c object=$am__obj \ 4196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4197 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4198 >/dev/null 2>conftest.err && 4199 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4201 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4203 # icc doesn't choke on unknown options, it will just issue warnings 4204 # or remarks (even with -Werror). So we grep stderr for any message 4205 # that says an option was ignored or not supported. 4206 # When given -MP, icc 7.0 and 7.1 complain thusly: 4207 # icc: Command line warning: ignoring option '-M'; no argument required 4208 # The diagnosis changed in icc 8.0: 4209 # icc: Command line remark: option '-MP' not supported 4210 if (grep 'ignoring option' conftest.err || 4211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4212 am_cv_CC_dependencies_compiler_type=$depmode 4213 break 4214 fi 4215 fi 4216 done 4217 4218 cd .. 4219 rm -rf conftest.dir 4220else 4221 am_cv_CC_dependencies_compiler_type=none 4222fi 4223 4224fi 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4226$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4227CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4228 4229 if 4230 test "x$enable_dependency_tracking" != xno \ 4231 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4232 am__fastdepCC_TRUE= 4233 am__fastdepCC_FALSE='#' 4234else 4235 am__fastdepCC_TRUE='#' 4236 am__fastdepCC_FALSE= 4237fi 4238 4239 4240 4241# POSIX will say in a future version that running "rm -f" with no argument 4242# is OK; and we want to be able to make that assumption in our Makefile 4243# recipes. So use an aggressive probe to check that the usage we want is 4244# actually supported "in the wild" to an acceptable degree. 4245# See automake bug#10828. 4246# To make any issue more visible, cause the running configure to be aborted 4247# by default if the 'rm' program in use doesn't match our expectations; the 4248# user can still override this though. 4249if rm -f && rm -fr && rm -rf; then : OK; else 4250 cat >&2 <<'END' 4251Oops! 4252 4253Your 'rm' program seems unable to run without file operands specified 4254on the command line, even when the '-f' option is present. This is contrary 4255to the behaviour of most rm programs out there, and not conforming with 4256the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4257 4258Please tell bug-automake@gnu.org about your system, including the value 4259of your $PATH and any error possibly output before this message. This 4260can help us improve future automake versions. 4261 4262END 4263 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4264 echo 'Configuration will proceed anyway, since you have set the' >&2 4265 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4266 echo >&2 4267 else 4268 cat >&2 <<'END' 4269Aborting the configuration process, to ensure you take notice of the issue. 4270 4271You can download and install GNU coreutils to get an 'rm' implementation 4272that behaves properly: <http://www.gnu.org/software/coreutils/>. 4273 4274If you want to complete the configuration process using your problematic 4275'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4276to "yes", and re-run configure. 4277 4278END 4279 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4280 fi 4281fi 4282 4283 4284# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4297$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4298if ${ac_cv_prog_cc_c99+:} false; then : 4299 $as_echo_n "(cached) " >&6 4300else 4301 ac_cv_prog_cc_c99=no 4302ac_save_CC=$CC 4303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304/* end confdefs.h. */ 4305#include <stdarg.h> 4306#include <stdbool.h> 4307#include <stdlib.h> 4308#include <wchar.h> 4309#include <stdio.h> 4310 4311// Check varargs macros. These examples are taken from C99 6.10.3.5. 4312#define debug(...) fprintf (stderr, __VA_ARGS__) 4313#define showlist(...) puts (#__VA_ARGS__) 4314#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4315static void 4316test_varargs_macros (void) 4317{ 4318 int x = 1234; 4319 int y = 5678; 4320 debug ("Flag"); 4321 debug ("X = %d\n", x); 4322 showlist (The first, second, and third items.); 4323 report (x>y, "x is %d but y is %d", x, y); 4324} 4325 4326// Check long long types. 4327#define BIG64 18446744073709551615ull 4328#define BIG32 4294967295ul 4329#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4330#if !BIG_OK 4331 your preprocessor is broken; 4332#endif 4333#if BIG_OK 4334#else 4335 your preprocessor is broken; 4336#endif 4337static long long int bignum = -9223372036854775807LL; 4338static unsigned long long int ubignum = BIG64; 4339 4340struct incomplete_array 4341{ 4342 int datasize; 4343 double data[]; 4344}; 4345 4346struct named_init { 4347 int number; 4348 const wchar_t *name; 4349 double average; 4350}; 4351 4352typedef const char *ccp; 4353 4354static inline int 4355test_restrict (ccp restrict text) 4356{ 4357 // See if C++-style comments work. 4358 // Iterate through items via the restricted pointer. 4359 // Also check for declarations in for loops. 4360 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4361 continue; 4362 return 0; 4363} 4364 4365// Check varargs and va_copy. 4366static void 4367test_varargs (const char *format, ...) 4368{ 4369 va_list args; 4370 va_start (args, format); 4371 va_list args_copy; 4372 va_copy (args_copy, args); 4373 4374 const char *str; 4375 int number; 4376 float fnumber; 4377 4378 while (*format) 4379 { 4380 switch (*format++) 4381 { 4382 case 's': // string 4383 str = va_arg (args_copy, const char *); 4384 break; 4385 case 'd': // int 4386 number = va_arg (args_copy, int); 4387 break; 4388 case 'f': // float 4389 fnumber = va_arg (args_copy, double); 4390 break; 4391 default: 4392 break; 4393 } 4394 } 4395 va_end (args_copy); 4396 va_end (args); 4397} 4398 4399int 4400main () 4401{ 4402 4403 // Check bool. 4404 _Bool success = false; 4405 4406 // Check restrict. 4407 if (test_restrict ("String literal") == 0) 4408 success = true; 4409 char *restrict newvar = "Another string"; 4410 4411 // Check varargs. 4412 test_varargs ("s, d' f .", "string", 65, 34.234); 4413 test_varargs_macros (); 4414 4415 // Check flexible array members. 4416 struct incomplete_array *ia = 4417 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4418 ia->datasize = 10; 4419 for (int i = 0; i < ia->datasize; ++i) 4420 ia->data[i] = i * 1.234; 4421 4422 // Check named initializers. 4423 struct named_init ni = { 4424 .number = 34, 4425 .name = L"Test wide string", 4426 .average = 543.34343, 4427 }; 4428 4429 ni.number = 58; 4430 4431 int dynamic_array[ni.number]; 4432 dynamic_array[ni.number - 1] = 543; 4433 4434 // work around unused variable warnings 4435 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4436 || dynamic_array[ni.number - 1] != 543); 4437 4438 ; 4439 return 0; 4440} 4441_ACEOF 4442for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4443do 4444 CC="$ac_save_CC $ac_arg" 4445 if ac_fn_c_try_compile "$LINENO"; then : 4446 ac_cv_prog_cc_c99=$ac_arg 4447fi 4448rm -f core conftest.err conftest.$ac_objext 4449 test "x$ac_cv_prog_cc_c99" != "xno" && break 4450done 4451rm -f conftest.$ac_ext 4452CC=$ac_save_CC 4453 4454fi 4455# AC_CACHE_VAL 4456case "x$ac_cv_prog_cc_c99" in 4457 x) 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4459$as_echo "none needed" >&6; } ;; 4460 xno) 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4462$as_echo "unsupported" >&6; } ;; 4463 *) 4464 CC="$CC $ac_cv_prog_cc_c99" 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4466$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4467esac 4468if test "x$ac_cv_prog_cc_c99" != xno; then : 4469 4470fi 4471 4472 4473 4474 4475 4476 4477ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4478if test "x$ac_cv_have_decl___clang__" = xyes; then : 4479 CLANGCC="yes" 4480else 4481 CLANGCC="no" 4482fi 4483 4484ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4485if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4486 INTELCC="yes" 4487else 4488 INTELCC="no" 4489fi 4490 4491ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4492if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4493 SUNCC="yes" 4494else 4495 SUNCC="no" 4496fi 4497 4498 4499 4500 4501if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4502 if test -n "$ac_tool_prefix"; then 4503 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4504set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4506$as_echo_n "checking for $ac_word... " >&6; } 4507if ${ac_cv_path_PKG_CONFIG+:} false; then : 4508 $as_echo_n "(cached) " >&6 4509else 4510 case $PKG_CONFIG in 4511 [\\/]* | ?:[\\/]*) 4512 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4513 ;; 4514 *) 4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4516for as_dir in $PATH 4517do 4518 IFS=$as_save_IFS 4519 test -z "$as_dir" && as_dir=. 4520 for ac_exec_ext in '' $ac_executable_extensions; do 4521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4522 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4524 break 2 4525 fi 4526done 4527 done 4528IFS=$as_save_IFS 4529 4530 ;; 4531esac 4532fi 4533PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4534if test -n "$PKG_CONFIG"; then 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4536$as_echo "$PKG_CONFIG" >&6; } 4537else 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4539$as_echo "no" >&6; } 4540fi 4541 4542 4543fi 4544if test -z "$ac_cv_path_PKG_CONFIG"; then 4545 ac_pt_PKG_CONFIG=$PKG_CONFIG 4546 # Extract the first word of "pkg-config", so it can be a program name with args. 4547set dummy pkg-config; ac_word=$2 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4549$as_echo_n "checking for $ac_word... " >&6; } 4550if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 case $ac_pt_PKG_CONFIG in 4554 [\\/]* | ?:[\\/]*) 4555 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4556 ;; 4557 *) 4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4559for as_dir in $PATH 4560do 4561 IFS=$as_save_IFS 4562 test -z "$as_dir" && as_dir=. 4563 for ac_exec_ext in '' $ac_executable_extensions; do 4564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4565 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4567 break 2 4568 fi 4569done 4570 done 4571IFS=$as_save_IFS 4572 4573 ;; 4574esac 4575fi 4576ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4577if test -n "$ac_pt_PKG_CONFIG"; then 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4579$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4580else 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4582$as_echo "no" >&6; } 4583fi 4584 4585 if test "x$ac_pt_PKG_CONFIG" = x; then 4586 PKG_CONFIG="" 4587 else 4588 case $cross_compiling:$ac_tool_warned in 4589yes:) 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4592ac_tool_warned=yes ;; 4593esac 4594 PKG_CONFIG=$ac_pt_PKG_CONFIG 4595 fi 4596else 4597 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4598fi 4599 4600fi 4601if test -n "$PKG_CONFIG"; then 4602 _pkg_min_version=0.9.0 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4604$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4605 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4607$as_echo "yes" >&6; } 4608 else 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4610$as_echo "no" >&6; } 4611 PKG_CONFIG="" 4612 fi 4613 4614fi 4615# Make sure we can run config.sub. 4616$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4617 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4618 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4620$as_echo_n "checking build system type... " >&6; } 4621if ${ac_cv_build+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 ac_build_alias=$build_alias 4625test "x$ac_build_alias" = x && 4626 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4627test "x$ac_build_alias" = x && 4628 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4629ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4630 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4631 4632fi 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4634$as_echo "$ac_cv_build" >&6; } 4635case $ac_cv_build in 4636*-*-*) ;; 4637*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4638esac 4639build=$ac_cv_build 4640ac_save_IFS=$IFS; IFS='-' 4641set x $ac_cv_build 4642shift 4643build_cpu=$1 4644build_vendor=$2 4645shift; shift 4646# Remember, the first character of IFS is used to create $*, 4647# except with old shells: 4648build_os=$* 4649IFS=$ac_save_IFS 4650case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4651 4652 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4654$as_echo_n "checking host system type... " >&6; } 4655if ${ac_cv_host+:} false; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 if test "x$host_alias" = x; then 4659 ac_cv_host=$ac_cv_build 4660else 4661 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4662 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4663fi 4664 4665fi 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4667$as_echo "$ac_cv_host" >&6; } 4668case $ac_cv_host in 4669*-*-*) ;; 4670*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4671esac 4672host=$ac_cv_host 4673ac_save_IFS=$IFS; IFS='-' 4674set x $ac_cv_host 4675shift 4676host_cpu=$1 4677host_vendor=$2 4678shift; shift 4679# Remember, the first character of IFS is used to create $*, 4680# except with old shells: 4681host_os=$* 4682IFS=$ac_save_IFS 4683case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4684 4685 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4687$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4688if ${ac_cv_path_SED+:} false; then : 4689 $as_echo_n "(cached) " >&6 4690else 4691 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4692 for ac_i in 1 2 3 4 5 6 7; do 4693 ac_script="$ac_script$as_nl$ac_script" 4694 done 4695 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4696 { ac_script=; unset ac_script;} 4697 if test -z "$SED"; then 4698 ac_path_SED_found=false 4699 # Loop through the user's path and test for each of PROGNAME-LIST 4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4701for as_dir in $PATH 4702do 4703 IFS=$as_save_IFS 4704 test -z "$as_dir" && as_dir=. 4705 for ac_prog in sed gsed; do 4706 for ac_exec_ext in '' $ac_executable_extensions; do 4707 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4708 as_fn_executable_p "$ac_path_SED" || continue 4709# Check for GNU ac_path_SED and select it if it is found. 4710 # Check for GNU $ac_path_SED 4711case `"$ac_path_SED" --version 2>&1` in 4712*GNU*) 4713 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4714*) 4715 ac_count=0 4716 $as_echo_n 0123456789 >"conftest.in" 4717 while : 4718 do 4719 cat "conftest.in" "conftest.in" >"conftest.tmp" 4720 mv "conftest.tmp" "conftest.in" 4721 cp "conftest.in" "conftest.nl" 4722 $as_echo '' >> "conftest.nl" 4723 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4725 as_fn_arith $ac_count + 1 && ac_count=$as_val 4726 if test $ac_count -gt ${ac_path_SED_max-0}; then 4727 # Best one so far, save it but keep looking for a better one 4728 ac_cv_path_SED="$ac_path_SED" 4729 ac_path_SED_max=$ac_count 4730 fi 4731 # 10*(2^10) chars as input seems more than enough 4732 test $ac_count -gt 10 && break 4733 done 4734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4735esac 4736 4737 $ac_path_SED_found && break 3 4738 done 4739 done 4740 done 4741IFS=$as_save_IFS 4742 if test -z "$ac_cv_path_SED"; then 4743 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4744 fi 4745else 4746 ac_cv_path_SED=$SED 4747fi 4748 4749fi 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4751$as_echo "$ac_cv_path_SED" >&6; } 4752 SED="$ac_cv_path_SED" 4753 rm -f conftest.sed 4754 4755 4756 4757 4758 4759 4760# Check whether --enable-selective-werror was given. 4761if test "${enable_selective_werror+set}" = set; then : 4762 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4763else 4764 SELECTIVE_WERROR=yes 4765fi 4766 4767 4768 4769 4770 4771# -v is too short to test reliably with XORG_TESTSET_CFLAG 4772if test "x$SUNCC" = "xyes"; then 4773 BASE_CFLAGS="-v" 4774else 4775 BASE_CFLAGS="" 4776fi 4777 4778# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792xorg_testset_save_CFLAGS="$CFLAGS" 4793 4794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4799 $as_echo_n "(cached) " >&6 4800else 4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4802/* end confdefs.h. */ 4803int i; 4804_ACEOF 4805if ac_fn_c_try_compile "$LINENO"; then : 4806 xorg_cv_cc_flag_unknown_warning_option=yes 4807else 4808 xorg_cv_cc_flag_unknown_warning_option=no 4809fi 4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4811fi 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4815 CFLAGS="$xorg_testset_save_CFLAGS" 4816fi 4817 4818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4821 fi 4822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4829/* end confdefs.h. */ 4830int i; 4831_ACEOF 4832if ac_fn_c_try_compile "$LINENO"; then : 4833 xorg_cv_cc_flag_unused_command_line_argument=yes 4834else 4835 xorg_cv_cc_flag_unused_command_line_argument=no 4836fi 4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4838fi 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4842 CFLAGS="$xorg_testset_save_CFLAGS" 4843fi 4844 4845found="no" 4846 4847 if test $found = "no" ; then 4848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4850 fi 4851 4852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4854 fi 4855 4856 CFLAGS="$CFLAGS -Wall" 4857 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4859$as_echo_n "checking if $CC supports -Wall... " >&6; } 4860 cacheid=xorg_cv_cc_flag__Wall 4861 if eval \${$cacheid+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4865/* end confdefs.h. */ 4866int i; 4867int 4868main () 4869{ 4870 4871 ; 4872 return 0; 4873} 4874_ACEOF 4875if ac_fn_c_try_link "$LINENO"; then : 4876 eval $cacheid=yes 4877else 4878 eval $cacheid=no 4879fi 4880rm -f core conftest.err conftest.$ac_objext \ 4881 conftest$ac_exeext conftest.$ac_ext 4882fi 4883 4884 4885 CFLAGS="$xorg_testset_save_CFLAGS" 4886 4887 eval supported=\$$cacheid 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4889$as_echo "$supported" >&6; } 4890 if test "$supported" = "yes" ; then 4891 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4892 found="yes" 4893 fi 4894 fi 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910xorg_testset_save_CFLAGS="$CFLAGS" 4911 4912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4917 $as_echo_n "(cached) " >&6 4918else 4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4920/* end confdefs.h. */ 4921int i; 4922_ACEOF 4923if ac_fn_c_try_compile "$LINENO"; then : 4924 xorg_cv_cc_flag_unknown_warning_option=yes 4925else 4926 xorg_cv_cc_flag_unknown_warning_option=no 4927fi 4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4929fi 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4933 CFLAGS="$xorg_testset_save_CFLAGS" 4934fi 4935 4936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4939 fi 4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948int i; 4949_ACEOF 4950if ac_fn_c_try_compile "$LINENO"; then : 4951 xorg_cv_cc_flag_unused_command_line_argument=yes 4952else 4953 xorg_cv_cc_flag_unused_command_line_argument=no 4954fi 4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4956fi 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4960 CFLAGS="$xorg_testset_save_CFLAGS" 4961fi 4962 4963found="no" 4964 4965 if test $found = "no" ; then 4966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4968 fi 4969 4970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4972 fi 4973 4974 CFLAGS="$CFLAGS -Wpointer-arith" 4975 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4977$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4978 cacheid=xorg_cv_cc_flag__Wpointer_arith 4979 if eval \${$cacheid+:} false; then : 4980 $as_echo_n "(cached) " >&6 4981else 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984int i; 4985int 4986main () 4987{ 4988 4989 ; 4990 return 0; 4991} 4992_ACEOF 4993if ac_fn_c_try_link "$LINENO"; then : 4994 eval $cacheid=yes 4995else 4996 eval $cacheid=no 4997fi 4998rm -f core conftest.err conftest.$ac_objext \ 4999 conftest$ac_exeext conftest.$ac_ext 5000fi 5001 5002 5003 CFLAGS="$xorg_testset_save_CFLAGS" 5004 5005 eval supported=\$$cacheid 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5007$as_echo "$supported" >&6; } 5008 if test "$supported" = "yes" ; then 5009 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5010 found="yes" 5011 fi 5012 fi 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028xorg_testset_save_CFLAGS="$CFLAGS" 5029 5030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5038/* end confdefs.h. */ 5039int i; 5040_ACEOF 5041if ac_fn_c_try_compile "$LINENO"; then : 5042 xorg_cv_cc_flag_unknown_warning_option=yes 5043else 5044 xorg_cv_cc_flag_unknown_warning_option=no 5045fi 5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5047fi 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5051 CFLAGS="$xorg_testset_save_CFLAGS" 5052fi 5053 5054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5057 fi 5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5062 $as_echo_n "(cached) " >&6 5063else 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066int i; 5067_ACEOF 5068if ac_fn_c_try_compile "$LINENO"; then : 5069 xorg_cv_cc_flag_unused_command_line_argument=yes 5070else 5071 xorg_cv_cc_flag_unused_command_line_argument=no 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5078 CFLAGS="$xorg_testset_save_CFLAGS" 5079fi 5080 5081found="no" 5082 5083 if test $found = "no" ; then 5084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5086 fi 5087 5088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5090 fi 5091 5092 CFLAGS="$CFLAGS -Wmissing-declarations" 5093 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5095$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5096 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5097 if eval \${$cacheid+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102int i; 5103int 5104main () 5105{ 5106 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111if ac_fn_c_try_link "$LINENO"; then : 5112 eval $cacheid=yes 5113else 5114 eval $cacheid=no 5115fi 5116rm -f core conftest.err conftest.$ac_objext \ 5117 conftest$ac_exeext conftest.$ac_ext 5118fi 5119 5120 5121 CFLAGS="$xorg_testset_save_CFLAGS" 5122 5123 eval supported=\$$cacheid 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5125$as_echo "$supported" >&6; } 5126 if test "$supported" = "yes" ; then 5127 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5128 found="yes" 5129 fi 5130 fi 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146xorg_testset_save_CFLAGS="$CFLAGS" 5147 5148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5153 $as_echo_n "(cached) " >&6 5154else 5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5156/* end confdefs.h. */ 5157int i; 5158_ACEOF 5159if ac_fn_c_try_compile "$LINENO"; then : 5160 xorg_cv_cc_flag_unknown_warning_option=yes 5161else 5162 xorg_cv_cc_flag_unknown_warning_option=no 5163fi 5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5165fi 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5169 CFLAGS="$xorg_testset_save_CFLAGS" 5170fi 5171 5172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5175 fi 5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185_ACEOF 5186if ac_fn_c_try_compile "$LINENO"; then : 5187 xorg_cv_cc_flag_unused_command_line_argument=yes 5188else 5189 xorg_cv_cc_flag_unused_command_line_argument=no 5190fi 5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5192fi 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5196 CFLAGS="$xorg_testset_save_CFLAGS" 5197fi 5198 5199found="no" 5200 5201 if test $found = "no" ; then 5202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5204 fi 5205 5206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5208 fi 5209 5210 CFLAGS="$CFLAGS -Wformat=2" 5211 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5213$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5214 cacheid=xorg_cv_cc_flag__Wformat_2 5215 if eval \${$cacheid+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5219/* end confdefs.h. */ 5220int i; 5221int 5222main () 5223{ 5224 5225 ; 5226 return 0; 5227} 5228_ACEOF 5229if ac_fn_c_try_link "$LINENO"; then : 5230 eval $cacheid=yes 5231else 5232 eval $cacheid=no 5233fi 5234rm -f core conftest.err conftest.$ac_objext \ 5235 conftest$ac_exeext conftest.$ac_ext 5236fi 5237 5238 5239 CFLAGS="$xorg_testset_save_CFLAGS" 5240 5241 eval supported=\$$cacheid 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5243$as_echo "$supported" >&6; } 5244 if test "$supported" = "yes" ; then 5245 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5246 found="yes" 5247 fi 5248 fi 5249 5250 if test $found = "no" ; then 5251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5253 fi 5254 5255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5257 fi 5258 5259 CFLAGS="$CFLAGS -Wformat" 5260 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5262$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5263 cacheid=xorg_cv_cc_flag__Wformat 5264 if eval \${$cacheid+:} false; then : 5265 $as_echo_n "(cached) " >&6 5266else 5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5268/* end confdefs.h. */ 5269int i; 5270int 5271main () 5272{ 5273 5274 ; 5275 return 0; 5276} 5277_ACEOF 5278if ac_fn_c_try_link "$LINENO"; then : 5279 eval $cacheid=yes 5280else 5281 eval $cacheid=no 5282fi 5283rm -f core conftest.err conftest.$ac_objext \ 5284 conftest$ac_exeext conftest.$ac_ext 5285fi 5286 5287 5288 CFLAGS="$xorg_testset_save_CFLAGS" 5289 5290 eval supported=\$$cacheid 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5292$as_echo "$supported" >&6; } 5293 if test "$supported" = "yes" ; then 5294 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5295 found="yes" 5296 fi 5297 fi 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315xorg_testset_save_CFLAGS="$CFLAGS" 5316 5317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325/* end confdefs.h. */ 5326int i; 5327_ACEOF 5328if ac_fn_c_try_compile "$LINENO"; then : 5329 xorg_cv_cc_flag_unknown_warning_option=yes 5330else 5331 xorg_cv_cc_flag_unknown_warning_option=no 5332fi 5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5334fi 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5338 CFLAGS="$xorg_testset_save_CFLAGS" 5339fi 5340 5341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5344 fi 5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5352/* end confdefs.h. */ 5353int i; 5354_ACEOF 5355if ac_fn_c_try_compile "$LINENO"; then : 5356 xorg_cv_cc_flag_unused_command_line_argument=yes 5357else 5358 xorg_cv_cc_flag_unused_command_line_argument=no 5359fi 5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5361fi 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5365 CFLAGS="$xorg_testset_save_CFLAGS" 5366fi 5367 5368found="no" 5369 5370 if test $found = "no" ; then 5371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5373 fi 5374 5375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5377 fi 5378 5379 CFLAGS="$CFLAGS -Wstrict-prototypes" 5380 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5382$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5383 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5384 if eval \${$cacheid+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389int i; 5390int 5391main () 5392{ 5393 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398if ac_fn_c_try_link "$LINENO"; then : 5399 eval $cacheid=yes 5400else 5401 eval $cacheid=no 5402fi 5403rm -f core conftest.err conftest.$ac_objext \ 5404 conftest$ac_exeext conftest.$ac_ext 5405fi 5406 5407 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409 5410 eval supported=\$$cacheid 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5412$as_echo "$supported" >&6; } 5413 if test "$supported" = "yes" ; then 5414 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5415 found="yes" 5416 fi 5417 fi 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433xorg_testset_save_CFLAGS="$CFLAGS" 5434 5435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5440 $as_echo_n "(cached) " >&6 5441else 5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5443/* end confdefs.h. */ 5444int i; 5445_ACEOF 5446if ac_fn_c_try_compile "$LINENO"; then : 5447 xorg_cv_cc_flag_unknown_warning_option=yes 5448else 5449 xorg_cv_cc_flag_unknown_warning_option=no 5450fi 5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5452fi 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5456 CFLAGS="$xorg_testset_save_CFLAGS" 5457fi 5458 5459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5462 fi 5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5467 $as_echo_n "(cached) " >&6 5468else 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471int i; 5472_ACEOF 5473if ac_fn_c_try_compile "$LINENO"; then : 5474 xorg_cv_cc_flag_unused_command_line_argument=yes 5475else 5476 xorg_cv_cc_flag_unused_command_line_argument=no 5477fi 5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5483 CFLAGS="$xorg_testset_save_CFLAGS" 5484fi 5485 5486found="no" 5487 5488 if test $found = "no" ; then 5489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5491 fi 5492 5493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5495 fi 5496 5497 CFLAGS="$CFLAGS -Wmissing-prototypes" 5498 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5500$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5501 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5502 if eval \${$cacheid+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507int i; 5508int 5509main () 5510{ 5511 5512 ; 5513 return 0; 5514} 5515_ACEOF 5516if ac_fn_c_try_link "$LINENO"; then : 5517 eval $cacheid=yes 5518else 5519 eval $cacheid=no 5520fi 5521rm -f core conftest.err conftest.$ac_objext \ 5522 conftest$ac_exeext conftest.$ac_ext 5523fi 5524 5525 5526 CFLAGS="$xorg_testset_save_CFLAGS" 5527 5528 eval supported=\$$cacheid 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5530$as_echo "$supported" >&6; } 5531 if test "$supported" = "yes" ; then 5532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5533 found="yes" 5534 fi 5535 fi 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551xorg_testset_save_CFLAGS="$CFLAGS" 5552 5553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5561/* end confdefs.h. */ 5562int i; 5563_ACEOF 5564if ac_fn_c_try_compile "$LINENO"; then : 5565 xorg_cv_cc_flag_unknown_warning_option=yes 5566else 5567 xorg_cv_cc_flag_unknown_warning_option=no 5568fi 5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5570fi 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5574 CFLAGS="$xorg_testset_save_CFLAGS" 5575fi 5576 5577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5580 fi 5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588/* end confdefs.h. */ 5589int i; 5590_ACEOF 5591if ac_fn_c_try_compile "$LINENO"; then : 5592 xorg_cv_cc_flag_unused_command_line_argument=yes 5593else 5594 xorg_cv_cc_flag_unused_command_line_argument=no 5595fi 5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602fi 5603 5604found="no" 5605 5606 if test $found = "no" ; then 5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5609 fi 5610 5611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5613 fi 5614 5615 CFLAGS="$CFLAGS -Wnested-externs" 5616 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5618$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5619 cacheid=xorg_cv_cc_flag__Wnested_externs 5620 if eval \${$cacheid+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625int i; 5626int 5627main () 5628{ 5629 5630 ; 5631 return 0; 5632} 5633_ACEOF 5634if ac_fn_c_try_link "$LINENO"; then : 5635 eval $cacheid=yes 5636else 5637 eval $cacheid=no 5638fi 5639rm -f core conftest.err conftest.$ac_objext \ 5640 conftest$ac_exeext conftest.$ac_ext 5641fi 5642 5643 5644 CFLAGS="$xorg_testset_save_CFLAGS" 5645 5646 eval supported=\$$cacheid 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5648$as_echo "$supported" >&6; } 5649 if test "$supported" = "yes" ; then 5650 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5651 found="yes" 5652 fi 5653 fi 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669xorg_testset_save_CFLAGS="$CFLAGS" 5670 5671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5676 $as_echo_n "(cached) " >&6 5677else 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5679/* end confdefs.h. */ 5680int i; 5681_ACEOF 5682if ac_fn_c_try_compile "$LINENO"; then : 5683 xorg_cv_cc_flag_unknown_warning_option=yes 5684else 5685 xorg_cv_cc_flag_unknown_warning_option=no 5686fi 5687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5688fi 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5692 CFLAGS="$xorg_testset_save_CFLAGS" 5693fi 5694 5695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5698 fi 5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5703 $as_echo_n "(cached) " >&6 5704else 5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707int i; 5708_ACEOF 5709if ac_fn_c_try_compile "$LINENO"; then : 5710 xorg_cv_cc_flag_unused_command_line_argument=yes 5711else 5712 xorg_cv_cc_flag_unused_command_line_argument=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715fi 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5719 CFLAGS="$xorg_testset_save_CFLAGS" 5720fi 5721 5722found="no" 5723 5724 if test $found = "no" ; then 5725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5727 fi 5728 5729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5731 fi 5732 5733 CFLAGS="$CFLAGS -Wbad-function-cast" 5734 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5736$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5737 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5738 if eval \${$cacheid+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5742/* end confdefs.h. */ 5743int i; 5744int 5745main () 5746{ 5747 5748 ; 5749 return 0; 5750} 5751_ACEOF 5752if ac_fn_c_try_link "$LINENO"; then : 5753 eval $cacheid=yes 5754else 5755 eval $cacheid=no 5756fi 5757rm -f core conftest.err conftest.$ac_objext \ 5758 conftest$ac_exeext conftest.$ac_ext 5759fi 5760 5761 5762 CFLAGS="$xorg_testset_save_CFLAGS" 5763 5764 eval supported=\$$cacheid 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5766$as_echo "$supported" >&6; } 5767 if test "$supported" = "yes" ; then 5768 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5769 found="yes" 5770 fi 5771 fi 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787xorg_testset_save_CFLAGS="$CFLAGS" 5788 5789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795else 5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798int i; 5799_ACEOF 5800if ac_fn_c_try_compile "$LINENO"; then : 5801 xorg_cv_cc_flag_unknown_warning_option=yes 5802else 5803 xorg_cv_cc_flag_unknown_warning_option=no 5804fi 5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5806fi 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5810 CFLAGS="$xorg_testset_save_CFLAGS" 5811fi 5812 5813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5816 fi 5817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825int i; 5826_ACEOF 5827if ac_fn_c_try_compile "$LINENO"; then : 5828 xorg_cv_cc_flag_unused_command_line_argument=yes 5829else 5830 xorg_cv_cc_flag_unused_command_line_argument=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5837 CFLAGS="$xorg_testset_save_CFLAGS" 5838fi 5839 5840found="no" 5841 5842 if test $found = "no" ; then 5843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5845 fi 5846 5847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5849 fi 5850 5851 CFLAGS="$CFLAGS -Wold-style-definition" 5852 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5854$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5855 cacheid=xorg_cv_cc_flag__Wold_style_definition 5856 if eval \${$cacheid+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5860/* end confdefs.h. */ 5861int i; 5862int 5863main () 5864{ 5865 5866 ; 5867 return 0; 5868} 5869_ACEOF 5870if ac_fn_c_try_link "$LINENO"; then : 5871 eval $cacheid=yes 5872else 5873 eval $cacheid=no 5874fi 5875rm -f core conftest.err conftest.$ac_objext \ 5876 conftest$ac_exeext conftest.$ac_ext 5877fi 5878 5879 5880 CFLAGS="$xorg_testset_save_CFLAGS" 5881 5882 eval supported=\$$cacheid 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5884$as_echo "$supported" >&6; } 5885 if test "$supported" = "yes" ; then 5886 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5887 found="yes" 5888 fi 5889 fi 5890 5891 if test $found = "no" ; then 5892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5894 fi 5895 5896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5898 fi 5899 5900 CFLAGS="$CFLAGS -fd" 5901 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5903$as_echo_n "checking if $CC supports -fd... " >&6; } 5904 cacheid=xorg_cv_cc_flag__fd 5905 if eval \${$cacheid+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909/* end confdefs.h. */ 5910int i; 5911int 5912main () 5913{ 5914 5915 ; 5916 return 0; 5917} 5918_ACEOF 5919if ac_fn_c_try_link "$LINENO"; then : 5920 eval $cacheid=yes 5921else 5922 eval $cacheid=no 5923fi 5924rm -f core conftest.err conftest.$ac_objext \ 5925 conftest$ac_exeext conftest.$ac_ext 5926fi 5927 5928 5929 CFLAGS="$xorg_testset_save_CFLAGS" 5930 5931 eval supported=\$$cacheid 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5933$as_echo "$supported" >&6; } 5934 if test "$supported" = "yes" ; then 5935 BASE_CFLAGS="$BASE_CFLAGS -fd" 5936 found="yes" 5937 fi 5938 fi 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954xorg_testset_save_CFLAGS="$CFLAGS" 5955 5956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5959$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5960if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5964/* end confdefs.h. */ 5965int i; 5966_ACEOF 5967if ac_fn_c_try_compile "$LINENO"; then : 5968 xorg_cv_cc_flag_unknown_warning_option=yes 5969else 5970 xorg_cv_cc_flag_unknown_warning_option=no 5971fi 5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5973fi 5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5975$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5977 CFLAGS="$xorg_testset_save_CFLAGS" 5978fi 5979 5980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5983 fi 5984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5986$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5987if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5988 $as_echo_n "(cached) " >&6 5989else 5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5991/* end confdefs.h. */ 5992int i; 5993_ACEOF 5994if ac_fn_c_try_compile "$LINENO"; then : 5995 xorg_cv_cc_flag_unused_command_line_argument=yes 5996else 5997 xorg_cv_cc_flag_unused_command_line_argument=no 5998fi 5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6000fi 6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6002$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6004 CFLAGS="$xorg_testset_save_CFLAGS" 6005fi 6006 6007found="no" 6008 6009 if test $found = "no" ; then 6010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6012 fi 6013 6014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6016 fi 6017 6018 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6019 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6021$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6022 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6023 if eval \${$cacheid+:} false; then : 6024 $as_echo_n "(cached) " >&6 6025else 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6027/* end confdefs.h. */ 6028int i; 6029int 6030main () 6031{ 6032 6033 ; 6034 return 0; 6035} 6036_ACEOF 6037if ac_fn_c_try_link "$LINENO"; then : 6038 eval $cacheid=yes 6039else 6040 eval $cacheid=no 6041fi 6042rm -f core conftest.err conftest.$ac_objext \ 6043 conftest$ac_exeext conftest.$ac_ext 6044fi 6045 6046 6047 CFLAGS="$xorg_testset_save_CFLAGS" 6048 6049 eval supported=\$$cacheid 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6051$as_echo "$supported" >&6; } 6052 if test "$supported" = "yes" ; then 6053 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6054 found="yes" 6055 fi 6056 fi 6057 6058 6059 6060 6061 6062# This chunk adds additional warnings that could catch undesired effects. 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076xorg_testset_save_CFLAGS="$CFLAGS" 6077 6078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6086/* end confdefs.h. */ 6087int i; 6088_ACEOF 6089if ac_fn_c_try_compile "$LINENO"; then : 6090 xorg_cv_cc_flag_unknown_warning_option=yes 6091else 6092 xorg_cv_cc_flag_unknown_warning_option=no 6093fi 6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6095fi 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6099 CFLAGS="$xorg_testset_save_CFLAGS" 6100fi 6101 6102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 fi 6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6110 $as_echo_n "(cached) " >&6 6111else 6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6113/* end confdefs.h. */ 6114int i; 6115_ACEOF 6116if ac_fn_c_try_compile "$LINENO"; then : 6117 xorg_cv_cc_flag_unused_command_line_argument=yes 6118else 6119 xorg_cv_cc_flag_unused_command_line_argument=no 6120fi 6121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6122fi 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6126 CFLAGS="$xorg_testset_save_CFLAGS" 6127fi 6128 6129found="no" 6130 6131 if test $found = "no" ; then 6132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6134 fi 6135 6136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6138 fi 6139 6140 CFLAGS="$CFLAGS -Wunused" 6141 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6143$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6144 cacheid=xorg_cv_cc_flag__Wunused 6145 if eval \${$cacheid+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6149/* end confdefs.h. */ 6150int i; 6151int 6152main () 6153{ 6154 6155 ; 6156 return 0; 6157} 6158_ACEOF 6159if ac_fn_c_try_link "$LINENO"; then : 6160 eval $cacheid=yes 6161else 6162 eval $cacheid=no 6163fi 6164rm -f core conftest.err conftest.$ac_objext \ 6165 conftest$ac_exeext conftest.$ac_ext 6166fi 6167 6168 6169 CFLAGS="$xorg_testset_save_CFLAGS" 6170 6171 eval supported=\$$cacheid 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6173$as_echo "$supported" >&6; } 6174 if test "$supported" = "yes" ; then 6175 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6176 found="yes" 6177 fi 6178 fi 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194xorg_testset_save_CFLAGS="$CFLAGS" 6195 6196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6201 $as_echo_n "(cached) " >&6 6202else 6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6204/* end confdefs.h. */ 6205int i; 6206_ACEOF 6207if ac_fn_c_try_compile "$LINENO"; then : 6208 xorg_cv_cc_flag_unknown_warning_option=yes 6209else 6210 xorg_cv_cc_flag_unknown_warning_option=no 6211fi 6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6213fi 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6217 CFLAGS="$xorg_testset_save_CFLAGS" 6218fi 6219 6220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6223 fi 6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6228 $as_echo_n "(cached) " >&6 6229else 6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6231/* end confdefs.h. */ 6232int i; 6233_ACEOF 6234if ac_fn_c_try_compile "$LINENO"; then : 6235 xorg_cv_cc_flag_unused_command_line_argument=yes 6236else 6237 xorg_cv_cc_flag_unused_command_line_argument=no 6238fi 6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6240fi 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6244 CFLAGS="$xorg_testset_save_CFLAGS" 6245fi 6246 6247found="no" 6248 6249 if test $found = "no" ; then 6250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6252 fi 6253 6254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6256 fi 6257 6258 CFLAGS="$CFLAGS -Wuninitialized" 6259 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6261$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6262 cacheid=xorg_cv_cc_flag__Wuninitialized 6263 if eval \${$cacheid+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267/* end confdefs.h. */ 6268int i; 6269int 6270main () 6271{ 6272 6273 ; 6274 return 0; 6275} 6276_ACEOF 6277if ac_fn_c_try_link "$LINENO"; then : 6278 eval $cacheid=yes 6279else 6280 eval $cacheid=no 6281fi 6282rm -f core conftest.err conftest.$ac_objext \ 6283 conftest$ac_exeext conftest.$ac_ext 6284fi 6285 6286 6287 CFLAGS="$xorg_testset_save_CFLAGS" 6288 6289 eval supported=\$$cacheid 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6291$as_echo "$supported" >&6; } 6292 if test "$supported" = "yes" ; then 6293 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6294 found="yes" 6295 fi 6296 fi 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312xorg_testset_save_CFLAGS="$CFLAGS" 6313 6314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322/* end confdefs.h. */ 6323int i; 6324_ACEOF 6325if ac_fn_c_try_compile "$LINENO"; then : 6326 xorg_cv_cc_flag_unknown_warning_option=yes 6327else 6328 xorg_cv_cc_flag_unknown_warning_option=no 6329fi 6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6331fi 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6335 CFLAGS="$xorg_testset_save_CFLAGS" 6336fi 6337 6338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6341 fi 6342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6349/* end confdefs.h. */ 6350int i; 6351_ACEOF 6352if ac_fn_c_try_compile "$LINENO"; then : 6353 xorg_cv_cc_flag_unused_command_line_argument=yes 6354else 6355 xorg_cv_cc_flag_unused_command_line_argument=no 6356fi 6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6358fi 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6362 CFLAGS="$xorg_testset_save_CFLAGS" 6363fi 6364 6365found="no" 6366 6367 if test $found = "no" ; then 6368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6370 fi 6371 6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6374 fi 6375 6376 CFLAGS="$CFLAGS -Wshadow" 6377 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6379$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6380 cacheid=xorg_cv_cc_flag__Wshadow 6381 if eval \${$cacheid+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6385/* end confdefs.h. */ 6386int i; 6387int 6388main () 6389{ 6390 6391 ; 6392 return 0; 6393} 6394_ACEOF 6395if ac_fn_c_try_link "$LINENO"; then : 6396 eval $cacheid=yes 6397else 6398 eval $cacheid=no 6399fi 6400rm -f core conftest.err conftest.$ac_objext \ 6401 conftest$ac_exeext conftest.$ac_ext 6402fi 6403 6404 6405 CFLAGS="$xorg_testset_save_CFLAGS" 6406 6407 eval supported=\$$cacheid 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6409$as_echo "$supported" >&6; } 6410 if test "$supported" = "yes" ; then 6411 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6412 found="yes" 6413 fi 6414 fi 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430xorg_testset_save_CFLAGS="$CFLAGS" 6431 6432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6440/* end confdefs.h. */ 6441int i; 6442_ACEOF 6443if ac_fn_c_try_compile "$LINENO"; then : 6444 xorg_cv_cc_flag_unknown_warning_option=yes 6445else 6446 xorg_cv_cc_flag_unknown_warning_option=no 6447fi 6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6449fi 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6453 CFLAGS="$xorg_testset_save_CFLAGS" 6454fi 6455 6456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6459 fi 6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6467/* end confdefs.h. */ 6468int i; 6469_ACEOF 6470if ac_fn_c_try_compile "$LINENO"; then : 6471 xorg_cv_cc_flag_unused_command_line_argument=yes 6472else 6473 xorg_cv_cc_flag_unused_command_line_argument=no 6474fi 6475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6476fi 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6480 CFLAGS="$xorg_testset_save_CFLAGS" 6481fi 6482 6483found="no" 6484 6485 if test $found = "no" ; then 6486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6488 fi 6489 6490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6492 fi 6493 6494 CFLAGS="$CFLAGS -Wmissing-noreturn" 6495 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6497$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6498 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6499 if eval \${$cacheid+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504int i; 6505int 6506main () 6507{ 6508 6509 ; 6510 return 0; 6511} 6512_ACEOF 6513if ac_fn_c_try_link "$LINENO"; then : 6514 eval $cacheid=yes 6515else 6516 eval $cacheid=no 6517fi 6518rm -f core conftest.err conftest.$ac_objext \ 6519 conftest$ac_exeext conftest.$ac_ext 6520fi 6521 6522 6523 CFLAGS="$xorg_testset_save_CFLAGS" 6524 6525 eval supported=\$$cacheid 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6527$as_echo "$supported" >&6; } 6528 if test "$supported" = "yes" ; then 6529 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6530 found="yes" 6531 fi 6532 fi 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548xorg_testset_save_CFLAGS="$CFLAGS" 6549 6550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6555 $as_echo_n "(cached) " >&6 6556else 6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6558/* end confdefs.h. */ 6559int i; 6560_ACEOF 6561if ac_fn_c_try_compile "$LINENO"; then : 6562 xorg_cv_cc_flag_unknown_warning_option=yes 6563else 6564 xorg_cv_cc_flag_unknown_warning_option=no 6565fi 6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6567fi 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6571 CFLAGS="$xorg_testset_save_CFLAGS" 6572fi 6573 6574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6577 fi 6578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6585/* end confdefs.h. */ 6586int i; 6587_ACEOF 6588if ac_fn_c_try_compile "$LINENO"; then : 6589 xorg_cv_cc_flag_unused_command_line_argument=yes 6590else 6591 xorg_cv_cc_flag_unused_command_line_argument=no 6592fi 6593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6594fi 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599fi 6600 6601found="no" 6602 6603 if test $found = "no" ; then 6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6606 fi 6607 6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6610 fi 6611 6612 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6613 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6615$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6616 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6617 if eval \${$cacheid+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622int i; 6623int 6624main () 6625{ 6626 6627 ; 6628 return 0; 6629} 6630_ACEOF 6631if ac_fn_c_try_link "$LINENO"; then : 6632 eval $cacheid=yes 6633else 6634 eval $cacheid=no 6635fi 6636rm -f core conftest.err conftest.$ac_objext \ 6637 conftest$ac_exeext conftest.$ac_ext 6638fi 6639 6640 6641 CFLAGS="$xorg_testset_save_CFLAGS" 6642 6643 eval supported=\$$cacheid 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6645$as_echo "$supported" >&6; } 6646 if test "$supported" = "yes" ; then 6647 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6648 found="yes" 6649 fi 6650 fi 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666xorg_testset_save_CFLAGS="$CFLAGS" 6667 6668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677int i; 6678_ACEOF 6679if ac_fn_c_try_compile "$LINENO"; then : 6680 xorg_cv_cc_flag_unknown_warning_option=yes 6681else 6682 xorg_cv_cc_flag_unknown_warning_option=no 6683fi 6684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6685fi 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6689 CFLAGS="$xorg_testset_save_CFLAGS" 6690fi 6691 6692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 fi 6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704int i; 6705_ACEOF 6706if ac_fn_c_try_compile "$LINENO"; then : 6707 xorg_cv_cc_flag_unused_command_line_argument=yes 6708else 6709 xorg_cv_cc_flag_unused_command_line_argument=no 6710fi 6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6712fi 6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717fi 6718 6719found="no" 6720 6721 if test $found = "no" ; then 6722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6724 fi 6725 6726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6728 fi 6729 6730 CFLAGS="$CFLAGS -Wredundant-decls" 6731 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6733$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6734 cacheid=xorg_cv_cc_flag__Wredundant_decls 6735 if eval \${$cacheid+:} false; then : 6736 $as_echo_n "(cached) " >&6 6737else 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740int i; 6741int 6742main () 6743{ 6744 6745 ; 6746 return 0; 6747} 6748_ACEOF 6749if ac_fn_c_try_link "$LINENO"; then : 6750 eval $cacheid=yes 6751else 6752 eval $cacheid=no 6753fi 6754rm -f core conftest.err conftest.$ac_objext \ 6755 conftest$ac_exeext conftest.$ac_ext 6756fi 6757 6758 6759 CFLAGS="$xorg_testset_save_CFLAGS" 6760 6761 eval supported=\$$cacheid 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6763$as_echo "$supported" >&6; } 6764 if test "$supported" = "yes" ; then 6765 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6766 found="yes" 6767 fi 6768 fi 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784xorg_testset_save_CFLAGS="$CFLAGS" 6785 6786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6791 $as_echo_n "(cached) " >&6 6792else 6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6794/* end confdefs.h. */ 6795int i; 6796_ACEOF 6797if ac_fn_c_try_compile "$LINENO"; then : 6798 xorg_cv_cc_flag_unknown_warning_option=yes 6799else 6800 xorg_cv_cc_flag_unknown_warning_option=no 6801fi 6802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6803fi 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6807 CFLAGS="$xorg_testset_save_CFLAGS" 6808fi 6809 6810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6813 fi 6814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6818 $as_echo_n "(cached) " >&6 6819else 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821/* end confdefs.h. */ 6822int i; 6823_ACEOF 6824if ac_fn_c_try_compile "$LINENO"; then : 6825 xorg_cv_cc_flag_unused_command_line_argument=yes 6826else 6827 xorg_cv_cc_flag_unused_command_line_argument=no 6828fi 6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6830fi 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6834 CFLAGS="$xorg_testset_save_CFLAGS" 6835fi 6836 6837found="no" 6838 6839 if test $found = "no" ; then 6840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6842 fi 6843 6844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6846 fi 6847 6848 CFLAGS="$CFLAGS -Wlogical-op" 6849 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6851$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6852 cacheid=xorg_cv_cc_flag__Wlogical_op 6853 if eval \${$cacheid+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6857/* end confdefs.h. */ 6858int i; 6859int 6860main () 6861{ 6862 6863 ; 6864 return 0; 6865} 6866_ACEOF 6867if ac_fn_c_try_link "$LINENO"; then : 6868 eval $cacheid=yes 6869else 6870 eval $cacheid=no 6871fi 6872rm -f core conftest.err conftest.$ac_objext \ 6873 conftest$ac_exeext conftest.$ac_ext 6874fi 6875 6876 6877 CFLAGS="$xorg_testset_save_CFLAGS" 6878 6879 eval supported=\$$cacheid 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6881$as_echo "$supported" >&6; } 6882 if test "$supported" = "yes" ; then 6883 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6884 found="yes" 6885 fi 6886 fi 6887 6888 6889 6890# These are currently disabled because they are noisy. They will be enabled 6891# in the future once the codebase is sufficiently modernized to silence 6892# them. For now, I don't want them to drown out the other warnings. 6893# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6894# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6895# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6896 6897# Turn some warnings into errors, so we don't accidently get successful builds 6898# when there are problems that should be fixed. 6899 6900if test "x$SELECTIVE_WERROR" = "xyes" ; then 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914xorg_testset_save_CFLAGS="$CFLAGS" 6915 6916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6921 $as_echo_n "(cached) " >&6 6922else 6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6924/* end confdefs.h. */ 6925int i; 6926_ACEOF 6927if ac_fn_c_try_compile "$LINENO"; then : 6928 xorg_cv_cc_flag_unknown_warning_option=yes 6929else 6930 xorg_cv_cc_flag_unknown_warning_option=no 6931fi 6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6933fi 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6937 CFLAGS="$xorg_testset_save_CFLAGS" 6938fi 6939 6940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6943 fi 6944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6948 $as_echo_n "(cached) " >&6 6949else 6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952int i; 6953_ACEOF 6954if ac_fn_c_try_compile "$LINENO"; then : 6955 xorg_cv_cc_flag_unused_command_line_argument=yes 6956else 6957 xorg_cv_cc_flag_unused_command_line_argument=no 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6960fi 6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6964 CFLAGS="$xorg_testset_save_CFLAGS" 6965fi 6966 6967found="no" 6968 6969 if test $found = "no" ; then 6970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6972 fi 6973 6974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6976 fi 6977 6978 CFLAGS="$CFLAGS -Werror=implicit" 6979 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6981$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6982 cacheid=xorg_cv_cc_flag__Werror_implicit 6983 if eval \${$cacheid+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985else 6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6987/* end confdefs.h. */ 6988int i; 6989int 6990main () 6991{ 6992 6993 ; 6994 return 0; 6995} 6996_ACEOF 6997if ac_fn_c_try_link "$LINENO"; then : 6998 eval $cacheid=yes 6999else 7000 eval $cacheid=no 7001fi 7002rm -f core conftest.err conftest.$ac_objext \ 7003 conftest$ac_exeext conftest.$ac_ext 7004fi 7005 7006 7007 CFLAGS="$xorg_testset_save_CFLAGS" 7008 7009 eval supported=\$$cacheid 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7011$as_echo "$supported" >&6; } 7012 if test "$supported" = "yes" ; then 7013 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7014 found="yes" 7015 fi 7016 fi 7017 7018 if test $found = "no" ; then 7019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7021 fi 7022 7023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7025 fi 7026 7027 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7028 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7030$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7031 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7032 if eval \${$cacheid+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036/* end confdefs.h. */ 7037int i; 7038int 7039main () 7040{ 7041 7042 ; 7043 return 0; 7044} 7045_ACEOF 7046if ac_fn_c_try_link "$LINENO"; then : 7047 eval $cacheid=yes 7048else 7049 eval $cacheid=no 7050fi 7051rm -f core conftest.err conftest.$ac_objext \ 7052 conftest$ac_exeext conftest.$ac_ext 7053fi 7054 7055 7056 CFLAGS="$xorg_testset_save_CFLAGS" 7057 7058 eval supported=\$$cacheid 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7060$as_echo "$supported" >&6; } 7061 if test "$supported" = "yes" ; then 7062 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7063 found="yes" 7064 fi 7065 fi 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081xorg_testset_save_CFLAGS="$CFLAGS" 7082 7083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092int i; 7093_ACEOF 7094if ac_fn_c_try_compile "$LINENO"; then : 7095 xorg_cv_cc_flag_unknown_warning_option=yes 7096else 7097 xorg_cv_cc_flag_unknown_warning_option=no 7098fi 7099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7100fi 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7104 CFLAGS="$xorg_testset_save_CFLAGS" 7105fi 7106 7107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7110 fi 7111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116else 7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119int i; 7120_ACEOF 7121if ac_fn_c_try_compile "$LINENO"; then : 7122 xorg_cv_cc_flag_unused_command_line_argument=yes 7123else 7124 xorg_cv_cc_flag_unused_command_line_argument=no 7125fi 7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7127fi 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7131 CFLAGS="$xorg_testset_save_CFLAGS" 7132fi 7133 7134found="no" 7135 7136 if test $found = "no" ; then 7137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7139 fi 7140 7141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7143 fi 7144 7145 CFLAGS="$CFLAGS -Werror=nonnull" 7146 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7148$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7149 cacheid=xorg_cv_cc_flag__Werror_nonnull 7150 if eval \${$cacheid+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155int i; 7156int 7157main () 7158{ 7159 7160 ; 7161 return 0; 7162} 7163_ACEOF 7164if ac_fn_c_try_link "$LINENO"; then : 7165 eval $cacheid=yes 7166else 7167 eval $cacheid=no 7168fi 7169rm -f core conftest.err conftest.$ac_objext \ 7170 conftest$ac_exeext conftest.$ac_ext 7171fi 7172 7173 7174 CFLAGS="$xorg_testset_save_CFLAGS" 7175 7176 eval supported=\$$cacheid 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7178$as_echo "$supported" >&6; } 7179 if test "$supported" = "yes" ; then 7180 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7181 found="yes" 7182 fi 7183 fi 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199xorg_testset_save_CFLAGS="$CFLAGS" 7200 7201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209/* end confdefs.h. */ 7210int i; 7211_ACEOF 7212if ac_fn_c_try_compile "$LINENO"; then : 7213 xorg_cv_cc_flag_unknown_warning_option=yes 7214else 7215 xorg_cv_cc_flag_unknown_warning_option=no 7216fi 7217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7218fi 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7222 CFLAGS="$xorg_testset_save_CFLAGS" 7223fi 7224 7225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7228 fi 7229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7236/* end confdefs.h. */ 7237int i; 7238_ACEOF 7239if ac_fn_c_try_compile "$LINENO"; then : 7240 xorg_cv_cc_flag_unused_command_line_argument=yes 7241else 7242 xorg_cv_cc_flag_unused_command_line_argument=no 7243fi 7244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7245fi 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7249 CFLAGS="$xorg_testset_save_CFLAGS" 7250fi 7251 7252found="no" 7253 7254 if test $found = "no" ; then 7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7257 fi 7258 7259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7261 fi 7262 7263 CFLAGS="$CFLAGS -Werror=init-self" 7264 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7266$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7267 cacheid=xorg_cv_cc_flag__Werror_init_self 7268 if eval \${$cacheid+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273int i; 7274int 7275main () 7276{ 7277 7278 ; 7279 return 0; 7280} 7281_ACEOF 7282if ac_fn_c_try_link "$LINENO"; then : 7283 eval $cacheid=yes 7284else 7285 eval $cacheid=no 7286fi 7287rm -f core conftest.err conftest.$ac_objext \ 7288 conftest$ac_exeext conftest.$ac_ext 7289fi 7290 7291 7292 CFLAGS="$xorg_testset_save_CFLAGS" 7293 7294 eval supported=\$$cacheid 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7296$as_echo "$supported" >&6; } 7297 if test "$supported" = "yes" ; then 7298 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7299 found="yes" 7300 fi 7301 fi 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317xorg_testset_save_CFLAGS="$CFLAGS" 7318 7319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7324 $as_echo_n "(cached) " >&6 7325else 7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7327/* end confdefs.h. */ 7328int i; 7329_ACEOF 7330if ac_fn_c_try_compile "$LINENO"; then : 7331 xorg_cv_cc_flag_unknown_warning_option=yes 7332else 7333 xorg_cv_cc_flag_unknown_warning_option=no 7334fi 7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7336fi 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7340 CFLAGS="$xorg_testset_save_CFLAGS" 7341fi 7342 7343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7346 fi 7347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352else 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354/* end confdefs.h. */ 7355int i; 7356_ACEOF 7357if ac_fn_c_try_compile "$LINENO"; then : 7358 xorg_cv_cc_flag_unused_command_line_argument=yes 7359else 7360 xorg_cv_cc_flag_unused_command_line_argument=no 7361fi 7362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7363fi 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7367 CFLAGS="$xorg_testset_save_CFLAGS" 7368fi 7369 7370found="no" 7371 7372 if test $found = "no" ; then 7373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7375 fi 7376 7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7379 fi 7380 7381 CFLAGS="$CFLAGS -Werror=main" 7382 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7384$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7385 cacheid=xorg_cv_cc_flag__Werror_main 7386 if eval \${$cacheid+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7390/* end confdefs.h. */ 7391int i; 7392int 7393main () 7394{ 7395 7396 ; 7397 return 0; 7398} 7399_ACEOF 7400if ac_fn_c_try_link "$LINENO"; then : 7401 eval $cacheid=yes 7402else 7403 eval $cacheid=no 7404fi 7405rm -f core conftest.err conftest.$ac_objext \ 7406 conftest$ac_exeext conftest.$ac_ext 7407fi 7408 7409 7410 CFLAGS="$xorg_testset_save_CFLAGS" 7411 7412 eval supported=\$$cacheid 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7414$as_echo "$supported" >&6; } 7415 if test "$supported" = "yes" ; then 7416 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7417 found="yes" 7418 fi 7419 fi 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435xorg_testset_save_CFLAGS="$CFLAGS" 7436 7437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7442 $as_echo_n "(cached) " >&6 7443else 7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7445/* end confdefs.h. */ 7446int i; 7447_ACEOF 7448if ac_fn_c_try_compile "$LINENO"; then : 7449 xorg_cv_cc_flag_unknown_warning_option=yes 7450else 7451 xorg_cv_cc_flag_unknown_warning_option=no 7452fi 7453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7454fi 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7458 CFLAGS="$xorg_testset_save_CFLAGS" 7459fi 7460 7461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7464 fi 7465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7469 $as_echo_n "(cached) " >&6 7470else 7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7472/* end confdefs.h. */ 7473int i; 7474_ACEOF 7475if ac_fn_c_try_compile "$LINENO"; then : 7476 xorg_cv_cc_flag_unused_command_line_argument=yes 7477else 7478 xorg_cv_cc_flag_unused_command_line_argument=no 7479fi 7480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7481fi 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7485 CFLAGS="$xorg_testset_save_CFLAGS" 7486fi 7487 7488found="no" 7489 7490 if test $found = "no" ; then 7491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7493 fi 7494 7495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7497 fi 7498 7499 CFLAGS="$CFLAGS -Werror=missing-braces" 7500 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7502$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7503 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7504 if eval \${$cacheid+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509int i; 7510int 7511main () 7512{ 7513 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518if ac_fn_c_try_link "$LINENO"; then : 7519 eval $cacheid=yes 7520else 7521 eval $cacheid=no 7522fi 7523rm -f core conftest.err conftest.$ac_objext \ 7524 conftest$ac_exeext conftest.$ac_ext 7525fi 7526 7527 7528 CFLAGS="$xorg_testset_save_CFLAGS" 7529 7530 eval supported=\$$cacheid 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7532$as_echo "$supported" >&6; } 7533 if test "$supported" = "yes" ; then 7534 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7535 found="yes" 7536 fi 7537 fi 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553xorg_testset_save_CFLAGS="$CFLAGS" 7554 7555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561else 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563/* end confdefs.h. */ 7564int i; 7565_ACEOF 7566if ac_fn_c_try_compile "$LINENO"; then : 7567 xorg_cv_cc_flag_unknown_warning_option=yes 7568else 7569 xorg_cv_cc_flag_unknown_warning_option=no 7570fi 7571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7572fi 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7576 CFLAGS="$xorg_testset_save_CFLAGS" 7577fi 7578 7579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7582 fi 7583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7587 $as_echo_n "(cached) " >&6 7588else 7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7590/* end confdefs.h. */ 7591int i; 7592_ACEOF 7593if ac_fn_c_try_compile "$LINENO"; then : 7594 xorg_cv_cc_flag_unused_command_line_argument=yes 7595else 7596 xorg_cv_cc_flag_unused_command_line_argument=no 7597fi 7598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7599fi 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7603 CFLAGS="$xorg_testset_save_CFLAGS" 7604fi 7605 7606found="no" 7607 7608 if test $found = "no" ; then 7609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7611 fi 7612 7613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7615 fi 7616 7617 CFLAGS="$CFLAGS -Werror=sequence-point" 7618 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7620$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7621 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7622 if eval \${$cacheid+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7626/* end confdefs.h. */ 7627int i; 7628int 7629main () 7630{ 7631 7632 ; 7633 return 0; 7634} 7635_ACEOF 7636if ac_fn_c_try_link "$LINENO"; then : 7637 eval $cacheid=yes 7638else 7639 eval $cacheid=no 7640fi 7641rm -f core conftest.err conftest.$ac_objext \ 7642 conftest$ac_exeext conftest.$ac_ext 7643fi 7644 7645 7646 CFLAGS="$xorg_testset_save_CFLAGS" 7647 7648 eval supported=\$$cacheid 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7650$as_echo "$supported" >&6; } 7651 if test "$supported" = "yes" ; then 7652 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7653 found="yes" 7654 fi 7655 fi 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671xorg_testset_save_CFLAGS="$CFLAGS" 7672 7673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7678 $as_echo_n "(cached) " >&6 7679else 7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681/* end confdefs.h. */ 7682int i; 7683_ACEOF 7684if ac_fn_c_try_compile "$LINENO"; then : 7685 xorg_cv_cc_flag_unknown_warning_option=yes 7686else 7687 xorg_cv_cc_flag_unknown_warning_option=no 7688fi 7689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7690fi 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7694 CFLAGS="$xorg_testset_save_CFLAGS" 7695fi 7696 7697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7700 fi 7701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706else 7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708/* end confdefs.h. */ 7709int i; 7710_ACEOF 7711if ac_fn_c_try_compile "$LINENO"; then : 7712 xorg_cv_cc_flag_unused_command_line_argument=yes 7713else 7714 xorg_cv_cc_flag_unused_command_line_argument=no 7715fi 7716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7717fi 7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7721 CFLAGS="$xorg_testset_save_CFLAGS" 7722fi 7723 7724found="no" 7725 7726 if test $found = "no" ; then 7727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7729 fi 7730 7731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7733 fi 7734 7735 CFLAGS="$CFLAGS -Werror=return-type" 7736 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7738$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7739 cacheid=xorg_cv_cc_flag__Werror_return_type 7740 if eval \${$cacheid+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742else 7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7744/* end confdefs.h. */ 7745int i; 7746int 7747main () 7748{ 7749 7750 ; 7751 return 0; 7752} 7753_ACEOF 7754if ac_fn_c_try_link "$LINENO"; then : 7755 eval $cacheid=yes 7756else 7757 eval $cacheid=no 7758fi 7759rm -f core conftest.err conftest.$ac_objext \ 7760 conftest$ac_exeext conftest.$ac_ext 7761fi 7762 7763 7764 CFLAGS="$xorg_testset_save_CFLAGS" 7765 7766 eval supported=\$$cacheid 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7768$as_echo "$supported" >&6; } 7769 if test "$supported" = "yes" ; then 7770 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7771 found="yes" 7772 fi 7773 fi 7774 7775 if test $found = "no" ; then 7776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7778 fi 7779 7780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7782 fi 7783 7784 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7785 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7787$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7788 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7789 if eval \${$cacheid+:} false; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794int i; 7795int 7796main () 7797{ 7798 7799 ; 7800 return 0; 7801} 7802_ACEOF 7803if ac_fn_c_try_link "$LINENO"; then : 7804 eval $cacheid=yes 7805else 7806 eval $cacheid=no 7807fi 7808rm -f core conftest.err conftest.$ac_objext \ 7809 conftest$ac_exeext conftest.$ac_ext 7810fi 7811 7812 7813 CFLAGS="$xorg_testset_save_CFLAGS" 7814 7815 eval supported=\$$cacheid 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7817$as_echo "$supported" >&6; } 7818 if test "$supported" = "yes" ; then 7819 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7820 found="yes" 7821 fi 7822 fi 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838xorg_testset_save_CFLAGS="$CFLAGS" 7839 7840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846else 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848/* end confdefs.h. */ 7849int i; 7850_ACEOF 7851if ac_fn_c_try_compile "$LINENO"; then : 7852 xorg_cv_cc_flag_unknown_warning_option=yes 7853else 7854 xorg_cv_cc_flag_unknown_warning_option=no 7855fi 7856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7857fi 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7861 CFLAGS="$xorg_testset_save_CFLAGS" 7862fi 7863 7864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7867 fi 7868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7875/* end confdefs.h. */ 7876int i; 7877_ACEOF 7878if ac_fn_c_try_compile "$LINENO"; then : 7879 xorg_cv_cc_flag_unused_command_line_argument=yes 7880else 7881 xorg_cv_cc_flag_unused_command_line_argument=no 7882fi 7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7884fi 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7888 CFLAGS="$xorg_testset_save_CFLAGS" 7889fi 7890 7891found="no" 7892 7893 if test $found = "no" ; then 7894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7896 fi 7897 7898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7900 fi 7901 7902 CFLAGS="$CFLAGS -Werror=trigraphs" 7903 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7905$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7906 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7907 if eval \${$cacheid+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913int 7914main () 7915{ 7916 7917 ; 7918 return 0; 7919} 7920_ACEOF 7921if ac_fn_c_try_link "$LINENO"; then : 7922 eval $cacheid=yes 7923else 7924 eval $cacheid=no 7925fi 7926rm -f core conftest.err conftest.$ac_objext \ 7927 conftest$ac_exeext conftest.$ac_ext 7928fi 7929 7930 7931 CFLAGS="$xorg_testset_save_CFLAGS" 7932 7933 eval supported=\$$cacheid 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7935$as_echo "$supported" >&6; } 7936 if test "$supported" = "yes" ; then 7937 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7938 found="yes" 7939 fi 7940 fi 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956xorg_testset_save_CFLAGS="$CFLAGS" 7957 7958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7966/* end confdefs.h. */ 7967int i; 7968_ACEOF 7969if ac_fn_c_try_compile "$LINENO"; then : 7970 xorg_cv_cc_flag_unknown_warning_option=yes 7971else 7972 xorg_cv_cc_flag_unknown_warning_option=no 7973fi 7974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7975fi 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7979 CFLAGS="$xorg_testset_save_CFLAGS" 7980fi 7981 7982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7985 fi 7986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7990 $as_echo_n "(cached) " >&6 7991else 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7993/* end confdefs.h. */ 7994int i; 7995_ACEOF 7996if ac_fn_c_try_compile "$LINENO"; then : 7997 xorg_cv_cc_flag_unused_command_line_argument=yes 7998else 7999 xorg_cv_cc_flag_unused_command_line_argument=no 8000fi 8001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8002fi 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8006 CFLAGS="$xorg_testset_save_CFLAGS" 8007fi 8008 8009found="no" 8010 8011 if test $found = "no" ; then 8012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8014 fi 8015 8016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8018 fi 8019 8020 CFLAGS="$CFLAGS -Werror=array-bounds" 8021 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8023$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8024 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8025 if eval \${$cacheid+:} false; then : 8026 $as_echo_n "(cached) " >&6 8027else 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029/* end confdefs.h. */ 8030int i; 8031int 8032main () 8033{ 8034 8035 ; 8036 return 0; 8037} 8038_ACEOF 8039if ac_fn_c_try_link "$LINENO"; then : 8040 eval $cacheid=yes 8041else 8042 eval $cacheid=no 8043fi 8044rm -f core conftest.err conftest.$ac_objext \ 8045 conftest$ac_exeext conftest.$ac_ext 8046fi 8047 8048 8049 CFLAGS="$xorg_testset_save_CFLAGS" 8050 8051 eval supported=\$$cacheid 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8053$as_echo "$supported" >&6; } 8054 if test "$supported" = "yes" ; then 8055 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8056 found="yes" 8057 fi 8058 fi 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074xorg_testset_save_CFLAGS="$CFLAGS" 8075 8076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085int i; 8086_ACEOF 8087if ac_fn_c_try_compile "$LINENO"; then : 8088 xorg_cv_cc_flag_unknown_warning_option=yes 8089else 8090 xorg_cv_cc_flag_unknown_warning_option=no 8091fi 8092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8093fi 8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8097 CFLAGS="$xorg_testset_save_CFLAGS" 8098fi 8099 8100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8103 fi 8104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111/* end confdefs.h. */ 8112int i; 8113_ACEOF 8114if ac_fn_c_try_compile "$LINENO"; then : 8115 xorg_cv_cc_flag_unused_command_line_argument=yes 8116else 8117 xorg_cv_cc_flag_unused_command_line_argument=no 8118fi 8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8120fi 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8124 CFLAGS="$xorg_testset_save_CFLAGS" 8125fi 8126 8127found="no" 8128 8129 if test $found = "no" ; then 8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8132 fi 8133 8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8136 fi 8137 8138 CFLAGS="$CFLAGS -Werror=write-strings" 8139 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8141$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8142 cacheid=xorg_cv_cc_flag__Werror_write_strings 8143 if eval \${$cacheid+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148int i; 8149int 8150main () 8151{ 8152 8153 ; 8154 return 0; 8155} 8156_ACEOF 8157if ac_fn_c_try_link "$LINENO"; then : 8158 eval $cacheid=yes 8159else 8160 eval $cacheid=no 8161fi 8162rm -f core conftest.err conftest.$ac_objext \ 8163 conftest$ac_exeext conftest.$ac_ext 8164fi 8165 8166 8167 CFLAGS="$xorg_testset_save_CFLAGS" 8168 8169 eval supported=\$$cacheid 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8171$as_echo "$supported" >&6; } 8172 if test "$supported" = "yes" ; then 8173 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8174 found="yes" 8175 fi 8176 fi 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192xorg_testset_save_CFLAGS="$CFLAGS" 8193 8194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203int i; 8204_ACEOF 8205if ac_fn_c_try_compile "$LINENO"; then : 8206 xorg_cv_cc_flag_unknown_warning_option=yes 8207else 8208 xorg_cv_cc_flag_unknown_warning_option=no 8209fi 8210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8211fi 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216fi 8217 8218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8221 fi 8222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227else 8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229/* end confdefs.h. */ 8230int i; 8231_ACEOF 8232if ac_fn_c_try_compile "$LINENO"; then : 8233 xorg_cv_cc_flag_unused_command_line_argument=yes 8234else 8235 xorg_cv_cc_flag_unused_command_line_argument=no 8236fi 8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8238fi 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8242 CFLAGS="$xorg_testset_save_CFLAGS" 8243fi 8244 8245found="no" 8246 8247 if test $found = "no" ; then 8248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8250 fi 8251 8252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8254 fi 8255 8256 CFLAGS="$CFLAGS -Werror=address" 8257 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8259$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8260 cacheid=xorg_cv_cc_flag__Werror_address 8261 if eval \${$cacheid+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266int i; 8267int 8268main () 8269{ 8270 8271 ; 8272 return 0; 8273} 8274_ACEOF 8275if ac_fn_c_try_link "$LINENO"; then : 8276 eval $cacheid=yes 8277else 8278 eval $cacheid=no 8279fi 8280rm -f core conftest.err conftest.$ac_objext \ 8281 conftest$ac_exeext conftest.$ac_ext 8282fi 8283 8284 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286 8287 eval supported=\$$cacheid 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8289$as_echo "$supported" >&6; } 8290 if test "$supported" = "yes" ; then 8291 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8292 found="yes" 8293 fi 8294 fi 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310xorg_testset_save_CFLAGS="$CFLAGS" 8311 8312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8320/* end confdefs.h. */ 8321int i; 8322_ACEOF 8323if ac_fn_c_try_compile "$LINENO"; then : 8324 xorg_cv_cc_flag_unknown_warning_option=yes 8325else 8326 xorg_cv_cc_flag_unknown_warning_option=no 8327fi 8328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8329fi 8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8333 CFLAGS="$xorg_testset_save_CFLAGS" 8334fi 8335 8336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8339 fi 8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8344 $as_echo_n "(cached) " >&6 8345else 8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8347/* end confdefs.h. */ 8348int i; 8349_ACEOF 8350if ac_fn_c_try_compile "$LINENO"; then : 8351 xorg_cv_cc_flag_unused_command_line_argument=yes 8352else 8353 xorg_cv_cc_flag_unused_command_line_argument=no 8354fi 8355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8356fi 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8360 CFLAGS="$xorg_testset_save_CFLAGS" 8361fi 8362 8363found="no" 8364 8365 if test $found = "no" ; then 8366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8368 fi 8369 8370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8372 fi 8373 8374 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8375 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8377$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8378 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8379 if eval \${$cacheid+:} false; then : 8380 $as_echo_n "(cached) " >&6 8381else 8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384int i; 8385int 8386main () 8387{ 8388 8389 ; 8390 return 0; 8391} 8392_ACEOF 8393if ac_fn_c_try_link "$LINENO"; then : 8394 eval $cacheid=yes 8395else 8396 eval $cacheid=no 8397fi 8398rm -f core conftest.err conftest.$ac_objext \ 8399 conftest$ac_exeext conftest.$ac_ext 8400fi 8401 8402 8403 CFLAGS="$xorg_testset_save_CFLAGS" 8404 8405 eval supported=\$$cacheid 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8407$as_echo "$supported" >&6; } 8408 if test "$supported" = "yes" ; then 8409 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8410 found="yes" 8411 fi 8412 fi 8413 8414 if test $found = "no" ; then 8415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8417 fi 8418 8419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8421 fi 8422 8423 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8426$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8427 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8428 if eval \${$cacheid+:} false; then : 8429 $as_echo_n "(cached) " >&6 8430else 8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8432/* end confdefs.h. */ 8433int i; 8434int 8435main () 8436{ 8437 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442if ac_fn_c_try_link "$LINENO"; then : 8443 eval $cacheid=yes 8444else 8445 eval $cacheid=no 8446fi 8447rm -f core conftest.err conftest.$ac_objext \ 8448 conftest$ac_exeext conftest.$ac_ext 8449fi 8450 8451 8452 CFLAGS="$xorg_testset_save_CFLAGS" 8453 8454 eval supported=\$$cacheid 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8456$as_echo "$supported" >&6; } 8457 if test "$supported" = "yes" ; then 8458 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8459 found="yes" 8460 fi 8461 fi 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477xorg_testset_save_CFLAGS="$CFLAGS" 8478 8479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488int i; 8489_ACEOF 8490if ac_fn_c_try_compile "$LINENO"; then : 8491 xorg_cv_cc_flag_unknown_warning_option=yes 8492else 8493 xorg_cv_cc_flag_unknown_warning_option=no 8494fi 8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8496fi 8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501fi 8502 8503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512else 8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8514/* end confdefs.h. */ 8515int i; 8516_ACEOF 8517if ac_fn_c_try_compile "$LINENO"; then : 8518 xorg_cv_cc_flag_unused_command_line_argument=yes 8519else 8520 xorg_cv_cc_flag_unused_command_line_argument=no 8521fi 8522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8523fi 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8527 CFLAGS="$xorg_testset_save_CFLAGS" 8528fi 8529 8530found="no" 8531 8532 if test $found = "no" ; then 8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8535 fi 8536 8537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8539 fi 8540 8541 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8542 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8544$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8545 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8546 if eval \${$cacheid+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548else 8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8550/* end confdefs.h. */ 8551int i; 8552int 8553main () 8554{ 8555 8556 ; 8557 return 0; 8558} 8559_ACEOF 8560if ac_fn_c_try_link "$LINENO"; then : 8561 eval $cacheid=yes 8562else 8563 eval $cacheid=no 8564fi 8565rm -f core conftest.err conftest.$ac_objext \ 8566 conftest$ac_exeext conftest.$ac_ext 8567fi 8568 8569 8570 CFLAGS="$xorg_testset_save_CFLAGS" 8571 8572 eval supported=\$$cacheid 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8574$as_echo "$supported" >&6; } 8575 if test "$supported" = "yes" ; then 8576 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8577 found="yes" 8578 fi 8579 fi 8580 8581 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8582else 8583{ $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 8584$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;} 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598xorg_testset_save_CFLAGS="$CFLAGS" 8599 8600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8605 $as_echo_n "(cached) " >&6 8606else 8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8608/* end confdefs.h. */ 8609int i; 8610_ACEOF 8611if ac_fn_c_try_compile "$LINENO"; then : 8612 xorg_cv_cc_flag_unknown_warning_option=yes 8613else 8614 xorg_cv_cc_flag_unknown_warning_option=no 8615fi 8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8617fi 8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8621 CFLAGS="$xorg_testset_save_CFLAGS" 8622fi 8623 8624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627 fi 8628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8632 $as_echo_n "(cached) " >&6 8633else 8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8635/* end confdefs.h. */ 8636int i; 8637_ACEOF 8638if ac_fn_c_try_compile "$LINENO"; then : 8639 xorg_cv_cc_flag_unused_command_line_argument=yes 8640else 8641 xorg_cv_cc_flag_unused_command_line_argument=no 8642fi 8643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8644fi 8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8648 CFLAGS="$xorg_testset_save_CFLAGS" 8649fi 8650 8651found="no" 8652 8653 if test $found = "no" ; then 8654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8656 fi 8657 8658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8660 fi 8661 8662 CFLAGS="$CFLAGS -Wimplicit" 8663 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8665$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8666 cacheid=xorg_cv_cc_flag__Wimplicit 8667 if eval \${$cacheid+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673int 8674main () 8675{ 8676 8677 ; 8678 return 0; 8679} 8680_ACEOF 8681if ac_fn_c_try_link "$LINENO"; then : 8682 eval $cacheid=yes 8683else 8684 eval $cacheid=no 8685fi 8686rm -f core conftest.err conftest.$ac_objext \ 8687 conftest$ac_exeext conftest.$ac_ext 8688fi 8689 8690 8691 CFLAGS="$xorg_testset_save_CFLAGS" 8692 8693 eval supported=\$$cacheid 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8695$as_echo "$supported" >&6; } 8696 if test "$supported" = "yes" ; then 8697 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8698 found="yes" 8699 fi 8700 fi 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716xorg_testset_save_CFLAGS="$CFLAGS" 8717 8718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8723 $as_echo_n "(cached) " >&6 8724else 8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8726/* end confdefs.h. */ 8727int i; 8728_ACEOF 8729if ac_fn_c_try_compile "$LINENO"; then : 8730 xorg_cv_cc_flag_unknown_warning_option=yes 8731else 8732 xorg_cv_cc_flag_unknown_warning_option=no 8733fi 8734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8735fi 8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8739 CFLAGS="$xorg_testset_save_CFLAGS" 8740fi 8741 8742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8745 fi 8746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8750 $as_echo_n "(cached) " >&6 8751else 8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753/* end confdefs.h. */ 8754int i; 8755_ACEOF 8756if ac_fn_c_try_compile "$LINENO"; then : 8757 xorg_cv_cc_flag_unused_command_line_argument=yes 8758else 8759 xorg_cv_cc_flag_unused_command_line_argument=no 8760fi 8761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8762fi 8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8766 CFLAGS="$xorg_testset_save_CFLAGS" 8767fi 8768 8769found="no" 8770 8771 if test $found = "no" ; then 8772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8774 fi 8775 8776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8778 fi 8779 8780 CFLAGS="$CFLAGS -Wnonnull" 8781 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8783$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8784 cacheid=xorg_cv_cc_flag__Wnonnull 8785 if eval \${$cacheid+:} false; then : 8786 $as_echo_n "(cached) " >&6 8787else 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790int i; 8791int 8792main () 8793{ 8794 8795 ; 8796 return 0; 8797} 8798_ACEOF 8799if ac_fn_c_try_link "$LINENO"; then : 8800 eval $cacheid=yes 8801else 8802 eval $cacheid=no 8803fi 8804rm -f core conftest.err conftest.$ac_objext \ 8805 conftest$ac_exeext conftest.$ac_ext 8806fi 8807 8808 8809 CFLAGS="$xorg_testset_save_CFLAGS" 8810 8811 eval supported=\$$cacheid 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8813$as_echo "$supported" >&6; } 8814 if test "$supported" = "yes" ; then 8815 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8816 found="yes" 8817 fi 8818 fi 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834xorg_testset_save_CFLAGS="$CFLAGS" 8835 8836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8840if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8841 $as_echo_n "(cached) " >&6 8842else 8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8844/* end confdefs.h. */ 8845int i; 8846_ACEOF 8847if ac_fn_c_try_compile "$LINENO"; then : 8848 xorg_cv_cc_flag_unknown_warning_option=yes 8849else 8850 xorg_cv_cc_flag_unknown_warning_option=no 8851fi 8852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8853fi 8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8855$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8857 CFLAGS="$xorg_testset_save_CFLAGS" 8858fi 8859 8860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8863 fi 8864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8866$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8867if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869else 8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871/* end confdefs.h. */ 8872int i; 8873_ACEOF 8874if ac_fn_c_try_compile "$LINENO"; then : 8875 xorg_cv_cc_flag_unused_command_line_argument=yes 8876else 8877 xorg_cv_cc_flag_unused_command_line_argument=no 8878fi 8879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8880fi 8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8882$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8884 CFLAGS="$xorg_testset_save_CFLAGS" 8885fi 8886 8887found="no" 8888 8889 if test $found = "no" ; then 8890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8892 fi 8893 8894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8896 fi 8897 8898 CFLAGS="$CFLAGS -Winit-self" 8899 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8901$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8902 cacheid=xorg_cv_cc_flag__Winit_self 8903 if eval \${$cacheid+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905else 8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8907/* end confdefs.h. */ 8908int i; 8909int 8910main () 8911{ 8912 8913 ; 8914 return 0; 8915} 8916_ACEOF 8917if ac_fn_c_try_link "$LINENO"; then : 8918 eval $cacheid=yes 8919else 8920 eval $cacheid=no 8921fi 8922rm -f core conftest.err conftest.$ac_objext \ 8923 conftest$ac_exeext conftest.$ac_ext 8924fi 8925 8926 8927 CFLAGS="$xorg_testset_save_CFLAGS" 8928 8929 eval supported=\$$cacheid 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8931$as_echo "$supported" >&6; } 8932 if test "$supported" = "yes" ; then 8933 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8934 found="yes" 8935 fi 8936 fi 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952xorg_testset_save_CFLAGS="$CFLAGS" 8953 8954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8959 $as_echo_n "(cached) " >&6 8960else 8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962/* end confdefs.h. */ 8963int i; 8964_ACEOF 8965if ac_fn_c_try_compile "$LINENO"; then : 8966 xorg_cv_cc_flag_unknown_warning_option=yes 8967else 8968 xorg_cv_cc_flag_unknown_warning_option=no 8969fi 8970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8971fi 8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8975 CFLAGS="$xorg_testset_save_CFLAGS" 8976fi 8977 8978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8981 fi 8982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8986 $as_echo_n "(cached) " >&6 8987else 8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990int i; 8991_ACEOF 8992if ac_fn_c_try_compile "$LINENO"; then : 8993 xorg_cv_cc_flag_unused_command_line_argument=yes 8994else 8995 xorg_cv_cc_flag_unused_command_line_argument=no 8996fi 8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8998fi 8999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9002 CFLAGS="$xorg_testset_save_CFLAGS" 9003fi 9004 9005found="no" 9006 9007 if test $found = "no" ; then 9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 fi 9011 9012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9014 fi 9015 9016 CFLAGS="$CFLAGS -Wmain" 9017 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9019$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9020 cacheid=xorg_cv_cc_flag__Wmain 9021 if eval \${$cacheid+:} false; then : 9022 $as_echo_n "(cached) " >&6 9023else 9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9025/* end confdefs.h. */ 9026int i; 9027int 9028main () 9029{ 9030 9031 ; 9032 return 0; 9033} 9034_ACEOF 9035if ac_fn_c_try_link "$LINENO"; then : 9036 eval $cacheid=yes 9037else 9038 eval $cacheid=no 9039fi 9040rm -f core conftest.err conftest.$ac_objext \ 9041 conftest$ac_exeext conftest.$ac_ext 9042fi 9043 9044 9045 CFLAGS="$xorg_testset_save_CFLAGS" 9046 9047 eval supported=\$$cacheid 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9049$as_echo "$supported" >&6; } 9050 if test "$supported" = "yes" ; then 9051 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9052 found="yes" 9053 fi 9054 fi 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070xorg_testset_save_CFLAGS="$CFLAGS" 9071 9072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9077 $as_echo_n "(cached) " >&6 9078else 9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9080/* end confdefs.h. */ 9081int i; 9082_ACEOF 9083if ac_fn_c_try_compile "$LINENO"; then : 9084 xorg_cv_cc_flag_unknown_warning_option=yes 9085else 9086 xorg_cv_cc_flag_unknown_warning_option=no 9087fi 9088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9089fi 9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9093 CFLAGS="$xorg_testset_save_CFLAGS" 9094fi 9095 9096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9099 fi 9100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9104 $as_echo_n "(cached) " >&6 9105else 9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9107/* end confdefs.h. */ 9108int i; 9109_ACEOF 9110if ac_fn_c_try_compile "$LINENO"; then : 9111 xorg_cv_cc_flag_unused_command_line_argument=yes 9112else 9113 xorg_cv_cc_flag_unused_command_line_argument=no 9114fi 9115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9116fi 9117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9120 CFLAGS="$xorg_testset_save_CFLAGS" 9121fi 9122 9123found="no" 9124 9125 if test $found = "no" ; then 9126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9128 fi 9129 9130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9132 fi 9133 9134 CFLAGS="$CFLAGS -Wmissing-braces" 9135 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9137$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9138 cacheid=xorg_cv_cc_flag__Wmissing_braces 9139 if eval \${$cacheid+:} false; then : 9140 $as_echo_n "(cached) " >&6 9141else 9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9143/* end confdefs.h. */ 9144int i; 9145int 9146main () 9147{ 9148 9149 ; 9150 return 0; 9151} 9152_ACEOF 9153if ac_fn_c_try_link "$LINENO"; then : 9154 eval $cacheid=yes 9155else 9156 eval $cacheid=no 9157fi 9158rm -f core conftest.err conftest.$ac_objext \ 9159 conftest$ac_exeext conftest.$ac_ext 9160fi 9161 9162 9163 CFLAGS="$xorg_testset_save_CFLAGS" 9164 9165 eval supported=\$$cacheid 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9167$as_echo "$supported" >&6; } 9168 if test "$supported" = "yes" ; then 9169 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9170 found="yes" 9171 fi 9172 fi 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188xorg_testset_save_CFLAGS="$CFLAGS" 9189 9190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9195 $as_echo_n "(cached) " >&6 9196else 9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9198/* end confdefs.h. */ 9199int i; 9200_ACEOF 9201if ac_fn_c_try_compile "$LINENO"; then : 9202 xorg_cv_cc_flag_unknown_warning_option=yes 9203else 9204 xorg_cv_cc_flag_unknown_warning_option=no 9205fi 9206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9207fi 9208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9211 CFLAGS="$xorg_testset_save_CFLAGS" 9212fi 9213 9214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9217 fi 9218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9222 $as_echo_n "(cached) " >&6 9223else 9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225/* end confdefs.h. */ 9226int i; 9227_ACEOF 9228if ac_fn_c_try_compile "$LINENO"; then : 9229 xorg_cv_cc_flag_unused_command_line_argument=yes 9230else 9231 xorg_cv_cc_flag_unused_command_line_argument=no 9232fi 9233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9234fi 9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9238 CFLAGS="$xorg_testset_save_CFLAGS" 9239fi 9240 9241found="no" 9242 9243 if test $found = "no" ; then 9244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9246 fi 9247 9248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9250 fi 9251 9252 CFLAGS="$CFLAGS -Wsequence-point" 9253 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9255$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9256 cacheid=xorg_cv_cc_flag__Wsequence_point 9257 if eval \${$cacheid+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9261/* end confdefs.h. */ 9262int i; 9263int 9264main () 9265{ 9266 9267 ; 9268 return 0; 9269} 9270_ACEOF 9271if ac_fn_c_try_link "$LINENO"; then : 9272 eval $cacheid=yes 9273else 9274 eval $cacheid=no 9275fi 9276rm -f core conftest.err conftest.$ac_objext \ 9277 conftest$ac_exeext conftest.$ac_ext 9278fi 9279 9280 9281 CFLAGS="$xorg_testset_save_CFLAGS" 9282 9283 eval supported=\$$cacheid 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9285$as_echo "$supported" >&6; } 9286 if test "$supported" = "yes" ; then 9287 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9288 found="yes" 9289 fi 9290 fi 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306xorg_testset_save_CFLAGS="$CFLAGS" 9307 9308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316/* end confdefs.h. */ 9317int i; 9318_ACEOF 9319if ac_fn_c_try_compile "$LINENO"; then : 9320 xorg_cv_cc_flag_unknown_warning_option=yes 9321else 9322 xorg_cv_cc_flag_unknown_warning_option=no 9323fi 9324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9325fi 9326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9329 CFLAGS="$xorg_testset_save_CFLAGS" 9330fi 9331 9332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 fi 9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343/* end confdefs.h. */ 9344int i; 9345_ACEOF 9346if ac_fn_c_try_compile "$LINENO"; then : 9347 xorg_cv_cc_flag_unused_command_line_argument=yes 9348else 9349 xorg_cv_cc_flag_unused_command_line_argument=no 9350fi 9351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9352fi 9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9356 CFLAGS="$xorg_testset_save_CFLAGS" 9357fi 9358 9359found="no" 9360 9361 if test $found = "no" ; then 9362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9364 fi 9365 9366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9368 fi 9369 9370 CFLAGS="$CFLAGS -Wreturn-type" 9371 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9373$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9374 cacheid=xorg_cv_cc_flag__Wreturn_type 9375 if eval \${$cacheid+:} false; then : 9376 $as_echo_n "(cached) " >&6 9377else 9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379/* end confdefs.h. */ 9380int i; 9381int 9382main () 9383{ 9384 9385 ; 9386 return 0; 9387} 9388_ACEOF 9389if ac_fn_c_try_link "$LINENO"; then : 9390 eval $cacheid=yes 9391else 9392 eval $cacheid=no 9393fi 9394rm -f core conftest.err conftest.$ac_objext \ 9395 conftest$ac_exeext conftest.$ac_ext 9396fi 9397 9398 9399 CFLAGS="$xorg_testset_save_CFLAGS" 9400 9401 eval supported=\$$cacheid 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9403$as_echo "$supported" >&6; } 9404 if test "$supported" = "yes" ; then 9405 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9406 found="yes" 9407 fi 9408 fi 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424xorg_testset_save_CFLAGS="$CFLAGS" 9425 9426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9431 $as_echo_n "(cached) " >&6 9432else 9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9434/* end confdefs.h. */ 9435int i; 9436_ACEOF 9437if ac_fn_c_try_compile "$LINENO"; then : 9438 xorg_cv_cc_flag_unknown_warning_option=yes 9439else 9440 xorg_cv_cc_flag_unknown_warning_option=no 9441fi 9442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9443fi 9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9447 CFLAGS="$xorg_testset_save_CFLAGS" 9448fi 9449 9450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9453 fi 9454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9458 $as_echo_n "(cached) " >&6 9459else 9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9461/* end confdefs.h. */ 9462int i; 9463_ACEOF 9464if ac_fn_c_try_compile "$LINENO"; then : 9465 xorg_cv_cc_flag_unused_command_line_argument=yes 9466else 9467 xorg_cv_cc_flag_unused_command_line_argument=no 9468fi 9469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9470fi 9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9474 CFLAGS="$xorg_testset_save_CFLAGS" 9475fi 9476 9477found="no" 9478 9479 if test $found = "no" ; then 9480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9482 fi 9483 9484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9486 fi 9487 9488 CFLAGS="$CFLAGS -Wtrigraphs" 9489 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9491$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9492 cacheid=xorg_cv_cc_flag__Wtrigraphs 9493 if eval \${$cacheid+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495else 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498int i; 9499int 9500main () 9501{ 9502 9503 ; 9504 return 0; 9505} 9506_ACEOF 9507if ac_fn_c_try_link "$LINENO"; then : 9508 eval $cacheid=yes 9509else 9510 eval $cacheid=no 9511fi 9512rm -f core conftest.err conftest.$ac_objext \ 9513 conftest$ac_exeext conftest.$ac_ext 9514fi 9515 9516 9517 CFLAGS="$xorg_testset_save_CFLAGS" 9518 9519 eval supported=\$$cacheid 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9521$as_echo "$supported" >&6; } 9522 if test "$supported" = "yes" ; then 9523 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9524 found="yes" 9525 fi 9526 fi 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542xorg_testset_save_CFLAGS="$CFLAGS" 9543 9544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9549 $as_echo_n "(cached) " >&6 9550else 9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552/* end confdefs.h. */ 9553int i; 9554_ACEOF 9555if ac_fn_c_try_compile "$LINENO"; then : 9556 xorg_cv_cc_flag_unknown_warning_option=yes 9557else 9558 xorg_cv_cc_flag_unknown_warning_option=no 9559fi 9560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9561fi 9562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9565 CFLAGS="$xorg_testset_save_CFLAGS" 9566fi 9567 9568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 fi 9572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9576 $as_echo_n "(cached) " >&6 9577else 9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579/* end confdefs.h. */ 9580int i; 9581_ACEOF 9582if ac_fn_c_try_compile "$LINENO"; then : 9583 xorg_cv_cc_flag_unused_command_line_argument=yes 9584else 9585 xorg_cv_cc_flag_unused_command_line_argument=no 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9588fi 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9592 CFLAGS="$xorg_testset_save_CFLAGS" 9593fi 9594 9595found="no" 9596 9597 if test $found = "no" ; then 9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9600 fi 9601 9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9604 fi 9605 9606 CFLAGS="$CFLAGS -Warray-bounds" 9607 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9609$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9610 cacheid=xorg_cv_cc_flag__Warray_bounds 9611 if eval \${$cacheid+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9615/* end confdefs.h. */ 9616int i; 9617int 9618main () 9619{ 9620 9621 ; 9622 return 0; 9623} 9624_ACEOF 9625if ac_fn_c_try_link "$LINENO"; then : 9626 eval $cacheid=yes 9627else 9628 eval $cacheid=no 9629fi 9630rm -f core conftest.err conftest.$ac_objext \ 9631 conftest$ac_exeext conftest.$ac_ext 9632fi 9633 9634 9635 CFLAGS="$xorg_testset_save_CFLAGS" 9636 9637 eval supported=\$$cacheid 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9639$as_echo "$supported" >&6; } 9640 if test "$supported" = "yes" ; then 9641 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9642 found="yes" 9643 fi 9644 fi 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660xorg_testset_save_CFLAGS="$CFLAGS" 9661 9662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9667 $as_echo_n "(cached) " >&6 9668else 9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9670/* end confdefs.h. */ 9671int i; 9672_ACEOF 9673if ac_fn_c_try_compile "$LINENO"; then : 9674 xorg_cv_cc_flag_unknown_warning_option=yes 9675else 9676 xorg_cv_cc_flag_unknown_warning_option=no 9677fi 9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9679fi 9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9683 CFLAGS="$xorg_testset_save_CFLAGS" 9684fi 9685 9686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9689 fi 9690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9694 $as_echo_n "(cached) " >&6 9695else 9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9697/* end confdefs.h. */ 9698int i; 9699_ACEOF 9700if ac_fn_c_try_compile "$LINENO"; then : 9701 xorg_cv_cc_flag_unused_command_line_argument=yes 9702else 9703 xorg_cv_cc_flag_unused_command_line_argument=no 9704fi 9705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9706fi 9707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9710 CFLAGS="$xorg_testset_save_CFLAGS" 9711fi 9712 9713found="no" 9714 9715 if test $found = "no" ; then 9716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9718 fi 9719 9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9722 fi 9723 9724 CFLAGS="$CFLAGS -Wwrite-strings" 9725 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9727$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9728 cacheid=xorg_cv_cc_flag__Wwrite_strings 9729 if eval \${$cacheid+:} false; then : 9730 $as_echo_n "(cached) " >&6 9731else 9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734int i; 9735int 9736main () 9737{ 9738 9739 ; 9740 return 0; 9741} 9742_ACEOF 9743if ac_fn_c_try_link "$LINENO"; then : 9744 eval $cacheid=yes 9745else 9746 eval $cacheid=no 9747fi 9748rm -f core conftest.err conftest.$ac_objext \ 9749 conftest$ac_exeext conftest.$ac_ext 9750fi 9751 9752 9753 CFLAGS="$xorg_testset_save_CFLAGS" 9754 9755 eval supported=\$$cacheid 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9757$as_echo "$supported" >&6; } 9758 if test "$supported" = "yes" ; then 9759 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9760 found="yes" 9761 fi 9762 fi 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778xorg_testset_save_CFLAGS="$CFLAGS" 9779 9780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9785 $as_echo_n "(cached) " >&6 9786else 9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9788/* end confdefs.h. */ 9789int i; 9790_ACEOF 9791if ac_fn_c_try_compile "$LINENO"; then : 9792 xorg_cv_cc_flag_unknown_warning_option=yes 9793else 9794 xorg_cv_cc_flag_unknown_warning_option=no 9795fi 9796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9797fi 9798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802fi 9803 9804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9807 fi 9808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9815/* end confdefs.h. */ 9816int i; 9817_ACEOF 9818if ac_fn_c_try_compile "$LINENO"; then : 9819 xorg_cv_cc_flag_unused_command_line_argument=yes 9820else 9821 xorg_cv_cc_flag_unused_command_line_argument=no 9822fi 9823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9824fi 9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9828 CFLAGS="$xorg_testset_save_CFLAGS" 9829fi 9830 9831found="no" 9832 9833 if test $found = "no" ; then 9834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9836 fi 9837 9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9840 fi 9841 9842 CFLAGS="$CFLAGS -Waddress" 9843 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9845$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9846 cacheid=xorg_cv_cc_flag__Waddress 9847 if eval \${$cacheid+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852int i; 9853int 9854main () 9855{ 9856 9857 ; 9858 return 0; 9859} 9860_ACEOF 9861if ac_fn_c_try_link "$LINENO"; then : 9862 eval $cacheid=yes 9863else 9864 eval $cacheid=no 9865fi 9866rm -f core conftest.err conftest.$ac_objext \ 9867 conftest$ac_exeext conftest.$ac_ext 9868fi 9869 9870 9871 CFLAGS="$xorg_testset_save_CFLAGS" 9872 9873 eval supported=\$$cacheid 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9875$as_echo "$supported" >&6; } 9876 if test "$supported" = "yes" ; then 9877 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9878 found="yes" 9879 fi 9880 fi 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896xorg_testset_save_CFLAGS="$CFLAGS" 9897 9898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9906/* end confdefs.h. */ 9907int i; 9908_ACEOF 9909if ac_fn_c_try_compile "$LINENO"; then : 9910 xorg_cv_cc_flag_unknown_warning_option=yes 9911else 9912 xorg_cv_cc_flag_unknown_warning_option=no 9913fi 9914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9915fi 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9919 CFLAGS="$xorg_testset_save_CFLAGS" 9920fi 9921 9922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9925 fi 9926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9930 $as_echo_n "(cached) " >&6 9931else 9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9933/* end confdefs.h. */ 9934int i; 9935_ACEOF 9936if ac_fn_c_try_compile "$LINENO"; then : 9937 xorg_cv_cc_flag_unused_command_line_argument=yes 9938else 9939 xorg_cv_cc_flag_unused_command_line_argument=no 9940fi 9941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9942fi 9943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9946 CFLAGS="$xorg_testset_save_CFLAGS" 9947fi 9948 9949found="no" 9950 9951 if test $found = "no" ; then 9952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9954 fi 9955 9956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9958 fi 9959 9960 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9961 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9963$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9964 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9965 if eval \${$cacheid+:} false; then : 9966 $as_echo_n "(cached) " >&6 9967else 9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9969/* end confdefs.h. */ 9970int i; 9971int 9972main () 9973{ 9974 9975 ; 9976 return 0; 9977} 9978_ACEOF 9979if ac_fn_c_try_link "$LINENO"; then : 9980 eval $cacheid=yes 9981else 9982 eval $cacheid=no 9983fi 9984rm -f core conftest.err conftest.$ac_objext \ 9985 conftest$ac_exeext conftest.$ac_ext 9986fi 9987 9988 9989 CFLAGS="$xorg_testset_save_CFLAGS" 9990 9991 eval supported=\$$cacheid 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9993$as_echo "$supported" >&6; } 9994 if test "$supported" = "yes" ; then 9995 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9996 found="yes" 9997 fi 9998 fi 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014xorg_testset_save_CFLAGS="$CFLAGS" 10015 10016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10021 $as_echo_n "(cached) " >&6 10022else 10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024/* end confdefs.h. */ 10025int i; 10026_ACEOF 10027if ac_fn_c_try_compile "$LINENO"; then : 10028 xorg_cv_cc_flag_unknown_warning_option=yes 10029else 10030 xorg_cv_cc_flag_unknown_warning_option=no 10031fi 10032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10033fi 10034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10037 CFLAGS="$xorg_testset_save_CFLAGS" 10038fi 10039 10040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10043 fi 10044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10048 $as_echo_n "(cached) " >&6 10049else 10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10051/* end confdefs.h. */ 10052int i; 10053_ACEOF 10054if ac_fn_c_try_compile "$LINENO"; then : 10055 xorg_cv_cc_flag_unused_command_line_argument=yes 10056else 10057 xorg_cv_cc_flag_unused_command_line_argument=no 10058fi 10059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10060fi 10061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10064 CFLAGS="$xorg_testset_save_CFLAGS" 10065fi 10066 10067found="no" 10068 10069 if test $found = "no" ; then 10070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10072 fi 10073 10074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10076 fi 10077 10078 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10079 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10081$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10082 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10083 if eval \${$cacheid+:} false; then : 10084 $as_echo_n "(cached) " >&6 10085else 10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10087/* end confdefs.h. */ 10088int i; 10089int 10090main () 10091{ 10092 10093 ; 10094 return 0; 10095} 10096_ACEOF 10097if ac_fn_c_try_link "$LINENO"; then : 10098 eval $cacheid=yes 10099else 10100 eval $cacheid=no 10101fi 10102rm -f core conftest.err conftest.$ac_objext \ 10103 conftest$ac_exeext conftest.$ac_ext 10104fi 10105 10106 10107 CFLAGS="$xorg_testset_save_CFLAGS" 10108 10109 eval supported=\$$cacheid 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10111$as_echo "$supported" >&6; } 10112 if test "$supported" = "yes" ; then 10113 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10114 found="yes" 10115 fi 10116 fi 10117 10118 10119fi 10120 10121 10122 10123 10124 10125 10126 10127 CWARNFLAGS="$BASE_CFLAGS" 10128 if test "x$GCC" = xyes ; then 10129 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10130 fi 10131 10132 10133 10134 10135 10136 10137 10138 10139# Check whether --enable-strict-compilation was given. 10140if test "${enable_strict_compilation+set}" = set; then : 10141 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10142else 10143 STRICT_COMPILE=no 10144fi 10145 10146 10147 10148 10149 10150 10151STRICT_CFLAGS="" 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165xorg_testset_save_CFLAGS="$CFLAGS" 10166 10167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10172 $as_echo_n "(cached) " >&6 10173else 10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10175/* end confdefs.h. */ 10176int i; 10177_ACEOF 10178if ac_fn_c_try_compile "$LINENO"; then : 10179 xorg_cv_cc_flag_unknown_warning_option=yes 10180else 10181 xorg_cv_cc_flag_unknown_warning_option=no 10182fi 10183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10184fi 10185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10188 CFLAGS="$xorg_testset_save_CFLAGS" 10189fi 10190 10191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10194 fi 10195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10199 $as_echo_n "(cached) " >&6 10200else 10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10202/* end confdefs.h. */ 10203int i; 10204_ACEOF 10205if ac_fn_c_try_compile "$LINENO"; then : 10206 xorg_cv_cc_flag_unused_command_line_argument=yes 10207else 10208 xorg_cv_cc_flag_unused_command_line_argument=no 10209fi 10210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10211fi 10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10215 CFLAGS="$xorg_testset_save_CFLAGS" 10216fi 10217 10218found="no" 10219 10220 if test $found = "no" ; then 10221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10223 fi 10224 10225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10227 fi 10228 10229 CFLAGS="$CFLAGS -pedantic" 10230 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10232$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10233 cacheid=xorg_cv_cc_flag__pedantic 10234 if eval \${$cacheid+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238/* end confdefs.h. */ 10239int i; 10240int 10241main () 10242{ 10243 10244 ; 10245 return 0; 10246} 10247_ACEOF 10248if ac_fn_c_try_link "$LINENO"; then : 10249 eval $cacheid=yes 10250else 10251 eval $cacheid=no 10252fi 10253rm -f core conftest.err conftest.$ac_objext \ 10254 conftest$ac_exeext conftest.$ac_ext 10255fi 10256 10257 10258 CFLAGS="$xorg_testset_save_CFLAGS" 10259 10260 eval supported=\$$cacheid 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10262$as_echo "$supported" >&6; } 10263 if test "$supported" = "yes" ; then 10264 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10265 found="yes" 10266 fi 10267 fi 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283xorg_testset_save_CFLAGS="$CFLAGS" 10284 10285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10290 $as_echo_n "(cached) " >&6 10291else 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294int i; 10295_ACEOF 10296if ac_fn_c_try_compile "$LINENO"; then : 10297 xorg_cv_cc_flag_unknown_warning_option=yes 10298else 10299 xorg_cv_cc_flag_unknown_warning_option=no 10300fi 10301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10302fi 10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10306 CFLAGS="$xorg_testset_save_CFLAGS" 10307fi 10308 10309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10312 fi 10313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10317 $as_echo_n "(cached) " >&6 10318else 10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10320/* end confdefs.h. */ 10321int i; 10322_ACEOF 10323if ac_fn_c_try_compile "$LINENO"; then : 10324 xorg_cv_cc_flag_unused_command_line_argument=yes 10325else 10326 xorg_cv_cc_flag_unused_command_line_argument=no 10327fi 10328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10329fi 10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10333 CFLAGS="$xorg_testset_save_CFLAGS" 10334fi 10335 10336found="no" 10337 10338 if test $found = "no" ; then 10339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10341 fi 10342 10343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10345 fi 10346 10347 CFLAGS="$CFLAGS -Werror" 10348 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10350$as_echo_n "checking if $CC supports -Werror... " >&6; } 10351 cacheid=xorg_cv_cc_flag__Werror 10352 if eval \${$cacheid+:} false; then : 10353 $as_echo_n "(cached) " >&6 10354else 10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10356/* end confdefs.h. */ 10357int i; 10358int 10359main () 10360{ 10361 10362 ; 10363 return 0; 10364} 10365_ACEOF 10366if ac_fn_c_try_link "$LINENO"; then : 10367 eval $cacheid=yes 10368else 10369 eval $cacheid=no 10370fi 10371rm -f core conftest.err conftest.$ac_objext \ 10372 conftest$ac_exeext conftest.$ac_ext 10373fi 10374 10375 10376 CFLAGS="$xorg_testset_save_CFLAGS" 10377 10378 eval supported=\$$cacheid 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10380$as_echo "$supported" >&6; } 10381 if test "$supported" = "yes" ; then 10382 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10383 found="yes" 10384 fi 10385 fi 10386 10387 if test $found = "no" ; then 10388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10390 fi 10391 10392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10394 fi 10395 10396 CFLAGS="$CFLAGS -errwarn" 10397 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10399$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10400 cacheid=xorg_cv_cc_flag__errwarn 10401 if eval \${$cacheid+:} false; then : 10402 $as_echo_n "(cached) " >&6 10403else 10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10405/* end confdefs.h. */ 10406int i; 10407int 10408main () 10409{ 10410 10411 ; 10412 return 0; 10413} 10414_ACEOF 10415if ac_fn_c_try_link "$LINENO"; then : 10416 eval $cacheid=yes 10417else 10418 eval $cacheid=no 10419fi 10420rm -f core conftest.err conftest.$ac_objext \ 10421 conftest$ac_exeext conftest.$ac_ext 10422fi 10423 10424 10425 CFLAGS="$xorg_testset_save_CFLAGS" 10426 10427 eval supported=\$$cacheid 10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10429$as_echo "$supported" >&6; } 10430 if test "$supported" = "yes" ; then 10431 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10432 found="yes" 10433 fi 10434 fi 10435 10436 10437 10438# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10439# activate it with -Werror, so we add it here explicitly. 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453xorg_testset_save_CFLAGS="$CFLAGS" 10454 10455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10458$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10459if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10460 $as_echo_n "(cached) " >&6 10461else 10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10463/* end confdefs.h. */ 10464int i; 10465_ACEOF 10466if ac_fn_c_try_compile "$LINENO"; then : 10467 xorg_cv_cc_flag_unknown_warning_option=yes 10468else 10469 xorg_cv_cc_flag_unknown_warning_option=no 10470fi 10471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10472fi 10473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10474$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10476 CFLAGS="$xorg_testset_save_CFLAGS" 10477fi 10478 10479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10482 fi 10483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10485$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10486if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10487 $as_echo_n "(cached) " >&6 10488else 10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10490/* end confdefs.h. */ 10491int i; 10492_ACEOF 10493if ac_fn_c_try_compile "$LINENO"; then : 10494 xorg_cv_cc_flag_unused_command_line_argument=yes 10495else 10496 xorg_cv_cc_flag_unused_command_line_argument=no 10497fi 10498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10499fi 10500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10501$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10503 CFLAGS="$xorg_testset_save_CFLAGS" 10504fi 10505 10506found="no" 10507 10508 if test $found = "no" ; then 10509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10511 fi 10512 10513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10515 fi 10516 10517 CFLAGS="$CFLAGS -Werror=attributes" 10518 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10520$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10521 cacheid=xorg_cv_cc_flag__Werror_attributes 10522 if eval \${$cacheid+:} false; then : 10523 $as_echo_n "(cached) " >&6 10524else 10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10526/* end confdefs.h. */ 10527int i; 10528int 10529main () 10530{ 10531 10532 ; 10533 return 0; 10534} 10535_ACEOF 10536if ac_fn_c_try_link "$LINENO"; then : 10537 eval $cacheid=yes 10538else 10539 eval $cacheid=no 10540fi 10541rm -f core conftest.err conftest.$ac_objext \ 10542 conftest$ac_exeext conftest.$ac_ext 10543fi 10544 10545 10546 CFLAGS="$xorg_testset_save_CFLAGS" 10547 10548 eval supported=\$$cacheid 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10550$as_echo "$supported" >&6; } 10551 if test "$supported" = "yes" ; then 10552 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10553 found="yes" 10554 fi 10555 fi 10556 10557 10558 10559if test "x$STRICT_COMPILE" = "xyes"; then 10560 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10561 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10562fi 10563 10564 10565 10566 10567 10568 10569cat >>confdefs.h <<_ACEOF 10570#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10571_ACEOF 10572 10573 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10574 if test "x$PVM" = "x"; then 10575 PVM="0" 10576 fi 10577 10578cat >>confdefs.h <<_ACEOF 10579#define PACKAGE_VERSION_MINOR $PVM 10580_ACEOF 10581 10582 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10583 if test "x$PVP" = "x"; then 10584 PVP="0" 10585 fi 10586 10587cat >>confdefs.h <<_ACEOF 10588#define PACKAGE_VERSION_PATCHLEVEL $PVP 10589_ACEOF 10590 10591 10592 10593CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10594mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10595|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10596echo 'git directory not found: installing possibly empty changelog.' >&2)" 10597 10598 10599 10600 10601macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10602INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10603mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10604|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10605echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10606 10607 10608 10609 10610 10611 10612if test x$APP_MAN_SUFFIX = x ; then 10613 APP_MAN_SUFFIX=1 10614fi 10615if test x$APP_MAN_DIR = x ; then 10616 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10617fi 10618 10619if test x$LIB_MAN_SUFFIX = x ; then 10620 LIB_MAN_SUFFIX=3 10621fi 10622if test x$LIB_MAN_DIR = x ; then 10623 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10624fi 10625 10626if test x$FILE_MAN_SUFFIX = x ; then 10627 case $host_os in 10628 solaris*) FILE_MAN_SUFFIX=4 ;; 10629 *) FILE_MAN_SUFFIX=5 ;; 10630 esac 10631fi 10632if test x$FILE_MAN_DIR = x ; then 10633 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10634fi 10635 10636if test x$MISC_MAN_SUFFIX = x ; then 10637 case $host_os in 10638 solaris*) MISC_MAN_SUFFIX=5 ;; 10639 *) MISC_MAN_SUFFIX=7 ;; 10640 esac 10641fi 10642if test x$MISC_MAN_DIR = x ; then 10643 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10644fi 10645 10646if test x$DRIVER_MAN_SUFFIX = x ; then 10647 case $host_os in 10648 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10649 *) DRIVER_MAN_SUFFIX=4 ;; 10650 esac 10651fi 10652if test x$DRIVER_MAN_DIR = x ; then 10653 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10654fi 10655 10656if test x$ADMIN_MAN_SUFFIX = x ; then 10657 case $host_os in 10658 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10659 *) ADMIN_MAN_SUFFIX=8 ;; 10660 esac 10661fi 10662if test x$ADMIN_MAN_DIR = x ; then 10663 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10664fi 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680XORG_MAN_PAGE="X Version 11" 10681 10682MAN_SUBSTS="\ 10683 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10684 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10685 -e 's|__xservername__|Xorg|g' \ 10686 -e 's|__xconfigfile__|xorg.conf|g' \ 10687 -e 's|__projectroot__|\$(prefix)|g' \ 10688 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10689 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10690 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10691 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10692 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10693 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10694 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10695 10696 10697 10698# Check whether --enable-silent-rules was given. 10699if test "${enable_silent_rules+set}" = set; then : 10700 enableval=$enable_silent_rules; 10701fi 10702 10703case $enable_silent_rules in # ((( 10704 yes) AM_DEFAULT_VERBOSITY=0;; 10705 no) AM_DEFAULT_VERBOSITY=1;; 10706 *) AM_DEFAULT_VERBOSITY=0;; 10707esac 10708am_make=${MAKE-make} 10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10710$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10711if ${am_cv_make_support_nested_variables+:} false; then : 10712 $as_echo_n "(cached) " >&6 10713else 10714 if $as_echo 'TRUE=$(BAR$(V)) 10715BAR0=false 10716BAR1=true 10717V=1 10718am__doit: 10719 @$(TRUE) 10720.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10721 am_cv_make_support_nested_variables=yes 10722else 10723 am_cv_make_support_nested_variables=no 10724fi 10725fi 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10727$as_echo "$am_cv_make_support_nested_variables" >&6; } 10728if test $am_cv_make_support_nested_variables = yes; then 10729 AM_V='$(V)' 10730 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10731else 10732 AM_V=$AM_DEFAULT_VERBOSITY 10733 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10734fi 10735AM_BACKSLASH='\' 10736 10737 10738 10739# Checks for pkg-config packages 10740 10741pkg_failed=no 10742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEV" >&5 10743$as_echo_n "checking for XEV... " >&6; } 10744 10745if test -n "$XEV_CFLAGS"; then 10746 pkg_cv_XEV_CFLAGS="$XEV_CFLAGS" 10747 elif test -n "$PKG_CONFIG"; then 10748 if test -n "$PKG_CONFIG" && \ 10749 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5 10750 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5 10751 ac_status=$? 10752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10753 test $ac_status = 0; }; then 10754 pkg_cv_XEV_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null` 10755else 10756 pkg_failed=yes 10757fi 10758 else 10759 pkg_failed=untried 10760fi 10761if test -n "$XEV_LIBS"; then 10762 pkg_cv_XEV_LIBS="$XEV_LIBS" 10763 elif test -n "$PKG_CONFIG"; then 10764 if test -n "$PKG_CONFIG" && \ 10765 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5 10766 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5 10767 ac_status=$? 10768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10769 test $ac_status = 0; }; then 10770 pkg_cv_XEV_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null` 10771else 10772 pkg_failed=yes 10773fi 10774 else 10775 pkg_failed=untried 10776fi 10777 10778 10779 10780if test $pkg_failed = yes; then 10781 10782if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10783 _pkg_short_errors_supported=yes 10784else 10785 _pkg_short_errors_supported=no 10786fi 10787 if test $_pkg_short_errors_supported = yes; then 10788 XEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1` 10789 else 10790 XEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1` 10791 fi 10792 # Put the nasty error message in config.log where it belongs 10793 echo "$XEV_PKG_ERRORS" >&5 10794 10795 as_fn_error $? "Package requirements (xrandr >= 1.2 x11 xproto >= 7.0.17) were not met: 10796 10797$XEV_PKG_ERRORS 10798 10799Consider adjusting the PKG_CONFIG_PATH environment variable if you 10800installed software in a non-standard prefix. 10801 10802Alternatively, you may set the environment variables XEV_CFLAGS 10803and XEV_LIBS to avoid the need to call pkg-config. 10804See the pkg-config man page for more details. 10805" "$LINENO" 5 10806elif test $pkg_failed = untried; then 10807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10809as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10810is in your PATH or set the PKG_CONFIG environment variable to the full 10811path to pkg-config. 10812 10813Alternatively, you may set the environment variables XEV_CFLAGS 10814and XEV_LIBS to avoid the need to call pkg-config. 10815See the pkg-config man page for more details. 10816 10817To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10818See \`config.log' for more details" "$LINENO" 5; } 10819else 10820 XEV_CFLAGS=$pkg_cv_XEV_CFLAGS 10821 XEV_LIBS=$pkg_cv_XEV_LIBS 10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10823$as_echo "yes" >&6; } 10824 : 10825fi 10826 10827ac_config_files="$ac_config_files Makefile man/Makefile" 10828 10829cat >confcache <<\_ACEOF 10830# This file is a shell script that caches the results of configure 10831# tests run on this system so they can be shared between configure 10832# scripts and configure runs, see configure's option --config-cache. 10833# It is not useful on other systems. If it contains results you don't 10834# want to keep, you may remove or edit it. 10835# 10836# config.status only pays attention to the cache file if you give it 10837# the --recheck option to rerun configure. 10838# 10839# `ac_cv_env_foo' variables (set or unset) will be overridden when 10840# loading this file, other *unset* `ac_cv_foo' will be assigned the 10841# following values. 10842 10843_ACEOF 10844 10845# The following way of writing the cache mishandles newlines in values, 10846# but we know of no workaround that is simple, portable, and efficient. 10847# So, we kill variables containing newlines. 10848# Ultrix sh set writes to stderr and can't be redirected directly, 10849# and sets the high bit in the cache file unless we assign to the vars. 10850( 10851 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10852 eval ac_val=\$$ac_var 10853 case $ac_val in #( 10854 *${as_nl}*) 10855 case $ac_var in #( 10856 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10857$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10858 esac 10859 case $ac_var in #( 10860 _ | IFS | as_nl) ;; #( 10861 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10862 *) { eval $ac_var=; unset $ac_var;} ;; 10863 esac ;; 10864 esac 10865 done 10866 10867 (set) 2>&1 | 10868 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10869 *${as_nl}ac_space=\ *) 10870 # `set' does not quote correctly, so add quotes: double-quote 10871 # substitution turns \\\\ into \\, and sed turns \\ into \. 10872 sed -n \ 10873 "s/'/'\\\\''/g; 10874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10875 ;; #( 10876 *) 10877 # `set' quotes correctly as required by POSIX, so do not add quotes. 10878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10879 ;; 10880 esac | 10881 sort 10882) | 10883 sed ' 10884 /^ac_cv_env_/b end 10885 t clear 10886 :clear 10887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10888 t end 10889 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10890 :end' >>confcache 10891if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10892 if test -w "$cache_file"; then 10893 if test "x$cache_file" != "x/dev/null"; then 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10895$as_echo "$as_me: updating cache $cache_file" >&6;} 10896 if test ! -f "$cache_file" || test -h "$cache_file"; then 10897 cat confcache >"$cache_file" 10898 else 10899 case $cache_file in #( 10900 */* | ?:*) 10901 mv -f confcache "$cache_file"$$ && 10902 mv -f "$cache_file"$$ "$cache_file" ;; #( 10903 *) 10904 mv -f confcache "$cache_file" ;; 10905 esac 10906 fi 10907 fi 10908 else 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10910$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10911 fi 10912fi 10913rm -f confcache 10914 10915test "x$prefix" = xNONE && prefix=$ac_default_prefix 10916# Let make expand exec_prefix. 10917test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10918 10919DEFS=-DHAVE_CONFIG_H 10920 10921ac_libobjs= 10922ac_ltlibobjs= 10923U= 10924for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10925 # 1. Remove the extension, and $U if already installed. 10926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10929 # will be set to the directory where LIBOBJS objects are built. 10930 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10931 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10932done 10933LIBOBJS=$ac_libobjs 10934 10935LTLIBOBJS=$ac_ltlibobjs 10936 10937 10938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10939$as_echo_n "checking that generated files are newer than configure... " >&6; } 10940 if test -n "$am_sleep_pid"; then 10941 # Hide warnings about reused PIDs. 10942 wait $am_sleep_pid 2>/dev/null 10943 fi 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10945$as_echo "done" >&6; } 10946if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10947 as_fn_error $? "conditional \"AMDEP\" was never defined. 10948Usually this means the macro was only invoked conditionally." "$LINENO" 5 10949fi 10950if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10951 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10952Usually this means the macro was only invoked conditionally." "$LINENO" 5 10953fi 10954 if test -n "$EXEEXT"; then 10955 am__EXEEXT_TRUE= 10956 am__EXEEXT_FALSE='#' 10957else 10958 am__EXEEXT_TRUE='#' 10959 am__EXEEXT_FALSE= 10960fi 10961 10962 10963: "${CONFIG_STATUS=./config.status}" 10964ac_write_fail=0 10965ac_clean_files_save=$ac_clean_files 10966ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10968$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10969as_write_fail=0 10970cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10971#! $SHELL 10972# Generated by $as_me. 10973# Run this file to recreate the current configuration. 10974# Compiler output produced by configure, useful for debugging 10975# configure, is in config.log if it exists. 10976 10977debug=false 10978ac_cs_recheck=false 10979ac_cs_silent=false 10980 10981SHELL=\${CONFIG_SHELL-$SHELL} 10982export SHELL 10983_ASEOF 10984cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10985## -------------------- ## 10986## M4sh Initialization. ## 10987## -------------------- ## 10988 10989# Be more Bourne compatible 10990DUALCASE=1; export DUALCASE # for MKS sh 10991if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10992 emulate sh 10993 NULLCMD=: 10994 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10995 # is contrary to our usage. Disable this feature. 10996 alias -g '${1+"$@"}'='"$@"' 10997 setopt NO_GLOB_SUBST 10998else 10999 case `(set -o) 2>/dev/null` in #( 11000 *posix*) : 11001 set -o posix ;; #( 11002 *) : 11003 ;; 11004esac 11005fi 11006 11007 11008as_nl=' 11009' 11010export as_nl 11011# Printing a long string crashes Solaris 7 /usr/bin/printf. 11012as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11013as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11014as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11015# Prefer a ksh shell builtin over an external printf program on Solaris, 11016# but without wasting forks for bash or zsh. 11017if test -z "$BASH_VERSION$ZSH_VERSION" \ 11018 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11019 as_echo='print -r --' 11020 as_echo_n='print -rn --' 11021elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11022 as_echo='printf %s\n' 11023 as_echo_n='printf %s' 11024else 11025 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11026 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11027 as_echo_n='/usr/ucb/echo -n' 11028 else 11029 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11030 as_echo_n_body='eval 11031 arg=$1; 11032 case $arg in #( 11033 *"$as_nl"*) 11034 expr "X$arg" : "X\\(.*\\)$as_nl"; 11035 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11036 esac; 11037 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11038 ' 11039 export as_echo_n_body 11040 as_echo_n='sh -c $as_echo_n_body as_echo' 11041 fi 11042 export as_echo_body 11043 as_echo='sh -c $as_echo_body as_echo' 11044fi 11045 11046# The user is always right. 11047if test "${PATH_SEPARATOR+set}" != set; then 11048 PATH_SEPARATOR=: 11049 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11050 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11051 PATH_SEPARATOR=';' 11052 } 11053fi 11054 11055 11056# IFS 11057# We need space, tab and new line, in precisely that order. Quoting is 11058# there to prevent editors from complaining about space-tab. 11059# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11060# splitting by setting IFS to empty value.) 11061IFS=" "" $as_nl" 11062 11063# Find who we are. Look in the path if we contain no directory separator. 11064as_myself= 11065case $0 in #(( 11066 *[\\/]* ) as_myself=$0 ;; 11067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11068for as_dir in $PATH 11069do 11070 IFS=$as_save_IFS 11071 test -z "$as_dir" && as_dir=. 11072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11073 done 11074IFS=$as_save_IFS 11075 11076 ;; 11077esac 11078# We did not find ourselves, most probably we were run as `sh COMMAND' 11079# in which case we are not to be found in the path. 11080if test "x$as_myself" = x; then 11081 as_myself=$0 11082fi 11083if test ! -f "$as_myself"; then 11084 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11085 exit 1 11086fi 11087 11088# Unset variables that we do not need and which cause bugs (e.g. in 11089# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11090# suppresses any "Segmentation fault" message there. '((' could 11091# trigger a bug in pdksh 5.2.14. 11092for as_var in BASH_ENV ENV MAIL MAILPATH 11093do eval test x\${$as_var+set} = xset \ 11094 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11095done 11096PS1='$ ' 11097PS2='> ' 11098PS4='+ ' 11099 11100# NLS nuisances. 11101LC_ALL=C 11102export LC_ALL 11103LANGUAGE=C 11104export LANGUAGE 11105 11106# CDPATH. 11107(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11108 11109 11110# as_fn_error STATUS ERROR [LINENO LOG_FD] 11111# ---------------------------------------- 11112# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11113# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11114# script with STATUS, using 1 if that was 0. 11115as_fn_error () 11116{ 11117 as_status=$1; test $as_status -eq 0 && as_status=1 11118 if test "$4"; then 11119 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11120 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11121 fi 11122 $as_echo "$as_me: error: $2" >&2 11123 as_fn_exit $as_status 11124} # as_fn_error 11125 11126 11127# as_fn_set_status STATUS 11128# ----------------------- 11129# Set $? to STATUS, without forking. 11130as_fn_set_status () 11131{ 11132 return $1 11133} # as_fn_set_status 11134 11135# as_fn_exit STATUS 11136# ----------------- 11137# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11138as_fn_exit () 11139{ 11140 set +e 11141 as_fn_set_status $1 11142 exit $1 11143} # as_fn_exit 11144 11145# as_fn_unset VAR 11146# --------------- 11147# Portably unset VAR. 11148as_fn_unset () 11149{ 11150 { eval $1=; unset $1;} 11151} 11152as_unset=as_fn_unset 11153# as_fn_append VAR VALUE 11154# ---------------------- 11155# Append the text in VALUE to the end of the definition contained in VAR. Take 11156# advantage of any shell optimizations that allow amortized linear growth over 11157# repeated appends, instead of the typical quadratic growth present in naive 11158# implementations. 11159if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11160 eval 'as_fn_append () 11161 { 11162 eval $1+=\$2 11163 }' 11164else 11165 as_fn_append () 11166 { 11167 eval $1=\$$1\$2 11168 } 11169fi # as_fn_append 11170 11171# as_fn_arith ARG... 11172# ------------------ 11173# Perform arithmetic evaluation on the ARGs, and store the result in the 11174# global $as_val. Take advantage of shells that can avoid forks. The arguments 11175# must be portable across $(()) and expr. 11176if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11177 eval 'as_fn_arith () 11178 { 11179 as_val=$(( $* )) 11180 }' 11181else 11182 as_fn_arith () 11183 { 11184 as_val=`expr "$@" || test $? -eq 1` 11185 } 11186fi # as_fn_arith 11187 11188 11189if expr a : '\(a\)' >/dev/null 2>&1 && 11190 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11191 as_expr=expr 11192else 11193 as_expr=false 11194fi 11195 11196if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11197 as_basename=basename 11198else 11199 as_basename=false 11200fi 11201 11202if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11203 as_dirname=dirname 11204else 11205 as_dirname=false 11206fi 11207 11208as_me=`$as_basename -- "$0" || 11209$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11210 X"$0" : 'X\(//\)$' \| \ 11211 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11212$as_echo X/"$0" | 11213 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11214 s//\1/ 11215 q 11216 } 11217 /^X\/\(\/\/\)$/{ 11218 s//\1/ 11219 q 11220 } 11221 /^X\/\(\/\).*/{ 11222 s//\1/ 11223 q 11224 } 11225 s/.*/./; q'` 11226 11227# Avoid depending upon Character Ranges. 11228as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11229as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11230as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11231as_cr_digits='0123456789' 11232as_cr_alnum=$as_cr_Letters$as_cr_digits 11233 11234ECHO_C= ECHO_N= ECHO_T= 11235case `echo -n x` in #((((( 11236-n*) 11237 case `echo 'xy\c'` in 11238 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11239 xy) ECHO_C='\c';; 11240 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11241 ECHO_T=' ';; 11242 esac;; 11243*) 11244 ECHO_N='-n';; 11245esac 11246 11247rm -f conf$$ conf$$.exe conf$$.file 11248if test -d conf$$.dir; then 11249 rm -f conf$$.dir/conf$$.file 11250else 11251 rm -f conf$$.dir 11252 mkdir conf$$.dir 2>/dev/null 11253fi 11254if (echo >conf$$.file) 2>/dev/null; then 11255 if ln -s conf$$.file conf$$ 2>/dev/null; then 11256 as_ln_s='ln -s' 11257 # ... but there are two gotchas: 11258 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11259 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11260 # In both cases, we have to default to `cp -pR'. 11261 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11262 as_ln_s='cp -pR' 11263 elif ln conf$$.file conf$$ 2>/dev/null; then 11264 as_ln_s=ln 11265 else 11266 as_ln_s='cp -pR' 11267 fi 11268else 11269 as_ln_s='cp -pR' 11270fi 11271rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11272rmdir conf$$.dir 2>/dev/null 11273 11274 11275# as_fn_mkdir_p 11276# ------------- 11277# Create "$as_dir" as a directory, including parents if necessary. 11278as_fn_mkdir_p () 11279{ 11280 11281 case $as_dir in #( 11282 -*) as_dir=./$as_dir;; 11283 esac 11284 test -d "$as_dir" || eval $as_mkdir_p || { 11285 as_dirs= 11286 while :; do 11287 case $as_dir in #( 11288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11289 *) as_qdir=$as_dir;; 11290 esac 11291 as_dirs="'$as_qdir' $as_dirs" 11292 as_dir=`$as_dirname -- "$as_dir" || 11293$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11294 X"$as_dir" : 'X\(//\)[^/]' \| \ 11295 X"$as_dir" : 'X\(//\)$' \| \ 11296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11297$as_echo X"$as_dir" | 11298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11299 s//\1/ 11300 q 11301 } 11302 /^X\(\/\/\)[^/].*/{ 11303 s//\1/ 11304 q 11305 } 11306 /^X\(\/\/\)$/{ 11307 s//\1/ 11308 q 11309 } 11310 /^X\(\/\).*/{ 11311 s//\1/ 11312 q 11313 } 11314 s/.*/./; q'` 11315 test -d "$as_dir" && break 11316 done 11317 test -z "$as_dirs" || eval "mkdir $as_dirs" 11318 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11319 11320 11321} # as_fn_mkdir_p 11322if mkdir -p . 2>/dev/null; then 11323 as_mkdir_p='mkdir -p "$as_dir"' 11324else 11325 test -d ./-p && rmdir ./-p 11326 as_mkdir_p=false 11327fi 11328 11329 11330# as_fn_executable_p FILE 11331# ----------------------- 11332# Test if FILE is an executable regular file. 11333as_fn_executable_p () 11334{ 11335 test -f "$1" && test -x "$1" 11336} # as_fn_executable_p 11337as_test_x='test -x' 11338as_executable_p=as_fn_executable_p 11339 11340# Sed expression to map a string onto a valid CPP name. 11341as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11342 11343# Sed expression to map a string onto a valid variable name. 11344as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11345 11346 11347exec 6>&1 11348## ----------------------------------- ## 11349## Main body of $CONFIG_STATUS script. ## 11350## ----------------------------------- ## 11351_ASEOF 11352test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11353 11354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11355# Save the log message, to keep $0 and so on meaningful, and to 11356# report actual input values of CONFIG_FILES etc. instead of their 11357# values after options handling. 11358ac_log=" 11359This file was extended by xev $as_me 1.2.2, which was 11360generated by GNU Autoconf 2.69. Invocation command line was 11361 11362 CONFIG_FILES = $CONFIG_FILES 11363 CONFIG_HEADERS = $CONFIG_HEADERS 11364 CONFIG_LINKS = $CONFIG_LINKS 11365 CONFIG_COMMANDS = $CONFIG_COMMANDS 11366 $ $0 $@ 11367 11368on `(hostname || uname -n) 2>/dev/null | sed 1q` 11369" 11370 11371_ACEOF 11372 11373case $ac_config_files in *" 11374"*) set x $ac_config_files; shift; ac_config_files=$*;; 11375esac 11376 11377case $ac_config_headers in *" 11378"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11379esac 11380 11381 11382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11383# Files that config.status was made for. 11384config_files="$ac_config_files" 11385config_headers="$ac_config_headers" 11386config_commands="$ac_config_commands" 11387 11388_ACEOF 11389 11390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11391ac_cs_usage="\ 11392\`$as_me' instantiates files and other configuration actions 11393from templates according to the current configuration. Unless the files 11394and actions are specified as TAGs, all are instantiated by default. 11395 11396Usage: $0 [OPTION]... [TAG]... 11397 11398 -h, --help print this help, then exit 11399 -V, --version print version number and configuration settings, then exit 11400 --config print configuration, then exit 11401 -q, --quiet, --silent 11402 do not print progress messages 11403 -d, --debug don't remove temporary files 11404 --recheck update $as_me by reconfiguring in the same conditions 11405 --file=FILE[:TEMPLATE] 11406 instantiate the configuration file FILE 11407 --header=FILE[:TEMPLATE] 11408 instantiate the configuration header FILE 11409 11410Configuration files: 11411$config_files 11412 11413Configuration headers: 11414$config_headers 11415 11416Configuration commands: 11417$config_commands 11418 11419Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11420 11421_ACEOF 11422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11423ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11424ac_cs_version="\\ 11425xev config.status 1.2.2 11426configured by $0, generated by GNU Autoconf 2.69, 11427 with options \\"\$ac_cs_config\\" 11428 11429Copyright (C) 2012 Free Software Foundation, Inc. 11430This config.status script is free software; the Free Software Foundation 11431gives unlimited permission to copy, distribute and modify it." 11432 11433ac_pwd='$ac_pwd' 11434srcdir='$srcdir' 11435INSTALL='$INSTALL' 11436MKDIR_P='$MKDIR_P' 11437AWK='$AWK' 11438test -n "\$AWK" || AWK=awk 11439_ACEOF 11440 11441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11442# The default lists apply if the user does not specify any file. 11443ac_need_defaults=: 11444while test $# != 0 11445do 11446 case $1 in 11447 --*=?*) 11448 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11449 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11450 ac_shift=: 11451 ;; 11452 --*=) 11453 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11454 ac_optarg= 11455 ac_shift=: 11456 ;; 11457 *) 11458 ac_option=$1 11459 ac_optarg=$2 11460 ac_shift=shift 11461 ;; 11462 esac 11463 11464 case $ac_option in 11465 # Handling of the options. 11466 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11467 ac_cs_recheck=: ;; 11468 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11469 $as_echo "$ac_cs_version"; exit ;; 11470 --config | --confi | --conf | --con | --co | --c ) 11471 $as_echo "$ac_cs_config"; exit ;; 11472 --debug | --debu | --deb | --de | --d | -d ) 11473 debug=: ;; 11474 --file | --fil | --fi | --f ) 11475 $ac_shift 11476 case $ac_optarg in 11477 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11478 '') as_fn_error $? "missing file argument" ;; 11479 esac 11480 as_fn_append CONFIG_FILES " '$ac_optarg'" 11481 ac_need_defaults=false;; 11482 --header | --heade | --head | --hea ) 11483 $ac_shift 11484 case $ac_optarg in 11485 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11486 esac 11487 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11488 ac_need_defaults=false;; 11489 --he | --h) 11490 # Conflict between --help and --header 11491 as_fn_error $? "ambiguous option: \`$1' 11492Try \`$0 --help' for more information.";; 11493 --help | --hel | -h ) 11494 $as_echo "$ac_cs_usage"; exit ;; 11495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11496 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11497 ac_cs_silent=: ;; 11498 11499 # This is an error. 11500 -*) as_fn_error $? "unrecognized option: \`$1' 11501Try \`$0 --help' for more information." ;; 11502 11503 *) as_fn_append ac_config_targets " $1" 11504 ac_need_defaults=false ;; 11505 11506 esac 11507 shift 11508done 11509 11510ac_configure_extra_args= 11511 11512if $ac_cs_silent; then 11513 exec 6>/dev/null 11514 ac_configure_extra_args="$ac_configure_extra_args --silent" 11515fi 11516 11517_ACEOF 11518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11519if \$ac_cs_recheck; then 11520 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11521 shift 11522 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11523 CONFIG_SHELL='$SHELL' 11524 export CONFIG_SHELL 11525 exec "\$@" 11526fi 11527 11528_ACEOF 11529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11530exec 5>>config.log 11531{ 11532 echo 11533 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11534## Running $as_me. ## 11535_ASBOX 11536 $as_echo "$ac_log" 11537} >&5 11538 11539_ACEOF 11540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11541# 11542# INIT-COMMANDS 11543# 11544AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11545 11546_ACEOF 11547 11548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11549 11550# Handling of arguments. 11551for ac_config_target in $ac_config_targets 11552do 11553 case $ac_config_target in 11554 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11555 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11556 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11557 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11558 11559 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11560 esac 11561done 11562 11563 11564# If the user did not use the arguments to specify the items to instantiate, 11565# then the envvar interface is used. Set only those that are not. 11566# We use the long form for the default assignment because of an extremely 11567# bizarre bug on SunOS 4.1.3. 11568if $ac_need_defaults; then 11569 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11570 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11572fi 11573 11574# Have a temporary directory for convenience. Make it in the build tree 11575# simply because there is no reason against having it here, and in addition, 11576# creating and moving files from /tmp can sometimes cause problems. 11577# Hook for its removal unless debugging. 11578# Note that there is a small window in which the directory will not be cleaned: 11579# after its creation but before its name has been assigned to `$tmp'. 11580$debug || 11581{ 11582 tmp= ac_tmp= 11583 trap 'exit_status=$? 11584 : "${ac_tmp:=$tmp}" 11585 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11586' 0 11587 trap 'as_fn_exit 1' 1 2 13 15 11588} 11589# Create a (secure) tmp directory for tmp files. 11590 11591{ 11592 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11593 test -d "$tmp" 11594} || 11595{ 11596 tmp=./conf$$-$RANDOM 11597 (umask 077 && mkdir "$tmp") 11598} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11599ac_tmp=$tmp 11600 11601# Set up the scripts for CONFIG_FILES section. 11602# No need to generate them if there are no CONFIG_FILES. 11603# This happens for instance with `./config.status config.h'. 11604if test -n "$CONFIG_FILES"; then 11605 11606 11607ac_cr=`echo X | tr X '\015'` 11608# On cygwin, bash can eat \r inside `` if the user requested igncr. 11609# But we know of no other shell where ac_cr would be empty at this 11610# point, so we can use a bashism as a fallback. 11611if test "x$ac_cr" = x; then 11612 eval ac_cr=\$\'\\r\' 11613fi 11614ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11615if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11616 ac_cs_awk_cr='\\r' 11617else 11618 ac_cs_awk_cr=$ac_cr 11619fi 11620 11621echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11622_ACEOF 11623 11624 11625{ 11626 echo "cat >conf$$subs.awk <<_ACEOF" && 11627 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11628 echo "_ACEOF" 11629} >conf$$subs.sh || 11630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11631ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11632ac_delim='%!_!# ' 11633for ac_last_try in false false false false false :; do 11634 . ./conf$$subs.sh || 11635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11636 11637 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11638 if test $ac_delim_n = $ac_delim_num; then 11639 break 11640 elif $ac_last_try; then 11641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11642 else 11643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11644 fi 11645done 11646rm -f conf$$subs.sh 11647 11648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11649cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11650_ACEOF 11651sed -n ' 11652h 11653s/^/S["/; s/!.*/"]=/ 11654p 11655g 11656s/^[^!]*!// 11657:repl 11658t repl 11659s/'"$ac_delim"'$// 11660t delim 11661:nl 11662h 11663s/\(.\{148\}\)..*/\1/ 11664t more1 11665s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11666p 11667n 11668b repl 11669:more1 11670s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11671p 11672g 11673s/.\{148\}// 11674t nl 11675:delim 11676h 11677s/\(.\{148\}\)..*/\1/ 11678t more2 11679s/["\\]/\\&/g; s/^/"/; s/$/"/ 11680p 11681b 11682:more2 11683s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11684p 11685g 11686s/.\{148\}// 11687t delim 11688' <conf$$subs.awk | sed ' 11689/^[^""]/{ 11690 N 11691 s/\n// 11692} 11693' >>$CONFIG_STATUS || ac_write_fail=1 11694rm -f conf$$subs.awk 11695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11696_ACAWK 11697cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11698 for (key in S) S_is_set[key] = 1 11699 FS = "" 11700 11701} 11702{ 11703 line = $ 0 11704 nfields = split(line, field, "@") 11705 substed = 0 11706 len = length(field[1]) 11707 for (i = 2; i < nfields; i++) { 11708 key = field[i] 11709 keylen = length(key) 11710 if (S_is_set[key]) { 11711 value = S[key] 11712 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11713 len += length(value) + length(field[++i]) 11714 substed = 1 11715 } else 11716 len += 1 + keylen 11717 } 11718 11719 print line 11720} 11721 11722_ACAWK 11723_ACEOF 11724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11725if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11726 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11727else 11728 cat 11729fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11730 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11731_ACEOF 11732 11733# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11734# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11735# trailing colons and then remove the whole line if VPATH becomes empty 11736# (actually we leave an empty line to preserve line numbers). 11737if test "x$srcdir" = x.; then 11738 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11739h 11740s/// 11741s/^/:/ 11742s/[ ]*$/:/ 11743s/:\$(srcdir):/:/g 11744s/:\${srcdir}:/:/g 11745s/:@srcdir@:/:/g 11746s/^:*// 11747s/:*$// 11748x 11749s/\(=[ ]*\).*/\1/ 11750G 11751s/\n// 11752s/^[^=]*=[ ]*$// 11753}' 11754fi 11755 11756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11757fi # test -n "$CONFIG_FILES" 11758 11759# Set up the scripts for CONFIG_HEADERS section. 11760# No need to generate them if there are no CONFIG_HEADERS. 11761# This happens for instance with `./config.status Makefile'. 11762if test -n "$CONFIG_HEADERS"; then 11763cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11764BEGIN { 11765_ACEOF 11766 11767# Transform confdefs.h into an awk script `defines.awk', embedded as 11768# here-document in config.status, that substitutes the proper values into 11769# config.h.in to produce config.h. 11770 11771# Create a delimiter string that does not exist in confdefs.h, to ease 11772# handling of long lines. 11773ac_delim='%!_!# ' 11774for ac_last_try in false false :; do 11775 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11776 if test -z "$ac_tt"; then 11777 break 11778 elif $ac_last_try; then 11779 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11780 else 11781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11782 fi 11783done 11784 11785# For the awk script, D is an array of macro values keyed by name, 11786# likewise P contains macro parameters if any. Preserve backslash 11787# newline sequences. 11788 11789ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11790sed -n ' 11791s/.\{148\}/&'"$ac_delim"'/g 11792t rset 11793:rset 11794s/^[ ]*#[ ]*define[ ][ ]*/ / 11795t def 11796d 11797:def 11798s/\\$// 11799t bsnl 11800s/["\\]/\\&/g 11801s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11802D["\1"]=" \3"/p 11803s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11804d 11805:bsnl 11806s/["\\]/\\&/g 11807s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11808D["\1"]=" \3\\\\\\n"\\/p 11809t cont 11810s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11811t cont 11812d 11813:cont 11814n 11815s/.\{148\}/&'"$ac_delim"'/g 11816t clear 11817:clear 11818s/\\$// 11819t bsnlc 11820s/["\\]/\\&/g; s/^/"/; s/$/"/p 11821d 11822:bsnlc 11823s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11824b cont 11825' <confdefs.h | sed ' 11826s/'"$ac_delim"'/"\\\ 11827"/g' >>$CONFIG_STATUS || ac_write_fail=1 11828 11829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11830 for (key in D) D_is_set[key] = 1 11831 FS = "" 11832} 11833/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11834 line = \$ 0 11835 split(line, arg, " ") 11836 if (arg[1] == "#") { 11837 defundef = arg[2] 11838 mac1 = arg[3] 11839 } else { 11840 defundef = substr(arg[1], 2) 11841 mac1 = arg[2] 11842 } 11843 split(mac1, mac2, "(") #) 11844 macro = mac2[1] 11845 prefix = substr(line, 1, index(line, defundef) - 1) 11846 if (D_is_set[macro]) { 11847 # Preserve the white space surrounding the "#". 11848 print prefix "define", macro P[macro] D[macro] 11849 next 11850 } else { 11851 # Replace #undef with comments. This is necessary, for example, 11852 # in the case of _POSIX_SOURCE, which is predefined and required 11853 # on some systems where configure will not decide to define it. 11854 if (defundef == "undef") { 11855 print "/*", prefix defundef, macro, "*/" 11856 next 11857 } 11858 } 11859} 11860{ print } 11861_ACAWK 11862_ACEOF 11863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11864 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11865fi # test -n "$CONFIG_HEADERS" 11866 11867 11868eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11869shift 11870for ac_tag 11871do 11872 case $ac_tag in 11873 :[FHLC]) ac_mode=$ac_tag; continue;; 11874 esac 11875 case $ac_mode$ac_tag in 11876 :[FHL]*:*);; 11877 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11878 :[FH]-) ac_tag=-:-;; 11879 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11880 esac 11881 ac_save_IFS=$IFS 11882 IFS=: 11883 set x $ac_tag 11884 IFS=$ac_save_IFS 11885 shift 11886 ac_file=$1 11887 shift 11888 11889 case $ac_mode in 11890 :L) ac_source=$1;; 11891 :[FH]) 11892 ac_file_inputs= 11893 for ac_f 11894 do 11895 case $ac_f in 11896 -) ac_f="$ac_tmp/stdin";; 11897 *) # Look for the file first in the build tree, then in the source tree 11898 # (if the path is not absolute). The absolute path cannot be DOS-style, 11899 # because $ac_f cannot contain `:'. 11900 test -f "$ac_f" || 11901 case $ac_f in 11902 [\\/$]*) false;; 11903 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11904 esac || 11905 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11906 esac 11907 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11908 as_fn_append ac_file_inputs " '$ac_f'" 11909 done 11910 11911 # Let's still pretend it is `configure' which instantiates (i.e., don't 11912 # use $as_me), people would be surprised to read: 11913 # /* config.h. Generated by config.status. */ 11914 configure_input='Generated from '` 11915 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11916 `' by configure.' 11917 if test x"$ac_file" != x-; then 11918 configure_input="$ac_file. $configure_input" 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11920$as_echo "$as_me: creating $ac_file" >&6;} 11921 fi 11922 # Neutralize special characters interpreted by sed in replacement strings. 11923 case $configure_input in #( 11924 *\&* | *\|* | *\\* ) 11925 ac_sed_conf_input=`$as_echo "$configure_input" | 11926 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11927 *) ac_sed_conf_input=$configure_input;; 11928 esac 11929 11930 case $ac_tag in 11931 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11933 esac 11934 ;; 11935 esac 11936 11937 ac_dir=`$as_dirname -- "$ac_file" || 11938$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11939 X"$ac_file" : 'X\(//\)[^/]' \| \ 11940 X"$ac_file" : 'X\(//\)$' \| \ 11941 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11942$as_echo X"$ac_file" | 11943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11944 s//\1/ 11945 q 11946 } 11947 /^X\(\/\/\)[^/].*/{ 11948 s//\1/ 11949 q 11950 } 11951 /^X\(\/\/\)$/{ 11952 s//\1/ 11953 q 11954 } 11955 /^X\(\/\).*/{ 11956 s//\1/ 11957 q 11958 } 11959 s/.*/./; q'` 11960 as_dir="$ac_dir"; as_fn_mkdir_p 11961 ac_builddir=. 11962 11963case "$ac_dir" in 11964.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11965*) 11966 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11967 # A ".." for each directory in $ac_dir_suffix. 11968 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11969 case $ac_top_builddir_sub in 11970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11972 esac ;; 11973esac 11974ac_abs_top_builddir=$ac_pwd 11975ac_abs_builddir=$ac_pwd$ac_dir_suffix 11976# for backward compatibility: 11977ac_top_builddir=$ac_top_build_prefix 11978 11979case $srcdir in 11980 .) # We are building in place. 11981 ac_srcdir=. 11982 ac_top_srcdir=$ac_top_builddir_sub 11983 ac_abs_top_srcdir=$ac_pwd ;; 11984 [\\/]* | ?:[\\/]* ) # Absolute name. 11985 ac_srcdir=$srcdir$ac_dir_suffix; 11986 ac_top_srcdir=$srcdir 11987 ac_abs_top_srcdir=$srcdir ;; 11988 *) # Relative name. 11989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11990 ac_top_srcdir=$ac_top_build_prefix$srcdir 11991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11992esac 11993ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11994 11995 11996 case $ac_mode in 11997 :F) 11998 # 11999 # CONFIG_FILE 12000 # 12001 12002 case $INSTALL in 12003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12004 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12005 esac 12006 ac_MKDIR_P=$MKDIR_P 12007 case $MKDIR_P in 12008 [\\/$]* | ?:[\\/]* ) ;; 12009 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12010 esac 12011_ACEOF 12012 12013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12014# If the template does not know about datarootdir, expand it. 12015# FIXME: This hack should be removed a few years after 2.60. 12016ac_datarootdir_hack=; ac_datarootdir_seen= 12017ac_sed_dataroot=' 12018/datarootdir/ { 12019 p 12020 q 12021} 12022/@datadir@/p 12023/@docdir@/p 12024/@infodir@/p 12025/@localedir@/p 12026/@mandir@/p' 12027case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12028*datarootdir*) ac_datarootdir_seen=yes;; 12029*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12031$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12032_ACEOF 12033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12034 ac_datarootdir_hack=' 12035 s&@datadir@&$datadir&g 12036 s&@docdir@&$docdir&g 12037 s&@infodir@&$infodir&g 12038 s&@localedir@&$localedir&g 12039 s&@mandir@&$mandir&g 12040 s&\\\${datarootdir}&$datarootdir&g' ;; 12041esac 12042_ACEOF 12043 12044# Neutralize VPATH when `$srcdir' = `.'. 12045# Shell code in configure.ac might set extrasub. 12046# FIXME: do we really want to maintain this feature? 12047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12048ac_sed_extra="$ac_vpsub 12049$extrasub 12050_ACEOF 12051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12052:t 12053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12054s|@configure_input@|$ac_sed_conf_input|;t t 12055s&@top_builddir@&$ac_top_builddir_sub&;t t 12056s&@top_build_prefix@&$ac_top_build_prefix&;t t 12057s&@srcdir@&$ac_srcdir&;t t 12058s&@abs_srcdir@&$ac_abs_srcdir&;t t 12059s&@top_srcdir@&$ac_top_srcdir&;t t 12060s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12061s&@builddir@&$ac_builddir&;t t 12062s&@abs_builddir@&$ac_abs_builddir&;t t 12063s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12064s&@INSTALL@&$ac_INSTALL&;t t 12065s&@MKDIR_P@&$ac_MKDIR_P&;t t 12066$ac_datarootdir_hack 12067" 12068eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12069 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12070 12071test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12072 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12073 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12074 "$ac_tmp/out"`; test -z "$ac_out"; } && 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12076which seems to be undefined. Please make sure it is defined" >&5 12077$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12078which seems to be undefined. Please make sure it is defined" >&2;} 12079 12080 rm -f "$ac_tmp/stdin" 12081 case $ac_file in 12082 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12083 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12084 esac \ 12085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12086 ;; 12087 :H) 12088 # 12089 # CONFIG_HEADER 12090 # 12091 if test x"$ac_file" != x-; then 12092 { 12093 $as_echo "/* $configure_input */" \ 12094 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12095 } >"$ac_tmp/config.h" \ 12096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12097 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12099$as_echo "$as_me: $ac_file is unchanged" >&6;} 12100 else 12101 rm -f "$ac_file" 12102 mv "$ac_tmp/config.h" "$ac_file" \ 12103 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12104 fi 12105 else 12106 $as_echo "/* $configure_input */" \ 12107 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12108 || as_fn_error $? "could not create -" "$LINENO" 5 12109 fi 12110# Compute "$ac_file"'s index in $config_headers. 12111_am_arg="$ac_file" 12112_am_stamp_count=1 12113for _am_header in $config_headers :; do 12114 case $_am_header in 12115 $_am_arg | $_am_arg:* ) 12116 break ;; 12117 * ) 12118 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12119 esac 12120done 12121echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12122$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12123 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12124 X"$_am_arg" : 'X\(//\)$' \| \ 12125 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12126$as_echo X"$_am_arg" | 12127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12128 s//\1/ 12129 q 12130 } 12131 /^X\(\/\/\)[^/].*/{ 12132 s//\1/ 12133 q 12134 } 12135 /^X\(\/\/\)$/{ 12136 s//\1/ 12137 q 12138 } 12139 /^X\(\/\).*/{ 12140 s//\1/ 12141 q 12142 } 12143 s/.*/./; q'`/stamp-h$_am_stamp_count 12144 ;; 12145 12146 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12147$as_echo "$as_me: executing $ac_file commands" >&6;} 12148 ;; 12149 esac 12150 12151 12152 case $ac_file$ac_mode in 12153 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12154 # Older Autoconf quotes --file arguments for eval, but not when files 12155 # are listed without --file. Let's play safe and only enable the eval 12156 # if we detect the quoting. 12157 case $CONFIG_FILES in 12158 *\'*) eval set x "$CONFIG_FILES" ;; 12159 *) set x $CONFIG_FILES ;; 12160 esac 12161 shift 12162 for mf 12163 do 12164 # Strip MF so we end up with the name of the file. 12165 mf=`echo "$mf" | sed -e 's/:.*$//'` 12166 # Check whether this is an Automake generated Makefile or not. 12167 # We used to match only the files named 'Makefile.in', but 12168 # some people rename them; so instead we look at the file content. 12169 # Grep'ing the first line is not enough: some people post-process 12170 # each Makefile.in and add a new line on top of each file to say so. 12171 # Grep'ing the whole file is not good either: AIX grep has a line 12172 # limit of 2048, but all sed's we know have understand at least 4000. 12173 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12174 dirpart=`$as_dirname -- "$mf" || 12175$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12176 X"$mf" : 'X\(//\)[^/]' \| \ 12177 X"$mf" : 'X\(//\)$' \| \ 12178 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12179$as_echo X"$mf" | 12180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12181 s//\1/ 12182 q 12183 } 12184 /^X\(\/\/\)[^/].*/{ 12185 s//\1/ 12186 q 12187 } 12188 /^X\(\/\/\)$/{ 12189 s//\1/ 12190 q 12191 } 12192 /^X\(\/\).*/{ 12193 s//\1/ 12194 q 12195 } 12196 s/.*/./; q'` 12197 else 12198 continue 12199 fi 12200 # Extract the definition of DEPDIR, am__include, and am__quote 12201 # from the Makefile without running 'make'. 12202 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12203 test -z "$DEPDIR" && continue 12204 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12205 test -z "$am__include" && continue 12206 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12207 # Find all dependency output files, they are included files with 12208 # $(DEPDIR) in their names. We invoke sed twice because it is the 12209 # simplest approach to changing $(DEPDIR) to its actual value in the 12210 # expansion. 12211 for file in `sed -n " 12212 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12213 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12214 # Make sure the directory exists. 12215 test -f "$dirpart/$file" && continue 12216 fdir=`$as_dirname -- "$file" || 12217$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12218 X"$file" : 'X\(//\)[^/]' \| \ 12219 X"$file" : 'X\(//\)$' \| \ 12220 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12221$as_echo X"$file" | 12222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12223 s//\1/ 12224 q 12225 } 12226 /^X\(\/\/\)[^/].*/{ 12227 s//\1/ 12228 q 12229 } 12230 /^X\(\/\/\)$/{ 12231 s//\1/ 12232 q 12233 } 12234 /^X\(\/\).*/{ 12235 s//\1/ 12236 q 12237 } 12238 s/.*/./; q'` 12239 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12240 # echo "creating $dirpart/$file" 12241 echo '# dummy' > "$dirpart/$file" 12242 done 12243 done 12244} 12245 ;; 12246 12247 esac 12248done # for ac_tag 12249 12250 12251as_fn_exit 0 12252_ACEOF 12253ac_clean_files=$ac_clean_files_save 12254 12255test $ac_write_fail = 0 || 12256 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12257 12258 12259# configure is writing to config.log, and then calls config.status. 12260# config.status does its own redirection, appending to config.log. 12261# Unfortunately, on DOS this fails, as config.log is still kept open 12262# by configure, so config.status won't be able to write to it; its 12263# output is simply discarded. So we exec the FD to /dev/null, 12264# effectively closing config.log, so it can be properly (re)opened and 12265# appended to by config.status. When coming back to configure, we 12266# need to make the FD available again. 12267if test "$no_create" != yes; then 12268 ac_cs_success=: 12269 ac_config_status_args= 12270 test "$silent" = yes && 12271 ac_config_status_args="$ac_config_status_args --quiet" 12272 exec 5>/dev/null 12273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12274 exec 5>>config.log 12275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12276 # would make configure fail if this is the last instruction. 12277 $ac_cs_success || as_fn_exit 1 12278fi 12279if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12281$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12282fi 12283 12284