configure revision da39bf31
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xev 1.2.3. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/issues>. 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://gitlab.freedesktop.org/xorg/app/xev/issues 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.3' 585PACKAGE_STRING='xev 1.2.3' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xev/issues' 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_LIBDIR 657PKG_CONFIG_PATH 658PKG_CONFIG 659CHANGELOG_CMD 660STRICT_CFLAGS 661CWARNFLAGS 662BASE_CFLAGS 663AM_BACKSLASH 664AM_DEFAULT_VERBOSITY 665AM_DEFAULT_V 666AM_V 667am__fastdepCC_FALSE 668am__fastdepCC_TRUE 669CCDEPMODE 670am__nodep 671AMDEPBACKSLASH 672AMDEP_FALSE 673AMDEP_TRUE 674am__quote 675am__include 676DEPDIR 677am__untar 678am__tar 679AMTAR 680am__leading_dot 681SET_MAKE 682AWK 683mkdir_p 684MKDIR_P 685INSTALL_STRIP_PROGRAM 686STRIP 687install_sh 688MAKEINFO 689AUTOHEADER 690AUTOMAKE 691AUTOCONF 692ACLOCAL 693VERSION 694PACKAGE 695CYGPATH_W 696am__isrc 697INSTALL_DATA 698INSTALL_SCRIPT 699INSTALL_PROGRAM 700EGREP 701GREP 702CPP 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710target_alias 711host_alias 712build_alias 713LIBS 714ECHO_T 715ECHO_N 716ECHO_C 717DEFS 718mandir 719localedir 720libdir 721psdir 722pdfdir 723dvidir 724htmldir 725infodir 726docdir 727oldincludedir 728includedir 729localstatedir 730sharedstatedir 731sysconfdir 732datadir 733datarootdir 734libexecdir 735sbindir 736bindir 737program_transform_name 738prefix 739exec_prefix 740PACKAGE_URL 741PACKAGE_BUGREPORT 742PACKAGE_STRING 743PACKAGE_VERSION 744PACKAGE_TARNAME 745PACKAGE_NAME 746PATH_SEPARATOR 747SHELL' 748ac_subst_files='' 749ac_user_opts=' 750enable_option_checking 751enable_dependency_tracking 752enable_silent_rules 753enable_selective_werror 754enable_strict_compilation 755' 756 ac_precious_vars='build_alias 757host_alias 758target_alias 759CC 760CFLAGS 761LDFLAGS 762LIBS 763CPPFLAGS 764CPP 765PKG_CONFIG 766PKG_CONFIG_PATH 767PKG_CONFIG_LIBDIR 768XEV_CFLAGS 769XEV_LIBS' 770 771 772# Initialize some variables set by options. 773ac_init_help= 774ac_init_version=false 775ac_unrecognized_opts= 776ac_unrecognized_sep= 777# The variables have the same names as the options, with 778# dashes changed to underlines. 779cache_file=/dev/null 780exec_prefix=NONE 781no_create= 782no_recursion= 783prefix=NONE 784program_prefix=NONE 785program_suffix=NONE 786program_transform_name=s,x,x, 787silent= 788site= 789srcdir= 790verbose= 791x_includes=NONE 792x_libraries=NONE 793 794# Installation directory options. 795# These are left unexpanded so users can "make install exec_prefix=/foo" 796# and all the variables that are supposed to be based on exec_prefix 797# by default will actually change. 798# Use braces instead of parens because sh, perl, etc. also accept them. 799# (The list follows the same order as the GNU Coding Standards.) 800bindir='${exec_prefix}/bin' 801sbindir='${exec_prefix}/sbin' 802libexecdir='${exec_prefix}/libexec' 803datarootdir='${prefix}/share' 804datadir='${datarootdir}' 805sysconfdir='${prefix}/etc' 806sharedstatedir='${prefix}/com' 807localstatedir='${prefix}/var' 808includedir='${prefix}/include' 809oldincludedir='/usr/include' 810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 811infodir='${datarootdir}/info' 812htmldir='${docdir}' 813dvidir='${docdir}' 814pdfdir='${docdir}' 815psdir='${docdir}' 816libdir='${exec_prefix}/lib' 817localedir='${datarootdir}/locale' 818mandir='${datarootdir}/man' 819 820ac_prev= 821ac_dashdash= 822for ac_option 823do 824 # If the previous option needs an argument, assign it. 825 if test -n "$ac_prev"; then 826 eval $ac_prev=\$ac_option 827 ac_prev= 828 continue 829 fi 830 831 case $ac_option in 832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 833 *=) ac_optarg= ;; 834 *) ac_optarg=yes ;; 835 esac 836 837 # Accept the important Cygnus configure options, so we can diagnose typos. 838 839 case $ac_dashdash$ac_option in 840 --) 841 ac_dashdash=yes ;; 842 843 -bindir | --bindir | --bindi | --bind | --bin | --bi) 844 ac_prev=bindir ;; 845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 846 bindir=$ac_optarg ;; 847 848 -build | --build | --buil | --bui | --bu) 849 ac_prev=build_alias ;; 850 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 851 build_alias=$ac_optarg ;; 852 853 -cache-file | --cache-file | --cache-fil | --cache-fi \ 854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 855 ac_prev=cache_file ;; 856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 858 cache_file=$ac_optarg ;; 859 860 --config-cache | -C) 861 cache_file=config.cache ;; 862 863 -datadir | --datadir | --datadi | --datad) 864 ac_prev=datadir ;; 865 -datadir=* | --datadir=* | --datadi=* | --datad=*) 866 datadir=$ac_optarg ;; 867 868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 869 | --dataroo | --dataro | --datar) 870 ac_prev=datarootdir ;; 871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 873 datarootdir=$ac_optarg ;; 874 875 -disable-* | --disable-*) 876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 877 # Reject names that are not valid shell variable names. 878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879 as_fn_error $? "invalid feature name: $ac_useropt" 880 ac_useropt_orig=$ac_useropt 881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882 case $ac_user_opts in 883 *" 884"enable_$ac_useropt" 885"*) ;; 886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 887 ac_unrecognized_sep=', ';; 888 esac 889 eval enable_$ac_useropt=no ;; 890 891 -docdir | --docdir | --docdi | --doc | --do) 892 ac_prev=docdir ;; 893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 894 docdir=$ac_optarg ;; 895 896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 897 ac_prev=dvidir ;; 898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 899 dvidir=$ac_optarg ;; 900 901 -enable-* | --enable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=\$ac_optarg ;; 916 917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 919 | --exec | --exe | --ex) 920 ac_prev=exec_prefix ;; 921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 923 | --exec=* | --exe=* | --ex=*) 924 exec_prefix=$ac_optarg ;; 925 926 -gas | --gas | --ga | --g) 927 # Obsolete; use --with-gas. 928 with_gas=yes ;; 929 930 -help | --help | --hel | --he | -h) 931 ac_init_help=long ;; 932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 933 ac_init_help=recursive ;; 934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 935 ac_init_help=short ;; 936 937 -host | --host | --hos | --ho) 938 ac_prev=host_alias ;; 939 -host=* | --host=* | --hos=* | --ho=*) 940 host_alias=$ac_optarg ;; 941 942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 943 ac_prev=htmldir ;; 944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 945 | --ht=*) 946 htmldir=$ac_optarg ;; 947 948 -includedir | --includedir | --includedi | --included | --include \ 949 | --includ | --inclu | --incl | --inc) 950 ac_prev=includedir ;; 951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 952 | --includ=* | --inclu=* | --incl=* | --inc=*) 953 includedir=$ac_optarg ;; 954 955 -infodir | --infodir | --infodi | --infod | --info | --inf) 956 ac_prev=infodir ;; 957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 958 infodir=$ac_optarg ;; 959 960 -libdir | --libdir | --libdi | --libd) 961 ac_prev=libdir ;; 962 -libdir=* | --libdir=* | --libdi=* | --libd=*) 963 libdir=$ac_optarg ;; 964 965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 966 | --libexe | --libex | --libe) 967 ac_prev=libexecdir ;; 968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 969 | --libexe=* | --libex=* | --libe=*) 970 libexecdir=$ac_optarg ;; 971 972 -localedir | --localedir | --localedi | --localed | --locale) 973 ac_prev=localedir ;; 974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 975 localedir=$ac_optarg ;; 976 977 -localstatedir | --localstatedir | --localstatedi | --localstated \ 978 | --localstate | --localstat | --localsta | --localst | --locals) 979 ac_prev=localstatedir ;; 980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 982 localstatedir=$ac_optarg ;; 983 984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 985 ac_prev=mandir ;; 986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 987 mandir=$ac_optarg ;; 988 989 -nfp | --nfp | --nf) 990 # Obsolete; use --without-fp. 991 with_fp=no ;; 992 993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 994 | --no-cr | --no-c | -n) 995 no_create=yes ;; 996 997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 999 no_recursion=yes ;; 1000 1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1003 | --oldin | --oldi | --old | --ol | --o) 1004 ac_prev=oldincludedir ;; 1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1008 oldincludedir=$ac_optarg ;; 1009 1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1011 ac_prev=prefix ;; 1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1013 prefix=$ac_optarg ;; 1014 1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1016 | --program-pre | --program-pr | --program-p) 1017 ac_prev=program_prefix ;; 1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1020 program_prefix=$ac_optarg ;; 1021 1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1023 | --program-suf | --program-su | --program-s) 1024 ac_prev=program_suffix ;; 1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1027 program_suffix=$ac_optarg ;; 1028 1029 -program-transform-name | --program-transform-name \ 1030 | --program-transform-nam | --program-transform-na \ 1031 | --program-transform-n | --program-transform- \ 1032 | --program-transform | --program-transfor \ 1033 | --program-transfo | --program-transf \ 1034 | --program-trans | --program-tran \ 1035 | --progr-tra | --program-tr | --program-t) 1036 ac_prev=program_transform_name ;; 1037 -program-transform-name=* | --program-transform-name=* \ 1038 | --program-transform-nam=* | --program-transform-na=* \ 1039 | --program-transform-n=* | --program-transform-=* \ 1040 | --program-transform=* | --program-transfor=* \ 1041 | --program-transfo=* | --program-transf=* \ 1042 | --program-trans=* | --program-tran=* \ 1043 | --progr-tra=* | --program-tr=* | --program-t=*) 1044 program_transform_name=$ac_optarg ;; 1045 1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1047 ac_prev=pdfdir ;; 1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1049 pdfdir=$ac_optarg ;; 1050 1051 -psdir | --psdir | --psdi | --psd | --ps) 1052 ac_prev=psdir ;; 1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1054 psdir=$ac_optarg ;; 1055 1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 | -silent | --silent | --silen | --sile | --sil) 1058 silent=yes ;; 1059 1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1061 ac_prev=sbindir ;; 1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1063 | --sbi=* | --sb=*) 1064 sbindir=$ac_optarg ;; 1065 1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1068 | --sharedst | --shareds | --shared | --share | --shar \ 1069 | --sha | --sh) 1070 ac_prev=sharedstatedir ;; 1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1074 | --sha=* | --sh=*) 1075 sharedstatedir=$ac_optarg ;; 1076 1077 -site | --site | --sit) 1078 ac_prev=site ;; 1079 -site=* | --site=* | --sit=*) 1080 site=$ac_optarg ;; 1081 1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1083 ac_prev=srcdir ;; 1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1085 srcdir=$ac_optarg ;; 1086 1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1088 | --syscon | --sysco | --sysc | --sys | --sy) 1089 ac_prev=sysconfdir ;; 1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1092 sysconfdir=$ac_optarg ;; 1093 1094 -target | --target | --targe | --targ | --tar | --ta | --t) 1095 ac_prev=target_alias ;; 1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1097 target_alias=$ac_optarg ;; 1098 1099 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1100 verbose=yes ;; 1101 1102 -version | --version | --versio | --versi | --vers | -V) 1103 ac_init_version=: ;; 1104 1105 -with-* | --with-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"with_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=\$ac_optarg ;; 1120 1121 -without-* | --without-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"with_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=no ;; 1136 1137 --x) 1138 # Obsolete; use --with-x. 1139 with_x=yes ;; 1140 1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1142 | --x-incl | --x-inc | --x-in | --x-i) 1143 ac_prev=x_includes ;; 1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1146 x_includes=$ac_optarg ;; 1147 1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1150 ac_prev=x_libraries ;; 1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1153 x_libraries=$ac_optarg ;; 1154 1155 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1156Try \`$0 --help' for more information" 1157 ;; 1158 1159 *=*) 1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1161 # Reject names that are not valid shell variable names. 1162 case $ac_envvar in #( 1163 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1165 esac 1166 eval $ac_envvar=\$ac_optarg 1167 export $ac_envvar ;; 1168 1169 *) 1170 # FIXME: should be removed in autoconf 3.0. 1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1175 ;; 1176 1177 esac 1178done 1179 1180if test -n "$ac_prev"; then 1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1182 as_fn_error $? "missing argument to $ac_option" 1183fi 1184 1185if test -n "$ac_unrecognized_opts"; then 1186 case $enable_option_checking in 1187 no) ;; 1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1190 esac 1191fi 1192 1193# Check all directory arguments for consistency. 1194for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1195 datadir sysconfdir sharedstatedir localstatedir includedir \ 1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1197 libdir localedir mandir 1198do 1199 eval ac_val=\$$ac_var 1200 # Remove trailing slashes. 1201 case $ac_val in 1202 */ ) 1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1204 eval $ac_var=\$ac_val;; 1205 esac 1206 # Be sure to have absolute directory names. 1207 case $ac_val in 1208 [\\/$]* | ?:[\\/]* ) continue;; 1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1210 esac 1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1212done 1213 1214# There might be people who depend on the old broken behavior: `$host' 1215# used to hold the argument of --host etc. 1216# FIXME: To remove some day. 1217build=$build_alias 1218host=$host_alias 1219target=$target_alias 1220 1221# FIXME: To remove some day. 1222if test "x$host_alias" != x; then 1223 if test "x$build_alias" = x; then 1224 cross_compiling=maybe 1225 elif test "x$build_alias" != "x$host_alias"; then 1226 cross_compiling=yes 1227 fi 1228fi 1229 1230ac_tool_prefix= 1231test -n "$host_alias" && ac_tool_prefix=$host_alias- 1232 1233test "$silent" = yes && exec 6>/dev/null 1234 1235 1236ac_pwd=`pwd` && test -n "$ac_pwd" && 1237ac_ls_di=`ls -di .` && 1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1239 as_fn_error $? "working directory cannot be determined" 1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1241 as_fn_error $? "pwd does not report name of working directory" 1242 1243 1244# Find the source files, if location was not specified. 1245if test -z "$srcdir"; then 1246 ac_srcdir_defaulted=yes 1247 # Try the directory containing this script, then the parent directory. 1248 ac_confdir=`$as_dirname -- "$as_myself" || 1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1250 X"$as_myself" : 'X\(//\)[^/]' \| \ 1251 X"$as_myself" : 'X\(//\)$' \| \ 1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1253$as_echo X"$as_myself" | 1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)[^/].*/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\).*/{ 1267 s//\1/ 1268 q 1269 } 1270 s/.*/./; q'` 1271 srcdir=$ac_confdir 1272 if test ! -r "$srcdir/$ac_unique_file"; then 1273 srcdir=.. 1274 fi 1275else 1276 ac_srcdir_defaulted=no 1277fi 1278if test ! -r "$srcdir/$ac_unique_file"; then 1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1281fi 1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1283ac_abs_confdir=`( 1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1285 pwd)` 1286# When building in place, set srcdir=. 1287if test "$ac_abs_confdir" = "$ac_pwd"; then 1288 srcdir=. 1289fi 1290# Remove unnecessary trailing slashes from srcdir. 1291# Double slashes in file names in object file debugging info 1292# mess up M-x gdb in Emacs. 1293case $srcdir in 1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1295esac 1296for ac_var in $ac_precious_vars; do 1297 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_env_${ac_var}_value=\$${ac_var} 1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1301done 1302 1303# 1304# Report the --help message. 1305# 1306if test "$ac_init_help" = "long"; then 1307 # Omit some internal or obsolete options to make the list less imposing. 1308 # This message is too long to be a string in the A/UX 3.1 sh. 1309 cat <<_ACEOF 1310\`configure' configures xev 1.2.3 to adapt to many kinds of systems. 1311 1312Usage: $0 [OPTION]... [VAR=VALUE]... 1313 1314To assign environment variables (e.g., CC, CFLAGS...), specify them as 1315VAR=VALUE. See below for descriptions of some of the useful variables. 1316 1317Defaults for the options are specified in brackets. 1318 1319Configuration: 1320 -h, --help display this help and exit 1321 --help=short display options specific to this package 1322 --help=recursive display the short help of all the included packages 1323 -V, --version display version information and exit 1324 -q, --quiet, --silent do not print \`checking ...' messages 1325 --cache-file=FILE cache test results in FILE [disabled] 1326 -C, --config-cache alias for \`--cache-file=config.cache' 1327 -n, --no-create do not create output files 1328 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1329 1330Installation directories: 1331 --prefix=PREFIX install architecture-independent files in PREFIX 1332 [$ac_default_prefix] 1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1334 [PREFIX] 1335 1336By default, \`make install' will install all the files in 1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1338an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1339for instance \`--prefix=\$HOME'. 1340 1341For better control, use the options below. 1342 1343Fine tuning of the installation directories: 1344 --bindir=DIR user executables [EPREFIX/bin] 1345 --sbindir=DIR system admin executables [EPREFIX/sbin] 1346 --libexecdir=DIR program executables [EPREFIX/libexec] 1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1350 --libdir=DIR object code libraries [EPREFIX/lib] 1351 --includedir=DIR C header files [PREFIX/include] 1352 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355 --infodir=DIR info documentation [DATAROOTDIR/info] 1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357 --mandir=DIR man documentation [DATAROOTDIR/man] 1358 --docdir=DIR documentation root [DATAROOTDIR/doc/xev] 1359 --htmldir=DIR html documentation [DOCDIR] 1360 --dvidir=DIR dvi documentation [DOCDIR] 1361 --pdfdir=DIR pdf documentation [DOCDIR] 1362 --psdir=DIR ps documentation [DOCDIR] 1363_ACEOF 1364 1365 cat <<\_ACEOF 1366 1367Program names: 1368 --program-prefix=PREFIX prepend PREFIX to installed program names 1369 --program-suffix=SUFFIX append SUFFIX to installed program names 1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1371 1372System types: 1373 --build=BUILD configure for building on BUILD [guessed] 1374 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1375_ACEOF 1376fi 1377 1378if test -n "$ac_init_help"; then 1379 case $ac_init_help in 1380 short | recursive ) echo "Configuration of xev 1.2.3:";; 1381 esac 1382 cat <<\_ACEOF 1383 1384Optional Features: 1385 --disable-option-checking ignore unrecognized --enable/--with options 1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1388 --enable-dependency-tracking 1389 do not reject slow dependency extractors 1390 --disable-dependency-tracking 1391 speeds up one-time build 1392 --enable-silent-rules less verbose build output (undo: "make V=1") 1393 --disable-silent-rules verbose build output (undo: "make V=0") 1394 --disable-selective-werror 1395 Turn off selective compiler errors. (default: 1396 enabled) 1397 --enable-strict-compilation 1398 Enable all warnings from compiler and make them 1399 errors (default: disabled) 1400 1401Some influential environment variables: 1402 CC C compiler command 1403 CFLAGS C compiler flags 1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1405 nonstandard directory <lib dir> 1406 LIBS libraries to pass to the linker, e.g. -l<library> 1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1408 you have headers in a nonstandard directory <include dir> 1409 CPP C preprocessor 1410 PKG_CONFIG path to pkg-config utility 1411 PKG_CONFIG_PATH 1412 directories to add to pkg-config's search path 1413 PKG_CONFIG_LIBDIR 1414 path overriding pkg-config's built-in search path 1415 XEV_CFLAGS C compiler flags for XEV, overriding pkg-config 1416 XEV_LIBS linker flags for XEV, overriding pkg-config 1417 1418Use these variables to override the choices made by `configure' or to help 1419it to find libraries and programs with nonstandard names/locations. 1420 1421Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/issues>. 1422_ACEOF 1423ac_status=$? 1424fi 1425 1426if test "$ac_init_help" = "recursive"; then 1427 # If there are subdirs, report their specific --help. 1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1429 test -d "$ac_dir" || 1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1431 continue 1432 ac_builddir=. 1433 1434case "$ac_dir" in 1435.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1436*) 1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1438 # A ".." for each directory in $ac_dir_suffix. 1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1440 case $ac_top_builddir_sub in 1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1443 esac ;; 1444esac 1445ac_abs_top_builddir=$ac_pwd 1446ac_abs_builddir=$ac_pwd$ac_dir_suffix 1447# for backward compatibility: 1448ac_top_builddir=$ac_top_build_prefix 1449 1450case $srcdir in 1451 .) # We are building in place. 1452 ac_srcdir=. 1453 ac_top_srcdir=$ac_top_builddir_sub 1454 ac_abs_top_srcdir=$ac_pwd ;; 1455 [\\/]* | ?:[\\/]* ) # Absolute name. 1456 ac_srcdir=$srcdir$ac_dir_suffix; 1457 ac_top_srcdir=$srcdir 1458 ac_abs_top_srcdir=$srcdir ;; 1459 *) # Relative name. 1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1461 ac_top_srcdir=$ac_top_build_prefix$srcdir 1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1463esac 1464ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1465 1466 cd "$ac_dir" || { ac_status=$?; continue; } 1467 # Check for guested configure. 1468 if test -f "$ac_srcdir/configure.gnu"; then 1469 echo && 1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1471 elif test -f "$ac_srcdir/configure"; then 1472 echo && 1473 $SHELL "$ac_srcdir/configure" --help=recursive 1474 else 1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1476 fi || ac_status=$? 1477 cd "$ac_pwd" || { ac_status=$?; break; } 1478 done 1479fi 1480 1481test -n "$ac_init_help" && exit $ac_status 1482if $ac_init_version; then 1483 cat <<\_ACEOF 1484xev configure 1.2.3 1485generated by GNU Autoconf 2.69 1486 1487Copyright (C) 2012 Free Software Foundation, Inc. 1488This configure script is free software; the Free Software Foundation 1489gives unlimited permission to copy, distribute and modify it. 1490_ACEOF 1491 exit 1492fi 1493 1494## ------------------------ ## 1495## Autoconf initialization. ## 1496## ------------------------ ## 1497 1498# ac_fn_c_try_compile LINENO 1499# -------------------------- 1500# Try to compile conftest.$ac_ext, and return whether this succeeded. 1501ac_fn_c_try_compile () 1502{ 1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1504 rm -f conftest.$ac_objext 1505 if { { ac_try="$ac_compile" 1506case "(($ac_try" in 1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1508 *) ac_try_echo=$ac_try;; 1509esac 1510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1511$as_echo "$ac_try_echo"; } >&5 1512 (eval "$ac_compile") 2>conftest.err 1513 ac_status=$? 1514 if test -s conftest.err; then 1515 grep -v '^ *+' conftest.err >conftest.er1 1516 cat conftest.er1 >&5 1517 mv -f conftest.er1 conftest.err 1518 fi 1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1520 test $ac_status = 0; } && { 1521 test -z "$ac_c_werror_flag" || 1522 test ! -s conftest.err 1523 } && test -s conftest.$ac_objext; then : 1524 ac_retval=0 1525else 1526 $as_echo "$as_me: failed program was:" >&5 1527sed 's/^/| /' conftest.$ac_ext >&5 1528 1529 ac_retval=1 1530fi 1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1532 as_fn_set_status $ac_retval 1533 1534} # ac_fn_c_try_compile 1535 1536# ac_fn_c_try_cpp LINENO 1537# ---------------------- 1538# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1539ac_fn_c_try_cpp () 1540{ 1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 if { { ac_try="$ac_cpp conftest.$ac_ext" 1543case "(($ac_try" in 1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1545 *) ac_try_echo=$ac_try;; 1546esac 1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1548$as_echo "$ac_try_echo"; } >&5 1549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1550 ac_status=$? 1551 if test -s conftest.err; then 1552 grep -v '^ *+' conftest.err >conftest.er1 1553 cat conftest.er1 >&5 1554 mv -f conftest.er1 conftest.err 1555 fi 1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1557 test $ac_status = 0; } > conftest.i && { 1558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1559 test ! -s conftest.err 1560 }; then : 1561 ac_retval=0 1562else 1563 $as_echo "$as_me: failed program was:" >&5 1564sed 's/^/| /' conftest.$ac_ext >&5 1565 1566 ac_retval=1 1567fi 1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1569 as_fn_set_status $ac_retval 1570 1571} # ac_fn_c_try_cpp 1572 1573# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1574# ------------------------------------------------------- 1575# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1576# the include files in INCLUDES and setting the cache variable VAR 1577# accordingly. 1578ac_fn_c_check_header_mongrel () 1579{ 1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1581 if eval \${$3+:} false; then : 1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1583$as_echo_n "checking for $2... " >&6; } 1584if eval \${$3+:} false; then : 1585 $as_echo_n "(cached) " >&6 1586fi 1587eval ac_res=\$$3 1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1589$as_echo "$ac_res" >&6; } 1590else 1591 # Is the header compilable? 1592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1593$as_echo_n "checking $2 usability... " >&6; } 1594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1595/* end confdefs.h. */ 1596$4 1597#include <$2> 1598_ACEOF 1599if ac_fn_c_try_compile "$LINENO"; then : 1600 ac_header_compiler=yes 1601else 1602 ac_header_compiler=no 1603fi 1604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1606$as_echo "$ac_header_compiler" >&6; } 1607 1608# Is the header present? 1609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1610$as_echo_n "checking $2 presence... " >&6; } 1611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1612/* end confdefs.h. */ 1613#include <$2> 1614_ACEOF 1615if ac_fn_c_try_cpp "$LINENO"; then : 1616 ac_header_preproc=yes 1617else 1618 ac_header_preproc=no 1619fi 1620rm -f conftest.err conftest.i conftest.$ac_ext 1621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1622$as_echo "$ac_header_preproc" >&6; } 1623 1624# So? What about this header? 1625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1626 yes:no: ) 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1628$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1630$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1631 ;; 1632 no:yes:* ) 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1634$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1636$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1638$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1640$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1642$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1643( $as_echo "## ----------------------------------------------------------------- ## 1644## Report this to https://gitlab.freedesktop.org/xorg/app/xev/issues ## 1645## ----------------------------------------------------------------- ##" 1646 ) | sed "s/^/$as_me: WARNING: /" >&2 1647 ;; 1648esac 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1650$as_echo_n "checking for $2... " >&6; } 1651if eval \${$3+:} false; then : 1652 $as_echo_n "(cached) " >&6 1653else 1654 eval "$3=\$ac_header_compiler" 1655fi 1656eval ac_res=\$$3 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1658$as_echo "$ac_res" >&6; } 1659fi 1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1661 1662} # ac_fn_c_check_header_mongrel 1663 1664# ac_fn_c_try_run LINENO 1665# ---------------------- 1666# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1667# that executables *can* be run. 1668ac_fn_c_try_run () 1669{ 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 if { { ac_try="$ac_link" 1672case "(($ac_try" in 1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1674 *) ac_try_echo=$ac_try;; 1675esac 1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1677$as_echo "$ac_try_echo"; } >&5 1678 (eval "$ac_link") 2>&5 1679 ac_status=$? 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1682 { { case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_try") 2>&5 1689 ac_status=$? 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; }; }; then : 1692 ac_retval=0 1693else 1694 $as_echo "$as_me: program exited with status $ac_status" >&5 1695 $as_echo "$as_me: failed program was:" >&5 1696sed 's/^/| /' conftest.$ac_ext >&5 1697 1698 ac_retval=$ac_status 1699fi 1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702 as_fn_set_status $ac_retval 1703 1704} # ac_fn_c_try_run 1705 1706# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1707# ------------------------------------------------------- 1708# Tests whether HEADER exists and can be compiled using the include files in 1709# INCLUDES, setting the cache variable VAR accordingly. 1710ac_fn_c_check_header_compile () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1714$as_echo_n "checking for $2... " >&6; } 1715if eval \${$3+:} false; then : 1716 $as_echo_n "(cached) " >&6 1717else 1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1719/* end confdefs.h. */ 1720$4 1721#include <$2> 1722_ACEOF 1723if ac_fn_c_try_compile "$LINENO"; then : 1724 eval "$3=yes" 1725else 1726 eval "$3=no" 1727fi 1728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1729fi 1730eval ac_res=\$$3 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1732$as_echo "$ac_res" >&6; } 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 1735} # ac_fn_c_check_header_compile 1736 1737# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1738# --------------------------------------------- 1739# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1740# accordingly. 1741ac_fn_c_check_decl () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 as_decl_name=`echo $2|sed 's/ *(.*//'` 1745 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1747$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1748if eval \${$3+:} false; then : 1749 $as_echo_n "(cached) " >&6 1750else 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754int 1755main () 1756{ 1757#ifndef $as_decl_name 1758#ifdef __cplusplus 1759 (void) $as_decl_use; 1760#else 1761 (void) $as_decl_name; 1762#endif 1763#endif 1764 1765 ; 1766 return 0; 1767} 1768_ACEOF 1769if ac_fn_c_try_compile "$LINENO"; then : 1770 eval "$3=yes" 1771else 1772 eval "$3=no" 1773fi 1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1775fi 1776eval ac_res=\$$3 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778$as_echo "$ac_res" >&6; } 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 1781} # ac_fn_c_check_decl 1782 1783# ac_fn_c_try_link LINENO 1784# ----------------------- 1785# Try to link conftest.$ac_ext, and return whether this succeeded. 1786ac_fn_c_try_link () 1787{ 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 rm -f conftest.$ac_objext conftest$ac_exeext 1790 if { { ac_try="$ac_link" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_link") 2>conftest.err 1798 ac_status=$? 1799 if test -s conftest.err; then 1800 grep -v '^ *+' conftest.err >conftest.er1 1801 cat conftest.er1 >&5 1802 mv -f conftest.er1 conftest.err 1803 fi 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { 1806 test -z "$ac_c_werror_flag" || 1807 test ! -s conftest.err 1808 } && test -s conftest$ac_exeext && { 1809 test "$cross_compiling" = yes || 1810 test -x conftest$ac_exeext 1811 }; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=1 1818fi 1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1821 # interfere with the next link command; also delete a directory that is 1822 # left behind by Apple's compiler. We do this before executing the actions. 1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1825 as_fn_set_status $ac_retval 1826 1827} # ac_fn_c_try_link 1828cat >config.log <<_ACEOF 1829This file contains any messages produced by compilers while 1830running configure, to aid debugging if configure makes a mistake. 1831 1832It was created by xev $as_me 1.2.3, which was 1833generated by GNU Autoconf 2.69. Invocation command line was 1834 1835 $ $0 $@ 1836 1837_ACEOF 1838exec 5>>config.log 1839{ 1840cat <<_ASUNAME 1841## --------- ## 1842## Platform. ## 1843## --------- ## 1844 1845hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1846uname -m = `(uname -m) 2>/dev/null || echo unknown` 1847uname -r = `(uname -r) 2>/dev/null || echo unknown` 1848uname -s = `(uname -s) 2>/dev/null || echo unknown` 1849uname -v = `(uname -v) 2>/dev/null || echo unknown` 1850 1851/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1852/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1853 1854/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1855/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1856/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1857/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1858/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1859/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1860/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1861 1862_ASUNAME 1863 1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1865for as_dir in $PATH 1866do 1867 IFS=$as_save_IFS 1868 test -z "$as_dir" && as_dir=. 1869 $as_echo "PATH: $as_dir" 1870 done 1871IFS=$as_save_IFS 1872 1873} >&5 1874 1875cat >&5 <<_ACEOF 1876 1877 1878## ----------- ## 1879## Core tests. ## 1880## ----------- ## 1881 1882_ACEOF 1883 1884 1885# Keep a trace of the command line. 1886# Strip out --no-create and --no-recursion so they do not pile up. 1887# Strip out --silent because we don't want to record it for future runs. 1888# Also quote any args containing shell meta-characters. 1889# Make two passes to allow for proper duplicate-argument suppression. 1890ac_configure_args= 1891ac_configure_args0= 1892ac_configure_args1= 1893ac_must_keep_next=false 1894for ac_pass in 1 2 1895do 1896 for ac_arg 1897 do 1898 case $ac_arg in 1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1901 | -silent | --silent | --silen | --sile | --sil) 1902 continue ;; 1903 *\'*) 1904 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1905 esac 1906 case $ac_pass in 1907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1908 2) 1909 as_fn_append ac_configure_args1 " '$ac_arg'" 1910 if test $ac_must_keep_next = true; then 1911 ac_must_keep_next=false # Got value, back to normal. 1912 else 1913 case $ac_arg in 1914 *=* | --config-cache | -C | -disable-* | --disable-* \ 1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1917 | -with-* | --with-* | -without-* | --without-* | --x) 1918 case "$ac_configure_args0 " in 1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1920 esac 1921 ;; 1922 -* ) ac_must_keep_next=true ;; 1923 esac 1924 fi 1925 as_fn_append ac_configure_args " '$ac_arg'" 1926 ;; 1927 esac 1928 done 1929done 1930{ ac_configure_args0=; unset ac_configure_args0;} 1931{ ac_configure_args1=; unset ac_configure_args1;} 1932 1933# When interrupted or exit'd, cleanup temporary files, and complete 1934# config.log. We remove comments because anyway the quotes in there 1935# would cause problems or look ugly. 1936# WARNING: Use '\'' to represent an apostrophe within the trap. 1937# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1938trap 'exit_status=$? 1939 # Save into config.log some information that might help in debugging. 1940 { 1941 echo 1942 1943 $as_echo "## ---------------- ## 1944## Cache variables. ## 1945## ---------------- ##" 1946 echo 1947 # The following way of writing the cache mishandles newlines in values, 1948( 1949 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1950 eval ac_val=\$$ac_var 1951 case $ac_val in #( 1952 *${as_nl}*) 1953 case $ac_var in #( 1954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1955$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1956 esac 1957 case $ac_var in #( 1958 _ | IFS | as_nl) ;; #( 1959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1960 *) { eval $ac_var=; unset $ac_var;} ;; 1961 esac ;; 1962 esac 1963 done 1964 (set) 2>&1 | 1965 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1966 *${as_nl}ac_space=\ *) 1967 sed -n \ 1968 "s/'\''/'\''\\\\'\'''\''/g; 1969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1970 ;; #( 1971 *) 1972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1973 ;; 1974 esac | 1975 sort 1976) 1977 echo 1978 1979 $as_echo "## ----------------- ## 1980## Output variables. ## 1981## ----------------- ##" 1982 echo 1983 for ac_var in $ac_subst_vars 1984 do 1985 eval ac_val=\$$ac_var 1986 case $ac_val in 1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1988 esac 1989 $as_echo "$ac_var='\''$ac_val'\''" 1990 done | sort 1991 echo 1992 1993 if test -n "$ac_subst_files"; then 1994 $as_echo "## ------------------- ## 1995## File substitutions. ## 1996## ------------------- ##" 1997 echo 1998 for ac_var in $ac_subst_files 1999 do 2000 eval ac_val=\$$ac_var 2001 case $ac_val in 2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2003 esac 2004 $as_echo "$ac_var='\''$ac_val'\''" 2005 done | sort 2006 echo 2007 fi 2008 2009 if test -s confdefs.h; then 2010 $as_echo "## ----------- ## 2011## confdefs.h. ## 2012## ----------- ##" 2013 echo 2014 cat confdefs.h 2015 echo 2016 fi 2017 test "$ac_signal" != 0 && 2018 $as_echo "$as_me: caught signal $ac_signal" 2019 $as_echo "$as_me: exit $exit_status" 2020 } >&5 2021 rm -f core *.core core.conftest.* && 2022 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2023 exit $exit_status 2024' 0 2025for ac_signal in 1 2 13 15; do 2026 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2027done 2028ac_signal=0 2029 2030# confdefs.h avoids OS command line length limits that DEFS can exceed. 2031rm -f -r conftest* confdefs.h 2032 2033$as_echo "/* confdefs.h */" > confdefs.h 2034 2035# Predefined preprocessor variables. 2036 2037cat >>confdefs.h <<_ACEOF 2038#define PACKAGE_NAME "$PACKAGE_NAME" 2039_ACEOF 2040 2041cat >>confdefs.h <<_ACEOF 2042#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2043_ACEOF 2044 2045cat >>confdefs.h <<_ACEOF 2046#define PACKAGE_VERSION "$PACKAGE_VERSION" 2047_ACEOF 2048 2049cat >>confdefs.h <<_ACEOF 2050#define PACKAGE_STRING "$PACKAGE_STRING" 2051_ACEOF 2052 2053cat >>confdefs.h <<_ACEOF 2054#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2055_ACEOF 2056 2057cat >>confdefs.h <<_ACEOF 2058#define PACKAGE_URL "$PACKAGE_URL" 2059_ACEOF 2060 2061 2062# Let the site file select an alternate cache file if it wants to. 2063# Prefer an explicitly selected file to automatically selected ones. 2064ac_site_file1=NONE 2065ac_site_file2=NONE 2066if test -n "$CONFIG_SITE"; then 2067 # We do not want a PATH search for config.site. 2068 case $CONFIG_SITE in #(( 2069 -*) ac_site_file1=./$CONFIG_SITE;; 2070 */*) ac_site_file1=$CONFIG_SITE;; 2071 *) ac_site_file1=./$CONFIG_SITE;; 2072 esac 2073elif test "x$prefix" != xNONE; then 2074 ac_site_file1=$prefix/share/config.site 2075 ac_site_file2=$prefix/etc/config.site 2076else 2077 ac_site_file1=$ac_default_prefix/share/config.site 2078 ac_site_file2=$ac_default_prefix/etc/config.site 2079fi 2080for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2081do 2082 test "x$ac_site_file" = xNONE && continue 2083 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2085$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2086 sed 's/^/| /' "$ac_site_file" >&5 2087 . "$ac_site_file" \ 2088 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2090as_fn_error $? "failed to load site script $ac_site_file 2091See \`config.log' for more details" "$LINENO" 5; } 2092 fi 2093done 2094 2095if test -r "$cache_file"; then 2096 # Some versions of bash will fail to source /dev/null (special files 2097 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2098 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2100$as_echo "$as_me: loading cache $cache_file" >&6;} 2101 case $cache_file in 2102 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2103 *) . "./$cache_file";; 2104 esac 2105 fi 2106else 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2108$as_echo "$as_me: creating cache $cache_file" >&6;} 2109 >$cache_file 2110fi 2111 2112# Check that the precious variables saved in the cache have kept the same 2113# value. 2114ac_cache_corrupted=false 2115for ac_var in $ac_precious_vars; do 2116 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2117 eval ac_new_set=\$ac_env_${ac_var}_set 2118 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2119 eval ac_new_val=\$ac_env_${ac_var}_value 2120 case $ac_old_set,$ac_new_set in 2121 set,) 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2123$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2124 ac_cache_corrupted=: ;; 2125 ,set) 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2127$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2128 ac_cache_corrupted=: ;; 2129 ,);; 2130 *) 2131 if test "x$ac_old_val" != "x$ac_new_val"; then 2132 # differences in whitespace do not lead to failure. 2133 ac_old_val_w=`echo x $ac_old_val` 2134 ac_new_val_w=`echo x $ac_new_val` 2135 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2137$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2138 ac_cache_corrupted=: 2139 else 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2141$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2142 eval $ac_var=\$ac_old_val 2143 fi 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2145$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2147$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2148 fi;; 2149 esac 2150 # Pass precious variables to config.status. 2151 if test "$ac_new_set" = set; then 2152 case $ac_new_val in 2153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2154 *) ac_arg=$ac_var=$ac_new_val ;; 2155 esac 2156 case " $ac_configure_args " in 2157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2158 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2159 esac 2160 fi 2161done 2162if $ac_cache_corrupted; then 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2166$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2167 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2168fi 2169## -------------------- ## 2170## Main body of script. ## 2171## -------------------- ## 2172 2173ac_ext=c 2174ac_cpp='$CPP $CPPFLAGS' 2175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2177ac_compiler_gnu=$ac_cv_c_compiler_gnu 2178 2179 2180 2181ac_config_headers="$ac_config_headers config.h" 2182 2183ac_aux_dir= 2184for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2185 if test -f "$ac_dir/install-sh"; then 2186 ac_aux_dir=$ac_dir 2187 ac_install_sh="$ac_aux_dir/install-sh -c" 2188 break 2189 elif test -f "$ac_dir/install.sh"; then 2190 ac_aux_dir=$ac_dir 2191 ac_install_sh="$ac_aux_dir/install.sh -c" 2192 break 2193 elif test -f "$ac_dir/shtool"; then 2194 ac_aux_dir=$ac_dir 2195 ac_install_sh="$ac_aux_dir/shtool install -c" 2196 break 2197 fi 2198done 2199if test -z "$ac_aux_dir"; then 2200 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2201fi 2202 2203# These three variables are undocumented and unsupported, 2204# and are intended to be withdrawn in a future Autoconf release. 2205# They can cause serious problems if a builder's source tree is in a directory 2206# whose full name contains unusual characters. 2207ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2208ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2209ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2210 2211 2212# Expand $ac_aux_dir to an absolute path. 2213am_aux_dir=`cd "$ac_aux_dir" && pwd` 2214 2215ac_ext=c 2216ac_cpp='$CPP $CPPFLAGS' 2217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2219ac_compiler_gnu=$ac_cv_c_compiler_gnu 2220if test -n "$ac_tool_prefix"; then 2221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2222set dummy ${ac_tool_prefix}gcc; ac_word=$2 2223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2224$as_echo_n "checking for $ac_word... " >&6; } 2225if ${ac_cv_prog_CC+:} false; then : 2226 $as_echo_n "(cached) " >&6 2227else 2228 if test -n "$CC"; then 2229 ac_cv_prog_CC="$CC" # Let the user override the test. 2230else 2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2232for as_dir in $PATH 2233do 2234 IFS=$as_save_IFS 2235 test -z "$as_dir" && as_dir=. 2236 for ac_exec_ext in '' $ac_executable_extensions; do 2237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2238 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2240 break 2 2241 fi 2242done 2243 done 2244IFS=$as_save_IFS 2245 2246fi 2247fi 2248CC=$ac_cv_prog_CC 2249if test -n "$CC"; then 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2251$as_echo "$CC" >&6; } 2252else 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2254$as_echo "no" >&6; } 2255fi 2256 2257 2258fi 2259if test -z "$ac_cv_prog_CC"; then 2260 ac_ct_CC=$CC 2261 # Extract the first word of "gcc", so it can be a program name with args. 2262set dummy gcc; ac_word=$2 2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2264$as_echo_n "checking for $ac_word... " >&6; } 2265if ${ac_cv_prog_ac_ct_CC+:} false; then : 2266 $as_echo_n "(cached) " >&6 2267else 2268 if test -n "$ac_ct_CC"; then 2269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2270else 2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2272for as_dir in $PATH 2273do 2274 IFS=$as_save_IFS 2275 test -z "$as_dir" && as_dir=. 2276 for ac_exec_ext in '' $ac_executable_extensions; do 2277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2278 ac_cv_prog_ac_ct_CC="gcc" 2279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2280 break 2 2281 fi 2282done 2283 done 2284IFS=$as_save_IFS 2285 2286fi 2287fi 2288ac_ct_CC=$ac_cv_prog_ac_ct_CC 2289if test -n "$ac_ct_CC"; then 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2291$as_echo "$ac_ct_CC" >&6; } 2292else 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2294$as_echo "no" >&6; } 2295fi 2296 2297 if test "x$ac_ct_CC" = x; then 2298 CC="" 2299 else 2300 case $cross_compiling:$ac_tool_warned in 2301yes:) 2302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2304ac_tool_warned=yes ;; 2305esac 2306 CC=$ac_ct_CC 2307 fi 2308else 2309 CC="$ac_cv_prog_CC" 2310fi 2311 2312if test -z "$CC"; then 2313 if test -n "$ac_tool_prefix"; then 2314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2315set dummy ${ac_tool_prefix}cc; ac_word=$2 2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2317$as_echo_n "checking for $ac_word... " >&6; } 2318if ${ac_cv_prog_CC+:} false; then : 2319 $as_echo_n "(cached) " >&6 2320else 2321 if test -n "$CC"; then 2322 ac_cv_prog_CC="$CC" # Let the user override the test. 2323else 2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2325for as_dir in $PATH 2326do 2327 IFS=$as_save_IFS 2328 test -z "$as_dir" && as_dir=. 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2331 ac_cv_prog_CC="${ac_tool_prefix}cc" 2332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2333 break 2 2334 fi 2335done 2336 done 2337IFS=$as_save_IFS 2338 2339fi 2340fi 2341CC=$ac_cv_prog_CC 2342if test -n "$CC"; then 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2344$as_echo "$CC" >&6; } 2345else 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2347$as_echo "no" >&6; } 2348fi 2349 2350 2351 fi 2352fi 2353if test -z "$CC"; then 2354 # Extract the first word of "cc", so it can be a program name with args. 2355set dummy cc; ac_word=$2 2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2357$as_echo_n "checking for $ac_word... " >&6; } 2358if ${ac_cv_prog_CC+:} false; then : 2359 $as_echo_n "(cached) " >&6 2360else 2361 if test -n "$CC"; then 2362 ac_cv_prog_CC="$CC" # Let the user override the test. 2363else 2364 ac_prog_rejected=no 2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2366for as_dir in $PATH 2367do 2368 IFS=$as_save_IFS 2369 test -z "$as_dir" && as_dir=. 2370 for ac_exec_ext in '' $ac_executable_extensions; do 2371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2372 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2373 ac_prog_rejected=yes 2374 continue 2375 fi 2376 ac_cv_prog_CC="cc" 2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2378 break 2 2379 fi 2380done 2381 done 2382IFS=$as_save_IFS 2383 2384if test $ac_prog_rejected = yes; then 2385 # We found a bogon in the path, so make sure we never use it. 2386 set dummy $ac_cv_prog_CC 2387 shift 2388 if test $# != 0; then 2389 # We chose a different compiler from the bogus one. 2390 # However, it has the same basename, so the bogon will be chosen 2391 # first if we set CC to just the basename; use the full file name. 2392 shift 2393 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2394 fi 2395fi 2396fi 2397fi 2398CC=$ac_cv_prog_CC 2399if test -n "$CC"; then 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2401$as_echo "$CC" >&6; } 2402else 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2404$as_echo "no" >&6; } 2405fi 2406 2407 2408fi 2409if test -z "$CC"; then 2410 if test -n "$ac_tool_prefix"; then 2411 for ac_prog in cl.exe 2412 do 2413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2414set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2416$as_echo_n "checking for $ac_word... " >&6; } 2417if ${ac_cv_prog_CC+:} false; then : 2418 $as_echo_n "(cached) " >&6 2419else 2420 if test -n "$CC"; then 2421 ac_cv_prog_CC="$CC" # Let the user override the test. 2422else 2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2424for as_dir in $PATH 2425do 2426 IFS=$as_save_IFS 2427 test -z "$as_dir" && as_dir=. 2428 for ac_exec_ext in '' $ac_executable_extensions; do 2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2430 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2432 break 2 2433 fi 2434done 2435 done 2436IFS=$as_save_IFS 2437 2438fi 2439fi 2440CC=$ac_cv_prog_CC 2441if test -n "$CC"; then 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2443$as_echo "$CC" >&6; } 2444else 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2446$as_echo "no" >&6; } 2447fi 2448 2449 2450 test -n "$CC" && break 2451 done 2452fi 2453if test -z "$CC"; then 2454 ac_ct_CC=$CC 2455 for ac_prog in cl.exe 2456do 2457 # Extract the first word of "$ac_prog", so it can be a program name with args. 2458set dummy $ac_prog; ac_word=$2 2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2460$as_echo_n "checking for $ac_word... " >&6; } 2461if ${ac_cv_prog_ac_ct_CC+:} false; then : 2462 $as_echo_n "(cached) " >&6 2463else 2464 if test -n "$ac_ct_CC"; then 2465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2466else 2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468for as_dir in $PATH 2469do 2470 IFS=$as_save_IFS 2471 test -z "$as_dir" && as_dir=. 2472 for ac_exec_ext in '' $ac_executable_extensions; do 2473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2474 ac_cv_prog_ac_ct_CC="$ac_prog" 2475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2476 break 2 2477 fi 2478done 2479 done 2480IFS=$as_save_IFS 2481 2482fi 2483fi 2484ac_ct_CC=$ac_cv_prog_ac_ct_CC 2485if test -n "$ac_ct_CC"; then 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2487$as_echo "$ac_ct_CC" >&6; } 2488else 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2490$as_echo "no" >&6; } 2491fi 2492 2493 2494 test -n "$ac_ct_CC" && break 2495done 2496 2497 if test "x$ac_ct_CC" = x; then 2498 CC="" 2499 else 2500 case $cross_compiling:$ac_tool_warned in 2501yes:) 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2504ac_tool_warned=yes ;; 2505esac 2506 CC=$ac_ct_CC 2507 fi 2508fi 2509 2510fi 2511 2512 2513test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2515as_fn_error $? "no acceptable C compiler found in \$PATH 2516See \`config.log' for more details" "$LINENO" 5; } 2517 2518# Provide some information about the compiler. 2519$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2520set X $ac_compile 2521ac_compiler=$2 2522for ac_option in --version -v -V -qversion; do 2523 { { ac_try="$ac_compiler $ac_option >&5" 2524case "(($ac_try" in 2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2526 *) ac_try_echo=$ac_try;; 2527esac 2528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2529$as_echo "$ac_try_echo"; } >&5 2530 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2531 ac_status=$? 2532 if test -s conftest.err; then 2533 sed '10a\ 2534... rest of stderr output deleted ... 2535 10q' conftest.err >conftest.er1 2536 cat conftest.er1 >&5 2537 fi 2538 rm -f conftest.er1 conftest.err 2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2540 test $ac_status = 0; } 2541done 2542 2543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2544/* end confdefs.h. */ 2545 2546int 2547main () 2548{ 2549 2550 ; 2551 return 0; 2552} 2553_ACEOF 2554ac_clean_files_save=$ac_clean_files 2555ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2556# Try to create an executable without -o first, disregard a.out. 2557# It will help us diagnose broken compilers, and finding out an intuition 2558# of exeext. 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2560$as_echo_n "checking whether the C compiler works... " >&6; } 2561ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2562 2563# The possible output files: 2564ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2565 2566ac_rmfiles= 2567for ac_file in $ac_files 2568do 2569 case $ac_file in 2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2571 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2572 esac 2573done 2574rm -f $ac_rmfiles 2575 2576if { { ac_try="$ac_link_default" 2577case "(($ac_try" in 2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2579 *) ac_try_echo=$ac_try;; 2580esac 2581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2582$as_echo "$ac_try_echo"; } >&5 2583 (eval "$ac_link_default") 2>&5 2584 ac_status=$? 2585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2586 test $ac_status = 0; }; then : 2587 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2588# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2589# in a Makefile. We should not override ac_cv_exeext if it was cached, 2590# so that the user can short-circuit this test for compilers unknown to 2591# Autoconf. 2592for ac_file in $ac_files '' 2593do 2594 test -f "$ac_file" || continue 2595 case $ac_file in 2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2597 ;; 2598 [ab].out ) 2599 # We found the default executable, but exeext='' is most 2600 # certainly right. 2601 break;; 2602 *.* ) 2603 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2604 then :; else 2605 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2606 fi 2607 # We set ac_cv_exeext here because the later test for it is not 2608 # safe: cross compilers may not add the suffix if given an `-o' 2609 # argument, so we may need to know it at that point already. 2610 # Even if this section looks crufty: it has the advantage of 2611 # actually working. 2612 break;; 2613 * ) 2614 break;; 2615 esac 2616done 2617test "$ac_cv_exeext" = no && ac_cv_exeext= 2618 2619else 2620 ac_file='' 2621fi 2622if test -z "$ac_file"; then : 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2624$as_echo "no" >&6; } 2625$as_echo "$as_me: failed program was:" >&5 2626sed 's/^/| /' conftest.$ac_ext >&5 2627 2628{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2630as_fn_error 77 "C compiler cannot create executables 2631See \`config.log' for more details" "$LINENO" 5; } 2632else 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2634$as_echo "yes" >&6; } 2635fi 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2637$as_echo_n "checking for C compiler default output file name... " >&6; } 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2639$as_echo "$ac_file" >&6; } 2640ac_exeext=$ac_cv_exeext 2641 2642rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2643ac_clean_files=$ac_clean_files_save 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2645$as_echo_n "checking for suffix of executables... " >&6; } 2646if { { ac_try="$ac_link" 2647case "(($ac_try" in 2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2649 *) ac_try_echo=$ac_try;; 2650esac 2651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2652$as_echo "$ac_try_echo"; } >&5 2653 (eval "$ac_link") 2>&5 2654 ac_status=$? 2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2656 test $ac_status = 0; }; then : 2657 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2658# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2659# work properly (i.e., refer to `conftest.exe'), while it won't with 2660# `rm'. 2661for ac_file in conftest.exe conftest conftest.*; do 2662 test -f "$ac_file" || continue 2663 case $ac_file in 2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2665 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2666 break;; 2667 * ) break;; 2668 esac 2669done 2670else 2671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2673as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2674See \`config.log' for more details" "$LINENO" 5; } 2675fi 2676rm -f conftest conftest$ac_cv_exeext 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2678$as_echo "$ac_cv_exeext" >&6; } 2679 2680rm -f conftest.$ac_ext 2681EXEEXT=$ac_cv_exeext 2682ac_exeext=$EXEEXT 2683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2684/* end confdefs.h. */ 2685#include <stdio.h> 2686int 2687main () 2688{ 2689FILE *f = fopen ("conftest.out", "w"); 2690 return ferror (f) || fclose (f) != 0; 2691 2692 ; 2693 return 0; 2694} 2695_ACEOF 2696ac_clean_files="$ac_clean_files conftest.out" 2697# Check that the compiler produces executables we can run. If not, either 2698# the compiler is broken, or we cross compile. 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2700$as_echo_n "checking whether we are cross compiling... " >&6; } 2701if test "$cross_compiling" != yes; then 2702 { { ac_try="$ac_link" 2703case "(($ac_try" in 2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2705 *) ac_try_echo=$ac_try;; 2706esac 2707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2708$as_echo "$ac_try_echo"; } >&5 2709 (eval "$ac_link") 2>&5 2710 ac_status=$? 2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2712 test $ac_status = 0; } 2713 if { ac_try='./conftest$ac_cv_exeext' 2714 { { case "(($ac_try" in 2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2716 *) ac_try_echo=$ac_try;; 2717esac 2718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2719$as_echo "$ac_try_echo"; } >&5 2720 (eval "$ac_try") 2>&5 2721 ac_status=$? 2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2723 test $ac_status = 0; }; }; then 2724 cross_compiling=no 2725 else 2726 if test "$cross_compiling" = maybe; then 2727 cross_compiling=yes 2728 else 2729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2731as_fn_error $? "cannot run C compiled programs. 2732If you meant to cross compile, use \`--host'. 2733See \`config.log' for more details" "$LINENO" 5; } 2734 fi 2735 fi 2736fi 2737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2738$as_echo "$cross_compiling" >&6; } 2739 2740rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2741ac_clean_files=$ac_clean_files_save 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2743$as_echo_n "checking for suffix of object files... " >&6; } 2744if ${ac_cv_objext+:} false; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2748/* end confdefs.h. */ 2749 2750int 2751main () 2752{ 2753 2754 ; 2755 return 0; 2756} 2757_ACEOF 2758rm -f conftest.o conftest.obj 2759if { { ac_try="$ac_compile" 2760case "(($ac_try" in 2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2762 *) ac_try_echo=$ac_try;; 2763esac 2764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2765$as_echo "$ac_try_echo"; } >&5 2766 (eval "$ac_compile") 2>&5 2767 ac_status=$? 2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2769 test $ac_status = 0; }; then : 2770 for ac_file in conftest.o conftest.obj conftest.*; do 2771 test -f "$ac_file" || continue; 2772 case $ac_file in 2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2774 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2775 break;; 2776 esac 2777done 2778else 2779 $as_echo "$as_me: failed program was:" >&5 2780sed 's/^/| /' conftest.$ac_ext >&5 2781 2782{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2784as_fn_error $? "cannot compute suffix of object files: cannot compile 2785See \`config.log' for more details" "$LINENO" 5; } 2786fi 2787rm -f conftest.$ac_cv_objext conftest.$ac_ext 2788fi 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2790$as_echo "$ac_cv_objext" >&6; } 2791OBJEXT=$ac_cv_objext 2792ac_objext=$OBJEXT 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2794$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2795if ${ac_cv_c_compiler_gnu+:} false; then : 2796 $as_echo_n "(cached) " >&6 2797else 2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2799/* end confdefs.h. */ 2800 2801int 2802main () 2803{ 2804#ifndef __GNUC__ 2805 choke me 2806#endif 2807 2808 ; 2809 return 0; 2810} 2811_ACEOF 2812if ac_fn_c_try_compile "$LINENO"; then : 2813 ac_compiler_gnu=yes 2814else 2815 ac_compiler_gnu=no 2816fi 2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2818ac_cv_c_compiler_gnu=$ac_compiler_gnu 2819 2820fi 2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2822$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2823if test $ac_compiler_gnu = yes; then 2824 GCC=yes 2825else 2826 GCC= 2827fi 2828ac_test_CFLAGS=${CFLAGS+set} 2829ac_save_CFLAGS=$CFLAGS 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2831$as_echo_n "checking whether $CC accepts -g... " >&6; } 2832if ${ac_cv_prog_cc_g+:} false; then : 2833 $as_echo_n "(cached) " >&6 2834else 2835 ac_save_c_werror_flag=$ac_c_werror_flag 2836 ac_c_werror_flag=yes 2837 ac_cv_prog_cc_g=no 2838 CFLAGS="-g" 2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2840/* end confdefs.h. */ 2841 2842int 2843main () 2844{ 2845 2846 ; 2847 return 0; 2848} 2849_ACEOF 2850if ac_fn_c_try_compile "$LINENO"; then : 2851 ac_cv_prog_cc_g=yes 2852else 2853 CFLAGS="" 2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2855/* end confdefs.h. */ 2856 2857int 2858main () 2859{ 2860 2861 ; 2862 return 0; 2863} 2864_ACEOF 2865if ac_fn_c_try_compile "$LINENO"; then : 2866 2867else 2868 ac_c_werror_flag=$ac_save_c_werror_flag 2869 CFLAGS="-g" 2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2871/* end confdefs.h. */ 2872 2873int 2874main () 2875{ 2876 2877 ; 2878 return 0; 2879} 2880_ACEOF 2881if ac_fn_c_try_compile "$LINENO"; then : 2882 ac_cv_prog_cc_g=yes 2883fi 2884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2885fi 2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2887fi 2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2889 ac_c_werror_flag=$ac_save_c_werror_flag 2890fi 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2892$as_echo "$ac_cv_prog_cc_g" >&6; } 2893if test "$ac_test_CFLAGS" = set; then 2894 CFLAGS=$ac_save_CFLAGS 2895elif test $ac_cv_prog_cc_g = yes; then 2896 if test "$GCC" = yes; then 2897 CFLAGS="-g -O2" 2898 else 2899 CFLAGS="-g" 2900 fi 2901else 2902 if test "$GCC" = yes; then 2903 CFLAGS="-O2" 2904 else 2905 CFLAGS= 2906 fi 2907fi 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2909$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2910if ${ac_cv_prog_cc_c89+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912else 2913 ac_cv_prog_cc_c89=no 2914ac_save_CC=$CC 2915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2916/* end confdefs.h. */ 2917#include <stdarg.h> 2918#include <stdio.h> 2919struct stat; 2920/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2921struct buf { int x; }; 2922FILE * (*rcsopen) (struct buf *, struct stat *, int); 2923static char *e (p, i) 2924 char **p; 2925 int i; 2926{ 2927 return p[i]; 2928} 2929static char *f (char * (*g) (char **, int), char **p, ...) 2930{ 2931 char *s; 2932 va_list v; 2933 va_start (v,p); 2934 s = g (p, va_arg (v,int)); 2935 va_end (v); 2936 return s; 2937} 2938 2939/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2940 function prototypes and stuff, but not '\xHH' hex character constants. 2941 These don't provoke an error unfortunately, instead are silently treated 2942 as 'x'. The following induces an error, until -std is added to get 2943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2944 array size at least. It's necessary to write '\x00'==0 to get something 2945 that's true only with -std. */ 2946int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2947 2948/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2949 inside strings and character constants. */ 2950#define FOO(x) 'x' 2951int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2952 2953int test (int i, double x); 2954struct s1 {int (*f) (int a);}; 2955struct s2 {int (*f) (double a);}; 2956int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2957int argc; 2958char **argv; 2959int 2960main () 2961{ 2962return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2963 ; 2964 return 0; 2965} 2966_ACEOF 2967for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2969do 2970 CC="$ac_save_CC $ac_arg" 2971 if ac_fn_c_try_compile "$LINENO"; then : 2972 ac_cv_prog_cc_c89=$ac_arg 2973fi 2974rm -f core conftest.err conftest.$ac_objext 2975 test "x$ac_cv_prog_cc_c89" != "xno" && break 2976done 2977rm -f conftest.$ac_ext 2978CC=$ac_save_CC 2979 2980fi 2981# AC_CACHE_VAL 2982case "x$ac_cv_prog_cc_c89" in 2983 x) 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2985$as_echo "none needed" >&6; } ;; 2986 xno) 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2988$as_echo "unsupported" >&6; } ;; 2989 *) 2990 CC="$CC $ac_cv_prog_cc_c89" 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2992$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2993esac 2994if test "x$ac_cv_prog_cc_c89" != xno; then : 2995 2996fi 2997 2998ac_ext=c 2999ac_cpp='$CPP $CPPFLAGS' 3000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3002ac_compiler_gnu=$ac_cv_c_compiler_gnu 3003 3004ac_ext=c 3005ac_cpp='$CPP $CPPFLAGS' 3006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3008ac_compiler_gnu=$ac_cv_c_compiler_gnu 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3010$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3011if ${am_cv_prog_cc_c_o+:} false; then : 3012 $as_echo_n "(cached) " >&6 3013else 3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3015/* end confdefs.h. */ 3016 3017int 3018main () 3019{ 3020 3021 ; 3022 return 0; 3023} 3024_ACEOF 3025 # Make sure it works both with $CC and with simple cc. 3026 # Following AC_PROG_CC_C_O, we do the test twice because some 3027 # compilers refuse to overwrite an existing .o file with -o, 3028 # though they will create one. 3029 am_cv_prog_cc_c_o=yes 3030 for am_i in 1 2; do 3031 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3032 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); } \ 3036 && test -f conftest2.$ac_objext; then 3037 : OK 3038 else 3039 am_cv_prog_cc_c_o=no 3040 break 3041 fi 3042 done 3043 rm -f core conftest* 3044 unset am_i 3045fi 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3047$as_echo "$am_cv_prog_cc_c_o" >&6; } 3048if test "$am_cv_prog_cc_c_o" != yes; then 3049 # Losing compiler, so override with the script. 3050 # FIXME: It is wrong to rewrite CC. 3051 # But if we don't then we get into trouble of one sort or another. 3052 # A longer-term fix would be to have automake use am__CC in this case, 3053 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3054 CC="$am_aux_dir/compile $CC" 3055fi 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 3062 3063 3064ac_ext=c 3065ac_cpp='$CPP $CPPFLAGS' 3066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3068ac_compiler_gnu=$ac_cv_c_compiler_gnu 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3070$as_echo_n "checking how to run the C preprocessor... " >&6; } 3071# On Suns, sometimes $CPP names a directory. 3072if test -n "$CPP" && test -d "$CPP"; then 3073 CPP= 3074fi 3075if test -z "$CPP"; then 3076 if ${ac_cv_prog_CPP+:} false; then : 3077 $as_echo_n "(cached) " >&6 3078else 3079 # Double quotes because CPP needs to be expanded 3080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3081 do 3082 ac_preproc_ok=false 3083for ac_c_preproc_warn_flag in '' yes 3084do 3085 # Use a header file that comes with gcc, so configuring glibc 3086 # with a fresh cross-compiler works. 3087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3088 # <limits.h> exists even on freestanding compilers. 3089 # On the NeXT, cc -E runs the code through the compiler's parser, 3090 # not just through cpp. "Syntax error" is here to catch this case. 3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3092/* end confdefs.h. */ 3093#ifdef __STDC__ 3094# include <limits.h> 3095#else 3096# include <assert.h> 3097#endif 3098 Syntax error 3099_ACEOF 3100if ac_fn_c_try_cpp "$LINENO"; then : 3101 3102else 3103 # Broken: fails on valid input. 3104continue 3105fi 3106rm -f conftest.err conftest.i conftest.$ac_ext 3107 3108 # OK, works on sane cases. Now check whether nonexistent headers 3109 # can be detected and how. 3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3111/* end confdefs.h. */ 3112#include <ac_nonexistent.h> 3113_ACEOF 3114if ac_fn_c_try_cpp "$LINENO"; then : 3115 # Broken: success on invalid input. 3116continue 3117else 3118 # Passes both tests. 3119ac_preproc_ok=: 3120break 3121fi 3122rm -f conftest.err conftest.i conftest.$ac_ext 3123 3124done 3125# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3126rm -f conftest.i conftest.err conftest.$ac_ext 3127if $ac_preproc_ok; then : 3128 break 3129fi 3130 3131 done 3132 ac_cv_prog_CPP=$CPP 3133 3134fi 3135 CPP=$ac_cv_prog_CPP 3136else 3137 ac_cv_prog_CPP=$CPP 3138fi 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3140$as_echo "$CPP" >&6; } 3141ac_preproc_ok=false 3142for ac_c_preproc_warn_flag in '' yes 3143do 3144 # Use a header file that comes with gcc, so configuring glibc 3145 # with a fresh cross-compiler works. 3146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3147 # <limits.h> exists even on freestanding compilers. 3148 # On the NeXT, cc -E runs the code through the compiler's parser, 3149 # not just through cpp. "Syntax error" is here to catch this case. 3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3151/* end confdefs.h. */ 3152#ifdef __STDC__ 3153# include <limits.h> 3154#else 3155# include <assert.h> 3156#endif 3157 Syntax error 3158_ACEOF 3159if ac_fn_c_try_cpp "$LINENO"; then : 3160 3161else 3162 # Broken: fails on valid input. 3163continue 3164fi 3165rm -f conftest.err conftest.i conftest.$ac_ext 3166 3167 # OK, works on sane cases. Now check whether nonexistent headers 3168 # can be detected and how. 3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3170/* end confdefs.h. */ 3171#include <ac_nonexistent.h> 3172_ACEOF 3173if ac_fn_c_try_cpp "$LINENO"; then : 3174 # Broken: success on invalid input. 3175continue 3176else 3177 # Passes both tests. 3178ac_preproc_ok=: 3179break 3180fi 3181rm -f conftest.err conftest.i conftest.$ac_ext 3182 3183done 3184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3185rm -f conftest.i conftest.err conftest.$ac_ext 3186if $ac_preproc_ok; then : 3187 3188else 3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3191as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3192See \`config.log' for more details" "$LINENO" 5; } 3193fi 3194 3195ac_ext=c 3196ac_cpp='$CPP $CPPFLAGS' 3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3199ac_compiler_gnu=$ac_cv_c_compiler_gnu 3200 3201 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3203$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3204if ${ac_cv_path_GREP+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 if test -z "$GREP"; then 3208 ac_path_GREP_found=false 3209 # Loop through the user's path and test for each of PROGNAME-LIST 3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3212do 3213 IFS=$as_save_IFS 3214 test -z "$as_dir" && as_dir=. 3215 for ac_prog in grep ggrep; do 3216 for ac_exec_ext in '' $ac_executable_extensions; do 3217 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3218 as_fn_executable_p "$ac_path_GREP" || continue 3219# Check for GNU ac_path_GREP and select it if it is found. 3220 # Check for GNU $ac_path_GREP 3221case `"$ac_path_GREP" --version 2>&1` in 3222*GNU*) 3223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3224*) 3225 ac_count=0 3226 $as_echo_n 0123456789 >"conftest.in" 3227 while : 3228 do 3229 cat "conftest.in" "conftest.in" >"conftest.tmp" 3230 mv "conftest.tmp" "conftest.in" 3231 cp "conftest.in" "conftest.nl" 3232 $as_echo 'GREP' >> "conftest.nl" 3233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3235 as_fn_arith $ac_count + 1 && ac_count=$as_val 3236 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3237 # Best one so far, save it but keep looking for a better one 3238 ac_cv_path_GREP="$ac_path_GREP" 3239 ac_path_GREP_max=$ac_count 3240 fi 3241 # 10*(2^10) chars as input seems more than enough 3242 test $ac_count -gt 10 && break 3243 done 3244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3245esac 3246 3247 $ac_path_GREP_found && break 3 3248 done 3249 done 3250 done 3251IFS=$as_save_IFS 3252 if test -z "$ac_cv_path_GREP"; then 3253 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3254 fi 3255else 3256 ac_cv_path_GREP=$GREP 3257fi 3258 3259fi 3260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3261$as_echo "$ac_cv_path_GREP" >&6; } 3262 GREP="$ac_cv_path_GREP" 3263 3264 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3266$as_echo_n "checking for egrep... " >&6; } 3267if ${ac_cv_path_EGREP+:} false; then : 3268 $as_echo_n "(cached) " >&6 3269else 3270 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3271 then ac_cv_path_EGREP="$GREP -E" 3272 else 3273 if test -z "$EGREP"; then 3274 ac_path_EGREP_found=false 3275 # Loop through the user's path and test for each of PROGNAME-LIST 3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3277for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3278do 3279 IFS=$as_save_IFS 3280 test -z "$as_dir" && as_dir=. 3281 for ac_prog in egrep; do 3282 for ac_exec_ext in '' $ac_executable_extensions; do 3283 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3284 as_fn_executable_p "$ac_path_EGREP" || continue 3285# Check for GNU ac_path_EGREP and select it if it is found. 3286 # Check for GNU $ac_path_EGREP 3287case `"$ac_path_EGREP" --version 2>&1` in 3288*GNU*) 3289 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3290*) 3291 ac_count=0 3292 $as_echo_n 0123456789 >"conftest.in" 3293 while : 3294 do 3295 cat "conftest.in" "conftest.in" >"conftest.tmp" 3296 mv "conftest.tmp" "conftest.in" 3297 cp "conftest.in" "conftest.nl" 3298 $as_echo 'EGREP' >> "conftest.nl" 3299 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3301 as_fn_arith $ac_count + 1 && ac_count=$as_val 3302 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3303 # Best one so far, save it but keep looking for a better one 3304 ac_cv_path_EGREP="$ac_path_EGREP" 3305 ac_path_EGREP_max=$ac_count 3306 fi 3307 # 10*(2^10) chars as input seems more than enough 3308 test $ac_count -gt 10 && break 3309 done 3310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3311esac 3312 3313 $ac_path_EGREP_found && break 3 3314 done 3315 done 3316 done 3317IFS=$as_save_IFS 3318 if test -z "$ac_cv_path_EGREP"; then 3319 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3320 fi 3321else 3322 ac_cv_path_EGREP=$EGREP 3323fi 3324 3325 fi 3326fi 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3328$as_echo "$ac_cv_path_EGREP" >&6; } 3329 EGREP="$ac_cv_path_EGREP" 3330 3331 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3333$as_echo_n "checking for ANSI C header files... " >&6; } 3334if ${ac_cv_header_stdc+:} false; then : 3335 $as_echo_n "(cached) " >&6 3336else 3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3338/* end confdefs.h. */ 3339#include <stdlib.h> 3340#include <stdarg.h> 3341#include <string.h> 3342#include <float.h> 3343 3344int 3345main () 3346{ 3347 3348 ; 3349 return 0; 3350} 3351_ACEOF 3352if ac_fn_c_try_compile "$LINENO"; then : 3353 ac_cv_header_stdc=yes 3354else 3355 ac_cv_header_stdc=no 3356fi 3357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3358 3359if test $ac_cv_header_stdc = yes; then 3360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363#include <string.h> 3364 3365_ACEOF 3366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3367 $EGREP "memchr" >/dev/null 2>&1; then : 3368 3369else 3370 ac_cv_header_stdc=no 3371fi 3372rm -f conftest* 3373 3374fi 3375 3376if test $ac_cv_header_stdc = yes; then 3377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3379/* end confdefs.h. */ 3380#include <stdlib.h> 3381 3382_ACEOF 3383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3384 $EGREP "free" >/dev/null 2>&1; then : 3385 3386else 3387 ac_cv_header_stdc=no 3388fi 3389rm -f conftest* 3390 3391fi 3392 3393if test $ac_cv_header_stdc = yes; then 3394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3395 if test "$cross_compiling" = yes; then : 3396 : 3397else 3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3399/* end confdefs.h. */ 3400#include <ctype.h> 3401#include <stdlib.h> 3402#if ((' ' & 0x0FF) == 0x020) 3403# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3404# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3405#else 3406# define ISLOWER(c) \ 3407 (('a' <= (c) && (c) <= 'i') \ 3408 || ('j' <= (c) && (c) <= 'r') \ 3409 || ('s' <= (c) && (c) <= 'z')) 3410# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3411#endif 3412 3413#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3414int 3415main () 3416{ 3417 int i; 3418 for (i = 0; i < 256; i++) 3419 if (XOR (islower (i), ISLOWER (i)) 3420 || toupper (i) != TOUPPER (i)) 3421 return 2; 3422 return 0; 3423} 3424_ACEOF 3425if ac_fn_c_try_run "$LINENO"; then : 3426 3427else 3428 ac_cv_header_stdc=no 3429fi 3430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3431 conftest.$ac_objext conftest.beam conftest.$ac_ext 3432fi 3433 3434fi 3435fi 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3437$as_echo "$ac_cv_header_stdc" >&6; } 3438if test $ac_cv_header_stdc = yes; then 3439 3440$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3441 3442fi 3443 3444# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3445for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3446 inttypes.h stdint.h unistd.h 3447do : 3448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3449ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3450" 3451if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3452 cat >>confdefs.h <<_ACEOF 3453#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3454_ACEOF 3455 3456fi 3457 3458done 3459 3460 3461 3462 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3463if test "x$ac_cv_header_minix_config_h" = xyes; then : 3464 MINIX=yes 3465else 3466 MINIX= 3467fi 3468 3469 3470 if test "$MINIX" = yes; then 3471 3472$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3473 3474 3475$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3476 3477 3478$as_echo "#define _MINIX 1" >>confdefs.h 3479 3480 fi 3481 3482 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3484$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3485if ${ac_cv_safe_to_define___extensions__+:} false; then : 3486 $as_echo_n "(cached) " >&6 3487else 3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3489/* end confdefs.h. */ 3490 3491# define __EXTENSIONS__ 1 3492 $ac_includes_default 3493int 3494main () 3495{ 3496 3497 ; 3498 return 0; 3499} 3500_ACEOF 3501if ac_fn_c_try_compile "$LINENO"; then : 3502 ac_cv_safe_to_define___extensions__=yes 3503else 3504 ac_cv_safe_to_define___extensions__=no 3505fi 3506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3507fi 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3509$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3510 test $ac_cv_safe_to_define___extensions__ = yes && 3511 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3512 3513 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3514 3515 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3516 3517 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3518 3519 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3520 3521 3522 3523# Initialize Automake 3524am__api_version='1.15' 3525 3526# Find a good install program. We prefer a C program (faster), 3527# so one script is as good as another. But avoid the broken or 3528# incompatible versions: 3529# SysV /etc/install, /usr/sbin/install 3530# SunOS /usr/etc/install 3531# IRIX /sbin/install 3532# AIX /bin/install 3533# AmigaOS /C/install, which installs bootblocks on floppy discs 3534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3535# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3537# OS/2's system install, which has a completely different semantic 3538# ./install, which can be erroneously created by make from ./install.sh. 3539# Reject install programs that cannot install multiple files. 3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3541$as_echo_n "checking for a BSD-compatible install... " >&6; } 3542if test -z "$INSTALL"; then 3543if ${ac_cv_path_install+:} false; then : 3544 $as_echo_n "(cached) " >&6 3545else 3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3547for as_dir in $PATH 3548do 3549 IFS=$as_save_IFS 3550 test -z "$as_dir" && as_dir=. 3551 # Account for people who put trailing slashes in PATH elements. 3552case $as_dir/ in #(( 3553 ./ | .// | /[cC]/* | \ 3554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3556 /usr/ucb/* ) ;; 3557 *) 3558 # OSF1 and SCO ODT 3.0 have their own names for install. 3559 # Don't use installbsd from OSF since it installs stuff as root 3560 # by default. 3561 for ac_prog in ginstall scoinst install; do 3562 for ac_exec_ext in '' $ac_executable_extensions; do 3563 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3564 if test $ac_prog = install && 3565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3566 # AIX install. It has an incompatible calling convention. 3567 : 3568 elif test $ac_prog = install && 3569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3570 # program-specific install script used by HP pwplus--don't use. 3571 : 3572 else 3573 rm -rf conftest.one conftest.two conftest.dir 3574 echo one > conftest.one 3575 echo two > conftest.two 3576 mkdir conftest.dir 3577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3578 test -s conftest.one && test -s conftest.two && 3579 test -s conftest.dir/conftest.one && 3580 test -s conftest.dir/conftest.two 3581 then 3582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3583 break 3 3584 fi 3585 fi 3586 fi 3587 done 3588 done 3589 ;; 3590esac 3591 3592 done 3593IFS=$as_save_IFS 3594 3595rm -rf conftest.one conftest.two conftest.dir 3596 3597fi 3598 if test "${ac_cv_path_install+set}" = set; then 3599 INSTALL=$ac_cv_path_install 3600 else 3601 # As a last resort, use the slow shell script. Don't cache a 3602 # value for INSTALL within a source directory, because that will 3603 # break other packages using the cache if that directory is 3604 # removed, or if the value is a relative name. 3605 INSTALL=$ac_install_sh 3606 fi 3607fi 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3609$as_echo "$INSTALL" >&6; } 3610 3611# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3612# It thinks the first close brace ends the variable substitution. 3613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3614 3615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3616 3617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3618 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3620$as_echo_n "checking whether build environment is sane... " >&6; } 3621# Reject unsafe characters in $srcdir or the absolute working directory 3622# name. Accept space and tab only in the latter. 3623am_lf=' 3624' 3625case `pwd` in 3626 *[\\\"\#\$\&\'\`$am_lf]*) 3627 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3628esac 3629case $srcdir in 3630 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3631 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3632esac 3633 3634# Do 'set' in a subshell so we don't clobber the current shell's 3635# arguments. Must try -L first in case configure is actually a 3636# symlink; some systems play weird games with the mod time of symlinks 3637# (eg FreeBSD returns the mod time of the symlink's containing 3638# directory). 3639if ( 3640 am_has_slept=no 3641 for am_try in 1 2; do 3642 echo "timestamp, slept: $am_has_slept" > conftest.file 3643 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3644 if test "$*" = "X"; then 3645 # -L didn't work. 3646 set X `ls -t "$srcdir/configure" conftest.file` 3647 fi 3648 if test "$*" != "X $srcdir/configure conftest.file" \ 3649 && test "$*" != "X conftest.file $srcdir/configure"; then 3650 3651 # If neither matched, then we have a broken ls. This can happen 3652 # if, for instance, CONFIG_SHELL is bash and it inherits a 3653 # broken ls alias from the environment. This has actually 3654 # happened. Such a system could not be considered "sane". 3655 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3656 alias in your environment" "$LINENO" 5 3657 fi 3658 if test "$2" = conftest.file || test $am_try -eq 2; then 3659 break 3660 fi 3661 # Just in case. 3662 sleep 1 3663 am_has_slept=yes 3664 done 3665 test "$2" = conftest.file 3666 ) 3667then 3668 # Ok. 3669 : 3670else 3671 as_fn_error $? "newly created file is older than distributed files! 3672Check your system clock" "$LINENO" 5 3673fi 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3675$as_echo "yes" >&6; } 3676# If we didn't sleep, we still need to ensure time stamps of config.status and 3677# generated files are strictly newer. 3678am_sleep_pid= 3679if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3680 ( sleep 1 ) & 3681 am_sleep_pid=$! 3682fi 3683 3684rm -f conftest.file 3685 3686test "$program_prefix" != NONE && 3687 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3688# Use a double $ so make ignores it. 3689test "$program_suffix" != NONE && 3690 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3691# Double any \ or $. 3692# By default was `s,x,x', remove it if useless. 3693ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3694program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3695 3696if test x"${MISSING+set}" != xset; then 3697 case $am_aux_dir in 3698 *\ * | *\ *) 3699 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3700 *) 3701 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3702 esac 3703fi 3704# Use eval to expand $SHELL 3705if eval "$MISSING --is-lightweight"; then 3706 am_missing_run="$MISSING " 3707else 3708 am_missing_run= 3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3710$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3711fi 3712 3713if test x"${install_sh+set}" != xset; then 3714 case $am_aux_dir in 3715 *\ * | *\ *) 3716 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3717 *) 3718 install_sh="\${SHELL} $am_aux_dir/install-sh" 3719 esac 3720fi 3721 3722# Installed binaries are usually stripped using 'strip' when the user 3723# run "make install-strip". However 'strip' might not be the right 3724# tool to use in cross-compilation environments, therefore Automake 3725# will honor the 'STRIP' environment variable to overrule this program. 3726if test "$cross_compiling" != no; then 3727 if test -n "$ac_tool_prefix"; then 3728 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3729set dummy ${ac_tool_prefix}strip; ac_word=$2 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3731$as_echo_n "checking for $ac_word... " >&6; } 3732if ${ac_cv_prog_STRIP+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 if test -n "$STRIP"; then 3736 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3737else 3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3739for as_dir in $PATH 3740do 3741 IFS=$as_save_IFS 3742 test -z "$as_dir" && as_dir=. 3743 for ac_exec_ext in '' $ac_executable_extensions; do 3744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3745 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3747 break 2 3748 fi 3749done 3750 done 3751IFS=$as_save_IFS 3752 3753fi 3754fi 3755STRIP=$ac_cv_prog_STRIP 3756if test -n "$STRIP"; then 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3758$as_echo "$STRIP" >&6; } 3759else 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3761$as_echo "no" >&6; } 3762fi 3763 3764 3765fi 3766if test -z "$ac_cv_prog_STRIP"; then 3767 ac_ct_STRIP=$STRIP 3768 # Extract the first word of "strip", so it can be a program name with args. 3769set dummy strip; ac_word=$2 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3771$as_echo_n "checking for $ac_word... " >&6; } 3772if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3773 $as_echo_n "(cached) " >&6 3774else 3775 if test -n "$ac_ct_STRIP"; then 3776 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3777else 3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3779for as_dir in $PATH 3780do 3781 IFS=$as_save_IFS 3782 test -z "$as_dir" && as_dir=. 3783 for ac_exec_ext in '' $ac_executable_extensions; do 3784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3785 ac_cv_prog_ac_ct_STRIP="strip" 3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3787 break 2 3788 fi 3789done 3790 done 3791IFS=$as_save_IFS 3792 3793fi 3794fi 3795ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3796if test -n "$ac_ct_STRIP"; then 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3798$as_echo "$ac_ct_STRIP" >&6; } 3799else 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3801$as_echo "no" >&6; } 3802fi 3803 3804 if test "x$ac_ct_STRIP" = x; then 3805 STRIP=":" 3806 else 3807 case $cross_compiling:$ac_tool_warned in 3808yes:) 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3811ac_tool_warned=yes ;; 3812esac 3813 STRIP=$ac_ct_STRIP 3814 fi 3815else 3816 STRIP="$ac_cv_prog_STRIP" 3817fi 3818 3819fi 3820INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3821 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3823$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3824if test -z "$MKDIR_P"; then 3825 if ${ac_cv_path_mkdir+:} false; then : 3826 $as_echo_n "(cached) " >&6 3827else 3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3829for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3830do 3831 IFS=$as_save_IFS 3832 test -z "$as_dir" && as_dir=. 3833 for ac_prog in mkdir gmkdir; do 3834 for ac_exec_ext in '' $ac_executable_extensions; do 3835 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3836 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3837 'mkdir (GNU coreutils) '* | \ 3838 'mkdir (coreutils) '* | \ 3839 'mkdir (fileutils) '4.1*) 3840 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3841 break 3;; 3842 esac 3843 done 3844 done 3845 done 3846IFS=$as_save_IFS 3847 3848fi 3849 3850 test -d ./--version && rmdir ./--version 3851 if test "${ac_cv_path_mkdir+set}" = set; then 3852 MKDIR_P="$ac_cv_path_mkdir -p" 3853 else 3854 # As a last resort, use the slow shell script. Don't cache a 3855 # value for MKDIR_P within a source directory, because that will 3856 # break other packages using the cache if that directory is 3857 # removed, or if the value is a relative name. 3858 MKDIR_P="$ac_install_sh -d" 3859 fi 3860fi 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3862$as_echo "$MKDIR_P" >&6; } 3863 3864for ac_prog in gawk mawk nawk awk 3865do 3866 # Extract the first word of "$ac_prog", so it can be a program name with args. 3867set dummy $ac_prog; ac_word=$2 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3869$as_echo_n "checking for $ac_word... " >&6; } 3870if ${ac_cv_prog_AWK+:} false; then : 3871 $as_echo_n "(cached) " >&6 3872else 3873 if test -n "$AWK"; then 3874 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3875else 3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3877for as_dir in $PATH 3878do 3879 IFS=$as_save_IFS 3880 test -z "$as_dir" && as_dir=. 3881 for ac_exec_ext in '' $ac_executable_extensions; do 3882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3883 ac_cv_prog_AWK="$ac_prog" 3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3885 break 2 3886 fi 3887done 3888 done 3889IFS=$as_save_IFS 3890 3891fi 3892fi 3893AWK=$ac_cv_prog_AWK 3894if test -n "$AWK"; then 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3896$as_echo "$AWK" >&6; } 3897else 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3899$as_echo "no" >&6; } 3900fi 3901 3902 3903 test -n "$AWK" && break 3904done 3905 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3907$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3908set x ${MAKE-make} 3909ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3910if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3911 $as_echo_n "(cached) " >&6 3912else 3913 cat >conftest.make <<\_ACEOF 3914SHELL = /bin/sh 3915all: 3916 @echo '@@@%%%=$(MAKE)=@@@%%%' 3917_ACEOF 3918# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3919case `${MAKE-make} -f conftest.make 2>/dev/null` in 3920 *@@@%%%=?*=@@@%%%*) 3921 eval ac_cv_prog_make_${ac_make}_set=yes;; 3922 *) 3923 eval ac_cv_prog_make_${ac_make}_set=no;; 3924esac 3925rm -f conftest.make 3926fi 3927if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3929$as_echo "yes" >&6; } 3930 SET_MAKE= 3931else 3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3933$as_echo "no" >&6; } 3934 SET_MAKE="MAKE=${MAKE-make}" 3935fi 3936 3937rm -rf .tst 2>/dev/null 3938mkdir .tst 2>/dev/null 3939if test -d .tst; then 3940 am__leading_dot=. 3941else 3942 am__leading_dot=_ 3943fi 3944rmdir .tst 2>/dev/null 3945 3946DEPDIR="${am__leading_dot}deps" 3947 3948ac_config_commands="$ac_config_commands depfiles" 3949 3950 3951am_make=${MAKE-make} 3952cat > confinc << 'END' 3953am__doit: 3954 @echo this is the am__doit target 3955.PHONY: am__doit 3956END 3957# If we don't find an include directive, just comment out the code. 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3959$as_echo_n "checking for style of include used by $am_make... " >&6; } 3960am__include="#" 3961am__quote= 3962_am_result=none 3963# First try GNU make style include. 3964echo "include confinc" > confmf 3965# Ignore all kinds of additional output from 'make'. 3966case `$am_make -s -f confmf 2> /dev/null` in #( 3967*the\ am__doit\ target*) 3968 am__include=include 3969 am__quote= 3970 _am_result=GNU 3971 ;; 3972esac 3973# Now try BSD make style include. 3974if test "$am__include" = "#"; then 3975 echo '.include "confinc"' > confmf 3976 case `$am_make -s -f confmf 2> /dev/null` in #( 3977 *the\ am__doit\ target*) 3978 am__include=.include 3979 am__quote="\"" 3980 _am_result=BSD 3981 ;; 3982 esac 3983fi 3984 3985 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3987$as_echo "$_am_result" >&6; } 3988rm -f confinc confmf 3989 3990# Check whether --enable-dependency-tracking was given. 3991if test "${enable_dependency_tracking+set}" = set; then : 3992 enableval=$enable_dependency_tracking; 3993fi 3994 3995if test "x$enable_dependency_tracking" != xno; then 3996 am_depcomp="$ac_aux_dir/depcomp" 3997 AMDEPBACKSLASH='\' 3998 am__nodep='_no' 3999fi 4000 if test "x$enable_dependency_tracking" != xno; then 4001 AMDEP_TRUE= 4002 AMDEP_FALSE='#' 4003else 4004 AMDEP_TRUE='#' 4005 AMDEP_FALSE= 4006fi 4007 4008 4009# Check whether --enable-silent-rules was given. 4010if test "${enable_silent_rules+set}" = set; then : 4011 enableval=$enable_silent_rules; 4012fi 4013 4014case $enable_silent_rules in # ((( 4015 yes) AM_DEFAULT_VERBOSITY=0;; 4016 no) AM_DEFAULT_VERBOSITY=1;; 4017 *) AM_DEFAULT_VERBOSITY=1;; 4018esac 4019am_make=${MAKE-make} 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4021$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4022if ${am_cv_make_support_nested_variables+:} false; then : 4023 $as_echo_n "(cached) " >&6 4024else 4025 if $as_echo 'TRUE=$(BAR$(V)) 4026BAR0=false 4027BAR1=true 4028V=1 4029am__doit: 4030 @$(TRUE) 4031.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4032 am_cv_make_support_nested_variables=yes 4033else 4034 am_cv_make_support_nested_variables=no 4035fi 4036fi 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4038$as_echo "$am_cv_make_support_nested_variables" >&6; } 4039if test $am_cv_make_support_nested_variables = yes; then 4040 AM_V='$(V)' 4041 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4042else 4043 AM_V=$AM_DEFAULT_VERBOSITY 4044 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4045fi 4046AM_BACKSLASH='\' 4047 4048if test "`cd $srcdir && pwd`" != "`pwd`"; then 4049 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4050 # is not polluted with repeated "-I." 4051 am__isrc=' -I$(srcdir)' 4052 # test to see if srcdir already configured 4053 if test -f $srcdir/config.status; then 4054 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4055 fi 4056fi 4057 4058# test whether we have cygpath 4059if test -z "$CYGPATH_W"; then 4060 if (cygpath --version) >/dev/null 2>/dev/null; then 4061 CYGPATH_W='cygpath -w' 4062 else 4063 CYGPATH_W=echo 4064 fi 4065fi 4066 4067 4068# Define the identity of the package. 4069 PACKAGE='xev' 4070 VERSION='1.2.3' 4071 4072 4073cat >>confdefs.h <<_ACEOF 4074#define PACKAGE "$PACKAGE" 4075_ACEOF 4076 4077 4078cat >>confdefs.h <<_ACEOF 4079#define VERSION "$VERSION" 4080_ACEOF 4081 4082# Some tools Automake needs. 4083 4084ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4085 4086 4087AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4088 4089 4090AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4091 4092 4093AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4094 4095 4096MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4097 4098# For better backward compatibility. To be removed once Automake 1.9.x 4099# dies out for good. For more background, see: 4100# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4101# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4102mkdir_p='$(MKDIR_P)' 4103 4104# We need awk for the "check" target (and possibly the TAP driver). The 4105# system "awk" is bad on some platforms. 4106# Always define AMTAR for backward compatibility. Yes, it's still used 4107# in the wild :-( We should find a proper way to deprecate it ... 4108AMTAR='$${TAR-tar}' 4109 4110 4111# We'll loop over all known methods to create a tar archive until one works. 4112_am_tools='gnutar pax cpio none' 4113 4114am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4115 4116 4117 4118 4119 4120depcc="$CC" am_compiler_list= 4121 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4123$as_echo_n "checking dependency style of $depcc... " >&6; } 4124if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4128 # We make a subdir and do the tests there. Otherwise we can end up 4129 # making bogus files that we don't know about and never remove. For 4130 # instance it was reported that on HP-UX the gcc test will end up 4131 # making a dummy file named 'D' -- because '-MD' means "put the output 4132 # in D". 4133 rm -rf conftest.dir 4134 mkdir conftest.dir 4135 # Copy depcomp to subdir because otherwise we won't find it if we're 4136 # using a relative directory. 4137 cp "$am_depcomp" conftest.dir 4138 cd conftest.dir 4139 # We will build objects and dependencies in a subdirectory because 4140 # it helps to detect inapplicable dependency modes. For instance 4141 # both Tru64's cc and ICC support -MD to output dependencies as a 4142 # side effect of compilation, but ICC will put the dependencies in 4143 # the current directory while Tru64 will put them in the object 4144 # directory. 4145 mkdir sub 4146 4147 am_cv_CC_dependencies_compiler_type=none 4148 if test "$am_compiler_list" = ""; then 4149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4150 fi 4151 am__universal=false 4152 case " $depcc " in #( 4153 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4154 esac 4155 4156 for depmode in $am_compiler_list; do 4157 # Setup a source with many dependencies, because some compilers 4158 # like to wrap large dependency lists on column 80 (with \), and 4159 # we should not choose a depcomp mode which is confused by this. 4160 # 4161 # We need to recreate these files for each test, as the compiler may 4162 # overwrite some of them when testing with obscure command lines. 4163 # This happens at least with the AIX C compiler. 4164 : > sub/conftest.c 4165 for i in 1 2 3 4 5 6; do 4166 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4167 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4168 # Solaris 10 /bin/sh. 4169 echo '/* dummy */' > sub/conftst$i.h 4170 done 4171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4172 4173 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4174 # mode. It turns out that the SunPro C++ compiler does not properly 4175 # handle '-M -o', and we need to detect this. Also, some Intel 4176 # versions had trouble with output in subdirs. 4177 am__obj=sub/conftest.${OBJEXT-o} 4178 am__minus_obj="-o $am__obj" 4179 case $depmode in 4180 gcc) 4181 # This depmode causes a compiler race in universal mode. 4182 test "$am__universal" = false || continue 4183 ;; 4184 nosideeffect) 4185 # After this tag, mechanisms are not by side-effect, so they'll 4186 # only be used when explicitly requested. 4187 if test "x$enable_dependency_tracking" = xyes; then 4188 continue 4189 else 4190 break 4191 fi 4192 ;; 4193 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4194 # This compiler won't grok '-c -o', but also, the minuso test has 4195 # not run yet. These depmodes are late enough in the game, and 4196 # so weak that their functioning should not be impacted. 4197 am__obj=conftest.${OBJEXT-o} 4198 am__minus_obj= 4199 ;; 4200 none) break ;; 4201 esac 4202 if depmode=$depmode \ 4203 source=sub/conftest.c object=$am__obj \ 4204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4206 >/dev/null 2>conftest.err && 4207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4211 # icc doesn't choke on unknown options, it will just issue warnings 4212 # or remarks (even with -Werror). So we grep stderr for any message 4213 # that says an option was ignored or not supported. 4214 # When given -MP, icc 7.0 and 7.1 complain thusly: 4215 # icc: Command line warning: ignoring option '-M'; no argument required 4216 # The diagnosis changed in icc 8.0: 4217 # icc: Command line remark: option '-MP' not supported 4218 if (grep 'ignoring option' conftest.err || 4219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4220 am_cv_CC_dependencies_compiler_type=$depmode 4221 break 4222 fi 4223 fi 4224 done 4225 4226 cd .. 4227 rm -rf conftest.dir 4228else 4229 am_cv_CC_dependencies_compiler_type=none 4230fi 4231 4232fi 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4234$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4235CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4236 4237 if 4238 test "x$enable_dependency_tracking" != xno \ 4239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4240 am__fastdepCC_TRUE= 4241 am__fastdepCC_FALSE='#' 4242else 4243 am__fastdepCC_TRUE='#' 4244 am__fastdepCC_FALSE= 4245fi 4246 4247 4248 4249# POSIX will say in a future version that running "rm -f" with no argument 4250# is OK; and we want to be able to make that assumption in our Makefile 4251# recipes. So use an aggressive probe to check that the usage we want is 4252# actually supported "in the wild" to an acceptable degree. 4253# See automake bug#10828. 4254# To make any issue more visible, cause the running configure to be aborted 4255# by default if the 'rm' program in use doesn't match our expectations; the 4256# user can still override this though. 4257if rm -f && rm -fr && rm -rf; then : OK; else 4258 cat >&2 <<'END' 4259Oops! 4260 4261Your 'rm' program seems unable to run without file operands specified 4262on the command line, even when the '-f' option is present. This is contrary 4263to the behaviour of most rm programs out there, and not conforming with 4264the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4265 4266Please tell bug-automake@gnu.org about your system, including the value 4267of your $PATH and any error possibly output before this message. This 4268can help us improve future automake versions. 4269 4270END 4271 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4272 echo 'Configuration will proceed anyway, since you have set the' >&2 4273 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4274 echo >&2 4275 else 4276 cat >&2 <<'END' 4277Aborting the configuration process, to ensure you take notice of the issue. 4278 4279You can download and install GNU coreutils to get an 'rm' implementation 4280that behaves properly: <http://www.gnu.org/software/coreutils/>. 4281 4282If you want to complete the configuration process using your problematic 4283'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4284to "yes", and re-run configure. 4285 4286END 4287 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4288 fi 4289fi 4290 4291 4292# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4305$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4306if ${ac_cv_prog_cc_c99+:} false; then : 4307 $as_echo_n "(cached) " >&6 4308else 4309 ac_cv_prog_cc_c99=no 4310ac_save_CC=$CC 4311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312/* end confdefs.h. */ 4313#include <stdarg.h> 4314#include <stdbool.h> 4315#include <stdlib.h> 4316#include <wchar.h> 4317#include <stdio.h> 4318 4319// Check varargs macros. These examples are taken from C99 6.10.3.5. 4320#define debug(...) fprintf (stderr, __VA_ARGS__) 4321#define showlist(...) puts (#__VA_ARGS__) 4322#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4323static void 4324test_varargs_macros (void) 4325{ 4326 int x = 1234; 4327 int y = 5678; 4328 debug ("Flag"); 4329 debug ("X = %d\n", x); 4330 showlist (The first, second, and third items.); 4331 report (x>y, "x is %d but y is %d", x, y); 4332} 4333 4334// Check long long types. 4335#define BIG64 18446744073709551615ull 4336#define BIG32 4294967295ul 4337#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4338#if !BIG_OK 4339 your preprocessor is broken; 4340#endif 4341#if BIG_OK 4342#else 4343 your preprocessor is broken; 4344#endif 4345static long long int bignum = -9223372036854775807LL; 4346static unsigned long long int ubignum = BIG64; 4347 4348struct incomplete_array 4349{ 4350 int datasize; 4351 double data[]; 4352}; 4353 4354struct named_init { 4355 int number; 4356 const wchar_t *name; 4357 double average; 4358}; 4359 4360typedef const char *ccp; 4361 4362static inline int 4363test_restrict (ccp restrict text) 4364{ 4365 // See if C++-style comments work. 4366 // Iterate through items via the restricted pointer. 4367 // Also check for declarations in for loops. 4368 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4369 continue; 4370 return 0; 4371} 4372 4373// Check varargs and va_copy. 4374static void 4375test_varargs (const char *format, ...) 4376{ 4377 va_list args; 4378 va_start (args, format); 4379 va_list args_copy; 4380 va_copy (args_copy, args); 4381 4382 const char *str; 4383 int number; 4384 float fnumber; 4385 4386 while (*format) 4387 { 4388 switch (*format++) 4389 { 4390 case 's': // string 4391 str = va_arg (args_copy, const char *); 4392 break; 4393 case 'd': // int 4394 number = va_arg (args_copy, int); 4395 break; 4396 case 'f': // float 4397 fnumber = va_arg (args_copy, double); 4398 break; 4399 default: 4400 break; 4401 } 4402 } 4403 va_end (args_copy); 4404 va_end (args); 4405} 4406 4407int 4408main () 4409{ 4410 4411 // Check bool. 4412 _Bool success = false; 4413 4414 // Check restrict. 4415 if (test_restrict ("String literal") == 0) 4416 success = true; 4417 char *restrict newvar = "Another string"; 4418 4419 // Check varargs. 4420 test_varargs ("s, d' f .", "string", 65, 34.234); 4421 test_varargs_macros (); 4422 4423 // Check flexible array members. 4424 struct incomplete_array *ia = 4425 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4426 ia->datasize = 10; 4427 for (int i = 0; i < ia->datasize; ++i) 4428 ia->data[i] = i * 1.234; 4429 4430 // Check named initializers. 4431 struct named_init ni = { 4432 .number = 34, 4433 .name = L"Test wide string", 4434 .average = 543.34343, 4435 }; 4436 4437 ni.number = 58; 4438 4439 int dynamic_array[ni.number]; 4440 dynamic_array[ni.number - 1] = 543; 4441 4442 // work around unused variable warnings 4443 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4444 || dynamic_array[ni.number - 1] != 543); 4445 4446 ; 4447 return 0; 4448} 4449_ACEOF 4450for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4451do 4452 CC="$ac_save_CC $ac_arg" 4453 if ac_fn_c_try_compile "$LINENO"; then : 4454 ac_cv_prog_cc_c99=$ac_arg 4455fi 4456rm -f core conftest.err conftest.$ac_objext 4457 test "x$ac_cv_prog_cc_c99" != "xno" && break 4458done 4459rm -f conftest.$ac_ext 4460CC=$ac_save_CC 4461 4462fi 4463# AC_CACHE_VAL 4464case "x$ac_cv_prog_cc_c99" in 4465 x) 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4467$as_echo "none needed" >&6; } ;; 4468 xno) 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4470$as_echo "unsupported" >&6; } ;; 4471 *) 4472 CC="$CC $ac_cv_prog_cc_c99" 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4474$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4475esac 4476if test "x$ac_cv_prog_cc_c99" != xno; then : 4477 4478fi 4479 4480 4481 4482 4483 4484 4485ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4486if test "x$ac_cv_have_decl___clang__" = xyes; then : 4487 CLANGCC="yes" 4488else 4489 CLANGCC="no" 4490fi 4491 4492ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4493if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4494 INTELCC="yes" 4495else 4496 INTELCC="no" 4497fi 4498 4499ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4500if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4501 SUNCC="yes" 4502else 4503 SUNCC="no" 4504fi 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4515 if test -n "$ac_tool_prefix"; then 4516 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4517set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4519$as_echo_n "checking for $ac_word... " >&6; } 4520if ${ac_cv_path_PKG_CONFIG+:} false; then : 4521 $as_echo_n "(cached) " >&6 4522else 4523 case $PKG_CONFIG in 4524 [\\/]* | ?:[\\/]*) 4525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4526 ;; 4527 *) 4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4529for as_dir in $PATH 4530do 4531 IFS=$as_save_IFS 4532 test -z "$as_dir" && as_dir=. 4533 for ac_exec_ext in '' $ac_executable_extensions; do 4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4535 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4537 break 2 4538 fi 4539done 4540 done 4541IFS=$as_save_IFS 4542 4543 ;; 4544esac 4545fi 4546PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4547if test -n "$PKG_CONFIG"; then 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4549$as_echo "$PKG_CONFIG" >&6; } 4550else 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4552$as_echo "no" >&6; } 4553fi 4554 4555 4556fi 4557if test -z "$ac_cv_path_PKG_CONFIG"; then 4558 ac_pt_PKG_CONFIG=$PKG_CONFIG 4559 # Extract the first word of "pkg-config", so it can be a program name with args. 4560set dummy pkg-config; ac_word=$2 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4562$as_echo_n "checking for $ac_word... " >&6; } 4563if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 case $ac_pt_PKG_CONFIG in 4567 [\\/]* | ?:[\\/]*) 4568 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4569 ;; 4570 *) 4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4572for as_dir in $PATH 4573do 4574 IFS=$as_save_IFS 4575 test -z "$as_dir" && as_dir=. 4576 for ac_exec_ext in '' $ac_executable_extensions; do 4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4578 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4580 break 2 4581 fi 4582done 4583 done 4584IFS=$as_save_IFS 4585 4586 ;; 4587esac 4588fi 4589ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4590if test -n "$ac_pt_PKG_CONFIG"; then 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4592$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4593else 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4595$as_echo "no" >&6; } 4596fi 4597 4598 if test "x$ac_pt_PKG_CONFIG" = x; then 4599 PKG_CONFIG="" 4600 else 4601 case $cross_compiling:$ac_tool_warned in 4602yes:) 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4605ac_tool_warned=yes ;; 4606esac 4607 PKG_CONFIG=$ac_pt_PKG_CONFIG 4608 fi 4609else 4610 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4611fi 4612 4613fi 4614if test -n "$PKG_CONFIG"; then 4615 _pkg_min_version=0.9.0 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4617$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4618 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4620$as_echo "yes" >&6; } 4621 else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623$as_echo "no" >&6; } 4624 PKG_CONFIG="" 4625 fi 4626fi 4627# Make sure we can run config.sub. 4628$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4629 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4630 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4632$as_echo_n "checking build system type... " >&6; } 4633if ${ac_cv_build+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 ac_build_alias=$build_alias 4637test "x$ac_build_alias" = x && 4638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4639test "x$ac_build_alias" = x && 4640 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4641ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4642 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4643 4644fi 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4646$as_echo "$ac_cv_build" >&6; } 4647case $ac_cv_build in 4648*-*-*) ;; 4649*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4650esac 4651build=$ac_cv_build 4652ac_save_IFS=$IFS; IFS='-' 4653set x $ac_cv_build 4654shift 4655build_cpu=$1 4656build_vendor=$2 4657shift; shift 4658# Remember, the first character of IFS is used to create $*, 4659# except with old shells: 4660build_os=$* 4661IFS=$ac_save_IFS 4662case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4663 4664 4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4666$as_echo_n "checking host system type... " >&6; } 4667if ${ac_cv_host+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669else 4670 if test "x$host_alias" = x; then 4671 ac_cv_host=$ac_cv_build 4672else 4673 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4675fi 4676 4677fi 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4679$as_echo "$ac_cv_host" >&6; } 4680case $ac_cv_host in 4681*-*-*) ;; 4682*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4683esac 4684host=$ac_cv_host 4685ac_save_IFS=$IFS; IFS='-' 4686set x $ac_cv_host 4687shift 4688host_cpu=$1 4689host_vendor=$2 4690shift; shift 4691# Remember, the first character of IFS is used to create $*, 4692# except with old shells: 4693host_os=$* 4694IFS=$ac_save_IFS 4695case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4696 4697 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4699$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4700if ${ac_cv_path_SED+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4704 for ac_i in 1 2 3 4 5 6 7; do 4705 ac_script="$ac_script$as_nl$ac_script" 4706 done 4707 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4708 { ac_script=; unset ac_script;} 4709 if test -z "$SED"; then 4710 ac_path_SED_found=false 4711 # Loop through the user's path and test for each of PROGNAME-LIST 4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4713for as_dir in $PATH 4714do 4715 IFS=$as_save_IFS 4716 test -z "$as_dir" && as_dir=. 4717 for ac_prog in sed gsed; do 4718 for ac_exec_ext in '' $ac_executable_extensions; do 4719 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4720 as_fn_executable_p "$ac_path_SED" || continue 4721# Check for GNU ac_path_SED and select it if it is found. 4722 # Check for GNU $ac_path_SED 4723case `"$ac_path_SED" --version 2>&1` in 4724*GNU*) 4725 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4726*) 4727 ac_count=0 4728 $as_echo_n 0123456789 >"conftest.in" 4729 while : 4730 do 4731 cat "conftest.in" "conftest.in" >"conftest.tmp" 4732 mv "conftest.tmp" "conftest.in" 4733 cp "conftest.in" "conftest.nl" 4734 $as_echo '' >> "conftest.nl" 4735 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4737 as_fn_arith $ac_count + 1 && ac_count=$as_val 4738 if test $ac_count -gt ${ac_path_SED_max-0}; then 4739 # Best one so far, save it but keep looking for a better one 4740 ac_cv_path_SED="$ac_path_SED" 4741 ac_path_SED_max=$ac_count 4742 fi 4743 # 10*(2^10) chars as input seems more than enough 4744 test $ac_count -gt 10 && break 4745 done 4746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4747esac 4748 4749 $ac_path_SED_found && break 3 4750 done 4751 done 4752 done 4753IFS=$as_save_IFS 4754 if test -z "$ac_cv_path_SED"; then 4755 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4756 fi 4757else 4758 ac_cv_path_SED=$SED 4759fi 4760 4761fi 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4763$as_echo "$ac_cv_path_SED" >&6; } 4764 SED="$ac_cv_path_SED" 4765 rm -f conftest.sed 4766 4767 4768 4769 4770 4771 4772# Check whether --enable-selective-werror was given. 4773if test "${enable_selective_werror+set}" = set; then : 4774 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4775else 4776 SELECTIVE_WERROR=yes 4777fi 4778 4779 4780 4781 4782 4783# -v is too short to test reliably with XORG_TESTSET_CFLAG 4784if test "x$SUNCC" = "xyes"; then 4785 BASE_CFLAGS="-v" 4786else 4787 BASE_CFLAGS="" 4788fi 4789 4790# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804xorg_testset_save_CFLAGS="$CFLAGS" 4805 4806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4811 $as_echo_n "(cached) " >&6 4812else 4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4814/* end confdefs.h. */ 4815int i; 4816_ACEOF 4817if ac_fn_c_try_compile "$LINENO"; then : 4818 xorg_cv_cc_flag_unknown_warning_option=yes 4819else 4820 xorg_cv_cc_flag_unknown_warning_option=no 4821fi 4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4823fi 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4827 CFLAGS="$xorg_testset_save_CFLAGS" 4828fi 4829 4830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4833 fi 4834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4838 $as_echo_n "(cached) " >&6 4839else 4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4841/* end confdefs.h. */ 4842int i; 4843_ACEOF 4844if ac_fn_c_try_compile "$LINENO"; then : 4845 xorg_cv_cc_flag_unused_command_line_argument=yes 4846else 4847 xorg_cv_cc_flag_unused_command_line_argument=no 4848fi 4849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4850fi 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4854 CFLAGS="$xorg_testset_save_CFLAGS" 4855fi 4856 4857found="no" 4858 4859 if test $found = "no" ; then 4860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4862 fi 4863 4864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4866 fi 4867 4868 CFLAGS="$CFLAGS -Wall" 4869 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4871$as_echo_n "checking if $CC supports -Wall... " >&6; } 4872 cacheid=xorg_cv_cc_flag__Wall 4873 if eval \${$cacheid+:} false; then : 4874 $as_echo_n "(cached) " >&6 4875else 4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877/* end confdefs.h. */ 4878int i; 4879int 4880main () 4881{ 4882 4883 ; 4884 return 0; 4885} 4886_ACEOF 4887if ac_fn_c_try_link "$LINENO"; then : 4888 eval $cacheid=yes 4889else 4890 eval $cacheid=no 4891fi 4892rm -f core conftest.err conftest.$ac_objext \ 4893 conftest$ac_exeext conftest.$ac_ext 4894fi 4895 4896 4897 CFLAGS="$xorg_testset_save_CFLAGS" 4898 4899 eval supported=\$$cacheid 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4901$as_echo "$supported" >&6; } 4902 if test "$supported" = "yes" ; then 4903 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4904 found="yes" 4905 fi 4906 fi 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922xorg_testset_save_CFLAGS="$CFLAGS" 4923 4924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4932/* end confdefs.h. */ 4933int i; 4934_ACEOF 4935if ac_fn_c_try_compile "$LINENO"; then : 4936 xorg_cv_cc_flag_unknown_warning_option=yes 4937else 4938 xorg_cv_cc_flag_unknown_warning_option=no 4939fi 4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4941fi 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4945 CFLAGS="$xorg_testset_save_CFLAGS" 4946fi 4947 4948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4951 fi 4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4956 $as_echo_n "(cached) " >&6 4957else 4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959/* end confdefs.h. */ 4960int i; 4961_ACEOF 4962if ac_fn_c_try_compile "$LINENO"; then : 4963 xorg_cv_cc_flag_unused_command_line_argument=yes 4964else 4965 xorg_cv_cc_flag_unused_command_line_argument=no 4966fi 4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4968fi 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4972 CFLAGS="$xorg_testset_save_CFLAGS" 4973fi 4974 4975found="no" 4976 4977 if test $found = "no" ; then 4978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4980 fi 4981 4982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4984 fi 4985 4986 CFLAGS="$CFLAGS -Wpointer-arith" 4987 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4989$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4990 cacheid=xorg_cv_cc_flag__Wpointer_arith 4991 if eval \${$cacheid+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996int i; 4997int 4998main () 4999{ 5000 5001 ; 5002 return 0; 5003} 5004_ACEOF 5005if ac_fn_c_try_link "$LINENO"; then : 5006 eval $cacheid=yes 5007else 5008 eval $cacheid=no 5009fi 5010rm -f core conftest.err conftest.$ac_objext \ 5011 conftest$ac_exeext conftest.$ac_ext 5012fi 5013 5014 5015 CFLAGS="$xorg_testset_save_CFLAGS" 5016 5017 eval supported=\$$cacheid 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5019$as_echo "$supported" >&6; } 5020 if test "$supported" = "yes" ; then 5021 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5022 found="yes" 5023 fi 5024 fi 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040xorg_testset_save_CFLAGS="$CFLAGS" 5041 5042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5047 $as_echo_n "(cached) " >&6 5048else 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051int i; 5052_ACEOF 5053if ac_fn_c_try_compile "$LINENO"; then : 5054 xorg_cv_cc_flag_unknown_warning_option=yes 5055else 5056 xorg_cv_cc_flag_unknown_warning_option=no 5057fi 5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5059fi 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5063 CFLAGS="$xorg_testset_save_CFLAGS" 5064fi 5065 5066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5069 fi 5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5077/* end confdefs.h. */ 5078int i; 5079_ACEOF 5080if ac_fn_c_try_compile "$LINENO"; then : 5081 xorg_cv_cc_flag_unused_command_line_argument=yes 5082else 5083 xorg_cv_cc_flag_unused_command_line_argument=no 5084fi 5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5086fi 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5090 CFLAGS="$xorg_testset_save_CFLAGS" 5091fi 5092 5093found="no" 5094 5095 if test $found = "no" ; then 5096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5098 fi 5099 5100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5102 fi 5103 5104 CFLAGS="$CFLAGS -Wmissing-declarations" 5105 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5107$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5108 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5109 if eval \${$cacheid+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111else 5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113/* end confdefs.h. */ 5114int i; 5115int 5116main () 5117{ 5118 5119 ; 5120 return 0; 5121} 5122_ACEOF 5123if ac_fn_c_try_link "$LINENO"; then : 5124 eval $cacheid=yes 5125else 5126 eval $cacheid=no 5127fi 5128rm -f core conftest.err conftest.$ac_objext \ 5129 conftest$ac_exeext conftest.$ac_ext 5130fi 5131 5132 5133 CFLAGS="$xorg_testset_save_CFLAGS" 5134 5135 eval supported=\$$cacheid 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5137$as_echo "$supported" >&6; } 5138 if test "$supported" = "yes" ; then 5139 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5140 found="yes" 5141 fi 5142 fi 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158xorg_testset_save_CFLAGS="$CFLAGS" 5159 5160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5168/* end confdefs.h. */ 5169int i; 5170_ACEOF 5171if ac_fn_c_try_compile "$LINENO"; then : 5172 xorg_cv_cc_flag_unknown_warning_option=yes 5173else 5174 xorg_cv_cc_flag_unknown_warning_option=no 5175fi 5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5177fi 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5181 CFLAGS="$xorg_testset_save_CFLAGS" 5182fi 5183 5184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5187 fi 5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5195/* end confdefs.h. */ 5196int i; 5197_ACEOF 5198if ac_fn_c_try_compile "$LINENO"; then : 5199 xorg_cv_cc_flag_unused_command_line_argument=yes 5200else 5201 xorg_cv_cc_flag_unused_command_line_argument=no 5202fi 5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5204fi 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5208 CFLAGS="$xorg_testset_save_CFLAGS" 5209fi 5210 5211found="no" 5212 5213 if test $found = "no" ; then 5214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5216 fi 5217 5218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5220 fi 5221 5222 CFLAGS="$CFLAGS -Wformat=2" 5223 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5225$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5226 cacheid=xorg_cv_cc_flag__Wformat_2 5227 if eval \${$cacheid+:} false; then : 5228 $as_echo_n "(cached) " >&6 5229else 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232int i; 5233int 5234main () 5235{ 5236 5237 ; 5238 return 0; 5239} 5240_ACEOF 5241if ac_fn_c_try_link "$LINENO"; then : 5242 eval $cacheid=yes 5243else 5244 eval $cacheid=no 5245fi 5246rm -f core conftest.err conftest.$ac_objext \ 5247 conftest$ac_exeext conftest.$ac_ext 5248fi 5249 5250 5251 CFLAGS="$xorg_testset_save_CFLAGS" 5252 5253 eval supported=\$$cacheid 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5255$as_echo "$supported" >&6; } 5256 if test "$supported" = "yes" ; then 5257 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5258 found="yes" 5259 fi 5260 fi 5261 5262 if test $found = "no" ; then 5263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5265 fi 5266 5267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5269 fi 5270 5271 CFLAGS="$CFLAGS -Wformat" 5272 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5274$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5275 cacheid=xorg_cv_cc_flag__Wformat 5276 if eval \${$cacheid+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5280/* end confdefs.h. */ 5281int i; 5282int 5283main () 5284{ 5285 5286 ; 5287 return 0; 5288} 5289_ACEOF 5290if ac_fn_c_try_link "$LINENO"; then : 5291 eval $cacheid=yes 5292else 5293 eval $cacheid=no 5294fi 5295rm -f core conftest.err conftest.$ac_objext \ 5296 conftest$ac_exeext conftest.$ac_ext 5297fi 5298 5299 5300 CFLAGS="$xorg_testset_save_CFLAGS" 5301 5302 eval supported=\$$cacheid 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5304$as_echo "$supported" >&6; } 5305 if test "$supported" = "yes" ; then 5306 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5307 found="yes" 5308 fi 5309 fi 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327xorg_testset_save_CFLAGS="$CFLAGS" 5328 5329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5334 $as_echo_n "(cached) " >&6 5335else 5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5337/* end confdefs.h. */ 5338int i; 5339_ACEOF 5340if ac_fn_c_try_compile "$LINENO"; then : 5341 xorg_cv_cc_flag_unknown_warning_option=yes 5342else 5343 xorg_cv_cc_flag_unknown_warning_option=no 5344fi 5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5346fi 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5350 CFLAGS="$xorg_testset_save_CFLAGS" 5351fi 5352 5353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5356 fi 5357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364/* end confdefs.h. */ 5365int i; 5366_ACEOF 5367if ac_fn_c_try_compile "$LINENO"; then : 5368 xorg_cv_cc_flag_unused_command_line_argument=yes 5369else 5370 xorg_cv_cc_flag_unused_command_line_argument=no 5371fi 5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5373fi 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5377 CFLAGS="$xorg_testset_save_CFLAGS" 5378fi 5379 5380found="no" 5381 5382 if test $found = "no" ; then 5383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5385 fi 5386 5387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5389 fi 5390 5391 CFLAGS="$CFLAGS -Wstrict-prototypes" 5392 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5394$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5395 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5396 if eval \${$cacheid+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398else 5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5400/* end confdefs.h. */ 5401int i; 5402int 5403main () 5404{ 5405 5406 ; 5407 return 0; 5408} 5409_ACEOF 5410if ac_fn_c_try_link "$LINENO"; then : 5411 eval $cacheid=yes 5412else 5413 eval $cacheid=no 5414fi 5415rm -f core conftest.err conftest.$ac_objext \ 5416 conftest$ac_exeext conftest.$ac_ext 5417fi 5418 5419 5420 CFLAGS="$xorg_testset_save_CFLAGS" 5421 5422 eval supported=\$$cacheid 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5424$as_echo "$supported" >&6; } 5425 if test "$supported" = "yes" ; then 5426 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5427 found="yes" 5428 fi 5429 fi 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445xorg_testset_save_CFLAGS="$CFLAGS" 5446 5447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455/* end confdefs.h. */ 5456int i; 5457_ACEOF 5458if ac_fn_c_try_compile "$LINENO"; then : 5459 xorg_cv_cc_flag_unknown_warning_option=yes 5460else 5461 xorg_cv_cc_flag_unknown_warning_option=no 5462fi 5463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5464fi 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5468 CFLAGS="$xorg_testset_save_CFLAGS" 5469fi 5470 5471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5474 fi 5475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483int i; 5484_ACEOF 5485if ac_fn_c_try_compile "$LINENO"; then : 5486 xorg_cv_cc_flag_unused_command_line_argument=yes 5487else 5488 xorg_cv_cc_flag_unused_command_line_argument=no 5489fi 5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5491fi 5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5495 CFLAGS="$xorg_testset_save_CFLAGS" 5496fi 5497 5498found="no" 5499 5500 if test $found = "no" ; then 5501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5503 fi 5504 5505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5507 fi 5508 5509 CFLAGS="$CFLAGS -Wmissing-prototypes" 5510 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5512$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5513 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5514 if eval \${$cacheid+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516else 5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5518/* end confdefs.h. */ 5519int i; 5520int 5521main () 5522{ 5523 5524 ; 5525 return 0; 5526} 5527_ACEOF 5528if ac_fn_c_try_link "$LINENO"; then : 5529 eval $cacheid=yes 5530else 5531 eval $cacheid=no 5532fi 5533rm -f core conftest.err conftest.$ac_objext \ 5534 conftest$ac_exeext conftest.$ac_ext 5535fi 5536 5537 5538 CFLAGS="$xorg_testset_save_CFLAGS" 5539 5540 eval supported=\$$cacheid 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5542$as_echo "$supported" >&6; } 5543 if test "$supported" = "yes" ; then 5544 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5545 found="yes" 5546 fi 5547 fi 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563xorg_testset_save_CFLAGS="$CFLAGS" 5564 5565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5573/* end confdefs.h. */ 5574int i; 5575_ACEOF 5576if ac_fn_c_try_compile "$LINENO"; then : 5577 xorg_cv_cc_flag_unknown_warning_option=yes 5578else 5579 xorg_cv_cc_flag_unknown_warning_option=no 5580fi 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5582fi 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5586 CFLAGS="$xorg_testset_save_CFLAGS" 5587fi 5588 5589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5592 fi 5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5597 $as_echo_n "(cached) " >&6 5598else 5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5600/* end confdefs.h. */ 5601int i; 5602_ACEOF 5603if ac_fn_c_try_compile "$LINENO"; then : 5604 xorg_cv_cc_flag_unused_command_line_argument=yes 5605else 5606 xorg_cv_cc_flag_unused_command_line_argument=no 5607fi 5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5609fi 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5613 CFLAGS="$xorg_testset_save_CFLAGS" 5614fi 5615 5616found="no" 5617 5618 if test $found = "no" ; then 5619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5621 fi 5622 5623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5625 fi 5626 5627 CFLAGS="$CFLAGS -Wnested-externs" 5628 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5630$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5631 cacheid=xorg_cv_cc_flag__Wnested_externs 5632 if eval \${$cacheid+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637int i; 5638int 5639main () 5640{ 5641 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646if ac_fn_c_try_link "$LINENO"; then : 5647 eval $cacheid=yes 5648else 5649 eval $cacheid=no 5650fi 5651rm -f core conftest.err conftest.$ac_objext \ 5652 conftest$ac_exeext conftest.$ac_ext 5653fi 5654 5655 5656 CFLAGS="$xorg_testset_save_CFLAGS" 5657 5658 eval supported=\$$cacheid 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5660$as_echo "$supported" >&6; } 5661 if test "$supported" = "yes" ; then 5662 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5663 found="yes" 5664 fi 5665 fi 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681xorg_testset_save_CFLAGS="$CFLAGS" 5682 5683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5688 $as_echo_n "(cached) " >&6 5689else 5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5691/* end confdefs.h. */ 5692int i; 5693_ACEOF 5694if ac_fn_c_try_compile "$LINENO"; then : 5695 xorg_cv_cc_flag_unknown_warning_option=yes 5696else 5697 xorg_cv_cc_flag_unknown_warning_option=no 5698fi 5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5700fi 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5704 CFLAGS="$xorg_testset_save_CFLAGS" 5705fi 5706 5707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5710 fi 5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5715 $as_echo_n "(cached) " >&6 5716else 5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5718/* end confdefs.h. */ 5719int i; 5720_ACEOF 5721if ac_fn_c_try_compile "$LINENO"; then : 5722 xorg_cv_cc_flag_unused_command_line_argument=yes 5723else 5724 xorg_cv_cc_flag_unused_command_line_argument=no 5725fi 5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5727fi 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5731 CFLAGS="$xorg_testset_save_CFLAGS" 5732fi 5733 5734found="no" 5735 5736 if test $found = "no" ; then 5737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5739 fi 5740 5741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5743 fi 5744 5745 CFLAGS="$CFLAGS -Wbad-function-cast" 5746 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5748$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5749 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5750 if eval \${$cacheid+:} false; then : 5751 $as_echo_n "(cached) " >&6 5752else 5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5754/* end confdefs.h. */ 5755int i; 5756int 5757main () 5758{ 5759 5760 ; 5761 return 0; 5762} 5763_ACEOF 5764if ac_fn_c_try_link "$LINENO"; then : 5765 eval $cacheid=yes 5766else 5767 eval $cacheid=no 5768fi 5769rm -f core conftest.err conftest.$ac_objext \ 5770 conftest$ac_exeext conftest.$ac_ext 5771fi 5772 5773 5774 CFLAGS="$xorg_testset_save_CFLAGS" 5775 5776 eval supported=\$$cacheid 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5778$as_echo "$supported" >&6; } 5779 if test "$supported" = "yes" ; then 5780 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5781 found="yes" 5782 fi 5783 fi 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799xorg_testset_save_CFLAGS="$CFLAGS" 5800 5801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809/* end confdefs.h. */ 5810int i; 5811_ACEOF 5812if ac_fn_c_try_compile "$LINENO"; then : 5813 xorg_cv_cc_flag_unknown_warning_option=yes 5814else 5815 xorg_cv_cc_flag_unknown_warning_option=no 5816fi 5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5818fi 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5822 CFLAGS="$xorg_testset_save_CFLAGS" 5823fi 5824 5825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5828 fi 5829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836/* end confdefs.h. */ 5837int i; 5838_ACEOF 5839if ac_fn_c_try_compile "$LINENO"; then : 5840 xorg_cv_cc_flag_unused_command_line_argument=yes 5841else 5842 xorg_cv_cc_flag_unused_command_line_argument=no 5843fi 5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5845fi 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5849 CFLAGS="$xorg_testset_save_CFLAGS" 5850fi 5851 5852found="no" 5853 5854 if test $found = "no" ; then 5855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5857 fi 5858 5859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5861 fi 5862 5863 CFLAGS="$CFLAGS -Wold-style-definition" 5864 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5866$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5867 cacheid=xorg_cv_cc_flag__Wold_style_definition 5868 if eval \${$cacheid+:} false; then : 5869 $as_echo_n "(cached) " >&6 5870else 5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5872/* end confdefs.h. */ 5873int i; 5874int 5875main () 5876{ 5877 5878 ; 5879 return 0; 5880} 5881_ACEOF 5882if ac_fn_c_try_link "$LINENO"; then : 5883 eval $cacheid=yes 5884else 5885 eval $cacheid=no 5886fi 5887rm -f core conftest.err conftest.$ac_objext \ 5888 conftest$ac_exeext conftest.$ac_ext 5889fi 5890 5891 5892 CFLAGS="$xorg_testset_save_CFLAGS" 5893 5894 eval supported=\$$cacheid 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5896$as_echo "$supported" >&6; } 5897 if test "$supported" = "yes" ; then 5898 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5899 found="yes" 5900 fi 5901 fi 5902 5903 if test $found = "no" ; then 5904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5906 fi 5907 5908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5910 fi 5911 5912 CFLAGS="$CFLAGS -fd" 5913 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5915$as_echo_n "checking if $CC supports -fd... " >&6; } 5916 cacheid=xorg_cv_cc_flag__fd 5917 if eval \${$cacheid+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5921/* end confdefs.h. */ 5922int i; 5923int 5924main () 5925{ 5926 5927 ; 5928 return 0; 5929} 5930_ACEOF 5931if ac_fn_c_try_link "$LINENO"; then : 5932 eval $cacheid=yes 5933else 5934 eval $cacheid=no 5935fi 5936rm -f core conftest.err conftest.$ac_objext \ 5937 conftest$ac_exeext conftest.$ac_ext 5938fi 5939 5940 5941 CFLAGS="$xorg_testset_save_CFLAGS" 5942 5943 eval supported=\$$cacheid 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5945$as_echo "$supported" >&6; } 5946 if test "$supported" = "yes" ; then 5947 BASE_CFLAGS="$BASE_CFLAGS -fd" 5948 found="yes" 5949 fi 5950 fi 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966xorg_testset_save_CFLAGS="$CFLAGS" 5967 5968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976/* end confdefs.h. */ 5977int i; 5978_ACEOF 5979if ac_fn_c_try_compile "$LINENO"; then : 5980 xorg_cv_cc_flag_unknown_warning_option=yes 5981else 5982 xorg_cv_cc_flag_unknown_warning_option=no 5983fi 5984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5985fi 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5989 CFLAGS="$xorg_testset_save_CFLAGS" 5990fi 5991 5992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5995 fi 5996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6003/* end confdefs.h. */ 6004int i; 6005_ACEOF 6006if ac_fn_c_try_compile "$LINENO"; then : 6007 xorg_cv_cc_flag_unused_command_line_argument=yes 6008else 6009 xorg_cv_cc_flag_unused_command_line_argument=no 6010fi 6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6012fi 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6016 CFLAGS="$xorg_testset_save_CFLAGS" 6017fi 6018 6019found="no" 6020 6021 if test $found = "no" ; then 6022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6024 fi 6025 6026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6028 fi 6029 6030 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6031 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6033$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6034 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6035 if eval \${$cacheid+:} false; then : 6036 $as_echo_n "(cached) " >&6 6037else 6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6039/* end confdefs.h. */ 6040int i; 6041int 6042main () 6043{ 6044 6045 ; 6046 return 0; 6047} 6048_ACEOF 6049if ac_fn_c_try_link "$LINENO"; then : 6050 eval $cacheid=yes 6051else 6052 eval $cacheid=no 6053fi 6054rm -f core conftest.err conftest.$ac_objext \ 6055 conftest$ac_exeext conftest.$ac_ext 6056fi 6057 6058 6059 CFLAGS="$xorg_testset_save_CFLAGS" 6060 6061 eval supported=\$$cacheid 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6063$as_echo "$supported" >&6; } 6064 if test "$supported" = "yes" ; then 6065 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6066 found="yes" 6067 fi 6068 fi 6069 6070 6071 6072 6073 6074# This chunk adds additional warnings that could catch undesired effects. 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088xorg_testset_save_CFLAGS="$CFLAGS" 6089 6090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6098/* end confdefs.h. */ 6099int i; 6100_ACEOF 6101if ac_fn_c_try_compile "$LINENO"; then : 6102 xorg_cv_cc_flag_unknown_warning_option=yes 6103else 6104 xorg_cv_cc_flag_unknown_warning_option=no 6105fi 6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6107fi 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6111 CFLAGS="$xorg_testset_save_CFLAGS" 6112fi 6113 6114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6117 fi 6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123else 6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6125/* end confdefs.h. */ 6126int i; 6127_ACEOF 6128if ac_fn_c_try_compile "$LINENO"; then : 6129 xorg_cv_cc_flag_unused_command_line_argument=yes 6130else 6131 xorg_cv_cc_flag_unused_command_line_argument=no 6132fi 6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6134fi 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6138 CFLAGS="$xorg_testset_save_CFLAGS" 6139fi 6140 6141found="no" 6142 6143 if test $found = "no" ; then 6144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6146 fi 6147 6148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6150 fi 6151 6152 CFLAGS="$CFLAGS -Wunused" 6153 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6155$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6156 cacheid=xorg_cv_cc_flag__Wunused 6157 if eval \${$cacheid+:} false; then : 6158 $as_echo_n "(cached) " >&6 6159else 6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6161/* end confdefs.h. */ 6162int i; 6163int 6164main () 6165{ 6166 6167 ; 6168 return 0; 6169} 6170_ACEOF 6171if ac_fn_c_try_link "$LINENO"; then : 6172 eval $cacheid=yes 6173else 6174 eval $cacheid=no 6175fi 6176rm -f core conftest.err conftest.$ac_objext \ 6177 conftest$ac_exeext conftest.$ac_ext 6178fi 6179 6180 6181 CFLAGS="$xorg_testset_save_CFLAGS" 6182 6183 eval supported=\$$cacheid 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6185$as_echo "$supported" >&6; } 6186 if test "$supported" = "yes" ; then 6187 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6188 found="yes" 6189 fi 6190 fi 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206xorg_testset_save_CFLAGS="$CFLAGS" 6207 6208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214else 6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216/* end confdefs.h. */ 6217int i; 6218_ACEOF 6219if ac_fn_c_try_compile "$LINENO"; then : 6220 xorg_cv_cc_flag_unknown_warning_option=yes 6221else 6222 xorg_cv_cc_flag_unknown_warning_option=no 6223fi 6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6225fi 6226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6229 CFLAGS="$xorg_testset_save_CFLAGS" 6230fi 6231 6232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6235 fi 6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6240 $as_echo_n "(cached) " >&6 6241else 6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6243/* end confdefs.h. */ 6244int i; 6245_ACEOF 6246if ac_fn_c_try_compile "$LINENO"; then : 6247 xorg_cv_cc_flag_unused_command_line_argument=yes 6248else 6249 xorg_cv_cc_flag_unused_command_line_argument=no 6250fi 6251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6252fi 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6256 CFLAGS="$xorg_testset_save_CFLAGS" 6257fi 6258 6259found="no" 6260 6261 if test $found = "no" ; then 6262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6264 fi 6265 6266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6268 fi 6269 6270 CFLAGS="$CFLAGS -Wuninitialized" 6271 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6273$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6274 cacheid=xorg_cv_cc_flag__Wuninitialized 6275 if eval \${$cacheid+:} false; then : 6276 $as_echo_n "(cached) " >&6 6277else 6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279/* end confdefs.h. */ 6280int i; 6281int 6282main () 6283{ 6284 6285 ; 6286 return 0; 6287} 6288_ACEOF 6289if ac_fn_c_try_link "$LINENO"; then : 6290 eval $cacheid=yes 6291else 6292 eval $cacheid=no 6293fi 6294rm -f core conftest.err conftest.$ac_objext \ 6295 conftest$ac_exeext conftest.$ac_ext 6296fi 6297 6298 6299 CFLAGS="$xorg_testset_save_CFLAGS" 6300 6301 eval supported=\$$cacheid 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6303$as_echo "$supported" >&6; } 6304 if test "$supported" = "yes" ; then 6305 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6306 found="yes" 6307 fi 6308 fi 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324xorg_testset_save_CFLAGS="$CFLAGS" 6325 6326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332else 6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334/* end confdefs.h. */ 6335int i; 6336_ACEOF 6337if ac_fn_c_try_compile "$LINENO"; then : 6338 xorg_cv_cc_flag_unknown_warning_option=yes 6339else 6340 xorg_cv_cc_flag_unknown_warning_option=no 6341fi 6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6343fi 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6347 CFLAGS="$xorg_testset_save_CFLAGS" 6348fi 6349 6350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6353 fi 6354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6358 $as_echo_n "(cached) " >&6 6359else 6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6361/* end confdefs.h. */ 6362int i; 6363_ACEOF 6364if ac_fn_c_try_compile "$LINENO"; then : 6365 xorg_cv_cc_flag_unused_command_line_argument=yes 6366else 6367 xorg_cv_cc_flag_unused_command_line_argument=no 6368fi 6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6370fi 6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6374 CFLAGS="$xorg_testset_save_CFLAGS" 6375fi 6376 6377found="no" 6378 6379 if test $found = "no" ; then 6380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6382 fi 6383 6384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6386 fi 6387 6388 CFLAGS="$CFLAGS -Wshadow" 6389 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6391$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6392 cacheid=xorg_cv_cc_flag__Wshadow 6393 if eval \${$cacheid+:} false; then : 6394 $as_echo_n "(cached) " >&6 6395else 6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6397/* end confdefs.h. */ 6398int i; 6399int 6400main () 6401{ 6402 6403 ; 6404 return 0; 6405} 6406_ACEOF 6407if ac_fn_c_try_link "$LINENO"; then : 6408 eval $cacheid=yes 6409else 6410 eval $cacheid=no 6411fi 6412rm -f core conftest.err conftest.$ac_objext \ 6413 conftest$ac_exeext conftest.$ac_ext 6414fi 6415 6416 6417 CFLAGS="$xorg_testset_save_CFLAGS" 6418 6419 eval supported=\$$cacheid 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6421$as_echo "$supported" >&6; } 6422 if test "$supported" = "yes" ; then 6423 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6424 found="yes" 6425 fi 6426 fi 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442xorg_testset_save_CFLAGS="$CFLAGS" 6443 6444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6449 $as_echo_n "(cached) " >&6 6450else 6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6452/* end confdefs.h. */ 6453int i; 6454_ACEOF 6455if ac_fn_c_try_compile "$LINENO"; then : 6456 xorg_cv_cc_flag_unknown_warning_option=yes 6457else 6458 xorg_cv_cc_flag_unknown_warning_option=no 6459fi 6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6461fi 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6465 CFLAGS="$xorg_testset_save_CFLAGS" 6466fi 6467 6468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6471 fi 6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6479/* end confdefs.h. */ 6480int i; 6481_ACEOF 6482if ac_fn_c_try_compile "$LINENO"; then : 6483 xorg_cv_cc_flag_unused_command_line_argument=yes 6484else 6485 xorg_cv_cc_flag_unused_command_line_argument=no 6486fi 6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6488fi 6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6492 CFLAGS="$xorg_testset_save_CFLAGS" 6493fi 6494 6495found="no" 6496 6497 if test $found = "no" ; then 6498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6500 fi 6501 6502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6504 fi 6505 6506 CFLAGS="$CFLAGS -Wmissing-noreturn" 6507 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6509$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6510 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6511 if eval \${$cacheid+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513else 6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6515/* end confdefs.h. */ 6516int i; 6517int 6518main () 6519{ 6520 6521 ; 6522 return 0; 6523} 6524_ACEOF 6525if ac_fn_c_try_link "$LINENO"; then : 6526 eval $cacheid=yes 6527else 6528 eval $cacheid=no 6529fi 6530rm -f core conftest.err conftest.$ac_objext \ 6531 conftest$ac_exeext conftest.$ac_ext 6532fi 6533 6534 6535 CFLAGS="$xorg_testset_save_CFLAGS" 6536 6537 eval supported=\$$cacheid 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6539$as_echo "$supported" >&6; } 6540 if test "$supported" = "yes" ; then 6541 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6542 found="yes" 6543 fi 6544 fi 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560xorg_testset_save_CFLAGS="$CFLAGS" 6561 6562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6567 $as_echo_n "(cached) " >&6 6568else 6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6570/* end confdefs.h. */ 6571int i; 6572_ACEOF 6573if ac_fn_c_try_compile "$LINENO"; then : 6574 xorg_cv_cc_flag_unknown_warning_option=yes 6575else 6576 xorg_cv_cc_flag_unknown_warning_option=no 6577fi 6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6579fi 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6583 CFLAGS="$xorg_testset_save_CFLAGS" 6584fi 6585 6586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6589 fi 6590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6594 $as_echo_n "(cached) " >&6 6595else 6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6597/* end confdefs.h. */ 6598int i; 6599_ACEOF 6600if ac_fn_c_try_compile "$LINENO"; then : 6601 xorg_cv_cc_flag_unused_command_line_argument=yes 6602else 6603 xorg_cv_cc_flag_unused_command_line_argument=no 6604fi 6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6606fi 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6610 CFLAGS="$xorg_testset_save_CFLAGS" 6611fi 6612 6613found="no" 6614 6615 if test $found = "no" ; then 6616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6618 fi 6619 6620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6622 fi 6623 6624 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6625 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6627$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6628 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6629 if eval \${$cacheid+:} false; then : 6630 $as_echo_n "(cached) " >&6 6631else 6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6633/* end confdefs.h. */ 6634int i; 6635int 6636main () 6637{ 6638 6639 ; 6640 return 0; 6641} 6642_ACEOF 6643if ac_fn_c_try_link "$LINENO"; then : 6644 eval $cacheid=yes 6645else 6646 eval $cacheid=no 6647fi 6648rm -f core conftest.err conftest.$ac_objext \ 6649 conftest$ac_exeext conftest.$ac_ext 6650fi 6651 6652 6653 CFLAGS="$xorg_testset_save_CFLAGS" 6654 6655 eval supported=\$$cacheid 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6657$as_echo "$supported" >&6; } 6658 if test "$supported" = "yes" ; then 6659 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6660 found="yes" 6661 fi 6662 fi 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678xorg_testset_save_CFLAGS="$CFLAGS" 6679 6680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6685 $as_echo_n "(cached) " >&6 6686else 6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6688/* end confdefs.h. */ 6689int i; 6690_ACEOF 6691if ac_fn_c_try_compile "$LINENO"; then : 6692 xorg_cv_cc_flag_unknown_warning_option=yes 6693else 6694 xorg_cv_cc_flag_unknown_warning_option=no 6695fi 6696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6697fi 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6701 CFLAGS="$xorg_testset_save_CFLAGS" 6702fi 6703 6704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6707 fi 6708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6712 $as_echo_n "(cached) " >&6 6713else 6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6715/* end confdefs.h. */ 6716int i; 6717_ACEOF 6718if ac_fn_c_try_compile "$LINENO"; then : 6719 xorg_cv_cc_flag_unused_command_line_argument=yes 6720else 6721 xorg_cv_cc_flag_unused_command_line_argument=no 6722fi 6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6724fi 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6728 CFLAGS="$xorg_testset_save_CFLAGS" 6729fi 6730 6731found="no" 6732 6733 if test $found = "no" ; then 6734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6736 fi 6737 6738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6740 fi 6741 6742 CFLAGS="$CFLAGS -Wredundant-decls" 6743 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6745$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6746 cacheid=xorg_cv_cc_flag__Wredundant_decls 6747 if eval \${$cacheid+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6751/* end confdefs.h. */ 6752int i; 6753int 6754main () 6755{ 6756 6757 ; 6758 return 0; 6759} 6760_ACEOF 6761if ac_fn_c_try_link "$LINENO"; then : 6762 eval $cacheid=yes 6763else 6764 eval $cacheid=no 6765fi 6766rm -f core conftest.err conftest.$ac_objext \ 6767 conftest$ac_exeext conftest.$ac_ext 6768fi 6769 6770 6771 CFLAGS="$xorg_testset_save_CFLAGS" 6772 6773 eval supported=\$$cacheid 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6775$as_echo "$supported" >&6; } 6776 if test "$supported" = "yes" ; then 6777 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6778 found="yes" 6779 fi 6780 fi 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796xorg_testset_save_CFLAGS="$CFLAGS" 6797 6798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6806/* end confdefs.h. */ 6807int i; 6808_ACEOF 6809if ac_fn_c_try_compile "$LINENO"; then : 6810 xorg_cv_cc_flag_unknown_warning_option=yes 6811else 6812 xorg_cv_cc_flag_unknown_warning_option=no 6813fi 6814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6815fi 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6819 CFLAGS="$xorg_testset_save_CFLAGS" 6820fi 6821 6822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6825 fi 6826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6830 $as_echo_n "(cached) " >&6 6831else 6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6833/* end confdefs.h. */ 6834int i; 6835_ACEOF 6836if ac_fn_c_try_compile "$LINENO"; then : 6837 xorg_cv_cc_flag_unused_command_line_argument=yes 6838else 6839 xorg_cv_cc_flag_unused_command_line_argument=no 6840fi 6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6842fi 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6846 CFLAGS="$xorg_testset_save_CFLAGS" 6847fi 6848 6849found="no" 6850 6851 if test $found = "no" ; then 6852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6854 fi 6855 6856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6858 fi 6859 6860 CFLAGS="$CFLAGS -Wlogical-op" 6861 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6863$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6864 cacheid=xorg_cv_cc_flag__Wlogical_op 6865 if eval \${$cacheid+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869/* end confdefs.h. */ 6870int i; 6871int 6872main () 6873{ 6874 6875 ; 6876 return 0; 6877} 6878_ACEOF 6879if ac_fn_c_try_link "$LINENO"; then : 6880 eval $cacheid=yes 6881else 6882 eval $cacheid=no 6883fi 6884rm -f core conftest.err conftest.$ac_objext \ 6885 conftest$ac_exeext conftest.$ac_ext 6886fi 6887 6888 6889 CFLAGS="$xorg_testset_save_CFLAGS" 6890 6891 eval supported=\$$cacheid 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6893$as_echo "$supported" >&6; } 6894 if test "$supported" = "yes" ; then 6895 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6896 found="yes" 6897 fi 6898 fi 6899 6900 6901 6902# These are currently disabled because they are noisy. They will be enabled 6903# in the future once the codebase is sufficiently modernized to silence 6904# them. For now, I don't want them to drown out the other warnings. 6905# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6906# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6907# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6908 6909# Turn some warnings into errors, so we don't accidently get successful builds 6910# when there are problems that should be fixed. 6911 6912if test "x$SELECTIVE_WERROR" = "xyes" ; then 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926xorg_testset_save_CFLAGS="$CFLAGS" 6927 6928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6933 $as_echo_n "(cached) " >&6 6934else 6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6936/* end confdefs.h. */ 6937int i; 6938_ACEOF 6939if ac_fn_c_try_compile "$LINENO"; then : 6940 xorg_cv_cc_flag_unknown_warning_option=yes 6941else 6942 xorg_cv_cc_flag_unknown_warning_option=no 6943fi 6944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6945fi 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6949 CFLAGS="$xorg_testset_save_CFLAGS" 6950fi 6951 6952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6955 fi 6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6960 $as_echo_n "(cached) " >&6 6961else 6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6963/* end confdefs.h. */ 6964int i; 6965_ACEOF 6966if ac_fn_c_try_compile "$LINENO"; then : 6967 xorg_cv_cc_flag_unused_command_line_argument=yes 6968else 6969 xorg_cv_cc_flag_unused_command_line_argument=no 6970fi 6971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6972fi 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977fi 6978 6979found="no" 6980 6981 if test $found = "no" ; then 6982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6984 fi 6985 6986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6988 fi 6989 6990 CFLAGS="$CFLAGS -Werror=implicit" 6991 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6993$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6994 cacheid=xorg_cv_cc_flag__Werror_implicit 6995 if eval \${$cacheid+:} false; then : 6996 $as_echo_n "(cached) " >&6 6997else 6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999/* end confdefs.h. */ 7000int i; 7001int 7002main () 7003{ 7004 7005 ; 7006 return 0; 7007} 7008_ACEOF 7009if ac_fn_c_try_link "$LINENO"; then : 7010 eval $cacheid=yes 7011else 7012 eval $cacheid=no 7013fi 7014rm -f core conftest.err conftest.$ac_objext \ 7015 conftest$ac_exeext conftest.$ac_ext 7016fi 7017 7018 7019 CFLAGS="$xorg_testset_save_CFLAGS" 7020 7021 eval supported=\$$cacheid 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7023$as_echo "$supported" >&6; } 7024 if test "$supported" = "yes" ; then 7025 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7026 found="yes" 7027 fi 7028 fi 7029 7030 if test $found = "no" ; then 7031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7033 fi 7034 7035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7037 fi 7038 7039 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7040 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7042$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7043 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7044 if eval \${$cacheid+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7048/* end confdefs.h. */ 7049int i; 7050int 7051main () 7052{ 7053 7054 ; 7055 return 0; 7056} 7057_ACEOF 7058if ac_fn_c_try_link "$LINENO"; then : 7059 eval $cacheid=yes 7060else 7061 eval $cacheid=no 7062fi 7063rm -f core conftest.err conftest.$ac_objext \ 7064 conftest$ac_exeext conftest.$ac_ext 7065fi 7066 7067 7068 CFLAGS="$xorg_testset_save_CFLAGS" 7069 7070 eval supported=\$$cacheid 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7072$as_echo "$supported" >&6; } 7073 if test "$supported" = "yes" ; then 7074 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7075 found="yes" 7076 fi 7077 fi 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093xorg_testset_save_CFLAGS="$CFLAGS" 7094 7095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7100 $as_echo_n "(cached) " >&6 7101else 7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7103/* end confdefs.h. */ 7104int i; 7105_ACEOF 7106if ac_fn_c_try_compile "$LINENO"; then : 7107 xorg_cv_cc_flag_unknown_warning_option=yes 7108else 7109 xorg_cv_cc_flag_unknown_warning_option=no 7110fi 7111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7112fi 7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7116 CFLAGS="$xorg_testset_save_CFLAGS" 7117fi 7118 7119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7122 fi 7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7127 $as_echo_n "(cached) " >&6 7128else 7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7130/* end confdefs.h. */ 7131int i; 7132_ACEOF 7133if ac_fn_c_try_compile "$LINENO"; then : 7134 xorg_cv_cc_flag_unused_command_line_argument=yes 7135else 7136 xorg_cv_cc_flag_unused_command_line_argument=no 7137fi 7138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7139fi 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7143 CFLAGS="$xorg_testset_save_CFLAGS" 7144fi 7145 7146found="no" 7147 7148 if test $found = "no" ; then 7149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7151 fi 7152 7153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7155 fi 7156 7157 CFLAGS="$CFLAGS -Werror=nonnull" 7158 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7160$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7161 cacheid=xorg_cv_cc_flag__Werror_nonnull 7162 if eval \${$cacheid+:} false; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166/* end confdefs.h. */ 7167int i; 7168int 7169main () 7170{ 7171 7172 ; 7173 return 0; 7174} 7175_ACEOF 7176if ac_fn_c_try_link "$LINENO"; then : 7177 eval $cacheid=yes 7178else 7179 eval $cacheid=no 7180fi 7181rm -f core conftest.err conftest.$ac_objext \ 7182 conftest$ac_exeext conftest.$ac_ext 7183fi 7184 7185 7186 CFLAGS="$xorg_testset_save_CFLAGS" 7187 7188 eval supported=\$$cacheid 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7190$as_echo "$supported" >&6; } 7191 if test "$supported" = "yes" ; then 7192 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7193 found="yes" 7194 fi 7195 fi 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211xorg_testset_save_CFLAGS="$CFLAGS" 7212 7213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7218 $as_echo_n "(cached) " >&6 7219else 7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7221/* end confdefs.h. */ 7222int i; 7223_ACEOF 7224if ac_fn_c_try_compile "$LINENO"; then : 7225 xorg_cv_cc_flag_unknown_warning_option=yes 7226else 7227 xorg_cv_cc_flag_unknown_warning_option=no 7228fi 7229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7230fi 7231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7234 CFLAGS="$xorg_testset_save_CFLAGS" 7235fi 7236 7237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7240 fi 7241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7245 $as_echo_n "(cached) " >&6 7246else 7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7248/* end confdefs.h. */ 7249int i; 7250_ACEOF 7251if ac_fn_c_try_compile "$LINENO"; then : 7252 xorg_cv_cc_flag_unused_command_line_argument=yes 7253else 7254 xorg_cv_cc_flag_unused_command_line_argument=no 7255fi 7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7257fi 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7261 CFLAGS="$xorg_testset_save_CFLAGS" 7262fi 7263 7264found="no" 7265 7266 if test $found = "no" ; then 7267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7269 fi 7270 7271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7273 fi 7274 7275 CFLAGS="$CFLAGS -Werror=init-self" 7276 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7278$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7279 cacheid=xorg_cv_cc_flag__Werror_init_self 7280 if eval \${$cacheid+:} false; then : 7281 $as_echo_n "(cached) " >&6 7282else 7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7284/* end confdefs.h. */ 7285int i; 7286int 7287main () 7288{ 7289 7290 ; 7291 return 0; 7292} 7293_ACEOF 7294if ac_fn_c_try_link "$LINENO"; then : 7295 eval $cacheid=yes 7296else 7297 eval $cacheid=no 7298fi 7299rm -f core conftest.err conftest.$ac_objext \ 7300 conftest$ac_exeext conftest.$ac_ext 7301fi 7302 7303 7304 CFLAGS="$xorg_testset_save_CFLAGS" 7305 7306 eval supported=\$$cacheid 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7308$as_echo "$supported" >&6; } 7309 if test "$supported" = "yes" ; then 7310 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7311 found="yes" 7312 fi 7313 fi 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329xorg_testset_save_CFLAGS="$CFLAGS" 7330 7331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7336 $as_echo_n "(cached) " >&6 7337else 7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7339/* end confdefs.h. */ 7340int i; 7341_ACEOF 7342if ac_fn_c_try_compile "$LINENO"; then : 7343 xorg_cv_cc_flag_unknown_warning_option=yes 7344else 7345 xorg_cv_cc_flag_unknown_warning_option=no 7346fi 7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7348fi 7349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7352 CFLAGS="$xorg_testset_save_CFLAGS" 7353fi 7354 7355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7358 fi 7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7363 $as_echo_n "(cached) " >&6 7364else 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367int i; 7368_ACEOF 7369if ac_fn_c_try_compile "$LINENO"; then : 7370 xorg_cv_cc_flag_unused_command_line_argument=yes 7371else 7372 xorg_cv_cc_flag_unused_command_line_argument=no 7373fi 7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7375fi 7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7379 CFLAGS="$xorg_testset_save_CFLAGS" 7380fi 7381 7382found="no" 7383 7384 if test $found = "no" ; then 7385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7387 fi 7388 7389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7391 fi 7392 7393 CFLAGS="$CFLAGS -Werror=main" 7394 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7396$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7397 cacheid=xorg_cv_cc_flag__Werror_main 7398 if eval \${$cacheid+:} false; then : 7399 $as_echo_n "(cached) " >&6 7400else 7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7402/* end confdefs.h. */ 7403int i; 7404int 7405main () 7406{ 7407 7408 ; 7409 return 0; 7410} 7411_ACEOF 7412if ac_fn_c_try_link "$LINENO"; then : 7413 eval $cacheid=yes 7414else 7415 eval $cacheid=no 7416fi 7417rm -f core conftest.err conftest.$ac_objext \ 7418 conftest$ac_exeext conftest.$ac_ext 7419fi 7420 7421 7422 CFLAGS="$xorg_testset_save_CFLAGS" 7423 7424 eval supported=\$$cacheid 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7426$as_echo "$supported" >&6; } 7427 if test "$supported" = "yes" ; then 7428 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7429 found="yes" 7430 fi 7431 fi 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447xorg_testset_save_CFLAGS="$CFLAGS" 7448 7449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455else 7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7457/* end confdefs.h. */ 7458int i; 7459_ACEOF 7460if ac_fn_c_try_compile "$LINENO"; then : 7461 xorg_cv_cc_flag_unknown_warning_option=yes 7462else 7463 xorg_cv_cc_flag_unknown_warning_option=no 7464fi 7465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7466fi 7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7470 CFLAGS="$xorg_testset_save_CFLAGS" 7471fi 7472 7473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7476 fi 7477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7481 $as_echo_n "(cached) " >&6 7482else 7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7484/* end confdefs.h. */ 7485int i; 7486_ACEOF 7487if ac_fn_c_try_compile "$LINENO"; then : 7488 xorg_cv_cc_flag_unused_command_line_argument=yes 7489else 7490 xorg_cv_cc_flag_unused_command_line_argument=no 7491fi 7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7493fi 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7497 CFLAGS="$xorg_testset_save_CFLAGS" 7498fi 7499 7500found="no" 7501 7502 if test $found = "no" ; then 7503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7505 fi 7506 7507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7509 fi 7510 7511 CFLAGS="$CFLAGS -Werror=missing-braces" 7512 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7514$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7515 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7516 if eval \${$cacheid+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518else 7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7520/* end confdefs.h. */ 7521int i; 7522int 7523main () 7524{ 7525 7526 ; 7527 return 0; 7528} 7529_ACEOF 7530if ac_fn_c_try_link "$LINENO"; then : 7531 eval $cacheid=yes 7532else 7533 eval $cacheid=no 7534fi 7535rm -f core conftest.err conftest.$ac_objext \ 7536 conftest$ac_exeext conftest.$ac_ext 7537fi 7538 7539 7540 CFLAGS="$xorg_testset_save_CFLAGS" 7541 7542 eval supported=\$$cacheid 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7544$as_echo "$supported" >&6; } 7545 if test "$supported" = "yes" ; then 7546 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7547 found="yes" 7548 fi 7549 fi 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565xorg_testset_save_CFLAGS="$CFLAGS" 7566 7567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7572 $as_echo_n "(cached) " >&6 7573else 7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575/* end confdefs.h. */ 7576int i; 7577_ACEOF 7578if ac_fn_c_try_compile "$LINENO"; then : 7579 xorg_cv_cc_flag_unknown_warning_option=yes 7580else 7581 xorg_cv_cc_flag_unknown_warning_option=no 7582fi 7583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7584fi 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7588 CFLAGS="$xorg_testset_save_CFLAGS" 7589fi 7590 7591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7594 fi 7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7599 $as_echo_n "(cached) " >&6 7600else 7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7602/* end confdefs.h. */ 7603int i; 7604_ACEOF 7605if ac_fn_c_try_compile "$LINENO"; then : 7606 xorg_cv_cc_flag_unused_command_line_argument=yes 7607else 7608 xorg_cv_cc_flag_unused_command_line_argument=no 7609fi 7610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7611fi 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7615 CFLAGS="$xorg_testset_save_CFLAGS" 7616fi 7617 7618found="no" 7619 7620 if test $found = "no" ; then 7621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7623 fi 7624 7625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7627 fi 7628 7629 CFLAGS="$CFLAGS -Werror=sequence-point" 7630 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7632$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7633 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7634 if eval \${$cacheid+:} false; then : 7635 $as_echo_n "(cached) " >&6 7636else 7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7638/* end confdefs.h. */ 7639int i; 7640int 7641main () 7642{ 7643 7644 ; 7645 return 0; 7646} 7647_ACEOF 7648if ac_fn_c_try_link "$LINENO"; then : 7649 eval $cacheid=yes 7650else 7651 eval $cacheid=no 7652fi 7653rm -f core conftest.err conftest.$ac_objext \ 7654 conftest$ac_exeext conftest.$ac_ext 7655fi 7656 7657 7658 CFLAGS="$xorg_testset_save_CFLAGS" 7659 7660 eval supported=\$$cacheid 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7662$as_echo "$supported" >&6; } 7663 if test "$supported" = "yes" ; then 7664 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7665 found="yes" 7666 fi 7667 fi 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683xorg_testset_save_CFLAGS="$CFLAGS" 7684 7685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691else 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7693/* end confdefs.h. */ 7694int i; 7695_ACEOF 7696if ac_fn_c_try_compile "$LINENO"; then : 7697 xorg_cv_cc_flag_unknown_warning_option=yes 7698else 7699 xorg_cv_cc_flag_unknown_warning_option=no 7700fi 7701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7702fi 7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7706 CFLAGS="$xorg_testset_save_CFLAGS" 7707fi 7708 7709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7712 fi 7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7717 $as_echo_n "(cached) " >&6 7718else 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721int i; 7722_ACEOF 7723if ac_fn_c_try_compile "$LINENO"; then : 7724 xorg_cv_cc_flag_unused_command_line_argument=yes 7725else 7726 xorg_cv_cc_flag_unused_command_line_argument=no 7727fi 7728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7729fi 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7733 CFLAGS="$xorg_testset_save_CFLAGS" 7734fi 7735 7736found="no" 7737 7738 if test $found = "no" ; then 7739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7741 fi 7742 7743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7745 fi 7746 7747 CFLAGS="$CFLAGS -Werror=return-type" 7748 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7750$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7751 cacheid=xorg_cv_cc_flag__Werror_return_type 7752 if eval \${$cacheid+:} false; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7756/* end confdefs.h. */ 7757int i; 7758int 7759main () 7760{ 7761 7762 ; 7763 return 0; 7764} 7765_ACEOF 7766if ac_fn_c_try_link "$LINENO"; then : 7767 eval $cacheid=yes 7768else 7769 eval $cacheid=no 7770fi 7771rm -f core conftest.err conftest.$ac_objext \ 7772 conftest$ac_exeext conftest.$ac_ext 7773fi 7774 7775 7776 CFLAGS="$xorg_testset_save_CFLAGS" 7777 7778 eval supported=\$$cacheid 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7780$as_echo "$supported" >&6; } 7781 if test "$supported" = "yes" ; then 7782 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7783 found="yes" 7784 fi 7785 fi 7786 7787 if test $found = "no" ; then 7788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7790 fi 7791 7792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7794 fi 7795 7796 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7797 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7799$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7800 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7801 if eval \${$cacheid+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803else 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806int i; 7807int 7808main () 7809{ 7810 7811 ; 7812 return 0; 7813} 7814_ACEOF 7815if ac_fn_c_try_link "$LINENO"; then : 7816 eval $cacheid=yes 7817else 7818 eval $cacheid=no 7819fi 7820rm -f core conftest.err conftest.$ac_objext \ 7821 conftest$ac_exeext conftest.$ac_ext 7822fi 7823 7824 7825 CFLAGS="$xorg_testset_save_CFLAGS" 7826 7827 eval supported=\$$cacheid 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7829$as_echo "$supported" >&6; } 7830 if test "$supported" = "yes" ; then 7831 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7832 found="yes" 7833 fi 7834 fi 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850xorg_testset_save_CFLAGS="$CFLAGS" 7851 7852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7857 $as_echo_n "(cached) " >&6 7858else 7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7860/* end confdefs.h. */ 7861int i; 7862_ACEOF 7863if ac_fn_c_try_compile "$LINENO"; then : 7864 xorg_cv_cc_flag_unknown_warning_option=yes 7865else 7866 xorg_cv_cc_flag_unknown_warning_option=no 7867fi 7868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7869fi 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7873 CFLAGS="$xorg_testset_save_CFLAGS" 7874fi 7875 7876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7879 fi 7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7884 $as_echo_n "(cached) " >&6 7885else 7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7887/* end confdefs.h. */ 7888int i; 7889_ACEOF 7890if ac_fn_c_try_compile "$LINENO"; then : 7891 xorg_cv_cc_flag_unused_command_line_argument=yes 7892else 7893 xorg_cv_cc_flag_unused_command_line_argument=no 7894fi 7895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7896fi 7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7900 CFLAGS="$xorg_testset_save_CFLAGS" 7901fi 7902 7903found="no" 7904 7905 if test $found = "no" ; then 7906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7908 fi 7909 7910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7912 fi 7913 7914 CFLAGS="$CFLAGS -Werror=trigraphs" 7915 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7917$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7918 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7919 if eval \${$cacheid+:} false; then : 7920 $as_echo_n "(cached) " >&6 7921else 7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7923/* end confdefs.h. */ 7924int i; 7925int 7926main () 7927{ 7928 7929 ; 7930 return 0; 7931} 7932_ACEOF 7933if ac_fn_c_try_link "$LINENO"; then : 7934 eval $cacheid=yes 7935else 7936 eval $cacheid=no 7937fi 7938rm -f core conftest.err conftest.$ac_objext \ 7939 conftest$ac_exeext conftest.$ac_ext 7940fi 7941 7942 7943 CFLAGS="$xorg_testset_save_CFLAGS" 7944 7945 eval supported=\$$cacheid 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7947$as_echo "$supported" >&6; } 7948 if test "$supported" = "yes" ; then 7949 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7950 found="yes" 7951 fi 7952 fi 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968xorg_testset_save_CFLAGS="$CFLAGS" 7969 7970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978/* end confdefs.h. */ 7979int i; 7980_ACEOF 7981if ac_fn_c_try_compile "$LINENO"; then : 7982 xorg_cv_cc_flag_unknown_warning_option=yes 7983else 7984 xorg_cv_cc_flag_unknown_warning_option=no 7985fi 7986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7987fi 7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7991 CFLAGS="$xorg_testset_save_CFLAGS" 7992fi 7993 7994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7997 fi 7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8002 $as_echo_n "(cached) " >&6 8003else 8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8005/* end confdefs.h. */ 8006int i; 8007_ACEOF 8008if ac_fn_c_try_compile "$LINENO"; then : 8009 xorg_cv_cc_flag_unused_command_line_argument=yes 8010else 8011 xorg_cv_cc_flag_unused_command_line_argument=no 8012fi 8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8014fi 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8018 CFLAGS="$xorg_testset_save_CFLAGS" 8019fi 8020 8021found="no" 8022 8023 if test $found = "no" ; then 8024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8026 fi 8027 8028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8030 fi 8031 8032 CFLAGS="$CFLAGS -Werror=array-bounds" 8033 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8035$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8036 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8037 if eval \${$cacheid+:} false; then : 8038 $as_echo_n "(cached) " >&6 8039else 8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8041/* end confdefs.h. */ 8042int i; 8043int 8044main () 8045{ 8046 8047 ; 8048 return 0; 8049} 8050_ACEOF 8051if ac_fn_c_try_link "$LINENO"; then : 8052 eval $cacheid=yes 8053else 8054 eval $cacheid=no 8055fi 8056rm -f core conftest.err conftest.$ac_objext \ 8057 conftest$ac_exeext conftest.$ac_ext 8058fi 8059 8060 8061 CFLAGS="$xorg_testset_save_CFLAGS" 8062 8063 eval supported=\$$cacheid 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8065$as_echo "$supported" >&6; } 8066 if test "$supported" = "yes" ; then 8067 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8068 found="yes" 8069 fi 8070 fi 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086xorg_testset_save_CFLAGS="$CFLAGS" 8087 8088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8093 $as_echo_n "(cached) " >&6 8094else 8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8096/* end confdefs.h. */ 8097int i; 8098_ACEOF 8099if ac_fn_c_try_compile "$LINENO"; then : 8100 xorg_cv_cc_flag_unknown_warning_option=yes 8101else 8102 xorg_cv_cc_flag_unknown_warning_option=no 8103fi 8104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8105fi 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8109 CFLAGS="$xorg_testset_save_CFLAGS" 8110fi 8111 8112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8115 fi 8116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8119if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8120 $as_echo_n "(cached) " >&6 8121else 8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8123/* end confdefs.h. */ 8124int i; 8125_ACEOF 8126if ac_fn_c_try_compile "$LINENO"; then : 8127 xorg_cv_cc_flag_unused_command_line_argument=yes 8128else 8129 xorg_cv_cc_flag_unused_command_line_argument=no 8130fi 8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8132fi 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8135 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8136 CFLAGS="$xorg_testset_save_CFLAGS" 8137fi 8138 8139found="no" 8140 8141 if test $found = "no" ; then 8142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8144 fi 8145 8146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8148 fi 8149 8150 CFLAGS="$CFLAGS -Werror=write-strings" 8151 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8153$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8154 cacheid=xorg_cv_cc_flag__Werror_write_strings 8155 if eval \${$cacheid+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160int i; 8161int 8162main () 8163{ 8164 8165 ; 8166 return 0; 8167} 8168_ACEOF 8169if ac_fn_c_try_link "$LINENO"; then : 8170 eval $cacheid=yes 8171else 8172 eval $cacheid=no 8173fi 8174rm -f core conftest.err conftest.$ac_objext \ 8175 conftest$ac_exeext conftest.$ac_ext 8176fi 8177 8178 8179 CFLAGS="$xorg_testset_save_CFLAGS" 8180 8181 eval supported=\$$cacheid 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8183$as_echo "$supported" >&6; } 8184 if test "$supported" = "yes" ; then 8185 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8186 found="yes" 8187 fi 8188 fi 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204xorg_testset_save_CFLAGS="$CFLAGS" 8205 8206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8209$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8210if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214/* end confdefs.h. */ 8215int i; 8216_ACEOF 8217if ac_fn_c_try_compile "$LINENO"; then : 8218 xorg_cv_cc_flag_unknown_warning_option=yes 8219else 8220 xorg_cv_cc_flag_unknown_warning_option=no 8221fi 8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8223fi 8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8225$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8227 CFLAGS="$xorg_testset_save_CFLAGS" 8228fi 8229 8230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8233 fi 8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8236$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8237if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8241/* end confdefs.h. */ 8242int i; 8243_ACEOF 8244if ac_fn_c_try_compile "$LINENO"; then : 8245 xorg_cv_cc_flag_unused_command_line_argument=yes 8246else 8247 xorg_cv_cc_flag_unused_command_line_argument=no 8248fi 8249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8250fi 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8252$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8254 CFLAGS="$xorg_testset_save_CFLAGS" 8255fi 8256 8257found="no" 8258 8259 if test $found = "no" ; then 8260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8262 fi 8263 8264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8266 fi 8267 8268 CFLAGS="$CFLAGS -Werror=address" 8269 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8271$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8272 cacheid=xorg_cv_cc_flag__Werror_address 8273 if eval \${$cacheid+:} false; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8277/* end confdefs.h. */ 8278int i; 8279int 8280main () 8281{ 8282 8283 ; 8284 return 0; 8285} 8286_ACEOF 8287if ac_fn_c_try_link "$LINENO"; then : 8288 eval $cacheid=yes 8289else 8290 eval $cacheid=no 8291fi 8292rm -f core conftest.err conftest.$ac_objext \ 8293 conftest$ac_exeext conftest.$ac_ext 8294fi 8295 8296 8297 CFLAGS="$xorg_testset_save_CFLAGS" 8298 8299 eval supported=\$$cacheid 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8301$as_echo "$supported" >&6; } 8302 if test "$supported" = "yes" ; then 8303 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8304 found="yes" 8305 fi 8306 fi 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322xorg_testset_save_CFLAGS="$CFLAGS" 8323 8324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333int i; 8334_ACEOF 8335if ac_fn_c_try_compile "$LINENO"; then : 8336 xorg_cv_cc_flag_unknown_warning_option=yes 8337else 8338 xorg_cv_cc_flag_unknown_warning_option=no 8339fi 8340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8341fi 8342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8345 CFLAGS="$xorg_testset_save_CFLAGS" 8346fi 8347 8348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8351 fi 8352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8356 $as_echo_n "(cached) " >&6 8357else 8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8359/* end confdefs.h. */ 8360int i; 8361_ACEOF 8362if ac_fn_c_try_compile "$LINENO"; then : 8363 xorg_cv_cc_flag_unused_command_line_argument=yes 8364else 8365 xorg_cv_cc_flag_unused_command_line_argument=no 8366fi 8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8368fi 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8372 CFLAGS="$xorg_testset_save_CFLAGS" 8373fi 8374 8375found="no" 8376 8377 if test $found = "no" ; then 8378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8380 fi 8381 8382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8384 fi 8385 8386 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8387 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8389$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8390 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8391 if eval \${$cacheid+:} false; then : 8392 $as_echo_n "(cached) " >&6 8393else 8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8395/* end confdefs.h. */ 8396int i; 8397int 8398main () 8399{ 8400 8401 ; 8402 return 0; 8403} 8404_ACEOF 8405if ac_fn_c_try_link "$LINENO"; then : 8406 eval $cacheid=yes 8407else 8408 eval $cacheid=no 8409fi 8410rm -f core conftest.err conftest.$ac_objext \ 8411 conftest$ac_exeext conftest.$ac_ext 8412fi 8413 8414 8415 CFLAGS="$xorg_testset_save_CFLAGS" 8416 8417 eval supported=\$$cacheid 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8419$as_echo "$supported" >&6; } 8420 if test "$supported" = "yes" ; then 8421 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8422 found="yes" 8423 fi 8424 fi 8425 8426 if test $found = "no" ; then 8427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8429 fi 8430 8431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8433 fi 8434 8435 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8436 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8438$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8439 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8440 if eval \${$cacheid+:} false; then : 8441 $as_echo_n "(cached) " >&6 8442else 8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8444/* end confdefs.h. */ 8445int i; 8446int 8447main () 8448{ 8449 8450 ; 8451 return 0; 8452} 8453_ACEOF 8454if ac_fn_c_try_link "$LINENO"; then : 8455 eval $cacheid=yes 8456else 8457 eval $cacheid=no 8458fi 8459rm -f core conftest.err conftest.$ac_objext \ 8460 conftest$ac_exeext conftest.$ac_ext 8461fi 8462 8463 8464 CFLAGS="$xorg_testset_save_CFLAGS" 8465 8466 eval supported=\$$cacheid 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8468$as_echo "$supported" >&6; } 8469 if test "$supported" = "yes" ; then 8470 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8471 found="yes" 8472 fi 8473 fi 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489xorg_testset_save_CFLAGS="$CFLAGS" 8490 8491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8496 $as_echo_n "(cached) " >&6 8497else 8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8499/* end confdefs.h. */ 8500int i; 8501_ACEOF 8502if ac_fn_c_try_compile "$LINENO"; then : 8503 xorg_cv_cc_flag_unknown_warning_option=yes 8504else 8505 xorg_cv_cc_flag_unknown_warning_option=no 8506fi 8507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8508fi 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8512 CFLAGS="$xorg_testset_save_CFLAGS" 8513fi 8514 8515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8518 fi 8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524else 8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8526/* end confdefs.h. */ 8527int i; 8528_ACEOF 8529if ac_fn_c_try_compile "$LINENO"; then : 8530 xorg_cv_cc_flag_unused_command_line_argument=yes 8531else 8532 xorg_cv_cc_flag_unused_command_line_argument=no 8533fi 8534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8535fi 8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8539 CFLAGS="$xorg_testset_save_CFLAGS" 8540fi 8541 8542found="no" 8543 8544 if test $found = "no" ; then 8545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8547 fi 8548 8549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8551 fi 8552 8553 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8554 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8556$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8557 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8558 if eval \${$cacheid+:} false; then : 8559 $as_echo_n "(cached) " >&6 8560else 8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8562/* end confdefs.h. */ 8563int i; 8564int 8565main () 8566{ 8567 8568 ; 8569 return 0; 8570} 8571_ACEOF 8572if ac_fn_c_try_link "$LINENO"; then : 8573 eval $cacheid=yes 8574else 8575 eval $cacheid=no 8576fi 8577rm -f core conftest.err conftest.$ac_objext \ 8578 conftest$ac_exeext conftest.$ac_ext 8579fi 8580 8581 8582 CFLAGS="$xorg_testset_save_CFLAGS" 8583 8584 eval supported=\$$cacheid 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8586$as_echo "$supported" >&6; } 8587 if test "$supported" = "yes" ; then 8588 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8589 found="yes" 8590 fi 8591 fi 8592 8593 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8594else 8595{ $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 8596$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;} 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610xorg_testset_save_CFLAGS="$CFLAGS" 8611 8612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8617 $as_echo_n "(cached) " >&6 8618else 8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8620/* end confdefs.h. */ 8621int i; 8622_ACEOF 8623if ac_fn_c_try_compile "$LINENO"; then : 8624 xorg_cv_cc_flag_unknown_warning_option=yes 8625else 8626 xorg_cv_cc_flag_unknown_warning_option=no 8627fi 8628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8629fi 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8633 CFLAGS="$xorg_testset_save_CFLAGS" 8634fi 8635 8636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8639 fi 8640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8644 $as_echo_n "(cached) " >&6 8645else 8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8647/* end confdefs.h. */ 8648int i; 8649_ACEOF 8650if ac_fn_c_try_compile "$LINENO"; then : 8651 xorg_cv_cc_flag_unused_command_line_argument=yes 8652else 8653 xorg_cv_cc_flag_unused_command_line_argument=no 8654fi 8655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8656fi 8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8660 CFLAGS="$xorg_testset_save_CFLAGS" 8661fi 8662 8663found="no" 8664 8665 if test $found = "no" ; then 8666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8668 fi 8669 8670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8672 fi 8673 8674 CFLAGS="$CFLAGS -Wimplicit" 8675 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8677$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8678 cacheid=xorg_cv_cc_flag__Wimplicit 8679 if eval \${$cacheid+:} false; then : 8680 $as_echo_n "(cached) " >&6 8681else 8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683/* end confdefs.h. */ 8684int i; 8685int 8686main () 8687{ 8688 8689 ; 8690 return 0; 8691} 8692_ACEOF 8693if ac_fn_c_try_link "$LINENO"; then : 8694 eval $cacheid=yes 8695else 8696 eval $cacheid=no 8697fi 8698rm -f core conftest.err conftest.$ac_objext \ 8699 conftest$ac_exeext conftest.$ac_ext 8700fi 8701 8702 8703 CFLAGS="$xorg_testset_save_CFLAGS" 8704 8705 eval supported=\$$cacheid 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8707$as_echo "$supported" >&6; } 8708 if test "$supported" = "yes" ; then 8709 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8710 found="yes" 8711 fi 8712 fi 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728xorg_testset_save_CFLAGS="$CFLAGS" 8729 8730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8735 $as_echo_n "(cached) " >&6 8736else 8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8738/* end confdefs.h. */ 8739int i; 8740_ACEOF 8741if ac_fn_c_try_compile "$LINENO"; then : 8742 xorg_cv_cc_flag_unknown_warning_option=yes 8743else 8744 xorg_cv_cc_flag_unknown_warning_option=no 8745fi 8746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8747fi 8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8751 CFLAGS="$xorg_testset_save_CFLAGS" 8752fi 8753 8754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8757 fi 8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8762 $as_echo_n "(cached) " >&6 8763else 8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8765/* end confdefs.h. */ 8766int i; 8767_ACEOF 8768if ac_fn_c_try_compile "$LINENO"; then : 8769 xorg_cv_cc_flag_unused_command_line_argument=yes 8770else 8771 xorg_cv_cc_flag_unused_command_line_argument=no 8772fi 8773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8774fi 8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8778 CFLAGS="$xorg_testset_save_CFLAGS" 8779fi 8780 8781found="no" 8782 8783 if test $found = "no" ; then 8784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8786 fi 8787 8788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8790 fi 8791 8792 CFLAGS="$CFLAGS -Wnonnull" 8793 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8795$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8796 cacheid=xorg_cv_cc_flag__Wnonnull 8797 if eval \${$cacheid+:} false; then : 8798 $as_echo_n "(cached) " >&6 8799else 8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8801/* end confdefs.h. */ 8802int i; 8803int 8804main () 8805{ 8806 8807 ; 8808 return 0; 8809} 8810_ACEOF 8811if ac_fn_c_try_link "$LINENO"; then : 8812 eval $cacheid=yes 8813else 8814 eval $cacheid=no 8815fi 8816rm -f core conftest.err conftest.$ac_objext \ 8817 conftest$ac_exeext conftest.$ac_ext 8818fi 8819 8820 8821 CFLAGS="$xorg_testset_save_CFLAGS" 8822 8823 eval supported=\$$cacheid 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8825$as_echo "$supported" >&6; } 8826 if test "$supported" = "yes" ; then 8827 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8828 found="yes" 8829 fi 8830 fi 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846xorg_testset_save_CFLAGS="$CFLAGS" 8847 8848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8853 $as_echo_n "(cached) " >&6 8854else 8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8856/* end confdefs.h. */ 8857int i; 8858_ACEOF 8859if ac_fn_c_try_compile "$LINENO"; then : 8860 xorg_cv_cc_flag_unknown_warning_option=yes 8861else 8862 xorg_cv_cc_flag_unknown_warning_option=no 8863fi 8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8865fi 8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8869 CFLAGS="$xorg_testset_save_CFLAGS" 8870fi 8871 8872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8875 fi 8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8880 $as_echo_n "(cached) " >&6 8881else 8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883/* end confdefs.h. */ 8884int i; 8885_ACEOF 8886if ac_fn_c_try_compile "$LINENO"; then : 8887 xorg_cv_cc_flag_unused_command_line_argument=yes 8888else 8889 xorg_cv_cc_flag_unused_command_line_argument=no 8890fi 8891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8892fi 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8896 CFLAGS="$xorg_testset_save_CFLAGS" 8897fi 8898 8899found="no" 8900 8901 if test $found = "no" ; then 8902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8904 fi 8905 8906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8908 fi 8909 8910 CFLAGS="$CFLAGS -Winit-self" 8911 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8913$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8914 cacheid=xorg_cv_cc_flag__Winit_self 8915 if eval \${$cacheid+:} false; then : 8916 $as_echo_n "(cached) " >&6 8917else 8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8919/* end confdefs.h. */ 8920int i; 8921int 8922main () 8923{ 8924 8925 ; 8926 return 0; 8927} 8928_ACEOF 8929if ac_fn_c_try_link "$LINENO"; then : 8930 eval $cacheid=yes 8931else 8932 eval $cacheid=no 8933fi 8934rm -f core conftest.err conftest.$ac_objext \ 8935 conftest$ac_exeext conftest.$ac_ext 8936fi 8937 8938 8939 CFLAGS="$xorg_testset_save_CFLAGS" 8940 8941 eval supported=\$$cacheid 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8943$as_echo "$supported" >&6; } 8944 if test "$supported" = "yes" ; then 8945 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8946 found="yes" 8947 fi 8948 fi 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964xorg_testset_save_CFLAGS="$CFLAGS" 8965 8966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8971 $as_echo_n "(cached) " >&6 8972else 8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8974/* end confdefs.h. */ 8975int i; 8976_ACEOF 8977if ac_fn_c_try_compile "$LINENO"; then : 8978 xorg_cv_cc_flag_unknown_warning_option=yes 8979else 8980 xorg_cv_cc_flag_unknown_warning_option=no 8981fi 8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8983fi 8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8987 CFLAGS="$xorg_testset_save_CFLAGS" 8988fi 8989 8990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8993 fi 8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8998 $as_echo_n "(cached) " >&6 8999else 9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9001/* end confdefs.h. */ 9002int i; 9003_ACEOF 9004if ac_fn_c_try_compile "$LINENO"; then : 9005 xorg_cv_cc_flag_unused_command_line_argument=yes 9006else 9007 xorg_cv_cc_flag_unused_command_line_argument=no 9008fi 9009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9010fi 9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9014 CFLAGS="$xorg_testset_save_CFLAGS" 9015fi 9016 9017found="no" 9018 9019 if test $found = "no" ; then 9020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9022 fi 9023 9024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9026 fi 9027 9028 CFLAGS="$CFLAGS -Wmain" 9029 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9031$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9032 cacheid=xorg_cv_cc_flag__Wmain 9033 if eval \${$cacheid+:} false; then : 9034 $as_echo_n "(cached) " >&6 9035else 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037/* end confdefs.h. */ 9038int i; 9039int 9040main () 9041{ 9042 9043 ; 9044 return 0; 9045} 9046_ACEOF 9047if ac_fn_c_try_link "$LINENO"; then : 9048 eval $cacheid=yes 9049else 9050 eval $cacheid=no 9051fi 9052rm -f core conftest.err conftest.$ac_objext \ 9053 conftest$ac_exeext conftest.$ac_ext 9054fi 9055 9056 9057 CFLAGS="$xorg_testset_save_CFLAGS" 9058 9059 eval supported=\$$cacheid 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9061$as_echo "$supported" >&6; } 9062 if test "$supported" = "yes" ; then 9063 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9064 found="yes" 9065 fi 9066 fi 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082xorg_testset_save_CFLAGS="$CFLAGS" 9083 9084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9089 $as_echo_n "(cached) " >&6 9090else 9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9092/* end confdefs.h. */ 9093int i; 9094_ACEOF 9095if ac_fn_c_try_compile "$LINENO"; then : 9096 xorg_cv_cc_flag_unknown_warning_option=yes 9097else 9098 xorg_cv_cc_flag_unknown_warning_option=no 9099fi 9100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9101fi 9102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9105 CFLAGS="$xorg_testset_save_CFLAGS" 9106fi 9107 9108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9111 fi 9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9119/* end confdefs.h. */ 9120int i; 9121_ACEOF 9122if ac_fn_c_try_compile "$LINENO"; then : 9123 xorg_cv_cc_flag_unused_command_line_argument=yes 9124else 9125 xorg_cv_cc_flag_unused_command_line_argument=no 9126fi 9127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9128fi 9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9132 CFLAGS="$xorg_testset_save_CFLAGS" 9133fi 9134 9135found="no" 9136 9137 if test $found = "no" ; then 9138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9140 fi 9141 9142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9144 fi 9145 9146 CFLAGS="$CFLAGS -Wmissing-braces" 9147 9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9149$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9150 cacheid=xorg_cv_cc_flag__Wmissing_braces 9151 if eval \${$cacheid+:} false; then : 9152 $as_echo_n "(cached) " >&6 9153else 9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9155/* end confdefs.h. */ 9156int i; 9157int 9158main () 9159{ 9160 9161 ; 9162 return 0; 9163} 9164_ACEOF 9165if ac_fn_c_try_link "$LINENO"; then : 9166 eval $cacheid=yes 9167else 9168 eval $cacheid=no 9169fi 9170rm -f core conftest.err conftest.$ac_objext \ 9171 conftest$ac_exeext conftest.$ac_ext 9172fi 9173 9174 9175 CFLAGS="$xorg_testset_save_CFLAGS" 9176 9177 eval supported=\$$cacheid 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9179$as_echo "$supported" >&6; } 9180 if test "$supported" = "yes" ; then 9181 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9182 found="yes" 9183 fi 9184 fi 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200xorg_testset_save_CFLAGS="$CFLAGS" 9201 9202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9207 $as_echo_n "(cached) " >&6 9208else 9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9210/* end confdefs.h. */ 9211int i; 9212_ACEOF 9213if ac_fn_c_try_compile "$LINENO"; then : 9214 xorg_cv_cc_flag_unknown_warning_option=yes 9215else 9216 xorg_cv_cc_flag_unknown_warning_option=no 9217fi 9218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9219fi 9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9223 CFLAGS="$xorg_testset_save_CFLAGS" 9224fi 9225 9226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9229 fi 9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9234 $as_echo_n "(cached) " >&6 9235else 9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9237/* end confdefs.h. */ 9238int i; 9239_ACEOF 9240if ac_fn_c_try_compile "$LINENO"; then : 9241 xorg_cv_cc_flag_unused_command_line_argument=yes 9242else 9243 xorg_cv_cc_flag_unused_command_line_argument=no 9244fi 9245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9246fi 9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9250 CFLAGS="$xorg_testset_save_CFLAGS" 9251fi 9252 9253found="no" 9254 9255 if test $found = "no" ; then 9256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9258 fi 9259 9260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9262 fi 9263 9264 CFLAGS="$CFLAGS -Wsequence-point" 9265 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9267$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9268 cacheid=xorg_cv_cc_flag__Wsequence_point 9269 if eval \${$cacheid+:} false; then : 9270 $as_echo_n "(cached) " >&6 9271else 9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9273/* end confdefs.h. */ 9274int i; 9275int 9276main () 9277{ 9278 9279 ; 9280 return 0; 9281} 9282_ACEOF 9283if ac_fn_c_try_link "$LINENO"; then : 9284 eval $cacheid=yes 9285else 9286 eval $cacheid=no 9287fi 9288rm -f core conftest.err conftest.$ac_objext \ 9289 conftest$ac_exeext conftest.$ac_ext 9290fi 9291 9292 9293 CFLAGS="$xorg_testset_save_CFLAGS" 9294 9295 eval supported=\$$cacheid 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9297$as_echo "$supported" >&6; } 9298 if test "$supported" = "yes" ; then 9299 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9300 found="yes" 9301 fi 9302 fi 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318xorg_testset_save_CFLAGS="$CFLAGS" 9319 9320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9325 $as_echo_n "(cached) " >&6 9326else 9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9328/* end confdefs.h. */ 9329int i; 9330_ACEOF 9331if ac_fn_c_try_compile "$LINENO"; then : 9332 xorg_cv_cc_flag_unknown_warning_option=yes 9333else 9334 xorg_cv_cc_flag_unknown_warning_option=no 9335fi 9336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9337fi 9338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9341 CFLAGS="$xorg_testset_save_CFLAGS" 9342fi 9343 9344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9347 fi 9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9352 $as_echo_n "(cached) " >&6 9353else 9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9355/* end confdefs.h. */ 9356int i; 9357_ACEOF 9358if ac_fn_c_try_compile "$LINENO"; then : 9359 xorg_cv_cc_flag_unused_command_line_argument=yes 9360else 9361 xorg_cv_cc_flag_unused_command_line_argument=no 9362fi 9363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9364fi 9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9368 CFLAGS="$xorg_testset_save_CFLAGS" 9369fi 9370 9371found="no" 9372 9373 if test $found = "no" ; then 9374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9376 fi 9377 9378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9380 fi 9381 9382 CFLAGS="$CFLAGS -Wreturn-type" 9383 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9385$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9386 cacheid=xorg_cv_cc_flag__Wreturn_type 9387 if eval \${$cacheid+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9391/* end confdefs.h. */ 9392int i; 9393int 9394main () 9395{ 9396 9397 ; 9398 return 0; 9399} 9400_ACEOF 9401if ac_fn_c_try_link "$LINENO"; then : 9402 eval $cacheid=yes 9403else 9404 eval $cacheid=no 9405fi 9406rm -f core conftest.err conftest.$ac_objext \ 9407 conftest$ac_exeext conftest.$ac_ext 9408fi 9409 9410 9411 CFLAGS="$xorg_testset_save_CFLAGS" 9412 9413 eval supported=\$$cacheid 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9415$as_echo "$supported" >&6; } 9416 if test "$supported" = "yes" ; then 9417 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9418 found="yes" 9419 fi 9420 fi 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436xorg_testset_save_CFLAGS="$CFLAGS" 9437 9438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9443 $as_echo_n "(cached) " >&6 9444else 9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9446/* end confdefs.h. */ 9447int i; 9448_ACEOF 9449if ac_fn_c_try_compile "$LINENO"; then : 9450 xorg_cv_cc_flag_unknown_warning_option=yes 9451else 9452 xorg_cv_cc_flag_unknown_warning_option=no 9453fi 9454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9455fi 9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9459 CFLAGS="$xorg_testset_save_CFLAGS" 9460fi 9461 9462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9465 fi 9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9470 $as_echo_n "(cached) " >&6 9471else 9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9473/* end confdefs.h. */ 9474int i; 9475_ACEOF 9476if ac_fn_c_try_compile "$LINENO"; then : 9477 xorg_cv_cc_flag_unused_command_line_argument=yes 9478else 9479 xorg_cv_cc_flag_unused_command_line_argument=no 9480fi 9481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9482fi 9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9486 CFLAGS="$xorg_testset_save_CFLAGS" 9487fi 9488 9489found="no" 9490 9491 if test $found = "no" ; then 9492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9494 fi 9495 9496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9498 fi 9499 9500 CFLAGS="$CFLAGS -Wtrigraphs" 9501 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9503$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9504 cacheid=xorg_cv_cc_flag__Wtrigraphs 9505 if eval \${$cacheid+:} false; then : 9506 $as_echo_n "(cached) " >&6 9507else 9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9509/* end confdefs.h. */ 9510int i; 9511int 9512main () 9513{ 9514 9515 ; 9516 return 0; 9517} 9518_ACEOF 9519if ac_fn_c_try_link "$LINENO"; then : 9520 eval $cacheid=yes 9521else 9522 eval $cacheid=no 9523fi 9524rm -f core conftest.err conftest.$ac_objext \ 9525 conftest$ac_exeext conftest.$ac_ext 9526fi 9527 9528 9529 CFLAGS="$xorg_testset_save_CFLAGS" 9530 9531 eval supported=\$$cacheid 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9533$as_echo "$supported" >&6; } 9534 if test "$supported" = "yes" ; then 9535 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9536 found="yes" 9537 fi 9538 fi 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554xorg_testset_save_CFLAGS="$CFLAGS" 9555 9556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9561 $as_echo_n "(cached) " >&6 9562else 9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9564/* end confdefs.h. */ 9565int i; 9566_ACEOF 9567if ac_fn_c_try_compile "$LINENO"; then : 9568 xorg_cv_cc_flag_unknown_warning_option=yes 9569else 9570 xorg_cv_cc_flag_unknown_warning_option=no 9571fi 9572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9573fi 9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9577 CFLAGS="$xorg_testset_save_CFLAGS" 9578fi 9579 9580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583 fi 9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9588 $as_echo_n "(cached) " >&6 9589else 9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9591/* end confdefs.h. */ 9592int i; 9593_ACEOF 9594if ac_fn_c_try_compile "$LINENO"; then : 9595 xorg_cv_cc_flag_unused_command_line_argument=yes 9596else 9597 xorg_cv_cc_flag_unused_command_line_argument=no 9598fi 9599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9600fi 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9604 CFLAGS="$xorg_testset_save_CFLAGS" 9605fi 9606 9607found="no" 9608 9609 if test $found = "no" ; then 9610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9612 fi 9613 9614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9616 fi 9617 9618 CFLAGS="$CFLAGS -Warray-bounds" 9619 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9621$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9622 cacheid=xorg_cv_cc_flag__Warray_bounds 9623 if eval \${$cacheid+:} false; then : 9624 $as_echo_n "(cached) " >&6 9625else 9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9627/* end confdefs.h. */ 9628int i; 9629int 9630main () 9631{ 9632 9633 ; 9634 return 0; 9635} 9636_ACEOF 9637if ac_fn_c_try_link "$LINENO"; then : 9638 eval $cacheid=yes 9639else 9640 eval $cacheid=no 9641fi 9642rm -f core conftest.err conftest.$ac_objext \ 9643 conftest$ac_exeext conftest.$ac_ext 9644fi 9645 9646 9647 CFLAGS="$xorg_testset_save_CFLAGS" 9648 9649 eval supported=\$$cacheid 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9651$as_echo "$supported" >&6; } 9652 if test "$supported" = "yes" ; then 9653 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9654 found="yes" 9655 fi 9656 fi 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672xorg_testset_save_CFLAGS="$CFLAGS" 9673 9674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9679 $as_echo_n "(cached) " >&6 9680else 9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9682/* end confdefs.h. */ 9683int i; 9684_ACEOF 9685if ac_fn_c_try_compile "$LINENO"; then : 9686 xorg_cv_cc_flag_unknown_warning_option=yes 9687else 9688 xorg_cv_cc_flag_unknown_warning_option=no 9689fi 9690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9691fi 9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9695 CFLAGS="$xorg_testset_save_CFLAGS" 9696fi 9697 9698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9701 fi 9702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9706 $as_echo_n "(cached) " >&6 9707else 9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9709/* end confdefs.h. */ 9710int i; 9711_ACEOF 9712if ac_fn_c_try_compile "$LINENO"; then : 9713 xorg_cv_cc_flag_unused_command_line_argument=yes 9714else 9715 xorg_cv_cc_flag_unused_command_line_argument=no 9716fi 9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9718fi 9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9722 CFLAGS="$xorg_testset_save_CFLAGS" 9723fi 9724 9725found="no" 9726 9727 if test $found = "no" ; then 9728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9730 fi 9731 9732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9734 fi 9735 9736 CFLAGS="$CFLAGS -Wwrite-strings" 9737 9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9739$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9740 cacheid=xorg_cv_cc_flag__Wwrite_strings 9741 if eval \${$cacheid+:} false; then : 9742 $as_echo_n "(cached) " >&6 9743else 9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9745/* end confdefs.h. */ 9746int i; 9747int 9748main () 9749{ 9750 9751 ; 9752 return 0; 9753} 9754_ACEOF 9755if ac_fn_c_try_link "$LINENO"; then : 9756 eval $cacheid=yes 9757else 9758 eval $cacheid=no 9759fi 9760rm -f core conftest.err conftest.$ac_objext \ 9761 conftest$ac_exeext conftest.$ac_ext 9762fi 9763 9764 9765 CFLAGS="$xorg_testset_save_CFLAGS" 9766 9767 eval supported=\$$cacheid 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9769$as_echo "$supported" >&6; } 9770 if test "$supported" = "yes" ; then 9771 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9772 found="yes" 9773 fi 9774 fi 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790xorg_testset_save_CFLAGS="$CFLAGS" 9791 9792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9797 $as_echo_n "(cached) " >&6 9798else 9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9800/* end confdefs.h. */ 9801int i; 9802_ACEOF 9803if ac_fn_c_try_compile "$LINENO"; then : 9804 xorg_cv_cc_flag_unknown_warning_option=yes 9805else 9806 xorg_cv_cc_flag_unknown_warning_option=no 9807fi 9808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9809fi 9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9813 CFLAGS="$xorg_testset_save_CFLAGS" 9814fi 9815 9816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819 fi 9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9824 $as_echo_n "(cached) " >&6 9825else 9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827/* end confdefs.h. */ 9828int i; 9829_ACEOF 9830if ac_fn_c_try_compile "$LINENO"; then : 9831 xorg_cv_cc_flag_unused_command_line_argument=yes 9832else 9833 xorg_cv_cc_flag_unused_command_line_argument=no 9834fi 9835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9836fi 9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9840 CFLAGS="$xorg_testset_save_CFLAGS" 9841fi 9842 9843found="no" 9844 9845 if test $found = "no" ; then 9846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9848 fi 9849 9850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9852 fi 9853 9854 CFLAGS="$CFLAGS -Waddress" 9855 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9857$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9858 cacheid=xorg_cv_cc_flag__Waddress 9859 if eval \${$cacheid+:} false; then : 9860 $as_echo_n "(cached) " >&6 9861else 9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9863/* end confdefs.h. */ 9864int i; 9865int 9866main () 9867{ 9868 9869 ; 9870 return 0; 9871} 9872_ACEOF 9873if ac_fn_c_try_link "$LINENO"; then : 9874 eval $cacheid=yes 9875else 9876 eval $cacheid=no 9877fi 9878rm -f core conftest.err conftest.$ac_objext \ 9879 conftest$ac_exeext conftest.$ac_ext 9880fi 9881 9882 9883 CFLAGS="$xorg_testset_save_CFLAGS" 9884 9885 eval supported=\$$cacheid 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9887$as_echo "$supported" >&6; } 9888 if test "$supported" = "yes" ; then 9889 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9890 found="yes" 9891 fi 9892 fi 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908xorg_testset_save_CFLAGS="$CFLAGS" 9909 9910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9915 $as_echo_n "(cached) " >&6 9916else 9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9918/* end confdefs.h. */ 9919int i; 9920_ACEOF 9921if ac_fn_c_try_compile "$LINENO"; then : 9922 xorg_cv_cc_flag_unknown_warning_option=yes 9923else 9924 xorg_cv_cc_flag_unknown_warning_option=no 9925fi 9926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9927fi 9928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9931 CFLAGS="$xorg_testset_save_CFLAGS" 9932fi 9933 9934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9937 fi 9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943else 9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9945/* end confdefs.h. */ 9946int i; 9947_ACEOF 9948if ac_fn_c_try_compile "$LINENO"; then : 9949 xorg_cv_cc_flag_unused_command_line_argument=yes 9950else 9951 xorg_cv_cc_flag_unused_command_line_argument=no 9952fi 9953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9954fi 9955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9958 CFLAGS="$xorg_testset_save_CFLAGS" 9959fi 9960 9961found="no" 9962 9963 if test $found = "no" ; then 9964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9966 fi 9967 9968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9970 fi 9971 9972 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9973 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9975$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9976 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9977 if eval \${$cacheid+:} false; then : 9978 $as_echo_n "(cached) " >&6 9979else 9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9981/* end confdefs.h. */ 9982int i; 9983int 9984main () 9985{ 9986 9987 ; 9988 return 0; 9989} 9990_ACEOF 9991if ac_fn_c_try_link "$LINENO"; then : 9992 eval $cacheid=yes 9993else 9994 eval $cacheid=no 9995fi 9996rm -f core conftest.err conftest.$ac_objext \ 9997 conftest$ac_exeext conftest.$ac_ext 9998fi 9999 10000 10001 CFLAGS="$xorg_testset_save_CFLAGS" 10002 10003 eval supported=\$$cacheid 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10005$as_echo "$supported" >&6; } 10006 if test "$supported" = "yes" ; then 10007 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10008 found="yes" 10009 fi 10010 fi 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026xorg_testset_save_CFLAGS="$CFLAGS" 10027 10028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10033 $as_echo_n "(cached) " >&6 10034else 10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10036/* end confdefs.h. */ 10037int i; 10038_ACEOF 10039if ac_fn_c_try_compile "$LINENO"; then : 10040 xorg_cv_cc_flag_unknown_warning_option=yes 10041else 10042 xorg_cv_cc_flag_unknown_warning_option=no 10043fi 10044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10045fi 10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10049 CFLAGS="$xorg_testset_save_CFLAGS" 10050fi 10051 10052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10055 fi 10056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10060 $as_echo_n "(cached) " >&6 10061else 10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10063/* end confdefs.h. */ 10064int i; 10065_ACEOF 10066if ac_fn_c_try_compile "$LINENO"; then : 10067 xorg_cv_cc_flag_unused_command_line_argument=yes 10068else 10069 xorg_cv_cc_flag_unused_command_line_argument=no 10070fi 10071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10072fi 10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10076 CFLAGS="$xorg_testset_save_CFLAGS" 10077fi 10078 10079found="no" 10080 10081 if test $found = "no" ; then 10082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10084 fi 10085 10086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10088 fi 10089 10090 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10091 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10093$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10094 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10095 if eval \${$cacheid+:} false; then : 10096 $as_echo_n "(cached) " >&6 10097else 10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10099/* end confdefs.h. */ 10100int i; 10101int 10102main () 10103{ 10104 10105 ; 10106 return 0; 10107} 10108_ACEOF 10109if ac_fn_c_try_link "$LINENO"; then : 10110 eval $cacheid=yes 10111else 10112 eval $cacheid=no 10113fi 10114rm -f core conftest.err conftest.$ac_objext \ 10115 conftest$ac_exeext conftest.$ac_ext 10116fi 10117 10118 10119 CFLAGS="$xorg_testset_save_CFLAGS" 10120 10121 eval supported=\$$cacheid 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10123$as_echo "$supported" >&6; } 10124 if test "$supported" = "yes" ; then 10125 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10126 found="yes" 10127 fi 10128 fi 10129 10130 10131fi 10132 10133 10134 10135 10136 10137 10138 10139 CWARNFLAGS="$BASE_CFLAGS" 10140 if test "x$GCC" = xyes ; then 10141 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10142 fi 10143 10144 10145 10146 10147 10148 10149 10150 10151# Check whether --enable-strict-compilation was given. 10152if test "${enable_strict_compilation+set}" = set; then : 10153 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10154else 10155 STRICT_COMPILE=no 10156fi 10157 10158 10159 10160 10161 10162 10163STRICT_CFLAGS="" 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177xorg_testset_save_CFLAGS="$CFLAGS" 10178 10179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10184 $as_echo_n "(cached) " >&6 10185else 10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10187/* end confdefs.h. */ 10188int i; 10189_ACEOF 10190if ac_fn_c_try_compile "$LINENO"; then : 10191 xorg_cv_cc_flag_unknown_warning_option=yes 10192else 10193 xorg_cv_cc_flag_unknown_warning_option=no 10194fi 10195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10196fi 10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10200 CFLAGS="$xorg_testset_save_CFLAGS" 10201fi 10202 10203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10206 fi 10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10211 $as_echo_n "(cached) " >&6 10212else 10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214/* end confdefs.h. */ 10215int i; 10216_ACEOF 10217if ac_fn_c_try_compile "$LINENO"; then : 10218 xorg_cv_cc_flag_unused_command_line_argument=yes 10219else 10220 xorg_cv_cc_flag_unused_command_line_argument=no 10221fi 10222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10223fi 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10227 CFLAGS="$xorg_testset_save_CFLAGS" 10228fi 10229 10230found="no" 10231 10232 if test $found = "no" ; then 10233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10235 fi 10236 10237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10239 fi 10240 10241 CFLAGS="$CFLAGS -pedantic" 10242 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10244$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10245 cacheid=xorg_cv_cc_flag__pedantic 10246 if eval \${$cacheid+:} false; then : 10247 $as_echo_n "(cached) " >&6 10248else 10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10250/* end confdefs.h. */ 10251int i; 10252int 10253main () 10254{ 10255 10256 ; 10257 return 0; 10258} 10259_ACEOF 10260if ac_fn_c_try_link "$LINENO"; then : 10261 eval $cacheid=yes 10262else 10263 eval $cacheid=no 10264fi 10265rm -f core conftest.err conftest.$ac_objext \ 10266 conftest$ac_exeext conftest.$ac_ext 10267fi 10268 10269 10270 CFLAGS="$xorg_testset_save_CFLAGS" 10271 10272 eval supported=\$$cacheid 10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10274$as_echo "$supported" >&6; } 10275 if test "$supported" = "yes" ; then 10276 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10277 found="yes" 10278 fi 10279 fi 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295xorg_testset_save_CFLAGS="$CFLAGS" 10296 10297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10302 $as_echo_n "(cached) " >&6 10303else 10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10305/* end confdefs.h. */ 10306int i; 10307_ACEOF 10308if ac_fn_c_try_compile "$LINENO"; then : 10309 xorg_cv_cc_flag_unknown_warning_option=yes 10310else 10311 xorg_cv_cc_flag_unknown_warning_option=no 10312fi 10313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10314fi 10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10318 CFLAGS="$xorg_testset_save_CFLAGS" 10319fi 10320 10321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10324 fi 10325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10329 $as_echo_n "(cached) " >&6 10330else 10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10332/* end confdefs.h. */ 10333int i; 10334_ACEOF 10335if ac_fn_c_try_compile "$LINENO"; then : 10336 xorg_cv_cc_flag_unused_command_line_argument=yes 10337else 10338 xorg_cv_cc_flag_unused_command_line_argument=no 10339fi 10340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10341fi 10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10345 CFLAGS="$xorg_testset_save_CFLAGS" 10346fi 10347 10348found="no" 10349 10350 if test $found = "no" ; then 10351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10353 fi 10354 10355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10357 fi 10358 10359 CFLAGS="$CFLAGS -Werror" 10360 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10362$as_echo_n "checking if $CC supports -Werror... " >&6; } 10363 cacheid=xorg_cv_cc_flag__Werror 10364 if eval \${$cacheid+:} false; then : 10365 $as_echo_n "(cached) " >&6 10366else 10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10368/* end confdefs.h. */ 10369int i; 10370int 10371main () 10372{ 10373 10374 ; 10375 return 0; 10376} 10377_ACEOF 10378if ac_fn_c_try_link "$LINENO"; then : 10379 eval $cacheid=yes 10380else 10381 eval $cacheid=no 10382fi 10383rm -f core conftest.err conftest.$ac_objext \ 10384 conftest$ac_exeext conftest.$ac_ext 10385fi 10386 10387 10388 CFLAGS="$xorg_testset_save_CFLAGS" 10389 10390 eval supported=\$$cacheid 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10392$as_echo "$supported" >&6; } 10393 if test "$supported" = "yes" ; then 10394 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10395 found="yes" 10396 fi 10397 fi 10398 10399 if test $found = "no" ; then 10400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10402 fi 10403 10404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10406 fi 10407 10408 CFLAGS="$CFLAGS -errwarn" 10409 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10411$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10412 cacheid=xorg_cv_cc_flag__errwarn 10413 if eval \${$cacheid+:} false; then : 10414 $as_echo_n "(cached) " >&6 10415else 10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418int i; 10419int 10420main () 10421{ 10422 10423 ; 10424 return 0; 10425} 10426_ACEOF 10427if ac_fn_c_try_link "$LINENO"; then : 10428 eval $cacheid=yes 10429else 10430 eval $cacheid=no 10431fi 10432rm -f core conftest.err conftest.$ac_objext \ 10433 conftest$ac_exeext conftest.$ac_ext 10434fi 10435 10436 10437 CFLAGS="$xorg_testset_save_CFLAGS" 10438 10439 eval supported=\$$cacheid 10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10441$as_echo "$supported" >&6; } 10442 if test "$supported" = "yes" ; then 10443 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10444 found="yes" 10445 fi 10446 fi 10447 10448 10449 10450# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10451# activate it with -Werror, so we add it here explicitly. 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465xorg_testset_save_CFLAGS="$CFLAGS" 10466 10467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10472 $as_echo_n "(cached) " >&6 10473else 10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10475/* end confdefs.h. */ 10476int i; 10477_ACEOF 10478if ac_fn_c_try_compile "$LINENO"; then : 10479 xorg_cv_cc_flag_unknown_warning_option=yes 10480else 10481 xorg_cv_cc_flag_unknown_warning_option=no 10482fi 10483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10484fi 10485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10488 CFLAGS="$xorg_testset_save_CFLAGS" 10489fi 10490 10491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10494 fi 10495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10499 $as_echo_n "(cached) " >&6 10500else 10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10502/* end confdefs.h. */ 10503int i; 10504_ACEOF 10505if ac_fn_c_try_compile "$LINENO"; then : 10506 xorg_cv_cc_flag_unused_command_line_argument=yes 10507else 10508 xorg_cv_cc_flag_unused_command_line_argument=no 10509fi 10510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10511fi 10512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10515 CFLAGS="$xorg_testset_save_CFLAGS" 10516fi 10517 10518found="no" 10519 10520 if test $found = "no" ; then 10521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10523 fi 10524 10525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10527 fi 10528 10529 CFLAGS="$CFLAGS -Werror=attributes" 10530 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10532$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10533 cacheid=xorg_cv_cc_flag__Werror_attributes 10534 if eval \${$cacheid+:} false; then : 10535 $as_echo_n "(cached) " >&6 10536else 10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10538/* end confdefs.h. */ 10539int i; 10540int 10541main () 10542{ 10543 10544 ; 10545 return 0; 10546} 10547_ACEOF 10548if ac_fn_c_try_link "$LINENO"; then : 10549 eval $cacheid=yes 10550else 10551 eval $cacheid=no 10552fi 10553rm -f core conftest.err conftest.$ac_objext \ 10554 conftest$ac_exeext conftest.$ac_ext 10555fi 10556 10557 10558 CFLAGS="$xorg_testset_save_CFLAGS" 10559 10560 eval supported=\$$cacheid 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10562$as_echo "$supported" >&6; } 10563 if test "$supported" = "yes" ; then 10564 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10565 found="yes" 10566 fi 10567 fi 10568 10569 10570 10571if test "x$STRICT_COMPILE" = "xyes"; then 10572 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10573 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10574fi 10575 10576 10577 10578 10579 10580 10581cat >>confdefs.h <<_ACEOF 10582#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10583_ACEOF 10584 10585 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10586 if test "x$PVM" = "x"; then 10587 PVM="0" 10588 fi 10589 10590cat >>confdefs.h <<_ACEOF 10591#define PACKAGE_VERSION_MINOR $PVM 10592_ACEOF 10593 10594 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10595 if test "x$PVP" = "x"; then 10596 PVP="0" 10597 fi 10598 10599cat >>confdefs.h <<_ACEOF 10600#define PACKAGE_VERSION_PATCHLEVEL $PVP 10601_ACEOF 10602 10603 10604 10605CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10606mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10607|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10608echo 'git directory not found: installing possibly empty changelog.' >&2)" 10609 10610 10611 10612 10613macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10614INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10615mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10616|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10617echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10618 10619 10620 10621 10622 10623 10624if test x$APP_MAN_SUFFIX = x ; then 10625 APP_MAN_SUFFIX=1 10626fi 10627if test x$APP_MAN_DIR = x ; then 10628 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10629fi 10630 10631if test x$LIB_MAN_SUFFIX = x ; then 10632 LIB_MAN_SUFFIX=3 10633fi 10634if test x$LIB_MAN_DIR = x ; then 10635 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10636fi 10637 10638if test x$FILE_MAN_SUFFIX = x ; then 10639 case $host_os in 10640 # Solaris 2.0 - 11 use SysV man page sections 10641 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10642 *) FILE_MAN_SUFFIX=5 ;; 10643 esac 10644fi 10645if test x$FILE_MAN_DIR = x ; then 10646 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10647fi 10648 10649if test x$MISC_MAN_SUFFIX = x ; then 10650 case $host_os in 10651 # Solaris 2.0 - 11 use SysV man page sections 10652 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10653 *) MISC_MAN_SUFFIX=7 ;; 10654 esac 10655fi 10656if test x$MISC_MAN_DIR = x ; then 10657 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10658fi 10659 10660if test x$DRIVER_MAN_SUFFIX = x ; then 10661 case $host_os in 10662 # Solaris 2.0 - 11 use SysV man page sections 10663 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10664 *) DRIVER_MAN_SUFFIX=4 ;; 10665 esac 10666fi 10667if test x$DRIVER_MAN_DIR = x ; then 10668 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10669fi 10670 10671if test x$ADMIN_MAN_SUFFIX = x ; then 10672 case $host_os in 10673 # Solaris 2.0 - 11 use SysV man page sections 10674 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10675 *) ADMIN_MAN_SUFFIX=8 ;; 10676 esac 10677fi 10678if test x$ADMIN_MAN_DIR = x ; then 10679 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10680fi 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696XORG_MAN_PAGE="X Version 11" 10697 10698MAN_SUBSTS="\ 10699 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10700 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10701 -e 's|__xservername__|Xorg|g' \ 10702 -e 's|__xconfigfile__|xorg.conf|g' \ 10703 -e 's|__projectroot__|\$(prefix)|g' \ 10704 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10705 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10706 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10707 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10708 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10709 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10710 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10711 10712 10713 10714# Check whether --enable-silent-rules was given. 10715if test "${enable_silent_rules+set}" = set; then : 10716 enableval=$enable_silent_rules; 10717fi 10718 10719case $enable_silent_rules in # ((( 10720 yes) AM_DEFAULT_VERBOSITY=0;; 10721 no) AM_DEFAULT_VERBOSITY=1;; 10722 *) AM_DEFAULT_VERBOSITY=0;; 10723esac 10724am_make=${MAKE-make} 10725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10726$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10727if ${am_cv_make_support_nested_variables+:} false; then : 10728 $as_echo_n "(cached) " >&6 10729else 10730 if $as_echo 'TRUE=$(BAR$(V)) 10731BAR0=false 10732BAR1=true 10733V=1 10734am__doit: 10735 @$(TRUE) 10736.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10737 am_cv_make_support_nested_variables=yes 10738else 10739 am_cv_make_support_nested_variables=no 10740fi 10741fi 10742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10743$as_echo "$am_cv_make_support_nested_variables" >&6; } 10744if test $am_cv_make_support_nested_variables = yes; then 10745 AM_V='$(V)' 10746 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10747else 10748 AM_V=$AM_DEFAULT_VERBOSITY 10749 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10750fi 10751AM_BACKSLASH='\' 10752 10753 10754 10755# Checks for pkg-config packages 10756 10757pkg_failed=no 10758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEV" >&5 10759$as_echo_n "checking for XEV... " >&6; } 10760 10761if test -n "$XEV_CFLAGS"; then 10762 pkg_cv_XEV_CFLAGS="$XEV_CFLAGS" 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_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null` 10771 test "x$?" != "x0" && pkg_failed=yes 10772else 10773 pkg_failed=yes 10774fi 10775 else 10776 pkg_failed=untried 10777fi 10778if test -n "$XEV_LIBS"; then 10779 pkg_cv_XEV_LIBS="$XEV_LIBS" 10780 elif test -n "$PKG_CONFIG"; then 10781 if test -n "$PKG_CONFIG" && \ 10782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5 10783 ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5 10784 ac_status=$? 10785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10786 test $ac_status = 0; }; then 10787 pkg_cv_XEV_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null` 10788 test "x$?" != "x0" && pkg_failed=yes 10789else 10790 pkg_failed=yes 10791fi 10792 else 10793 pkg_failed=untried 10794fi 10795 10796 10797 10798if test $pkg_failed = yes; then 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10800$as_echo "no" >&6; } 10801 10802if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10803 _pkg_short_errors_supported=yes 10804else 10805 _pkg_short_errors_supported=no 10806fi 10807 if test $_pkg_short_errors_supported = yes; then 10808 XEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1` 10809 else 10810 XEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1` 10811 fi 10812 # Put the nasty error message in config.log where it belongs 10813 echo "$XEV_PKG_ERRORS" >&5 10814 10815 as_fn_error $? "Package requirements (xrandr >= 1.2 x11 xproto >= 7.0.17) were not met: 10816 10817$XEV_PKG_ERRORS 10818 10819Consider adjusting the PKG_CONFIG_PATH environment variable if you 10820installed software in a non-standard prefix. 10821 10822Alternatively, you may set the environment variables XEV_CFLAGS 10823and XEV_LIBS to avoid the need to call pkg-config. 10824See the pkg-config man page for more details." "$LINENO" 5 10825elif test $pkg_failed = untried; then 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10827$as_echo "no" >&6; } 10828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10830as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10831is in your PATH or set the PKG_CONFIG environment variable to the full 10832path to pkg-config. 10833 10834Alternatively, you may set the environment variables XEV_CFLAGS 10835and XEV_LIBS to avoid the need to call pkg-config. 10836See the pkg-config man page for more details. 10837 10838To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10839See \`config.log' for more details" "$LINENO" 5; } 10840else 10841 XEV_CFLAGS=$pkg_cv_XEV_CFLAGS 10842 XEV_LIBS=$pkg_cv_XEV_LIBS 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10844$as_echo "yes" >&6; } 10845 10846fi 10847 10848ac_config_files="$ac_config_files Makefile man/Makefile" 10849 10850cat >confcache <<\_ACEOF 10851# This file is a shell script that caches the results of configure 10852# tests run on this system so they can be shared between configure 10853# scripts and configure runs, see configure's option --config-cache. 10854# It is not useful on other systems. If it contains results you don't 10855# want to keep, you may remove or edit it. 10856# 10857# config.status only pays attention to the cache file if you give it 10858# the --recheck option to rerun configure. 10859# 10860# `ac_cv_env_foo' variables (set or unset) will be overridden when 10861# loading this file, other *unset* `ac_cv_foo' will be assigned the 10862# following values. 10863 10864_ACEOF 10865 10866# The following way of writing the cache mishandles newlines in values, 10867# but we know of no workaround that is simple, portable, and efficient. 10868# So, we kill variables containing newlines. 10869# Ultrix sh set writes to stderr and can't be redirected directly, 10870# and sets the high bit in the cache file unless we assign to the vars. 10871( 10872 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10873 eval ac_val=\$$ac_var 10874 case $ac_val in #( 10875 *${as_nl}*) 10876 case $ac_var in #( 10877 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10878$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10879 esac 10880 case $ac_var in #( 10881 _ | IFS | as_nl) ;; #( 10882 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10883 *) { eval $ac_var=; unset $ac_var;} ;; 10884 esac ;; 10885 esac 10886 done 10887 10888 (set) 2>&1 | 10889 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10890 *${as_nl}ac_space=\ *) 10891 # `set' does not quote correctly, so add quotes: double-quote 10892 # substitution turns \\\\ into \\, and sed turns \\ into \. 10893 sed -n \ 10894 "s/'/'\\\\''/g; 10895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10896 ;; #( 10897 *) 10898 # `set' quotes correctly as required by POSIX, so do not add quotes. 10899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10900 ;; 10901 esac | 10902 sort 10903) | 10904 sed ' 10905 /^ac_cv_env_/b end 10906 t clear 10907 :clear 10908 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10909 t end 10910 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10911 :end' >>confcache 10912if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10913 if test -w "$cache_file"; then 10914 if test "x$cache_file" != "x/dev/null"; then 10915 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10916$as_echo "$as_me: updating cache $cache_file" >&6;} 10917 if test ! -f "$cache_file" || test -h "$cache_file"; then 10918 cat confcache >"$cache_file" 10919 else 10920 case $cache_file in #( 10921 */* | ?:*) 10922 mv -f confcache "$cache_file"$$ && 10923 mv -f "$cache_file"$$ "$cache_file" ;; #( 10924 *) 10925 mv -f confcache "$cache_file" ;; 10926 esac 10927 fi 10928 fi 10929 else 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10931$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10932 fi 10933fi 10934rm -f confcache 10935 10936test "x$prefix" = xNONE && prefix=$ac_default_prefix 10937# Let make expand exec_prefix. 10938test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10939 10940DEFS=-DHAVE_CONFIG_H 10941 10942ac_libobjs= 10943ac_ltlibobjs= 10944U= 10945for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10946 # 1. Remove the extension, and $U if already installed. 10947 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10948 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10949 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10950 # will be set to the directory where LIBOBJS objects are built. 10951 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10952 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10953done 10954LIBOBJS=$ac_libobjs 10955 10956LTLIBOBJS=$ac_ltlibobjs 10957 10958 10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10960$as_echo_n "checking that generated files are newer than configure... " >&6; } 10961 if test -n "$am_sleep_pid"; then 10962 # Hide warnings about reused PIDs. 10963 wait $am_sleep_pid 2>/dev/null 10964 fi 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10966$as_echo "done" >&6; } 10967if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10968 as_fn_error $? "conditional \"AMDEP\" was never defined. 10969Usually this means the macro was only invoked conditionally." "$LINENO" 5 10970fi 10971if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10972 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10973Usually this means the macro was only invoked conditionally." "$LINENO" 5 10974fi 10975 if test -n "$EXEEXT"; then 10976 am__EXEEXT_TRUE= 10977 am__EXEEXT_FALSE='#' 10978else 10979 am__EXEEXT_TRUE='#' 10980 am__EXEEXT_FALSE= 10981fi 10982 10983 10984: "${CONFIG_STATUS=./config.status}" 10985ac_write_fail=0 10986ac_clean_files_save=$ac_clean_files 10987ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10988{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10989$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10990as_write_fail=0 10991cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10992#! $SHELL 10993# Generated by $as_me. 10994# Run this file to recreate the current configuration. 10995# Compiler output produced by configure, useful for debugging 10996# configure, is in config.log if it exists. 10997 10998debug=false 10999ac_cs_recheck=false 11000ac_cs_silent=false 11001 11002SHELL=\${CONFIG_SHELL-$SHELL} 11003export SHELL 11004_ASEOF 11005cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11006## -------------------- ## 11007## M4sh Initialization. ## 11008## -------------------- ## 11009 11010# Be more Bourne compatible 11011DUALCASE=1; export DUALCASE # for MKS sh 11012if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11013 emulate sh 11014 NULLCMD=: 11015 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11016 # is contrary to our usage. Disable this feature. 11017 alias -g '${1+"$@"}'='"$@"' 11018 setopt NO_GLOB_SUBST 11019else 11020 case `(set -o) 2>/dev/null` in #( 11021 *posix*) : 11022 set -o posix ;; #( 11023 *) : 11024 ;; 11025esac 11026fi 11027 11028 11029as_nl=' 11030' 11031export as_nl 11032# Printing a long string crashes Solaris 7 /usr/bin/printf. 11033as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11034as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11035as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11036# Prefer a ksh shell builtin over an external printf program on Solaris, 11037# but without wasting forks for bash or zsh. 11038if test -z "$BASH_VERSION$ZSH_VERSION" \ 11039 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11040 as_echo='print -r --' 11041 as_echo_n='print -rn --' 11042elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11043 as_echo='printf %s\n' 11044 as_echo_n='printf %s' 11045else 11046 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11047 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11048 as_echo_n='/usr/ucb/echo -n' 11049 else 11050 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11051 as_echo_n_body='eval 11052 arg=$1; 11053 case $arg in #( 11054 *"$as_nl"*) 11055 expr "X$arg" : "X\\(.*\\)$as_nl"; 11056 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11057 esac; 11058 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11059 ' 11060 export as_echo_n_body 11061 as_echo_n='sh -c $as_echo_n_body as_echo' 11062 fi 11063 export as_echo_body 11064 as_echo='sh -c $as_echo_body as_echo' 11065fi 11066 11067# The user is always right. 11068if test "${PATH_SEPARATOR+set}" != set; then 11069 PATH_SEPARATOR=: 11070 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11071 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11072 PATH_SEPARATOR=';' 11073 } 11074fi 11075 11076 11077# IFS 11078# We need space, tab and new line, in precisely that order. Quoting is 11079# there to prevent editors from complaining about space-tab. 11080# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11081# splitting by setting IFS to empty value.) 11082IFS=" "" $as_nl" 11083 11084# Find who we are. Look in the path if we contain no directory separator. 11085as_myself= 11086case $0 in #(( 11087 *[\\/]* ) as_myself=$0 ;; 11088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11089for as_dir in $PATH 11090do 11091 IFS=$as_save_IFS 11092 test -z "$as_dir" && as_dir=. 11093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11094 done 11095IFS=$as_save_IFS 11096 11097 ;; 11098esac 11099# We did not find ourselves, most probably we were run as `sh COMMAND' 11100# in which case we are not to be found in the path. 11101if test "x$as_myself" = x; then 11102 as_myself=$0 11103fi 11104if test ! -f "$as_myself"; then 11105 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11106 exit 1 11107fi 11108 11109# Unset variables that we do not need and which cause bugs (e.g. in 11110# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11111# suppresses any "Segmentation fault" message there. '((' could 11112# trigger a bug in pdksh 5.2.14. 11113for as_var in BASH_ENV ENV MAIL MAILPATH 11114do eval test x\${$as_var+set} = xset \ 11115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11116done 11117PS1='$ ' 11118PS2='> ' 11119PS4='+ ' 11120 11121# NLS nuisances. 11122LC_ALL=C 11123export LC_ALL 11124LANGUAGE=C 11125export LANGUAGE 11126 11127# CDPATH. 11128(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11129 11130 11131# as_fn_error STATUS ERROR [LINENO LOG_FD] 11132# ---------------------------------------- 11133# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11134# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11135# script with STATUS, using 1 if that was 0. 11136as_fn_error () 11137{ 11138 as_status=$1; test $as_status -eq 0 && as_status=1 11139 if test "$4"; then 11140 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11141 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11142 fi 11143 $as_echo "$as_me: error: $2" >&2 11144 as_fn_exit $as_status 11145} # as_fn_error 11146 11147 11148# as_fn_set_status STATUS 11149# ----------------------- 11150# Set $? to STATUS, without forking. 11151as_fn_set_status () 11152{ 11153 return $1 11154} # as_fn_set_status 11155 11156# as_fn_exit STATUS 11157# ----------------- 11158# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11159as_fn_exit () 11160{ 11161 set +e 11162 as_fn_set_status $1 11163 exit $1 11164} # as_fn_exit 11165 11166# as_fn_unset VAR 11167# --------------- 11168# Portably unset VAR. 11169as_fn_unset () 11170{ 11171 { eval $1=; unset $1;} 11172} 11173as_unset=as_fn_unset 11174# as_fn_append VAR VALUE 11175# ---------------------- 11176# Append the text in VALUE to the end of the definition contained in VAR. Take 11177# advantage of any shell optimizations that allow amortized linear growth over 11178# repeated appends, instead of the typical quadratic growth present in naive 11179# implementations. 11180if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11181 eval 'as_fn_append () 11182 { 11183 eval $1+=\$2 11184 }' 11185else 11186 as_fn_append () 11187 { 11188 eval $1=\$$1\$2 11189 } 11190fi # as_fn_append 11191 11192# as_fn_arith ARG... 11193# ------------------ 11194# Perform arithmetic evaluation on the ARGs, and store the result in the 11195# global $as_val. Take advantage of shells that can avoid forks. The arguments 11196# must be portable across $(()) and expr. 11197if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11198 eval 'as_fn_arith () 11199 { 11200 as_val=$(( $* )) 11201 }' 11202else 11203 as_fn_arith () 11204 { 11205 as_val=`expr "$@" || test $? -eq 1` 11206 } 11207fi # as_fn_arith 11208 11209 11210if expr a : '\(a\)' >/dev/null 2>&1 && 11211 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11212 as_expr=expr 11213else 11214 as_expr=false 11215fi 11216 11217if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11218 as_basename=basename 11219else 11220 as_basename=false 11221fi 11222 11223if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11224 as_dirname=dirname 11225else 11226 as_dirname=false 11227fi 11228 11229as_me=`$as_basename -- "$0" || 11230$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11231 X"$0" : 'X\(//\)$' \| \ 11232 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11233$as_echo X/"$0" | 11234 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11235 s//\1/ 11236 q 11237 } 11238 /^X\/\(\/\/\)$/{ 11239 s//\1/ 11240 q 11241 } 11242 /^X\/\(\/\).*/{ 11243 s//\1/ 11244 q 11245 } 11246 s/.*/./; q'` 11247 11248# Avoid depending upon Character Ranges. 11249as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11250as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11251as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11252as_cr_digits='0123456789' 11253as_cr_alnum=$as_cr_Letters$as_cr_digits 11254 11255ECHO_C= ECHO_N= ECHO_T= 11256case `echo -n x` in #((((( 11257-n*) 11258 case `echo 'xy\c'` in 11259 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11260 xy) ECHO_C='\c';; 11261 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11262 ECHO_T=' ';; 11263 esac;; 11264*) 11265 ECHO_N='-n';; 11266esac 11267 11268rm -f conf$$ conf$$.exe conf$$.file 11269if test -d conf$$.dir; then 11270 rm -f conf$$.dir/conf$$.file 11271else 11272 rm -f conf$$.dir 11273 mkdir conf$$.dir 2>/dev/null 11274fi 11275if (echo >conf$$.file) 2>/dev/null; then 11276 if ln -s conf$$.file conf$$ 2>/dev/null; then 11277 as_ln_s='ln -s' 11278 # ... but there are two gotchas: 11279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11281 # In both cases, we have to default to `cp -pR'. 11282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11283 as_ln_s='cp -pR' 11284 elif ln conf$$.file conf$$ 2>/dev/null; then 11285 as_ln_s=ln 11286 else 11287 as_ln_s='cp -pR' 11288 fi 11289else 11290 as_ln_s='cp -pR' 11291fi 11292rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11293rmdir conf$$.dir 2>/dev/null 11294 11295 11296# as_fn_mkdir_p 11297# ------------- 11298# Create "$as_dir" as a directory, including parents if necessary. 11299as_fn_mkdir_p () 11300{ 11301 11302 case $as_dir in #( 11303 -*) as_dir=./$as_dir;; 11304 esac 11305 test -d "$as_dir" || eval $as_mkdir_p || { 11306 as_dirs= 11307 while :; do 11308 case $as_dir in #( 11309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11310 *) as_qdir=$as_dir;; 11311 esac 11312 as_dirs="'$as_qdir' $as_dirs" 11313 as_dir=`$as_dirname -- "$as_dir" || 11314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11315 X"$as_dir" : 'X\(//\)[^/]' \| \ 11316 X"$as_dir" : 'X\(//\)$' \| \ 11317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11318$as_echo X"$as_dir" | 11319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11320 s//\1/ 11321 q 11322 } 11323 /^X\(\/\/\)[^/].*/{ 11324 s//\1/ 11325 q 11326 } 11327 /^X\(\/\/\)$/{ 11328 s//\1/ 11329 q 11330 } 11331 /^X\(\/\).*/{ 11332 s//\1/ 11333 q 11334 } 11335 s/.*/./; q'` 11336 test -d "$as_dir" && break 11337 done 11338 test -z "$as_dirs" || eval "mkdir $as_dirs" 11339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11340 11341 11342} # as_fn_mkdir_p 11343if mkdir -p . 2>/dev/null; then 11344 as_mkdir_p='mkdir -p "$as_dir"' 11345else 11346 test -d ./-p && rmdir ./-p 11347 as_mkdir_p=false 11348fi 11349 11350 11351# as_fn_executable_p FILE 11352# ----------------------- 11353# Test if FILE is an executable regular file. 11354as_fn_executable_p () 11355{ 11356 test -f "$1" && test -x "$1" 11357} # as_fn_executable_p 11358as_test_x='test -x' 11359as_executable_p=as_fn_executable_p 11360 11361# Sed expression to map a string onto a valid CPP name. 11362as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11363 11364# Sed expression to map a string onto a valid variable name. 11365as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11366 11367 11368exec 6>&1 11369## ----------------------------------- ## 11370## Main body of $CONFIG_STATUS script. ## 11371## ----------------------------------- ## 11372_ASEOF 11373test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11374 11375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11376# Save the log message, to keep $0 and so on meaningful, and to 11377# report actual input values of CONFIG_FILES etc. instead of their 11378# values after options handling. 11379ac_log=" 11380This file was extended by xev $as_me 1.2.3, which was 11381generated by GNU Autoconf 2.69. Invocation command line was 11382 11383 CONFIG_FILES = $CONFIG_FILES 11384 CONFIG_HEADERS = $CONFIG_HEADERS 11385 CONFIG_LINKS = $CONFIG_LINKS 11386 CONFIG_COMMANDS = $CONFIG_COMMANDS 11387 $ $0 $@ 11388 11389on `(hostname || uname -n) 2>/dev/null | sed 1q` 11390" 11391 11392_ACEOF 11393 11394case $ac_config_files in *" 11395"*) set x $ac_config_files; shift; ac_config_files=$*;; 11396esac 11397 11398case $ac_config_headers in *" 11399"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11400esac 11401 11402 11403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11404# Files that config.status was made for. 11405config_files="$ac_config_files" 11406config_headers="$ac_config_headers" 11407config_commands="$ac_config_commands" 11408 11409_ACEOF 11410 11411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11412ac_cs_usage="\ 11413\`$as_me' instantiates files and other configuration actions 11414from templates according to the current configuration. Unless the files 11415and actions are specified as TAGs, all are instantiated by default. 11416 11417Usage: $0 [OPTION]... [TAG]... 11418 11419 -h, --help print this help, then exit 11420 -V, --version print version number and configuration settings, then exit 11421 --config print configuration, then exit 11422 -q, --quiet, --silent 11423 do not print progress messages 11424 -d, --debug don't remove temporary files 11425 --recheck update $as_me by reconfiguring in the same conditions 11426 --file=FILE[:TEMPLATE] 11427 instantiate the configuration file FILE 11428 --header=FILE[:TEMPLATE] 11429 instantiate the configuration header FILE 11430 11431Configuration files: 11432$config_files 11433 11434Configuration headers: 11435$config_headers 11436 11437Configuration commands: 11438$config_commands 11439 11440Report bugs to <https://gitlab.freedesktop.org/xorg/app/xev/issues>." 11441 11442_ACEOF 11443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11444ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11445ac_cs_version="\\ 11446xev config.status 1.2.3 11447configured by $0, generated by GNU Autoconf 2.69, 11448 with options \\"\$ac_cs_config\\" 11449 11450Copyright (C) 2012 Free Software Foundation, Inc. 11451This config.status script is free software; the Free Software Foundation 11452gives unlimited permission to copy, distribute and modify it." 11453 11454ac_pwd='$ac_pwd' 11455srcdir='$srcdir' 11456INSTALL='$INSTALL' 11457MKDIR_P='$MKDIR_P' 11458AWK='$AWK' 11459test -n "\$AWK" || AWK=awk 11460_ACEOF 11461 11462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11463# The default lists apply if the user does not specify any file. 11464ac_need_defaults=: 11465while test $# != 0 11466do 11467 case $1 in 11468 --*=?*) 11469 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11470 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11471 ac_shift=: 11472 ;; 11473 --*=) 11474 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11475 ac_optarg= 11476 ac_shift=: 11477 ;; 11478 *) 11479 ac_option=$1 11480 ac_optarg=$2 11481 ac_shift=shift 11482 ;; 11483 esac 11484 11485 case $ac_option in 11486 # Handling of the options. 11487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11488 ac_cs_recheck=: ;; 11489 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11490 $as_echo "$ac_cs_version"; exit ;; 11491 --config | --confi | --conf | --con | --co | --c ) 11492 $as_echo "$ac_cs_config"; exit ;; 11493 --debug | --debu | --deb | --de | --d | -d ) 11494 debug=: ;; 11495 --file | --fil | --fi | --f ) 11496 $ac_shift 11497 case $ac_optarg in 11498 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11499 '') as_fn_error $? "missing file argument" ;; 11500 esac 11501 as_fn_append CONFIG_FILES " '$ac_optarg'" 11502 ac_need_defaults=false;; 11503 --header | --heade | --head | --hea ) 11504 $ac_shift 11505 case $ac_optarg in 11506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11507 esac 11508 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11509 ac_need_defaults=false;; 11510 --he | --h) 11511 # Conflict between --help and --header 11512 as_fn_error $? "ambiguous option: \`$1' 11513Try \`$0 --help' for more information.";; 11514 --help | --hel | -h ) 11515 $as_echo "$ac_cs_usage"; exit ;; 11516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11517 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11518 ac_cs_silent=: ;; 11519 11520 # This is an error. 11521 -*) as_fn_error $? "unrecognized option: \`$1' 11522Try \`$0 --help' for more information." ;; 11523 11524 *) as_fn_append ac_config_targets " $1" 11525 ac_need_defaults=false ;; 11526 11527 esac 11528 shift 11529done 11530 11531ac_configure_extra_args= 11532 11533if $ac_cs_silent; then 11534 exec 6>/dev/null 11535 ac_configure_extra_args="$ac_configure_extra_args --silent" 11536fi 11537 11538_ACEOF 11539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11540if \$ac_cs_recheck; then 11541 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11542 shift 11543 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11544 CONFIG_SHELL='$SHELL' 11545 export CONFIG_SHELL 11546 exec "\$@" 11547fi 11548 11549_ACEOF 11550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11551exec 5>>config.log 11552{ 11553 echo 11554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11555## Running $as_me. ## 11556_ASBOX 11557 $as_echo "$ac_log" 11558} >&5 11559 11560_ACEOF 11561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11562# 11563# INIT-COMMANDS 11564# 11565AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11566 11567_ACEOF 11568 11569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11570 11571# Handling of arguments. 11572for ac_config_target in $ac_config_targets 11573do 11574 case $ac_config_target in 11575 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11576 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11577 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11578 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11579 11580 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11581 esac 11582done 11583 11584 11585# If the user did not use the arguments to specify the items to instantiate, 11586# then the envvar interface is used. Set only those that are not. 11587# We use the long form for the default assignment because of an extremely 11588# bizarre bug on SunOS 4.1.3. 11589if $ac_need_defaults; then 11590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11593fi 11594 11595# Have a temporary directory for convenience. Make it in the build tree 11596# simply because there is no reason against having it here, and in addition, 11597# creating and moving files from /tmp can sometimes cause problems. 11598# Hook for its removal unless debugging. 11599# Note that there is a small window in which the directory will not be cleaned: 11600# after its creation but before its name has been assigned to `$tmp'. 11601$debug || 11602{ 11603 tmp= ac_tmp= 11604 trap 'exit_status=$? 11605 : "${ac_tmp:=$tmp}" 11606 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11607' 0 11608 trap 'as_fn_exit 1' 1 2 13 15 11609} 11610# Create a (secure) tmp directory for tmp files. 11611 11612{ 11613 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11614 test -d "$tmp" 11615} || 11616{ 11617 tmp=./conf$$-$RANDOM 11618 (umask 077 && mkdir "$tmp") 11619} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11620ac_tmp=$tmp 11621 11622# Set up the scripts for CONFIG_FILES section. 11623# No need to generate them if there are no CONFIG_FILES. 11624# This happens for instance with `./config.status config.h'. 11625if test -n "$CONFIG_FILES"; then 11626 11627 11628ac_cr=`echo X | tr X '\015'` 11629# On cygwin, bash can eat \r inside `` if the user requested igncr. 11630# But we know of no other shell where ac_cr would be empty at this 11631# point, so we can use a bashism as a fallback. 11632if test "x$ac_cr" = x; then 11633 eval ac_cr=\$\'\\r\' 11634fi 11635ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11636if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11637 ac_cs_awk_cr='\\r' 11638else 11639 ac_cs_awk_cr=$ac_cr 11640fi 11641 11642echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11643_ACEOF 11644 11645 11646{ 11647 echo "cat >conf$$subs.awk <<_ACEOF" && 11648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11649 echo "_ACEOF" 11650} >conf$$subs.sh || 11651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11652ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11653ac_delim='%!_!# ' 11654for ac_last_try in false false false false false :; do 11655 . ./conf$$subs.sh || 11656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11657 11658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11659 if test $ac_delim_n = $ac_delim_num; then 11660 break 11661 elif $ac_last_try; then 11662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11663 else 11664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11665 fi 11666done 11667rm -f conf$$subs.sh 11668 11669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11670cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11671_ACEOF 11672sed -n ' 11673h 11674s/^/S["/; s/!.*/"]=/ 11675p 11676g 11677s/^[^!]*!// 11678:repl 11679t repl 11680s/'"$ac_delim"'$// 11681t delim 11682:nl 11683h 11684s/\(.\{148\}\)..*/\1/ 11685t more1 11686s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11687p 11688n 11689b repl 11690:more1 11691s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11692p 11693g 11694s/.\{148\}// 11695t nl 11696:delim 11697h 11698s/\(.\{148\}\)..*/\1/ 11699t more2 11700s/["\\]/\\&/g; s/^/"/; s/$/"/ 11701p 11702b 11703:more2 11704s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11705p 11706g 11707s/.\{148\}// 11708t delim 11709' <conf$$subs.awk | sed ' 11710/^[^""]/{ 11711 N 11712 s/\n// 11713} 11714' >>$CONFIG_STATUS || ac_write_fail=1 11715rm -f conf$$subs.awk 11716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11717_ACAWK 11718cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11719 for (key in S) S_is_set[key] = 1 11720 FS = "" 11721 11722} 11723{ 11724 line = $ 0 11725 nfields = split(line, field, "@") 11726 substed = 0 11727 len = length(field[1]) 11728 for (i = 2; i < nfields; i++) { 11729 key = field[i] 11730 keylen = length(key) 11731 if (S_is_set[key]) { 11732 value = S[key] 11733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11734 len += length(value) + length(field[++i]) 11735 substed = 1 11736 } else 11737 len += 1 + keylen 11738 } 11739 11740 print line 11741} 11742 11743_ACAWK 11744_ACEOF 11745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11746if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11748else 11749 cat 11750fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11751 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11752_ACEOF 11753 11754# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11755# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11756# trailing colons and then remove the whole line if VPATH becomes empty 11757# (actually we leave an empty line to preserve line numbers). 11758if test "x$srcdir" = x.; then 11759 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11760h 11761s/// 11762s/^/:/ 11763s/[ ]*$/:/ 11764s/:\$(srcdir):/:/g 11765s/:\${srcdir}:/:/g 11766s/:@srcdir@:/:/g 11767s/^:*// 11768s/:*$// 11769x 11770s/\(=[ ]*\).*/\1/ 11771G 11772s/\n// 11773s/^[^=]*=[ ]*$// 11774}' 11775fi 11776 11777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11778fi # test -n "$CONFIG_FILES" 11779 11780# Set up the scripts for CONFIG_HEADERS section. 11781# No need to generate them if there are no CONFIG_HEADERS. 11782# This happens for instance with `./config.status Makefile'. 11783if test -n "$CONFIG_HEADERS"; then 11784cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11785BEGIN { 11786_ACEOF 11787 11788# Transform confdefs.h into an awk script `defines.awk', embedded as 11789# here-document in config.status, that substitutes the proper values into 11790# config.h.in to produce config.h. 11791 11792# Create a delimiter string that does not exist in confdefs.h, to ease 11793# handling of long lines. 11794ac_delim='%!_!# ' 11795for ac_last_try in false false :; do 11796 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11797 if test -z "$ac_tt"; then 11798 break 11799 elif $ac_last_try; then 11800 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11801 else 11802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11803 fi 11804done 11805 11806# For the awk script, D is an array of macro values keyed by name, 11807# likewise P contains macro parameters if any. Preserve backslash 11808# newline sequences. 11809 11810ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11811sed -n ' 11812s/.\{148\}/&'"$ac_delim"'/g 11813t rset 11814:rset 11815s/^[ ]*#[ ]*define[ ][ ]*/ / 11816t def 11817d 11818:def 11819s/\\$// 11820t bsnl 11821s/["\\]/\\&/g 11822s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11823D["\1"]=" \3"/p 11824s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11825d 11826:bsnl 11827s/["\\]/\\&/g 11828s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11829D["\1"]=" \3\\\\\\n"\\/p 11830t cont 11831s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11832t cont 11833d 11834:cont 11835n 11836s/.\{148\}/&'"$ac_delim"'/g 11837t clear 11838:clear 11839s/\\$// 11840t bsnlc 11841s/["\\]/\\&/g; s/^/"/; s/$/"/p 11842d 11843:bsnlc 11844s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11845b cont 11846' <confdefs.h | sed ' 11847s/'"$ac_delim"'/"\\\ 11848"/g' >>$CONFIG_STATUS || ac_write_fail=1 11849 11850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11851 for (key in D) D_is_set[key] = 1 11852 FS = "" 11853} 11854/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11855 line = \$ 0 11856 split(line, arg, " ") 11857 if (arg[1] == "#") { 11858 defundef = arg[2] 11859 mac1 = arg[3] 11860 } else { 11861 defundef = substr(arg[1], 2) 11862 mac1 = arg[2] 11863 } 11864 split(mac1, mac2, "(") #) 11865 macro = mac2[1] 11866 prefix = substr(line, 1, index(line, defundef) - 1) 11867 if (D_is_set[macro]) { 11868 # Preserve the white space surrounding the "#". 11869 print prefix "define", macro P[macro] D[macro] 11870 next 11871 } else { 11872 # Replace #undef with comments. This is necessary, for example, 11873 # in the case of _POSIX_SOURCE, which is predefined and required 11874 # on some systems where configure will not decide to define it. 11875 if (defundef == "undef") { 11876 print "/*", prefix defundef, macro, "*/" 11877 next 11878 } 11879 } 11880} 11881{ print } 11882_ACAWK 11883_ACEOF 11884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11885 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11886fi # test -n "$CONFIG_HEADERS" 11887 11888 11889eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11890shift 11891for ac_tag 11892do 11893 case $ac_tag in 11894 :[FHLC]) ac_mode=$ac_tag; continue;; 11895 esac 11896 case $ac_mode$ac_tag in 11897 :[FHL]*:*);; 11898 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11899 :[FH]-) ac_tag=-:-;; 11900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11901 esac 11902 ac_save_IFS=$IFS 11903 IFS=: 11904 set x $ac_tag 11905 IFS=$ac_save_IFS 11906 shift 11907 ac_file=$1 11908 shift 11909 11910 case $ac_mode in 11911 :L) ac_source=$1;; 11912 :[FH]) 11913 ac_file_inputs= 11914 for ac_f 11915 do 11916 case $ac_f in 11917 -) ac_f="$ac_tmp/stdin";; 11918 *) # Look for the file first in the build tree, then in the source tree 11919 # (if the path is not absolute). The absolute path cannot be DOS-style, 11920 # because $ac_f cannot contain `:'. 11921 test -f "$ac_f" || 11922 case $ac_f in 11923 [\\/$]*) false;; 11924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11925 esac || 11926 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11927 esac 11928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11929 as_fn_append ac_file_inputs " '$ac_f'" 11930 done 11931 11932 # Let's still pretend it is `configure' which instantiates (i.e., don't 11933 # use $as_me), people would be surprised to read: 11934 # /* config.h. Generated by config.status. */ 11935 configure_input='Generated from '` 11936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11937 `' by configure.' 11938 if test x"$ac_file" != x-; then 11939 configure_input="$ac_file. $configure_input" 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11941$as_echo "$as_me: creating $ac_file" >&6;} 11942 fi 11943 # Neutralize special characters interpreted by sed in replacement strings. 11944 case $configure_input in #( 11945 *\&* | *\|* | *\\* ) 11946 ac_sed_conf_input=`$as_echo "$configure_input" | 11947 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11948 *) ac_sed_conf_input=$configure_input;; 11949 esac 11950 11951 case $ac_tag in 11952 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11954 esac 11955 ;; 11956 esac 11957 11958 ac_dir=`$as_dirname -- "$ac_file" || 11959$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11960 X"$ac_file" : 'X\(//\)[^/]' \| \ 11961 X"$ac_file" : 'X\(//\)$' \| \ 11962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11963$as_echo X"$ac_file" | 11964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11965 s//\1/ 11966 q 11967 } 11968 /^X\(\/\/\)[^/].*/{ 11969 s//\1/ 11970 q 11971 } 11972 /^X\(\/\/\)$/{ 11973 s//\1/ 11974 q 11975 } 11976 /^X\(\/\).*/{ 11977 s//\1/ 11978 q 11979 } 11980 s/.*/./; q'` 11981 as_dir="$ac_dir"; as_fn_mkdir_p 11982 ac_builddir=. 11983 11984case "$ac_dir" in 11985.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11986*) 11987 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11988 # A ".." for each directory in $ac_dir_suffix. 11989 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11990 case $ac_top_builddir_sub in 11991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11993 esac ;; 11994esac 11995ac_abs_top_builddir=$ac_pwd 11996ac_abs_builddir=$ac_pwd$ac_dir_suffix 11997# for backward compatibility: 11998ac_top_builddir=$ac_top_build_prefix 11999 12000case $srcdir in 12001 .) # We are building in place. 12002 ac_srcdir=. 12003 ac_top_srcdir=$ac_top_builddir_sub 12004 ac_abs_top_srcdir=$ac_pwd ;; 12005 [\\/]* | ?:[\\/]* ) # Absolute name. 12006 ac_srcdir=$srcdir$ac_dir_suffix; 12007 ac_top_srcdir=$srcdir 12008 ac_abs_top_srcdir=$srcdir ;; 12009 *) # Relative name. 12010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12011 ac_top_srcdir=$ac_top_build_prefix$srcdir 12012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12013esac 12014ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12015 12016 12017 case $ac_mode in 12018 :F) 12019 # 12020 # CONFIG_FILE 12021 # 12022 12023 case $INSTALL in 12024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12026 esac 12027 ac_MKDIR_P=$MKDIR_P 12028 case $MKDIR_P in 12029 [\\/$]* | ?:[\\/]* ) ;; 12030 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12031 esac 12032_ACEOF 12033 12034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12035# If the template does not know about datarootdir, expand it. 12036# FIXME: This hack should be removed a few years after 2.60. 12037ac_datarootdir_hack=; ac_datarootdir_seen= 12038ac_sed_dataroot=' 12039/datarootdir/ { 12040 p 12041 q 12042} 12043/@datadir@/p 12044/@docdir@/p 12045/@infodir@/p 12046/@localedir@/p 12047/@mandir@/p' 12048case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12049*datarootdir*) ac_datarootdir_seen=yes;; 12050*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12052$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12053_ACEOF 12054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12055 ac_datarootdir_hack=' 12056 s&@datadir@&$datadir&g 12057 s&@docdir@&$docdir&g 12058 s&@infodir@&$infodir&g 12059 s&@localedir@&$localedir&g 12060 s&@mandir@&$mandir&g 12061 s&\\\${datarootdir}&$datarootdir&g' ;; 12062esac 12063_ACEOF 12064 12065# Neutralize VPATH when `$srcdir' = `.'. 12066# Shell code in configure.ac might set extrasub. 12067# FIXME: do we really want to maintain this feature? 12068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12069ac_sed_extra="$ac_vpsub 12070$extrasub 12071_ACEOF 12072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12073:t 12074/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12075s|@configure_input@|$ac_sed_conf_input|;t t 12076s&@top_builddir@&$ac_top_builddir_sub&;t t 12077s&@top_build_prefix@&$ac_top_build_prefix&;t t 12078s&@srcdir@&$ac_srcdir&;t t 12079s&@abs_srcdir@&$ac_abs_srcdir&;t t 12080s&@top_srcdir@&$ac_top_srcdir&;t t 12081s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12082s&@builddir@&$ac_builddir&;t t 12083s&@abs_builddir@&$ac_abs_builddir&;t t 12084s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12085s&@INSTALL@&$ac_INSTALL&;t t 12086s&@MKDIR_P@&$ac_MKDIR_P&;t t 12087$ac_datarootdir_hack 12088" 12089eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12090 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12091 12092test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12095 "$ac_tmp/out"`; test -z "$ac_out"; } && 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12097which seems to be undefined. Please make sure it is defined" >&5 12098$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12099which seems to be undefined. Please make sure it is defined" >&2;} 12100 12101 rm -f "$ac_tmp/stdin" 12102 case $ac_file in 12103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12105 esac \ 12106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12107 ;; 12108 :H) 12109 # 12110 # CONFIG_HEADER 12111 # 12112 if test x"$ac_file" != x-; then 12113 { 12114 $as_echo "/* $configure_input */" \ 12115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12116 } >"$ac_tmp/config.h" \ 12117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12120$as_echo "$as_me: $ac_file is unchanged" >&6;} 12121 else 12122 rm -f "$ac_file" 12123 mv "$ac_tmp/config.h" "$ac_file" \ 12124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12125 fi 12126 else 12127 $as_echo "/* $configure_input */" \ 12128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12129 || as_fn_error $? "could not create -" "$LINENO" 5 12130 fi 12131# Compute "$ac_file"'s index in $config_headers. 12132_am_arg="$ac_file" 12133_am_stamp_count=1 12134for _am_header in $config_headers :; do 12135 case $_am_header in 12136 $_am_arg | $_am_arg:* ) 12137 break ;; 12138 * ) 12139 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12140 esac 12141done 12142echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12143$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12144 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12145 X"$_am_arg" : 'X\(//\)$' \| \ 12146 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12147$as_echo X"$_am_arg" | 12148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12149 s//\1/ 12150 q 12151 } 12152 /^X\(\/\/\)[^/].*/{ 12153 s//\1/ 12154 q 12155 } 12156 /^X\(\/\/\)$/{ 12157 s//\1/ 12158 q 12159 } 12160 /^X\(\/\).*/{ 12161 s//\1/ 12162 q 12163 } 12164 s/.*/./; q'`/stamp-h$_am_stamp_count 12165 ;; 12166 12167 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12168$as_echo "$as_me: executing $ac_file commands" >&6;} 12169 ;; 12170 esac 12171 12172 12173 case $ac_file$ac_mode in 12174 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12175 # Older Autoconf quotes --file arguments for eval, but not when files 12176 # are listed without --file. Let's play safe and only enable the eval 12177 # if we detect the quoting. 12178 case $CONFIG_FILES in 12179 *\'*) eval set x "$CONFIG_FILES" ;; 12180 *) set x $CONFIG_FILES ;; 12181 esac 12182 shift 12183 for mf 12184 do 12185 # Strip MF so we end up with the name of the file. 12186 mf=`echo "$mf" | sed -e 's/:.*$//'` 12187 # Check whether this is an Automake generated Makefile or not. 12188 # We used to match only the files named 'Makefile.in', but 12189 # some people rename them; so instead we look at the file content. 12190 # Grep'ing the first line is not enough: some people post-process 12191 # each Makefile.in and add a new line on top of each file to say so. 12192 # Grep'ing the whole file is not good either: AIX grep has a line 12193 # limit of 2048, but all sed's we know have understand at least 4000. 12194 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12195 dirpart=`$as_dirname -- "$mf" || 12196$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12197 X"$mf" : 'X\(//\)[^/]' \| \ 12198 X"$mf" : 'X\(//\)$' \| \ 12199 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12200$as_echo X"$mf" | 12201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12202 s//\1/ 12203 q 12204 } 12205 /^X\(\/\/\)[^/].*/{ 12206 s//\1/ 12207 q 12208 } 12209 /^X\(\/\/\)$/{ 12210 s//\1/ 12211 q 12212 } 12213 /^X\(\/\).*/{ 12214 s//\1/ 12215 q 12216 } 12217 s/.*/./; q'` 12218 else 12219 continue 12220 fi 12221 # Extract the definition of DEPDIR, am__include, and am__quote 12222 # from the Makefile without running 'make'. 12223 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12224 test -z "$DEPDIR" && continue 12225 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12226 test -z "$am__include" && continue 12227 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12228 # Find all dependency output files, they are included files with 12229 # $(DEPDIR) in their names. We invoke sed twice because it is the 12230 # simplest approach to changing $(DEPDIR) to its actual value in the 12231 # expansion. 12232 for file in `sed -n " 12233 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12234 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12235 # Make sure the directory exists. 12236 test -f "$dirpart/$file" && continue 12237 fdir=`$as_dirname -- "$file" || 12238$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12239 X"$file" : 'X\(//\)[^/]' \| \ 12240 X"$file" : 'X\(//\)$' \| \ 12241 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12242$as_echo X"$file" | 12243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12244 s//\1/ 12245 q 12246 } 12247 /^X\(\/\/\)[^/].*/{ 12248 s//\1/ 12249 q 12250 } 12251 /^X\(\/\/\)$/{ 12252 s//\1/ 12253 q 12254 } 12255 /^X\(\/\).*/{ 12256 s//\1/ 12257 q 12258 } 12259 s/.*/./; q'` 12260 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12261 # echo "creating $dirpart/$file" 12262 echo '# dummy' > "$dirpart/$file" 12263 done 12264 done 12265} 12266 ;; 12267 12268 esac 12269done # for ac_tag 12270 12271 12272as_fn_exit 0 12273_ACEOF 12274ac_clean_files=$ac_clean_files_save 12275 12276test $ac_write_fail = 0 || 12277 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12278 12279 12280# configure is writing to config.log, and then calls config.status. 12281# config.status does its own redirection, appending to config.log. 12282# Unfortunately, on DOS this fails, as config.log is still kept open 12283# by configure, so config.status won't be able to write to it; its 12284# output is simply discarded. So we exec the FD to /dev/null, 12285# effectively closing config.log, so it can be properly (re)opened and 12286# appended to by config.status. When coming back to configure, we 12287# need to make the FD available again. 12288if test "$no_create" != yes; then 12289 ac_cs_success=: 12290 ac_config_status_args= 12291 test "$silent" = yes && 12292 ac_config_status_args="$ac_config_status_args --quiet" 12293 exec 5>/dev/null 12294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12295 exec 5>>config.log 12296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12297 # would make configure fail if this is the last instruction. 12298 $ac_cs_success || as_fn_exit 1 12299fi 12300if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12302$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12303fi 12304 12305