configure revision a570218a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xinput 1.6.3. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinput/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/xinput/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='xinput' 583PACKAGE_TARNAME='xinput' 584PACKAGE_VERSION='1.6.3' 585PACKAGE_STRING='xinput 1.6.3' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xinput/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 630XI22_LIBS 631XI22_CFLAGS 632XI21_LIBS 633XI21_CFLAGS 634HAVE_XI2 635HAVE_XI2_FALSE 636HAVE_XI2_TRUE 637XI2_LIBS 638XI2_CFLAGS 639XINPUT_LIBS 640XINPUT_CFLAGS 641MAN_SUBSTS 642XORG_MAN_PAGE 643ADMIN_MAN_DIR 644DRIVER_MAN_DIR 645MISC_MAN_DIR 646FILE_MAN_DIR 647LIB_MAN_DIR 648APP_MAN_DIR 649ADMIN_MAN_SUFFIX 650DRIVER_MAN_SUFFIX 651MISC_MAN_SUFFIX 652FILE_MAN_SUFFIX 653LIB_MAN_SUFFIX 654APP_MAN_SUFFIX 655SED 656host_os 657host_vendor 658host_cpu 659host 660build_os 661build_vendor 662build_cpu 663build 664INSTALL_CMD 665PKG_CONFIG_LIBDIR 666PKG_CONFIG_PATH 667PKG_CONFIG 668CHANGELOG_CMD 669STRICT_CFLAGS 670CWARNFLAGS 671BASE_CFLAGS 672EGREP 673GREP 674CPP 675am__fastdepCC_FALSE 676am__fastdepCC_TRUE 677CCDEPMODE 678am__nodep 679AMDEPBACKSLASH 680AMDEP_FALSE 681AMDEP_TRUE 682am__include 683DEPDIR 684OBJEXT 685EXEEXT 686ac_ct_CC 687CPPFLAGS 688LDFLAGS 689CFLAGS 690CC 691AM_BACKSLASH 692AM_DEFAULT_VERBOSITY 693AM_DEFAULT_V 694AM_V 695am__untar 696am__tar 697AMTAR 698am__leading_dot 699SET_MAKE 700AWK 701mkdir_p 702MKDIR_P 703INSTALL_STRIP_PROGRAM 704STRIP 705install_sh 706MAKEINFO 707AUTOHEADER 708AUTOMAKE 709AUTOCONF 710ACLOCAL 711VERSION 712PACKAGE 713CYGPATH_W 714am__isrc 715INSTALL_DATA 716INSTALL_SCRIPT 717INSTALL_PROGRAM 718target_alias 719host_alias 720build_alias 721LIBS 722ECHO_T 723ECHO_N 724ECHO_C 725DEFS 726mandir 727localedir 728libdir 729psdir 730pdfdir 731dvidir 732htmldir 733infodir 734docdir 735oldincludedir 736includedir 737localstatedir 738sharedstatedir 739sysconfdir 740datadir 741datarootdir 742libexecdir 743sbindir 744bindir 745program_transform_name 746prefix 747exec_prefix 748PACKAGE_URL 749PACKAGE_BUGREPORT 750PACKAGE_STRING 751PACKAGE_VERSION 752PACKAGE_TARNAME 753PACKAGE_NAME 754PATH_SEPARATOR 755SHELL 756am__quote' 757ac_subst_files='' 758ac_user_opts=' 759enable_option_checking 760enable_silent_rules 761enable_dependency_tracking 762enable_selective_werror 763enable_strict_compilation 764' 765 ac_precious_vars='build_alias 766host_alias 767target_alias 768CC 769CFLAGS 770LDFLAGS 771LIBS 772CPPFLAGS 773CPP 774PKG_CONFIG 775PKG_CONFIG_PATH 776PKG_CONFIG_LIBDIR 777XINPUT_CFLAGS 778XINPUT_LIBS 779XI2_CFLAGS 780XI2_LIBS 781XI21_CFLAGS 782XI21_LIBS 783XI22_CFLAGS 784XI22_LIBS' 785 786 787# Initialize some variables set by options. 788ac_init_help= 789ac_init_version=false 790ac_unrecognized_opts= 791ac_unrecognized_sep= 792# The variables have the same names as the options, with 793# dashes changed to underlines. 794cache_file=/dev/null 795exec_prefix=NONE 796no_create= 797no_recursion= 798prefix=NONE 799program_prefix=NONE 800program_suffix=NONE 801program_transform_name=s,x,x, 802silent= 803site= 804srcdir= 805verbose= 806x_includes=NONE 807x_libraries=NONE 808 809# Installation directory options. 810# These are left unexpanded so users can "make install exec_prefix=/foo" 811# and all the variables that are supposed to be based on exec_prefix 812# by default will actually change. 813# Use braces instead of parens because sh, perl, etc. also accept them. 814# (The list follows the same order as the GNU Coding Standards.) 815bindir='${exec_prefix}/bin' 816sbindir='${exec_prefix}/sbin' 817libexecdir='${exec_prefix}/libexec' 818datarootdir='${prefix}/share' 819datadir='${datarootdir}' 820sysconfdir='${prefix}/etc' 821sharedstatedir='${prefix}/com' 822localstatedir='${prefix}/var' 823includedir='${prefix}/include' 824oldincludedir='/usr/include' 825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 826infodir='${datarootdir}/info' 827htmldir='${docdir}' 828dvidir='${docdir}' 829pdfdir='${docdir}' 830psdir='${docdir}' 831libdir='${exec_prefix}/lib' 832localedir='${datarootdir}/locale' 833mandir='${datarootdir}/man' 834 835ac_prev= 836ac_dashdash= 837for ac_option 838do 839 # If the previous option needs an argument, assign it. 840 if test -n "$ac_prev"; then 841 eval $ac_prev=\$ac_option 842 ac_prev= 843 continue 844 fi 845 846 case $ac_option in 847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 848 *=) ac_optarg= ;; 849 *) ac_optarg=yes ;; 850 esac 851 852 # Accept the important Cygnus configure options, so we can diagnose typos. 853 854 case $ac_dashdash$ac_option in 855 --) 856 ac_dashdash=yes ;; 857 858 -bindir | --bindir | --bindi | --bind | --bin | --bi) 859 ac_prev=bindir ;; 860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 861 bindir=$ac_optarg ;; 862 863 -build | --build | --buil | --bui | --bu) 864 ac_prev=build_alias ;; 865 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 866 build_alias=$ac_optarg ;; 867 868 -cache-file | --cache-file | --cache-fil | --cache-fi \ 869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 870 ac_prev=cache_file ;; 871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 873 cache_file=$ac_optarg ;; 874 875 --config-cache | -C) 876 cache_file=config.cache ;; 877 878 -datadir | --datadir | --datadi | --datad) 879 ac_prev=datadir ;; 880 -datadir=* | --datadir=* | --datadi=* | --datad=*) 881 datadir=$ac_optarg ;; 882 883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 884 | --dataroo | --dataro | --datar) 885 ac_prev=datarootdir ;; 886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 888 datarootdir=$ac_optarg ;; 889 890 -disable-* | --disable-*) 891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 892 # Reject names that are not valid shell variable names. 893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 894 as_fn_error $? "invalid feature name: $ac_useropt" 895 ac_useropt_orig=$ac_useropt 896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 897 case $ac_user_opts in 898 *" 899"enable_$ac_useropt" 900"*) ;; 901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 902 ac_unrecognized_sep=', ';; 903 esac 904 eval enable_$ac_useropt=no ;; 905 906 -docdir | --docdir | --docdi | --doc | --do) 907 ac_prev=docdir ;; 908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 909 docdir=$ac_optarg ;; 910 911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 912 ac_prev=dvidir ;; 913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 914 dvidir=$ac_optarg ;; 915 916 -enable-* | --enable-*) 917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 918 # Reject names that are not valid shell variable names. 919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 920 as_fn_error $? "invalid feature name: $ac_useropt" 921 ac_useropt_orig=$ac_useropt 922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 923 case $ac_user_opts in 924 *" 925"enable_$ac_useropt" 926"*) ;; 927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 928 ac_unrecognized_sep=', ';; 929 esac 930 eval enable_$ac_useropt=\$ac_optarg ;; 931 932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 934 | --exec | --exe | --ex) 935 ac_prev=exec_prefix ;; 936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 938 | --exec=* | --exe=* | --ex=*) 939 exec_prefix=$ac_optarg ;; 940 941 -gas | --gas | --ga | --g) 942 # Obsolete; use --with-gas. 943 with_gas=yes ;; 944 945 -help | --help | --hel | --he | -h) 946 ac_init_help=long ;; 947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 948 ac_init_help=recursive ;; 949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 950 ac_init_help=short ;; 951 952 -host | --host | --hos | --ho) 953 ac_prev=host_alias ;; 954 -host=* | --host=* | --hos=* | --ho=*) 955 host_alias=$ac_optarg ;; 956 957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 958 ac_prev=htmldir ;; 959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 960 | --ht=*) 961 htmldir=$ac_optarg ;; 962 963 -includedir | --includedir | --includedi | --included | --include \ 964 | --includ | --inclu | --incl | --inc) 965 ac_prev=includedir ;; 966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 967 | --includ=* | --inclu=* | --incl=* | --inc=*) 968 includedir=$ac_optarg ;; 969 970 -infodir | --infodir | --infodi | --infod | --info | --inf) 971 ac_prev=infodir ;; 972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 973 infodir=$ac_optarg ;; 974 975 -libdir | --libdir | --libdi | --libd) 976 ac_prev=libdir ;; 977 -libdir=* | --libdir=* | --libdi=* | --libd=*) 978 libdir=$ac_optarg ;; 979 980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 981 | --libexe | --libex | --libe) 982 ac_prev=libexecdir ;; 983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 984 | --libexe=* | --libex=* | --libe=*) 985 libexecdir=$ac_optarg ;; 986 987 -localedir | --localedir | --localedi | --localed | --locale) 988 ac_prev=localedir ;; 989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 990 localedir=$ac_optarg ;; 991 992 -localstatedir | --localstatedir | --localstatedi | --localstated \ 993 | --localstate | --localstat | --localsta | --localst | --locals) 994 ac_prev=localstatedir ;; 995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 997 localstatedir=$ac_optarg ;; 998 999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1000 ac_prev=mandir ;; 1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1002 mandir=$ac_optarg ;; 1003 1004 -nfp | --nfp | --nf) 1005 # Obsolete; use --without-fp. 1006 with_fp=no ;; 1007 1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1009 | --no-cr | --no-c | -n) 1010 no_create=yes ;; 1011 1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1014 no_recursion=yes ;; 1015 1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1018 | --oldin | --oldi | --old | --ol | --o) 1019 ac_prev=oldincludedir ;; 1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1023 oldincludedir=$ac_optarg ;; 1024 1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1026 ac_prev=prefix ;; 1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1028 prefix=$ac_optarg ;; 1029 1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1031 | --program-pre | --program-pr | --program-p) 1032 ac_prev=program_prefix ;; 1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1035 program_prefix=$ac_optarg ;; 1036 1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1038 | --program-suf | --program-su | --program-s) 1039 ac_prev=program_suffix ;; 1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1042 program_suffix=$ac_optarg ;; 1043 1044 -program-transform-name | --program-transform-name \ 1045 | --program-transform-nam | --program-transform-na \ 1046 | --program-transform-n | --program-transform- \ 1047 | --program-transform | --program-transfor \ 1048 | --program-transfo | --program-transf \ 1049 | --program-trans | --program-tran \ 1050 | --progr-tra | --program-tr | --program-t) 1051 ac_prev=program_transform_name ;; 1052 -program-transform-name=* | --program-transform-name=* \ 1053 | --program-transform-nam=* | --program-transform-na=* \ 1054 | --program-transform-n=* | --program-transform-=* \ 1055 | --program-transform=* | --program-transfor=* \ 1056 | --program-transfo=* | --program-transf=* \ 1057 | --program-trans=* | --program-tran=* \ 1058 | --progr-tra=* | --program-tr=* | --program-t=*) 1059 program_transform_name=$ac_optarg ;; 1060 1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1062 ac_prev=pdfdir ;; 1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1064 pdfdir=$ac_optarg ;; 1065 1066 -psdir | --psdir | --psdi | --psd | --ps) 1067 ac_prev=psdir ;; 1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1069 psdir=$ac_optarg ;; 1070 1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1072 | -silent | --silent | --silen | --sile | --sil) 1073 silent=yes ;; 1074 1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1076 ac_prev=sbindir ;; 1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1078 | --sbi=* | --sb=*) 1079 sbindir=$ac_optarg ;; 1080 1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1083 | --sharedst | --shareds | --shared | --share | --shar \ 1084 | --sha | --sh) 1085 ac_prev=sharedstatedir ;; 1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1089 | --sha=* | --sh=*) 1090 sharedstatedir=$ac_optarg ;; 1091 1092 -site | --site | --sit) 1093 ac_prev=site ;; 1094 -site=* | --site=* | --sit=*) 1095 site=$ac_optarg ;; 1096 1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1098 ac_prev=srcdir ;; 1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1100 srcdir=$ac_optarg ;; 1101 1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1103 | --syscon | --sysco | --sysc | --sys | --sy) 1104 ac_prev=sysconfdir ;; 1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1107 sysconfdir=$ac_optarg ;; 1108 1109 -target | --target | --targe | --targ | --tar | --ta | --t) 1110 ac_prev=target_alias ;; 1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1112 target_alias=$ac_optarg ;; 1113 1114 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1115 verbose=yes ;; 1116 1117 -version | --version | --versio | --versi | --vers | -V) 1118 ac_init_version=: ;; 1119 1120 -with-* | --with-*) 1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1124 as_fn_error $? "invalid package name: $ac_useropt" 1125 ac_useropt_orig=$ac_useropt 1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1127 case $ac_user_opts in 1128 *" 1129"with_$ac_useropt" 1130"*) ;; 1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1132 ac_unrecognized_sep=', ';; 1133 esac 1134 eval with_$ac_useropt=\$ac_optarg ;; 1135 1136 -without-* | --without-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 as_fn_error $? "invalid package name: $ac_useropt" 1141 ac_useropt_orig=$ac_useropt 1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 case $ac_user_opts in 1144 *" 1145"with_$ac_useropt" 1146"*) ;; 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1148 ac_unrecognized_sep=', ';; 1149 esac 1150 eval with_$ac_useropt=no ;; 1151 1152 --x) 1153 # Obsolete; use --with-x. 1154 with_x=yes ;; 1155 1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1157 | --x-incl | --x-inc | --x-in | --x-i) 1158 ac_prev=x_includes ;; 1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1161 x_includes=$ac_optarg ;; 1162 1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1165 ac_prev=x_libraries ;; 1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1168 x_libraries=$ac_optarg ;; 1169 1170 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1171Try \`$0 --help' for more information" 1172 ;; 1173 1174 *=*) 1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1176 # Reject names that are not valid shell variable names. 1177 case $ac_envvar in #( 1178 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1180 esac 1181 eval $ac_envvar=\$ac_optarg 1182 export $ac_envvar ;; 1183 1184 *) 1185 # FIXME: should be removed in autoconf 3.0. 1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1190 ;; 1191 1192 esac 1193done 1194 1195if test -n "$ac_prev"; then 1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1197 as_fn_error $? "missing argument to $ac_option" 1198fi 1199 1200if test -n "$ac_unrecognized_opts"; then 1201 case $enable_option_checking in 1202 no) ;; 1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1205 esac 1206fi 1207 1208# Check all directory arguments for consistency. 1209for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1210 datadir sysconfdir sharedstatedir localstatedir includedir \ 1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1212 libdir localedir mandir 1213do 1214 eval ac_val=\$$ac_var 1215 # Remove trailing slashes. 1216 case $ac_val in 1217 */ ) 1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1219 eval $ac_var=\$ac_val;; 1220 esac 1221 # Be sure to have absolute directory names. 1222 case $ac_val in 1223 [\\/$]* | ?:[\\/]* ) continue;; 1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1225 esac 1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1227done 1228 1229# There might be people who depend on the old broken behavior: `$host' 1230# used to hold the argument of --host etc. 1231# FIXME: To remove some day. 1232build=$build_alias 1233host=$host_alias 1234target=$target_alias 1235 1236# FIXME: To remove some day. 1237if test "x$host_alias" != x; then 1238 if test "x$build_alias" = x; then 1239 cross_compiling=maybe 1240 elif test "x$build_alias" != "x$host_alias"; then 1241 cross_compiling=yes 1242 fi 1243fi 1244 1245ac_tool_prefix= 1246test -n "$host_alias" && ac_tool_prefix=$host_alias- 1247 1248test "$silent" = yes && exec 6>/dev/null 1249 1250 1251ac_pwd=`pwd` && test -n "$ac_pwd" && 1252ac_ls_di=`ls -di .` && 1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1254 as_fn_error $? "working directory cannot be determined" 1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1256 as_fn_error $? "pwd does not report name of working directory" 1257 1258 1259# Find the source files, if location was not specified. 1260if test -z "$srcdir"; then 1261 ac_srcdir_defaulted=yes 1262 # Try the directory containing this script, then the parent directory. 1263 ac_confdir=`$as_dirname -- "$as_myself" || 1264$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1265 X"$as_myself" : 'X\(//\)[^/]' \| \ 1266 X"$as_myself" : 'X\(//\)$' \| \ 1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1268$as_echo X"$as_myself" | 1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1270 s//\1/ 1271 q 1272 } 1273 /^X\(\/\/\)[^/].*/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)$/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\).*/{ 1282 s//\1/ 1283 q 1284 } 1285 s/.*/./; q'` 1286 srcdir=$ac_confdir 1287 if test ! -r "$srcdir/$ac_unique_file"; then 1288 srcdir=.. 1289 fi 1290else 1291 ac_srcdir_defaulted=no 1292fi 1293if test ! -r "$srcdir/$ac_unique_file"; then 1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1296fi 1297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1298ac_abs_confdir=`( 1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1300 pwd)` 1301# When building in place, set srcdir=. 1302if test "$ac_abs_confdir" = "$ac_pwd"; then 1303 srcdir=. 1304fi 1305# Remove unnecessary trailing slashes from srcdir. 1306# Double slashes in file names in object file debugging info 1307# mess up M-x gdb in Emacs. 1308case $srcdir in 1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1310esac 1311for ac_var in $ac_precious_vars; do 1312 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1313 eval ac_env_${ac_var}_value=\$${ac_var} 1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1315 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1316done 1317 1318# 1319# Report the --help message. 1320# 1321if test "$ac_init_help" = "long"; then 1322 # Omit some internal or obsolete options to make the list less imposing. 1323 # This message is too long to be a string in the A/UX 3.1 sh. 1324 cat <<_ACEOF 1325\`configure' configures xinput 1.6.3 to adapt to many kinds of systems. 1326 1327Usage: $0 [OPTION]... [VAR=VALUE]... 1328 1329To assign environment variables (e.g., CC, CFLAGS...), specify them as 1330VAR=VALUE. See below for descriptions of some of the useful variables. 1331 1332Defaults for the options are specified in brackets. 1333 1334Configuration: 1335 -h, --help display this help and exit 1336 --help=short display options specific to this package 1337 --help=recursive display the short help of all the included packages 1338 -V, --version display version information and exit 1339 -q, --quiet, --silent do not print \`checking ...' messages 1340 --cache-file=FILE cache test results in FILE [disabled] 1341 -C, --config-cache alias for \`--cache-file=config.cache' 1342 -n, --no-create do not create output files 1343 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1344 1345Installation directories: 1346 --prefix=PREFIX install architecture-independent files in PREFIX 1347 [$ac_default_prefix] 1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1349 [PREFIX] 1350 1351By default, \`make install' will install all the files in 1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1353an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1354for instance \`--prefix=\$HOME'. 1355 1356For better control, use the options below. 1357 1358Fine tuning of the installation directories: 1359 --bindir=DIR user executables [EPREFIX/bin] 1360 --sbindir=DIR system admin executables [EPREFIX/sbin] 1361 --libexecdir=DIR program executables [EPREFIX/libexec] 1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1365 --libdir=DIR object code libraries [EPREFIX/lib] 1366 --includedir=DIR C header files [PREFIX/include] 1367 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1370 --infodir=DIR info documentation [DATAROOTDIR/info] 1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1372 --mandir=DIR man documentation [DATAROOTDIR/man] 1373 --docdir=DIR documentation root [DATAROOTDIR/doc/xinput] 1374 --htmldir=DIR html documentation [DOCDIR] 1375 --dvidir=DIR dvi documentation [DOCDIR] 1376 --pdfdir=DIR pdf documentation [DOCDIR] 1377 --psdir=DIR ps documentation [DOCDIR] 1378_ACEOF 1379 1380 cat <<\_ACEOF 1381 1382Program names: 1383 --program-prefix=PREFIX prepend PREFIX to installed program names 1384 --program-suffix=SUFFIX append SUFFIX to installed program names 1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1386 1387System types: 1388 --build=BUILD configure for building on BUILD [guessed] 1389 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1390_ACEOF 1391fi 1392 1393if test -n "$ac_init_help"; then 1394 case $ac_init_help in 1395 short | recursive ) echo "Configuration of xinput 1.6.3:";; 1396 esac 1397 cat <<\_ACEOF 1398 1399Optional Features: 1400 --disable-option-checking ignore unrecognized --enable/--with options 1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1403 --enable-silent-rules less verbose build output (undo: "make V=1") 1404 --disable-silent-rules verbose build output (undo: "make V=0") 1405 --enable-dependency-tracking 1406 do not reject slow dependency extractors 1407 --disable-dependency-tracking 1408 speeds up one-time build 1409 --disable-selective-werror 1410 Turn off selective compiler errors. (default: 1411 enabled) 1412 --enable-strict-compilation 1413 Enable all warnings from compiler and make them 1414 errors (default: disabled) 1415 1416Some influential environment variables: 1417 CC C compiler command 1418 CFLAGS C compiler flags 1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1420 nonstandard directory <lib dir> 1421 LIBS libraries to pass to the linker, e.g. -l<library> 1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1423 you have headers in a nonstandard directory <include dir> 1424 CPP C preprocessor 1425 PKG_CONFIG path to pkg-config utility 1426 PKG_CONFIG_PATH 1427 directories to add to pkg-config's search path 1428 PKG_CONFIG_LIBDIR 1429 path overriding pkg-config's built-in search path 1430 XINPUT_CFLAGS 1431 C compiler flags for XINPUT, overriding pkg-config 1432 XINPUT_LIBS linker flags for XINPUT, overriding pkg-config 1433 XI2_CFLAGS C compiler flags for XI2, overriding pkg-config 1434 XI2_LIBS linker flags for XI2, overriding pkg-config 1435 XI21_CFLAGS C compiler flags for XI21, overriding pkg-config 1436 XI21_LIBS linker flags for XI21, overriding pkg-config 1437 XI22_CFLAGS C compiler flags for XI22, overriding pkg-config 1438 XI22_LIBS linker flags for XI22, overriding pkg-config 1439 1440Use these variables to override the choices made by `configure' or to help 1441it to find libraries and programs with nonstandard names/locations. 1442 1443Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinput/issues>. 1444_ACEOF 1445ac_status=$? 1446fi 1447 1448if test "$ac_init_help" = "recursive"; then 1449 # If there are subdirs, report their specific --help. 1450 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1451 test -d "$ac_dir" || 1452 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1453 continue 1454 ac_builddir=. 1455 1456case "$ac_dir" in 1457.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458*) 1459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1460 # A ".." for each directory in $ac_dir_suffix. 1461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1462 case $ac_top_builddir_sub in 1463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1465 esac ;; 1466esac 1467ac_abs_top_builddir=$ac_pwd 1468ac_abs_builddir=$ac_pwd$ac_dir_suffix 1469# for backward compatibility: 1470ac_top_builddir=$ac_top_build_prefix 1471 1472case $srcdir in 1473 .) # We are building in place. 1474 ac_srcdir=. 1475 ac_top_srcdir=$ac_top_builddir_sub 1476 ac_abs_top_srcdir=$ac_pwd ;; 1477 [\\/]* | ?:[\\/]* ) # Absolute name. 1478 ac_srcdir=$srcdir$ac_dir_suffix; 1479 ac_top_srcdir=$srcdir 1480 ac_abs_top_srcdir=$srcdir ;; 1481 *) # Relative name. 1482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1483 ac_top_srcdir=$ac_top_build_prefix$srcdir 1484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1485esac 1486ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1487 1488 cd "$ac_dir" || { ac_status=$?; continue; } 1489 # Check for guested configure. 1490 if test -f "$ac_srcdir/configure.gnu"; then 1491 echo && 1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1493 elif test -f "$ac_srcdir/configure"; then 1494 echo && 1495 $SHELL "$ac_srcdir/configure" --help=recursive 1496 else 1497 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1498 fi || ac_status=$? 1499 cd "$ac_pwd" || { ac_status=$?; break; } 1500 done 1501fi 1502 1503test -n "$ac_init_help" && exit $ac_status 1504if $ac_init_version; then 1505 cat <<\_ACEOF 1506xinput configure 1.6.3 1507generated by GNU Autoconf 2.69 1508 1509Copyright (C) 2012 Free Software Foundation, Inc. 1510This configure script is free software; the Free Software Foundation 1511gives unlimited permission to copy, distribute and modify it. 1512_ACEOF 1513 exit 1514fi 1515 1516## ------------------------ ## 1517## Autoconf initialization. ## 1518## ------------------------ ## 1519 1520# ac_fn_c_try_compile LINENO 1521# -------------------------- 1522# Try to compile conftest.$ac_ext, and return whether this succeeded. 1523ac_fn_c_try_compile () 1524{ 1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1526 rm -f conftest.$ac_objext 1527 if { { ac_try="$ac_compile" 1528case "(($ac_try" in 1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1530 *) ac_try_echo=$ac_try;; 1531esac 1532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1533$as_echo "$ac_try_echo"; } >&5 1534 (eval "$ac_compile") 2>conftest.err 1535 ac_status=$? 1536 if test -s conftest.err; then 1537 grep -v '^ *+' conftest.err >conftest.er1 1538 cat conftest.er1 >&5 1539 mv -f conftest.er1 conftest.err 1540 fi 1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1542 test $ac_status = 0; } && { 1543 test -z "$ac_c_werror_flag" || 1544 test ! -s conftest.err 1545 } && test -s conftest.$ac_objext; then : 1546 ac_retval=0 1547else 1548 $as_echo "$as_me: failed program was:" >&5 1549sed 's/^/| /' conftest.$ac_ext >&5 1550 1551 ac_retval=1 1552fi 1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1554 as_fn_set_status $ac_retval 1555 1556} # ac_fn_c_try_compile 1557 1558# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1559# --------------------------------------------- 1560# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1561# accordingly. 1562ac_fn_c_check_decl () 1563{ 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 as_decl_name=`echo $2|sed 's/ *(.*//'` 1566 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1568$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1569if eval \${$3+:} false; then : 1570 $as_echo_n "(cached) " >&6 1571else 1572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1573/* end confdefs.h. */ 1574$4 1575int 1576main () 1577{ 1578#ifndef $as_decl_name 1579#ifdef __cplusplus 1580 (void) $as_decl_use; 1581#else 1582 (void) $as_decl_name; 1583#endif 1584#endif 1585 1586 ; 1587 return 0; 1588} 1589_ACEOF 1590if ac_fn_c_try_compile "$LINENO"; then : 1591 eval "$3=yes" 1592else 1593 eval "$3=no" 1594fi 1595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1596fi 1597eval ac_res=\$$3 1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1599$as_echo "$ac_res" >&6; } 1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1601 1602} # ac_fn_c_check_decl 1603 1604# ac_fn_c_try_cpp LINENO 1605# ---------------------- 1606# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1607ac_fn_c_try_cpp () 1608{ 1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1610 if { { ac_try="$ac_cpp conftest.$ac_ext" 1611case "(($ac_try" in 1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1613 *) ac_try_echo=$ac_try;; 1614esac 1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1616$as_echo "$ac_try_echo"; } >&5 1617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1618 ac_status=$? 1619 if test -s conftest.err; then 1620 grep -v '^ *+' conftest.err >conftest.er1 1621 cat conftest.er1 >&5 1622 mv -f conftest.er1 conftest.err 1623 fi 1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1625 test $ac_status = 0; } > conftest.i && { 1626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1627 test ! -s conftest.err 1628 }; then : 1629 ac_retval=0 1630else 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=1 1635fi 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_cpp 1640 1641# ac_fn_c_try_run LINENO 1642# ---------------------- 1643# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1644# that executables *can* be run. 1645ac_fn_c_try_run () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 if { { ac_try="$ac_link" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_link") 2>&5 1656 ac_status=$? 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1659 { { case "(($ac_try" in 1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1661 *) ac_try_echo=$ac_try;; 1662esac 1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664$as_echo "$ac_try_echo"; } >&5 1665 (eval "$ac_try") 2>&5 1666 ac_status=$? 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; }; }; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: program exited with status $ac_status" >&5 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=$ac_status 1676fi 1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 as_fn_set_status $ac_retval 1680 1681} # ac_fn_c_try_run 1682 1683# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1684# ------------------------------------------------------- 1685# Tests whether HEADER exists and can be compiled using the include files in 1686# INCLUDES, setting the cache variable VAR accordingly. 1687ac_fn_c_check_header_compile () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1691$as_echo_n "checking for $2... " >&6; } 1692if eval \${$3+:} false; then : 1693 $as_echo_n "(cached) " >&6 1694else 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696/* end confdefs.h. */ 1697$4 1698#include <$2> 1699_ACEOF 1700if ac_fn_c_try_compile "$LINENO"; then : 1701 eval "$3=yes" 1702else 1703 eval "$3=no" 1704fi 1705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1706fi 1707eval ac_res=\$$3 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1709$as_echo "$ac_res" >&6; } 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 1712} # ac_fn_c_check_header_compile 1713 1714# ac_fn_c_try_link LINENO 1715# ----------------------- 1716# Try to link conftest.$ac_ext, and return whether this succeeded. 1717ac_fn_c_try_link () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 rm -f conftest.$ac_objext conftest$ac_exeext 1721 if { { ac_try="$ac_link" 1722case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725esac 1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727$as_echo "$ac_try_echo"; } >&5 1728 (eval "$ac_link") 2>conftest.err 1729 ac_status=$? 1730 if test -s conftest.err; then 1731 grep -v '^ *+' conftest.err >conftest.er1 1732 cat conftest.er1 >&5 1733 mv -f conftest.er1 conftest.err 1734 fi 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; } && { 1737 test -z "$ac_c_werror_flag" || 1738 test ! -s conftest.err 1739 } && test -s conftest$ac_exeext && { 1740 test "$cross_compiling" = yes || 1741 test -x conftest$ac_exeext 1742 }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: failed program was:" >&5 1746sed 's/^/| /' conftest.$ac_ext >&5 1747 1748 ac_retval=1 1749fi 1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1752 # interfere with the next link command; also delete a directory that is 1753 # left behind by Apple's compiler. We do this before executing the actions. 1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 as_fn_set_status $ac_retval 1757 1758} # ac_fn_c_try_link 1759cat >config.log <<_ACEOF 1760This file contains any messages produced by compilers while 1761running configure, to aid debugging if configure makes a mistake. 1762 1763It was created by xinput $as_me 1.6.3, which was 1764generated by GNU Autoconf 2.69. Invocation command line was 1765 1766 $ $0 $@ 1767 1768_ACEOF 1769exec 5>>config.log 1770{ 1771cat <<_ASUNAME 1772## --------- ## 1773## Platform. ## 1774## --------- ## 1775 1776hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1777uname -m = `(uname -m) 2>/dev/null || echo unknown` 1778uname -r = `(uname -r) 2>/dev/null || echo unknown` 1779uname -s = `(uname -s) 2>/dev/null || echo unknown` 1780uname -v = `(uname -v) 2>/dev/null || echo unknown` 1781 1782/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1783/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1784 1785/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1786/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1787/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1788/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1789/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1790/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1791/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1792 1793_ASUNAME 1794 1795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1796for as_dir in $PATH 1797do 1798 IFS=$as_save_IFS 1799 test -z "$as_dir" && as_dir=. 1800 $as_echo "PATH: $as_dir" 1801 done 1802IFS=$as_save_IFS 1803 1804} >&5 1805 1806cat >&5 <<_ACEOF 1807 1808 1809## ----------- ## 1810## Core tests. ## 1811## ----------- ## 1812 1813_ACEOF 1814 1815 1816# Keep a trace of the command line. 1817# Strip out --no-create and --no-recursion so they do not pile up. 1818# Strip out --silent because we don't want to record it for future runs. 1819# Also quote any args containing shell meta-characters. 1820# Make two passes to allow for proper duplicate-argument suppression. 1821ac_configure_args= 1822ac_configure_args0= 1823ac_configure_args1= 1824ac_must_keep_next=false 1825for ac_pass in 1 2 1826do 1827 for ac_arg 1828 do 1829 case $ac_arg in 1830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1832 | -silent | --silent | --silen | --sile | --sil) 1833 continue ;; 1834 *\'*) 1835 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1836 esac 1837 case $ac_pass in 1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1839 2) 1840 as_fn_append ac_configure_args1 " '$ac_arg'" 1841 if test $ac_must_keep_next = true; then 1842 ac_must_keep_next=false # Got value, back to normal. 1843 else 1844 case $ac_arg in 1845 *=* | --config-cache | -C | -disable-* | --disable-* \ 1846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1848 | -with-* | --with-* | -without-* | --without-* | --x) 1849 case "$ac_configure_args0 " in 1850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1851 esac 1852 ;; 1853 -* ) ac_must_keep_next=true ;; 1854 esac 1855 fi 1856 as_fn_append ac_configure_args " '$ac_arg'" 1857 ;; 1858 esac 1859 done 1860done 1861{ ac_configure_args0=; unset ac_configure_args0;} 1862{ ac_configure_args1=; unset ac_configure_args1;} 1863 1864# When interrupted or exit'd, cleanup temporary files, and complete 1865# config.log. We remove comments because anyway the quotes in there 1866# would cause problems or look ugly. 1867# WARNING: Use '\'' to represent an apostrophe within the trap. 1868# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1869trap 'exit_status=$? 1870 # Save into config.log some information that might help in debugging. 1871 { 1872 echo 1873 1874 $as_echo "## ---------------- ## 1875## Cache variables. ## 1876## ---------------- ##" 1877 echo 1878 # The following way of writing the cache mishandles newlines in values, 1879( 1880 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1881 eval ac_val=\$$ac_var 1882 case $ac_val in #( 1883 *${as_nl}*) 1884 case $ac_var in #( 1885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1886$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1887 esac 1888 case $ac_var in #( 1889 _ | IFS | as_nl) ;; #( 1890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1891 *) { eval $ac_var=; unset $ac_var;} ;; 1892 esac ;; 1893 esac 1894 done 1895 (set) 2>&1 | 1896 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1897 *${as_nl}ac_space=\ *) 1898 sed -n \ 1899 "s/'\''/'\''\\\\'\'''\''/g; 1900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1901 ;; #( 1902 *) 1903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1904 ;; 1905 esac | 1906 sort 1907) 1908 echo 1909 1910 $as_echo "## ----------------- ## 1911## Output variables. ## 1912## ----------------- ##" 1913 echo 1914 for ac_var in $ac_subst_vars 1915 do 1916 eval ac_val=\$$ac_var 1917 case $ac_val in 1918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1919 esac 1920 $as_echo "$ac_var='\''$ac_val'\''" 1921 done | sort 1922 echo 1923 1924 if test -n "$ac_subst_files"; then 1925 $as_echo "## ------------------- ## 1926## File substitutions. ## 1927## ------------------- ##" 1928 echo 1929 for ac_var in $ac_subst_files 1930 do 1931 eval ac_val=\$$ac_var 1932 case $ac_val in 1933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1934 esac 1935 $as_echo "$ac_var='\''$ac_val'\''" 1936 done | sort 1937 echo 1938 fi 1939 1940 if test -s confdefs.h; then 1941 $as_echo "## ----------- ## 1942## confdefs.h. ## 1943## ----------- ##" 1944 echo 1945 cat confdefs.h 1946 echo 1947 fi 1948 test "$ac_signal" != 0 && 1949 $as_echo "$as_me: caught signal $ac_signal" 1950 $as_echo "$as_me: exit $exit_status" 1951 } >&5 1952 rm -f core *.core core.conftest.* && 1953 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1954 exit $exit_status 1955' 0 1956for ac_signal in 1 2 13 15; do 1957 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1958done 1959ac_signal=0 1960 1961# confdefs.h avoids OS command line length limits that DEFS can exceed. 1962rm -f -r conftest* confdefs.h 1963 1964$as_echo "/* confdefs.h */" > confdefs.h 1965 1966# Predefined preprocessor variables. 1967 1968cat >>confdefs.h <<_ACEOF 1969#define PACKAGE_NAME "$PACKAGE_NAME" 1970_ACEOF 1971 1972cat >>confdefs.h <<_ACEOF 1973#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1974_ACEOF 1975 1976cat >>confdefs.h <<_ACEOF 1977#define PACKAGE_VERSION "$PACKAGE_VERSION" 1978_ACEOF 1979 1980cat >>confdefs.h <<_ACEOF 1981#define PACKAGE_STRING "$PACKAGE_STRING" 1982_ACEOF 1983 1984cat >>confdefs.h <<_ACEOF 1985#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1986_ACEOF 1987 1988cat >>confdefs.h <<_ACEOF 1989#define PACKAGE_URL "$PACKAGE_URL" 1990_ACEOF 1991 1992 1993# Let the site file select an alternate cache file if it wants to. 1994# Prefer an explicitly selected file to automatically selected ones. 1995ac_site_file1=NONE 1996ac_site_file2=NONE 1997if test -n "$CONFIG_SITE"; then 1998 # We do not want a PATH search for config.site. 1999 case $CONFIG_SITE in #(( 2000 -*) ac_site_file1=./$CONFIG_SITE;; 2001 */*) ac_site_file1=$CONFIG_SITE;; 2002 *) ac_site_file1=./$CONFIG_SITE;; 2003 esac 2004elif test "x$prefix" != xNONE; then 2005 ac_site_file1=$prefix/share/config.site 2006 ac_site_file2=$prefix/etc/config.site 2007else 2008 ac_site_file1=$ac_default_prefix/share/config.site 2009 ac_site_file2=$ac_default_prefix/etc/config.site 2010fi 2011for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2012do 2013 test "x$ac_site_file" = xNONE && continue 2014 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2016$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2017 sed 's/^/| /' "$ac_site_file" >&5 2018 . "$ac_site_file" \ 2019 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2021as_fn_error $? "failed to load site script $ac_site_file 2022See \`config.log' for more details" "$LINENO" 5; } 2023 fi 2024done 2025 2026if test -r "$cache_file"; then 2027 # Some versions of bash will fail to source /dev/null (special files 2028 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2029 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2031$as_echo "$as_me: loading cache $cache_file" >&6;} 2032 case $cache_file in 2033 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2034 *) . "./$cache_file";; 2035 esac 2036 fi 2037else 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2039$as_echo "$as_me: creating cache $cache_file" >&6;} 2040 >$cache_file 2041fi 2042 2043# Check that the precious variables saved in the cache have kept the same 2044# value. 2045ac_cache_corrupted=false 2046for ac_var in $ac_precious_vars; do 2047 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2048 eval ac_new_set=\$ac_env_${ac_var}_set 2049 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2050 eval ac_new_val=\$ac_env_${ac_var}_value 2051 case $ac_old_set,$ac_new_set in 2052 set,) 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2054$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2055 ac_cache_corrupted=: ;; 2056 ,set) 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2058$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2059 ac_cache_corrupted=: ;; 2060 ,);; 2061 *) 2062 if test "x$ac_old_val" != "x$ac_new_val"; then 2063 # differences in whitespace do not lead to failure. 2064 ac_old_val_w=`echo x $ac_old_val` 2065 ac_new_val_w=`echo x $ac_new_val` 2066 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2068$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2069 ac_cache_corrupted=: 2070 else 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2072$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2073 eval $ac_var=\$ac_old_val 2074 fi 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2076$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2078$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2079 fi;; 2080 esac 2081 # Pass precious variables to config.status. 2082 if test "$ac_new_set" = set; then 2083 case $ac_new_val in 2084 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2085 *) ac_arg=$ac_var=$ac_new_val ;; 2086 esac 2087 case " $ac_configure_args " in 2088 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2089 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2090 esac 2091 fi 2092done 2093if $ac_cache_corrupted; then 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2097$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2098 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2099fi 2100## -------------------- ## 2101## Main body of script. ## 2102## -------------------- ## 2103 2104ac_ext=c 2105ac_cpp='$CPP $CPPFLAGS' 2106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2108ac_compiler_gnu=$ac_cv_c_compiler_gnu 2109 2110 2111 2112ac_config_headers="$ac_config_headers config.h" 2113 2114 2115# Initialize Automake 2116am__api_version='1.16' 2117 2118ac_aux_dir= 2119for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2120 if test -f "$ac_dir/install-sh"; then 2121 ac_aux_dir=$ac_dir 2122 ac_install_sh="$ac_aux_dir/install-sh -c" 2123 break 2124 elif test -f "$ac_dir/install.sh"; then 2125 ac_aux_dir=$ac_dir 2126 ac_install_sh="$ac_aux_dir/install.sh -c" 2127 break 2128 elif test -f "$ac_dir/shtool"; then 2129 ac_aux_dir=$ac_dir 2130 ac_install_sh="$ac_aux_dir/shtool install -c" 2131 break 2132 fi 2133done 2134if test -z "$ac_aux_dir"; then 2135 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2136fi 2137 2138# These three variables are undocumented and unsupported, 2139# and are intended to be withdrawn in a future Autoconf release. 2140# They can cause serious problems if a builder's source tree is in a directory 2141# whose full name contains unusual characters. 2142ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2143ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2144ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2145 2146 2147# Find a good install program. We prefer a C program (faster), 2148# so one script is as good as another. But avoid the broken or 2149# incompatible versions: 2150# SysV /etc/install, /usr/sbin/install 2151# SunOS /usr/etc/install 2152# IRIX /sbin/install 2153# AIX /bin/install 2154# AmigaOS /C/install, which installs bootblocks on floppy discs 2155# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2156# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2157# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2158# OS/2's system install, which has a completely different semantic 2159# ./install, which can be erroneously created by make from ./install.sh. 2160# Reject install programs that cannot install multiple files. 2161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2162$as_echo_n "checking for a BSD-compatible install... " >&6; } 2163if test -z "$INSTALL"; then 2164if ${ac_cv_path_install+:} false; then : 2165 $as_echo_n "(cached) " >&6 2166else 2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2168for as_dir in $PATH 2169do 2170 IFS=$as_save_IFS 2171 test -z "$as_dir" && as_dir=. 2172 # Account for people who put trailing slashes in PATH elements. 2173case $as_dir/ in #(( 2174 ./ | .// | /[cC]/* | \ 2175 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2176 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2177 /usr/ucb/* ) ;; 2178 *) 2179 # OSF1 and SCO ODT 3.0 have their own names for install. 2180 # Don't use installbsd from OSF since it installs stuff as root 2181 # by default. 2182 for ac_prog in ginstall scoinst install; do 2183 for ac_exec_ext in '' $ac_executable_extensions; do 2184 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2185 if test $ac_prog = install && 2186 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2187 # AIX install. It has an incompatible calling convention. 2188 : 2189 elif test $ac_prog = install && 2190 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2191 # program-specific install script used by HP pwplus--don't use. 2192 : 2193 else 2194 rm -rf conftest.one conftest.two conftest.dir 2195 echo one > conftest.one 2196 echo two > conftest.two 2197 mkdir conftest.dir 2198 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2199 test -s conftest.one && test -s conftest.two && 2200 test -s conftest.dir/conftest.one && 2201 test -s conftest.dir/conftest.two 2202 then 2203 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2204 break 3 2205 fi 2206 fi 2207 fi 2208 done 2209 done 2210 ;; 2211esac 2212 2213 done 2214IFS=$as_save_IFS 2215 2216rm -rf conftest.one conftest.two conftest.dir 2217 2218fi 2219 if test "${ac_cv_path_install+set}" = set; then 2220 INSTALL=$ac_cv_path_install 2221 else 2222 # As a last resort, use the slow shell script. Don't cache a 2223 # value for INSTALL within a source directory, because that will 2224 # break other packages using the cache if that directory is 2225 # removed, or if the value is a relative name. 2226 INSTALL=$ac_install_sh 2227 fi 2228fi 2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2230$as_echo "$INSTALL" >&6; } 2231 2232# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2233# It thinks the first close brace ends the variable substitution. 2234test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2235 2236test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2237 2238test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2239 2240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2241$as_echo_n "checking whether build environment is sane... " >&6; } 2242# Reject unsafe characters in $srcdir or the absolute working directory 2243# name. Accept space and tab only in the latter. 2244am_lf=' 2245' 2246case `pwd` in 2247 *[\\\"\#\$\&\'\`$am_lf]*) 2248 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2249esac 2250case $srcdir in 2251 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2252 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2253esac 2254 2255# Do 'set' in a subshell so we don't clobber the current shell's 2256# arguments. Must try -L first in case configure is actually a 2257# symlink; some systems play weird games with the mod time of symlinks 2258# (eg FreeBSD returns the mod time of the symlink's containing 2259# directory). 2260if ( 2261 am_has_slept=no 2262 for am_try in 1 2; do 2263 echo "timestamp, slept: $am_has_slept" > conftest.file 2264 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2265 if test "$*" = "X"; then 2266 # -L didn't work. 2267 set X `ls -t "$srcdir/configure" conftest.file` 2268 fi 2269 if test "$*" != "X $srcdir/configure conftest.file" \ 2270 && test "$*" != "X conftest.file $srcdir/configure"; then 2271 2272 # If neither matched, then we have a broken ls. This can happen 2273 # if, for instance, CONFIG_SHELL is bash and it inherits a 2274 # broken ls alias from the environment. This has actually 2275 # happened. Such a system could not be considered "sane". 2276 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2277 alias in your environment" "$LINENO" 5 2278 fi 2279 if test "$2" = conftest.file || test $am_try -eq 2; then 2280 break 2281 fi 2282 # Just in case. 2283 sleep 1 2284 am_has_slept=yes 2285 done 2286 test "$2" = conftest.file 2287 ) 2288then 2289 # Ok. 2290 : 2291else 2292 as_fn_error $? "newly created file is older than distributed files! 2293Check your system clock" "$LINENO" 5 2294fi 2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2296$as_echo "yes" >&6; } 2297# If we didn't sleep, we still need to ensure time stamps of config.status and 2298# generated files are strictly newer. 2299am_sleep_pid= 2300if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2301 ( sleep 1 ) & 2302 am_sleep_pid=$! 2303fi 2304 2305rm -f conftest.file 2306 2307test "$program_prefix" != NONE && 2308 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2309# Use a double $ so make ignores it. 2310test "$program_suffix" != NONE && 2311 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2312# Double any \ or $. 2313# By default was `s,x,x', remove it if useless. 2314ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2315program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2316 2317# Expand $ac_aux_dir to an absolute path. 2318am_aux_dir=`cd "$ac_aux_dir" && pwd` 2319 2320if test x"${MISSING+set}" != xset; then 2321 case $am_aux_dir in 2322 *\ * | *\ *) 2323 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2324 *) 2325 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2326 esac 2327fi 2328# Use eval to expand $SHELL 2329if eval "$MISSING --is-lightweight"; then 2330 am_missing_run="$MISSING " 2331else 2332 am_missing_run= 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2334$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2335fi 2336 2337if test x"${install_sh+set}" != xset; then 2338 case $am_aux_dir in 2339 *\ * | *\ *) 2340 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2341 *) 2342 install_sh="\${SHELL} $am_aux_dir/install-sh" 2343 esac 2344fi 2345 2346# Installed binaries are usually stripped using 'strip' when the user 2347# run "make install-strip". However 'strip' might not be the right 2348# tool to use in cross-compilation environments, therefore Automake 2349# will honor the 'STRIP' environment variable to overrule this program. 2350if test "$cross_compiling" != no; then 2351 if test -n "$ac_tool_prefix"; then 2352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2353set dummy ${ac_tool_prefix}strip; ac_word=$2 2354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2355$as_echo_n "checking for $ac_word... " >&6; } 2356if ${ac_cv_prog_STRIP+:} false; then : 2357 $as_echo_n "(cached) " >&6 2358else 2359 if test -n "$STRIP"; then 2360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2361else 2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363for as_dir in $PATH 2364do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2369 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373done 2374 done 2375IFS=$as_save_IFS 2376 2377fi 2378fi 2379STRIP=$ac_cv_prog_STRIP 2380if test -n "$STRIP"; then 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2382$as_echo "$STRIP" >&6; } 2383else 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2385$as_echo "no" >&6; } 2386fi 2387 2388 2389fi 2390if test -z "$ac_cv_prog_STRIP"; then 2391 ac_ct_STRIP=$STRIP 2392 # Extract the first word of "strip", so it can be a program name with args. 2393set dummy strip; ac_word=$2 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2395$as_echo_n "checking for $ac_word... " >&6; } 2396if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2397 $as_echo_n "(cached) " >&6 2398else 2399 if test -n "$ac_ct_STRIP"; then 2400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2401else 2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403for as_dir in $PATH 2404do 2405 IFS=$as_save_IFS 2406 test -z "$as_dir" && as_dir=. 2407 for ac_exec_ext in '' $ac_executable_extensions; do 2408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2409 ac_cv_prog_ac_ct_STRIP="strip" 2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2411 break 2 2412 fi 2413done 2414 done 2415IFS=$as_save_IFS 2416 2417fi 2418fi 2419ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2420if test -n "$ac_ct_STRIP"; then 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2422$as_echo "$ac_ct_STRIP" >&6; } 2423else 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2425$as_echo "no" >&6; } 2426fi 2427 2428 if test "x$ac_ct_STRIP" = x; then 2429 STRIP=":" 2430 else 2431 case $cross_compiling:$ac_tool_warned in 2432yes:) 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2435ac_tool_warned=yes ;; 2436esac 2437 STRIP=$ac_ct_STRIP 2438 fi 2439else 2440 STRIP="$ac_cv_prog_STRIP" 2441fi 2442 2443fi 2444INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2445 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2447$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2448if test -z "$MKDIR_P"; then 2449 if ${ac_cv_path_mkdir+:} false; then : 2450 $as_echo_n "(cached) " >&6 2451else 2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2453for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2454do 2455 IFS=$as_save_IFS 2456 test -z "$as_dir" && as_dir=. 2457 for ac_prog in mkdir gmkdir; do 2458 for ac_exec_ext in '' $ac_executable_extensions; do 2459 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2460 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2461 'mkdir (GNU coreutils) '* | \ 2462 'mkdir (coreutils) '* | \ 2463 'mkdir (fileutils) '4.1*) 2464 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2465 break 3;; 2466 esac 2467 done 2468 done 2469 done 2470IFS=$as_save_IFS 2471 2472fi 2473 2474 test -d ./--version && rmdir ./--version 2475 if test "${ac_cv_path_mkdir+set}" = set; then 2476 MKDIR_P="$ac_cv_path_mkdir -p" 2477 else 2478 # As a last resort, use the slow shell script. Don't cache a 2479 # value for MKDIR_P within a source directory, because that will 2480 # break other packages using the cache if that directory is 2481 # removed, or if the value is a relative name. 2482 MKDIR_P="$ac_install_sh -d" 2483 fi 2484fi 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2486$as_echo "$MKDIR_P" >&6; } 2487 2488for ac_prog in gawk mawk nawk awk 2489do 2490 # Extract the first word of "$ac_prog", so it can be a program name with args. 2491set dummy $ac_prog; ac_word=$2 2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2493$as_echo_n "checking for $ac_word... " >&6; } 2494if ${ac_cv_prog_AWK+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496else 2497 if test -n "$AWK"; then 2498 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2499else 2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2501for as_dir in $PATH 2502do 2503 IFS=$as_save_IFS 2504 test -z "$as_dir" && as_dir=. 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2507 ac_cv_prog_AWK="$ac_prog" 2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2509 break 2 2510 fi 2511done 2512 done 2513IFS=$as_save_IFS 2514 2515fi 2516fi 2517AWK=$ac_cv_prog_AWK 2518if test -n "$AWK"; then 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2520$as_echo "$AWK" >&6; } 2521else 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2523$as_echo "no" >&6; } 2524fi 2525 2526 2527 test -n "$AWK" && break 2528done 2529 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2531$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2532set x ${MAKE-make} 2533ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2534if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 cat >conftest.make <<\_ACEOF 2538SHELL = /bin/sh 2539all: 2540 @echo '@@@%%%=$(MAKE)=@@@%%%' 2541_ACEOF 2542# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2543case `${MAKE-make} -f conftest.make 2>/dev/null` in 2544 *@@@%%%=?*=@@@%%%*) 2545 eval ac_cv_prog_make_${ac_make}_set=yes;; 2546 *) 2547 eval ac_cv_prog_make_${ac_make}_set=no;; 2548esac 2549rm -f conftest.make 2550fi 2551if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2553$as_echo "yes" >&6; } 2554 SET_MAKE= 2555else 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2557$as_echo "no" >&6; } 2558 SET_MAKE="MAKE=${MAKE-make}" 2559fi 2560 2561rm -rf .tst 2>/dev/null 2562mkdir .tst 2>/dev/null 2563if test -d .tst; then 2564 am__leading_dot=. 2565else 2566 am__leading_dot=_ 2567fi 2568rmdir .tst 2>/dev/null 2569 2570# Check whether --enable-silent-rules was given. 2571if test "${enable_silent_rules+set}" = set; then : 2572 enableval=$enable_silent_rules; 2573fi 2574 2575case $enable_silent_rules in # ((( 2576 yes) AM_DEFAULT_VERBOSITY=0;; 2577 no) AM_DEFAULT_VERBOSITY=1;; 2578 *) AM_DEFAULT_VERBOSITY=1;; 2579esac 2580am_make=${MAKE-make} 2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2582$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2583if ${am_cv_make_support_nested_variables+:} false; then : 2584 $as_echo_n "(cached) " >&6 2585else 2586 if $as_echo 'TRUE=$(BAR$(V)) 2587BAR0=false 2588BAR1=true 2589V=1 2590am__doit: 2591 @$(TRUE) 2592.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2593 am_cv_make_support_nested_variables=yes 2594else 2595 am_cv_make_support_nested_variables=no 2596fi 2597fi 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2599$as_echo "$am_cv_make_support_nested_variables" >&6; } 2600if test $am_cv_make_support_nested_variables = yes; then 2601 AM_V='$(V)' 2602 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2603else 2604 AM_V=$AM_DEFAULT_VERBOSITY 2605 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2606fi 2607AM_BACKSLASH='\' 2608 2609if test "`cd $srcdir && pwd`" != "`pwd`"; then 2610 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2611 # is not polluted with repeated "-I." 2612 am__isrc=' -I$(srcdir)' 2613 # test to see if srcdir already configured 2614 if test -f $srcdir/config.status; then 2615 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2616 fi 2617fi 2618 2619# test whether we have cygpath 2620if test -z "$CYGPATH_W"; then 2621 if (cygpath --version) >/dev/null 2>/dev/null; then 2622 CYGPATH_W='cygpath -w' 2623 else 2624 CYGPATH_W=echo 2625 fi 2626fi 2627 2628 2629# Define the identity of the package. 2630 PACKAGE='xinput' 2631 VERSION='1.6.3' 2632 2633 2634cat >>confdefs.h <<_ACEOF 2635#define PACKAGE "$PACKAGE" 2636_ACEOF 2637 2638 2639cat >>confdefs.h <<_ACEOF 2640#define VERSION "$VERSION" 2641_ACEOF 2642 2643# Some tools Automake needs. 2644 2645ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2646 2647 2648AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2649 2650 2651AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2652 2653 2654AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2655 2656 2657MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2658 2659# For better backward compatibility. To be removed once Automake 1.9.x 2660# dies out for good. For more background, see: 2661# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2662# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2663mkdir_p='$(MKDIR_P)' 2664 2665# We need awk for the "check" target (and possibly the TAP driver). The 2666# system "awk" is bad on some platforms. 2667# Always define AMTAR for backward compatibility. Yes, it's still used 2668# in the wild :-( We should find a proper way to deprecate it ... 2669AMTAR='$${TAR-tar}' 2670 2671 2672# We'll loop over all known methods to create a tar archive until one works. 2673_am_tools='gnutar pax cpio none' 2674 2675am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2676 2677 2678 2679 2680 2681 2682# POSIX will say in a future version that running "rm -f" with no argument 2683# is OK; and we want to be able to make that assumption in our Makefile 2684# recipes. So use an aggressive probe to check that the usage we want is 2685# actually supported "in the wild" to an acceptable degree. 2686# See automake bug#10828. 2687# To make any issue more visible, cause the running configure to be aborted 2688# by default if the 'rm' program in use doesn't match our expectations; the 2689# user can still override this though. 2690if rm -f && rm -fr && rm -rf; then : OK; else 2691 cat >&2 <<'END' 2692Oops! 2693 2694Your 'rm' program seems unable to run without file operands specified 2695on the command line, even when the '-f' option is present. This is contrary 2696to the behaviour of most rm programs out there, and not conforming with 2697the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2698 2699Please tell bug-automake@gnu.org about your system, including the value 2700of your $PATH and any error possibly output before this message. This 2701can help us improve future automake versions. 2702 2703END 2704 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2705 echo 'Configuration will proceed anyway, since you have set the' >&2 2706 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2707 echo >&2 2708 else 2709 cat >&2 <<'END' 2710Aborting the configuration process, to ensure you take notice of the issue. 2711 2712You can download and install GNU coreutils to get an 'rm' implementation 2713that behaves properly: <https://www.gnu.org/software/coreutils/>. 2714 2715If you want to complete the configuration process using your problematic 2716'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2717to "yes", and re-run configure. 2718 2719END 2720 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2721 fi 2722fi 2723 2724 2725# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737DEPDIR="${am__leading_dot}deps" 2738 2739ac_config_commands="$ac_config_commands depfiles" 2740 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2742$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2743cat > confinc.mk << 'END' 2744am__doit: 2745 @echo this is the am__doit target >confinc.out 2746.PHONY: am__doit 2747END 2748am__include="#" 2749am__quote= 2750# BSD make does it like this. 2751echo '.include "confinc.mk" # ignored' > confmf.BSD 2752# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2753echo 'include confinc.mk # ignored' > confmf.GNU 2754_am_result=no 2755for s in GNU BSD; do 2756 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2757 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } 2761 case $?:`cat confinc.out 2>/dev/null` in #( 2762 '0:this is the am__doit target') : 2763 case $s in #( 2764 BSD) : 2765 am__include='.include' am__quote='"' ;; #( 2766 *) : 2767 am__include='include' am__quote='' ;; 2768esac ;; #( 2769 *) : 2770 ;; 2771esac 2772 if test "$am__include" != "#"; then 2773 _am_result="yes ($s style)" 2774 break 2775 fi 2776done 2777rm -f confinc.* confmf.* 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2779$as_echo "${_am_result}" >&6; } 2780 2781# Check whether --enable-dependency-tracking was given. 2782if test "${enable_dependency_tracking+set}" = set; then : 2783 enableval=$enable_dependency_tracking; 2784fi 2785 2786if test "x$enable_dependency_tracking" != xno; then 2787 am_depcomp="$ac_aux_dir/depcomp" 2788 AMDEPBACKSLASH='\' 2789 am__nodep='_no' 2790fi 2791 if test "x$enable_dependency_tracking" != xno; then 2792 AMDEP_TRUE= 2793 AMDEP_FALSE='#' 2794else 2795 AMDEP_TRUE='#' 2796 AMDEP_FALSE= 2797fi 2798 2799 2800ac_ext=c 2801ac_cpp='$CPP $CPPFLAGS' 2802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2804ac_compiler_gnu=$ac_cv_c_compiler_gnu 2805if test -n "$ac_tool_prefix"; then 2806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2807set dummy ${ac_tool_prefix}gcc; ac_word=$2 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809$as_echo_n "checking for $ac_word... " >&6; } 2810if ${ac_cv_prog_CC+:} false; then : 2811 $as_echo_n "(cached) " >&6 2812else 2813 if test -n "$CC"; then 2814 ac_cv_prog_CC="$CC" # Let the user override the test. 2815else 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 test -z "$as_dir" && as_dir=. 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2823 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2825 break 2 2826 fi 2827done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832fi 2833CC=$ac_cv_prog_CC 2834if test -n "$CC"; then 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2836$as_echo "$CC" >&6; } 2837else 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2839$as_echo "no" >&6; } 2840fi 2841 2842 2843fi 2844if test -z "$ac_cv_prog_CC"; then 2845 ac_ct_CC=$CC 2846 # Extract the first word of "gcc", so it can be a program name with args. 2847set dummy gcc; ac_word=$2 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849$as_echo_n "checking for $ac_word... " >&6; } 2850if ${ac_cv_prog_ac_ct_CC+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 if test -n "$ac_ct_CC"; then 2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2855else 2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857for as_dir in $PATH 2858do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2863 ac_cv_prog_ac_ct_CC="gcc" 2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867done 2868 done 2869IFS=$as_save_IFS 2870 2871fi 2872fi 2873ac_ct_CC=$ac_cv_prog_ac_ct_CC 2874if test -n "$ac_ct_CC"; then 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2876$as_echo "$ac_ct_CC" >&6; } 2877else 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879$as_echo "no" >&6; } 2880fi 2881 2882 if test "x$ac_ct_CC" = x; then 2883 CC="" 2884 else 2885 case $cross_compiling:$ac_tool_warned in 2886yes:) 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2889ac_tool_warned=yes ;; 2890esac 2891 CC=$ac_ct_CC 2892 fi 2893else 2894 CC="$ac_cv_prog_CC" 2895fi 2896 2897if test -z "$CC"; then 2898 if test -n "$ac_tool_prefix"; then 2899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2900set dummy ${ac_tool_prefix}cc; ac_word=$2 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2902$as_echo_n "checking for $ac_word... " >&6; } 2903if ${ac_cv_prog_CC+:} false; then : 2904 $as_echo_n "(cached) " >&6 2905else 2906 if test -n "$CC"; then 2907 ac_cv_prog_CC="$CC" # Let the user override the test. 2908else 2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910for as_dir in $PATH 2911do 2912 IFS=$as_save_IFS 2913 test -z "$as_dir" && as_dir=. 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2916 ac_cv_prog_CC="${ac_tool_prefix}cc" 2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2918 break 2 2919 fi 2920done 2921 done 2922IFS=$as_save_IFS 2923 2924fi 2925fi 2926CC=$ac_cv_prog_CC 2927if test -n "$CC"; then 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2929$as_echo "$CC" >&6; } 2930else 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2932$as_echo "no" >&6; } 2933fi 2934 2935 2936 fi 2937fi 2938if test -z "$CC"; then 2939 # Extract the first word of "cc", so it can be a program name with args. 2940set dummy cc; ac_word=$2 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2942$as_echo_n "checking for $ac_word... " >&6; } 2943if ${ac_cv_prog_CC+:} false; then : 2944 $as_echo_n "(cached) " >&6 2945else 2946 if test -n "$CC"; then 2947 ac_cv_prog_CC="$CC" # Let the user override the test. 2948else 2949 ac_prog_rejected=no 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2958 ac_prog_rejected=yes 2959 continue 2960 fi 2961 ac_cv_prog_CC="cc" 2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2963 break 2 2964 fi 2965done 2966 done 2967IFS=$as_save_IFS 2968 2969if test $ac_prog_rejected = yes; then 2970 # We found a bogon in the path, so make sure we never use it. 2971 set dummy $ac_cv_prog_CC 2972 shift 2973 if test $# != 0; then 2974 # We chose a different compiler from the bogus one. 2975 # However, it has the same basename, so the bogon will be chosen 2976 # first if we set CC to just the basename; use the full file name. 2977 shift 2978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2979 fi 2980fi 2981fi 2982fi 2983CC=$ac_cv_prog_CC 2984if test -n "$CC"; then 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2986$as_echo "$CC" >&6; } 2987else 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989$as_echo "no" >&6; } 2990fi 2991 2992 2993fi 2994if test -z "$CC"; then 2995 if test -n "$ac_tool_prefix"; then 2996 for ac_prog in cl.exe 2997 do 2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2999set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3001$as_echo_n "checking for $ac_word... " >&6; } 3002if ${ac_cv_prog_CC+:} false; then : 3003 $as_echo_n "(cached) " >&6 3004else 3005 if test -n "$CC"; then 3006 ac_cv_prog_CC="$CC" # Let the user override the test. 3007else 3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3009for as_dir in $PATH 3010do 3011 IFS=$as_save_IFS 3012 test -z "$as_dir" && as_dir=. 3013 for ac_exec_ext in '' $ac_executable_extensions; do 3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3017 break 2 3018 fi 3019done 3020 done 3021IFS=$as_save_IFS 3022 3023fi 3024fi 3025CC=$ac_cv_prog_CC 3026if test -n "$CC"; then 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3028$as_echo "$CC" >&6; } 3029else 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031$as_echo "no" >&6; } 3032fi 3033 3034 3035 test -n "$CC" && break 3036 done 3037fi 3038if test -z "$CC"; then 3039 ac_ct_CC=$CC 3040 for ac_prog in cl.exe 3041do 3042 # Extract the first word of "$ac_prog", so it can be a program name with args. 3043set dummy $ac_prog; ac_word=$2 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3045$as_echo_n "checking for $ac_word... " >&6; } 3046if ${ac_cv_prog_ac_ct_CC+:} false; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 if test -n "$ac_ct_CC"; then 3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3051else 3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3053for as_dir in $PATH 3054do 3055 IFS=$as_save_IFS 3056 test -z "$as_dir" && as_dir=. 3057 for ac_exec_ext in '' $ac_executable_extensions; do 3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3059 ac_cv_prog_ac_ct_CC="$ac_prog" 3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3061 break 2 3062 fi 3063done 3064 done 3065IFS=$as_save_IFS 3066 3067fi 3068fi 3069ac_ct_CC=$ac_cv_prog_ac_ct_CC 3070if test -n "$ac_ct_CC"; then 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3072$as_echo "$ac_ct_CC" >&6; } 3073else 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3075$as_echo "no" >&6; } 3076fi 3077 3078 3079 test -n "$ac_ct_CC" && break 3080done 3081 3082 if test "x$ac_ct_CC" = x; then 3083 CC="" 3084 else 3085 case $cross_compiling:$ac_tool_warned in 3086yes:) 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3089ac_tool_warned=yes ;; 3090esac 3091 CC=$ac_ct_CC 3092 fi 3093fi 3094 3095fi 3096 3097 3098test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3100as_fn_error $? "no acceptable C compiler found in \$PATH 3101See \`config.log' for more details" "$LINENO" 5; } 3102 3103# Provide some information about the compiler. 3104$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3105set X $ac_compile 3106ac_compiler=$2 3107for ac_option in --version -v -V -qversion; do 3108 { { ac_try="$ac_compiler $ac_option >&5" 3109case "(($ac_try" in 3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3111 *) ac_try_echo=$ac_try;; 3112esac 3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3114$as_echo "$ac_try_echo"; } >&5 3115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3116 ac_status=$? 3117 if test -s conftest.err; then 3118 sed '10a\ 3119... rest of stderr output deleted ... 3120 10q' conftest.err >conftest.er1 3121 cat conftest.er1 >&5 3122 fi 3123 rm -f conftest.er1 conftest.err 3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3125 test $ac_status = 0; } 3126done 3127 3128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3129/* end confdefs.h. */ 3130 3131int 3132main () 3133{ 3134 3135 ; 3136 return 0; 3137} 3138_ACEOF 3139ac_clean_files_save=$ac_clean_files 3140ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3141# Try to create an executable without -o first, disregard a.out. 3142# It will help us diagnose broken compilers, and finding out an intuition 3143# of exeext. 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3145$as_echo_n "checking whether the C compiler works... " >&6; } 3146ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3147 3148# The possible output files: 3149ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3150 3151ac_rmfiles= 3152for ac_file in $ac_files 3153do 3154 case $ac_file in 3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3156 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3157 esac 3158done 3159rm -f $ac_rmfiles 3160 3161if { { ac_try="$ac_link_default" 3162case "(($ac_try" in 3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3164 *) ac_try_echo=$ac_try;; 3165esac 3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3167$as_echo "$ac_try_echo"; } >&5 3168 (eval "$ac_link_default") 2>&5 3169 ac_status=$? 3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3171 test $ac_status = 0; }; then : 3172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3174# in a Makefile. We should not override ac_cv_exeext if it was cached, 3175# so that the user can short-circuit this test for compilers unknown to 3176# Autoconf. 3177for ac_file in $ac_files '' 3178do 3179 test -f "$ac_file" || continue 3180 case $ac_file in 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3182 ;; 3183 [ab].out ) 3184 # We found the default executable, but exeext='' is most 3185 # certainly right. 3186 break;; 3187 *.* ) 3188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3189 then :; else 3190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3191 fi 3192 # We set ac_cv_exeext here because the later test for it is not 3193 # safe: cross compilers may not add the suffix if given an `-o' 3194 # argument, so we may need to know it at that point already. 3195 # Even if this section looks crufty: it has the advantage of 3196 # actually working. 3197 break;; 3198 * ) 3199 break;; 3200 esac 3201done 3202test "$ac_cv_exeext" = no && ac_cv_exeext= 3203 3204else 3205 ac_file='' 3206fi 3207if test -z "$ac_file"; then : 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209$as_echo "no" >&6; } 3210$as_echo "$as_me: failed program was:" >&5 3211sed 's/^/| /' conftest.$ac_ext >&5 3212 3213{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3215as_fn_error 77 "C compiler cannot create executables 3216See \`config.log' for more details" "$LINENO" 5; } 3217else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3219$as_echo "yes" >&6; } 3220fi 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3222$as_echo_n "checking for C compiler default output file name... " >&6; } 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3224$as_echo "$ac_file" >&6; } 3225ac_exeext=$ac_cv_exeext 3226 3227rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3228ac_clean_files=$ac_clean_files_save 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3230$as_echo_n "checking for suffix of executables... " >&6; } 3231if { { ac_try="$ac_link" 3232case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235esac 3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3237$as_echo "$ac_try_echo"; } >&5 3238 (eval "$ac_link") 2>&5 3239 ac_status=$? 3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3241 test $ac_status = 0; }; then : 3242 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3243# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3244# work properly (i.e., refer to `conftest.exe'), while it won't with 3245# `rm'. 3246for ac_file in conftest.exe conftest conftest.*; do 3247 test -f "$ac_file" || continue 3248 case $ac_file in 3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3251 break;; 3252 * ) break;; 3253 esac 3254done 3255else 3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3258as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3259See \`config.log' for more details" "$LINENO" 5; } 3260fi 3261rm -f conftest conftest$ac_cv_exeext 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3263$as_echo "$ac_cv_exeext" >&6; } 3264 3265rm -f conftest.$ac_ext 3266EXEEXT=$ac_cv_exeext 3267ac_exeext=$EXEEXT 3268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3269/* end confdefs.h. */ 3270#include <stdio.h> 3271int 3272main () 3273{ 3274FILE *f = fopen ("conftest.out", "w"); 3275 return ferror (f) || fclose (f) != 0; 3276 3277 ; 3278 return 0; 3279} 3280_ACEOF 3281ac_clean_files="$ac_clean_files conftest.out" 3282# Check that the compiler produces executables we can run. If not, either 3283# the compiler is broken, or we cross compile. 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3285$as_echo_n "checking whether we are cross compiling... " >&6; } 3286if test "$cross_compiling" != yes; then 3287 { { ac_try="$ac_link" 3288case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3293$as_echo "$ac_try_echo"; } >&5 3294 (eval "$ac_link") 2>&5 3295 ac_status=$? 3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3297 test $ac_status = 0; } 3298 if { ac_try='./conftest$ac_cv_exeext' 3299 { { case "(($ac_try" in 3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3301 *) ac_try_echo=$ac_try;; 3302esac 3303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3304$as_echo "$ac_try_echo"; } >&5 3305 (eval "$ac_try") 2>&5 3306 ac_status=$? 3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3308 test $ac_status = 0; }; }; then 3309 cross_compiling=no 3310 else 3311 if test "$cross_compiling" = maybe; then 3312 cross_compiling=yes 3313 else 3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3316as_fn_error $? "cannot run C compiled programs. 3317If you meant to cross compile, use \`--host'. 3318See \`config.log' for more details" "$LINENO" 5; } 3319 fi 3320 fi 3321fi 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3323$as_echo "$cross_compiling" >&6; } 3324 3325rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3326ac_clean_files=$ac_clean_files_save 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3328$as_echo_n "checking for suffix of object files... " >&6; } 3329if ${ac_cv_objext+:} false; then : 3330 $as_echo_n "(cached) " >&6 3331else 3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3333/* end confdefs.h. */ 3334 3335int 3336main () 3337{ 3338 3339 ; 3340 return 0; 3341} 3342_ACEOF 3343rm -f conftest.o conftest.obj 3344if { { ac_try="$ac_compile" 3345case "(($ac_try" in 3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3347 *) ac_try_echo=$ac_try;; 3348esac 3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3350$as_echo "$ac_try_echo"; } >&5 3351 (eval "$ac_compile") 2>&5 3352 ac_status=$? 3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3354 test $ac_status = 0; }; then : 3355 for ac_file in conftest.o conftest.obj conftest.*; do 3356 test -f "$ac_file" || continue; 3357 case $ac_file in 3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3360 break;; 3361 esac 3362done 3363else 3364 $as_echo "$as_me: failed program was:" >&5 3365sed 's/^/| /' conftest.$ac_ext >&5 3366 3367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3369as_fn_error $? "cannot compute suffix of object files: cannot compile 3370See \`config.log' for more details" "$LINENO" 5; } 3371fi 3372rm -f conftest.$ac_cv_objext conftest.$ac_ext 3373fi 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3375$as_echo "$ac_cv_objext" >&6; } 3376OBJEXT=$ac_cv_objext 3377ac_objext=$OBJEXT 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3379$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3380if ${ac_cv_c_compiler_gnu+:} false; then : 3381 $as_echo_n "(cached) " >&6 3382else 3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384/* end confdefs.h. */ 3385 3386int 3387main () 3388{ 3389#ifndef __GNUC__ 3390 choke me 3391#endif 3392 3393 ; 3394 return 0; 3395} 3396_ACEOF 3397if ac_fn_c_try_compile "$LINENO"; then : 3398 ac_compiler_gnu=yes 3399else 3400 ac_compiler_gnu=no 3401fi 3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3403ac_cv_c_compiler_gnu=$ac_compiler_gnu 3404 3405fi 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3407$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3408if test $ac_compiler_gnu = yes; then 3409 GCC=yes 3410else 3411 GCC= 3412fi 3413ac_test_CFLAGS=${CFLAGS+set} 3414ac_save_CFLAGS=$CFLAGS 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3416$as_echo_n "checking whether $CC accepts -g... " >&6; } 3417if ${ac_cv_prog_cc_g+:} false; then : 3418 $as_echo_n "(cached) " >&6 3419else 3420 ac_save_c_werror_flag=$ac_c_werror_flag 3421 ac_c_werror_flag=yes 3422 ac_cv_prog_cc_g=no 3423 CFLAGS="-g" 3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3425/* end confdefs.h. */ 3426 3427int 3428main () 3429{ 3430 3431 ; 3432 return 0; 3433} 3434_ACEOF 3435if ac_fn_c_try_compile "$LINENO"; then : 3436 ac_cv_prog_cc_g=yes 3437else 3438 CFLAGS="" 3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3440/* end confdefs.h. */ 3441 3442int 3443main () 3444{ 3445 3446 ; 3447 return 0; 3448} 3449_ACEOF 3450if ac_fn_c_try_compile "$LINENO"; then : 3451 3452else 3453 ac_c_werror_flag=$ac_save_c_werror_flag 3454 CFLAGS="-g" 3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3456/* end confdefs.h. */ 3457 3458int 3459main () 3460{ 3461 3462 ; 3463 return 0; 3464} 3465_ACEOF 3466if ac_fn_c_try_compile "$LINENO"; then : 3467 ac_cv_prog_cc_g=yes 3468fi 3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3470fi 3471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3472fi 3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3474 ac_c_werror_flag=$ac_save_c_werror_flag 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3477$as_echo "$ac_cv_prog_cc_g" >&6; } 3478if test "$ac_test_CFLAGS" = set; then 3479 CFLAGS=$ac_save_CFLAGS 3480elif test $ac_cv_prog_cc_g = yes; then 3481 if test "$GCC" = yes; then 3482 CFLAGS="-g -O2" 3483 else 3484 CFLAGS="-g" 3485 fi 3486else 3487 if test "$GCC" = yes; then 3488 CFLAGS="-O2" 3489 else 3490 CFLAGS= 3491 fi 3492fi 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3494$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3495if ${ac_cv_prog_cc_c89+:} false; then : 3496 $as_echo_n "(cached) " >&6 3497else 3498 ac_cv_prog_cc_c89=no 3499ac_save_CC=$CC 3500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502#include <stdarg.h> 3503#include <stdio.h> 3504struct stat; 3505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3506struct buf { int x; }; 3507FILE * (*rcsopen) (struct buf *, struct stat *, int); 3508static char *e (p, i) 3509 char **p; 3510 int i; 3511{ 3512 return p[i]; 3513} 3514static char *f (char * (*g) (char **, int), char **p, ...) 3515{ 3516 char *s; 3517 va_list v; 3518 va_start (v,p); 3519 s = g (p, va_arg (v,int)); 3520 va_end (v); 3521 return s; 3522} 3523 3524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3525 function prototypes and stuff, but not '\xHH' hex character constants. 3526 These don't provoke an error unfortunately, instead are silently treated 3527 as 'x'. The following induces an error, until -std is added to get 3528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3529 array size at least. It's necessary to write '\x00'==0 to get something 3530 that's true only with -std. */ 3531int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3532 3533/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3534 inside strings and character constants. */ 3535#define FOO(x) 'x' 3536int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3537 3538int test (int i, double x); 3539struct s1 {int (*f) (int a);}; 3540struct s2 {int (*f) (double a);}; 3541int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3542int argc; 3543char **argv; 3544int 3545main () 3546{ 3547return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3553 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3554do 3555 CC="$ac_save_CC $ac_arg" 3556 if ac_fn_c_try_compile "$LINENO"; then : 3557 ac_cv_prog_cc_c89=$ac_arg 3558fi 3559rm -f core conftest.err conftest.$ac_objext 3560 test "x$ac_cv_prog_cc_c89" != "xno" && break 3561done 3562rm -f conftest.$ac_ext 3563CC=$ac_save_CC 3564 3565fi 3566# AC_CACHE_VAL 3567case "x$ac_cv_prog_cc_c89" in 3568 x) 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3570$as_echo "none needed" >&6; } ;; 3571 xno) 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3573$as_echo "unsupported" >&6; } ;; 3574 *) 3575 CC="$CC $ac_cv_prog_cc_c89" 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3577$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3578esac 3579if test "x$ac_cv_prog_cc_c89" != xno; then : 3580 3581fi 3582 3583ac_ext=c 3584ac_cpp='$CPP $CPPFLAGS' 3585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3587ac_compiler_gnu=$ac_cv_c_compiler_gnu 3588 3589ac_ext=c 3590ac_cpp='$CPP $CPPFLAGS' 3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3593ac_compiler_gnu=$ac_cv_c_compiler_gnu 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3595$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3596if ${am_cv_prog_cc_c_o+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598else 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601 3602int 3603main () 3604{ 3605 3606 ; 3607 return 0; 3608} 3609_ACEOF 3610 # Make sure it works both with $CC and with simple cc. 3611 # Following AC_PROG_CC_C_O, we do the test twice because some 3612 # compilers refuse to overwrite an existing .o file with -o, 3613 # though they will create one. 3614 am_cv_prog_cc_c_o=yes 3615 for am_i in 1 2; do 3616 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3617 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3618 ac_status=$? 3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3620 (exit $ac_status); } \ 3621 && test -f conftest2.$ac_objext; then 3622 : OK 3623 else 3624 am_cv_prog_cc_c_o=no 3625 break 3626 fi 3627 done 3628 rm -f core conftest* 3629 unset am_i 3630fi 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3632$as_echo "$am_cv_prog_cc_c_o" >&6; } 3633if test "$am_cv_prog_cc_c_o" != yes; then 3634 # Losing compiler, so override with the script. 3635 # FIXME: It is wrong to rewrite CC. 3636 # But if we don't then we get into trouble of one sort or another. 3637 # A longer-term fix would be to have automake use am__CC in this case, 3638 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3639 CC="$am_aux_dir/compile $CC" 3640fi 3641ac_ext=c 3642ac_cpp='$CPP $CPPFLAGS' 3643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3645ac_compiler_gnu=$ac_cv_c_compiler_gnu 3646 3647 3648depcc="$CC" am_compiler_list= 3649 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3651$as_echo_n "checking dependency style of $depcc... " >&6; } 3652if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3653 $as_echo_n "(cached) " >&6 3654else 3655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3656 # We make a subdir and do the tests there. Otherwise we can end up 3657 # making bogus files that we don't know about and never remove. For 3658 # instance it was reported that on HP-UX the gcc test will end up 3659 # making a dummy file named 'D' -- because '-MD' means "put the output 3660 # in D". 3661 rm -rf conftest.dir 3662 mkdir conftest.dir 3663 # Copy depcomp to subdir because otherwise we won't find it if we're 3664 # using a relative directory. 3665 cp "$am_depcomp" conftest.dir 3666 cd conftest.dir 3667 # We will build objects and dependencies in a subdirectory because 3668 # it helps to detect inapplicable dependency modes. For instance 3669 # both Tru64's cc and ICC support -MD to output dependencies as a 3670 # side effect of compilation, but ICC will put the dependencies in 3671 # the current directory while Tru64 will put them in the object 3672 # directory. 3673 mkdir sub 3674 3675 am_cv_CC_dependencies_compiler_type=none 3676 if test "$am_compiler_list" = ""; then 3677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3678 fi 3679 am__universal=false 3680 case " $depcc " in #( 3681 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3682 esac 3683 3684 for depmode in $am_compiler_list; do 3685 # Setup a source with many dependencies, because some compilers 3686 # like to wrap large dependency lists on column 80 (with \), and 3687 # we should not choose a depcomp mode which is confused by this. 3688 # 3689 # We need to recreate these files for each test, as the compiler may 3690 # overwrite some of them when testing with obscure command lines. 3691 # This happens at least with the AIX C compiler. 3692 : > sub/conftest.c 3693 for i in 1 2 3 4 5 6; do 3694 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3695 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3696 # Solaris 10 /bin/sh. 3697 echo '/* dummy */' > sub/conftst$i.h 3698 done 3699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3700 3701 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3702 # mode. It turns out that the SunPro C++ compiler does not properly 3703 # handle '-M -o', and we need to detect this. Also, some Intel 3704 # versions had trouble with output in subdirs. 3705 am__obj=sub/conftest.${OBJEXT-o} 3706 am__minus_obj="-o $am__obj" 3707 case $depmode in 3708 gcc) 3709 # This depmode causes a compiler race in universal mode. 3710 test "$am__universal" = false || continue 3711 ;; 3712 nosideeffect) 3713 # After this tag, mechanisms are not by side-effect, so they'll 3714 # only be used when explicitly requested. 3715 if test "x$enable_dependency_tracking" = xyes; then 3716 continue 3717 else 3718 break 3719 fi 3720 ;; 3721 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3722 # This compiler won't grok '-c -o', but also, the minuso test has 3723 # not run yet. These depmodes are late enough in the game, and 3724 # so weak that their functioning should not be impacted. 3725 am__obj=conftest.${OBJEXT-o} 3726 am__minus_obj= 3727 ;; 3728 none) break ;; 3729 esac 3730 if depmode=$depmode \ 3731 source=sub/conftest.c object=$am__obj \ 3732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3733 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3734 >/dev/null 2>conftest.err && 3735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3737 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3739 # icc doesn't choke on unknown options, it will just issue warnings 3740 # or remarks (even with -Werror). So we grep stderr for any message 3741 # that says an option was ignored or not supported. 3742 # When given -MP, icc 7.0 and 7.1 complain thusly: 3743 # icc: Command line warning: ignoring option '-M'; no argument required 3744 # The diagnosis changed in icc 8.0: 3745 # icc: Command line remark: option '-MP' not supported 3746 if (grep 'ignoring option' conftest.err || 3747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3748 am_cv_CC_dependencies_compiler_type=$depmode 3749 break 3750 fi 3751 fi 3752 done 3753 3754 cd .. 3755 rm -rf conftest.dir 3756else 3757 am_cv_CC_dependencies_compiler_type=none 3758fi 3759 3760fi 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3762$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3763CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3764 3765 if 3766 test "x$enable_dependency_tracking" != xno \ 3767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3768 am__fastdepCC_TRUE= 3769 am__fastdepCC_FALSE='#' 3770else 3771 am__fastdepCC_TRUE='#' 3772 am__fastdepCC_FALSE= 3773fi 3774 3775 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3777$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3778if ${ac_cv_prog_cc_c99+:} false; then : 3779 $as_echo_n "(cached) " >&6 3780else 3781 ac_cv_prog_cc_c99=no 3782ac_save_CC=$CC 3783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3784/* end confdefs.h. */ 3785#include <stdarg.h> 3786#include <stdbool.h> 3787#include <stdlib.h> 3788#include <wchar.h> 3789#include <stdio.h> 3790 3791// Check varargs macros. These examples are taken from C99 6.10.3.5. 3792#define debug(...) fprintf (stderr, __VA_ARGS__) 3793#define showlist(...) puts (#__VA_ARGS__) 3794#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3795static void 3796test_varargs_macros (void) 3797{ 3798 int x = 1234; 3799 int y = 5678; 3800 debug ("Flag"); 3801 debug ("X = %d\n", x); 3802 showlist (The first, second, and third items.); 3803 report (x>y, "x is %d but y is %d", x, y); 3804} 3805 3806// Check long long types. 3807#define BIG64 18446744073709551615ull 3808#define BIG32 4294967295ul 3809#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3810#if !BIG_OK 3811 your preprocessor is broken; 3812#endif 3813#if BIG_OK 3814#else 3815 your preprocessor is broken; 3816#endif 3817static long long int bignum = -9223372036854775807LL; 3818static unsigned long long int ubignum = BIG64; 3819 3820struct incomplete_array 3821{ 3822 int datasize; 3823 double data[]; 3824}; 3825 3826struct named_init { 3827 int number; 3828 const wchar_t *name; 3829 double average; 3830}; 3831 3832typedef const char *ccp; 3833 3834static inline int 3835test_restrict (ccp restrict text) 3836{ 3837 // See if C++-style comments work. 3838 // Iterate through items via the restricted pointer. 3839 // Also check for declarations in for loops. 3840 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3841 continue; 3842 return 0; 3843} 3844 3845// Check varargs and va_copy. 3846static void 3847test_varargs (const char *format, ...) 3848{ 3849 va_list args; 3850 va_start (args, format); 3851 va_list args_copy; 3852 va_copy (args_copy, args); 3853 3854 const char *str; 3855 int number; 3856 float fnumber; 3857 3858 while (*format) 3859 { 3860 switch (*format++) 3861 { 3862 case 's': // string 3863 str = va_arg (args_copy, const char *); 3864 break; 3865 case 'd': // int 3866 number = va_arg (args_copy, int); 3867 break; 3868 case 'f': // float 3869 fnumber = va_arg (args_copy, double); 3870 break; 3871 default: 3872 break; 3873 } 3874 } 3875 va_end (args_copy); 3876 va_end (args); 3877} 3878 3879int 3880main () 3881{ 3882 3883 // Check bool. 3884 _Bool success = false; 3885 3886 // Check restrict. 3887 if (test_restrict ("String literal") == 0) 3888 success = true; 3889 char *restrict newvar = "Another string"; 3890 3891 // Check varargs. 3892 test_varargs ("s, d' f .", "string", 65, 34.234); 3893 test_varargs_macros (); 3894 3895 // Check flexible array members. 3896 struct incomplete_array *ia = 3897 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3898 ia->datasize = 10; 3899 for (int i = 0; i < ia->datasize; ++i) 3900 ia->data[i] = i * 1.234; 3901 3902 // Check named initializers. 3903 struct named_init ni = { 3904 .number = 34, 3905 .name = L"Test wide string", 3906 .average = 543.34343, 3907 }; 3908 3909 ni.number = 58; 3910 3911 int dynamic_array[ni.number]; 3912 dynamic_array[ni.number - 1] = 543; 3913 3914 // work around unused variable warnings 3915 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3916 || dynamic_array[ni.number - 1] != 543); 3917 3918 ; 3919 return 0; 3920} 3921_ACEOF 3922for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3923do 3924 CC="$ac_save_CC $ac_arg" 3925 if ac_fn_c_try_compile "$LINENO"; then : 3926 ac_cv_prog_cc_c99=$ac_arg 3927fi 3928rm -f core conftest.err conftest.$ac_objext 3929 test "x$ac_cv_prog_cc_c99" != "xno" && break 3930done 3931rm -f conftest.$ac_ext 3932CC=$ac_save_CC 3933 3934fi 3935# AC_CACHE_VAL 3936case "x$ac_cv_prog_cc_c99" in 3937 x) 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3939$as_echo "none needed" >&6; } ;; 3940 xno) 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3942$as_echo "unsupported" >&6; } ;; 3943 *) 3944 CC="$CC $ac_cv_prog_cc_c99" 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3946$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3947esac 3948if test "x$ac_cv_prog_cc_c99" != xno; then : 3949 3950fi 3951 3952 3953 3954ac_ext=c 3955ac_cpp='$CPP $CPPFLAGS' 3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3958ac_compiler_gnu=$ac_cv_c_compiler_gnu 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3960$as_echo_n "checking how to run the C preprocessor... " >&6; } 3961# On Suns, sometimes $CPP names a directory. 3962if test -n "$CPP" && test -d "$CPP"; then 3963 CPP= 3964fi 3965if test -z "$CPP"; then 3966 if ${ac_cv_prog_CPP+:} false; then : 3967 $as_echo_n "(cached) " >&6 3968else 3969 # Double quotes because CPP needs to be expanded 3970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3971 do 3972 ac_preproc_ok=false 3973for ac_c_preproc_warn_flag in '' yes 3974do 3975 # Use a header file that comes with gcc, so configuring glibc 3976 # with a fresh cross-compiler works. 3977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3978 # <limits.h> exists even on freestanding compilers. 3979 # On the NeXT, cc -E runs the code through the compiler's parser, 3980 # not just through cpp. "Syntax error" is here to catch this case. 3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982/* end confdefs.h. */ 3983#ifdef __STDC__ 3984# include <limits.h> 3985#else 3986# include <assert.h> 3987#endif 3988 Syntax error 3989_ACEOF 3990if ac_fn_c_try_cpp "$LINENO"; then : 3991 3992else 3993 # Broken: fails on valid input. 3994continue 3995fi 3996rm -f conftest.err conftest.i conftest.$ac_ext 3997 3998 # OK, works on sane cases. Now check whether nonexistent headers 3999 # can be detected and how. 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002#include <ac_nonexistent.h> 4003_ACEOF 4004if ac_fn_c_try_cpp "$LINENO"; then : 4005 # Broken: success on invalid input. 4006continue 4007else 4008 # Passes both tests. 4009ac_preproc_ok=: 4010break 4011fi 4012rm -f conftest.err conftest.i conftest.$ac_ext 4013 4014done 4015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4016rm -f conftest.i conftest.err conftest.$ac_ext 4017if $ac_preproc_ok; then : 4018 break 4019fi 4020 4021 done 4022 ac_cv_prog_CPP=$CPP 4023 4024fi 4025 CPP=$ac_cv_prog_CPP 4026else 4027 ac_cv_prog_CPP=$CPP 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4030$as_echo "$CPP" >&6; } 4031ac_preproc_ok=false 4032for ac_c_preproc_warn_flag in '' yes 4033do 4034 # Use a header file that comes with gcc, so configuring glibc 4035 # with a fresh cross-compiler works. 4036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4037 # <limits.h> exists even on freestanding compilers. 4038 # On the NeXT, cc -E runs the code through the compiler's parser, 4039 # not just through cpp. "Syntax error" is here to catch this case. 4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4041/* end confdefs.h. */ 4042#ifdef __STDC__ 4043# include <limits.h> 4044#else 4045# include <assert.h> 4046#endif 4047 Syntax error 4048_ACEOF 4049if ac_fn_c_try_cpp "$LINENO"; then : 4050 4051else 4052 # Broken: fails on valid input. 4053continue 4054fi 4055rm -f conftest.err conftest.i conftest.$ac_ext 4056 4057 # OK, works on sane cases. Now check whether nonexistent headers 4058 # can be detected and how. 4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061#include <ac_nonexistent.h> 4062_ACEOF 4063if ac_fn_c_try_cpp "$LINENO"; then : 4064 # Broken: success on invalid input. 4065continue 4066else 4067 # Passes both tests. 4068ac_preproc_ok=: 4069break 4070fi 4071rm -f conftest.err conftest.i conftest.$ac_ext 4072 4073done 4074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4075rm -f conftest.i conftest.err conftest.$ac_ext 4076if $ac_preproc_ok; then : 4077 4078else 4079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4081as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4082See \`config.log' for more details" "$LINENO" 5; } 4083fi 4084 4085ac_ext=c 4086ac_cpp='$CPP $CPPFLAGS' 4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4089ac_compiler_gnu=$ac_cv_c_compiler_gnu 4090 4091 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4093$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4094if ${ac_cv_path_GREP+:} false; then : 4095 $as_echo_n "(cached) " >&6 4096else 4097 if test -z "$GREP"; then 4098 ac_path_GREP_found=false 4099 # Loop through the user's path and test for each of PROGNAME-LIST 4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4101for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4102do 4103 IFS=$as_save_IFS 4104 test -z "$as_dir" && as_dir=. 4105 for ac_prog in grep ggrep; do 4106 for ac_exec_ext in '' $ac_executable_extensions; do 4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4108 as_fn_executable_p "$ac_path_GREP" || continue 4109# Check for GNU ac_path_GREP and select it if it is found. 4110 # Check for GNU $ac_path_GREP 4111case `"$ac_path_GREP" --version 2>&1` in 4112*GNU*) 4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4114*) 4115 ac_count=0 4116 $as_echo_n 0123456789 >"conftest.in" 4117 while : 4118 do 4119 cat "conftest.in" "conftest.in" >"conftest.tmp" 4120 mv "conftest.tmp" "conftest.in" 4121 cp "conftest.in" "conftest.nl" 4122 $as_echo 'GREP' >> "conftest.nl" 4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4125 as_fn_arith $ac_count + 1 && ac_count=$as_val 4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4127 # Best one so far, save it but keep looking for a better one 4128 ac_cv_path_GREP="$ac_path_GREP" 4129 ac_path_GREP_max=$ac_count 4130 fi 4131 # 10*(2^10) chars as input seems more than enough 4132 test $ac_count -gt 10 && break 4133 done 4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4135esac 4136 4137 $ac_path_GREP_found && break 3 4138 done 4139 done 4140 done 4141IFS=$as_save_IFS 4142 if test -z "$ac_cv_path_GREP"; then 4143 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4144 fi 4145else 4146 ac_cv_path_GREP=$GREP 4147fi 4148 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4151$as_echo "$ac_cv_path_GREP" >&6; } 4152 GREP="$ac_cv_path_GREP" 4153 4154 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4156$as_echo_n "checking for egrep... " >&6; } 4157if ${ac_cv_path_EGREP+:} false; then : 4158 $as_echo_n "(cached) " >&6 4159else 4160 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4161 then ac_cv_path_EGREP="$GREP -E" 4162 else 4163 if test -z "$EGREP"; then 4164 ac_path_EGREP_found=false 4165 # Loop through the user's path and test for each of PROGNAME-LIST 4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_prog in egrep; do 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4174 as_fn_executable_p "$ac_path_EGREP" || continue 4175# Check for GNU ac_path_EGREP and select it if it is found. 4176 # Check for GNU $ac_path_EGREP 4177case `"$ac_path_EGREP" --version 2>&1` in 4178*GNU*) 4179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4180*) 4181 ac_count=0 4182 $as_echo_n 0123456789 >"conftest.in" 4183 while : 4184 do 4185 cat "conftest.in" "conftest.in" >"conftest.tmp" 4186 mv "conftest.tmp" "conftest.in" 4187 cp "conftest.in" "conftest.nl" 4188 $as_echo 'EGREP' >> "conftest.nl" 4189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4191 as_fn_arith $ac_count + 1 && ac_count=$as_val 4192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4193 # Best one so far, save it but keep looking for a better one 4194 ac_cv_path_EGREP="$ac_path_EGREP" 4195 ac_path_EGREP_max=$ac_count 4196 fi 4197 # 10*(2^10) chars as input seems more than enough 4198 test $ac_count -gt 10 && break 4199 done 4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4201esac 4202 4203 $ac_path_EGREP_found && break 3 4204 done 4205 done 4206 done 4207IFS=$as_save_IFS 4208 if test -z "$ac_cv_path_EGREP"; then 4209 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4210 fi 4211else 4212 ac_cv_path_EGREP=$EGREP 4213fi 4214 4215 fi 4216fi 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4218$as_echo "$ac_cv_path_EGREP" >&6; } 4219 EGREP="$ac_cv_path_EGREP" 4220 4221 4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4223$as_echo_n "checking for ANSI C header files... " >&6; } 4224if ${ac_cv_header_stdc+:} false; then : 4225 $as_echo_n "(cached) " >&6 4226else 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228/* end confdefs.h. */ 4229#include <stdlib.h> 4230#include <stdarg.h> 4231#include <string.h> 4232#include <float.h> 4233 4234int 4235main () 4236{ 4237 4238 ; 4239 return 0; 4240} 4241_ACEOF 4242if ac_fn_c_try_compile "$LINENO"; then : 4243 ac_cv_header_stdc=yes 4244else 4245 ac_cv_header_stdc=no 4246fi 4247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4248 4249if test $ac_cv_header_stdc = yes; then 4250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4252/* end confdefs.h. */ 4253#include <string.h> 4254 4255_ACEOF 4256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4257 $EGREP "memchr" >/dev/null 2>&1; then : 4258 4259else 4260 ac_cv_header_stdc=no 4261fi 4262rm -f conftest* 4263 4264fi 4265 4266if test $ac_cv_header_stdc = yes; then 4267 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4269/* end confdefs.h. */ 4270#include <stdlib.h> 4271 4272_ACEOF 4273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4274 $EGREP "free" >/dev/null 2>&1; then : 4275 4276else 4277 ac_cv_header_stdc=no 4278fi 4279rm -f conftest* 4280 4281fi 4282 4283if test $ac_cv_header_stdc = yes; then 4284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4285 if test "$cross_compiling" = yes; then : 4286 : 4287else 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#include <ctype.h> 4291#include <stdlib.h> 4292#if ((' ' & 0x0FF) == 0x020) 4293# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4294# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4295#else 4296# define ISLOWER(c) \ 4297 (('a' <= (c) && (c) <= 'i') \ 4298 || ('j' <= (c) && (c) <= 'r') \ 4299 || ('s' <= (c) && (c) <= 'z')) 4300# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4301#endif 4302 4303#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4304int 4305main () 4306{ 4307 int i; 4308 for (i = 0; i < 256; i++) 4309 if (XOR (islower (i), ISLOWER (i)) 4310 || toupper (i) != TOUPPER (i)) 4311 return 2; 4312 return 0; 4313} 4314_ACEOF 4315if ac_fn_c_try_run "$LINENO"; then : 4316 4317else 4318 ac_cv_header_stdc=no 4319fi 4320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4321 conftest.$ac_objext conftest.beam conftest.$ac_ext 4322fi 4323 4324fi 4325fi 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4327$as_echo "$ac_cv_header_stdc" >&6; } 4328if test $ac_cv_header_stdc = yes; then 4329 4330$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4331 4332fi 4333 4334# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4335for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4336 inttypes.h stdint.h unistd.h 4337do : 4338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4339ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4340" 4341if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4342 cat >>confdefs.h <<_ACEOF 4343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4344_ACEOF 4345 4346fi 4347 4348done 4349 4350 4351 4352 4353 4354 4355ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4356if test "x$ac_cv_have_decl___clang__" = xyes; then : 4357 CLANGCC="yes" 4358else 4359 CLANGCC="no" 4360fi 4361 4362ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4363if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4364 INTELCC="yes" 4365else 4366 INTELCC="no" 4367fi 4368 4369ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4370if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4371 SUNCC="yes" 4372else 4373 SUNCC="no" 4374fi 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4385 if test -n "$ac_tool_prefix"; then 4386 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4387set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4389$as_echo_n "checking for $ac_word... " >&6; } 4390if ${ac_cv_path_PKG_CONFIG+:} false; then : 4391 $as_echo_n "(cached) " >&6 4392else 4393 case $PKG_CONFIG in 4394 [\\/]* | ?:[\\/]*) 4395 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4396 ;; 4397 *) 4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4399for as_dir in $PATH 4400do 4401 IFS=$as_save_IFS 4402 test -z "$as_dir" && as_dir=. 4403 for ac_exec_ext in '' $ac_executable_extensions; do 4404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4405 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4407 break 2 4408 fi 4409done 4410 done 4411IFS=$as_save_IFS 4412 4413 ;; 4414esac 4415fi 4416PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4417if test -n "$PKG_CONFIG"; then 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4419$as_echo "$PKG_CONFIG" >&6; } 4420else 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4422$as_echo "no" >&6; } 4423fi 4424 4425 4426fi 4427if test -z "$ac_cv_path_PKG_CONFIG"; then 4428 ac_pt_PKG_CONFIG=$PKG_CONFIG 4429 # Extract the first word of "pkg-config", so it can be a program name with args. 4430set dummy pkg-config; ac_word=$2 4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4432$as_echo_n "checking for $ac_word... " >&6; } 4433if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4434 $as_echo_n "(cached) " >&6 4435else 4436 case $ac_pt_PKG_CONFIG in 4437 [\\/]* | ?:[\\/]*) 4438 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4439 ;; 4440 *) 4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4442for as_dir in $PATH 4443do 4444 IFS=$as_save_IFS 4445 test -z "$as_dir" && as_dir=. 4446 for ac_exec_ext in '' $ac_executable_extensions; do 4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4448 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4450 break 2 4451 fi 4452done 4453 done 4454IFS=$as_save_IFS 4455 4456 ;; 4457esac 4458fi 4459ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4460if test -n "$ac_pt_PKG_CONFIG"; then 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4462$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4463else 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4465$as_echo "no" >&6; } 4466fi 4467 4468 if test "x$ac_pt_PKG_CONFIG" = x; then 4469 PKG_CONFIG="" 4470 else 4471 case $cross_compiling:$ac_tool_warned in 4472yes:) 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4475ac_tool_warned=yes ;; 4476esac 4477 PKG_CONFIG=$ac_pt_PKG_CONFIG 4478 fi 4479else 4480 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4481fi 4482 4483fi 4484if test -n "$PKG_CONFIG"; then 4485 _pkg_min_version=0.9.0 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4487$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4488 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4490$as_echo "yes" >&6; } 4491 else 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4493$as_echo "no" >&6; } 4494 PKG_CONFIG="" 4495 fi 4496fi 4497# Make sure we can run config.sub. 4498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4499 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4500 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4502$as_echo_n "checking build system type... " >&6; } 4503if ${ac_cv_build+:} false; then : 4504 $as_echo_n "(cached) " >&6 4505else 4506 ac_build_alias=$build_alias 4507test "x$ac_build_alias" = x && 4508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4509test "x$ac_build_alias" = x && 4510 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4513 4514fi 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4516$as_echo "$ac_cv_build" >&6; } 4517case $ac_cv_build in 4518*-*-*) ;; 4519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4520esac 4521build=$ac_cv_build 4522ac_save_IFS=$IFS; IFS='-' 4523set x $ac_cv_build 4524shift 4525build_cpu=$1 4526build_vendor=$2 4527shift; shift 4528# Remember, the first character of IFS is used to create $*, 4529# except with old shells: 4530build_os=$* 4531IFS=$ac_save_IFS 4532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4533 4534 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4536$as_echo_n "checking host system type... " >&6; } 4537if ${ac_cv_host+:} false; then : 4538 $as_echo_n "(cached) " >&6 4539else 4540 if test "x$host_alias" = x; then 4541 ac_cv_host=$ac_cv_build 4542else 4543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4545fi 4546 4547fi 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4549$as_echo "$ac_cv_host" >&6; } 4550case $ac_cv_host in 4551*-*-*) ;; 4552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4553esac 4554host=$ac_cv_host 4555ac_save_IFS=$IFS; IFS='-' 4556set x $ac_cv_host 4557shift 4558host_cpu=$1 4559host_vendor=$2 4560shift; shift 4561# Remember, the first character of IFS is used to create $*, 4562# except with old shells: 4563host_os=$* 4564IFS=$ac_save_IFS 4565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4566 4567 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4569$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4570if ${ac_cv_path_SED+:} false; then : 4571 $as_echo_n "(cached) " >&6 4572else 4573 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4574 for ac_i in 1 2 3 4 5 6 7; do 4575 ac_script="$ac_script$as_nl$ac_script" 4576 done 4577 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4578 { ac_script=; unset ac_script;} 4579 if test -z "$SED"; then 4580 ac_path_SED_found=false 4581 # Loop through the user's path and test for each of PROGNAME-LIST 4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4583for as_dir in $PATH 4584do 4585 IFS=$as_save_IFS 4586 test -z "$as_dir" && as_dir=. 4587 for ac_prog in sed gsed; do 4588 for ac_exec_ext in '' $ac_executable_extensions; do 4589 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4590 as_fn_executable_p "$ac_path_SED" || continue 4591# Check for GNU ac_path_SED and select it if it is found. 4592 # Check for GNU $ac_path_SED 4593case `"$ac_path_SED" --version 2>&1` in 4594*GNU*) 4595 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4596*) 4597 ac_count=0 4598 $as_echo_n 0123456789 >"conftest.in" 4599 while : 4600 do 4601 cat "conftest.in" "conftest.in" >"conftest.tmp" 4602 mv "conftest.tmp" "conftest.in" 4603 cp "conftest.in" "conftest.nl" 4604 $as_echo '' >> "conftest.nl" 4605 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4607 as_fn_arith $ac_count + 1 && ac_count=$as_val 4608 if test $ac_count -gt ${ac_path_SED_max-0}; then 4609 # Best one so far, save it but keep looking for a better one 4610 ac_cv_path_SED="$ac_path_SED" 4611 ac_path_SED_max=$ac_count 4612 fi 4613 # 10*(2^10) chars as input seems more than enough 4614 test $ac_count -gt 10 && break 4615 done 4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4617esac 4618 4619 $ac_path_SED_found && break 3 4620 done 4621 done 4622 done 4623IFS=$as_save_IFS 4624 if test -z "$ac_cv_path_SED"; then 4625 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4626 fi 4627else 4628 ac_cv_path_SED=$SED 4629fi 4630 4631fi 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4633$as_echo "$ac_cv_path_SED" >&6; } 4634 SED="$ac_cv_path_SED" 4635 rm -f conftest.sed 4636 4637 4638 4639 4640 4641 4642# Check whether --enable-selective-werror was given. 4643if test "${enable_selective_werror+set}" = set; then : 4644 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4645else 4646 SELECTIVE_WERROR=yes 4647fi 4648 4649 4650 4651 4652 4653# -v is too short to test reliably with XORG_TESTSET_CFLAG 4654if test "x$SUNCC" = "xyes"; then 4655 BASE_CFLAGS="-v" 4656else 4657 BASE_CFLAGS="" 4658fi 4659 4660# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674xorg_testset_save_CFLAGS="$CFLAGS" 4675 4676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4681 $as_echo_n "(cached) " >&6 4682else 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684/* end confdefs.h. */ 4685int i; 4686_ACEOF 4687if ac_fn_c_try_compile "$LINENO"; then : 4688 xorg_cv_cc_flag_unknown_warning_option=yes 4689else 4690 xorg_cv_cc_flag_unknown_warning_option=no 4691fi 4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4693fi 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4697 CFLAGS="$xorg_testset_save_CFLAGS" 4698fi 4699 4700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4703 fi 4704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4711/* end confdefs.h. */ 4712int i; 4713_ACEOF 4714if ac_fn_c_try_compile "$LINENO"; then : 4715 xorg_cv_cc_flag_unused_command_line_argument=yes 4716else 4717 xorg_cv_cc_flag_unused_command_line_argument=no 4718fi 4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4720fi 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4724 CFLAGS="$xorg_testset_save_CFLAGS" 4725fi 4726 4727found="no" 4728 4729 if test $found = "no" ; then 4730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4732 fi 4733 4734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4736 fi 4737 4738 CFLAGS="$CFLAGS -Wall" 4739 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4741$as_echo_n "checking if $CC supports -Wall... " >&6; } 4742 cacheid=xorg_cv_cc_flag__Wall 4743 if eval \${$cacheid+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745else 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748int i; 4749int 4750main () 4751{ 4752 4753 ; 4754 return 0; 4755} 4756_ACEOF 4757if ac_fn_c_try_link "$LINENO"; then : 4758 eval $cacheid=yes 4759else 4760 eval $cacheid=no 4761fi 4762rm -f core conftest.err conftest.$ac_objext \ 4763 conftest$ac_exeext conftest.$ac_ext 4764fi 4765 4766 4767 CFLAGS="$xorg_testset_save_CFLAGS" 4768 4769 eval supported=\$$cacheid 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4771$as_echo "$supported" >&6; } 4772 if test "$supported" = "yes" ; then 4773 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4774 found="yes" 4775 fi 4776 fi 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792xorg_testset_save_CFLAGS="$CFLAGS" 4793 4794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4799 $as_echo_n "(cached) " >&6 4800else 4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4802/* end confdefs.h. */ 4803int i; 4804_ACEOF 4805if ac_fn_c_try_compile "$LINENO"; then : 4806 xorg_cv_cc_flag_unknown_warning_option=yes 4807else 4808 xorg_cv_cc_flag_unknown_warning_option=no 4809fi 4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4811fi 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4815 CFLAGS="$xorg_testset_save_CFLAGS" 4816fi 4817 4818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4821 fi 4822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4829/* end confdefs.h. */ 4830int i; 4831_ACEOF 4832if ac_fn_c_try_compile "$LINENO"; then : 4833 xorg_cv_cc_flag_unused_command_line_argument=yes 4834else 4835 xorg_cv_cc_flag_unused_command_line_argument=no 4836fi 4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4838fi 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4842 CFLAGS="$xorg_testset_save_CFLAGS" 4843fi 4844 4845found="no" 4846 4847 if test $found = "no" ; then 4848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4850 fi 4851 4852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4854 fi 4855 4856 CFLAGS="$CFLAGS -Wpointer-arith" 4857 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4859$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4860 cacheid=xorg_cv_cc_flag__Wpointer_arith 4861 if eval \${$cacheid+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4865/* end confdefs.h. */ 4866int i; 4867int 4868main () 4869{ 4870 4871 ; 4872 return 0; 4873} 4874_ACEOF 4875if ac_fn_c_try_link "$LINENO"; then : 4876 eval $cacheid=yes 4877else 4878 eval $cacheid=no 4879fi 4880rm -f core conftest.err conftest.$ac_objext \ 4881 conftest$ac_exeext conftest.$ac_ext 4882fi 4883 4884 4885 CFLAGS="$xorg_testset_save_CFLAGS" 4886 4887 eval supported=\$$cacheid 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4889$as_echo "$supported" >&6; } 4890 if test "$supported" = "yes" ; then 4891 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4892 found="yes" 4893 fi 4894 fi 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910xorg_testset_save_CFLAGS="$CFLAGS" 4911 4912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4917 $as_echo_n "(cached) " >&6 4918else 4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4920/* end confdefs.h. */ 4921int i; 4922_ACEOF 4923if ac_fn_c_try_compile "$LINENO"; then : 4924 xorg_cv_cc_flag_unknown_warning_option=yes 4925else 4926 xorg_cv_cc_flag_unknown_warning_option=no 4927fi 4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4929fi 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4933 CFLAGS="$xorg_testset_save_CFLAGS" 4934fi 4935 4936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4939 fi 4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948int i; 4949_ACEOF 4950if ac_fn_c_try_compile "$LINENO"; then : 4951 xorg_cv_cc_flag_unused_command_line_argument=yes 4952else 4953 xorg_cv_cc_flag_unused_command_line_argument=no 4954fi 4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4956fi 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4960 CFLAGS="$xorg_testset_save_CFLAGS" 4961fi 4962 4963found="no" 4964 4965 if test $found = "no" ; then 4966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4968 fi 4969 4970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4972 fi 4973 4974 CFLAGS="$CFLAGS -Wmissing-declarations" 4975 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4977$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4978 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4979 if eval \${$cacheid+:} false; then : 4980 $as_echo_n "(cached) " >&6 4981else 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984int i; 4985int 4986main () 4987{ 4988 4989 ; 4990 return 0; 4991} 4992_ACEOF 4993if ac_fn_c_try_link "$LINENO"; then : 4994 eval $cacheid=yes 4995else 4996 eval $cacheid=no 4997fi 4998rm -f core conftest.err conftest.$ac_objext \ 4999 conftest$ac_exeext conftest.$ac_ext 5000fi 5001 5002 5003 CFLAGS="$xorg_testset_save_CFLAGS" 5004 5005 eval supported=\$$cacheid 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5007$as_echo "$supported" >&6; } 5008 if test "$supported" = "yes" ; then 5009 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5010 found="yes" 5011 fi 5012 fi 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028xorg_testset_save_CFLAGS="$CFLAGS" 5029 5030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5038/* end confdefs.h. */ 5039int i; 5040_ACEOF 5041if ac_fn_c_try_compile "$LINENO"; then : 5042 xorg_cv_cc_flag_unknown_warning_option=yes 5043else 5044 xorg_cv_cc_flag_unknown_warning_option=no 5045fi 5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5047fi 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5051 CFLAGS="$xorg_testset_save_CFLAGS" 5052fi 5053 5054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5057 fi 5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5062 $as_echo_n "(cached) " >&6 5063else 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066int i; 5067_ACEOF 5068if ac_fn_c_try_compile "$LINENO"; then : 5069 xorg_cv_cc_flag_unused_command_line_argument=yes 5070else 5071 xorg_cv_cc_flag_unused_command_line_argument=no 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5078 CFLAGS="$xorg_testset_save_CFLAGS" 5079fi 5080 5081found="no" 5082 5083 if test $found = "no" ; then 5084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5086 fi 5087 5088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5090 fi 5091 5092 CFLAGS="$CFLAGS -Wformat=2" 5093 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5095$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5096 cacheid=xorg_cv_cc_flag__Wformat_2 5097 if eval \${$cacheid+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102int i; 5103int 5104main () 5105{ 5106 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111if ac_fn_c_try_link "$LINENO"; then : 5112 eval $cacheid=yes 5113else 5114 eval $cacheid=no 5115fi 5116rm -f core conftest.err conftest.$ac_objext \ 5117 conftest$ac_exeext conftest.$ac_ext 5118fi 5119 5120 5121 CFLAGS="$xorg_testset_save_CFLAGS" 5122 5123 eval supported=\$$cacheid 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5125$as_echo "$supported" >&6; } 5126 if test "$supported" = "yes" ; then 5127 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5128 found="yes" 5129 fi 5130 fi 5131 5132 if test $found = "no" ; then 5133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5135 fi 5136 5137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5139 fi 5140 5141 CFLAGS="$CFLAGS -Wformat" 5142 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5144$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5145 cacheid=xorg_cv_cc_flag__Wformat 5146 if eval \${$cacheid+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148else 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150/* end confdefs.h. */ 5151int i; 5152int 5153main () 5154{ 5155 5156 ; 5157 return 0; 5158} 5159_ACEOF 5160if ac_fn_c_try_link "$LINENO"; then : 5161 eval $cacheid=yes 5162else 5163 eval $cacheid=no 5164fi 5165rm -f core conftest.err conftest.$ac_objext \ 5166 conftest$ac_exeext conftest.$ac_ext 5167fi 5168 5169 5170 CFLAGS="$xorg_testset_save_CFLAGS" 5171 5172 eval supported=\$$cacheid 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5174$as_echo "$supported" >&6; } 5175 if test "$supported" = "yes" ; then 5176 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5177 found="yes" 5178 fi 5179 fi 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197xorg_testset_save_CFLAGS="$CFLAGS" 5198 5199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5204 $as_echo_n "(cached) " >&6 5205else 5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5207/* end confdefs.h. */ 5208int i; 5209_ACEOF 5210if ac_fn_c_try_compile "$LINENO"; then : 5211 xorg_cv_cc_flag_unknown_warning_option=yes 5212else 5213 xorg_cv_cc_flag_unknown_warning_option=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5216fi 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5220 CFLAGS="$xorg_testset_save_CFLAGS" 5221fi 5222 5223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5226 fi 5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235int i; 5236_ACEOF 5237if ac_fn_c_try_compile "$LINENO"; then : 5238 xorg_cv_cc_flag_unused_command_line_argument=yes 5239else 5240 xorg_cv_cc_flag_unused_command_line_argument=no 5241fi 5242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5243fi 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5247 CFLAGS="$xorg_testset_save_CFLAGS" 5248fi 5249 5250found="no" 5251 5252 if test $found = "no" ; then 5253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5255 fi 5256 5257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5259 fi 5260 5261 CFLAGS="$CFLAGS -Wstrict-prototypes" 5262 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5264$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5265 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5266 if eval \${$cacheid+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5270/* end confdefs.h. */ 5271int i; 5272int 5273main () 5274{ 5275 5276 ; 5277 return 0; 5278} 5279_ACEOF 5280if ac_fn_c_try_link "$LINENO"; then : 5281 eval $cacheid=yes 5282else 5283 eval $cacheid=no 5284fi 5285rm -f core conftest.err conftest.$ac_objext \ 5286 conftest$ac_exeext conftest.$ac_ext 5287fi 5288 5289 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291 5292 eval supported=\$$cacheid 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5294$as_echo "$supported" >&6; } 5295 if test "$supported" = "yes" ; then 5296 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5297 found="yes" 5298 fi 5299 fi 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315xorg_testset_save_CFLAGS="$CFLAGS" 5316 5317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325/* end confdefs.h. */ 5326int i; 5327_ACEOF 5328if ac_fn_c_try_compile "$LINENO"; then : 5329 xorg_cv_cc_flag_unknown_warning_option=yes 5330else 5331 xorg_cv_cc_flag_unknown_warning_option=no 5332fi 5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5334fi 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5338 CFLAGS="$xorg_testset_save_CFLAGS" 5339fi 5340 5341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5344 fi 5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5352/* end confdefs.h. */ 5353int i; 5354_ACEOF 5355if ac_fn_c_try_compile "$LINENO"; then : 5356 xorg_cv_cc_flag_unused_command_line_argument=yes 5357else 5358 xorg_cv_cc_flag_unused_command_line_argument=no 5359fi 5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5361fi 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5365 CFLAGS="$xorg_testset_save_CFLAGS" 5366fi 5367 5368found="no" 5369 5370 if test $found = "no" ; then 5371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5373 fi 5374 5375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5377 fi 5378 5379 CFLAGS="$CFLAGS -Wmissing-prototypes" 5380 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5382$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5383 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5384 if eval \${$cacheid+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389int i; 5390int 5391main () 5392{ 5393 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398if ac_fn_c_try_link "$LINENO"; then : 5399 eval $cacheid=yes 5400else 5401 eval $cacheid=no 5402fi 5403rm -f core conftest.err conftest.$ac_objext \ 5404 conftest$ac_exeext conftest.$ac_ext 5405fi 5406 5407 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409 5410 eval supported=\$$cacheid 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5412$as_echo "$supported" >&6; } 5413 if test "$supported" = "yes" ; then 5414 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5415 found="yes" 5416 fi 5417 fi 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433xorg_testset_save_CFLAGS="$CFLAGS" 5434 5435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5440 $as_echo_n "(cached) " >&6 5441else 5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5443/* end confdefs.h. */ 5444int i; 5445_ACEOF 5446if ac_fn_c_try_compile "$LINENO"; then : 5447 xorg_cv_cc_flag_unknown_warning_option=yes 5448else 5449 xorg_cv_cc_flag_unknown_warning_option=no 5450fi 5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5452fi 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5456 CFLAGS="$xorg_testset_save_CFLAGS" 5457fi 5458 5459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5462 fi 5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5467 $as_echo_n "(cached) " >&6 5468else 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471int i; 5472_ACEOF 5473if ac_fn_c_try_compile "$LINENO"; then : 5474 xorg_cv_cc_flag_unused_command_line_argument=yes 5475else 5476 xorg_cv_cc_flag_unused_command_line_argument=no 5477fi 5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5483 CFLAGS="$xorg_testset_save_CFLAGS" 5484fi 5485 5486found="no" 5487 5488 if test $found = "no" ; then 5489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5491 fi 5492 5493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5495 fi 5496 5497 CFLAGS="$CFLAGS -Wnested-externs" 5498 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5500$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5501 cacheid=xorg_cv_cc_flag__Wnested_externs 5502 if eval \${$cacheid+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507int i; 5508int 5509main () 5510{ 5511 5512 ; 5513 return 0; 5514} 5515_ACEOF 5516if ac_fn_c_try_link "$LINENO"; then : 5517 eval $cacheid=yes 5518else 5519 eval $cacheid=no 5520fi 5521rm -f core conftest.err conftest.$ac_objext \ 5522 conftest$ac_exeext conftest.$ac_ext 5523fi 5524 5525 5526 CFLAGS="$xorg_testset_save_CFLAGS" 5527 5528 eval supported=\$$cacheid 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5530$as_echo "$supported" >&6; } 5531 if test "$supported" = "yes" ; then 5532 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5533 found="yes" 5534 fi 5535 fi 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551xorg_testset_save_CFLAGS="$CFLAGS" 5552 5553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5561/* end confdefs.h. */ 5562int i; 5563_ACEOF 5564if ac_fn_c_try_compile "$LINENO"; then : 5565 xorg_cv_cc_flag_unknown_warning_option=yes 5566else 5567 xorg_cv_cc_flag_unknown_warning_option=no 5568fi 5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5570fi 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5574 CFLAGS="$xorg_testset_save_CFLAGS" 5575fi 5576 5577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5580 fi 5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588/* end confdefs.h. */ 5589int i; 5590_ACEOF 5591if ac_fn_c_try_compile "$LINENO"; then : 5592 xorg_cv_cc_flag_unused_command_line_argument=yes 5593else 5594 xorg_cv_cc_flag_unused_command_line_argument=no 5595fi 5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602fi 5603 5604found="no" 5605 5606 if test $found = "no" ; then 5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5609 fi 5610 5611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5613 fi 5614 5615 CFLAGS="$CFLAGS -Wbad-function-cast" 5616 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5618$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5619 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5620 if eval \${$cacheid+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625int i; 5626int 5627main () 5628{ 5629 5630 ; 5631 return 0; 5632} 5633_ACEOF 5634if ac_fn_c_try_link "$LINENO"; then : 5635 eval $cacheid=yes 5636else 5637 eval $cacheid=no 5638fi 5639rm -f core conftest.err conftest.$ac_objext \ 5640 conftest$ac_exeext conftest.$ac_ext 5641fi 5642 5643 5644 CFLAGS="$xorg_testset_save_CFLAGS" 5645 5646 eval supported=\$$cacheid 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5648$as_echo "$supported" >&6; } 5649 if test "$supported" = "yes" ; then 5650 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5651 found="yes" 5652 fi 5653 fi 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669xorg_testset_save_CFLAGS="$CFLAGS" 5670 5671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5676 $as_echo_n "(cached) " >&6 5677else 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5679/* end confdefs.h. */ 5680int i; 5681_ACEOF 5682if ac_fn_c_try_compile "$LINENO"; then : 5683 xorg_cv_cc_flag_unknown_warning_option=yes 5684else 5685 xorg_cv_cc_flag_unknown_warning_option=no 5686fi 5687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5688fi 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5692 CFLAGS="$xorg_testset_save_CFLAGS" 5693fi 5694 5695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5698 fi 5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5703 $as_echo_n "(cached) " >&6 5704else 5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707int i; 5708_ACEOF 5709if ac_fn_c_try_compile "$LINENO"; then : 5710 xorg_cv_cc_flag_unused_command_line_argument=yes 5711else 5712 xorg_cv_cc_flag_unused_command_line_argument=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715fi 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5719 CFLAGS="$xorg_testset_save_CFLAGS" 5720fi 5721 5722found="no" 5723 5724 if test $found = "no" ; then 5725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5727 fi 5728 5729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5731 fi 5732 5733 CFLAGS="$CFLAGS -Wold-style-definition" 5734 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5736$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5737 cacheid=xorg_cv_cc_flag__Wold_style_definition 5738 if eval \${$cacheid+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5742/* end confdefs.h. */ 5743int i; 5744int 5745main () 5746{ 5747 5748 ; 5749 return 0; 5750} 5751_ACEOF 5752if ac_fn_c_try_link "$LINENO"; then : 5753 eval $cacheid=yes 5754else 5755 eval $cacheid=no 5756fi 5757rm -f core conftest.err conftest.$ac_objext \ 5758 conftest$ac_exeext conftest.$ac_ext 5759fi 5760 5761 5762 CFLAGS="$xorg_testset_save_CFLAGS" 5763 5764 eval supported=\$$cacheid 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5766$as_echo "$supported" >&6; } 5767 if test "$supported" = "yes" ; then 5768 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5769 found="yes" 5770 fi 5771 fi 5772 5773 if test $found = "no" ; then 5774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5776 fi 5777 5778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5780 fi 5781 5782 CFLAGS="$CFLAGS -fd" 5783 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5785$as_echo_n "checking if $CC supports -fd... " >&6; } 5786 cacheid=xorg_cv_cc_flag__fd 5787 if eval \${$cacheid+:} false; then : 5788 $as_echo_n "(cached) " >&6 5789else 5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5791/* end confdefs.h. */ 5792int i; 5793int 5794main () 5795{ 5796 5797 ; 5798 return 0; 5799} 5800_ACEOF 5801if ac_fn_c_try_link "$LINENO"; then : 5802 eval $cacheid=yes 5803else 5804 eval $cacheid=no 5805fi 5806rm -f core conftest.err conftest.$ac_objext \ 5807 conftest$ac_exeext conftest.$ac_ext 5808fi 5809 5810 5811 CFLAGS="$xorg_testset_save_CFLAGS" 5812 5813 eval supported=\$$cacheid 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5815$as_echo "$supported" >&6; } 5816 if test "$supported" = "yes" ; then 5817 BASE_CFLAGS="$BASE_CFLAGS -fd" 5818 found="yes" 5819 fi 5820 fi 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836xorg_testset_save_CFLAGS="$CFLAGS" 5837 5838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844else 5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847int i; 5848_ACEOF 5849if ac_fn_c_try_compile "$LINENO"; then : 5850 xorg_cv_cc_flag_unknown_warning_option=yes 5851else 5852 xorg_cv_cc_flag_unknown_warning_option=no 5853fi 5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5855fi 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860fi 5861 5862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5865 fi 5866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5873/* end confdefs.h. */ 5874int i; 5875_ACEOF 5876if ac_fn_c_try_compile "$LINENO"; then : 5877 xorg_cv_cc_flag_unused_command_line_argument=yes 5878else 5879 xorg_cv_cc_flag_unused_command_line_argument=no 5880fi 5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5882fi 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5886 CFLAGS="$xorg_testset_save_CFLAGS" 5887fi 5888 5889found="no" 5890 5891 if test $found = "no" ; then 5892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5894 fi 5895 5896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5898 fi 5899 5900 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5901 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5903$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5904 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5905 if eval \${$cacheid+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5909/* end confdefs.h. */ 5910int i; 5911int 5912main () 5913{ 5914 5915 ; 5916 return 0; 5917} 5918_ACEOF 5919if ac_fn_c_try_link "$LINENO"; then : 5920 eval $cacheid=yes 5921else 5922 eval $cacheid=no 5923fi 5924rm -f core conftest.err conftest.$ac_objext \ 5925 conftest$ac_exeext conftest.$ac_ext 5926fi 5927 5928 5929 CFLAGS="$xorg_testset_save_CFLAGS" 5930 5931 eval supported=\$$cacheid 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5933$as_echo "$supported" >&6; } 5934 if test "$supported" = "yes" ; then 5935 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5936 found="yes" 5937 fi 5938 fi 5939 5940 5941 5942 5943 5944# This chunk adds additional warnings that could catch undesired effects. 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958xorg_testset_save_CFLAGS="$CFLAGS" 5959 5960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968/* end confdefs.h. */ 5969int i; 5970_ACEOF 5971if ac_fn_c_try_compile "$LINENO"; then : 5972 xorg_cv_cc_flag_unknown_warning_option=yes 5973else 5974 xorg_cv_cc_flag_unknown_warning_option=no 5975fi 5976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5977fi 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5981 CFLAGS="$xorg_testset_save_CFLAGS" 5982fi 5983 5984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5987 fi 5988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5995/* end confdefs.h. */ 5996int i; 5997_ACEOF 5998if ac_fn_c_try_compile "$LINENO"; then : 5999 xorg_cv_cc_flag_unused_command_line_argument=yes 6000else 6001 xorg_cv_cc_flag_unused_command_line_argument=no 6002fi 6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6004fi 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6008 CFLAGS="$xorg_testset_save_CFLAGS" 6009fi 6010 6011found="no" 6012 6013 if test $found = "no" ; then 6014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6016 fi 6017 6018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6020 fi 6021 6022 CFLAGS="$CFLAGS -Wunused" 6023 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6025$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6026 cacheid=xorg_cv_cc_flag__Wunused 6027 if eval \${$cacheid+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6031/* end confdefs.h. */ 6032int i; 6033int 6034main () 6035{ 6036 6037 ; 6038 return 0; 6039} 6040_ACEOF 6041if ac_fn_c_try_link "$LINENO"; then : 6042 eval $cacheid=yes 6043else 6044 eval $cacheid=no 6045fi 6046rm -f core conftest.err conftest.$ac_objext \ 6047 conftest$ac_exeext conftest.$ac_ext 6048fi 6049 6050 6051 CFLAGS="$xorg_testset_save_CFLAGS" 6052 6053 eval supported=\$$cacheid 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6055$as_echo "$supported" >&6; } 6056 if test "$supported" = "yes" ; then 6057 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6058 found="yes" 6059 fi 6060 fi 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076xorg_testset_save_CFLAGS="$CFLAGS" 6077 6078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6086/* end confdefs.h. */ 6087int i; 6088_ACEOF 6089if ac_fn_c_try_compile "$LINENO"; then : 6090 xorg_cv_cc_flag_unknown_warning_option=yes 6091else 6092 xorg_cv_cc_flag_unknown_warning_option=no 6093fi 6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6095fi 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6099 CFLAGS="$xorg_testset_save_CFLAGS" 6100fi 6101 6102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 fi 6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6110 $as_echo_n "(cached) " >&6 6111else 6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6113/* end confdefs.h. */ 6114int i; 6115_ACEOF 6116if ac_fn_c_try_compile "$LINENO"; then : 6117 xorg_cv_cc_flag_unused_command_line_argument=yes 6118else 6119 xorg_cv_cc_flag_unused_command_line_argument=no 6120fi 6121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6122fi 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6126 CFLAGS="$xorg_testset_save_CFLAGS" 6127fi 6128 6129found="no" 6130 6131 if test $found = "no" ; then 6132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6134 fi 6135 6136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6138 fi 6139 6140 CFLAGS="$CFLAGS -Wuninitialized" 6141 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6143$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6144 cacheid=xorg_cv_cc_flag__Wuninitialized 6145 if eval \${$cacheid+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6149/* end confdefs.h. */ 6150int i; 6151int 6152main () 6153{ 6154 6155 ; 6156 return 0; 6157} 6158_ACEOF 6159if ac_fn_c_try_link "$LINENO"; then : 6160 eval $cacheid=yes 6161else 6162 eval $cacheid=no 6163fi 6164rm -f core conftest.err conftest.$ac_objext \ 6165 conftest$ac_exeext conftest.$ac_ext 6166fi 6167 6168 6169 CFLAGS="$xorg_testset_save_CFLAGS" 6170 6171 eval supported=\$$cacheid 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6173$as_echo "$supported" >&6; } 6174 if test "$supported" = "yes" ; then 6175 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6176 found="yes" 6177 fi 6178 fi 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194xorg_testset_save_CFLAGS="$CFLAGS" 6195 6196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6201 $as_echo_n "(cached) " >&6 6202else 6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6204/* end confdefs.h. */ 6205int i; 6206_ACEOF 6207if ac_fn_c_try_compile "$LINENO"; then : 6208 xorg_cv_cc_flag_unknown_warning_option=yes 6209else 6210 xorg_cv_cc_flag_unknown_warning_option=no 6211fi 6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6213fi 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6217 CFLAGS="$xorg_testset_save_CFLAGS" 6218fi 6219 6220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6223 fi 6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6228 $as_echo_n "(cached) " >&6 6229else 6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6231/* end confdefs.h. */ 6232int i; 6233_ACEOF 6234if ac_fn_c_try_compile "$LINENO"; then : 6235 xorg_cv_cc_flag_unused_command_line_argument=yes 6236else 6237 xorg_cv_cc_flag_unused_command_line_argument=no 6238fi 6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6240fi 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6244 CFLAGS="$xorg_testset_save_CFLAGS" 6245fi 6246 6247found="no" 6248 6249 if test $found = "no" ; then 6250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6252 fi 6253 6254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6256 fi 6257 6258 CFLAGS="$CFLAGS -Wshadow" 6259 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6261$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6262 cacheid=xorg_cv_cc_flag__Wshadow 6263 if eval \${$cacheid+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267/* end confdefs.h. */ 6268int i; 6269int 6270main () 6271{ 6272 6273 ; 6274 return 0; 6275} 6276_ACEOF 6277if ac_fn_c_try_link "$LINENO"; then : 6278 eval $cacheid=yes 6279else 6280 eval $cacheid=no 6281fi 6282rm -f core conftest.err conftest.$ac_objext \ 6283 conftest$ac_exeext conftest.$ac_ext 6284fi 6285 6286 6287 CFLAGS="$xorg_testset_save_CFLAGS" 6288 6289 eval supported=\$$cacheid 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6291$as_echo "$supported" >&6; } 6292 if test "$supported" = "yes" ; then 6293 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6294 found="yes" 6295 fi 6296 fi 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312xorg_testset_save_CFLAGS="$CFLAGS" 6313 6314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322/* end confdefs.h. */ 6323int i; 6324_ACEOF 6325if ac_fn_c_try_compile "$LINENO"; then : 6326 xorg_cv_cc_flag_unknown_warning_option=yes 6327else 6328 xorg_cv_cc_flag_unknown_warning_option=no 6329fi 6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6331fi 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6335 CFLAGS="$xorg_testset_save_CFLAGS" 6336fi 6337 6338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6341 fi 6342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6349/* end confdefs.h. */ 6350int i; 6351_ACEOF 6352if ac_fn_c_try_compile "$LINENO"; then : 6353 xorg_cv_cc_flag_unused_command_line_argument=yes 6354else 6355 xorg_cv_cc_flag_unused_command_line_argument=no 6356fi 6357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6358fi 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6362 CFLAGS="$xorg_testset_save_CFLAGS" 6363fi 6364 6365found="no" 6366 6367 if test $found = "no" ; then 6368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6370 fi 6371 6372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6374 fi 6375 6376 CFLAGS="$CFLAGS -Wmissing-noreturn" 6377 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6379$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6380 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6381 if eval \${$cacheid+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6385/* end confdefs.h. */ 6386int i; 6387int 6388main () 6389{ 6390 6391 ; 6392 return 0; 6393} 6394_ACEOF 6395if ac_fn_c_try_link "$LINENO"; then : 6396 eval $cacheid=yes 6397else 6398 eval $cacheid=no 6399fi 6400rm -f core conftest.err conftest.$ac_objext \ 6401 conftest$ac_exeext conftest.$ac_ext 6402fi 6403 6404 6405 CFLAGS="$xorg_testset_save_CFLAGS" 6406 6407 eval supported=\$$cacheid 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6409$as_echo "$supported" >&6; } 6410 if test "$supported" = "yes" ; then 6411 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6412 found="yes" 6413 fi 6414 fi 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430xorg_testset_save_CFLAGS="$CFLAGS" 6431 6432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6440/* end confdefs.h. */ 6441int i; 6442_ACEOF 6443if ac_fn_c_try_compile "$LINENO"; then : 6444 xorg_cv_cc_flag_unknown_warning_option=yes 6445else 6446 xorg_cv_cc_flag_unknown_warning_option=no 6447fi 6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6449fi 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6453 CFLAGS="$xorg_testset_save_CFLAGS" 6454fi 6455 6456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6459 fi 6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6467/* end confdefs.h. */ 6468int i; 6469_ACEOF 6470if ac_fn_c_try_compile "$LINENO"; then : 6471 xorg_cv_cc_flag_unused_command_line_argument=yes 6472else 6473 xorg_cv_cc_flag_unused_command_line_argument=no 6474fi 6475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6476fi 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6480 CFLAGS="$xorg_testset_save_CFLAGS" 6481fi 6482 6483found="no" 6484 6485 if test $found = "no" ; then 6486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6488 fi 6489 6490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6492 fi 6493 6494 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6495 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6497$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6498 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6499 if eval \${$cacheid+:} false; then : 6500 $as_echo_n "(cached) " >&6 6501else 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504int i; 6505int 6506main () 6507{ 6508 6509 ; 6510 return 0; 6511} 6512_ACEOF 6513if ac_fn_c_try_link "$LINENO"; then : 6514 eval $cacheid=yes 6515else 6516 eval $cacheid=no 6517fi 6518rm -f core conftest.err conftest.$ac_objext \ 6519 conftest$ac_exeext conftest.$ac_ext 6520fi 6521 6522 6523 CFLAGS="$xorg_testset_save_CFLAGS" 6524 6525 eval supported=\$$cacheid 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6527$as_echo "$supported" >&6; } 6528 if test "$supported" = "yes" ; then 6529 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6530 found="yes" 6531 fi 6532 fi 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548xorg_testset_save_CFLAGS="$CFLAGS" 6549 6550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6555 $as_echo_n "(cached) " >&6 6556else 6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6558/* end confdefs.h. */ 6559int i; 6560_ACEOF 6561if ac_fn_c_try_compile "$LINENO"; then : 6562 xorg_cv_cc_flag_unknown_warning_option=yes 6563else 6564 xorg_cv_cc_flag_unknown_warning_option=no 6565fi 6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6567fi 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6571 CFLAGS="$xorg_testset_save_CFLAGS" 6572fi 6573 6574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6577 fi 6578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6585/* end confdefs.h. */ 6586int i; 6587_ACEOF 6588if ac_fn_c_try_compile "$LINENO"; then : 6589 xorg_cv_cc_flag_unused_command_line_argument=yes 6590else 6591 xorg_cv_cc_flag_unused_command_line_argument=no 6592fi 6593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6594fi 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599fi 6600 6601found="no" 6602 6603 if test $found = "no" ; then 6604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6606 fi 6607 6608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6610 fi 6611 6612 CFLAGS="$CFLAGS -Wredundant-decls" 6613 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6615$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6616 cacheid=xorg_cv_cc_flag__Wredundant_decls 6617 if eval \${$cacheid+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622int i; 6623int 6624main () 6625{ 6626 6627 ; 6628 return 0; 6629} 6630_ACEOF 6631if ac_fn_c_try_link "$LINENO"; then : 6632 eval $cacheid=yes 6633else 6634 eval $cacheid=no 6635fi 6636rm -f core conftest.err conftest.$ac_objext \ 6637 conftest$ac_exeext conftest.$ac_ext 6638fi 6639 6640 6641 CFLAGS="$xorg_testset_save_CFLAGS" 6642 6643 eval supported=\$$cacheid 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6645$as_echo "$supported" >&6; } 6646 if test "$supported" = "yes" ; then 6647 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6648 found="yes" 6649 fi 6650 fi 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666xorg_testset_save_CFLAGS="$CFLAGS" 6667 6668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677int i; 6678_ACEOF 6679if ac_fn_c_try_compile "$LINENO"; then : 6680 xorg_cv_cc_flag_unknown_warning_option=yes 6681else 6682 xorg_cv_cc_flag_unknown_warning_option=no 6683fi 6684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6685fi 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6689 CFLAGS="$xorg_testset_save_CFLAGS" 6690fi 6691 6692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 fi 6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704int i; 6705_ACEOF 6706if ac_fn_c_try_compile "$LINENO"; then : 6707 xorg_cv_cc_flag_unused_command_line_argument=yes 6708else 6709 xorg_cv_cc_flag_unused_command_line_argument=no 6710fi 6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6712fi 6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717fi 6718 6719found="no" 6720 6721 if test $found = "no" ; then 6722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6724 fi 6725 6726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6728 fi 6729 6730 CFLAGS="$CFLAGS -Wlogical-op" 6731 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6733$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6734 cacheid=xorg_cv_cc_flag__Wlogical_op 6735 if eval \${$cacheid+:} false; then : 6736 $as_echo_n "(cached) " >&6 6737else 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740int i; 6741int 6742main () 6743{ 6744 6745 ; 6746 return 0; 6747} 6748_ACEOF 6749if ac_fn_c_try_link "$LINENO"; then : 6750 eval $cacheid=yes 6751else 6752 eval $cacheid=no 6753fi 6754rm -f core conftest.err conftest.$ac_objext \ 6755 conftest$ac_exeext conftest.$ac_ext 6756fi 6757 6758 6759 CFLAGS="$xorg_testset_save_CFLAGS" 6760 6761 eval supported=\$$cacheid 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6763$as_echo "$supported" >&6; } 6764 if test "$supported" = "yes" ; then 6765 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6766 found="yes" 6767 fi 6768 fi 6769 6770 6771 6772# These are currently disabled because they are noisy. They will be enabled 6773# in the future once the codebase is sufficiently modernized to silence 6774# them. For now, I don't want them to drown out the other warnings. 6775# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6776# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6777# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6778 6779# Turn some warnings into errors, so we don't accidently get successful builds 6780# when there are problems that should be fixed. 6781 6782if test "x$SELECTIVE_WERROR" = "xyes" ; then 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 -Werror=implicit" 6861 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6863$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6864 cacheid=xorg_cv_cc_flag__Werror_implicit 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 -Werror=implicit" 6896 found="yes" 6897 fi 6898 fi 6899 6900 if test $found = "no" ; then 6901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6903 fi 6904 6905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6907 fi 6908 6909 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6910 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6912$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6913 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6914 if eval \${$cacheid+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916else 6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6918/* end confdefs.h. */ 6919int i; 6920int 6921main () 6922{ 6923 6924 ; 6925 return 0; 6926} 6927_ACEOF 6928if ac_fn_c_try_link "$LINENO"; then : 6929 eval $cacheid=yes 6930else 6931 eval $cacheid=no 6932fi 6933rm -f core conftest.err conftest.$ac_objext \ 6934 conftest$ac_exeext conftest.$ac_ext 6935fi 6936 6937 6938 CFLAGS="$xorg_testset_save_CFLAGS" 6939 6940 eval supported=\$$cacheid 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6942$as_echo "$supported" >&6; } 6943 if test "$supported" = "yes" ; then 6944 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6945 found="yes" 6946 fi 6947 fi 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963xorg_testset_save_CFLAGS="$CFLAGS" 6964 6965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971else 6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6973/* end confdefs.h. */ 6974int i; 6975_ACEOF 6976if ac_fn_c_try_compile "$LINENO"; then : 6977 xorg_cv_cc_flag_unknown_warning_option=yes 6978else 6979 xorg_cv_cc_flag_unknown_warning_option=no 6980fi 6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6982fi 6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6986 CFLAGS="$xorg_testset_save_CFLAGS" 6987fi 6988 6989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6992 fi 6993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6997 $as_echo_n "(cached) " >&6 6998else 6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7000/* end confdefs.h. */ 7001int i; 7002_ACEOF 7003if ac_fn_c_try_compile "$LINENO"; then : 7004 xorg_cv_cc_flag_unused_command_line_argument=yes 7005else 7006 xorg_cv_cc_flag_unused_command_line_argument=no 7007fi 7008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7009fi 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7013 CFLAGS="$xorg_testset_save_CFLAGS" 7014fi 7015 7016found="no" 7017 7018 if test $found = "no" ; then 7019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7021 fi 7022 7023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7025 fi 7026 7027 CFLAGS="$CFLAGS -Werror=nonnull" 7028 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7030$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7031 cacheid=xorg_cv_cc_flag__Werror_nonnull 7032 if eval \${$cacheid+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7036/* end confdefs.h. */ 7037int i; 7038int 7039main () 7040{ 7041 7042 ; 7043 return 0; 7044} 7045_ACEOF 7046if ac_fn_c_try_link "$LINENO"; then : 7047 eval $cacheid=yes 7048else 7049 eval $cacheid=no 7050fi 7051rm -f core conftest.err conftest.$ac_objext \ 7052 conftest$ac_exeext conftest.$ac_ext 7053fi 7054 7055 7056 CFLAGS="$xorg_testset_save_CFLAGS" 7057 7058 eval supported=\$$cacheid 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7060$as_echo "$supported" >&6; } 7061 if test "$supported" = "yes" ; then 7062 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7063 found="yes" 7064 fi 7065 fi 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081xorg_testset_save_CFLAGS="$CFLAGS" 7082 7083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092int i; 7093_ACEOF 7094if ac_fn_c_try_compile "$LINENO"; then : 7095 xorg_cv_cc_flag_unknown_warning_option=yes 7096else 7097 xorg_cv_cc_flag_unknown_warning_option=no 7098fi 7099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7100fi 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7104 CFLAGS="$xorg_testset_save_CFLAGS" 7105fi 7106 7107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7110 fi 7111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116else 7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119int i; 7120_ACEOF 7121if ac_fn_c_try_compile "$LINENO"; then : 7122 xorg_cv_cc_flag_unused_command_line_argument=yes 7123else 7124 xorg_cv_cc_flag_unused_command_line_argument=no 7125fi 7126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7127fi 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7131 CFLAGS="$xorg_testset_save_CFLAGS" 7132fi 7133 7134found="no" 7135 7136 if test $found = "no" ; then 7137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7139 fi 7140 7141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7143 fi 7144 7145 CFLAGS="$CFLAGS -Werror=init-self" 7146 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7148$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7149 cacheid=xorg_cv_cc_flag__Werror_init_self 7150 if eval \${$cacheid+:} false; then : 7151 $as_echo_n "(cached) " >&6 7152else 7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155int i; 7156int 7157main () 7158{ 7159 7160 ; 7161 return 0; 7162} 7163_ACEOF 7164if ac_fn_c_try_link "$LINENO"; then : 7165 eval $cacheid=yes 7166else 7167 eval $cacheid=no 7168fi 7169rm -f core conftest.err conftest.$ac_objext \ 7170 conftest$ac_exeext conftest.$ac_ext 7171fi 7172 7173 7174 CFLAGS="$xorg_testset_save_CFLAGS" 7175 7176 eval supported=\$$cacheid 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7178$as_echo "$supported" >&6; } 7179 if test "$supported" = "yes" ; then 7180 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7181 found="yes" 7182 fi 7183 fi 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199xorg_testset_save_CFLAGS="$CFLAGS" 7200 7201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209/* end confdefs.h. */ 7210int i; 7211_ACEOF 7212if ac_fn_c_try_compile "$LINENO"; then : 7213 xorg_cv_cc_flag_unknown_warning_option=yes 7214else 7215 xorg_cv_cc_flag_unknown_warning_option=no 7216fi 7217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7218fi 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7222 CFLAGS="$xorg_testset_save_CFLAGS" 7223fi 7224 7225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7228 fi 7229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7236/* end confdefs.h. */ 7237int i; 7238_ACEOF 7239if ac_fn_c_try_compile "$LINENO"; then : 7240 xorg_cv_cc_flag_unused_command_line_argument=yes 7241else 7242 xorg_cv_cc_flag_unused_command_line_argument=no 7243fi 7244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7245fi 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7249 CFLAGS="$xorg_testset_save_CFLAGS" 7250fi 7251 7252found="no" 7253 7254 if test $found = "no" ; then 7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7257 fi 7258 7259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7261 fi 7262 7263 CFLAGS="$CFLAGS -Werror=main" 7264 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7266$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7267 cacheid=xorg_cv_cc_flag__Werror_main 7268 if eval \${$cacheid+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273int i; 7274int 7275main () 7276{ 7277 7278 ; 7279 return 0; 7280} 7281_ACEOF 7282if ac_fn_c_try_link "$LINENO"; then : 7283 eval $cacheid=yes 7284else 7285 eval $cacheid=no 7286fi 7287rm -f core conftest.err conftest.$ac_objext \ 7288 conftest$ac_exeext conftest.$ac_ext 7289fi 7290 7291 7292 CFLAGS="$xorg_testset_save_CFLAGS" 7293 7294 eval supported=\$$cacheid 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7296$as_echo "$supported" >&6; } 7297 if test "$supported" = "yes" ; then 7298 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7299 found="yes" 7300 fi 7301 fi 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317xorg_testset_save_CFLAGS="$CFLAGS" 7318 7319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7324 $as_echo_n "(cached) " >&6 7325else 7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7327/* end confdefs.h. */ 7328int i; 7329_ACEOF 7330if ac_fn_c_try_compile "$LINENO"; then : 7331 xorg_cv_cc_flag_unknown_warning_option=yes 7332else 7333 xorg_cv_cc_flag_unknown_warning_option=no 7334fi 7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7336fi 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7340 CFLAGS="$xorg_testset_save_CFLAGS" 7341fi 7342 7343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7346 fi 7347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352else 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354/* end confdefs.h. */ 7355int i; 7356_ACEOF 7357if ac_fn_c_try_compile "$LINENO"; then : 7358 xorg_cv_cc_flag_unused_command_line_argument=yes 7359else 7360 xorg_cv_cc_flag_unused_command_line_argument=no 7361fi 7362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7363fi 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7367 CFLAGS="$xorg_testset_save_CFLAGS" 7368fi 7369 7370found="no" 7371 7372 if test $found = "no" ; then 7373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7375 fi 7376 7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7379 fi 7380 7381 CFLAGS="$CFLAGS -Werror=missing-braces" 7382 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7384$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7385 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7386 if eval \${$cacheid+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7390/* end confdefs.h. */ 7391int i; 7392int 7393main () 7394{ 7395 7396 ; 7397 return 0; 7398} 7399_ACEOF 7400if ac_fn_c_try_link "$LINENO"; then : 7401 eval $cacheid=yes 7402else 7403 eval $cacheid=no 7404fi 7405rm -f core conftest.err conftest.$ac_objext \ 7406 conftest$ac_exeext conftest.$ac_ext 7407fi 7408 7409 7410 CFLAGS="$xorg_testset_save_CFLAGS" 7411 7412 eval supported=\$$cacheid 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7414$as_echo "$supported" >&6; } 7415 if test "$supported" = "yes" ; then 7416 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7417 found="yes" 7418 fi 7419 fi 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435xorg_testset_save_CFLAGS="$CFLAGS" 7436 7437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7442 $as_echo_n "(cached) " >&6 7443else 7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7445/* end confdefs.h. */ 7446int i; 7447_ACEOF 7448if ac_fn_c_try_compile "$LINENO"; then : 7449 xorg_cv_cc_flag_unknown_warning_option=yes 7450else 7451 xorg_cv_cc_flag_unknown_warning_option=no 7452fi 7453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7454fi 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7458 CFLAGS="$xorg_testset_save_CFLAGS" 7459fi 7460 7461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7464 fi 7465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7469 $as_echo_n "(cached) " >&6 7470else 7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7472/* end confdefs.h. */ 7473int i; 7474_ACEOF 7475if ac_fn_c_try_compile "$LINENO"; then : 7476 xorg_cv_cc_flag_unused_command_line_argument=yes 7477else 7478 xorg_cv_cc_flag_unused_command_line_argument=no 7479fi 7480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7481fi 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7485 CFLAGS="$xorg_testset_save_CFLAGS" 7486fi 7487 7488found="no" 7489 7490 if test $found = "no" ; then 7491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7493 fi 7494 7495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7497 fi 7498 7499 CFLAGS="$CFLAGS -Werror=sequence-point" 7500 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7502$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7503 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7504 if eval \${$cacheid+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509int i; 7510int 7511main () 7512{ 7513 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518if ac_fn_c_try_link "$LINENO"; then : 7519 eval $cacheid=yes 7520else 7521 eval $cacheid=no 7522fi 7523rm -f core conftest.err conftest.$ac_objext \ 7524 conftest$ac_exeext conftest.$ac_ext 7525fi 7526 7527 7528 CFLAGS="$xorg_testset_save_CFLAGS" 7529 7530 eval supported=\$$cacheid 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7532$as_echo "$supported" >&6; } 7533 if test "$supported" = "yes" ; then 7534 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7535 found="yes" 7536 fi 7537 fi 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553xorg_testset_save_CFLAGS="$CFLAGS" 7554 7555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561else 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563/* end confdefs.h. */ 7564int i; 7565_ACEOF 7566if ac_fn_c_try_compile "$LINENO"; then : 7567 xorg_cv_cc_flag_unknown_warning_option=yes 7568else 7569 xorg_cv_cc_flag_unknown_warning_option=no 7570fi 7571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7572fi 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7576 CFLAGS="$xorg_testset_save_CFLAGS" 7577fi 7578 7579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7582 fi 7583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7587 $as_echo_n "(cached) " >&6 7588else 7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7590/* end confdefs.h. */ 7591int i; 7592_ACEOF 7593if ac_fn_c_try_compile "$LINENO"; then : 7594 xorg_cv_cc_flag_unused_command_line_argument=yes 7595else 7596 xorg_cv_cc_flag_unused_command_line_argument=no 7597fi 7598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7599fi 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7603 CFLAGS="$xorg_testset_save_CFLAGS" 7604fi 7605 7606found="no" 7607 7608 if test $found = "no" ; then 7609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7611 fi 7612 7613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7615 fi 7616 7617 CFLAGS="$CFLAGS -Werror=return-type" 7618 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7620$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7621 cacheid=xorg_cv_cc_flag__Werror_return_type 7622 if eval \${$cacheid+:} false; then : 7623 $as_echo_n "(cached) " >&6 7624else 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7626/* end confdefs.h. */ 7627int i; 7628int 7629main () 7630{ 7631 7632 ; 7633 return 0; 7634} 7635_ACEOF 7636if ac_fn_c_try_link "$LINENO"; then : 7637 eval $cacheid=yes 7638else 7639 eval $cacheid=no 7640fi 7641rm -f core conftest.err conftest.$ac_objext \ 7642 conftest$ac_exeext conftest.$ac_ext 7643fi 7644 7645 7646 CFLAGS="$xorg_testset_save_CFLAGS" 7647 7648 eval supported=\$$cacheid 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7650$as_echo "$supported" >&6; } 7651 if test "$supported" = "yes" ; then 7652 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7653 found="yes" 7654 fi 7655 fi 7656 7657 if test $found = "no" ; then 7658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7660 fi 7661 7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7664 fi 7665 7666 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7667 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7669$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7670 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7671 if eval \${$cacheid+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675/* end confdefs.h. */ 7676int i; 7677int 7678main () 7679{ 7680 7681 ; 7682 return 0; 7683} 7684_ACEOF 7685if ac_fn_c_try_link "$LINENO"; then : 7686 eval $cacheid=yes 7687else 7688 eval $cacheid=no 7689fi 7690rm -f core conftest.err conftest.$ac_objext \ 7691 conftest$ac_exeext conftest.$ac_ext 7692fi 7693 7694 7695 CFLAGS="$xorg_testset_save_CFLAGS" 7696 7697 eval supported=\$$cacheid 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7699$as_echo "$supported" >&6; } 7700 if test "$supported" = "yes" ; then 7701 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7702 found="yes" 7703 fi 7704 fi 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720xorg_testset_save_CFLAGS="$CFLAGS" 7721 7722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7730/* end confdefs.h. */ 7731int i; 7732_ACEOF 7733if ac_fn_c_try_compile "$LINENO"; then : 7734 xorg_cv_cc_flag_unknown_warning_option=yes 7735else 7736 xorg_cv_cc_flag_unknown_warning_option=no 7737fi 7738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7739fi 7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7743 CFLAGS="$xorg_testset_save_CFLAGS" 7744fi 7745 7746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7749 fi 7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7757/* end confdefs.h. */ 7758int i; 7759_ACEOF 7760if ac_fn_c_try_compile "$LINENO"; then : 7761 xorg_cv_cc_flag_unused_command_line_argument=yes 7762else 7763 xorg_cv_cc_flag_unused_command_line_argument=no 7764fi 7765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7766fi 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7770 CFLAGS="$xorg_testset_save_CFLAGS" 7771fi 7772 7773found="no" 7774 7775 if test $found = "no" ; then 7776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7778 fi 7779 7780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7782 fi 7783 7784 CFLAGS="$CFLAGS -Werror=trigraphs" 7785 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7787$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7788 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7789 if eval \${$cacheid+:} false; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794int i; 7795int 7796main () 7797{ 7798 7799 ; 7800 return 0; 7801} 7802_ACEOF 7803if ac_fn_c_try_link "$LINENO"; then : 7804 eval $cacheid=yes 7805else 7806 eval $cacheid=no 7807fi 7808rm -f core conftest.err conftest.$ac_objext \ 7809 conftest$ac_exeext conftest.$ac_ext 7810fi 7811 7812 7813 CFLAGS="$xorg_testset_save_CFLAGS" 7814 7815 eval supported=\$$cacheid 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7817$as_echo "$supported" >&6; } 7818 if test "$supported" = "yes" ; then 7819 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7820 found="yes" 7821 fi 7822 fi 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838xorg_testset_save_CFLAGS="$CFLAGS" 7839 7840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846else 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848/* end confdefs.h. */ 7849int i; 7850_ACEOF 7851if ac_fn_c_try_compile "$LINENO"; then : 7852 xorg_cv_cc_flag_unknown_warning_option=yes 7853else 7854 xorg_cv_cc_flag_unknown_warning_option=no 7855fi 7856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7857fi 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7861 CFLAGS="$xorg_testset_save_CFLAGS" 7862fi 7863 7864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7867 fi 7868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7875/* end confdefs.h. */ 7876int i; 7877_ACEOF 7878if ac_fn_c_try_compile "$LINENO"; then : 7879 xorg_cv_cc_flag_unused_command_line_argument=yes 7880else 7881 xorg_cv_cc_flag_unused_command_line_argument=no 7882fi 7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7884fi 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7888 CFLAGS="$xorg_testset_save_CFLAGS" 7889fi 7890 7891found="no" 7892 7893 if test $found = "no" ; then 7894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7896 fi 7897 7898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7900 fi 7901 7902 CFLAGS="$CFLAGS -Werror=array-bounds" 7903 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7905$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7906 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7907 if eval \${$cacheid+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913int 7914main () 7915{ 7916 7917 ; 7918 return 0; 7919} 7920_ACEOF 7921if ac_fn_c_try_link "$LINENO"; then : 7922 eval $cacheid=yes 7923else 7924 eval $cacheid=no 7925fi 7926rm -f core conftest.err conftest.$ac_objext \ 7927 conftest$ac_exeext conftest.$ac_ext 7928fi 7929 7930 7931 CFLAGS="$xorg_testset_save_CFLAGS" 7932 7933 eval supported=\$$cacheid 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7935$as_echo "$supported" >&6; } 7936 if test "$supported" = "yes" ; then 7937 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7938 found="yes" 7939 fi 7940 fi 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956xorg_testset_save_CFLAGS="$CFLAGS" 7957 7958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7966/* end confdefs.h. */ 7967int i; 7968_ACEOF 7969if ac_fn_c_try_compile "$LINENO"; then : 7970 xorg_cv_cc_flag_unknown_warning_option=yes 7971else 7972 xorg_cv_cc_flag_unknown_warning_option=no 7973fi 7974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7975fi 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7979 CFLAGS="$xorg_testset_save_CFLAGS" 7980fi 7981 7982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7985 fi 7986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7990 $as_echo_n "(cached) " >&6 7991else 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7993/* end confdefs.h. */ 7994int i; 7995_ACEOF 7996if ac_fn_c_try_compile "$LINENO"; then : 7997 xorg_cv_cc_flag_unused_command_line_argument=yes 7998else 7999 xorg_cv_cc_flag_unused_command_line_argument=no 8000fi 8001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8002fi 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8006 CFLAGS="$xorg_testset_save_CFLAGS" 8007fi 8008 8009found="no" 8010 8011 if test $found = "no" ; then 8012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8014 fi 8015 8016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8018 fi 8019 8020 CFLAGS="$CFLAGS -Werror=write-strings" 8021 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8023$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8024 cacheid=xorg_cv_cc_flag__Werror_write_strings 8025 if eval \${$cacheid+:} false; then : 8026 $as_echo_n "(cached) " >&6 8027else 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029/* end confdefs.h. */ 8030int i; 8031int 8032main () 8033{ 8034 8035 ; 8036 return 0; 8037} 8038_ACEOF 8039if ac_fn_c_try_link "$LINENO"; then : 8040 eval $cacheid=yes 8041else 8042 eval $cacheid=no 8043fi 8044rm -f core conftest.err conftest.$ac_objext \ 8045 conftest$ac_exeext conftest.$ac_ext 8046fi 8047 8048 8049 CFLAGS="$xorg_testset_save_CFLAGS" 8050 8051 eval supported=\$$cacheid 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8053$as_echo "$supported" >&6; } 8054 if test "$supported" = "yes" ; then 8055 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8056 found="yes" 8057 fi 8058 fi 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074xorg_testset_save_CFLAGS="$CFLAGS" 8075 8076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085int i; 8086_ACEOF 8087if ac_fn_c_try_compile "$LINENO"; then : 8088 xorg_cv_cc_flag_unknown_warning_option=yes 8089else 8090 xorg_cv_cc_flag_unknown_warning_option=no 8091fi 8092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8093fi 8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8097 CFLAGS="$xorg_testset_save_CFLAGS" 8098fi 8099 8100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8103 fi 8104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111/* end confdefs.h. */ 8112int i; 8113_ACEOF 8114if ac_fn_c_try_compile "$LINENO"; then : 8115 xorg_cv_cc_flag_unused_command_line_argument=yes 8116else 8117 xorg_cv_cc_flag_unused_command_line_argument=no 8118fi 8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8120fi 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8124 CFLAGS="$xorg_testset_save_CFLAGS" 8125fi 8126 8127found="no" 8128 8129 if test $found = "no" ; then 8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8132 fi 8133 8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8136 fi 8137 8138 CFLAGS="$CFLAGS -Werror=address" 8139 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8141$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8142 cacheid=xorg_cv_cc_flag__Werror_address 8143 if eval \${$cacheid+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148int i; 8149int 8150main () 8151{ 8152 8153 ; 8154 return 0; 8155} 8156_ACEOF 8157if ac_fn_c_try_link "$LINENO"; then : 8158 eval $cacheid=yes 8159else 8160 eval $cacheid=no 8161fi 8162rm -f core conftest.err conftest.$ac_objext \ 8163 conftest$ac_exeext conftest.$ac_ext 8164fi 8165 8166 8167 CFLAGS="$xorg_testset_save_CFLAGS" 8168 8169 eval supported=\$$cacheid 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8171$as_echo "$supported" >&6; } 8172 if test "$supported" = "yes" ; then 8173 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8174 found="yes" 8175 fi 8176 fi 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192xorg_testset_save_CFLAGS="$CFLAGS" 8193 8194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8202/* end confdefs.h. */ 8203int i; 8204_ACEOF 8205if ac_fn_c_try_compile "$LINENO"; then : 8206 xorg_cv_cc_flag_unknown_warning_option=yes 8207else 8208 xorg_cv_cc_flag_unknown_warning_option=no 8209fi 8210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8211fi 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216fi 8217 8218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8221 fi 8222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227else 8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229/* end confdefs.h. */ 8230int i; 8231_ACEOF 8232if ac_fn_c_try_compile "$LINENO"; then : 8233 xorg_cv_cc_flag_unused_command_line_argument=yes 8234else 8235 xorg_cv_cc_flag_unused_command_line_argument=no 8236fi 8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8238fi 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8242 CFLAGS="$xorg_testset_save_CFLAGS" 8243fi 8244 8245found="no" 8246 8247 if test $found = "no" ; then 8248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8250 fi 8251 8252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8254 fi 8255 8256 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8257 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8259$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8260 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8261 if eval \${$cacheid+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8265/* end confdefs.h. */ 8266int i; 8267int 8268main () 8269{ 8270 8271 ; 8272 return 0; 8273} 8274_ACEOF 8275if ac_fn_c_try_link "$LINENO"; then : 8276 eval $cacheid=yes 8277else 8278 eval $cacheid=no 8279fi 8280rm -f core conftest.err conftest.$ac_objext \ 8281 conftest$ac_exeext conftest.$ac_ext 8282fi 8283 8284 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286 8287 eval supported=\$$cacheid 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8289$as_echo "$supported" >&6; } 8290 if test "$supported" = "yes" ; then 8291 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8292 found="yes" 8293 fi 8294 fi 8295 8296 if test $found = "no" ; then 8297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8299 fi 8300 8301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8303 fi 8304 8305 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8306 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8308$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8309 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8310 if eval \${$cacheid+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315int i; 8316int 8317main () 8318{ 8319 8320 ; 8321 return 0; 8322} 8323_ACEOF 8324if ac_fn_c_try_link "$LINENO"; then : 8325 eval $cacheid=yes 8326else 8327 eval $cacheid=no 8328fi 8329rm -f core conftest.err conftest.$ac_objext \ 8330 conftest$ac_exeext conftest.$ac_ext 8331fi 8332 8333 8334 CFLAGS="$xorg_testset_save_CFLAGS" 8335 8336 eval supported=\$$cacheid 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8338$as_echo "$supported" >&6; } 8339 if test "$supported" = "yes" ; then 8340 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8341 found="yes" 8342 fi 8343 fi 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359xorg_testset_save_CFLAGS="$CFLAGS" 8360 8361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370int i; 8371_ACEOF 8372if ac_fn_c_try_compile "$LINENO"; then : 8373 xorg_cv_cc_flag_unknown_warning_option=yes 8374else 8375 xorg_cv_cc_flag_unknown_warning_option=no 8376fi 8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8378fi 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8382 CFLAGS="$xorg_testset_save_CFLAGS" 8383fi 8384 8385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8388 fi 8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397int i; 8398_ACEOF 8399if ac_fn_c_try_compile "$LINENO"; then : 8400 xorg_cv_cc_flag_unused_command_line_argument=yes 8401else 8402 xorg_cv_cc_flag_unused_command_line_argument=no 8403fi 8404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8405fi 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8409 CFLAGS="$xorg_testset_save_CFLAGS" 8410fi 8411 8412found="no" 8413 8414 if test $found = "no" ; then 8415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8417 fi 8418 8419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8421 fi 8422 8423 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8424 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8426$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8427 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8428 if eval \${$cacheid+:} false; then : 8429 $as_echo_n "(cached) " >&6 8430else 8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8432/* end confdefs.h. */ 8433int i; 8434int 8435main () 8436{ 8437 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442if ac_fn_c_try_link "$LINENO"; then : 8443 eval $cacheid=yes 8444else 8445 eval $cacheid=no 8446fi 8447rm -f core conftest.err conftest.$ac_objext \ 8448 conftest$ac_exeext conftest.$ac_ext 8449fi 8450 8451 8452 CFLAGS="$xorg_testset_save_CFLAGS" 8453 8454 eval supported=\$$cacheid 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8456$as_echo "$supported" >&6; } 8457 if test "$supported" = "yes" ; then 8458 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8459 found="yes" 8460 fi 8461 fi 8462 8463 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8464else 8465{ $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 8466$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;} 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480xorg_testset_save_CFLAGS="$CFLAGS" 8481 8482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8487 $as_echo_n "(cached) " >&6 8488else 8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8490/* end confdefs.h. */ 8491int i; 8492_ACEOF 8493if ac_fn_c_try_compile "$LINENO"; then : 8494 xorg_cv_cc_flag_unknown_warning_option=yes 8495else 8496 xorg_cv_cc_flag_unknown_warning_option=no 8497fi 8498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8499fi 8500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8503 CFLAGS="$xorg_testset_save_CFLAGS" 8504fi 8505 8506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8509 fi 8510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8514 $as_echo_n "(cached) " >&6 8515else 8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8517/* end confdefs.h. */ 8518int i; 8519_ACEOF 8520if ac_fn_c_try_compile "$LINENO"; then : 8521 xorg_cv_cc_flag_unused_command_line_argument=yes 8522else 8523 xorg_cv_cc_flag_unused_command_line_argument=no 8524fi 8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8526fi 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8530 CFLAGS="$xorg_testset_save_CFLAGS" 8531fi 8532 8533found="no" 8534 8535 if test $found = "no" ; then 8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8538 fi 8539 8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8542 fi 8543 8544 CFLAGS="$CFLAGS -Wimplicit" 8545 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8547$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8548 cacheid=xorg_cv_cc_flag__Wimplicit 8549 if eval \${$cacheid+:} false; then : 8550 $as_echo_n "(cached) " >&6 8551else 8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8553/* end confdefs.h. */ 8554int i; 8555int 8556main () 8557{ 8558 8559 ; 8560 return 0; 8561} 8562_ACEOF 8563if ac_fn_c_try_link "$LINENO"; then : 8564 eval $cacheid=yes 8565else 8566 eval $cacheid=no 8567fi 8568rm -f core conftest.err conftest.$ac_objext \ 8569 conftest$ac_exeext conftest.$ac_ext 8570fi 8571 8572 8573 CFLAGS="$xorg_testset_save_CFLAGS" 8574 8575 eval supported=\$$cacheid 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8577$as_echo "$supported" >&6; } 8578 if test "$supported" = "yes" ; then 8579 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8580 found="yes" 8581 fi 8582 fi 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598xorg_testset_save_CFLAGS="$CFLAGS" 8599 8600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8605 $as_echo_n "(cached) " >&6 8606else 8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8608/* end confdefs.h. */ 8609int i; 8610_ACEOF 8611if ac_fn_c_try_compile "$LINENO"; then : 8612 xorg_cv_cc_flag_unknown_warning_option=yes 8613else 8614 xorg_cv_cc_flag_unknown_warning_option=no 8615fi 8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8617fi 8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8621 CFLAGS="$xorg_testset_save_CFLAGS" 8622fi 8623 8624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627 fi 8628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8632 $as_echo_n "(cached) " >&6 8633else 8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8635/* end confdefs.h. */ 8636int i; 8637_ACEOF 8638if ac_fn_c_try_compile "$LINENO"; then : 8639 xorg_cv_cc_flag_unused_command_line_argument=yes 8640else 8641 xorg_cv_cc_flag_unused_command_line_argument=no 8642fi 8643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8644fi 8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8648 CFLAGS="$xorg_testset_save_CFLAGS" 8649fi 8650 8651found="no" 8652 8653 if test $found = "no" ; then 8654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8656 fi 8657 8658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8660 fi 8661 8662 CFLAGS="$CFLAGS -Wnonnull" 8663 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8665$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8666 cacheid=xorg_cv_cc_flag__Wnonnull 8667 if eval \${$cacheid+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673int 8674main () 8675{ 8676 8677 ; 8678 return 0; 8679} 8680_ACEOF 8681if ac_fn_c_try_link "$LINENO"; then : 8682 eval $cacheid=yes 8683else 8684 eval $cacheid=no 8685fi 8686rm -f core conftest.err conftest.$ac_objext \ 8687 conftest$ac_exeext conftest.$ac_ext 8688fi 8689 8690 8691 CFLAGS="$xorg_testset_save_CFLAGS" 8692 8693 eval supported=\$$cacheid 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8695$as_echo "$supported" >&6; } 8696 if test "$supported" = "yes" ; then 8697 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8698 found="yes" 8699 fi 8700 fi 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716xorg_testset_save_CFLAGS="$CFLAGS" 8717 8718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8723 $as_echo_n "(cached) " >&6 8724else 8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8726/* end confdefs.h. */ 8727int i; 8728_ACEOF 8729if ac_fn_c_try_compile "$LINENO"; then : 8730 xorg_cv_cc_flag_unknown_warning_option=yes 8731else 8732 xorg_cv_cc_flag_unknown_warning_option=no 8733fi 8734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8735fi 8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8739 CFLAGS="$xorg_testset_save_CFLAGS" 8740fi 8741 8742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8745 fi 8746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8750 $as_echo_n "(cached) " >&6 8751else 8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8753/* end confdefs.h. */ 8754int i; 8755_ACEOF 8756if ac_fn_c_try_compile "$LINENO"; then : 8757 xorg_cv_cc_flag_unused_command_line_argument=yes 8758else 8759 xorg_cv_cc_flag_unused_command_line_argument=no 8760fi 8761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8762fi 8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8766 CFLAGS="$xorg_testset_save_CFLAGS" 8767fi 8768 8769found="no" 8770 8771 if test $found = "no" ; then 8772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8774 fi 8775 8776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8778 fi 8779 8780 CFLAGS="$CFLAGS -Winit-self" 8781 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8783$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8784 cacheid=xorg_cv_cc_flag__Winit_self 8785 if eval \${$cacheid+:} false; then : 8786 $as_echo_n "(cached) " >&6 8787else 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790int i; 8791int 8792main () 8793{ 8794 8795 ; 8796 return 0; 8797} 8798_ACEOF 8799if ac_fn_c_try_link "$LINENO"; then : 8800 eval $cacheid=yes 8801else 8802 eval $cacheid=no 8803fi 8804rm -f core conftest.err conftest.$ac_objext \ 8805 conftest$ac_exeext conftest.$ac_ext 8806fi 8807 8808 8809 CFLAGS="$xorg_testset_save_CFLAGS" 8810 8811 eval supported=\$$cacheid 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8813$as_echo "$supported" >&6; } 8814 if test "$supported" = "yes" ; then 8815 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8816 found="yes" 8817 fi 8818 fi 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834xorg_testset_save_CFLAGS="$CFLAGS" 8835 8836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8840if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8841 $as_echo_n "(cached) " >&6 8842else 8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8844/* end confdefs.h. */ 8845int i; 8846_ACEOF 8847if ac_fn_c_try_compile "$LINENO"; then : 8848 xorg_cv_cc_flag_unknown_warning_option=yes 8849else 8850 xorg_cv_cc_flag_unknown_warning_option=no 8851fi 8852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8853fi 8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8855$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8857 CFLAGS="$xorg_testset_save_CFLAGS" 8858fi 8859 8860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8863 fi 8864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8866$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8867if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869else 8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871/* end confdefs.h. */ 8872int i; 8873_ACEOF 8874if ac_fn_c_try_compile "$LINENO"; then : 8875 xorg_cv_cc_flag_unused_command_line_argument=yes 8876else 8877 xorg_cv_cc_flag_unused_command_line_argument=no 8878fi 8879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8880fi 8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8882$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8884 CFLAGS="$xorg_testset_save_CFLAGS" 8885fi 8886 8887found="no" 8888 8889 if test $found = "no" ; then 8890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8892 fi 8893 8894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8896 fi 8897 8898 CFLAGS="$CFLAGS -Wmain" 8899 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8901$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8902 cacheid=xorg_cv_cc_flag__Wmain 8903 if eval \${$cacheid+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905else 8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8907/* end confdefs.h. */ 8908int i; 8909int 8910main () 8911{ 8912 8913 ; 8914 return 0; 8915} 8916_ACEOF 8917if ac_fn_c_try_link "$LINENO"; then : 8918 eval $cacheid=yes 8919else 8920 eval $cacheid=no 8921fi 8922rm -f core conftest.err conftest.$ac_objext \ 8923 conftest$ac_exeext conftest.$ac_ext 8924fi 8925 8926 8927 CFLAGS="$xorg_testset_save_CFLAGS" 8928 8929 eval supported=\$$cacheid 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8931$as_echo "$supported" >&6; } 8932 if test "$supported" = "yes" ; then 8933 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8934 found="yes" 8935 fi 8936 fi 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952xorg_testset_save_CFLAGS="$CFLAGS" 8953 8954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8959 $as_echo_n "(cached) " >&6 8960else 8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962/* end confdefs.h. */ 8963int i; 8964_ACEOF 8965if ac_fn_c_try_compile "$LINENO"; then : 8966 xorg_cv_cc_flag_unknown_warning_option=yes 8967else 8968 xorg_cv_cc_flag_unknown_warning_option=no 8969fi 8970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8971fi 8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8975 CFLAGS="$xorg_testset_save_CFLAGS" 8976fi 8977 8978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8981 fi 8982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8986 $as_echo_n "(cached) " >&6 8987else 8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990int i; 8991_ACEOF 8992if ac_fn_c_try_compile "$LINENO"; then : 8993 xorg_cv_cc_flag_unused_command_line_argument=yes 8994else 8995 xorg_cv_cc_flag_unused_command_line_argument=no 8996fi 8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8998fi 8999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9002 CFLAGS="$xorg_testset_save_CFLAGS" 9003fi 9004 9005found="no" 9006 9007 if test $found = "no" ; then 9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 fi 9011 9012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9014 fi 9015 9016 CFLAGS="$CFLAGS -Wmissing-braces" 9017 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9019$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9020 cacheid=xorg_cv_cc_flag__Wmissing_braces 9021 if eval \${$cacheid+:} false; then : 9022 $as_echo_n "(cached) " >&6 9023else 9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9025/* end confdefs.h. */ 9026int i; 9027int 9028main () 9029{ 9030 9031 ; 9032 return 0; 9033} 9034_ACEOF 9035if ac_fn_c_try_link "$LINENO"; then : 9036 eval $cacheid=yes 9037else 9038 eval $cacheid=no 9039fi 9040rm -f core conftest.err conftest.$ac_objext \ 9041 conftest$ac_exeext conftest.$ac_ext 9042fi 9043 9044 9045 CFLAGS="$xorg_testset_save_CFLAGS" 9046 9047 eval supported=\$$cacheid 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9049$as_echo "$supported" >&6; } 9050 if test "$supported" = "yes" ; then 9051 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9052 found="yes" 9053 fi 9054 fi 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070xorg_testset_save_CFLAGS="$CFLAGS" 9071 9072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9077 $as_echo_n "(cached) " >&6 9078else 9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9080/* end confdefs.h. */ 9081int i; 9082_ACEOF 9083if ac_fn_c_try_compile "$LINENO"; then : 9084 xorg_cv_cc_flag_unknown_warning_option=yes 9085else 9086 xorg_cv_cc_flag_unknown_warning_option=no 9087fi 9088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9089fi 9090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9093 CFLAGS="$xorg_testset_save_CFLAGS" 9094fi 9095 9096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9099 fi 9100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9104 $as_echo_n "(cached) " >&6 9105else 9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9107/* end confdefs.h. */ 9108int i; 9109_ACEOF 9110if ac_fn_c_try_compile "$LINENO"; then : 9111 xorg_cv_cc_flag_unused_command_line_argument=yes 9112else 9113 xorg_cv_cc_flag_unused_command_line_argument=no 9114fi 9115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9116fi 9117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9120 CFLAGS="$xorg_testset_save_CFLAGS" 9121fi 9122 9123found="no" 9124 9125 if test $found = "no" ; then 9126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9128 fi 9129 9130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9132 fi 9133 9134 CFLAGS="$CFLAGS -Wsequence-point" 9135 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9137$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9138 cacheid=xorg_cv_cc_flag__Wsequence_point 9139 if eval \${$cacheid+:} false; then : 9140 $as_echo_n "(cached) " >&6 9141else 9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9143/* end confdefs.h. */ 9144int i; 9145int 9146main () 9147{ 9148 9149 ; 9150 return 0; 9151} 9152_ACEOF 9153if ac_fn_c_try_link "$LINENO"; then : 9154 eval $cacheid=yes 9155else 9156 eval $cacheid=no 9157fi 9158rm -f core conftest.err conftest.$ac_objext \ 9159 conftest$ac_exeext conftest.$ac_ext 9160fi 9161 9162 9163 CFLAGS="$xorg_testset_save_CFLAGS" 9164 9165 eval supported=\$$cacheid 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9167$as_echo "$supported" >&6; } 9168 if test "$supported" = "yes" ; then 9169 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9170 found="yes" 9171 fi 9172 fi 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188xorg_testset_save_CFLAGS="$CFLAGS" 9189 9190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9195 $as_echo_n "(cached) " >&6 9196else 9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9198/* end confdefs.h. */ 9199int i; 9200_ACEOF 9201if ac_fn_c_try_compile "$LINENO"; then : 9202 xorg_cv_cc_flag_unknown_warning_option=yes 9203else 9204 xorg_cv_cc_flag_unknown_warning_option=no 9205fi 9206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9207fi 9208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9211 CFLAGS="$xorg_testset_save_CFLAGS" 9212fi 9213 9214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9217 fi 9218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9222 $as_echo_n "(cached) " >&6 9223else 9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225/* end confdefs.h. */ 9226int i; 9227_ACEOF 9228if ac_fn_c_try_compile "$LINENO"; then : 9229 xorg_cv_cc_flag_unused_command_line_argument=yes 9230else 9231 xorg_cv_cc_flag_unused_command_line_argument=no 9232fi 9233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9234fi 9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9238 CFLAGS="$xorg_testset_save_CFLAGS" 9239fi 9240 9241found="no" 9242 9243 if test $found = "no" ; then 9244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9246 fi 9247 9248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9250 fi 9251 9252 CFLAGS="$CFLAGS -Wreturn-type" 9253 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9255$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9256 cacheid=xorg_cv_cc_flag__Wreturn_type 9257 if eval \${$cacheid+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9261/* end confdefs.h. */ 9262int i; 9263int 9264main () 9265{ 9266 9267 ; 9268 return 0; 9269} 9270_ACEOF 9271if ac_fn_c_try_link "$LINENO"; then : 9272 eval $cacheid=yes 9273else 9274 eval $cacheid=no 9275fi 9276rm -f core conftest.err conftest.$ac_objext \ 9277 conftest$ac_exeext conftest.$ac_ext 9278fi 9279 9280 9281 CFLAGS="$xorg_testset_save_CFLAGS" 9282 9283 eval supported=\$$cacheid 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9285$as_echo "$supported" >&6; } 9286 if test "$supported" = "yes" ; then 9287 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9288 found="yes" 9289 fi 9290 fi 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306xorg_testset_save_CFLAGS="$CFLAGS" 9307 9308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316/* end confdefs.h. */ 9317int i; 9318_ACEOF 9319if ac_fn_c_try_compile "$LINENO"; then : 9320 xorg_cv_cc_flag_unknown_warning_option=yes 9321else 9322 xorg_cv_cc_flag_unknown_warning_option=no 9323fi 9324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9325fi 9326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9329 CFLAGS="$xorg_testset_save_CFLAGS" 9330fi 9331 9332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 fi 9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9340 $as_echo_n "(cached) " >&6 9341else 9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343/* end confdefs.h. */ 9344int i; 9345_ACEOF 9346if ac_fn_c_try_compile "$LINENO"; then : 9347 xorg_cv_cc_flag_unused_command_line_argument=yes 9348else 9349 xorg_cv_cc_flag_unused_command_line_argument=no 9350fi 9351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9352fi 9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9356 CFLAGS="$xorg_testset_save_CFLAGS" 9357fi 9358 9359found="no" 9360 9361 if test $found = "no" ; then 9362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9364 fi 9365 9366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9368 fi 9369 9370 CFLAGS="$CFLAGS -Wtrigraphs" 9371 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9373$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9374 cacheid=xorg_cv_cc_flag__Wtrigraphs 9375 if eval \${$cacheid+:} false; then : 9376 $as_echo_n "(cached) " >&6 9377else 9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379/* end confdefs.h. */ 9380int i; 9381int 9382main () 9383{ 9384 9385 ; 9386 return 0; 9387} 9388_ACEOF 9389if ac_fn_c_try_link "$LINENO"; then : 9390 eval $cacheid=yes 9391else 9392 eval $cacheid=no 9393fi 9394rm -f core conftest.err conftest.$ac_objext \ 9395 conftest$ac_exeext conftest.$ac_ext 9396fi 9397 9398 9399 CFLAGS="$xorg_testset_save_CFLAGS" 9400 9401 eval supported=\$$cacheid 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9403$as_echo "$supported" >&6; } 9404 if test "$supported" = "yes" ; then 9405 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9406 found="yes" 9407 fi 9408 fi 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424xorg_testset_save_CFLAGS="$CFLAGS" 9425 9426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9431 $as_echo_n "(cached) " >&6 9432else 9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9434/* end confdefs.h. */ 9435int i; 9436_ACEOF 9437if ac_fn_c_try_compile "$LINENO"; then : 9438 xorg_cv_cc_flag_unknown_warning_option=yes 9439else 9440 xorg_cv_cc_flag_unknown_warning_option=no 9441fi 9442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9443fi 9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9447 CFLAGS="$xorg_testset_save_CFLAGS" 9448fi 9449 9450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9453 fi 9454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9458 $as_echo_n "(cached) " >&6 9459else 9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9461/* end confdefs.h. */ 9462int i; 9463_ACEOF 9464if ac_fn_c_try_compile "$LINENO"; then : 9465 xorg_cv_cc_flag_unused_command_line_argument=yes 9466else 9467 xorg_cv_cc_flag_unused_command_line_argument=no 9468fi 9469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9470fi 9471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9474 CFLAGS="$xorg_testset_save_CFLAGS" 9475fi 9476 9477found="no" 9478 9479 if test $found = "no" ; then 9480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9482 fi 9483 9484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9486 fi 9487 9488 CFLAGS="$CFLAGS -Warray-bounds" 9489 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9491$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9492 cacheid=xorg_cv_cc_flag__Warray_bounds 9493 if eval \${$cacheid+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495else 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498int i; 9499int 9500main () 9501{ 9502 9503 ; 9504 return 0; 9505} 9506_ACEOF 9507if ac_fn_c_try_link "$LINENO"; then : 9508 eval $cacheid=yes 9509else 9510 eval $cacheid=no 9511fi 9512rm -f core conftest.err conftest.$ac_objext \ 9513 conftest$ac_exeext conftest.$ac_ext 9514fi 9515 9516 9517 CFLAGS="$xorg_testset_save_CFLAGS" 9518 9519 eval supported=\$$cacheid 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9521$as_echo "$supported" >&6; } 9522 if test "$supported" = "yes" ; then 9523 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9524 found="yes" 9525 fi 9526 fi 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542xorg_testset_save_CFLAGS="$CFLAGS" 9543 9544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9549 $as_echo_n "(cached) " >&6 9550else 9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9552/* end confdefs.h. */ 9553int i; 9554_ACEOF 9555if ac_fn_c_try_compile "$LINENO"; then : 9556 xorg_cv_cc_flag_unknown_warning_option=yes 9557else 9558 xorg_cv_cc_flag_unknown_warning_option=no 9559fi 9560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9561fi 9562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9565 CFLAGS="$xorg_testset_save_CFLAGS" 9566fi 9567 9568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 fi 9572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9576 $as_echo_n "(cached) " >&6 9577else 9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579/* end confdefs.h. */ 9580int i; 9581_ACEOF 9582if ac_fn_c_try_compile "$LINENO"; then : 9583 xorg_cv_cc_flag_unused_command_line_argument=yes 9584else 9585 xorg_cv_cc_flag_unused_command_line_argument=no 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9588fi 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9592 CFLAGS="$xorg_testset_save_CFLAGS" 9593fi 9594 9595found="no" 9596 9597 if test $found = "no" ; then 9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9600 fi 9601 9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9604 fi 9605 9606 CFLAGS="$CFLAGS -Wwrite-strings" 9607 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9609$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9610 cacheid=xorg_cv_cc_flag__Wwrite_strings 9611 if eval \${$cacheid+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9615/* end confdefs.h. */ 9616int i; 9617int 9618main () 9619{ 9620 9621 ; 9622 return 0; 9623} 9624_ACEOF 9625if ac_fn_c_try_link "$LINENO"; then : 9626 eval $cacheid=yes 9627else 9628 eval $cacheid=no 9629fi 9630rm -f core conftest.err conftest.$ac_objext \ 9631 conftest$ac_exeext conftest.$ac_ext 9632fi 9633 9634 9635 CFLAGS="$xorg_testset_save_CFLAGS" 9636 9637 eval supported=\$$cacheid 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9639$as_echo "$supported" >&6; } 9640 if test "$supported" = "yes" ; then 9641 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9642 found="yes" 9643 fi 9644 fi 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660xorg_testset_save_CFLAGS="$CFLAGS" 9661 9662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9667 $as_echo_n "(cached) " >&6 9668else 9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9670/* end confdefs.h. */ 9671int i; 9672_ACEOF 9673if ac_fn_c_try_compile "$LINENO"; then : 9674 xorg_cv_cc_flag_unknown_warning_option=yes 9675else 9676 xorg_cv_cc_flag_unknown_warning_option=no 9677fi 9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9679fi 9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9683 CFLAGS="$xorg_testset_save_CFLAGS" 9684fi 9685 9686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9689 fi 9690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9694 $as_echo_n "(cached) " >&6 9695else 9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9697/* end confdefs.h. */ 9698int i; 9699_ACEOF 9700if ac_fn_c_try_compile "$LINENO"; then : 9701 xorg_cv_cc_flag_unused_command_line_argument=yes 9702else 9703 xorg_cv_cc_flag_unused_command_line_argument=no 9704fi 9705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9706fi 9707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9710 CFLAGS="$xorg_testset_save_CFLAGS" 9711fi 9712 9713found="no" 9714 9715 if test $found = "no" ; then 9716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9718 fi 9719 9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9722 fi 9723 9724 CFLAGS="$CFLAGS -Waddress" 9725 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9727$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9728 cacheid=xorg_cv_cc_flag__Waddress 9729 if eval \${$cacheid+:} false; then : 9730 $as_echo_n "(cached) " >&6 9731else 9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734int i; 9735int 9736main () 9737{ 9738 9739 ; 9740 return 0; 9741} 9742_ACEOF 9743if ac_fn_c_try_link "$LINENO"; then : 9744 eval $cacheid=yes 9745else 9746 eval $cacheid=no 9747fi 9748rm -f core conftest.err conftest.$ac_objext \ 9749 conftest$ac_exeext conftest.$ac_ext 9750fi 9751 9752 9753 CFLAGS="$xorg_testset_save_CFLAGS" 9754 9755 eval supported=\$$cacheid 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9757$as_echo "$supported" >&6; } 9758 if test "$supported" = "yes" ; then 9759 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9760 found="yes" 9761 fi 9762 fi 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778xorg_testset_save_CFLAGS="$CFLAGS" 9779 9780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9785 $as_echo_n "(cached) " >&6 9786else 9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9788/* end confdefs.h. */ 9789int i; 9790_ACEOF 9791if ac_fn_c_try_compile "$LINENO"; then : 9792 xorg_cv_cc_flag_unknown_warning_option=yes 9793else 9794 xorg_cv_cc_flag_unknown_warning_option=no 9795fi 9796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9797fi 9798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802fi 9803 9804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9807 fi 9808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9815/* end confdefs.h. */ 9816int i; 9817_ACEOF 9818if ac_fn_c_try_compile "$LINENO"; then : 9819 xorg_cv_cc_flag_unused_command_line_argument=yes 9820else 9821 xorg_cv_cc_flag_unused_command_line_argument=no 9822fi 9823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9824fi 9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9828 CFLAGS="$xorg_testset_save_CFLAGS" 9829fi 9830 9831found="no" 9832 9833 if test $found = "no" ; then 9834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9836 fi 9837 9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9840 fi 9841 9842 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9843 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9845$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9846 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9847 if eval \${$cacheid+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852int i; 9853int 9854main () 9855{ 9856 9857 ; 9858 return 0; 9859} 9860_ACEOF 9861if ac_fn_c_try_link "$LINENO"; then : 9862 eval $cacheid=yes 9863else 9864 eval $cacheid=no 9865fi 9866rm -f core conftest.err conftest.$ac_objext \ 9867 conftest$ac_exeext conftest.$ac_ext 9868fi 9869 9870 9871 CFLAGS="$xorg_testset_save_CFLAGS" 9872 9873 eval supported=\$$cacheid 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9875$as_echo "$supported" >&6; } 9876 if test "$supported" = "yes" ; then 9877 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9878 found="yes" 9879 fi 9880 fi 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896xorg_testset_save_CFLAGS="$CFLAGS" 9897 9898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9906/* end confdefs.h. */ 9907int i; 9908_ACEOF 9909if ac_fn_c_try_compile "$LINENO"; then : 9910 xorg_cv_cc_flag_unknown_warning_option=yes 9911else 9912 xorg_cv_cc_flag_unknown_warning_option=no 9913fi 9914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9915fi 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9919 CFLAGS="$xorg_testset_save_CFLAGS" 9920fi 9921 9922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9925 fi 9926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9930 $as_echo_n "(cached) " >&6 9931else 9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9933/* end confdefs.h. */ 9934int i; 9935_ACEOF 9936if ac_fn_c_try_compile "$LINENO"; then : 9937 xorg_cv_cc_flag_unused_command_line_argument=yes 9938else 9939 xorg_cv_cc_flag_unused_command_line_argument=no 9940fi 9941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9942fi 9943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9946 CFLAGS="$xorg_testset_save_CFLAGS" 9947fi 9948 9949found="no" 9950 9951 if test $found = "no" ; then 9952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9954 fi 9955 9956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9958 fi 9959 9960 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9961 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9963$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9964 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9965 if eval \${$cacheid+:} false; then : 9966 $as_echo_n "(cached) " >&6 9967else 9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9969/* end confdefs.h. */ 9970int i; 9971int 9972main () 9973{ 9974 9975 ; 9976 return 0; 9977} 9978_ACEOF 9979if ac_fn_c_try_link "$LINENO"; then : 9980 eval $cacheid=yes 9981else 9982 eval $cacheid=no 9983fi 9984rm -f core conftest.err conftest.$ac_objext \ 9985 conftest$ac_exeext conftest.$ac_ext 9986fi 9987 9988 9989 CFLAGS="$xorg_testset_save_CFLAGS" 9990 9991 eval supported=\$$cacheid 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9993$as_echo "$supported" >&6; } 9994 if test "$supported" = "yes" ; then 9995 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9996 found="yes" 9997 fi 9998 fi 9999 10000 10001fi 10002 10003 10004 10005 10006 10007 10008 10009 CWARNFLAGS="$BASE_CFLAGS" 10010 if test "x$GCC" = xyes ; then 10011 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10012 fi 10013 10014 10015 10016 10017 10018 10019 10020 10021# Check whether --enable-strict-compilation was given. 10022if test "${enable_strict_compilation+set}" = set; then : 10023 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10024else 10025 STRICT_COMPILE=no 10026fi 10027 10028 10029 10030 10031 10032 10033STRICT_CFLAGS="" 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047xorg_testset_save_CFLAGS="$CFLAGS" 10048 10049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055else 10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10057/* end confdefs.h. */ 10058int i; 10059_ACEOF 10060if ac_fn_c_try_compile "$LINENO"; then : 10061 xorg_cv_cc_flag_unknown_warning_option=yes 10062else 10063 xorg_cv_cc_flag_unknown_warning_option=no 10064fi 10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10066fi 10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10070 CFLAGS="$xorg_testset_save_CFLAGS" 10071fi 10072 10073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10076 fi 10077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10081 $as_echo_n "(cached) " >&6 10082else 10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10084/* end confdefs.h. */ 10085int i; 10086_ACEOF 10087if ac_fn_c_try_compile "$LINENO"; then : 10088 xorg_cv_cc_flag_unused_command_line_argument=yes 10089else 10090 xorg_cv_cc_flag_unused_command_line_argument=no 10091fi 10092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10093fi 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10097 CFLAGS="$xorg_testset_save_CFLAGS" 10098fi 10099 10100found="no" 10101 10102 if test $found = "no" ; then 10103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105 fi 10106 10107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10109 fi 10110 10111 CFLAGS="$CFLAGS -pedantic" 10112 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10114$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10115 cacheid=xorg_cv_cc_flag__pedantic 10116 if eval \${$cacheid+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120/* end confdefs.h. */ 10121int i; 10122int 10123main () 10124{ 10125 10126 ; 10127 return 0; 10128} 10129_ACEOF 10130if ac_fn_c_try_link "$LINENO"; then : 10131 eval $cacheid=yes 10132else 10133 eval $cacheid=no 10134fi 10135rm -f core conftest.err conftest.$ac_objext \ 10136 conftest$ac_exeext conftest.$ac_ext 10137fi 10138 10139 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141 10142 eval supported=\$$cacheid 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10144$as_echo "$supported" >&6; } 10145 if test "$supported" = "yes" ; then 10146 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10147 found="yes" 10148 fi 10149 fi 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165xorg_testset_save_CFLAGS="$CFLAGS" 10166 10167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10172 $as_echo_n "(cached) " >&6 10173else 10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10175/* end confdefs.h. */ 10176int i; 10177_ACEOF 10178if ac_fn_c_try_compile "$LINENO"; then : 10179 xorg_cv_cc_flag_unknown_warning_option=yes 10180else 10181 xorg_cv_cc_flag_unknown_warning_option=no 10182fi 10183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10184fi 10185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10188 CFLAGS="$xorg_testset_save_CFLAGS" 10189fi 10190 10191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10194 fi 10195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10199 $as_echo_n "(cached) " >&6 10200else 10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10202/* end confdefs.h. */ 10203int i; 10204_ACEOF 10205if ac_fn_c_try_compile "$LINENO"; then : 10206 xorg_cv_cc_flag_unused_command_line_argument=yes 10207else 10208 xorg_cv_cc_flag_unused_command_line_argument=no 10209fi 10210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10211fi 10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10215 CFLAGS="$xorg_testset_save_CFLAGS" 10216fi 10217 10218found="no" 10219 10220 if test $found = "no" ; then 10221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10223 fi 10224 10225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10227 fi 10228 10229 CFLAGS="$CFLAGS -Werror" 10230 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10232$as_echo_n "checking if $CC supports -Werror... " >&6; } 10233 cacheid=xorg_cv_cc_flag__Werror 10234 if eval \${$cacheid+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10238/* end confdefs.h. */ 10239int i; 10240int 10241main () 10242{ 10243 10244 ; 10245 return 0; 10246} 10247_ACEOF 10248if ac_fn_c_try_link "$LINENO"; then : 10249 eval $cacheid=yes 10250else 10251 eval $cacheid=no 10252fi 10253rm -f core conftest.err conftest.$ac_objext \ 10254 conftest$ac_exeext conftest.$ac_ext 10255fi 10256 10257 10258 CFLAGS="$xorg_testset_save_CFLAGS" 10259 10260 eval supported=\$$cacheid 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10262$as_echo "$supported" >&6; } 10263 if test "$supported" = "yes" ; then 10264 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10265 found="yes" 10266 fi 10267 fi 10268 10269 if test $found = "no" ; then 10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10272 fi 10273 10274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10276 fi 10277 10278 CFLAGS="$CFLAGS -errwarn" 10279 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10281$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10282 cacheid=xorg_cv_cc_flag__errwarn 10283 if eval \${$cacheid+:} false; then : 10284 $as_echo_n "(cached) " >&6 10285else 10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288int i; 10289int 10290main () 10291{ 10292 10293 ; 10294 return 0; 10295} 10296_ACEOF 10297if ac_fn_c_try_link "$LINENO"; then : 10298 eval $cacheid=yes 10299else 10300 eval $cacheid=no 10301fi 10302rm -f core conftest.err conftest.$ac_objext \ 10303 conftest$ac_exeext conftest.$ac_ext 10304fi 10305 10306 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308 10309 eval supported=\$$cacheid 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10311$as_echo "$supported" >&6; } 10312 if test "$supported" = "yes" ; then 10313 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10314 found="yes" 10315 fi 10316 fi 10317 10318 10319 10320# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10321# activate it with -Werror, so we add it here explicitly. 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335xorg_testset_save_CFLAGS="$CFLAGS" 10336 10337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10342 $as_echo_n "(cached) " >&6 10343else 10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10345/* end confdefs.h. */ 10346int i; 10347_ACEOF 10348if ac_fn_c_try_compile "$LINENO"; then : 10349 xorg_cv_cc_flag_unknown_warning_option=yes 10350else 10351 xorg_cv_cc_flag_unknown_warning_option=no 10352fi 10353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10354fi 10355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10358 CFLAGS="$xorg_testset_save_CFLAGS" 10359fi 10360 10361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10364 fi 10365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10369 $as_echo_n "(cached) " >&6 10370else 10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10372/* end confdefs.h. */ 10373int i; 10374_ACEOF 10375if ac_fn_c_try_compile "$LINENO"; then : 10376 xorg_cv_cc_flag_unused_command_line_argument=yes 10377else 10378 xorg_cv_cc_flag_unused_command_line_argument=no 10379fi 10380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10381fi 10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386fi 10387 10388found="no" 10389 10390 if test $found = "no" ; then 10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10393 fi 10394 10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10397 fi 10398 10399 CFLAGS="$CFLAGS -Werror=attributes" 10400 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10402$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10403 cacheid=xorg_cv_cc_flag__Werror_attributes 10404 if eval \${$cacheid+:} false; then : 10405 $as_echo_n "(cached) " >&6 10406else 10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10408/* end confdefs.h. */ 10409int i; 10410int 10411main () 10412{ 10413 10414 ; 10415 return 0; 10416} 10417_ACEOF 10418if ac_fn_c_try_link "$LINENO"; then : 10419 eval $cacheid=yes 10420else 10421 eval $cacheid=no 10422fi 10423rm -f core conftest.err conftest.$ac_objext \ 10424 conftest$ac_exeext conftest.$ac_ext 10425fi 10426 10427 10428 CFLAGS="$xorg_testset_save_CFLAGS" 10429 10430 eval supported=\$$cacheid 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10432$as_echo "$supported" >&6; } 10433 if test "$supported" = "yes" ; then 10434 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10435 found="yes" 10436 fi 10437 fi 10438 10439 10440 10441if test "x$STRICT_COMPILE" = "xyes"; then 10442 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10443 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10444fi 10445 10446 10447 10448 10449 10450 10451cat >>confdefs.h <<_ACEOF 10452#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10453_ACEOF 10454 10455 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10456 if test "x$PVM" = "x"; then 10457 PVM="0" 10458 fi 10459 10460cat >>confdefs.h <<_ACEOF 10461#define PACKAGE_VERSION_MINOR $PVM 10462_ACEOF 10463 10464 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10465 if test "x$PVP" = "x"; then 10466 PVP="0" 10467 fi 10468 10469cat >>confdefs.h <<_ACEOF 10470#define PACKAGE_VERSION_PATCHLEVEL $PVP 10471_ACEOF 10472 10473 10474 10475CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10476mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10477|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10478touch \$(top_srcdir)/ChangeLog; \ 10479echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10480 10481 10482 10483 10484macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10485INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10486mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10487|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10488touch \$(top_srcdir)/INSTALL; \ 10489echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10490 10491 10492 10493 10494 10495 10496case $host_os in 10497 solaris*) 10498 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10499 # check for a man page file found in later versions that use 10500 # traditional section numbers instead 10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10502$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 10503if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 10504 $as_echo_n "(cached) " >&6 10505else 10506 test "$cross_compiling" = yes && 10507 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10508if test -r "/usr/share/man/man7/attributes.7"; then 10509 ac_cv_file__usr_share_man_man7_attributes_7=yes 10510else 10511 ac_cv_file__usr_share_man_man7_attributes_7=no 10512fi 10513fi 10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10515$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10516if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 10517 SYSV_MAN_SECTIONS=false 10518else 10519 SYSV_MAN_SECTIONS=true 10520fi 10521 10522 ;; 10523 *) SYSV_MAN_SECTIONS=false ;; 10524esac 10525 10526if test x$APP_MAN_SUFFIX = x ; then 10527 APP_MAN_SUFFIX=1 10528fi 10529if test x$APP_MAN_DIR = x ; then 10530 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10531fi 10532 10533if test x$LIB_MAN_SUFFIX = x ; then 10534 LIB_MAN_SUFFIX=3 10535fi 10536if test x$LIB_MAN_DIR = x ; then 10537 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10538fi 10539 10540if test x$FILE_MAN_SUFFIX = x ; then 10541 case $SYSV_MAN_SECTIONS in 10542 true) FILE_MAN_SUFFIX=4 ;; 10543 *) FILE_MAN_SUFFIX=5 ;; 10544 esac 10545fi 10546if test x$FILE_MAN_DIR = x ; then 10547 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10548fi 10549 10550if test x$MISC_MAN_SUFFIX = x ; then 10551 case $SYSV_MAN_SECTIONS in 10552 true) MISC_MAN_SUFFIX=5 ;; 10553 *) MISC_MAN_SUFFIX=7 ;; 10554 esac 10555fi 10556if test x$MISC_MAN_DIR = x ; then 10557 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10558fi 10559 10560if test x$DRIVER_MAN_SUFFIX = x ; then 10561 case $SYSV_MAN_SECTIONS in 10562 true) DRIVER_MAN_SUFFIX=7 ;; 10563 *) DRIVER_MAN_SUFFIX=4 ;; 10564 esac 10565fi 10566if test x$DRIVER_MAN_DIR = x ; then 10567 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10568fi 10569 10570if test x$ADMIN_MAN_SUFFIX = x ; then 10571 case $SYSV_MAN_SECTIONS in 10572 true) ADMIN_MAN_SUFFIX=1m ;; 10573 *) ADMIN_MAN_SUFFIX=8 ;; 10574 esac 10575fi 10576if test x$ADMIN_MAN_DIR = x ; then 10577 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10578fi 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594XORG_MAN_PAGE="X Version 11" 10595 10596MAN_SUBSTS="\ 10597 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10598 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10599 -e 's|__xservername__|Xorg|g' \ 10600 -e 's|__xconfigfile__|xorg.conf|g' \ 10601 -e 's|__projectroot__|\$(prefix)|g' \ 10602 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10603 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10604 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10605 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10606 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10607 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10608 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10609 10610 10611 10612# Check whether --enable-silent-rules was given. 10613if test "${enable_silent_rules+set}" = set; then : 10614 enableval=$enable_silent_rules; 10615fi 10616 10617case $enable_silent_rules in # ((( 10618 yes) AM_DEFAULT_VERBOSITY=0;; 10619 no) AM_DEFAULT_VERBOSITY=1;; 10620 *) AM_DEFAULT_VERBOSITY=0;; 10621esac 10622am_make=${MAKE-make} 10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10624$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10625if ${am_cv_make_support_nested_variables+:} false; then : 10626 $as_echo_n "(cached) " >&6 10627else 10628 if $as_echo 'TRUE=$(BAR$(V)) 10629BAR0=false 10630BAR1=true 10631V=1 10632am__doit: 10633 @$(TRUE) 10634.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10635 am_cv_make_support_nested_variables=yes 10636else 10637 am_cv_make_support_nested_variables=no 10638fi 10639fi 10640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10641$as_echo "$am_cv_make_support_nested_variables" >&6; } 10642if test $am_cv_make_support_nested_variables = yes; then 10643 AM_V='$(V)' 10644 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10645else 10646 AM_V=$AM_DEFAULT_VERBOSITY 10647 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10648fi 10649AM_BACKSLASH='\' 10650 10651 10652 10653# Obtain compiler/linker options for dependencies 10654 10655pkg_failed=no 10656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT" >&5 10657$as_echo_n "checking for XINPUT... " >&6; } 10658 10659if test -n "$XINPUT_CFLAGS"; then 10660 pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS" 10661 elif test -n "$PKG_CONFIG"; then 10662 if test -n "$PKG_CONFIG" && \ 10663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5 10664 ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5 10665 ac_status=$? 10666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10667 test $ac_status = 0; }; then 10668 pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null` 10669 test "x$?" != "x0" && pkg_failed=yes 10670else 10671 pkg_failed=yes 10672fi 10673 else 10674 pkg_failed=untried 10675fi 10676if test -n "$XINPUT_LIBS"; then 10677 pkg_cv_XINPUT_LIBS="$XINPUT_LIBS" 10678 elif test -n "$PKG_CONFIG"; then 10679 if test -n "$PKG_CONFIG" && \ 10680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama\""; } >&5 10681 ($PKG_CONFIG --exists --print-errors "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama") 2>&5 10682 ac_status=$? 10683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10684 test $ac_status = 0; }; then 10685 pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>/dev/null` 10686 test "x$?" != "x0" && pkg_failed=yes 10687else 10688 pkg_failed=yes 10689fi 10690 else 10691 pkg_failed=untried 10692fi 10693 10694 10695 10696if test $pkg_failed = yes; then 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10698$as_echo "no" >&6; } 10699 10700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10701 _pkg_short_errors_supported=yes 10702else 10703 _pkg_short_errors_supported=no 10704fi 10705 if test $_pkg_short_errors_supported = yes; then 10706 XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1` 10707 else 10708 XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama" 2>&1` 10709 fi 10710 # Put the nasty error message in config.log where it belongs 10711 echo "$XINPUT_PKG_ERRORS" >&5 10712 10713 as_fn_error $? "Package requirements (x11 xext xi >= 1.2 inputproto >= 1.5 xrandr xinerama) were not met: 10714 10715$XINPUT_PKG_ERRORS 10716 10717Consider adjusting the PKG_CONFIG_PATH environment variable if you 10718installed software in a non-standard prefix. 10719 10720Alternatively, you may set the environment variables XINPUT_CFLAGS 10721and XINPUT_LIBS to avoid the need to call pkg-config. 10722See the pkg-config man page for more details." "$LINENO" 5 10723elif test $pkg_failed = untried; then 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10725$as_echo "no" >&6; } 10726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10728as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10729is in your PATH or set the PKG_CONFIG environment variable to the full 10730path to pkg-config. 10731 10732Alternatively, you may set the environment variables XINPUT_CFLAGS 10733and XINPUT_LIBS to avoid the need to call pkg-config. 10734See the pkg-config man page for more details. 10735 10736To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10737See \`config.log' for more details" "$LINENO" 5; } 10738else 10739 XINPUT_CFLAGS=$pkg_cv_XINPUT_CFLAGS 10740 XINPUT_LIBS=$pkg_cv_XINPUT_LIBS 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10742$as_echo "yes" >&6; } 10743 10744fi 10745 10746# XI2 support 10747 10748pkg_failed=no 10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI2" >&5 10750$as_echo_n "checking for XI2... " >&6; } 10751 10752if test -n "$XI2_CFLAGS"; then 10753 pkg_cv_XI2_CFLAGS="$XI2_CFLAGS" 10754 elif test -n "$PKG_CONFIG"; then 10755 if test -n "$PKG_CONFIG" && \ 10756 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5 10757 ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5 10758 ac_status=$? 10759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10760 test $ac_status = 0; }; then 10761 pkg_cv_XI2_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null` 10762 test "x$?" != "x0" && pkg_failed=yes 10763else 10764 pkg_failed=yes 10765fi 10766 else 10767 pkg_failed=untried 10768fi 10769if test -n "$XI2_LIBS"; then 10770 pkg_cv_XI2_LIBS="$XI2_LIBS" 10771 elif test -n "$PKG_CONFIG"; then 10772 if test -n "$PKG_CONFIG" && \ 10773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.2.99.2 inputproto >= 1.9.99.15\""; } >&5 10774 ($PKG_CONFIG --exists --print-errors "xi >= 1.2.99.2 inputproto >= 1.9.99.15") 2>&5 10775 ac_status=$? 10776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10777 test $ac_status = 0; }; then 10778 pkg_cv_XI2_LIBS=`$PKG_CONFIG --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>/dev/null` 10779 test "x$?" != "x0" && pkg_failed=yes 10780else 10781 pkg_failed=yes 10782fi 10783 else 10784 pkg_failed=untried 10785fi 10786 10787 10788 10789if test $pkg_failed = yes; then 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10791$as_echo "no" >&6; } 10792 10793if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10794 _pkg_short_errors_supported=yes 10795else 10796 _pkg_short_errors_supported=no 10797fi 10798 if test $_pkg_short_errors_supported = yes; then 10799 XI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1` 10800 else 10801 XI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.2.99.2 inputproto >= 1.9.99.15" 2>&1` 10802 fi 10803 # Put the nasty error message in config.log where it belongs 10804 echo "$XI2_PKG_ERRORS" >&5 10805 10806 HAVE_XI2="no" 10807elif test $pkg_failed = untried; then 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10809$as_echo "no" >&6; } 10810 HAVE_XI2="no" 10811else 10812 XI2_CFLAGS=$pkg_cv_XI2_CFLAGS 10813 XI2_LIBS=$pkg_cv_XI2_LIBS 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10815$as_echo "yes" >&6; } 10816 HAVE_XI2="yes"; 10817$as_echo "#define HAVE_XI2 1" >>confdefs.h 10818 10819fi; 10820 if test "$HAVE_XI2" = "yes" ; then 10821 HAVE_XI2_TRUE= 10822 HAVE_XI2_FALSE='#' 10823else 10824 HAVE_XI2_TRUE='#' 10825 HAVE_XI2_FALSE= 10826fi 10827 10828 10829 10830# XI2.1 support 10831 10832pkg_failed=no 10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI21" >&5 10834$as_echo_n "checking for XI21... " >&6; } 10835 10836if test -n "$XI21_CFLAGS"; then 10837 pkg_cv_XI21_CFLAGS="$XI21_CFLAGS" 10838 elif test -n "$PKG_CONFIG"; then 10839 if test -n "$PKG_CONFIG" && \ 10840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5 10841 ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5 10842 ac_status=$? 10843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10844 test $ac_status = 0; }; then 10845 pkg_cv_XI21_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null` 10846 test "x$?" != "x0" && pkg_failed=yes 10847else 10848 pkg_failed=yes 10849fi 10850 else 10851 pkg_failed=untried 10852fi 10853if test -n "$XI21_LIBS"; then 10854 pkg_cv_XI21_LIBS="$XI21_LIBS" 10855 elif test -n "$PKG_CONFIG"; then 10856 if test -n "$PKG_CONFIG" && \ 10857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.4.99.1 inputproto >= 2.0.99.1\""; } >&5 10858 ($PKG_CONFIG --exists --print-errors "xi >= 1.4.99.1 inputproto >= 2.0.99.1") 2>&5 10859 ac_status=$? 10860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10861 test $ac_status = 0; }; then 10862 pkg_cv_XI21_LIBS=`$PKG_CONFIG --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>/dev/null` 10863 test "x$?" != "x0" && pkg_failed=yes 10864else 10865 pkg_failed=yes 10866fi 10867 else 10868 pkg_failed=untried 10869fi 10870 10871 10872 10873if test $pkg_failed = yes; then 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10875$as_echo "no" >&6; } 10876 10877if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10878 _pkg_short_errors_supported=yes 10879else 10880 _pkg_short_errors_supported=no 10881fi 10882 if test $_pkg_short_errors_supported = yes; then 10883 XI21_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1` 10884 else 10885 XI21_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.4.99.1 inputproto >= 2.0.99.1" 2>&1` 10886 fi 10887 # Put the nasty error message in config.log where it belongs 10888 echo "$XI21_PKG_ERRORS" >&5 10889 10890 as_fn_error $? "Package requirements (xi >= 1.4.99.1 inputproto >= 2.0.99.1) were not met: 10891 10892$XI21_PKG_ERRORS 10893 10894Consider adjusting the PKG_CONFIG_PATH environment variable if you 10895installed software in a non-standard prefix. 10896 10897Alternatively, you may set the environment variables XI21_CFLAGS 10898and XI21_LIBS to avoid the need to call pkg-config. 10899See the pkg-config man page for more details." "$LINENO" 5 10900elif test $pkg_failed = untried; then 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10902$as_echo "no" >&6; } 10903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10905as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10906is in your PATH or set the PKG_CONFIG environment variable to the full 10907path to pkg-config. 10908 10909Alternatively, you may set the environment variables XI21_CFLAGS 10910and XI21_LIBS to avoid the need to call pkg-config. 10911See the pkg-config man page for more details. 10912 10913To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10914See \`config.log' for more details" "$LINENO" 5; } 10915else 10916 XI21_CFLAGS=$pkg_cv_XI21_CFLAGS 10917 XI21_LIBS=$pkg_cv_XI21_LIBS 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10919$as_echo "yes" >&6; } 10920 10921$as_echo "#define HAVE_XI21 1" >>confdefs.h 10922 10923fi; 10924# XI2.2 support 10925 10926pkg_failed=no 10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI22" >&5 10928$as_echo_n "checking for XI22... " >&6; } 10929 10930if test -n "$XI22_CFLAGS"; then 10931 pkg_cv_XI22_CFLAGS="$XI22_CFLAGS" 10932 elif test -n "$PKG_CONFIG"; then 10933 if test -n "$PKG_CONFIG" && \ 10934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5 10935 ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5 10936 ac_status=$? 10937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10938 test $ac_status = 0; }; then 10939 pkg_cv_XI22_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null` 10940 test "x$?" != "x0" && pkg_failed=yes 10941else 10942 pkg_failed=yes 10943fi 10944 else 10945 pkg_failed=untried 10946fi 10947if test -n "$XI22_LIBS"; then 10948 pkg_cv_XI22_LIBS="$XI22_LIBS" 10949 elif test -n "$PKG_CONFIG"; then 10950 if test -n "$PKG_CONFIG" && \ 10951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.5.99.1 inputproto >= 2.1.99.1\""; } >&5 10952 ($PKG_CONFIG --exists --print-errors "xi >= 1.5.99.1 inputproto >= 2.1.99.1") 2>&5 10953 ac_status=$? 10954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10955 test $ac_status = 0; }; then 10956 pkg_cv_XI22_LIBS=`$PKG_CONFIG --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>/dev/null` 10957 test "x$?" != "x0" && pkg_failed=yes 10958else 10959 pkg_failed=yes 10960fi 10961 else 10962 pkg_failed=untried 10963fi 10964 10965 10966 10967if test $pkg_failed = yes; then 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10969$as_echo "no" >&6; } 10970 10971if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10972 _pkg_short_errors_supported=yes 10973else 10974 _pkg_short_errors_supported=no 10975fi 10976 if test $_pkg_short_errors_supported = yes; then 10977 XI22_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1` 10978 else 10979 XI22_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.5.99.1 inputproto >= 2.1.99.1" 2>&1` 10980 fi 10981 # Put the nasty error message in config.log where it belongs 10982 echo "$XI22_PKG_ERRORS" >&5 10983 10984 as_fn_error $? "Package requirements (xi >= 1.5.99.1 inputproto >= 2.1.99.1) were not met: 10985 10986$XI22_PKG_ERRORS 10987 10988Consider adjusting the PKG_CONFIG_PATH environment variable if you 10989installed software in a non-standard prefix. 10990 10991Alternatively, you may set the environment variables XI22_CFLAGS 10992and XI22_LIBS to avoid the need to call pkg-config. 10993See the pkg-config man page for more details." "$LINENO" 5 10994elif test $pkg_failed = untried; then 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10996$as_echo "no" >&6; } 10997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10999as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11000is in your PATH or set the PKG_CONFIG environment variable to the full 11001path to pkg-config. 11002 11003Alternatively, you may set the environment variables XI22_CFLAGS 11004and XI22_LIBS to avoid the need to call pkg-config. 11005See the pkg-config man page for more details. 11006 11007To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11008See \`config.log' for more details" "$LINENO" 5; } 11009else 11010 XI22_CFLAGS=$pkg_cv_XI22_CFLAGS 11011 XI22_LIBS=$pkg_cv_XI22_LIBS 11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11013$as_echo "yes" >&6; } 11014 11015$as_echo "#define HAVE_XI22 1" >>confdefs.h 11016 11017fi; 11018 11019ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 11020 11021cat >confcache <<\_ACEOF 11022# This file is a shell script that caches the results of configure 11023# tests run on this system so they can be shared between configure 11024# scripts and configure runs, see configure's option --config-cache. 11025# It is not useful on other systems. If it contains results you don't 11026# want to keep, you may remove or edit it. 11027# 11028# config.status only pays attention to the cache file if you give it 11029# the --recheck option to rerun configure. 11030# 11031# `ac_cv_env_foo' variables (set or unset) will be overridden when 11032# loading this file, other *unset* `ac_cv_foo' will be assigned the 11033# following values. 11034 11035_ACEOF 11036 11037# The following way of writing the cache mishandles newlines in values, 11038# but we know of no workaround that is simple, portable, and efficient. 11039# So, we kill variables containing newlines. 11040# Ultrix sh set writes to stderr and can't be redirected directly, 11041# and sets the high bit in the cache file unless we assign to the vars. 11042( 11043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11044 eval ac_val=\$$ac_var 11045 case $ac_val in #( 11046 *${as_nl}*) 11047 case $ac_var in #( 11048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11049$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11050 esac 11051 case $ac_var in #( 11052 _ | IFS | as_nl) ;; #( 11053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11054 *) { eval $ac_var=; unset $ac_var;} ;; 11055 esac ;; 11056 esac 11057 done 11058 11059 (set) 2>&1 | 11060 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11061 *${as_nl}ac_space=\ *) 11062 # `set' does not quote correctly, so add quotes: double-quote 11063 # substitution turns \\\\ into \\, and sed turns \\ into \. 11064 sed -n \ 11065 "s/'/'\\\\''/g; 11066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11067 ;; #( 11068 *) 11069 # `set' quotes correctly as required by POSIX, so do not add quotes. 11070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11071 ;; 11072 esac | 11073 sort 11074) | 11075 sed ' 11076 /^ac_cv_env_/b end 11077 t clear 11078 :clear 11079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11080 t end 11081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11082 :end' >>confcache 11083if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11084 if test -w "$cache_file"; then 11085 if test "x$cache_file" != "x/dev/null"; then 11086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11087$as_echo "$as_me: updating cache $cache_file" >&6;} 11088 if test ! -f "$cache_file" || test -h "$cache_file"; then 11089 cat confcache >"$cache_file" 11090 else 11091 case $cache_file in #( 11092 */* | ?:*) 11093 mv -f confcache "$cache_file"$$ && 11094 mv -f "$cache_file"$$ "$cache_file" ;; #( 11095 *) 11096 mv -f confcache "$cache_file" ;; 11097 esac 11098 fi 11099 fi 11100 else 11101 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11102$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11103 fi 11104fi 11105rm -f confcache 11106 11107test "x$prefix" = xNONE && prefix=$ac_default_prefix 11108# Let make expand exec_prefix. 11109test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11110 11111DEFS=-DHAVE_CONFIG_H 11112 11113ac_libobjs= 11114ac_ltlibobjs= 11115U= 11116for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11117 # 1. Remove the extension, and $U if already installed. 11118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11119 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11121 # will be set to the directory where LIBOBJS objects are built. 11122 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11123 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11124done 11125LIBOBJS=$ac_libobjs 11126 11127LTLIBOBJS=$ac_ltlibobjs 11128 11129 11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11131$as_echo_n "checking that generated files are newer than configure... " >&6; } 11132 if test -n "$am_sleep_pid"; then 11133 # Hide warnings about reused PIDs. 11134 wait $am_sleep_pid 2>/dev/null 11135 fi 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11137$as_echo "done" >&6; } 11138 if test -n "$EXEEXT"; then 11139 am__EXEEXT_TRUE= 11140 am__EXEEXT_FALSE='#' 11141else 11142 am__EXEEXT_TRUE='#' 11143 am__EXEEXT_FALSE= 11144fi 11145 11146if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11147 as_fn_error $? "conditional \"AMDEP\" was never defined. 11148Usually this means the macro was only invoked conditionally." "$LINENO" 5 11149fi 11150if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11151 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11152Usually this means the macro was only invoked conditionally." "$LINENO" 5 11153fi 11154if test -z "${HAVE_XI2_TRUE}" && test -z "${HAVE_XI2_FALSE}"; then 11155 as_fn_error $? "conditional \"HAVE_XI2\" was never defined. 11156Usually this means the macro was only invoked conditionally." "$LINENO" 5 11157fi 11158 11159: "${CONFIG_STATUS=./config.status}" 11160ac_write_fail=0 11161ac_clean_files_save=$ac_clean_files 11162ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11163{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11164$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11165as_write_fail=0 11166cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11167#! $SHELL 11168# Generated by $as_me. 11169# Run this file to recreate the current configuration. 11170# Compiler output produced by configure, useful for debugging 11171# configure, is in config.log if it exists. 11172 11173debug=false 11174ac_cs_recheck=false 11175ac_cs_silent=false 11176 11177SHELL=\${CONFIG_SHELL-$SHELL} 11178export SHELL 11179_ASEOF 11180cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11181## -------------------- ## 11182## M4sh Initialization. ## 11183## -------------------- ## 11184 11185# Be more Bourne compatible 11186DUALCASE=1; export DUALCASE # for MKS sh 11187if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11188 emulate sh 11189 NULLCMD=: 11190 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11191 # is contrary to our usage. Disable this feature. 11192 alias -g '${1+"$@"}'='"$@"' 11193 setopt NO_GLOB_SUBST 11194else 11195 case `(set -o) 2>/dev/null` in #( 11196 *posix*) : 11197 set -o posix ;; #( 11198 *) : 11199 ;; 11200esac 11201fi 11202 11203 11204as_nl=' 11205' 11206export as_nl 11207# Printing a long string crashes Solaris 7 /usr/bin/printf. 11208as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11209as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11210as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11211# Prefer a ksh shell builtin over an external printf program on Solaris, 11212# but without wasting forks for bash or zsh. 11213if test -z "$BASH_VERSION$ZSH_VERSION" \ 11214 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11215 as_echo='print -r --' 11216 as_echo_n='print -rn --' 11217elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11218 as_echo='printf %s\n' 11219 as_echo_n='printf %s' 11220else 11221 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11222 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11223 as_echo_n='/usr/ucb/echo -n' 11224 else 11225 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11226 as_echo_n_body='eval 11227 arg=$1; 11228 case $arg in #( 11229 *"$as_nl"*) 11230 expr "X$arg" : "X\\(.*\\)$as_nl"; 11231 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11232 esac; 11233 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11234 ' 11235 export as_echo_n_body 11236 as_echo_n='sh -c $as_echo_n_body as_echo' 11237 fi 11238 export as_echo_body 11239 as_echo='sh -c $as_echo_body as_echo' 11240fi 11241 11242# The user is always right. 11243if test "${PATH_SEPARATOR+set}" != set; then 11244 PATH_SEPARATOR=: 11245 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11246 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11247 PATH_SEPARATOR=';' 11248 } 11249fi 11250 11251 11252# IFS 11253# We need space, tab and new line, in precisely that order. Quoting is 11254# there to prevent editors from complaining about space-tab. 11255# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11256# splitting by setting IFS to empty value.) 11257IFS=" "" $as_nl" 11258 11259# Find who we are. Look in the path if we contain no directory separator. 11260as_myself= 11261case $0 in #(( 11262 *[\\/]* ) as_myself=$0 ;; 11263 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11264for as_dir in $PATH 11265do 11266 IFS=$as_save_IFS 11267 test -z "$as_dir" && as_dir=. 11268 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11269 done 11270IFS=$as_save_IFS 11271 11272 ;; 11273esac 11274# We did not find ourselves, most probably we were run as `sh COMMAND' 11275# in which case we are not to be found in the path. 11276if test "x$as_myself" = x; then 11277 as_myself=$0 11278fi 11279if test ! -f "$as_myself"; then 11280 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11281 exit 1 11282fi 11283 11284# Unset variables that we do not need and which cause bugs (e.g. in 11285# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11286# suppresses any "Segmentation fault" message there. '((' could 11287# trigger a bug in pdksh 5.2.14. 11288for as_var in BASH_ENV ENV MAIL MAILPATH 11289do eval test x\${$as_var+set} = xset \ 11290 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11291done 11292PS1='$ ' 11293PS2='> ' 11294PS4='+ ' 11295 11296# NLS nuisances. 11297LC_ALL=C 11298export LC_ALL 11299LANGUAGE=C 11300export LANGUAGE 11301 11302# CDPATH. 11303(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11304 11305 11306# as_fn_error STATUS ERROR [LINENO LOG_FD] 11307# ---------------------------------------- 11308# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11309# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11310# script with STATUS, using 1 if that was 0. 11311as_fn_error () 11312{ 11313 as_status=$1; test $as_status -eq 0 && as_status=1 11314 if test "$4"; then 11315 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11316 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11317 fi 11318 $as_echo "$as_me: error: $2" >&2 11319 as_fn_exit $as_status 11320} # as_fn_error 11321 11322 11323# as_fn_set_status STATUS 11324# ----------------------- 11325# Set $? to STATUS, without forking. 11326as_fn_set_status () 11327{ 11328 return $1 11329} # as_fn_set_status 11330 11331# as_fn_exit STATUS 11332# ----------------- 11333# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11334as_fn_exit () 11335{ 11336 set +e 11337 as_fn_set_status $1 11338 exit $1 11339} # as_fn_exit 11340 11341# as_fn_unset VAR 11342# --------------- 11343# Portably unset VAR. 11344as_fn_unset () 11345{ 11346 { eval $1=; unset $1;} 11347} 11348as_unset=as_fn_unset 11349# as_fn_append VAR VALUE 11350# ---------------------- 11351# Append the text in VALUE to the end of the definition contained in VAR. Take 11352# advantage of any shell optimizations that allow amortized linear growth over 11353# repeated appends, instead of the typical quadratic growth present in naive 11354# implementations. 11355if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11356 eval 'as_fn_append () 11357 { 11358 eval $1+=\$2 11359 }' 11360else 11361 as_fn_append () 11362 { 11363 eval $1=\$$1\$2 11364 } 11365fi # as_fn_append 11366 11367# as_fn_arith ARG... 11368# ------------------ 11369# Perform arithmetic evaluation on the ARGs, and store the result in the 11370# global $as_val. Take advantage of shells that can avoid forks. The arguments 11371# must be portable across $(()) and expr. 11372if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11373 eval 'as_fn_arith () 11374 { 11375 as_val=$(( $* )) 11376 }' 11377else 11378 as_fn_arith () 11379 { 11380 as_val=`expr "$@" || test $? -eq 1` 11381 } 11382fi # as_fn_arith 11383 11384 11385if expr a : '\(a\)' >/dev/null 2>&1 && 11386 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11387 as_expr=expr 11388else 11389 as_expr=false 11390fi 11391 11392if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11393 as_basename=basename 11394else 11395 as_basename=false 11396fi 11397 11398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11399 as_dirname=dirname 11400else 11401 as_dirname=false 11402fi 11403 11404as_me=`$as_basename -- "$0" || 11405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11406 X"$0" : 'X\(//\)$' \| \ 11407 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11408$as_echo X/"$0" | 11409 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11410 s//\1/ 11411 q 11412 } 11413 /^X\/\(\/\/\)$/{ 11414 s//\1/ 11415 q 11416 } 11417 /^X\/\(\/\).*/{ 11418 s//\1/ 11419 q 11420 } 11421 s/.*/./; q'` 11422 11423# Avoid depending upon Character Ranges. 11424as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11426as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11427as_cr_digits='0123456789' 11428as_cr_alnum=$as_cr_Letters$as_cr_digits 11429 11430ECHO_C= ECHO_N= ECHO_T= 11431case `echo -n x` in #((((( 11432-n*) 11433 case `echo 'xy\c'` in 11434 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11435 xy) ECHO_C='\c';; 11436 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11437 ECHO_T=' ';; 11438 esac;; 11439*) 11440 ECHO_N='-n';; 11441esac 11442 11443rm -f conf$$ conf$$.exe conf$$.file 11444if test -d conf$$.dir; then 11445 rm -f conf$$.dir/conf$$.file 11446else 11447 rm -f conf$$.dir 11448 mkdir conf$$.dir 2>/dev/null 11449fi 11450if (echo >conf$$.file) 2>/dev/null; then 11451 if ln -s conf$$.file conf$$ 2>/dev/null; then 11452 as_ln_s='ln -s' 11453 # ... but there are two gotchas: 11454 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11455 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11456 # In both cases, we have to default to `cp -pR'. 11457 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11458 as_ln_s='cp -pR' 11459 elif ln conf$$.file conf$$ 2>/dev/null; then 11460 as_ln_s=ln 11461 else 11462 as_ln_s='cp -pR' 11463 fi 11464else 11465 as_ln_s='cp -pR' 11466fi 11467rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11468rmdir conf$$.dir 2>/dev/null 11469 11470 11471# as_fn_mkdir_p 11472# ------------- 11473# Create "$as_dir" as a directory, including parents if necessary. 11474as_fn_mkdir_p () 11475{ 11476 11477 case $as_dir in #( 11478 -*) as_dir=./$as_dir;; 11479 esac 11480 test -d "$as_dir" || eval $as_mkdir_p || { 11481 as_dirs= 11482 while :; do 11483 case $as_dir in #( 11484 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11485 *) as_qdir=$as_dir;; 11486 esac 11487 as_dirs="'$as_qdir' $as_dirs" 11488 as_dir=`$as_dirname -- "$as_dir" || 11489$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11490 X"$as_dir" : 'X\(//\)[^/]' \| \ 11491 X"$as_dir" : 'X\(//\)$' \| \ 11492 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11493$as_echo X"$as_dir" | 11494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11495 s//\1/ 11496 q 11497 } 11498 /^X\(\/\/\)[^/].*/{ 11499 s//\1/ 11500 q 11501 } 11502 /^X\(\/\/\)$/{ 11503 s//\1/ 11504 q 11505 } 11506 /^X\(\/\).*/{ 11507 s//\1/ 11508 q 11509 } 11510 s/.*/./; q'` 11511 test -d "$as_dir" && break 11512 done 11513 test -z "$as_dirs" || eval "mkdir $as_dirs" 11514 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11515 11516 11517} # as_fn_mkdir_p 11518if mkdir -p . 2>/dev/null; then 11519 as_mkdir_p='mkdir -p "$as_dir"' 11520else 11521 test -d ./-p && rmdir ./-p 11522 as_mkdir_p=false 11523fi 11524 11525 11526# as_fn_executable_p FILE 11527# ----------------------- 11528# Test if FILE is an executable regular file. 11529as_fn_executable_p () 11530{ 11531 test -f "$1" && test -x "$1" 11532} # as_fn_executable_p 11533as_test_x='test -x' 11534as_executable_p=as_fn_executable_p 11535 11536# Sed expression to map a string onto a valid CPP name. 11537as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11538 11539# Sed expression to map a string onto a valid variable name. 11540as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11541 11542 11543exec 6>&1 11544## ----------------------------------- ## 11545## Main body of $CONFIG_STATUS script. ## 11546## ----------------------------------- ## 11547_ASEOF 11548test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11549 11550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11551# Save the log message, to keep $0 and so on meaningful, and to 11552# report actual input values of CONFIG_FILES etc. instead of their 11553# values after options handling. 11554ac_log=" 11555This file was extended by xinput $as_me 1.6.3, which was 11556generated by GNU Autoconf 2.69. Invocation command line was 11557 11558 CONFIG_FILES = $CONFIG_FILES 11559 CONFIG_HEADERS = $CONFIG_HEADERS 11560 CONFIG_LINKS = $CONFIG_LINKS 11561 CONFIG_COMMANDS = $CONFIG_COMMANDS 11562 $ $0 $@ 11563 11564on `(hostname || uname -n) 2>/dev/null | sed 1q` 11565" 11566 11567_ACEOF 11568 11569case $ac_config_files in *" 11570"*) set x $ac_config_files; shift; ac_config_files=$*;; 11571esac 11572 11573case $ac_config_headers in *" 11574"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11575esac 11576 11577 11578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11579# Files that config.status was made for. 11580config_files="$ac_config_files" 11581config_headers="$ac_config_headers" 11582config_commands="$ac_config_commands" 11583 11584_ACEOF 11585 11586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11587ac_cs_usage="\ 11588\`$as_me' instantiates files and other configuration actions 11589from templates according to the current configuration. Unless the files 11590and actions are specified as TAGs, all are instantiated by default. 11591 11592Usage: $0 [OPTION]... [TAG]... 11593 11594 -h, --help print this help, then exit 11595 -V, --version print version number and configuration settings, then exit 11596 --config print configuration, then exit 11597 -q, --quiet, --silent 11598 do not print progress messages 11599 -d, --debug don't remove temporary files 11600 --recheck update $as_me by reconfiguring in the same conditions 11601 --file=FILE[:TEMPLATE] 11602 instantiate the configuration file FILE 11603 --header=FILE[:TEMPLATE] 11604 instantiate the configuration header FILE 11605 11606Configuration files: 11607$config_files 11608 11609Configuration headers: 11610$config_headers 11611 11612Configuration commands: 11613$config_commands 11614 11615Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinput/issues>." 11616 11617_ACEOF 11618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11619ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11620ac_cs_version="\\ 11621xinput config.status 1.6.3 11622configured by $0, generated by GNU Autoconf 2.69, 11623 with options \\"\$ac_cs_config\\" 11624 11625Copyright (C) 2012 Free Software Foundation, Inc. 11626This config.status script is free software; the Free Software Foundation 11627gives unlimited permission to copy, distribute and modify it." 11628 11629ac_pwd='$ac_pwd' 11630srcdir='$srcdir' 11631INSTALL='$INSTALL' 11632MKDIR_P='$MKDIR_P' 11633AWK='$AWK' 11634test -n "\$AWK" || AWK=awk 11635_ACEOF 11636 11637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11638# The default lists apply if the user does not specify any file. 11639ac_need_defaults=: 11640while test $# != 0 11641do 11642 case $1 in 11643 --*=?*) 11644 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11645 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11646 ac_shift=: 11647 ;; 11648 --*=) 11649 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11650 ac_optarg= 11651 ac_shift=: 11652 ;; 11653 *) 11654 ac_option=$1 11655 ac_optarg=$2 11656 ac_shift=shift 11657 ;; 11658 esac 11659 11660 case $ac_option in 11661 # Handling of the options. 11662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11663 ac_cs_recheck=: ;; 11664 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11665 $as_echo "$ac_cs_version"; exit ;; 11666 --config | --confi | --conf | --con | --co | --c ) 11667 $as_echo "$ac_cs_config"; exit ;; 11668 --debug | --debu | --deb | --de | --d | -d ) 11669 debug=: ;; 11670 --file | --fil | --fi | --f ) 11671 $ac_shift 11672 case $ac_optarg in 11673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11674 '') as_fn_error $? "missing file argument" ;; 11675 esac 11676 as_fn_append CONFIG_FILES " '$ac_optarg'" 11677 ac_need_defaults=false;; 11678 --header | --heade | --head | --hea ) 11679 $ac_shift 11680 case $ac_optarg in 11681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11682 esac 11683 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11684 ac_need_defaults=false;; 11685 --he | --h) 11686 # Conflict between --help and --header 11687 as_fn_error $? "ambiguous option: \`$1' 11688Try \`$0 --help' for more information.";; 11689 --help | --hel | -h ) 11690 $as_echo "$ac_cs_usage"; exit ;; 11691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11692 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11693 ac_cs_silent=: ;; 11694 11695 # This is an error. 11696 -*) as_fn_error $? "unrecognized option: \`$1' 11697Try \`$0 --help' for more information." ;; 11698 11699 *) as_fn_append ac_config_targets " $1" 11700 ac_need_defaults=false ;; 11701 11702 esac 11703 shift 11704done 11705 11706ac_configure_extra_args= 11707 11708if $ac_cs_silent; then 11709 exec 6>/dev/null 11710 ac_configure_extra_args="$ac_configure_extra_args --silent" 11711fi 11712 11713_ACEOF 11714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11715if \$ac_cs_recheck; then 11716 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11717 shift 11718 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11719 CONFIG_SHELL='$SHELL' 11720 export CONFIG_SHELL 11721 exec "\$@" 11722fi 11723 11724_ACEOF 11725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11726exec 5>>config.log 11727{ 11728 echo 11729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11730## Running $as_me. ## 11731_ASBOX 11732 $as_echo "$ac_log" 11733} >&5 11734 11735_ACEOF 11736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11737# 11738# INIT-COMMANDS 11739# 11740AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11741 11742_ACEOF 11743 11744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11745 11746# Handling of arguments. 11747for ac_config_target in $ac_config_targets 11748do 11749 case $ac_config_target in 11750 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11751 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11752 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11753 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11754 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11755 11756 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11757 esac 11758done 11759 11760 11761# If the user did not use the arguments to specify the items to instantiate, 11762# then the envvar interface is used. Set only those that are not. 11763# We use the long form for the default assignment because of an extremely 11764# bizarre bug on SunOS 4.1.3. 11765if $ac_need_defaults; then 11766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11769fi 11770 11771# Have a temporary directory for convenience. Make it in the build tree 11772# simply because there is no reason against having it here, and in addition, 11773# creating and moving files from /tmp can sometimes cause problems. 11774# Hook for its removal unless debugging. 11775# Note that there is a small window in which the directory will not be cleaned: 11776# after its creation but before its name has been assigned to `$tmp'. 11777$debug || 11778{ 11779 tmp= ac_tmp= 11780 trap 'exit_status=$? 11781 : "${ac_tmp:=$tmp}" 11782 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11783' 0 11784 trap 'as_fn_exit 1' 1 2 13 15 11785} 11786# Create a (secure) tmp directory for tmp files. 11787 11788{ 11789 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11790 test -d "$tmp" 11791} || 11792{ 11793 tmp=./conf$$-$RANDOM 11794 (umask 077 && mkdir "$tmp") 11795} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11796ac_tmp=$tmp 11797 11798# Set up the scripts for CONFIG_FILES section. 11799# No need to generate them if there are no CONFIG_FILES. 11800# This happens for instance with `./config.status config.h'. 11801if test -n "$CONFIG_FILES"; then 11802 11803 11804ac_cr=`echo X | tr X '\015'` 11805# On cygwin, bash can eat \r inside `` if the user requested igncr. 11806# But we know of no other shell where ac_cr would be empty at this 11807# point, so we can use a bashism as a fallback. 11808if test "x$ac_cr" = x; then 11809 eval ac_cr=\$\'\\r\' 11810fi 11811ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11812if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11813 ac_cs_awk_cr='\\r' 11814else 11815 ac_cs_awk_cr=$ac_cr 11816fi 11817 11818echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11819_ACEOF 11820 11821 11822{ 11823 echo "cat >conf$$subs.awk <<_ACEOF" && 11824 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11825 echo "_ACEOF" 11826} >conf$$subs.sh || 11827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11828ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11829ac_delim='%!_!# ' 11830for ac_last_try in false false false false false :; do 11831 . ./conf$$subs.sh || 11832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11833 11834 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11835 if test $ac_delim_n = $ac_delim_num; then 11836 break 11837 elif $ac_last_try; then 11838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11839 else 11840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11841 fi 11842done 11843rm -f conf$$subs.sh 11844 11845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11846cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11847_ACEOF 11848sed -n ' 11849h 11850s/^/S["/; s/!.*/"]=/ 11851p 11852g 11853s/^[^!]*!// 11854:repl 11855t repl 11856s/'"$ac_delim"'$// 11857t delim 11858:nl 11859h 11860s/\(.\{148\}\)..*/\1/ 11861t more1 11862s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11863p 11864n 11865b repl 11866:more1 11867s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11868p 11869g 11870s/.\{148\}// 11871t nl 11872:delim 11873h 11874s/\(.\{148\}\)..*/\1/ 11875t more2 11876s/["\\]/\\&/g; s/^/"/; s/$/"/ 11877p 11878b 11879:more2 11880s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11881p 11882g 11883s/.\{148\}// 11884t delim 11885' <conf$$subs.awk | sed ' 11886/^[^""]/{ 11887 N 11888 s/\n// 11889} 11890' >>$CONFIG_STATUS || ac_write_fail=1 11891rm -f conf$$subs.awk 11892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11893_ACAWK 11894cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11895 for (key in S) S_is_set[key] = 1 11896 FS = "" 11897 11898} 11899{ 11900 line = $ 0 11901 nfields = split(line, field, "@") 11902 substed = 0 11903 len = length(field[1]) 11904 for (i = 2; i < nfields; i++) { 11905 key = field[i] 11906 keylen = length(key) 11907 if (S_is_set[key]) { 11908 value = S[key] 11909 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11910 len += length(value) + length(field[++i]) 11911 substed = 1 11912 } else 11913 len += 1 + keylen 11914 } 11915 11916 print line 11917} 11918 11919_ACAWK 11920_ACEOF 11921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11922if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11923 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11924else 11925 cat 11926fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11927 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11928_ACEOF 11929 11930# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11931# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11932# trailing colons and then remove the whole line if VPATH becomes empty 11933# (actually we leave an empty line to preserve line numbers). 11934if test "x$srcdir" = x.; then 11935 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11936h 11937s/// 11938s/^/:/ 11939s/[ ]*$/:/ 11940s/:\$(srcdir):/:/g 11941s/:\${srcdir}:/:/g 11942s/:@srcdir@:/:/g 11943s/^:*// 11944s/:*$// 11945x 11946s/\(=[ ]*\).*/\1/ 11947G 11948s/\n// 11949s/^[^=]*=[ ]*$// 11950}' 11951fi 11952 11953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11954fi # test -n "$CONFIG_FILES" 11955 11956# Set up the scripts for CONFIG_HEADERS section. 11957# No need to generate them if there are no CONFIG_HEADERS. 11958# This happens for instance with `./config.status Makefile'. 11959if test -n "$CONFIG_HEADERS"; then 11960cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11961BEGIN { 11962_ACEOF 11963 11964# Transform confdefs.h into an awk script `defines.awk', embedded as 11965# here-document in config.status, that substitutes the proper values into 11966# config.h.in to produce config.h. 11967 11968# Create a delimiter string that does not exist in confdefs.h, to ease 11969# handling of long lines. 11970ac_delim='%!_!# ' 11971for ac_last_try in false false :; do 11972 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11973 if test -z "$ac_tt"; then 11974 break 11975 elif $ac_last_try; then 11976 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11977 else 11978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11979 fi 11980done 11981 11982# For the awk script, D is an array of macro values keyed by name, 11983# likewise P contains macro parameters if any. Preserve backslash 11984# newline sequences. 11985 11986ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11987sed -n ' 11988s/.\{148\}/&'"$ac_delim"'/g 11989t rset 11990:rset 11991s/^[ ]*#[ ]*define[ ][ ]*/ / 11992t def 11993d 11994:def 11995s/\\$// 11996t bsnl 11997s/["\\]/\\&/g 11998s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11999D["\1"]=" \3"/p 12000s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12001d 12002:bsnl 12003s/["\\]/\\&/g 12004s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12005D["\1"]=" \3\\\\\\n"\\/p 12006t cont 12007s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12008t cont 12009d 12010:cont 12011n 12012s/.\{148\}/&'"$ac_delim"'/g 12013t clear 12014:clear 12015s/\\$// 12016t bsnlc 12017s/["\\]/\\&/g; s/^/"/; s/$/"/p 12018d 12019:bsnlc 12020s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12021b cont 12022' <confdefs.h | sed ' 12023s/'"$ac_delim"'/"\\\ 12024"/g' >>$CONFIG_STATUS || ac_write_fail=1 12025 12026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12027 for (key in D) D_is_set[key] = 1 12028 FS = "" 12029} 12030/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12031 line = \$ 0 12032 split(line, arg, " ") 12033 if (arg[1] == "#") { 12034 defundef = arg[2] 12035 mac1 = arg[3] 12036 } else { 12037 defundef = substr(arg[1], 2) 12038 mac1 = arg[2] 12039 } 12040 split(mac1, mac2, "(") #) 12041 macro = mac2[1] 12042 prefix = substr(line, 1, index(line, defundef) - 1) 12043 if (D_is_set[macro]) { 12044 # Preserve the white space surrounding the "#". 12045 print prefix "define", macro P[macro] D[macro] 12046 next 12047 } else { 12048 # Replace #undef with comments. This is necessary, for example, 12049 # in the case of _POSIX_SOURCE, which is predefined and required 12050 # on some systems where configure will not decide to define it. 12051 if (defundef == "undef") { 12052 print "/*", prefix defundef, macro, "*/" 12053 next 12054 } 12055 } 12056} 12057{ print } 12058_ACAWK 12059_ACEOF 12060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12061 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12062fi # test -n "$CONFIG_HEADERS" 12063 12064 12065eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12066shift 12067for ac_tag 12068do 12069 case $ac_tag in 12070 :[FHLC]) ac_mode=$ac_tag; continue;; 12071 esac 12072 case $ac_mode$ac_tag in 12073 :[FHL]*:*);; 12074 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12075 :[FH]-) ac_tag=-:-;; 12076 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12077 esac 12078 ac_save_IFS=$IFS 12079 IFS=: 12080 set x $ac_tag 12081 IFS=$ac_save_IFS 12082 shift 12083 ac_file=$1 12084 shift 12085 12086 case $ac_mode in 12087 :L) ac_source=$1;; 12088 :[FH]) 12089 ac_file_inputs= 12090 for ac_f 12091 do 12092 case $ac_f in 12093 -) ac_f="$ac_tmp/stdin";; 12094 *) # Look for the file first in the build tree, then in the source tree 12095 # (if the path is not absolute). The absolute path cannot be DOS-style, 12096 # because $ac_f cannot contain `:'. 12097 test -f "$ac_f" || 12098 case $ac_f in 12099 [\\/$]*) false;; 12100 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12101 esac || 12102 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12103 esac 12104 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12105 as_fn_append ac_file_inputs " '$ac_f'" 12106 done 12107 12108 # Let's still pretend it is `configure' which instantiates (i.e., don't 12109 # use $as_me), people would be surprised to read: 12110 # /* config.h. Generated by config.status. */ 12111 configure_input='Generated from '` 12112 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12113 `' by configure.' 12114 if test x"$ac_file" != x-; then 12115 configure_input="$ac_file. $configure_input" 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12117$as_echo "$as_me: creating $ac_file" >&6;} 12118 fi 12119 # Neutralize special characters interpreted by sed in replacement strings. 12120 case $configure_input in #( 12121 *\&* | *\|* | *\\* ) 12122 ac_sed_conf_input=`$as_echo "$configure_input" | 12123 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12124 *) ac_sed_conf_input=$configure_input;; 12125 esac 12126 12127 case $ac_tag in 12128 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12130 esac 12131 ;; 12132 esac 12133 12134 ac_dir=`$as_dirname -- "$ac_file" || 12135$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12136 X"$ac_file" : 'X\(//\)[^/]' \| \ 12137 X"$ac_file" : 'X\(//\)$' \| \ 12138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12139$as_echo X"$ac_file" | 12140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12141 s//\1/ 12142 q 12143 } 12144 /^X\(\/\/\)[^/].*/{ 12145 s//\1/ 12146 q 12147 } 12148 /^X\(\/\/\)$/{ 12149 s//\1/ 12150 q 12151 } 12152 /^X\(\/\).*/{ 12153 s//\1/ 12154 q 12155 } 12156 s/.*/./; q'` 12157 as_dir="$ac_dir"; as_fn_mkdir_p 12158 ac_builddir=. 12159 12160case "$ac_dir" in 12161.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12162*) 12163 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12164 # A ".." for each directory in $ac_dir_suffix. 12165 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12166 case $ac_top_builddir_sub in 12167 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12168 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12169 esac ;; 12170esac 12171ac_abs_top_builddir=$ac_pwd 12172ac_abs_builddir=$ac_pwd$ac_dir_suffix 12173# for backward compatibility: 12174ac_top_builddir=$ac_top_build_prefix 12175 12176case $srcdir in 12177 .) # We are building in place. 12178 ac_srcdir=. 12179 ac_top_srcdir=$ac_top_builddir_sub 12180 ac_abs_top_srcdir=$ac_pwd ;; 12181 [\\/]* | ?:[\\/]* ) # Absolute name. 12182 ac_srcdir=$srcdir$ac_dir_suffix; 12183 ac_top_srcdir=$srcdir 12184 ac_abs_top_srcdir=$srcdir ;; 12185 *) # Relative name. 12186 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12187 ac_top_srcdir=$ac_top_build_prefix$srcdir 12188 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12189esac 12190ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12191 12192 12193 case $ac_mode in 12194 :F) 12195 # 12196 # CONFIG_FILE 12197 # 12198 12199 case $INSTALL in 12200 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12201 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12202 esac 12203 ac_MKDIR_P=$MKDIR_P 12204 case $MKDIR_P in 12205 [\\/$]* | ?:[\\/]* ) ;; 12206 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12207 esac 12208_ACEOF 12209 12210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12211# If the template does not know about datarootdir, expand it. 12212# FIXME: This hack should be removed a few years after 2.60. 12213ac_datarootdir_hack=; ac_datarootdir_seen= 12214ac_sed_dataroot=' 12215/datarootdir/ { 12216 p 12217 q 12218} 12219/@datadir@/p 12220/@docdir@/p 12221/@infodir@/p 12222/@localedir@/p 12223/@mandir@/p' 12224case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12225*datarootdir*) ac_datarootdir_seen=yes;; 12226*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12228$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12229_ACEOF 12230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12231 ac_datarootdir_hack=' 12232 s&@datadir@&$datadir&g 12233 s&@docdir@&$docdir&g 12234 s&@infodir@&$infodir&g 12235 s&@localedir@&$localedir&g 12236 s&@mandir@&$mandir&g 12237 s&\\\${datarootdir}&$datarootdir&g' ;; 12238esac 12239_ACEOF 12240 12241# Neutralize VPATH when `$srcdir' = `.'. 12242# Shell code in configure.ac might set extrasub. 12243# FIXME: do we really want to maintain this feature? 12244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12245ac_sed_extra="$ac_vpsub 12246$extrasub 12247_ACEOF 12248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12249:t 12250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12251s|@configure_input@|$ac_sed_conf_input|;t t 12252s&@top_builddir@&$ac_top_builddir_sub&;t t 12253s&@top_build_prefix@&$ac_top_build_prefix&;t t 12254s&@srcdir@&$ac_srcdir&;t t 12255s&@abs_srcdir@&$ac_abs_srcdir&;t t 12256s&@top_srcdir@&$ac_top_srcdir&;t t 12257s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12258s&@builddir@&$ac_builddir&;t t 12259s&@abs_builddir@&$ac_abs_builddir&;t t 12260s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12261s&@INSTALL@&$ac_INSTALL&;t t 12262s&@MKDIR_P@&$ac_MKDIR_P&;t t 12263$ac_datarootdir_hack 12264" 12265eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12266 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12267 12268test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12269 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12270 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12271 "$ac_tmp/out"`; test -z "$ac_out"; } && 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12273which seems to be undefined. Please make sure it is defined" >&5 12274$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12275which seems to be undefined. Please make sure it is defined" >&2;} 12276 12277 rm -f "$ac_tmp/stdin" 12278 case $ac_file in 12279 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12280 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12281 esac \ 12282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12283 ;; 12284 :H) 12285 # 12286 # CONFIG_HEADER 12287 # 12288 if test x"$ac_file" != x-; then 12289 { 12290 $as_echo "/* $configure_input */" \ 12291 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12292 } >"$ac_tmp/config.h" \ 12293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12294 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12296$as_echo "$as_me: $ac_file is unchanged" >&6;} 12297 else 12298 rm -f "$ac_file" 12299 mv "$ac_tmp/config.h" "$ac_file" \ 12300 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12301 fi 12302 else 12303 $as_echo "/* $configure_input */" \ 12304 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12305 || as_fn_error $? "could not create -" "$LINENO" 5 12306 fi 12307# Compute "$ac_file"'s index in $config_headers. 12308_am_arg="$ac_file" 12309_am_stamp_count=1 12310for _am_header in $config_headers :; do 12311 case $_am_header in 12312 $_am_arg | $_am_arg:* ) 12313 break ;; 12314 * ) 12315 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12316 esac 12317done 12318echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12319$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12320 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12321 X"$_am_arg" : 'X\(//\)$' \| \ 12322 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12323$as_echo X"$_am_arg" | 12324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12325 s//\1/ 12326 q 12327 } 12328 /^X\(\/\/\)[^/].*/{ 12329 s//\1/ 12330 q 12331 } 12332 /^X\(\/\/\)$/{ 12333 s//\1/ 12334 q 12335 } 12336 /^X\(\/\).*/{ 12337 s//\1/ 12338 q 12339 } 12340 s/.*/./; q'`/stamp-h$_am_stamp_count 12341 ;; 12342 12343 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12344$as_echo "$as_me: executing $ac_file commands" >&6;} 12345 ;; 12346 esac 12347 12348 12349 case $ac_file$ac_mode in 12350 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12351 # Older Autoconf quotes --file arguments for eval, but not when files 12352 # are listed without --file. Let's play safe and only enable the eval 12353 # if we detect the quoting. 12354 # TODO: see whether this extra hack can be removed once we start 12355 # requiring Autoconf 2.70 or later. 12356 case $CONFIG_FILES in #( 12357 *\'*) : 12358 eval set x "$CONFIG_FILES" ;; #( 12359 *) : 12360 set x $CONFIG_FILES ;; #( 12361 *) : 12362 ;; 12363esac 12364 shift 12365 # Used to flag and report bootstrapping failures. 12366 am_rc=0 12367 for am_mf 12368 do 12369 # Strip MF so we end up with the name of the file. 12370 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 12371 # Check whether this is an Automake generated Makefile which includes 12372 # dependency-tracking related rules and includes. 12373 # Grep'ing the whole file directly is not great: AIX grep has a line 12374 # limit of 2048, but all sed's we know have understand at least 4000. 12375 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12376 || continue 12377 am_dirpart=`$as_dirname -- "$am_mf" || 12378$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12379 X"$am_mf" : 'X\(//\)[^/]' \| \ 12380 X"$am_mf" : 'X\(//\)$' \| \ 12381 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12382$as_echo X"$am_mf" | 12383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12384 s//\1/ 12385 q 12386 } 12387 /^X\(\/\/\)[^/].*/{ 12388 s//\1/ 12389 q 12390 } 12391 /^X\(\/\/\)$/{ 12392 s//\1/ 12393 q 12394 } 12395 /^X\(\/\).*/{ 12396 s//\1/ 12397 q 12398 } 12399 s/.*/./; q'` 12400 am_filepart=`$as_basename -- "$am_mf" || 12401$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12402 X"$am_mf" : 'X\(//\)$' \| \ 12403 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12404$as_echo X/"$am_mf" | 12405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12406 s//\1/ 12407 q 12408 } 12409 /^X\/\(\/\/\)$/{ 12410 s//\1/ 12411 q 12412 } 12413 /^X\/\(\/\).*/{ 12414 s//\1/ 12415 q 12416 } 12417 s/.*/./; q'` 12418 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12419 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12420 | $MAKE -f - am--depfiles" >&5 12421 (cd "$am_dirpart" \ 12422 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12423 | $MAKE -f - am--depfiles) >&5 2>&5 12424 ac_status=$? 12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12426 (exit $ac_status); } || am_rc=$? 12427 done 12428 if test $am_rc -ne 0; then 12429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12431as_fn_error $? "Something went wrong bootstrapping makefile fragments 12432 for automatic dependency tracking. Try re-running configure with the 12433 '--disable-dependency-tracking' option to at least be able to build 12434 the package (albeit without support for automatic dependency tracking). 12435See \`config.log' for more details" "$LINENO" 5; } 12436 fi 12437 { am_dirpart=; unset am_dirpart;} 12438 { am_filepart=; unset am_filepart;} 12439 { am_mf=; unset am_mf;} 12440 { am_rc=; unset am_rc;} 12441 rm -f conftest-deps.mk 12442} 12443 ;; 12444 12445 esac 12446done # for ac_tag 12447 12448 12449as_fn_exit 0 12450_ACEOF 12451ac_clean_files=$ac_clean_files_save 12452 12453test $ac_write_fail = 0 || 12454 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12455 12456 12457# configure is writing to config.log, and then calls config.status. 12458# config.status does its own redirection, appending to config.log. 12459# Unfortunately, on DOS this fails, as config.log is still kept open 12460# by configure, so config.status won't be able to write to it; its 12461# output is simply discarded. So we exec the FD to /dev/null, 12462# effectively closing config.log, so it can be properly (re)opened and 12463# appended to by config.status. When coming back to configure, we 12464# need to make the FD available again. 12465if test "$no_create" != yes; then 12466 ac_cs_success=: 12467 ac_config_status_args= 12468 test "$silent" = yes && 12469 ac_config_status_args="$ac_config_status_args --quiet" 12470 exec 5>/dev/null 12471 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12472 exec 5>>config.log 12473 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12474 # would make configure fail if this is the last instruction. 12475 $ac_cs_success || as_fn_exit 1 12476fi 12477if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12479$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12480fi 12481 12482