configure revision b6f5cd12
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xdpyinfo 1.3.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xdpyinfo' 563PACKAGE_TARNAME='xdpyinfo' 564PACKAGE_VERSION='1.3.1' 565PACKAGE_STRING='xdpyinfo 1.3.1' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#ifdef HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#ifdef HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#ifdef STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# ifdef HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#ifdef HAVE_STRING_H 587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#ifdef HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#ifdef HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#ifdef HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#ifdef HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='am__EXEEXT_FALSE 606am__EXEEXT_TRUE 607LTLIBOBJS 608LIBOBJS 609LINT_FALSE 610LINT_TRUE 611LINT_FLAGS 612LINT 613DPY_XTST_LIBS 614DPY_XTST_CFLAGS 615DPY_DMX_LIBS 616DPY_DMX_CFLAGS 617DPY_XINERAMA_LIBS 618DPY_XINERAMA_CFLAGS 619DPY_XCOMPOSITE_LIBS 620DPY_XCOMPOSITE_CFLAGS 621DPY_XRENDER_LIBS 622DPY_XRENDER_CFLAGS 623DPY_XINPUT_LIBS 624DPY_XINPUT_CFLAGS 625DPY_XF86MISC_LIBS 626DPY_XF86MISC_CFLAGS 627DPY_XF86DGA_LIBS 628DPY_XF86DGA_CFLAGS 629DPY_XF86VIDMODE_LIBS 630DPY_XF86VIDMODE_CFLAGS 631DPY_XKB_LIBS 632DPY_XKB_CFLAGS 633DPY_XEXT_LIBS 634DPY_XEXT_CFLAGS 635DPY_X11_LIBS 636DPY_X11_CFLAGS 637XDPYINFO_LIBS 638XDPYINFO_CFLAGS 639MAN_SUBSTS 640XORG_MAN_PAGE 641ADMIN_MAN_DIR 642DRIVER_MAN_DIR 643MISC_MAN_DIR 644FILE_MAN_DIR 645LIB_MAN_DIR 646APP_MAN_DIR 647ADMIN_MAN_SUFFIX 648DRIVER_MAN_SUFFIX 649MISC_MAN_SUFFIX 650FILE_MAN_SUFFIX 651LIB_MAN_SUFFIX 652APP_MAN_SUFFIX 653SED 654host_os 655host_vendor 656host_cpu 657host 658build_os 659build_vendor 660build_cpu 661build 662INSTALL_CMD 663PKG_CONFIG 664CHANGELOG_CMD 665STRICT_CFLAGS 666CWARNFLAGS 667BASE_CFLAGS 668EGREP 669GREP 670CPP 671am__fastdepCC_FALSE 672am__fastdepCC_TRUE 673CCDEPMODE 674am__nodep 675AMDEPBACKSLASH 676AMDEP_FALSE 677AMDEP_TRUE 678am__quote 679am__include 680DEPDIR 681OBJEXT 682EXEEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688MAINT 689MAINTAINER_MODE_FALSE 690MAINTAINER_MODE_TRUE 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' 756ac_subst_files='' 757ac_user_opts=' 758enable_option_checking 759enable_silent_rules 760enable_maintainer_mode 761enable_dependency_tracking 762enable_selective_werror 763enable_strict_compilation 764with_dga 765with_xf86misc 766with_xinerama 767with_dmx 768with_lint 769' 770 ac_precious_vars='build_alias 771host_alias 772target_alias 773CC 774CFLAGS 775LDFLAGS 776LIBS 777CPPFLAGS 778CPP 779PKG_CONFIG 780XDPYINFO_CFLAGS 781XDPYINFO_LIBS 782DPY_X11_CFLAGS 783DPY_X11_LIBS 784DPY_XEXT_CFLAGS 785DPY_XEXT_LIBS 786DPY_XKB_CFLAGS 787DPY_XKB_LIBS 788DPY_XF86VIDMODE_CFLAGS 789DPY_XF86VIDMODE_LIBS 790DPY_XF86DGA_CFLAGS 791DPY_XF86DGA_LIBS 792DPY_XF86MISC_CFLAGS 793DPY_XF86MISC_LIBS 794DPY_XINPUT_CFLAGS 795DPY_XINPUT_LIBS 796DPY_XRENDER_CFLAGS 797DPY_XRENDER_LIBS 798DPY_XCOMPOSITE_CFLAGS 799DPY_XCOMPOSITE_LIBS 800DPY_XINERAMA_CFLAGS 801DPY_XINERAMA_LIBS 802DPY_DMX_CFLAGS 803DPY_DMX_LIBS 804DPY_XTST_CFLAGS 805DPY_XTST_LIBS 806LINT 807LINT_FLAGS' 808 809 810# Initialize some variables set by options. 811ac_init_help= 812ac_init_version=false 813ac_unrecognized_opts= 814ac_unrecognized_sep= 815# The variables have the same names as the options, with 816# dashes changed to underlines. 817cache_file=/dev/null 818exec_prefix=NONE 819no_create= 820no_recursion= 821prefix=NONE 822program_prefix=NONE 823program_suffix=NONE 824program_transform_name=s,x,x, 825silent= 826site= 827srcdir= 828verbose= 829x_includes=NONE 830x_libraries=NONE 831 832# Installation directory options. 833# These are left unexpanded so users can "make install exec_prefix=/foo" 834# and all the variables that are supposed to be based on exec_prefix 835# by default will actually change. 836# Use braces instead of parens because sh, perl, etc. also accept them. 837# (The list follows the same order as the GNU Coding Standards.) 838bindir='${exec_prefix}/bin' 839sbindir='${exec_prefix}/sbin' 840libexecdir='${exec_prefix}/libexec' 841datarootdir='${prefix}/share' 842datadir='${datarootdir}' 843sysconfdir='${prefix}/etc' 844sharedstatedir='${prefix}/com' 845localstatedir='${prefix}/var' 846includedir='${prefix}/include' 847oldincludedir='/usr/include' 848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 849infodir='${datarootdir}/info' 850htmldir='${docdir}' 851dvidir='${docdir}' 852pdfdir='${docdir}' 853psdir='${docdir}' 854libdir='${exec_prefix}/lib' 855localedir='${datarootdir}/locale' 856mandir='${datarootdir}/man' 857 858ac_prev= 859ac_dashdash= 860for ac_option 861do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *=) ac_optarg= ;; 872 *) ac_optarg=yes ;; 873 esac 874 875 # Accept the important Cygnus configure options, so we can diagnose typos. 876 877 case $ac_dashdash$ac_option in 878 --) 879 ac_dashdash=yes ;; 880 881 -bindir | --bindir | --bindi | --bind | --bin | --bi) 882 ac_prev=bindir ;; 883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 884 bindir=$ac_optarg ;; 885 886 -build | --build | --buil | --bui | --bu) 887 ac_prev=build_alias ;; 888 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 889 build_alias=$ac_optarg ;; 890 891 -cache-file | --cache-file | --cache-fil | --cache-fi \ 892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 893 ac_prev=cache_file ;; 894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 896 cache_file=$ac_optarg ;; 897 898 --config-cache | -C) 899 cache_file=config.cache ;; 900 901 -datadir | --datadir | --datadi | --datad) 902 ac_prev=datadir ;; 903 -datadir=* | --datadir=* | --datadi=* | --datad=*) 904 datadir=$ac_optarg ;; 905 906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 907 | --dataroo | --dataro | --datar) 908 ac_prev=datarootdir ;; 909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 911 datarootdir=$ac_optarg ;; 912 913 -disable-* | --disable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=no ;; 928 929 -docdir | --docdir | --docdi | --doc | --do) 930 ac_prev=docdir ;; 931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 932 docdir=$ac_optarg ;; 933 934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 935 ac_prev=dvidir ;; 936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 937 dvidir=$ac_optarg ;; 938 939 -enable-* | --enable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=\$ac_optarg ;; 954 955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 957 | --exec | --exe | --ex) 958 ac_prev=exec_prefix ;; 959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 961 | --exec=* | --exe=* | --ex=*) 962 exec_prefix=$ac_optarg ;; 963 964 -gas | --gas | --ga | --g) 965 # Obsolete; use --with-gas. 966 with_gas=yes ;; 967 968 -help | --help | --hel | --he | -h) 969 ac_init_help=long ;; 970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 971 ac_init_help=recursive ;; 972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 973 ac_init_help=short ;; 974 975 -host | --host | --hos | --ho) 976 ac_prev=host_alias ;; 977 -host=* | --host=* | --hos=* | --ho=*) 978 host_alias=$ac_optarg ;; 979 980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 981 ac_prev=htmldir ;; 982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 983 | --ht=*) 984 htmldir=$ac_optarg ;; 985 986 -includedir | --includedir | --includedi | --included | --include \ 987 | --includ | --inclu | --incl | --inc) 988 ac_prev=includedir ;; 989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 990 | --includ=* | --inclu=* | --incl=* | --inc=*) 991 includedir=$ac_optarg ;; 992 993 -infodir | --infodir | --infodi | --infod | --info | --inf) 994 ac_prev=infodir ;; 995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 996 infodir=$ac_optarg ;; 997 998 -libdir | --libdir | --libdi | --libd) 999 ac_prev=libdir ;; 1000 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1001 libdir=$ac_optarg ;; 1002 1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1004 | --libexe | --libex | --libe) 1005 ac_prev=libexecdir ;; 1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1007 | --libexe=* | --libex=* | --libe=*) 1008 libexecdir=$ac_optarg ;; 1009 1010 -localedir | --localedir | --localedi | --localed | --locale) 1011 ac_prev=localedir ;; 1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1013 localedir=$ac_optarg ;; 1014 1015 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1016 | --localstate | --localstat | --localsta | --localst | --locals) 1017 ac_prev=localstatedir ;; 1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1020 localstatedir=$ac_optarg ;; 1021 1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1023 ac_prev=mandir ;; 1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1025 mandir=$ac_optarg ;; 1026 1027 -nfp | --nfp | --nf) 1028 # Obsolete; use --without-fp. 1029 with_fp=no ;; 1030 1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1032 | --no-cr | --no-c | -n) 1033 no_create=yes ;; 1034 1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1037 no_recursion=yes ;; 1038 1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1041 | --oldin | --oldi | --old | --ol | --o) 1042 ac_prev=oldincludedir ;; 1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1046 oldincludedir=$ac_optarg ;; 1047 1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1049 ac_prev=prefix ;; 1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1051 prefix=$ac_optarg ;; 1052 1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1054 | --program-pre | --program-pr | --program-p) 1055 ac_prev=program_prefix ;; 1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1058 program_prefix=$ac_optarg ;; 1059 1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1061 | --program-suf | --program-su | --program-s) 1062 ac_prev=program_suffix ;; 1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1065 program_suffix=$ac_optarg ;; 1066 1067 -program-transform-name | --program-transform-name \ 1068 | --program-transform-nam | --program-transform-na \ 1069 | --program-transform-n | --program-transform- \ 1070 | --program-transform | --program-transfor \ 1071 | --program-transfo | --program-transf \ 1072 | --program-trans | --program-tran \ 1073 | --progr-tra | --program-tr | --program-t) 1074 ac_prev=program_transform_name ;; 1075 -program-transform-name=* | --program-transform-name=* \ 1076 | --program-transform-nam=* | --program-transform-na=* \ 1077 | --program-transform-n=* | --program-transform-=* \ 1078 | --program-transform=* | --program-transfor=* \ 1079 | --program-transfo=* | --program-transf=* \ 1080 | --program-trans=* | --program-tran=* \ 1081 | --progr-tra=* | --program-tr=* | --program-t=*) 1082 program_transform_name=$ac_optarg ;; 1083 1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1085 ac_prev=pdfdir ;; 1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1087 pdfdir=$ac_optarg ;; 1088 1089 -psdir | --psdir | --psdi | --psd | --ps) 1090 ac_prev=psdir ;; 1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1092 psdir=$ac_optarg ;; 1093 1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1095 | -silent | --silent | --silen | --sile | --sil) 1096 silent=yes ;; 1097 1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1099 ac_prev=sbindir ;; 1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1101 | --sbi=* | --sb=*) 1102 sbindir=$ac_optarg ;; 1103 1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1106 | --sharedst | --shareds | --shared | --share | --shar \ 1107 | --sha | --sh) 1108 ac_prev=sharedstatedir ;; 1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1112 | --sha=* | --sh=*) 1113 sharedstatedir=$ac_optarg ;; 1114 1115 -site | --site | --sit) 1116 ac_prev=site ;; 1117 -site=* | --site=* | --sit=*) 1118 site=$ac_optarg ;; 1119 1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1121 ac_prev=srcdir ;; 1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1123 srcdir=$ac_optarg ;; 1124 1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1126 | --syscon | --sysco | --sysc | --sys | --sy) 1127 ac_prev=sysconfdir ;; 1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1130 sysconfdir=$ac_optarg ;; 1131 1132 -target | --target | --targe | --targ | --tar | --ta | --t) 1133 ac_prev=target_alias ;; 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1135 target_alias=$ac_optarg ;; 1136 1137 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1138 verbose=yes ;; 1139 1140 -version | --version | --versio | --versi | --vers | -V) 1141 ac_init_version=: ;; 1142 1143 -with-* | --with-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=no ;; 1174 1175 --x) 1176 # Obsolete; use --with-x. 1177 with_x=yes ;; 1178 1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1180 | --x-incl | --x-inc | --x-in | --x-i) 1181 ac_prev=x_includes ;; 1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1184 x_includes=$ac_optarg ;; 1185 1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1188 ac_prev=x_libraries ;; 1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1191 x_libraries=$ac_optarg ;; 1192 1193 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1194Try \`$0 --help' for more information" 1195 ;; 1196 1197 *=*) 1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1199 # Reject names that are not valid shell variable names. 1200 case $ac_envvar in #( 1201 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1203 esac 1204 eval $ac_envvar=\$ac_optarg 1205 export $ac_envvar ;; 1206 1207 *) 1208 # FIXME: should be removed in autoconf 3.0. 1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1213 ;; 1214 1215 esac 1216done 1217 1218if test -n "$ac_prev"; then 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1220 as_fn_error $? "missing argument to $ac_option" 1221fi 1222 1223if test -n "$ac_unrecognized_opts"; then 1224 case $enable_option_checking in 1225 no) ;; 1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1228 esac 1229fi 1230 1231# Check all directory arguments for consistency. 1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1233 datadir sysconfdir sharedstatedir localstatedir includedir \ 1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1235 libdir localedir mandir 1236do 1237 eval ac_val=\$$ac_var 1238 # Remove trailing slashes. 1239 case $ac_val in 1240 */ ) 1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1242 eval $ac_var=\$ac_val;; 1243 esac 1244 # Be sure to have absolute directory names. 1245 case $ac_val in 1246 [\\/$]* | ?:[\\/]* ) continue;; 1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1248 esac 1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1250done 1251 1252# There might be people who depend on the old broken behavior: `$host' 1253# used to hold the argument of --host etc. 1254# FIXME: To remove some day. 1255build=$build_alias 1256host=$host_alias 1257target=$target_alias 1258 1259# FIXME: To remove some day. 1260if test "x$host_alias" != x; then 1261 if test "x$build_alias" = x; then 1262 cross_compiling=maybe 1263 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1264 If a cross compiler is detected then cross compile mode will be used" >&2 1265 elif test "x$build_alias" != "x$host_alias"; then 1266 cross_compiling=yes 1267 fi 1268fi 1269 1270ac_tool_prefix= 1271test -n "$host_alias" && ac_tool_prefix=$host_alias- 1272 1273test "$silent" = yes && exec 6>/dev/null 1274 1275 1276ac_pwd=`pwd` && test -n "$ac_pwd" && 1277ac_ls_di=`ls -di .` && 1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1279 as_fn_error $? "working directory cannot be determined" 1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1281 as_fn_error $? "pwd does not report name of working directory" 1282 1283 1284# Find the source files, if location was not specified. 1285if test -z "$srcdir"; then 1286 ac_srcdir_defaulted=yes 1287 # Try the directory containing this script, then the parent directory. 1288 ac_confdir=`$as_dirname -- "$as_myself" || 1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1290 X"$as_myself" : 'X\(//\)[^/]' \| \ 1291 X"$as_myself" : 'X\(//\)$' \| \ 1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1293$as_echo X"$as_myself" | 1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)[^/].*/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\).*/{ 1307 s//\1/ 1308 q 1309 } 1310 s/.*/./; q'` 1311 srcdir=$ac_confdir 1312 if test ! -r "$srcdir/$ac_unique_file"; then 1313 srcdir=.. 1314 fi 1315else 1316 ac_srcdir_defaulted=no 1317fi 1318if test ! -r "$srcdir/$ac_unique_file"; then 1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1321fi 1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1323ac_abs_confdir=`( 1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1325 pwd)` 1326# When building in place, set srcdir=. 1327if test "$ac_abs_confdir" = "$ac_pwd"; then 1328 srcdir=. 1329fi 1330# Remove unnecessary trailing slashes from srcdir. 1331# Double slashes in file names in object file debugging info 1332# mess up M-x gdb in Emacs. 1333case $srcdir in 1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1335esac 1336for ac_var in $ac_precious_vars; do 1337 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_env_${ac_var}_value=\$${ac_var} 1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1341done 1342 1343# 1344# Report the --help message. 1345# 1346if test "$ac_init_help" = "long"; then 1347 # Omit some internal or obsolete options to make the list less imposing. 1348 # This message is too long to be a string in the A/UX 3.1 sh. 1349 cat <<_ACEOF 1350\`configure' configures xdpyinfo 1.3.1 to adapt to many kinds of systems. 1351 1352Usage: $0 [OPTION]... [VAR=VALUE]... 1353 1354To assign environment variables (e.g., CC, CFLAGS...), specify them as 1355VAR=VALUE. See below for descriptions of some of the useful variables. 1356 1357Defaults for the options are specified in brackets. 1358 1359Configuration: 1360 -h, --help display this help and exit 1361 --help=short display options specific to this package 1362 --help=recursive display the short help of all the included packages 1363 -V, --version display version information and exit 1364 -q, --quiet, --silent do not print \`checking ...' messages 1365 --cache-file=FILE cache test results in FILE [disabled] 1366 -C, --config-cache alias for \`--cache-file=config.cache' 1367 -n, --no-create do not create output files 1368 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1369 1370Installation directories: 1371 --prefix=PREFIX install architecture-independent files in PREFIX 1372 [$ac_default_prefix] 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1374 [PREFIX] 1375 1376By default, \`make install' will install all the files in 1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1378an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1379for instance \`--prefix=\$HOME'. 1380 1381For better control, use the options below. 1382 1383Fine tuning of the installation directories: 1384 --bindir=DIR user executables [EPREFIX/bin] 1385 --sbindir=DIR system admin executables [EPREFIX/sbin] 1386 --libexecdir=DIR program executables [EPREFIX/libexec] 1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1390 --libdir=DIR object code libraries [EPREFIX/lib] 1391 --includedir=DIR C header files [PREFIX/include] 1392 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1395 --infodir=DIR info documentation [DATAROOTDIR/info] 1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1397 --mandir=DIR man documentation [DATAROOTDIR/man] 1398 --docdir=DIR documentation root [DATAROOTDIR/doc/xdpyinfo] 1399 --htmldir=DIR html documentation [DOCDIR] 1400 --dvidir=DIR dvi documentation [DOCDIR] 1401 --pdfdir=DIR pdf documentation [DOCDIR] 1402 --psdir=DIR ps documentation [DOCDIR] 1403_ACEOF 1404 1405 cat <<\_ACEOF 1406 1407Program names: 1408 --program-prefix=PREFIX prepend PREFIX to installed program names 1409 --program-suffix=SUFFIX append SUFFIX to installed program names 1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1411 1412System types: 1413 --build=BUILD configure for building on BUILD [guessed] 1414 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1415_ACEOF 1416fi 1417 1418if test -n "$ac_init_help"; then 1419 case $ac_init_help in 1420 short | recursive ) echo "Configuration of xdpyinfo 1.3.1:";; 1421 esac 1422 cat <<\_ACEOF 1423 1424Optional Features: 1425 --disable-option-checking ignore unrecognized --enable/--with options 1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1428 --enable-silent-rules less verbose build output (undo: "make V=1") 1429 --disable-silent-rules verbose build output (undo: "make V=0") 1430 --enable-maintainer-mode 1431 enable make rules and dependencies not useful (and 1432 sometimes confusing) to the casual installer 1433 --enable-dependency-tracking 1434 do not reject slow dependency extractors 1435 --disable-dependency-tracking 1436 speeds up one-time build 1437 --disable-selective-werror 1438 Turn off selective compiler errors. (default: 1439 enabled) 1440 --enable-strict-compilation 1441 Enable all warnings from compiler and make them 1442 errors (default: disabled) 1443 1444Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --without-dga Disable dga support. 1448 --without-xf86misc Disable xf86misc support. 1449 --without-xinerama Disable xinerama support. 1450 --without-dmx Disable dmx support. 1451 --with-lint Use a lint-style source code checker (default: 1452 disabled) 1453 1454Some influential environment variables: 1455 CC C compiler command 1456 CFLAGS C compiler flags 1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1458 nonstandard directory <lib dir> 1459 LIBS libraries to pass to the linker, e.g. -l<library> 1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1461 you have headers in a nonstandard directory <include dir> 1462 CPP C preprocessor 1463 PKG_CONFIG path to pkg-config utility 1464 XDPYINFO_CFLAGS 1465 C compiler flags for XDPYINFO, overriding pkg-config 1466 XDPYINFO_LIBS 1467 linker flags for XDPYINFO, overriding pkg-config 1468 DPY_X11_CFLAGS 1469 C compiler flags for DPY_X11, overriding pkg-config 1470 DPY_X11_LIBS 1471 linker flags for DPY_X11, overriding pkg-config 1472 DPY_XEXT_CFLAGS 1473 C compiler flags for DPY_XEXT, overriding pkg-config 1474 DPY_XEXT_LIBS 1475 linker flags for DPY_XEXT, overriding pkg-config 1476 DPY_XKB_CFLAGS 1477 C compiler flags for DPY_XKB, overriding pkg-config 1478 DPY_XKB_LIBS 1479 linker flags for DPY_XKB, overriding pkg-config 1480 DPY_XF86VIDMODE_CFLAGS 1481 C compiler flags for DPY_XF86VIDMODE, overriding pkg-config 1482 DPY_XF86VIDMODE_LIBS 1483 linker flags for DPY_XF86VIDMODE, overriding pkg-config 1484 DPY_XF86DGA_CFLAGS 1485 C compiler flags for DPY_XF86DGA, overriding pkg-config 1486 DPY_XF86DGA_LIBS 1487 linker flags for DPY_XF86DGA, overriding pkg-config 1488 DPY_XF86MISC_CFLAGS 1489 C compiler flags for DPY_XF86MISC, overriding pkg-config 1490 DPY_XF86MISC_LIBS 1491 linker flags for DPY_XF86MISC, overriding pkg-config 1492 DPY_XINPUT_CFLAGS 1493 C compiler flags for DPY_XINPUT, overriding pkg-config 1494 DPY_XINPUT_LIBS 1495 linker flags for DPY_XINPUT, overriding pkg-config 1496 DPY_XRENDER_CFLAGS 1497 C compiler flags for DPY_XRENDER, overriding pkg-config 1498 DPY_XRENDER_LIBS 1499 linker flags for DPY_XRENDER, overriding pkg-config 1500 DPY_XCOMPOSITE_CFLAGS 1501 C compiler flags for DPY_XCOMPOSITE, overriding pkg-config 1502 DPY_XCOMPOSITE_LIBS 1503 linker flags for DPY_XCOMPOSITE, overriding pkg-config 1504 DPY_XINERAMA_CFLAGS 1505 C compiler flags for DPY_XINERAMA, overriding pkg-config 1506 DPY_XINERAMA_LIBS 1507 linker flags for DPY_XINERAMA, overriding pkg-config 1508 DPY_DMX_CFLAGS 1509 C compiler flags for DPY_DMX, overriding pkg-config 1510 DPY_DMX_LIBS 1511 linker flags for DPY_DMX, overriding pkg-config 1512 DPY_XTST_CFLAGS 1513 C compiler flags for DPY_XTST, overriding pkg-config 1514 DPY_XTST_LIBS 1515 linker flags for DPY_XTST, overriding pkg-config 1516 LINT Path to a lint-style command 1517 LINT_FLAGS Flags for the lint-style command 1518 1519Use these variables to override the choices made by `configure' or to help 1520it to find libraries and programs with nonstandard names/locations. 1521 1522Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1523_ACEOF 1524ac_status=$? 1525fi 1526 1527if test "$ac_init_help" = "recursive"; then 1528 # If there are subdirs, report their specific --help. 1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1530 test -d "$ac_dir" || 1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1532 continue 1533 ac_builddir=. 1534 1535case "$ac_dir" in 1536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1537*) 1538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1539 # A ".." for each directory in $ac_dir_suffix. 1540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1541 case $ac_top_builddir_sub in 1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1544 esac ;; 1545esac 1546ac_abs_top_builddir=$ac_pwd 1547ac_abs_builddir=$ac_pwd$ac_dir_suffix 1548# for backward compatibility: 1549ac_top_builddir=$ac_top_build_prefix 1550 1551case $srcdir in 1552 .) # We are building in place. 1553 ac_srcdir=. 1554 ac_top_srcdir=$ac_top_builddir_sub 1555 ac_abs_top_srcdir=$ac_pwd ;; 1556 [\\/]* | ?:[\\/]* ) # Absolute name. 1557 ac_srcdir=$srcdir$ac_dir_suffix; 1558 ac_top_srcdir=$srcdir 1559 ac_abs_top_srcdir=$srcdir ;; 1560 *) # Relative name. 1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1562 ac_top_srcdir=$ac_top_build_prefix$srcdir 1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1564esac 1565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1566 1567 cd "$ac_dir" || { ac_status=$?; continue; } 1568 # Check for guested configure. 1569 if test -f "$ac_srcdir/configure.gnu"; then 1570 echo && 1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1572 elif test -f "$ac_srcdir/configure"; then 1573 echo && 1574 $SHELL "$ac_srcdir/configure" --help=recursive 1575 else 1576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1577 fi || ac_status=$? 1578 cd "$ac_pwd" || { ac_status=$?; break; } 1579 done 1580fi 1581 1582test -n "$ac_init_help" && exit $ac_status 1583if $ac_init_version; then 1584 cat <<\_ACEOF 1585xdpyinfo configure 1.3.1 1586generated by GNU Autoconf 2.68 1587 1588Copyright (C) 2010 Free Software Foundation, Inc. 1589This configure script is free software; the Free Software Foundation 1590gives unlimited permission to copy, distribute and modify it. 1591_ACEOF 1592 exit 1593fi 1594 1595## ------------------------ ## 1596## Autoconf initialization. ## 1597## ------------------------ ## 1598 1599# ac_fn_c_try_compile LINENO 1600# -------------------------- 1601# Try to compile conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_compile () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext 1606 if { { ac_try="$ac_compile" 1607case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_compile") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest.$ac_objext; then : 1625 ac_retval=0 1626else 1627 $as_echo "$as_me: failed program was:" >&5 1628sed 's/^/| /' conftest.$ac_ext >&5 1629 1630 ac_retval=1 1631fi 1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1633 as_fn_set_status $ac_retval 1634 1635} # ac_fn_c_try_compile 1636 1637# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1638# --------------------------------------------- 1639# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1640# accordingly. 1641ac_fn_c_check_decl () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 as_decl_name=`echo $2|sed 's/ *(.*//'` 1645 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1647$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1648if eval \${$3+:} false; then : 1649 $as_echo_n "(cached) " >&6 1650else 1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1652/* end confdefs.h. */ 1653$4 1654int 1655main () 1656{ 1657#ifndef $as_decl_name 1658#ifdef __cplusplus 1659 (void) $as_decl_use; 1660#else 1661 (void) $as_decl_name; 1662#endif 1663#endif 1664 1665 ; 1666 return 0; 1667} 1668_ACEOF 1669if ac_fn_c_try_compile "$LINENO"; then : 1670 eval "$3=yes" 1671else 1672 eval "$3=no" 1673fi 1674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1675fi 1676eval ac_res=\$$3 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1678$as_echo "$ac_res" >&6; } 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 1681} # ac_fn_c_check_decl 1682 1683# ac_fn_c_try_cpp LINENO 1684# ---------------------- 1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1686ac_fn_c_try_cpp () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 if { { ac_try="$ac_cpp conftest.$ac_ext" 1690case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693esac 1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695$as_echo "$ac_try_echo"; } >&5 1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } > conftest.i && { 1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1706 test ! -s conftest.err 1707 }; then : 1708 ac_retval=0 1709else 1710 $as_echo "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=1 1714fi 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} # ac_fn_c_try_cpp 1719 1720# ac_fn_c_try_run LINENO 1721# ---------------------- 1722# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1723# that executables *can* be run. 1724ac_fn_c_try_run () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 if { { ac_try="$ac_link" 1728case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731esac 1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733$as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_link") 2>&5 1735 ac_status=$? 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1738 { { case "(($ac_try" in 1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1740 *) ac_try_echo=$ac_try;; 1741esac 1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1743$as_echo "$ac_try_echo"; } >&5 1744 (eval "$ac_try") 2>&5 1745 ac_status=$? 1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1747 test $ac_status = 0; }; }; then : 1748 ac_retval=0 1749else 1750 $as_echo "$as_me: program exited with status $ac_status" >&5 1751 $as_echo "$as_me: failed program was:" >&5 1752sed 's/^/| /' conftest.$ac_ext >&5 1753 1754 ac_retval=$ac_status 1755fi 1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760} # ac_fn_c_try_run 1761 1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1763# ------------------------------------------------------- 1764# Tests whether HEADER exists and can be compiled using the include files in 1765# INCLUDES, setting the cache variable VAR accordingly. 1766ac_fn_c_check_header_compile () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1770$as_echo_n "checking for $2... " >&6; } 1771if eval \${$3+:} false; then : 1772 $as_echo_n "(cached) " >&6 1773else 1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1775/* end confdefs.h. */ 1776$4 1777#include <$2> 1778_ACEOF 1779if ac_fn_c_try_compile "$LINENO"; then : 1780 eval "$3=yes" 1781else 1782 eval "$3=no" 1783fi 1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1785fi 1786eval ac_res=\$$3 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788$as_echo "$ac_res" >&6; } 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 1791} # ac_fn_c_check_header_compile 1792 1793# ac_fn_c_try_link LINENO 1794# ----------------------- 1795# Try to link conftest.$ac_ext, and return whether this succeeded. 1796ac_fn_c_try_link () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 rm -f conftest.$ac_objext conftest$ac_exeext 1800 if { { ac_try="$ac_link" 1801case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_link") 2>conftest.err 1808 ac_status=$? 1809 if test -s conftest.err; then 1810 grep -v '^ *+' conftest.err >conftest.er1 1811 cat conftest.er1 >&5 1812 mv -f conftest.er1 conftest.err 1813 fi 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; } && { 1816 test -z "$ac_c_werror_flag" || 1817 test ! -s conftest.err 1818 } && test -s conftest$ac_exeext && { 1819 test "$cross_compiling" = yes || 1820 $as_test_x conftest$ac_exeext 1821 }; then : 1822 ac_retval=0 1823else 1824 $as_echo "$as_me: failed program was:" >&5 1825sed 's/^/| /' conftest.$ac_ext >&5 1826 1827 ac_retval=1 1828fi 1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1831 # interfere with the next link command; also delete a directory that is 1832 # left behind by Apple's compiler. We do this before executing the actions. 1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1835 as_fn_set_status $ac_retval 1836 1837} # ac_fn_c_try_link 1838cat >config.log <<_ACEOF 1839This file contains any messages produced by compilers while 1840running configure, to aid debugging if configure makes a mistake. 1841 1842It was created by xdpyinfo $as_me 1.3.1, which was 1843generated by GNU Autoconf 2.68. Invocation command line was 1844 1845 $ $0 $@ 1846 1847_ACEOF 1848exec 5>>config.log 1849{ 1850cat <<_ASUNAME 1851## --------- ## 1852## Platform. ## 1853## --------- ## 1854 1855hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1856uname -m = `(uname -m) 2>/dev/null || echo unknown` 1857uname -r = `(uname -r) 2>/dev/null || echo unknown` 1858uname -s = `(uname -s) 2>/dev/null || echo unknown` 1859uname -v = `(uname -v) 2>/dev/null || echo unknown` 1860 1861/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1862/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1863 1864/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1865/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1866/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1867/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1868/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1869/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1870/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1871 1872_ASUNAME 1873 1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1875for as_dir in $PATH 1876do 1877 IFS=$as_save_IFS 1878 test -z "$as_dir" && as_dir=. 1879 $as_echo "PATH: $as_dir" 1880 done 1881IFS=$as_save_IFS 1882 1883} >&5 1884 1885cat >&5 <<_ACEOF 1886 1887 1888## ----------- ## 1889## Core tests. ## 1890## ----------- ## 1891 1892_ACEOF 1893 1894 1895# Keep a trace of the command line. 1896# Strip out --no-create and --no-recursion so they do not pile up. 1897# Strip out --silent because we don't want to record it for future runs. 1898# Also quote any args containing shell meta-characters. 1899# Make two passes to allow for proper duplicate-argument suppression. 1900ac_configure_args= 1901ac_configure_args0= 1902ac_configure_args1= 1903ac_must_keep_next=false 1904for ac_pass in 1 2 1905do 1906 for ac_arg 1907 do 1908 case $ac_arg in 1909 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1911 | -silent | --silent | --silen | --sile | --sil) 1912 continue ;; 1913 *\'*) 1914 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1915 esac 1916 case $ac_pass in 1917 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1918 2) 1919 as_fn_append ac_configure_args1 " '$ac_arg'" 1920 if test $ac_must_keep_next = true; then 1921 ac_must_keep_next=false # Got value, back to normal. 1922 else 1923 case $ac_arg in 1924 *=* | --config-cache | -C | -disable-* | --disable-* \ 1925 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1926 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1927 | -with-* | --with-* | -without-* | --without-* | --x) 1928 case "$ac_configure_args0 " in 1929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1930 esac 1931 ;; 1932 -* ) ac_must_keep_next=true ;; 1933 esac 1934 fi 1935 as_fn_append ac_configure_args " '$ac_arg'" 1936 ;; 1937 esac 1938 done 1939done 1940{ ac_configure_args0=; unset ac_configure_args0;} 1941{ ac_configure_args1=; unset ac_configure_args1;} 1942 1943# When interrupted or exit'd, cleanup temporary files, and complete 1944# config.log. We remove comments because anyway the quotes in there 1945# would cause problems or look ugly. 1946# WARNING: Use '\'' to represent an apostrophe within the trap. 1947# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1948trap 'exit_status=$? 1949 # Save into config.log some information that might help in debugging. 1950 { 1951 echo 1952 1953 $as_echo "## ---------------- ## 1954## Cache variables. ## 1955## ---------------- ##" 1956 echo 1957 # The following way of writing the cache mishandles newlines in values, 1958( 1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1960 eval ac_val=\$$ac_var 1961 case $ac_val in #( 1962 *${as_nl}*) 1963 case $ac_var in #( 1964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1965$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1966 esac 1967 case $ac_var in #( 1968 _ | IFS | as_nl) ;; #( 1969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1970 *) { eval $ac_var=; unset $ac_var;} ;; 1971 esac ;; 1972 esac 1973 done 1974 (set) 2>&1 | 1975 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1976 *${as_nl}ac_space=\ *) 1977 sed -n \ 1978 "s/'\''/'\''\\\\'\'''\''/g; 1979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1980 ;; #( 1981 *) 1982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1983 ;; 1984 esac | 1985 sort 1986) 1987 echo 1988 1989 $as_echo "## ----------------- ## 1990## Output variables. ## 1991## ----------------- ##" 1992 echo 1993 for ac_var in $ac_subst_vars 1994 do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in 1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1998 esac 1999 $as_echo "$ac_var='\''$ac_val'\''" 2000 done | sort 2001 echo 2002 2003 if test -n "$ac_subst_files"; then 2004 $as_echo "## ------------------- ## 2005## File substitutions. ## 2006## ------------------- ##" 2007 echo 2008 for ac_var in $ac_subst_files 2009 do 2010 eval ac_val=\$$ac_var 2011 case $ac_val in 2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2013 esac 2014 $as_echo "$ac_var='\''$ac_val'\''" 2015 done | sort 2016 echo 2017 fi 2018 2019 if test -s confdefs.h; then 2020 $as_echo "## ----------- ## 2021## confdefs.h. ## 2022## ----------- ##" 2023 echo 2024 cat confdefs.h 2025 echo 2026 fi 2027 test "$ac_signal" != 0 && 2028 $as_echo "$as_me: caught signal $ac_signal" 2029 $as_echo "$as_me: exit $exit_status" 2030 } >&5 2031 rm -f core *.core core.conftest.* && 2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2033 exit $exit_status 2034' 0 2035for ac_signal in 1 2 13 15; do 2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2037done 2038ac_signal=0 2039 2040# confdefs.h avoids OS command line length limits that DEFS can exceed. 2041rm -f -r conftest* confdefs.h 2042 2043$as_echo "/* confdefs.h */" > confdefs.h 2044 2045# Predefined preprocessor variables. 2046 2047cat >>confdefs.h <<_ACEOF 2048#define PACKAGE_NAME "$PACKAGE_NAME" 2049_ACEOF 2050 2051cat >>confdefs.h <<_ACEOF 2052#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2053_ACEOF 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_VERSION "$PACKAGE_VERSION" 2057_ACEOF 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_STRING "$PACKAGE_STRING" 2061_ACEOF 2062 2063cat >>confdefs.h <<_ACEOF 2064#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2065_ACEOF 2066 2067cat >>confdefs.h <<_ACEOF 2068#define PACKAGE_URL "$PACKAGE_URL" 2069_ACEOF 2070 2071 2072# Let the site file select an alternate cache file if it wants to. 2073# Prefer an explicitly selected file to automatically selected ones. 2074ac_site_file1=NONE 2075ac_site_file2=NONE 2076if test -n "$CONFIG_SITE"; then 2077 # We do not want a PATH search for config.site. 2078 case $CONFIG_SITE in #(( 2079 -*) ac_site_file1=./$CONFIG_SITE;; 2080 */*) ac_site_file1=$CONFIG_SITE;; 2081 *) ac_site_file1=./$CONFIG_SITE;; 2082 esac 2083elif test "x$prefix" != xNONE; then 2084 ac_site_file1=$prefix/share/config.site 2085 ac_site_file2=$prefix/etc/config.site 2086else 2087 ac_site_file1=$ac_default_prefix/share/config.site 2088 ac_site_file2=$ac_default_prefix/etc/config.site 2089fi 2090for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2091do 2092 test "x$ac_site_file" = xNONE && continue 2093 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2095$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2096 sed 's/^/| /' "$ac_site_file" >&5 2097 . "$ac_site_file" \ 2098 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2100as_fn_error $? "failed to load site script $ac_site_file 2101See \`config.log' for more details" "$LINENO" 5; } 2102 fi 2103done 2104 2105if test -r "$cache_file"; then 2106 # Some versions of bash will fail to source /dev/null (special files 2107 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2108 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2110$as_echo "$as_me: loading cache $cache_file" >&6;} 2111 case $cache_file in 2112 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2113 *) . "./$cache_file";; 2114 esac 2115 fi 2116else 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2118$as_echo "$as_me: creating cache $cache_file" >&6;} 2119 >$cache_file 2120fi 2121 2122# Check that the precious variables saved in the cache have kept the same 2123# value. 2124ac_cache_corrupted=false 2125for ac_var in $ac_precious_vars; do 2126 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2127 eval ac_new_set=\$ac_env_${ac_var}_set 2128 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2129 eval ac_new_val=\$ac_env_${ac_var}_value 2130 case $ac_old_set,$ac_new_set in 2131 set,) 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2133$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2134 ac_cache_corrupted=: ;; 2135 ,set) 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2137$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2138 ac_cache_corrupted=: ;; 2139 ,);; 2140 *) 2141 if test "x$ac_old_val" != "x$ac_new_val"; then 2142 # differences in whitespace do not lead to failure. 2143 ac_old_val_w=`echo x $ac_old_val` 2144 ac_new_val_w=`echo x $ac_new_val` 2145 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2147$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2148 ac_cache_corrupted=: 2149 else 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2151$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2152 eval $ac_var=\$ac_old_val 2153 fi 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2155$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2157$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2158 fi;; 2159 esac 2160 # Pass precious variables to config.status. 2161 if test "$ac_new_set" = set; then 2162 case $ac_new_val in 2163 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2164 *) ac_arg=$ac_var=$ac_new_val ;; 2165 esac 2166 case " $ac_configure_args " in 2167 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2168 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2169 esac 2170 fi 2171done 2172if $ac_cache_corrupted; then 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2176$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2177 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2178fi 2179## -------------------- ## 2180## Main body of script. ## 2181## -------------------- ## 2182 2183ac_ext=c 2184ac_cpp='$CPP $CPPFLAGS' 2185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2187ac_compiler_gnu=$ac_cv_c_compiler_gnu 2188 2189 2190am__api_version='1.13' 2191 2192ac_aux_dir= 2193for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2194 if test -f "$ac_dir/install-sh"; then 2195 ac_aux_dir=$ac_dir 2196 ac_install_sh="$ac_aux_dir/install-sh -c" 2197 break 2198 elif test -f "$ac_dir/install.sh"; then 2199 ac_aux_dir=$ac_dir 2200 ac_install_sh="$ac_aux_dir/install.sh -c" 2201 break 2202 elif test -f "$ac_dir/shtool"; then 2203 ac_aux_dir=$ac_dir 2204 ac_install_sh="$ac_aux_dir/shtool install -c" 2205 break 2206 fi 2207done 2208if test -z "$ac_aux_dir"; then 2209 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2210fi 2211 2212# These three variables are undocumented and unsupported, 2213# and are intended to be withdrawn in a future Autoconf release. 2214# They can cause serious problems if a builder's source tree is in a directory 2215# whose full name contains unusual characters. 2216ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2217ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2218ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2219 2220 2221# Find a good install program. We prefer a C program (faster), 2222# so one script is as good as another. But avoid the broken or 2223# incompatible versions: 2224# SysV /etc/install, /usr/sbin/install 2225# SunOS /usr/etc/install 2226# IRIX /sbin/install 2227# AIX /bin/install 2228# AmigaOS /C/install, which installs bootblocks on floppy discs 2229# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2230# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2231# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2232# OS/2's system install, which has a completely different semantic 2233# ./install, which can be erroneously created by make from ./install.sh. 2234# Reject install programs that cannot install multiple files. 2235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2236$as_echo_n "checking for a BSD-compatible install... " >&6; } 2237if test -z "$INSTALL"; then 2238if ${ac_cv_path_install+:} false; then : 2239 $as_echo_n "(cached) " >&6 2240else 2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2242for as_dir in $PATH 2243do 2244 IFS=$as_save_IFS 2245 test -z "$as_dir" && as_dir=. 2246 # Account for people who put trailing slashes in PATH elements. 2247case $as_dir/ in #(( 2248 ./ | .// | /[cC]/* | \ 2249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2250 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2251 /usr/ucb/* ) ;; 2252 *) 2253 # OSF1 and SCO ODT 3.0 have their own names for install. 2254 # Don't use installbsd from OSF since it installs stuff as root 2255 # by default. 2256 for ac_prog in ginstall scoinst install; do 2257 for ac_exec_ext in '' $ac_executable_extensions; do 2258 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2259 if test $ac_prog = install && 2260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2261 # AIX install. It has an incompatible calling convention. 2262 : 2263 elif test $ac_prog = install && 2264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2265 # program-specific install script used by HP pwplus--don't use. 2266 : 2267 else 2268 rm -rf conftest.one conftest.two conftest.dir 2269 echo one > conftest.one 2270 echo two > conftest.two 2271 mkdir conftest.dir 2272 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2273 test -s conftest.one && test -s conftest.two && 2274 test -s conftest.dir/conftest.one && 2275 test -s conftest.dir/conftest.two 2276 then 2277 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2278 break 3 2279 fi 2280 fi 2281 fi 2282 done 2283 done 2284 ;; 2285esac 2286 2287 done 2288IFS=$as_save_IFS 2289 2290rm -rf conftest.one conftest.two conftest.dir 2291 2292fi 2293 if test "${ac_cv_path_install+set}" = set; then 2294 INSTALL=$ac_cv_path_install 2295 else 2296 # As a last resort, use the slow shell script. Don't cache a 2297 # value for INSTALL within a source directory, because that will 2298 # break other packages using the cache if that directory is 2299 # removed, or if the value is a relative name. 2300 INSTALL=$ac_install_sh 2301 fi 2302fi 2303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2304$as_echo "$INSTALL" >&6; } 2305 2306# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2307# It thinks the first close brace ends the variable substitution. 2308test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2309 2310test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2311 2312test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2313 2314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2315$as_echo_n "checking whether build environment is sane... " >&6; } 2316# Reject unsafe characters in $srcdir or the absolute working directory 2317# name. Accept space and tab only in the latter. 2318am_lf=' 2319' 2320case `pwd` in 2321 *[\\\"\#\$\&\'\`$am_lf]*) 2322 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2323esac 2324case $srcdir in 2325 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2326 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2327esac 2328 2329# Do 'set' in a subshell so we don't clobber the current shell's 2330# arguments. Must try -L first in case configure is actually a 2331# symlink; some systems play weird games with the mod time of symlinks 2332# (eg FreeBSD returns the mod time of the symlink's containing 2333# directory). 2334if ( 2335 am_has_slept=no 2336 for am_try in 1 2; do 2337 echo "timestamp, slept: $am_has_slept" > conftest.file 2338 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2339 if test "$*" = "X"; then 2340 # -L didn't work. 2341 set X `ls -t "$srcdir/configure" conftest.file` 2342 fi 2343 if test "$*" != "X $srcdir/configure conftest.file" \ 2344 && test "$*" != "X conftest.file $srcdir/configure"; then 2345 2346 # If neither matched, then we have a broken ls. This can happen 2347 # if, for instance, CONFIG_SHELL is bash and it inherits a 2348 # broken ls alias from the environment. This has actually 2349 # happened. Such a system could not be considered "sane". 2350 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2351 alias in your environment" "$LINENO" 5 2352 fi 2353 if test "$2" = conftest.file || test $am_try -eq 2; then 2354 break 2355 fi 2356 # Just in case. 2357 sleep 1 2358 am_has_slept=yes 2359 done 2360 test "$2" = conftest.file 2361 ) 2362then 2363 # Ok. 2364 : 2365else 2366 as_fn_error $? "newly created file is older than distributed files! 2367Check your system clock" "$LINENO" 5 2368fi 2369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2370$as_echo "yes" >&6; } 2371# If we didn't sleep, we still need to ensure time stamps of config.status and 2372# generated files are strictly newer. 2373am_sleep_pid= 2374if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2375 ( sleep 1 ) & 2376 am_sleep_pid=$! 2377fi 2378 2379rm -f conftest.file 2380 2381test "$program_prefix" != NONE && 2382 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2383# Use a double $ so make ignores it. 2384test "$program_suffix" != NONE && 2385 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2386# Double any \ or $. 2387# By default was `s,x,x', remove it if useless. 2388ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2389program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2390 2391# expand $ac_aux_dir to an absolute path 2392am_aux_dir=`cd $ac_aux_dir && pwd` 2393 2394if test x"${MISSING+set}" != xset; then 2395 case $am_aux_dir in 2396 *\ * | *\ *) 2397 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2398 *) 2399 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2400 esac 2401fi 2402# Use eval to expand $SHELL 2403if eval "$MISSING --is-lightweight"; then 2404 am_missing_run="$MISSING " 2405else 2406 am_missing_run= 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2408$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2409fi 2410 2411if test x"${install_sh}" != xset; then 2412 case $am_aux_dir in 2413 *\ * | *\ *) 2414 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2415 *) 2416 install_sh="\${SHELL} $am_aux_dir/install-sh" 2417 esac 2418fi 2419 2420# Installed binaries are usually stripped using 'strip' when the user 2421# run "make install-strip". However 'strip' might not be the right 2422# tool to use in cross-compilation environments, therefore Automake 2423# will honor the 'STRIP' environment variable to overrule this program. 2424if test "$cross_compiling" != no; then 2425 if test -n "$ac_tool_prefix"; then 2426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2427set dummy ${ac_tool_prefix}strip; ac_word=$2 2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2429$as_echo_n "checking for $ac_word... " >&6; } 2430if ${ac_cv_prog_STRIP+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432else 2433 if test -n "$STRIP"; then 2434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2435else 2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2437for as_dir in $PATH 2438do 2439 IFS=$as_save_IFS 2440 test -z "$as_dir" && as_dir=. 2441 for ac_exec_ext in '' $ac_executable_extensions; do 2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2443 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2445 break 2 2446 fi 2447done 2448 done 2449IFS=$as_save_IFS 2450 2451fi 2452fi 2453STRIP=$ac_cv_prog_STRIP 2454if test -n "$STRIP"; then 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2456$as_echo "$STRIP" >&6; } 2457else 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2459$as_echo "no" >&6; } 2460fi 2461 2462 2463fi 2464if test -z "$ac_cv_prog_STRIP"; then 2465 ac_ct_STRIP=$STRIP 2466 # Extract the first word of "strip", so it can be a program name with args. 2467set dummy strip; ac_word=$2 2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2469$as_echo_n "checking for $ac_word... " >&6; } 2470if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2471 $as_echo_n "(cached) " >&6 2472else 2473 if test -n "$ac_ct_STRIP"; then 2474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2475else 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477for as_dir in $PATH 2478do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 for ac_exec_ext in '' $ac_executable_extensions; do 2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2483 ac_cv_prog_ac_ct_STRIP="strip" 2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2485 break 2 2486 fi 2487done 2488 done 2489IFS=$as_save_IFS 2490 2491fi 2492fi 2493ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2494if test -n "$ac_ct_STRIP"; then 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2496$as_echo "$ac_ct_STRIP" >&6; } 2497else 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2499$as_echo "no" >&6; } 2500fi 2501 2502 if test "x$ac_ct_STRIP" = x; then 2503 STRIP=":" 2504 else 2505 case $cross_compiling:$ac_tool_warned in 2506yes:) 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2509ac_tool_warned=yes ;; 2510esac 2511 STRIP=$ac_ct_STRIP 2512 fi 2513else 2514 STRIP="$ac_cv_prog_STRIP" 2515fi 2516 2517fi 2518INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2519 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2521$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2522if test -z "$MKDIR_P"; then 2523 if ${ac_cv_path_mkdir+:} false; then : 2524 $as_echo_n "(cached) " >&6 2525else 2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2527for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2528do 2529 IFS=$as_save_IFS 2530 test -z "$as_dir" && as_dir=. 2531 for ac_prog in mkdir gmkdir; do 2532 for ac_exec_ext in '' $ac_executable_extensions; do 2533 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2534 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2535 'mkdir (GNU coreutils) '* | \ 2536 'mkdir (coreutils) '* | \ 2537 'mkdir (fileutils) '4.1*) 2538 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2539 break 3;; 2540 esac 2541 done 2542 done 2543 done 2544IFS=$as_save_IFS 2545 2546fi 2547 2548 test -d ./--version && rmdir ./--version 2549 if test "${ac_cv_path_mkdir+set}" = set; then 2550 MKDIR_P="$ac_cv_path_mkdir -p" 2551 else 2552 # As a last resort, use the slow shell script. Don't cache a 2553 # value for MKDIR_P within a source directory, because that will 2554 # break other packages using the cache if that directory is 2555 # removed, or if the value is a relative name. 2556 MKDIR_P="$ac_install_sh -d" 2557 fi 2558fi 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2560$as_echo "$MKDIR_P" >&6; } 2561 2562for ac_prog in gawk mawk nawk awk 2563do 2564 # Extract the first word of "$ac_prog", so it can be a program name with args. 2565set dummy $ac_prog; ac_word=$2 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2567$as_echo_n "checking for $ac_word... " >&6; } 2568if ${ac_cv_prog_AWK+:} false; then : 2569 $as_echo_n "(cached) " >&6 2570else 2571 if test -n "$AWK"; then 2572 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2573else 2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2575for as_dir in $PATH 2576do 2577 IFS=$as_save_IFS 2578 test -z "$as_dir" && as_dir=. 2579 for ac_exec_ext in '' $ac_executable_extensions; do 2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2581 ac_cv_prog_AWK="$ac_prog" 2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2583 break 2 2584 fi 2585done 2586 done 2587IFS=$as_save_IFS 2588 2589fi 2590fi 2591AWK=$ac_cv_prog_AWK 2592if test -n "$AWK"; then 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2594$as_echo "$AWK" >&6; } 2595else 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2597$as_echo "no" >&6; } 2598fi 2599 2600 2601 test -n "$AWK" && break 2602done 2603 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2605$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2606set x ${MAKE-make} 2607ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2608if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2609 $as_echo_n "(cached) " >&6 2610else 2611 cat >conftest.make <<\_ACEOF 2612SHELL = /bin/sh 2613all: 2614 @echo '@@@%%%=$(MAKE)=@@@%%%' 2615_ACEOF 2616# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2617case `${MAKE-make} -f conftest.make 2>/dev/null` in 2618 *@@@%%%=?*=@@@%%%*) 2619 eval ac_cv_prog_make_${ac_make}_set=yes;; 2620 *) 2621 eval ac_cv_prog_make_${ac_make}_set=no;; 2622esac 2623rm -f conftest.make 2624fi 2625if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2627$as_echo "yes" >&6; } 2628 SET_MAKE= 2629else 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2631$as_echo "no" >&6; } 2632 SET_MAKE="MAKE=${MAKE-make}" 2633fi 2634 2635rm -rf .tst 2>/dev/null 2636mkdir .tst 2>/dev/null 2637if test -d .tst; then 2638 am__leading_dot=. 2639else 2640 am__leading_dot=_ 2641fi 2642rmdir .tst 2>/dev/null 2643 2644# Check whether --enable-silent-rules was given. 2645if test "${enable_silent_rules+set}" = set; then : 2646 enableval=$enable_silent_rules; 2647fi 2648 2649case $enable_silent_rules in # ((( 2650 yes) AM_DEFAULT_VERBOSITY=0;; 2651 no) AM_DEFAULT_VERBOSITY=1;; 2652 *) AM_DEFAULT_VERBOSITY=1;; 2653esac 2654am_make=${MAKE-make} 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2656$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2657if ${am_cv_make_support_nested_variables+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 if $as_echo 'TRUE=$(BAR$(V)) 2661BAR0=false 2662BAR1=true 2663V=1 2664am__doit: 2665 @$(TRUE) 2666.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2667 am_cv_make_support_nested_variables=yes 2668else 2669 am_cv_make_support_nested_variables=no 2670fi 2671fi 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2673$as_echo "$am_cv_make_support_nested_variables" >&6; } 2674if test $am_cv_make_support_nested_variables = yes; then 2675 AM_V='$(V)' 2676 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2677else 2678 AM_V=$AM_DEFAULT_VERBOSITY 2679 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2680fi 2681AM_BACKSLASH='\' 2682 2683if test "`cd $srcdir && pwd`" != "`pwd`"; then 2684 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2685 # is not polluted with repeated "-I." 2686 am__isrc=' -I$(srcdir)' 2687 # test to see if srcdir already configured 2688 if test -f $srcdir/config.status; then 2689 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2690 fi 2691fi 2692 2693# test whether we have cygpath 2694if test -z "$CYGPATH_W"; then 2695 if (cygpath --version) >/dev/null 2>/dev/null; then 2696 CYGPATH_W='cygpath -w' 2697 else 2698 CYGPATH_W=echo 2699 fi 2700fi 2701 2702 2703# Define the identity of the package. 2704 PACKAGE='xdpyinfo' 2705 VERSION='1.3.1' 2706 2707 2708cat >>confdefs.h <<_ACEOF 2709#define PACKAGE "$PACKAGE" 2710_ACEOF 2711 2712 2713cat >>confdefs.h <<_ACEOF 2714#define VERSION "$VERSION" 2715_ACEOF 2716 2717# Some tools Automake needs. 2718 2719ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2720 2721 2722AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2723 2724 2725AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2726 2727 2728AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2729 2730 2731MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2732 2733# For better backward compatibility. To be removed once Automake 1.9.x 2734# dies out for good. For more background, see: 2735# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2736# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2737mkdir_p='$(MKDIR_P)' 2738 2739# We need awk for the "check" target. The system "awk" is bad on 2740# some platforms. 2741# Always define AMTAR for backward compatibility. Yes, it's still used 2742# in the wild :-( We should find a proper way to deprecate it ... 2743AMTAR='$${TAR-tar}' 2744 2745 2746# We'll loop over all known methods to create a tar archive until one works. 2747_am_tools='gnutar pax cpio none' 2748 2749am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2750 2751 2752 2753 2754 2755 2756 2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2758$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2759 # Check whether --enable-maintainer-mode was given. 2760if test "${enable_maintainer_mode+set}" = set; then : 2761 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2762else 2763 USE_MAINTAINER_MODE=no 2764fi 2765 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2767$as_echo "$USE_MAINTAINER_MODE" >&6; } 2768 if test $USE_MAINTAINER_MODE = yes; then 2769 MAINTAINER_MODE_TRUE= 2770 MAINTAINER_MODE_FALSE='#' 2771else 2772 MAINTAINER_MODE_TRUE='#' 2773 MAINTAINER_MODE_FALSE= 2774fi 2775 2776 MAINT=$MAINTAINER_MODE_TRUE 2777 2778 2779 2780# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792DEPDIR="${am__leading_dot}deps" 2793 2794ac_config_commands="$ac_config_commands depfiles" 2795 2796 2797am_make=${MAKE-make} 2798cat > confinc << 'END' 2799am__doit: 2800 @echo this is the am__doit target 2801.PHONY: am__doit 2802END 2803# If we don't find an include directive, just comment out the code. 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2805$as_echo_n "checking for style of include used by $am_make... " >&6; } 2806am__include="#" 2807am__quote= 2808_am_result=none 2809# First try GNU make style include. 2810echo "include confinc" > confmf 2811# Ignore all kinds of additional output from 'make'. 2812case `$am_make -s -f confmf 2> /dev/null` in #( 2813*the\ am__doit\ target*) 2814 am__include=include 2815 am__quote= 2816 _am_result=GNU 2817 ;; 2818esac 2819# Now try BSD make style include. 2820if test "$am__include" = "#"; then 2821 echo '.include "confinc"' > confmf 2822 case `$am_make -s -f confmf 2> /dev/null` in #( 2823 *the\ am__doit\ target*) 2824 am__include=.include 2825 am__quote="\"" 2826 _am_result=BSD 2827 ;; 2828 esac 2829fi 2830 2831 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2833$as_echo "$_am_result" >&6; } 2834rm -f confinc confmf 2835 2836# Check whether --enable-dependency-tracking was given. 2837if test "${enable_dependency_tracking+set}" = set; then : 2838 enableval=$enable_dependency_tracking; 2839fi 2840 2841if test "x$enable_dependency_tracking" != xno; then 2842 am_depcomp="$ac_aux_dir/depcomp" 2843 AMDEPBACKSLASH='\' 2844 am__nodep='_no' 2845fi 2846 if test "x$enable_dependency_tracking" != xno; then 2847 AMDEP_TRUE= 2848 AMDEP_FALSE='#' 2849else 2850 AMDEP_TRUE='#' 2851 AMDEP_FALSE= 2852fi 2853 2854 2855ac_ext=c 2856ac_cpp='$CPP $CPPFLAGS' 2857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2859ac_compiler_gnu=$ac_cv_c_compiler_gnu 2860if test -n "$ac_tool_prefix"; then 2861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2862set dummy ${ac_tool_prefix}gcc; ac_word=$2 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864$as_echo_n "checking for $ac_word... " >&6; } 2865if ${ac_cv_prog_CC+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 if test -n "$CC"; then 2869 ac_cv_prog_CC="$CC" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 test -z "$as_dir" && as_dir=. 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2878 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883 done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888CC=$ac_cv_prog_CC 2889if test -n "$CC"; then 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2891$as_echo "$CC" >&6; } 2892else 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2894$as_echo "no" >&6; } 2895fi 2896 2897 2898fi 2899if test -z "$ac_cv_prog_CC"; then 2900 ac_ct_CC=$CC 2901 # Extract the first word of "gcc", so it can be a program name with args. 2902set dummy gcc; ac_word=$2 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2904$as_echo_n "checking for $ac_word... " >&6; } 2905if ${ac_cv_prog_ac_ct_CC+:} false; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 if test -n "$ac_ct_CC"; then 2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2910else 2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2912for as_dir in $PATH 2913do 2914 IFS=$as_save_IFS 2915 test -z "$as_dir" && as_dir=. 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2918 ac_cv_prog_ac_ct_CC="gcc" 2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2920 break 2 2921 fi 2922done 2923 done 2924IFS=$as_save_IFS 2925 2926fi 2927fi 2928ac_ct_CC=$ac_cv_prog_ac_ct_CC 2929if test -n "$ac_ct_CC"; then 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2931$as_echo "$ac_ct_CC" >&6; } 2932else 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2934$as_echo "no" >&6; } 2935fi 2936 2937 if test "x$ac_ct_CC" = x; then 2938 CC="" 2939 else 2940 case $cross_compiling:$ac_tool_warned in 2941yes:) 2942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2944ac_tool_warned=yes ;; 2945esac 2946 CC=$ac_ct_CC 2947 fi 2948else 2949 CC="$ac_cv_prog_CC" 2950fi 2951 2952if test -z "$CC"; then 2953 if test -n "$ac_tool_prefix"; then 2954 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2955set dummy ${ac_tool_prefix}cc; ac_word=$2 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2957$as_echo_n "checking for $ac_word... " >&6; } 2958if ${ac_cv_prog_CC+:} false; then : 2959 $as_echo_n "(cached) " >&6 2960else 2961 if test -n "$CC"; then 2962 ac_cv_prog_CC="$CC" # Let the user override the test. 2963else 2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2965for as_dir in $PATH 2966do 2967 IFS=$as_save_IFS 2968 test -z "$as_dir" && as_dir=. 2969 for ac_exec_ext in '' $ac_executable_extensions; do 2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2971 ac_cv_prog_CC="${ac_tool_prefix}cc" 2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2973 break 2 2974 fi 2975done 2976 done 2977IFS=$as_save_IFS 2978 2979fi 2980fi 2981CC=$ac_cv_prog_CC 2982if test -n "$CC"; then 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2984$as_echo "$CC" >&6; } 2985else 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2987$as_echo "no" >&6; } 2988fi 2989 2990 2991 fi 2992fi 2993if test -z "$CC"; then 2994 # Extract the first word of "cc", so it can be a program name with args. 2995set dummy cc; ac_word=$2 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2997$as_echo_n "checking for $ac_word... " >&6; } 2998if ${ac_cv_prog_CC+:} false; then : 2999 $as_echo_n "(cached) " >&6 3000else 3001 if test -n "$CC"; then 3002 ac_cv_prog_CC="$CC" # Let the user override the test. 3003else 3004 ac_prog_rejected=no 3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006for as_dir in $PATH 3007do 3008 IFS=$as_save_IFS 3009 test -z "$as_dir" && as_dir=. 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3013 ac_prog_rejected=yes 3014 continue 3015 fi 3016 ac_cv_prog_CC="cc" 3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3018 break 2 3019 fi 3020done 3021 done 3022IFS=$as_save_IFS 3023 3024if test $ac_prog_rejected = yes; then 3025 # We found a bogon in the path, so make sure we never use it. 3026 set dummy $ac_cv_prog_CC 3027 shift 3028 if test $# != 0; then 3029 # We chose a different compiler from the bogus one. 3030 # However, it has the same basename, so the bogon will be chosen 3031 # first if we set CC to just the basename; use the full file name. 3032 shift 3033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3034 fi 3035fi 3036fi 3037fi 3038CC=$ac_cv_prog_CC 3039if test -n "$CC"; then 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3041$as_echo "$CC" >&6; } 3042else 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3044$as_echo "no" >&6; } 3045fi 3046 3047 3048fi 3049if test -z "$CC"; then 3050 if test -n "$ac_tool_prefix"; then 3051 for ac_prog in cl.exe 3052 do 3053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3054set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3056$as_echo_n "checking for $ac_word... " >&6; } 3057if ${ac_cv_prog_CC+:} false; then : 3058 $as_echo_n "(cached) " >&6 3059else 3060 if test -n "$CC"; then 3061 ac_cv_prog_CC="$CC" # Let the user override the test. 3062else 3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3064for as_dir in $PATH 3065do 3066 IFS=$as_save_IFS 3067 test -z "$as_dir" && as_dir=. 3068 for ac_exec_ext in '' $ac_executable_extensions; do 3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3072 break 2 3073 fi 3074done 3075 done 3076IFS=$as_save_IFS 3077 3078fi 3079fi 3080CC=$ac_cv_prog_CC 3081if test -n "$CC"; then 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3083$as_echo "$CC" >&6; } 3084else 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3086$as_echo "no" >&6; } 3087fi 3088 3089 3090 test -n "$CC" && break 3091 done 3092fi 3093if test -z "$CC"; then 3094 ac_ct_CC=$CC 3095 for ac_prog in cl.exe 3096do 3097 # Extract the first word of "$ac_prog", so it can be a program name with args. 3098set dummy $ac_prog; ac_word=$2 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100$as_echo_n "checking for $ac_word... " >&6; } 3101if ${ac_cv_prog_ac_ct_CC+:} false; then : 3102 $as_echo_n "(cached) " >&6 3103else 3104 if test -n "$ac_ct_CC"; then 3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3106else 3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3108for as_dir in $PATH 3109do 3110 IFS=$as_save_IFS 3111 test -z "$as_dir" && as_dir=. 3112 for ac_exec_ext in '' $ac_executable_extensions; do 3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3114 ac_cv_prog_ac_ct_CC="$ac_prog" 3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3116 break 2 3117 fi 3118done 3119 done 3120IFS=$as_save_IFS 3121 3122fi 3123fi 3124ac_ct_CC=$ac_cv_prog_ac_ct_CC 3125if test -n "$ac_ct_CC"; then 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3127$as_echo "$ac_ct_CC" >&6; } 3128else 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3130$as_echo "no" >&6; } 3131fi 3132 3133 3134 test -n "$ac_ct_CC" && break 3135done 3136 3137 if test "x$ac_ct_CC" = x; then 3138 CC="" 3139 else 3140 case $cross_compiling:$ac_tool_warned in 3141yes:) 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3144ac_tool_warned=yes ;; 3145esac 3146 CC=$ac_ct_CC 3147 fi 3148fi 3149 3150fi 3151 3152 3153test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3155as_fn_error $? "no acceptable C compiler found in \$PATH 3156See \`config.log' for more details" "$LINENO" 5; } 3157 3158# Provide some information about the compiler. 3159$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3160set X $ac_compile 3161ac_compiler=$2 3162for ac_option in --version -v -V -qversion; do 3163 { { ac_try="$ac_compiler $ac_option >&5" 3164case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3169$as_echo "$ac_try_echo"; } >&5 3170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3171 ac_status=$? 3172 if test -s conftest.err; then 3173 sed '10a\ 3174... rest of stderr output deleted ... 3175 10q' conftest.err >conftest.er1 3176 cat conftest.er1 >&5 3177 fi 3178 rm -f conftest.er1 conftest.err 3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3180 test $ac_status = 0; } 3181done 3182 3183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3184/* end confdefs.h. */ 3185 3186int 3187main () 3188{ 3189 3190 ; 3191 return 0; 3192} 3193_ACEOF 3194ac_clean_files_save=$ac_clean_files 3195ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3196# Try to create an executable without -o first, disregard a.out. 3197# It will help us diagnose broken compilers, and finding out an intuition 3198# of exeext. 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3200$as_echo_n "checking whether the C compiler works... " >&6; } 3201ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3202 3203# The possible output files: 3204ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3205 3206ac_rmfiles= 3207for ac_file in $ac_files 3208do 3209 case $ac_file in 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3211 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3212 esac 3213done 3214rm -f $ac_rmfiles 3215 3216if { { ac_try="$ac_link_default" 3217case "(($ac_try" in 3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3219 *) ac_try_echo=$ac_try;; 3220esac 3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3222$as_echo "$ac_try_echo"; } >&5 3223 (eval "$ac_link_default") 2>&5 3224 ac_status=$? 3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3226 test $ac_status = 0; }; then : 3227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3228# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3229# in a Makefile. We should not override ac_cv_exeext if it was cached, 3230# so that the user can short-circuit this test for compilers unknown to 3231# Autoconf. 3232for ac_file in $ac_files '' 3233do 3234 test -f "$ac_file" || continue 3235 case $ac_file in 3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3237 ;; 3238 [ab].out ) 3239 # We found the default executable, but exeext='' is most 3240 # certainly right. 3241 break;; 3242 *.* ) 3243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3244 then :; else 3245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3246 fi 3247 # We set ac_cv_exeext here because the later test for it is not 3248 # safe: cross compilers may not add the suffix if given an `-o' 3249 # argument, so we may need to know it at that point already. 3250 # Even if this section looks crufty: it has the advantage of 3251 # actually working. 3252 break;; 3253 * ) 3254 break;; 3255 esac 3256done 3257test "$ac_cv_exeext" = no && ac_cv_exeext= 3258 3259else 3260 ac_file='' 3261fi 3262if test -z "$ac_file"; then : 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3264$as_echo "no" >&6; } 3265$as_echo "$as_me: failed program was:" >&5 3266sed 's/^/| /' conftest.$ac_ext >&5 3267 3268{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3270as_fn_error 77 "C compiler cannot create executables 3271See \`config.log' for more details" "$LINENO" 5; } 3272else 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3274$as_echo "yes" >&6; } 3275fi 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3277$as_echo_n "checking for C compiler default output file name... " >&6; } 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3279$as_echo "$ac_file" >&6; } 3280ac_exeext=$ac_cv_exeext 3281 3282rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3283ac_clean_files=$ac_clean_files_save 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3285$as_echo_n "checking for suffix of executables... " >&6; } 3286if { { ac_try="$ac_link" 3287case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3292$as_echo "$ac_try_echo"; } >&5 3293 (eval "$ac_link") 2>&5 3294 ac_status=$? 3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3296 test $ac_status = 0; }; then : 3297 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3298# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3299# work properly (i.e., refer to `conftest.exe'), while it won't with 3300# `rm'. 3301for ac_file in conftest.exe conftest conftest.*; do 3302 test -f "$ac_file" || continue 3303 case $ac_file in 3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3306 break;; 3307 * ) break;; 3308 esac 3309done 3310else 3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3313as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3314See \`config.log' for more details" "$LINENO" 5; } 3315fi 3316rm -f conftest conftest$ac_cv_exeext 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3318$as_echo "$ac_cv_exeext" >&6; } 3319 3320rm -f conftest.$ac_ext 3321EXEEXT=$ac_cv_exeext 3322ac_exeext=$EXEEXT 3323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3324/* end confdefs.h. */ 3325#include <stdio.h> 3326int 3327main () 3328{ 3329FILE *f = fopen ("conftest.out", "w"); 3330 return ferror (f) || fclose (f) != 0; 3331 3332 ; 3333 return 0; 3334} 3335_ACEOF 3336ac_clean_files="$ac_clean_files conftest.out" 3337# Check that the compiler produces executables we can run. If not, either 3338# the compiler is broken, or we cross compile. 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3340$as_echo_n "checking whether we are cross compiling... " >&6; } 3341if test "$cross_compiling" != yes; then 3342 { { ac_try="$ac_link" 3343case "(($ac_try" in 3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3345 *) ac_try_echo=$ac_try;; 3346esac 3347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3348$as_echo "$ac_try_echo"; } >&5 3349 (eval "$ac_link") 2>&5 3350 ac_status=$? 3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3352 test $ac_status = 0; } 3353 if { ac_try='./conftest$ac_cv_exeext' 3354 { { case "(($ac_try" in 3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3356 *) ac_try_echo=$ac_try;; 3357esac 3358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3359$as_echo "$ac_try_echo"; } >&5 3360 (eval "$ac_try") 2>&5 3361 ac_status=$? 3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3363 test $ac_status = 0; }; }; then 3364 cross_compiling=no 3365 else 3366 if test "$cross_compiling" = maybe; then 3367 cross_compiling=yes 3368 else 3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3371as_fn_error $? "cannot run C compiled programs. 3372If you meant to cross compile, use \`--host'. 3373See \`config.log' for more details" "$LINENO" 5; } 3374 fi 3375 fi 3376fi 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3378$as_echo "$cross_compiling" >&6; } 3379 3380rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3381ac_clean_files=$ac_clean_files_save 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3383$as_echo_n "checking for suffix of object files... " >&6; } 3384if ${ac_cv_objext+:} false; then : 3385 $as_echo_n "(cached) " >&6 3386else 3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398rm -f conftest.o conftest.obj 3399if { { ac_try="$ac_compile" 3400case "(($ac_try" in 3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3402 *) ac_try_echo=$ac_try;; 3403esac 3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3405$as_echo "$ac_try_echo"; } >&5 3406 (eval "$ac_compile") 2>&5 3407 ac_status=$? 3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3409 test $ac_status = 0; }; then : 3410 for ac_file in conftest.o conftest.obj conftest.*; do 3411 test -f "$ac_file" || continue; 3412 case $ac_file in 3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3415 break;; 3416 esac 3417done 3418else 3419 $as_echo "$as_me: failed program was:" >&5 3420sed 's/^/| /' conftest.$ac_ext >&5 3421 3422{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3424as_fn_error $? "cannot compute suffix of object files: cannot compile 3425See \`config.log' for more details" "$LINENO" 5; } 3426fi 3427rm -f conftest.$ac_cv_objext conftest.$ac_ext 3428fi 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3430$as_echo "$ac_cv_objext" >&6; } 3431OBJEXT=$ac_cv_objext 3432ac_objext=$OBJEXT 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3434$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3435if ${ac_cv_c_compiler_gnu+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437else 3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439/* end confdefs.h. */ 3440 3441int 3442main () 3443{ 3444#ifndef __GNUC__ 3445 choke me 3446#endif 3447 3448 ; 3449 return 0; 3450} 3451_ACEOF 3452if ac_fn_c_try_compile "$LINENO"; then : 3453 ac_compiler_gnu=yes 3454else 3455 ac_compiler_gnu=no 3456fi 3457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3458ac_cv_c_compiler_gnu=$ac_compiler_gnu 3459 3460fi 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3462$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3463if test $ac_compiler_gnu = yes; then 3464 GCC=yes 3465else 3466 GCC= 3467fi 3468ac_test_CFLAGS=${CFLAGS+set} 3469ac_save_CFLAGS=$CFLAGS 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3471$as_echo_n "checking whether $CC accepts -g... " >&6; } 3472if ${ac_cv_prog_cc_g+:} false; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 ac_save_c_werror_flag=$ac_c_werror_flag 3476 ac_c_werror_flag=yes 3477 ac_cv_prog_cc_g=no 3478 CFLAGS="-g" 3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3480/* end confdefs.h. */ 3481 3482int 3483main () 3484{ 3485 3486 ; 3487 return 0; 3488} 3489_ACEOF 3490if ac_fn_c_try_compile "$LINENO"; then : 3491 ac_cv_prog_cc_g=yes 3492else 3493 CFLAGS="" 3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495/* end confdefs.h. */ 3496 3497int 3498main () 3499{ 3500 3501 ; 3502 return 0; 3503} 3504_ACEOF 3505if ac_fn_c_try_compile "$LINENO"; then : 3506 3507else 3508 ac_c_werror_flag=$ac_save_c_werror_flag 3509 CFLAGS="-g" 3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3511/* end confdefs.h. */ 3512 3513int 3514main () 3515{ 3516 3517 ; 3518 return 0; 3519} 3520_ACEOF 3521if ac_fn_c_try_compile "$LINENO"; then : 3522 ac_cv_prog_cc_g=yes 3523fi 3524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3525fi 3526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3527fi 3528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3529 ac_c_werror_flag=$ac_save_c_werror_flag 3530fi 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3532$as_echo "$ac_cv_prog_cc_g" >&6; } 3533if test "$ac_test_CFLAGS" = set; then 3534 CFLAGS=$ac_save_CFLAGS 3535elif test $ac_cv_prog_cc_g = yes; then 3536 if test "$GCC" = yes; then 3537 CFLAGS="-g -O2" 3538 else 3539 CFLAGS="-g" 3540 fi 3541else 3542 if test "$GCC" = yes; then 3543 CFLAGS="-O2" 3544 else 3545 CFLAGS= 3546 fi 3547fi 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3549$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3550if ${ac_cv_prog_cc_c89+:} false; then : 3551 $as_echo_n "(cached) " >&6 3552else 3553 ac_cv_prog_cc_c89=no 3554ac_save_CC=$CC 3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556/* end confdefs.h. */ 3557#include <stdarg.h> 3558#include <stdio.h> 3559#include <sys/types.h> 3560#include <sys/stat.h> 3561/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3562struct buf { int x; }; 3563FILE * (*rcsopen) (struct buf *, struct stat *, int); 3564static char *e (p, i) 3565 char **p; 3566 int i; 3567{ 3568 return p[i]; 3569} 3570static char *f (char * (*g) (char **, int), char **p, ...) 3571{ 3572 char *s; 3573 va_list v; 3574 va_start (v,p); 3575 s = g (p, va_arg (v,int)); 3576 va_end (v); 3577 return s; 3578} 3579 3580/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3581 function prototypes and stuff, but not '\xHH' hex character constants. 3582 These don't provoke an error unfortunately, instead are silently treated 3583 as 'x'. The following induces an error, until -std is added to get 3584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3585 array size at least. It's necessary to write '\x00'==0 to get something 3586 that's true only with -std. */ 3587int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3588 3589/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3590 inside strings and character constants. */ 3591#define FOO(x) 'x' 3592int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3593 3594int test (int i, double x); 3595struct s1 {int (*f) (int a);}; 3596struct s2 {int (*f) (double a);}; 3597int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3598int argc; 3599char **argv; 3600int 3601main () 3602{ 3603return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3604 ; 3605 return 0; 3606} 3607_ACEOF 3608for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3610do 3611 CC="$ac_save_CC $ac_arg" 3612 if ac_fn_c_try_compile "$LINENO"; then : 3613 ac_cv_prog_cc_c89=$ac_arg 3614fi 3615rm -f core conftest.err conftest.$ac_objext 3616 test "x$ac_cv_prog_cc_c89" != "xno" && break 3617done 3618rm -f conftest.$ac_ext 3619CC=$ac_save_CC 3620 3621fi 3622# AC_CACHE_VAL 3623case "x$ac_cv_prog_cc_c89" in 3624 x) 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3626$as_echo "none needed" >&6; } ;; 3627 xno) 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3629$as_echo "unsupported" >&6; } ;; 3630 *) 3631 CC="$CC $ac_cv_prog_cc_c89" 3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3633$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3634esac 3635if test "x$ac_cv_prog_cc_c89" != xno; then : 3636 3637fi 3638 3639ac_ext=c 3640ac_cpp='$CPP $CPPFLAGS' 3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3643ac_compiler_gnu=$ac_cv_c_compiler_gnu 3644 3645depcc="$CC" am_compiler_list= 3646 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3648$as_echo_n "checking dependency style of $depcc... " >&6; } 3649if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3650 $as_echo_n "(cached) " >&6 3651else 3652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3653 # We make a subdir and do the tests there. Otherwise we can end up 3654 # making bogus files that we don't know about and never remove. For 3655 # instance it was reported that on HP-UX the gcc test will end up 3656 # making a dummy file named 'D' -- because '-MD' means "put the output 3657 # in D". 3658 rm -rf conftest.dir 3659 mkdir conftest.dir 3660 # Copy depcomp to subdir because otherwise we won't find it if we're 3661 # using a relative directory. 3662 cp "$am_depcomp" conftest.dir 3663 cd conftest.dir 3664 # We will build objects and dependencies in a subdirectory because 3665 # it helps to detect inapplicable dependency modes. For instance 3666 # both Tru64's cc and ICC support -MD to output dependencies as a 3667 # side effect of compilation, but ICC will put the dependencies in 3668 # the current directory while Tru64 will put them in the object 3669 # directory. 3670 mkdir sub 3671 3672 am_cv_CC_dependencies_compiler_type=none 3673 if test "$am_compiler_list" = ""; then 3674 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3675 fi 3676 am__universal=false 3677 case " $depcc " in #( 3678 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3679 esac 3680 3681 for depmode in $am_compiler_list; do 3682 # Setup a source with many dependencies, because some compilers 3683 # like to wrap large dependency lists on column 80 (with \), and 3684 # we should not choose a depcomp mode which is confused by this. 3685 # 3686 # We need to recreate these files for each test, as the compiler may 3687 # overwrite some of them when testing with obscure command lines. 3688 # This happens at least with the AIX C compiler. 3689 : > sub/conftest.c 3690 for i in 1 2 3 4 5 6; do 3691 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3692 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3693 # Solaris 10 /bin/sh. 3694 echo '/* dummy */' > sub/conftst$i.h 3695 done 3696 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3697 3698 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3699 # mode. It turns out that the SunPro C++ compiler does not properly 3700 # handle '-M -o', and we need to detect this. Also, some Intel 3701 # versions had trouble with output in subdirs. 3702 am__obj=sub/conftest.${OBJEXT-o} 3703 am__minus_obj="-o $am__obj" 3704 case $depmode in 3705 gcc) 3706 # This depmode causes a compiler race in universal mode. 3707 test "$am__universal" = false || continue 3708 ;; 3709 nosideeffect) 3710 # After this tag, mechanisms are not by side-effect, so they'll 3711 # only be used when explicitly requested. 3712 if test "x$enable_dependency_tracking" = xyes; then 3713 continue 3714 else 3715 break 3716 fi 3717 ;; 3718 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3719 # This compiler won't grok '-c -o', but also, the minuso test has 3720 # not run yet. These depmodes are late enough in the game, and 3721 # so weak that their functioning should not be impacted. 3722 am__obj=conftest.${OBJEXT-o} 3723 am__minus_obj= 3724 ;; 3725 none) break ;; 3726 esac 3727 if depmode=$depmode \ 3728 source=sub/conftest.c object=$am__obj \ 3729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3730 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3731 >/dev/null 2>conftest.err && 3732 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3733 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3734 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3735 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3736 # icc doesn't choke on unknown options, it will just issue warnings 3737 # or remarks (even with -Werror). So we grep stderr for any message 3738 # that says an option was ignored or not supported. 3739 # When given -MP, icc 7.0 and 7.1 complain thusly: 3740 # icc: Command line warning: ignoring option '-M'; no argument required 3741 # The diagnosis changed in icc 8.0: 3742 # icc: Command line remark: option '-MP' not supported 3743 if (grep 'ignoring option' conftest.err || 3744 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3745 am_cv_CC_dependencies_compiler_type=$depmode 3746 break 3747 fi 3748 fi 3749 done 3750 3751 cd .. 3752 rm -rf conftest.dir 3753else 3754 am_cv_CC_dependencies_compiler_type=none 3755fi 3756 3757fi 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3759$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3760CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3761 3762 if 3763 test "x$enable_dependency_tracking" != xno \ 3764 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3765 am__fastdepCC_TRUE= 3766 am__fastdepCC_FALSE='#' 3767else 3768 am__fastdepCC_TRUE='#' 3769 am__fastdepCC_FALSE= 3770fi 3771 3772 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3774$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3775if ${ac_cv_prog_cc_c99+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 ac_cv_prog_cc_c99=no 3779ac_save_CC=$CC 3780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781/* end confdefs.h. */ 3782#include <stdarg.h> 3783#include <stdbool.h> 3784#include <stdlib.h> 3785#include <wchar.h> 3786#include <stdio.h> 3787 3788// Check varargs macros. These examples are taken from C99 6.10.3.5. 3789#define debug(...) fprintf (stderr, __VA_ARGS__) 3790#define showlist(...) puts (#__VA_ARGS__) 3791#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3792static void 3793test_varargs_macros (void) 3794{ 3795 int x = 1234; 3796 int y = 5678; 3797 debug ("Flag"); 3798 debug ("X = %d\n", x); 3799 showlist (The first, second, and third items.); 3800 report (x>y, "x is %d but y is %d", x, y); 3801} 3802 3803// Check long long types. 3804#define BIG64 18446744073709551615ull 3805#define BIG32 4294967295ul 3806#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3807#if !BIG_OK 3808 your preprocessor is broken; 3809#endif 3810#if BIG_OK 3811#else 3812 your preprocessor is broken; 3813#endif 3814static long long int bignum = -9223372036854775807LL; 3815static unsigned long long int ubignum = BIG64; 3816 3817struct incomplete_array 3818{ 3819 int datasize; 3820 double data[]; 3821}; 3822 3823struct named_init { 3824 int number; 3825 const wchar_t *name; 3826 double average; 3827}; 3828 3829typedef const char *ccp; 3830 3831static inline int 3832test_restrict (ccp restrict text) 3833{ 3834 // See if C++-style comments work. 3835 // Iterate through items via the restricted pointer. 3836 // Also check for declarations in for loops. 3837 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3838 continue; 3839 return 0; 3840} 3841 3842// Check varargs and va_copy. 3843static void 3844test_varargs (const char *format, ...) 3845{ 3846 va_list args; 3847 va_start (args, format); 3848 va_list args_copy; 3849 va_copy (args_copy, args); 3850 3851 const char *str; 3852 int number; 3853 float fnumber; 3854 3855 while (*format) 3856 { 3857 switch (*format++) 3858 { 3859 case 's': // string 3860 str = va_arg (args_copy, const char *); 3861 break; 3862 case 'd': // int 3863 number = va_arg (args_copy, int); 3864 break; 3865 case 'f': // float 3866 fnumber = va_arg (args_copy, double); 3867 break; 3868 default: 3869 break; 3870 } 3871 } 3872 va_end (args_copy); 3873 va_end (args); 3874} 3875 3876int 3877main () 3878{ 3879 3880 // Check bool. 3881 _Bool success = false; 3882 3883 // Check restrict. 3884 if (test_restrict ("String literal") == 0) 3885 success = true; 3886 char *restrict newvar = "Another string"; 3887 3888 // Check varargs. 3889 test_varargs ("s, d' f .", "string", 65, 34.234); 3890 test_varargs_macros (); 3891 3892 // Check flexible array members. 3893 struct incomplete_array *ia = 3894 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3895 ia->datasize = 10; 3896 for (int i = 0; i < ia->datasize; ++i) 3897 ia->data[i] = i * 1.234; 3898 3899 // Check named initializers. 3900 struct named_init ni = { 3901 .number = 34, 3902 .name = L"Test wide string", 3903 .average = 543.34343, 3904 }; 3905 3906 ni.number = 58; 3907 3908 int dynamic_array[ni.number]; 3909 dynamic_array[ni.number - 1] = 543; 3910 3911 // work around unused variable warnings 3912 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3913 || dynamic_array[ni.number - 1] != 543); 3914 3915 ; 3916 return 0; 3917} 3918_ACEOF 3919for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3920do 3921 CC="$ac_save_CC $ac_arg" 3922 if ac_fn_c_try_compile "$LINENO"; then : 3923 ac_cv_prog_cc_c99=$ac_arg 3924fi 3925rm -f core conftest.err conftest.$ac_objext 3926 test "x$ac_cv_prog_cc_c99" != "xno" && break 3927done 3928rm -f conftest.$ac_ext 3929CC=$ac_save_CC 3930 3931fi 3932# AC_CACHE_VAL 3933case "x$ac_cv_prog_cc_c99" in 3934 x) 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3936$as_echo "none needed" >&6; } ;; 3937 xno) 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3939$as_echo "unsupported" >&6; } ;; 3940 *) 3941 CC="$CC $ac_cv_prog_cc_c99" 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3943$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3944esac 3945if test "x$ac_cv_prog_cc_c99" != xno; then : 3946 3947fi 3948 3949 3950 3951ac_ext=c 3952ac_cpp='$CPP $CPPFLAGS' 3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3955ac_compiler_gnu=$ac_cv_c_compiler_gnu 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3957$as_echo_n "checking how to run the C preprocessor... " >&6; } 3958# On Suns, sometimes $CPP names a directory. 3959if test -n "$CPP" && test -d "$CPP"; then 3960 CPP= 3961fi 3962if test -z "$CPP"; then 3963 if ${ac_cv_prog_CPP+:} false; then : 3964 $as_echo_n "(cached) " >&6 3965else 3966 # Double quotes because CPP needs to be expanded 3967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3968 do 3969 ac_preproc_ok=false 3970for ac_c_preproc_warn_flag in '' yes 3971do 3972 # Use a header file that comes with gcc, so configuring glibc 3973 # with a fresh cross-compiler works. 3974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3975 # <limits.h> exists even on freestanding compilers. 3976 # On the NeXT, cc -E runs the code through the compiler's parser, 3977 # not just through cpp. "Syntax error" is here to catch this case. 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980#ifdef __STDC__ 3981# include <limits.h> 3982#else 3983# include <assert.h> 3984#endif 3985 Syntax error 3986_ACEOF 3987if ac_fn_c_try_cpp "$LINENO"; then : 3988 3989else 3990 # Broken: fails on valid input. 3991continue 3992fi 3993rm -f conftest.err conftest.i conftest.$ac_ext 3994 3995 # OK, works on sane cases. Now check whether nonexistent headers 3996 # can be detected and how. 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998/* end confdefs.h. */ 3999#include <ac_nonexistent.h> 4000_ACEOF 4001if ac_fn_c_try_cpp "$LINENO"; then : 4002 # Broken: success on invalid input. 4003continue 4004else 4005 # Passes both tests. 4006ac_preproc_ok=: 4007break 4008fi 4009rm -f conftest.err conftest.i conftest.$ac_ext 4010 4011done 4012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4013rm -f conftest.i conftest.err conftest.$ac_ext 4014if $ac_preproc_ok; then : 4015 break 4016fi 4017 4018 done 4019 ac_cv_prog_CPP=$CPP 4020 4021fi 4022 CPP=$ac_cv_prog_CPP 4023else 4024 ac_cv_prog_CPP=$CPP 4025fi 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4027$as_echo "$CPP" >&6; } 4028ac_preproc_ok=false 4029for ac_c_preproc_warn_flag in '' yes 4030do 4031 # Use a header file that comes with gcc, so configuring glibc 4032 # with a fresh cross-compiler works. 4033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4034 # <limits.h> exists even on freestanding compilers. 4035 # On the NeXT, cc -E runs the code through the compiler's parser, 4036 # not just through cpp. "Syntax error" is here to catch this case. 4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038/* end confdefs.h. */ 4039#ifdef __STDC__ 4040# include <limits.h> 4041#else 4042# include <assert.h> 4043#endif 4044 Syntax error 4045_ACEOF 4046if ac_fn_c_try_cpp "$LINENO"; then : 4047 4048else 4049 # Broken: fails on valid input. 4050continue 4051fi 4052rm -f conftest.err conftest.i conftest.$ac_ext 4053 4054 # OK, works on sane cases. Now check whether nonexistent headers 4055 # can be detected and how. 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057/* end confdefs.h. */ 4058#include <ac_nonexistent.h> 4059_ACEOF 4060if ac_fn_c_try_cpp "$LINENO"; then : 4061 # Broken: success on invalid input. 4062continue 4063else 4064 # Passes both tests. 4065ac_preproc_ok=: 4066break 4067fi 4068rm -f conftest.err conftest.i conftest.$ac_ext 4069 4070done 4071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4072rm -f conftest.i conftest.err conftest.$ac_ext 4073if $ac_preproc_ok; then : 4074 4075else 4076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4078as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4079See \`config.log' for more details" "$LINENO" 5; } 4080fi 4081 4082ac_ext=c 4083ac_cpp='$CPP $CPPFLAGS' 4084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4086ac_compiler_gnu=$ac_cv_c_compiler_gnu 4087 4088 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4090$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4091if ${ac_cv_path_GREP+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093else 4094 if test -z "$GREP"; then 4095 ac_path_GREP_found=false 4096 # Loop through the user's path and test for each of PROGNAME-LIST 4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4098for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4099do 4100 IFS=$as_save_IFS 4101 test -z "$as_dir" && as_dir=. 4102 for ac_prog in grep ggrep; do 4103 for ac_exec_ext in '' $ac_executable_extensions; do 4104 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4105 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4106# Check for GNU ac_path_GREP and select it if it is found. 4107 # Check for GNU $ac_path_GREP 4108case `"$ac_path_GREP" --version 2>&1` in 4109*GNU*) 4110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4111*) 4112 ac_count=0 4113 $as_echo_n 0123456789 >"conftest.in" 4114 while : 4115 do 4116 cat "conftest.in" "conftest.in" >"conftest.tmp" 4117 mv "conftest.tmp" "conftest.in" 4118 cp "conftest.in" "conftest.nl" 4119 $as_echo 'GREP' >> "conftest.nl" 4120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4122 as_fn_arith $ac_count + 1 && ac_count=$as_val 4123 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4124 # Best one so far, save it but keep looking for a better one 4125 ac_cv_path_GREP="$ac_path_GREP" 4126 ac_path_GREP_max=$ac_count 4127 fi 4128 # 10*(2^10) chars as input seems more than enough 4129 test $ac_count -gt 10 && break 4130 done 4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4132esac 4133 4134 $ac_path_GREP_found && break 3 4135 done 4136 done 4137 done 4138IFS=$as_save_IFS 4139 if test -z "$ac_cv_path_GREP"; then 4140 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4141 fi 4142else 4143 ac_cv_path_GREP=$GREP 4144fi 4145 4146fi 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4148$as_echo "$ac_cv_path_GREP" >&6; } 4149 GREP="$ac_cv_path_GREP" 4150 4151 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4153$as_echo_n "checking for egrep... " >&6; } 4154if ${ac_cv_path_EGREP+:} false; then : 4155 $as_echo_n "(cached) " >&6 4156else 4157 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4158 then ac_cv_path_EGREP="$GREP -E" 4159 else 4160 if test -z "$EGREP"; then 4161 ac_path_EGREP_found=false 4162 # Loop through the user's path and test for each of PROGNAME-LIST 4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4165do 4166 IFS=$as_save_IFS 4167 test -z "$as_dir" && as_dir=. 4168 for ac_prog in egrep; do 4169 for ac_exec_ext in '' $ac_executable_extensions; do 4170 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4171 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4172# Check for GNU ac_path_EGREP and select it if it is found. 4173 # Check for GNU $ac_path_EGREP 4174case `"$ac_path_EGREP" --version 2>&1` in 4175*GNU*) 4176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4177*) 4178 ac_count=0 4179 $as_echo_n 0123456789 >"conftest.in" 4180 while : 4181 do 4182 cat "conftest.in" "conftest.in" >"conftest.tmp" 4183 mv "conftest.tmp" "conftest.in" 4184 cp "conftest.in" "conftest.nl" 4185 $as_echo 'EGREP' >> "conftest.nl" 4186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4188 as_fn_arith $ac_count + 1 && ac_count=$as_val 4189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4190 # Best one so far, save it but keep looking for a better one 4191 ac_cv_path_EGREP="$ac_path_EGREP" 4192 ac_path_EGREP_max=$ac_count 4193 fi 4194 # 10*(2^10) chars as input seems more than enough 4195 test $ac_count -gt 10 && break 4196 done 4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4198esac 4199 4200 $ac_path_EGREP_found && break 3 4201 done 4202 done 4203 done 4204IFS=$as_save_IFS 4205 if test -z "$ac_cv_path_EGREP"; then 4206 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4207 fi 4208else 4209 ac_cv_path_EGREP=$EGREP 4210fi 4211 4212 fi 4213fi 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4215$as_echo "$ac_cv_path_EGREP" >&6; } 4216 EGREP="$ac_cv_path_EGREP" 4217 4218 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4220$as_echo_n "checking for ANSI C header files... " >&6; } 4221if ${ac_cv_header_stdc+:} false; then : 4222 $as_echo_n "(cached) " >&6 4223else 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4225/* end confdefs.h. */ 4226#include <stdlib.h> 4227#include <stdarg.h> 4228#include <string.h> 4229#include <float.h> 4230 4231int 4232main () 4233{ 4234 4235 ; 4236 return 0; 4237} 4238_ACEOF 4239if ac_fn_c_try_compile "$LINENO"; then : 4240 ac_cv_header_stdc=yes 4241else 4242 ac_cv_header_stdc=no 4243fi 4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4245 4246if test $ac_cv_header_stdc = yes; then 4247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249/* end confdefs.h. */ 4250#include <string.h> 4251 4252_ACEOF 4253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4254 $EGREP "memchr" >/dev/null 2>&1; then : 4255 4256else 4257 ac_cv_header_stdc=no 4258fi 4259rm -f conftest* 4260 4261fi 4262 4263if test $ac_cv_header_stdc = yes; then 4264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266/* end confdefs.h. */ 4267#include <stdlib.h> 4268 4269_ACEOF 4270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4271 $EGREP "free" >/dev/null 2>&1; then : 4272 4273else 4274 ac_cv_header_stdc=no 4275fi 4276rm -f conftest* 4277 4278fi 4279 4280if test $ac_cv_header_stdc = yes; then 4281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4282 if test "$cross_compiling" = yes; then : 4283 : 4284else 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287#include <ctype.h> 4288#include <stdlib.h> 4289#if ((' ' & 0x0FF) == 0x020) 4290# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4291# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4292#else 4293# define ISLOWER(c) \ 4294 (('a' <= (c) && (c) <= 'i') \ 4295 || ('j' <= (c) && (c) <= 'r') \ 4296 || ('s' <= (c) && (c) <= 'z')) 4297# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4298#endif 4299 4300#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4301int 4302main () 4303{ 4304 int i; 4305 for (i = 0; i < 256; i++) 4306 if (XOR (islower (i), ISLOWER (i)) 4307 || toupper (i) != TOUPPER (i)) 4308 return 2; 4309 return 0; 4310} 4311_ACEOF 4312if ac_fn_c_try_run "$LINENO"; then : 4313 4314else 4315 ac_cv_header_stdc=no 4316fi 4317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4318 conftest.$ac_objext conftest.beam conftest.$ac_ext 4319fi 4320 4321fi 4322fi 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4324$as_echo "$ac_cv_header_stdc" >&6; } 4325if test $ac_cv_header_stdc = yes; then 4326 4327$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4328 4329fi 4330 4331# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4332for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4333 inttypes.h stdint.h unistd.h 4334do : 4335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4336ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4337" 4338if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4339 cat >>confdefs.h <<_ACEOF 4340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4341_ACEOF 4342 4343fi 4344 4345done 4346 4347 4348 4349 4350 4351 4352ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4353if test "x$ac_cv_have_decl___clang__" = xyes; then : 4354 CLANGCC="yes" 4355else 4356 CLANGCC="no" 4357fi 4358 4359ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4360if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4361 INTELCC="yes" 4362else 4363 INTELCC="no" 4364fi 4365 4366ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4367if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4368 SUNCC="yes" 4369else 4370 SUNCC="no" 4371fi 4372 4373 4374 4375 4376if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4377 if test -n "$ac_tool_prefix"; then 4378 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4379set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4381$as_echo_n "checking for $ac_word... " >&6; } 4382if ${ac_cv_path_PKG_CONFIG+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 case $PKG_CONFIG in 4386 [\\/]* | ?:[\\/]*) 4387 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4388 ;; 4389 *) 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4391for as_dir in $PATH 4392do 4393 IFS=$as_save_IFS 4394 test -z "$as_dir" && as_dir=. 4395 for ac_exec_ext in '' $ac_executable_extensions; do 4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4397 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4399 break 2 4400 fi 4401done 4402 done 4403IFS=$as_save_IFS 4404 4405 ;; 4406esac 4407fi 4408PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4409if test -n "$PKG_CONFIG"; then 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4411$as_echo "$PKG_CONFIG" >&6; } 4412else 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4414$as_echo "no" >&6; } 4415fi 4416 4417 4418fi 4419if test -z "$ac_cv_path_PKG_CONFIG"; then 4420 ac_pt_PKG_CONFIG=$PKG_CONFIG 4421 # Extract the first word of "pkg-config", so it can be a program name with args. 4422set dummy pkg-config; ac_word=$2 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4424$as_echo_n "checking for $ac_word... " >&6; } 4425if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4426 $as_echo_n "(cached) " >&6 4427else 4428 case $ac_pt_PKG_CONFIG in 4429 [\\/]* | ?:[\\/]*) 4430 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4431 ;; 4432 *) 4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434for as_dir in $PATH 4435do 4436 IFS=$as_save_IFS 4437 test -z "$as_dir" && as_dir=. 4438 for ac_exec_ext in '' $ac_executable_extensions; do 4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4440 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4442 break 2 4443 fi 4444done 4445 done 4446IFS=$as_save_IFS 4447 4448 ;; 4449esac 4450fi 4451ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4452if test -n "$ac_pt_PKG_CONFIG"; then 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4454$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4455else 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4457$as_echo "no" >&6; } 4458fi 4459 4460 if test "x$ac_pt_PKG_CONFIG" = x; then 4461 PKG_CONFIG="" 4462 else 4463 case $cross_compiling:$ac_tool_warned in 4464yes:) 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4467ac_tool_warned=yes ;; 4468esac 4469 PKG_CONFIG=$ac_pt_PKG_CONFIG 4470 fi 4471else 4472 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4473fi 4474 4475fi 4476if test -n "$PKG_CONFIG"; then 4477 _pkg_min_version=0.9.0 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4479$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4480 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4482$as_echo "yes" >&6; } 4483 else 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4485$as_echo "no" >&6; } 4486 PKG_CONFIG="" 4487 fi 4488 4489fi 4490# Make sure we can run config.sub. 4491$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4492 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4493 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4495$as_echo_n "checking build system type... " >&6; } 4496if ${ac_cv_build+:} false; then : 4497 $as_echo_n "(cached) " >&6 4498else 4499 ac_build_alias=$build_alias 4500test "x$ac_build_alias" = x && 4501 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4502test "x$ac_build_alias" = x && 4503 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4504ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4506 4507fi 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4509$as_echo "$ac_cv_build" >&6; } 4510case $ac_cv_build in 4511*-*-*) ;; 4512*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4513esac 4514build=$ac_cv_build 4515ac_save_IFS=$IFS; IFS='-' 4516set x $ac_cv_build 4517shift 4518build_cpu=$1 4519build_vendor=$2 4520shift; shift 4521# Remember, the first character of IFS is used to create $*, 4522# except with old shells: 4523build_os=$* 4524IFS=$ac_save_IFS 4525case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4526 4527 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4529$as_echo_n "checking host system type... " >&6; } 4530if ${ac_cv_host+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 if test "x$host_alias" = x; then 4534 ac_cv_host=$ac_cv_build 4535else 4536 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4538fi 4539 4540fi 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4542$as_echo "$ac_cv_host" >&6; } 4543case $ac_cv_host in 4544*-*-*) ;; 4545*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4546esac 4547host=$ac_cv_host 4548ac_save_IFS=$IFS; IFS='-' 4549set x $ac_cv_host 4550shift 4551host_cpu=$1 4552host_vendor=$2 4553shift; shift 4554# Remember, the first character of IFS is used to create $*, 4555# except with old shells: 4556host_os=$* 4557IFS=$ac_save_IFS 4558case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4559 4560 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4562$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4563if ${ac_cv_path_SED+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4567 for ac_i in 1 2 3 4 5 6 7; do 4568 ac_script="$ac_script$as_nl$ac_script" 4569 done 4570 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4571 { ac_script=; unset ac_script;} 4572 if test -z "$SED"; then 4573 ac_path_SED_found=false 4574 # Loop through the user's path and test for each of PROGNAME-LIST 4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4576for as_dir in $PATH 4577do 4578 IFS=$as_save_IFS 4579 test -z "$as_dir" && as_dir=. 4580 for ac_prog in sed gsed; do 4581 for ac_exec_ext in '' $ac_executable_extensions; do 4582 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4583 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4584# Check for GNU ac_path_SED and select it if it is found. 4585 # Check for GNU $ac_path_SED 4586case `"$ac_path_SED" --version 2>&1` in 4587*GNU*) 4588 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4589*) 4590 ac_count=0 4591 $as_echo_n 0123456789 >"conftest.in" 4592 while : 4593 do 4594 cat "conftest.in" "conftest.in" >"conftest.tmp" 4595 mv "conftest.tmp" "conftest.in" 4596 cp "conftest.in" "conftest.nl" 4597 $as_echo '' >> "conftest.nl" 4598 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4600 as_fn_arith $ac_count + 1 && ac_count=$as_val 4601 if test $ac_count -gt ${ac_path_SED_max-0}; then 4602 # Best one so far, save it but keep looking for a better one 4603 ac_cv_path_SED="$ac_path_SED" 4604 ac_path_SED_max=$ac_count 4605 fi 4606 # 10*(2^10) chars as input seems more than enough 4607 test $ac_count -gt 10 && break 4608 done 4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4610esac 4611 4612 $ac_path_SED_found && break 3 4613 done 4614 done 4615 done 4616IFS=$as_save_IFS 4617 if test -z "$ac_cv_path_SED"; then 4618 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4619 fi 4620else 4621 ac_cv_path_SED=$SED 4622fi 4623 4624fi 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4626$as_echo "$ac_cv_path_SED" >&6; } 4627 SED="$ac_cv_path_SED" 4628 rm -f conftest.sed 4629 4630 4631 4632 4633 4634 4635# Check whether --enable-selective-werror was given. 4636if test "${enable_selective_werror+set}" = set; then : 4637 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4638else 4639 SELECTIVE_WERROR=yes 4640fi 4641 4642 4643 4644 4645 4646# -v is too short to test reliably with XORG_TESTSET_CFLAG 4647if test "x$SUNCC" = "xyes"; then 4648 BASE_CFLAGS="-v" 4649else 4650 BASE_CFLAGS="" 4651fi 4652 4653# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667xorg_testset_save_CFLAGS="$CFLAGS" 4668 4669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4674 $as_echo_n "(cached) " >&6 4675else 4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4677/* end confdefs.h. */ 4678int i; 4679_ACEOF 4680if ac_fn_c_try_compile "$LINENO"; then : 4681 xorg_cv_cc_flag_unknown_warning_option=yes 4682else 4683 xorg_cv_cc_flag_unknown_warning_option=no 4684fi 4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4686fi 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4690 CFLAGS="$xorg_testset_save_CFLAGS" 4691fi 4692 4693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4696 fi 4697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4704/* end confdefs.h. */ 4705int i; 4706_ACEOF 4707if ac_fn_c_try_compile "$LINENO"; then : 4708 xorg_cv_cc_flag_unused_command_line_argument=yes 4709else 4710 xorg_cv_cc_flag_unused_command_line_argument=no 4711fi 4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4713fi 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4717 CFLAGS="$xorg_testset_save_CFLAGS" 4718fi 4719 4720found="no" 4721 4722 if test $found = "no" ; then 4723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4725 fi 4726 4727 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4729 fi 4730 4731 CFLAGS="$CFLAGS -Wall" 4732 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4734$as_echo_n "checking if $CC supports -Wall... " >&6; } 4735 cacheid=xorg_cv_cc_flag__Wall 4736 if eval \${$cacheid+:} false; then : 4737 $as_echo_n "(cached) " >&6 4738else 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4740/* end confdefs.h. */ 4741int i; 4742int 4743main () 4744{ 4745 4746 ; 4747 return 0; 4748} 4749_ACEOF 4750if ac_fn_c_try_link "$LINENO"; then : 4751 eval $cacheid=yes 4752else 4753 eval $cacheid=no 4754fi 4755rm -f core conftest.err conftest.$ac_objext \ 4756 conftest$ac_exeext conftest.$ac_ext 4757fi 4758 4759 4760 CFLAGS="$xorg_testset_save_CFLAGS" 4761 4762 eval supported=\$$cacheid 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4764$as_echo "$supported" >&6; } 4765 if test "$supported" = "yes" ; then 4766 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4767 found="yes" 4768 fi 4769 fi 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785xorg_testset_save_CFLAGS="$CFLAGS" 4786 4787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4795/* end confdefs.h. */ 4796int i; 4797_ACEOF 4798if ac_fn_c_try_compile "$LINENO"; then : 4799 xorg_cv_cc_flag_unknown_warning_option=yes 4800else 4801 xorg_cv_cc_flag_unknown_warning_option=no 4802fi 4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4804fi 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4808 CFLAGS="$xorg_testset_save_CFLAGS" 4809fi 4810 4811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4814 fi 4815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4819 $as_echo_n "(cached) " >&6 4820else 4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4822/* end confdefs.h. */ 4823int i; 4824_ACEOF 4825if ac_fn_c_try_compile "$LINENO"; then : 4826 xorg_cv_cc_flag_unused_command_line_argument=yes 4827else 4828 xorg_cv_cc_flag_unused_command_line_argument=no 4829fi 4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4831fi 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4835 CFLAGS="$xorg_testset_save_CFLAGS" 4836fi 4837 4838found="no" 4839 4840 if test $found = "no" ; then 4841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4843 fi 4844 4845 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4847 fi 4848 4849 CFLAGS="$CFLAGS -Wpointer-arith" 4850 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4852$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4853 cacheid=xorg_cv_cc_flag__Wpointer_arith 4854 if eval \${$cacheid+:} false; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858/* end confdefs.h. */ 4859int i; 4860int 4861main () 4862{ 4863 4864 ; 4865 return 0; 4866} 4867_ACEOF 4868if ac_fn_c_try_link "$LINENO"; then : 4869 eval $cacheid=yes 4870else 4871 eval $cacheid=no 4872fi 4873rm -f core conftest.err conftest.$ac_objext \ 4874 conftest$ac_exeext conftest.$ac_ext 4875fi 4876 4877 4878 CFLAGS="$xorg_testset_save_CFLAGS" 4879 4880 eval supported=\$$cacheid 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4882$as_echo "$supported" >&6; } 4883 if test "$supported" = "yes" ; then 4884 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4885 found="yes" 4886 fi 4887 fi 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903xorg_testset_save_CFLAGS="$CFLAGS" 4904 4905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911else 4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4913/* end confdefs.h. */ 4914int i; 4915_ACEOF 4916if ac_fn_c_try_compile "$LINENO"; then : 4917 xorg_cv_cc_flag_unknown_warning_option=yes 4918else 4919 xorg_cv_cc_flag_unknown_warning_option=no 4920fi 4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4922fi 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4926 CFLAGS="$xorg_testset_save_CFLAGS" 4927fi 4928 4929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4932 fi 4933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4937 $as_echo_n "(cached) " >&6 4938else 4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4940/* end confdefs.h. */ 4941int i; 4942_ACEOF 4943if ac_fn_c_try_compile "$LINENO"; then : 4944 xorg_cv_cc_flag_unused_command_line_argument=yes 4945else 4946 xorg_cv_cc_flag_unused_command_line_argument=no 4947fi 4948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4949fi 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4953 CFLAGS="$xorg_testset_save_CFLAGS" 4954fi 4955 4956found="no" 4957 4958 if test $found = "no" ; then 4959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4961 fi 4962 4963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4965 fi 4966 4967 CFLAGS="$CFLAGS -Wmissing-declarations" 4968 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4970$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4971 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4972 if eval \${$cacheid+:} false; then : 4973 $as_echo_n "(cached) " >&6 4974else 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976/* end confdefs.h. */ 4977int i; 4978int 4979main () 4980{ 4981 4982 ; 4983 return 0; 4984} 4985_ACEOF 4986if ac_fn_c_try_link "$LINENO"; then : 4987 eval $cacheid=yes 4988else 4989 eval $cacheid=no 4990fi 4991rm -f core conftest.err conftest.$ac_objext \ 4992 conftest$ac_exeext conftest.$ac_ext 4993fi 4994 4995 4996 CFLAGS="$xorg_testset_save_CFLAGS" 4997 4998 eval supported=\$$cacheid 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5000$as_echo "$supported" >&6; } 5001 if test "$supported" = "yes" ; then 5002 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5003 found="yes" 5004 fi 5005 fi 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021xorg_testset_save_CFLAGS="$CFLAGS" 5022 5023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5028 $as_echo_n "(cached) " >&6 5029else 5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5031/* end confdefs.h. */ 5032int i; 5033_ACEOF 5034if ac_fn_c_try_compile "$LINENO"; then : 5035 xorg_cv_cc_flag_unknown_warning_option=yes 5036else 5037 xorg_cv_cc_flag_unknown_warning_option=no 5038fi 5039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5040fi 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5044 CFLAGS="$xorg_testset_save_CFLAGS" 5045fi 5046 5047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5050 fi 5051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5058/* end confdefs.h. */ 5059int i; 5060_ACEOF 5061if ac_fn_c_try_compile "$LINENO"; then : 5062 xorg_cv_cc_flag_unused_command_line_argument=yes 5063else 5064 xorg_cv_cc_flag_unused_command_line_argument=no 5065fi 5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5067fi 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5071 CFLAGS="$xorg_testset_save_CFLAGS" 5072fi 5073 5074found="no" 5075 5076 if test $found = "no" ; then 5077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5079 fi 5080 5081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5083 fi 5084 5085 CFLAGS="$CFLAGS -Wformat=2" 5086 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5088$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5089 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5090 if eval \${$cacheid+:} false; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5094/* end confdefs.h. */ 5095int i; 5096int 5097main () 5098{ 5099 5100 ; 5101 return 0; 5102} 5103_ACEOF 5104if ac_fn_c_try_link "$LINENO"; then : 5105 eval $cacheid=yes 5106else 5107 eval $cacheid=no 5108fi 5109rm -f core conftest.err conftest.$ac_objext \ 5110 conftest$ac_exeext conftest.$ac_ext 5111fi 5112 5113 5114 CFLAGS="$xorg_testset_save_CFLAGS" 5115 5116 eval supported=\$$cacheid 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5118$as_echo "$supported" >&6; } 5119 if test "$supported" = "yes" ; then 5120 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5121 found="yes" 5122 fi 5123 fi 5124 5125 if test $found = "no" ; then 5126 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5128 fi 5129 5130 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5132 fi 5133 5134 CFLAGS="$CFLAGS -Wformat" 5135 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5137$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5138 cacheid=xorg_cv_cc_flag__Wformat 5139 if eval \${$cacheid+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143/* end confdefs.h. */ 5144int i; 5145int 5146main () 5147{ 5148 5149 ; 5150 return 0; 5151} 5152_ACEOF 5153if ac_fn_c_try_link "$LINENO"; then : 5154 eval $cacheid=yes 5155else 5156 eval $cacheid=no 5157fi 5158rm -f core conftest.err conftest.$ac_objext \ 5159 conftest$ac_exeext conftest.$ac_ext 5160fi 5161 5162 5163 CFLAGS="$xorg_testset_save_CFLAGS" 5164 5165 eval supported=\$$cacheid 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5167$as_echo "$supported" >&6; } 5168 if test "$supported" = "yes" ; then 5169 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5170 found="yes" 5171 fi 5172 fi 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190xorg_testset_save_CFLAGS="$CFLAGS" 5191 5192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201int i; 5202_ACEOF 5203if ac_fn_c_try_compile "$LINENO"; then : 5204 xorg_cv_cc_flag_unknown_warning_option=yes 5205else 5206 xorg_cv_cc_flag_unknown_warning_option=no 5207fi 5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5209fi 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5213 CFLAGS="$xorg_testset_save_CFLAGS" 5214fi 5215 5216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5219 fi 5220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225else 5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5227/* end confdefs.h. */ 5228int i; 5229_ACEOF 5230if ac_fn_c_try_compile "$LINENO"; then : 5231 xorg_cv_cc_flag_unused_command_line_argument=yes 5232else 5233 xorg_cv_cc_flag_unused_command_line_argument=no 5234fi 5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5236fi 5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5240 CFLAGS="$xorg_testset_save_CFLAGS" 5241fi 5242 5243found="no" 5244 5245 if test $found = "no" ; then 5246 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5248 fi 5249 5250 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5252 fi 5253 5254 CFLAGS="$CFLAGS -Wstrict-prototypes" 5255 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5257$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5258 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5259 if eval \${$cacheid+:} false; then : 5260 $as_echo_n "(cached) " >&6 5261else 5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5263/* end confdefs.h. */ 5264int i; 5265int 5266main () 5267{ 5268 5269 ; 5270 return 0; 5271} 5272_ACEOF 5273if ac_fn_c_try_link "$LINENO"; then : 5274 eval $cacheid=yes 5275else 5276 eval $cacheid=no 5277fi 5278rm -f core conftest.err conftest.$ac_objext \ 5279 conftest$ac_exeext conftest.$ac_ext 5280fi 5281 5282 5283 CFLAGS="$xorg_testset_save_CFLAGS" 5284 5285 eval supported=\$$cacheid 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5287$as_echo "$supported" >&6; } 5288 if test "$supported" = "yes" ; then 5289 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5290 found="yes" 5291 fi 5292 fi 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308xorg_testset_save_CFLAGS="$CFLAGS" 5309 5310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5314if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5315 $as_echo_n "(cached) " >&6 5316else 5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318/* end confdefs.h. */ 5319int i; 5320_ACEOF 5321if ac_fn_c_try_compile "$LINENO"; then : 5322 xorg_cv_cc_flag_unknown_warning_option=yes 5323else 5324 xorg_cv_cc_flag_unknown_warning_option=no 5325fi 5326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5327fi 5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5329$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5331 CFLAGS="$xorg_testset_save_CFLAGS" 5332fi 5333 5334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5337 fi 5338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5341if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343else 5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5345/* end confdefs.h. */ 5346int i; 5347_ACEOF 5348if ac_fn_c_try_compile "$LINENO"; then : 5349 xorg_cv_cc_flag_unused_command_line_argument=yes 5350else 5351 xorg_cv_cc_flag_unused_command_line_argument=no 5352fi 5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5354fi 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5356$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5358 CFLAGS="$xorg_testset_save_CFLAGS" 5359fi 5360 5361found="no" 5362 5363 if test $found = "no" ; then 5364 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5366 fi 5367 5368 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5370 fi 5371 5372 CFLAGS="$CFLAGS -Wmissing-prototypes" 5373 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5375$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5376 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5377 if eval \${$cacheid+:} false; then : 5378 $as_echo_n "(cached) " >&6 5379else 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5381/* end confdefs.h. */ 5382int i; 5383int 5384main () 5385{ 5386 5387 ; 5388 return 0; 5389} 5390_ACEOF 5391if ac_fn_c_try_link "$LINENO"; then : 5392 eval $cacheid=yes 5393else 5394 eval $cacheid=no 5395fi 5396rm -f core conftest.err conftest.$ac_objext \ 5397 conftest$ac_exeext conftest.$ac_ext 5398fi 5399 5400 5401 CFLAGS="$xorg_testset_save_CFLAGS" 5402 5403 eval supported=\$$cacheid 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5405$as_echo "$supported" >&6; } 5406 if test "$supported" = "yes" ; then 5407 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5408 found="yes" 5409 fi 5410 fi 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426xorg_testset_save_CFLAGS="$CFLAGS" 5427 5428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5431$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5432if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5433 $as_echo_n "(cached) " >&6 5434else 5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5436/* end confdefs.h. */ 5437int i; 5438_ACEOF 5439if ac_fn_c_try_compile "$LINENO"; then : 5440 xorg_cv_cc_flag_unknown_warning_option=yes 5441else 5442 xorg_cv_cc_flag_unknown_warning_option=no 5443fi 5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5445fi 5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5447$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5449 CFLAGS="$xorg_testset_save_CFLAGS" 5450fi 5451 5452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5455 fi 5456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5458$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5459if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5460 $as_echo_n "(cached) " >&6 5461else 5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5463/* end confdefs.h. */ 5464int i; 5465_ACEOF 5466if ac_fn_c_try_compile "$LINENO"; then : 5467 xorg_cv_cc_flag_unused_command_line_argument=yes 5468else 5469 xorg_cv_cc_flag_unused_command_line_argument=no 5470fi 5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5472fi 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5474$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5476 CFLAGS="$xorg_testset_save_CFLAGS" 5477fi 5478 5479found="no" 5480 5481 if test $found = "no" ; then 5482 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5484 fi 5485 5486 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5488 fi 5489 5490 CFLAGS="$CFLAGS -Wnested-externs" 5491 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5493$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5494 cacheid=xorg_cv_cc_flag__Wnested_externs 5495 if eval \${$cacheid+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497else 5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5499/* end confdefs.h. */ 5500int i; 5501int 5502main () 5503{ 5504 5505 ; 5506 return 0; 5507} 5508_ACEOF 5509if ac_fn_c_try_link "$LINENO"; then : 5510 eval $cacheid=yes 5511else 5512 eval $cacheid=no 5513fi 5514rm -f core conftest.err conftest.$ac_objext \ 5515 conftest$ac_exeext conftest.$ac_ext 5516fi 5517 5518 5519 CFLAGS="$xorg_testset_save_CFLAGS" 5520 5521 eval supported=\$$cacheid 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5523$as_echo "$supported" >&6; } 5524 if test "$supported" = "yes" ; then 5525 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5526 found="yes" 5527 fi 5528 fi 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544xorg_testset_save_CFLAGS="$CFLAGS" 5545 5546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5549$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5550if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5551 $as_echo_n "(cached) " >&6 5552else 5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5554/* end confdefs.h. */ 5555int i; 5556_ACEOF 5557if ac_fn_c_try_compile "$LINENO"; then : 5558 xorg_cv_cc_flag_unknown_warning_option=yes 5559else 5560 xorg_cv_cc_flag_unknown_warning_option=no 5561fi 5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5563fi 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5565$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5567 CFLAGS="$xorg_testset_save_CFLAGS" 5568fi 5569 5570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5573 fi 5574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5576$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5577if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5578 $as_echo_n "(cached) " >&6 5579else 5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5581/* end confdefs.h. */ 5582int i; 5583_ACEOF 5584if ac_fn_c_try_compile "$LINENO"; then : 5585 xorg_cv_cc_flag_unused_command_line_argument=yes 5586else 5587 xorg_cv_cc_flag_unused_command_line_argument=no 5588fi 5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5590fi 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5592$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5594 CFLAGS="$xorg_testset_save_CFLAGS" 5595fi 5596 5597found="no" 5598 5599 if test $found = "no" ; then 5600 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5602 fi 5603 5604 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5606 fi 5607 5608 CFLAGS="$CFLAGS -Wbad-function-cast" 5609 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5611$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5612 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5613 if eval \${$cacheid+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615else 5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5617/* end confdefs.h. */ 5618int i; 5619int 5620main () 5621{ 5622 5623 ; 5624 return 0; 5625} 5626_ACEOF 5627if ac_fn_c_try_link "$LINENO"; then : 5628 eval $cacheid=yes 5629else 5630 eval $cacheid=no 5631fi 5632rm -f core conftest.err conftest.$ac_objext \ 5633 conftest$ac_exeext conftest.$ac_ext 5634fi 5635 5636 5637 CFLAGS="$xorg_testset_save_CFLAGS" 5638 5639 eval supported=\$$cacheid 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5641$as_echo "$supported" >&6; } 5642 if test "$supported" = "yes" ; then 5643 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5644 found="yes" 5645 fi 5646 fi 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662xorg_testset_save_CFLAGS="$CFLAGS" 5663 5664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5667$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5668if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670else 5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5672/* end confdefs.h. */ 5673int i; 5674_ACEOF 5675if ac_fn_c_try_compile "$LINENO"; then : 5676 xorg_cv_cc_flag_unknown_warning_option=yes 5677else 5678 xorg_cv_cc_flag_unknown_warning_option=no 5679fi 5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5681fi 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5683$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5685 CFLAGS="$xorg_testset_save_CFLAGS" 5686fi 5687 5688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5691 fi 5692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5694$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5695if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699/* end confdefs.h. */ 5700int i; 5701_ACEOF 5702if ac_fn_c_try_compile "$LINENO"; then : 5703 xorg_cv_cc_flag_unused_command_line_argument=yes 5704else 5705 xorg_cv_cc_flag_unused_command_line_argument=no 5706fi 5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5708fi 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5710$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5712 CFLAGS="$xorg_testset_save_CFLAGS" 5713fi 5714 5715found="no" 5716 5717 if test $found = "no" ; then 5718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5720 fi 5721 5722 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5724 fi 5725 5726 CFLAGS="$CFLAGS -Wold-style-definition" 5727 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5729$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5730 cacheid=xorg_cv_cc_flag__Wold_style_definition 5731 if eval \${$cacheid+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735/* end confdefs.h. */ 5736int i; 5737int 5738main () 5739{ 5740 5741 ; 5742 return 0; 5743} 5744_ACEOF 5745if ac_fn_c_try_link "$LINENO"; then : 5746 eval $cacheid=yes 5747else 5748 eval $cacheid=no 5749fi 5750rm -f core conftest.err conftest.$ac_objext \ 5751 conftest$ac_exeext conftest.$ac_ext 5752fi 5753 5754 5755 CFLAGS="$xorg_testset_save_CFLAGS" 5756 5757 eval supported=\$$cacheid 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5759$as_echo "$supported" >&6; } 5760 if test "$supported" = "yes" ; then 5761 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5762 found="yes" 5763 fi 5764 fi 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780xorg_testset_save_CFLAGS="$CFLAGS" 5781 5782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5790/* end confdefs.h. */ 5791int i; 5792_ACEOF 5793if ac_fn_c_try_compile "$LINENO"; then : 5794 xorg_cv_cc_flag_unknown_warning_option=yes 5795else 5796 xorg_cv_cc_flag_unknown_warning_option=no 5797fi 5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5799fi 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5803 CFLAGS="$xorg_testset_save_CFLAGS" 5804fi 5805 5806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5809 fi 5810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5817/* end confdefs.h. */ 5818int i; 5819_ACEOF 5820if ac_fn_c_try_compile "$LINENO"; then : 5821 xorg_cv_cc_flag_unused_command_line_argument=yes 5822else 5823 xorg_cv_cc_flag_unused_command_line_argument=no 5824fi 5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5826fi 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5830 CFLAGS="$xorg_testset_save_CFLAGS" 5831fi 5832 5833found="no" 5834 5835 if test $found = "no" ; then 5836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5838 fi 5839 5840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5842 fi 5843 5844 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5845 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5847$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5848 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5849 if eval \${$cacheid+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851else 5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5853/* end confdefs.h. */ 5854int i; 5855int 5856main () 5857{ 5858 5859 ; 5860 return 0; 5861} 5862_ACEOF 5863if ac_fn_c_try_link "$LINENO"; then : 5864 eval $cacheid=yes 5865else 5866 eval $cacheid=no 5867fi 5868rm -f core conftest.err conftest.$ac_objext \ 5869 conftest$ac_exeext conftest.$ac_ext 5870fi 5871 5872 5873 CFLAGS="$xorg_testset_save_CFLAGS" 5874 5875 eval supported=\$$cacheid 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5877$as_echo "$supported" >&6; } 5878 if test "$supported" = "yes" ; then 5879 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5880 found="yes" 5881 fi 5882 fi 5883 5884 5885 5886 5887 5888# This chunk adds additional warnings that could catch undesired effects. 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902xorg_testset_save_CFLAGS="$CFLAGS" 5903 5904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5909 $as_echo_n "(cached) " >&6 5910else 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912/* end confdefs.h. */ 5913int i; 5914_ACEOF 5915if ac_fn_c_try_compile "$LINENO"; then : 5916 xorg_cv_cc_flag_unknown_warning_option=yes 5917else 5918 xorg_cv_cc_flag_unknown_warning_option=no 5919fi 5920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5921fi 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5925 CFLAGS="$xorg_testset_save_CFLAGS" 5926fi 5927 5928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5931 fi 5932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5939/* end confdefs.h. */ 5940int i; 5941_ACEOF 5942if ac_fn_c_try_compile "$LINENO"; then : 5943 xorg_cv_cc_flag_unused_command_line_argument=yes 5944else 5945 xorg_cv_cc_flag_unused_command_line_argument=no 5946fi 5947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5948fi 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5952 CFLAGS="$xorg_testset_save_CFLAGS" 5953fi 5954 5955found="no" 5956 5957 if test $found = "no" ; then 5958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5960 fi 5961 5962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5964 fi 5965 5966 CFLAGS="$CFLAGS -Wunused" 5967 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5969$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5970 cacheid=xorg_cv_cc_flag__Wunused 5971 if eval \${$cacheid+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973else 5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5975/* end confdefs.h. */ 5976int i; 5977int 5978main () 5979{ 5980 5981 ; 5982 return 0; 5983} 5984_ACEOF 5985if ac_fn_c_try_link "$LINENO"; then : 5986 eval $cacheid=yes 5987else 5988 eval $cacheid=no 5989fi 5990rm -f core conftest.err conftest.$ac_objext \ 5991 conftest$ac_exeext conftest.$ac_ext 5992fi 5993 5994 5995 CFLAGS="$xorg_testset_save_CFLAGS" 5996 5997 eval supported=\$$cacheid 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5999$as_echo "$supported" >&6; } 6000 if test "$supported" = "yes" ; then 6001 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6002 found="yes" 6003 fi 6004 fi 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020xorg_testset_save_CFLAGS="$CFLAGS" 6021 6022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6027 $as_echo_n "(cached) " >&6 6028else 6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6030/* end confdefs.h. */ 6031int i; 6032_ACEOF 6033if ac_fn_c_try_compile "$LINENO"; then : 6034 xorg_cv_cc_flag_unknown_warning_option=yes 6035else 6036 xorg_cv_cc_flag_unknown_warning_option=no 6037fi 6038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6039fi 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6043 CFLAGS="$xorg_testset_save_CFLAGS" 6044fi 6045 6046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6049 fi 6050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6054 $as_echo_n "(cached) " >&6 6055else 6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057/* end confdefs.h. */ 6058int i; 6059_ACEOF 6060if ac_fn_c_try_compile "$LINENO"; then : 6061 xorg_cv_cc_flag_unused_command_line_argument=yes 6062else 6063 xorg_cv_cc_flag_unused_command_line_argument=no 6064fi 6065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6066fi 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6070 CFLAGS="$xorg_testset_save_CFLAGS" 6071fi 6072 6073found="no" 6074 6075 if test $found = "no" ; then 6076 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6078 fi 6079 6080 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6082 fi 6083 6084 CFLAGS="$CFLAGS -Wuninitialized" 6085 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6087$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6088 cacheid=xorg_cv_cc_flag__Wuninitialized 6089 if eval \${$cacheid+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091else 6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6093/* end confdefs.h. */ 6094int i; 6095int 6096main () 6097{ 6098 6099 ; 6100 return 0; 6101} 6102_ACEOF 6103if ac_fn_c_try_link "$LINENO"; then : 6104 eval $cacheid=yes 6105else 6106 eval $cacheid=no 6107fi 6108rm -f core conftest.err conftest.$ac_objext \ 6109 conftest$ac_exeext conftest.$ac_ext 6110fi 6111 6112 6113 CFLAGS="$xorg_testset_save_CFLAGS" 6114 6115 eval supported=\$$cacheid 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6117$as_echo "$supported" >&6; } 6118 if test "$supported" = "yes" ; then 6119 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6120 found="yes" 6121 fi 6122 fi 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138xorg_testset_save_CFLAGS="$CFLAGS" 6139 6140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6145 $as_echo_n "(cached) " >&6 6146else 6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6148/* end confdefs.h. */ 6149int i; 6150_ACEOF 6151if ac_fn_c_try_compile "$LINENO"; then : 6152 xorg_cv_cc_flag_unknown_warning_option=yes 6153else 6154 xorg_cv_cc_flag_unknown_warning_option=no 6155fi 6156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6157fi 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6161 CFLAGS="$xorg_testset_save_CFLAGS" 6162fi 6163 6164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6167 fi 6168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173else 6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6175/* end confdefs.h. */ 6176int i; 6177_ACEOF 6178if ac_fn_c_try_compile "$LINENO"; then : 6179 xorg_cv_cc_flag_unused_command_line_argument=yes 6180else 6181 xorg_cv_cc_flag_unused_command_line_argument=no 6182fi 6183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6184fi 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6188 CFLAGS="$xorg_testset_save_CFLAGS" 6189fi 6190 6191found="no" 6192 6193 if test $found = "no" ; then 6194 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6196 fi 6197 6198 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6200 fi 6201 6202 CFLAGS="$CFLAGS -Wshadow" 6203 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6205$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6206 cacheid=xorg_cv_cc_flag__Wshadow 6207 if eval \${$cacheid+:} false; then : 6208 $as_echo_n "(cached) " >&6 6209else 6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6211/* end confdefs.h. */ 6212int i; 6213int 6214main () 6215{ 6216 6217 ; 6218 return 0; 6219} 6220_ACEOF 6221if ac_fn_c_try_link "$LINENO"; then : 6222 eval $cacheid=yes 6223else 6224 eval $cacheid=no 6225fi 6226rm -f core conftest.err conftest.$ac_objext \ 6227 conftest$ac_exeext conftest.$ac_ext 6228fi 6229 6230 6231 CFLAGS="$xorg_testset_save_CFLAGS" 6232 6233 eval supported=\$$cacheid 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6235$as_echo "$supported" >&6; } 6236 if test "$supported" = "yes" ; then 6237 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6238 found="yes" 6239 fi 6240 fi 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256xorg_testset_save_CFLAGS="$CFLAGS" 6257 6258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6263 $as_echo_n "(cached) " >&6 6264else 6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6266/* end confdefs.h. */ 6267int i; 6268_ACEOF 6269if ac_fn_c_try_compile "$LINENO"; then : 6270 xorg_cv_cc_flag_unknown_warning_option=yes 6271else 6272 xorg_cv_cc_flag_unknown_warning_option=no 6273fi 6274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6275fi 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6279 CFLAGS="$xorg_testset_save_CFLAGS" 6280fi 6281 6282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6285 fi 6286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6290 $as_echo_n "(cached) " >&6 6291else 6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6293/* end confdefs.h. */ 6294int i; 6295_ACEOF 6296if ac_fn_c_try_compile "$LINENO"; then : 6297 xorg_cv_cc_flag_unused_command_line_argument=yes 6298else 6299 xorg_cv_cc_flag_unused_command_line_argument=no 6300fi 6301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6302fi 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6306 CFLAGS="$xorg_testset_save_CFLAGS" 6307fi 6308 6309found="no" 6310 6311 if test $found = "no" ; then 6312 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6314 fi 6315 6316 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6318 fi 6319 6320 CFLAGS="$CFLAGS -Wcast-qual" 6321 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6323$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6324 cacheid=xorg_cv_cc_flag__Wcast_qual 6325 if eval \${$cacheid+:} false; then : 6326 $as_echo_n "(cached) " >&6 6327else 6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6329/* end confdefs.h. */ 6330int i; 6331int 6332main () 6333{ 6334 6335 ; 6336 return 0; 6337} 6338_ACEOF 6339if ac_fn_c_try_link "$LINENO"; then : 6340 eval $cacheid=yes 6341else 6342 eval $cacheid=no 6343fi 6344rm -f core conftest.err conftest.$ac_objext \ 6345 conftest$ac_exeext conftest.$ac_ext 6346fi 6347 6348 6349 CFLAGS="$xorg_testset_save_CFLAGS" 6350 6351 eval supported=\$$cacheid 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6353$as_echo "$supported" >&6; } 6354 if test "$supported" = "yes" ; then 6355 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6356 found="yes" 6357 fi 6358 fi 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374xorg_testset_save_CFLAGS="$CFLAGS" 6375 6376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6381 $as_echo_n "(cached) " >&6 6382else 6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6384/* end confdefs.h. */ 6385int i; 6386_ACEOF 6387if ac_fn_c_try_compile "$LINENO"; then : 6388 xorg_cv_cc_flag_unknown_warning_option=yes 6389else 6390 xorg_cv_cc_flag_unknown_warning_option=no 6391fi 6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6393fi 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6397 CFLAGS="$xorg_testset_save_CFLAGS" 6398fi 6399 6400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6403 fi 6404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6411/* end confdefs.h. */ 6412int i; 6413_ACEOF 6414if ac_fn_c_try_compile "$LINENO"; then : 6415 xorg_cv_cc_flag_unused_command_line_argument=yes 6416else 6417 xorg_cv_cc_flag_unused_command_line_argument=no 6418fi 6419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6420fi 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6424 CFLAGS="$xorg_testset_save_CFLAGS" 6425fi 6426 6427found="no" 6428 6429 if test $found = "no" ; then 6430 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6432 fi 6433 6434 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6436 fi 6437 6438 CFLAGS="$CFLAGS -Wmissing-noreturn" 6439 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6441$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6442 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6443 if eval \${$cacheid+:} false; then : 6444 $as_echo_n "(cached) " >&6 6445else 6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6447/* end confdefs.h. */ 6448int i; 6449int 6450main () 6451{ 6452 6453 ; 6454 return 0; 6455} 6456_ACEOF 6457if ac_fn_c_try_link "$LINENO"; then : 6458 eval $cacheid=yes 6459else 6460 eval $cacheid=no 6461fi 6462rm -f core conftest.err conftest.$ac_objext \ 6463 conftest$ac_exeext conftest.$ac_ext 6464fi 6465 6466 6467 CFLAGS="$xorg_testset_save_CFLAGS" 6468 6469 eval supported=\$$cacheid 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6471$as_echo "$supported" >&6; } 6472 if test "$supported" = "yes" ; then 6473 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6474 found="yes" 6475 fi 6476 fi 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492xorg_testset_save_CFLAGS="$CFLAGS" 6493 6494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6502/* end confdefs.h. */ 6503int i; 6504_ACEOF 6505if ac_fn_c_try_compile "$LINENO"; then : 6506 xorg_cv_cc_flag_unknown_warning_option=yes 6507else 6508 xorg_cv_cc_flag_unknown_warning_option=no 6509fi 6510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6511fi 6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6515 CFLAGS="$xorg_testset_save_CFLAGS" 6516fi 6517 6518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6521 fi 6522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529/* end confdefs.h. */ 6530int i; 6531_ACEOF 6532if ac_fn_c_try_compile "$LINENO"; then : 6533 xorg_cv_cc_flag_unused_command_line_argument=yes 6534else 6535 xorg_cv_cc_flag_unused_command_line_argument=no 6536fi 6537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6538fi 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6542 CFLAGS="$xorg_testset_save_CFLAGS" 6543fi 6544 6545found="no" 6546 6547 if test $found = "no" ; then 6548 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6550 fi 6551 6552 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6554 fi 6555 6556 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6557 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6559$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6560 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6561 if eval \${$cacheid+:} false; then : 6562 $as_echo_n "(cached) " >&6 6563else 6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6565/* end confdefs.h. */ 6566int i; 6567int 6568main () 6569{ 6570 6571 ; 6572 return 0; 6573} 6574_ACEOF 6575if ac_fn_c_try_link "$LINENO"; then : 6576 eval $cacheid=yes 6577else 6578 eval $cacheid=no 6579fi 6580rm -f core conftest.err conftest.$ac_objext \ 6581 conftest$ac_exeext conftest.$ac_ext 6582fi 6583 6584 6585 CFLAGS="$xorg_testset_save_CFLAGS" 6586 6587 eval supported=\$$cacheid 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6589$as_echo "$supported" >&6; } 6590 if test "$supported" = "yes" ; then 6591 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6592 found="yes" 6593 fi 6594 fi 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610xorg_testset_save_CFLAGS="$CFLAGS" 6611 6612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6617 $as_echo_n "(cached) " >&6 6618else 6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6620/* end confdefs.h. */ 6621int i; 6622_ACEOF 6623if ac_fn_c_try_compile "$LINENO"; then : 6624 xorg_cv_cc_flag_unknown_warning_option=yes 6625else 6626 xorg_cv_cc_flag_unknown_warning_option=no 6627fi 6628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6629fi 6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6633 CFLAGS="$xorg_testset_save_CFLAGS" 6634fi 6635 6636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6639 fi 6640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647/* end confdefs.h. */ 6648int i; 6649_ACEOF 6650if ac_fn_c_try_compile "$LINENO"; then : 6651 xorg_cv_cc_flag_unused_command_line_argument=yes 6652else 6653 xorg_cv_cc_flag_unused_command_line_argument=no 6654fi 6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6656fi 6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6660 CFLAGS="$xorg_testset_save_CFLAGS" 6661fi 6662 6663found="no" 6664 6665 if test $found = "no" ; then 6666 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6668 fi 6669 6670 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6672 fi 6673 6674 CFLAGS="$CFLAGS -Wredundant-decls" 6675 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6677$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6678 cacheid=xorg_cv_cc_flag__Wredundant_decls 6679 if eval \${$cacheid+:} false; then : 6680 $as_echo_n "(cached) " >&6 6681else 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684int i; 6685int 6686main () 6687{ 6688 6689 ; 6690 return 0; 6691} 6692_ACEOF 6693if ac_fn_c_try_link "$LINENO"; then : 6694 eval $cacheid=yes 6695else 6696 eval $cacheid=no 6697fi 6698rm -f core conftest.err conftest.$ac_objext \ 6699 conftest$ac_exeext conftest.$ac_ext 6700fi 6701 6702 6703 CFLAGS="$xorg_testset_save_CFLAGS" 6704 6705 eval supported=\$$cacheid 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6707$as_echo "$supported" >&6; } 6708 if test "$supported" = "yes" ; then 6709 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6710 found="yes" 6711 fi 6712 fi 6713 6714 6715 6716# These are currently disabled because they are noisy. They will be enabled 6717# in the future once the codebase is sufficiently modernized to silence 6718# them. For now, I don't want them to drown out the other warnings. 6719# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6720# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6721# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6722 6723# Turn some warnings into errors, so we don't accidently get successful builds 6724# when there are problems that should be fixed. 6725 6726if test "x$SELECTIVE_WERROR" = "xyes" ; then 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740xorg_testset_save_CFLAGS="$CFLAGS" 6741 6742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6750/* end confdefs.h. */ 6751int i; 6752_ACEOF 6753if ac_fn_c_try_compile "$LINENO"; then : 6754 xorg_cv_cc_flag_unknown_warning_option=yes 6755else 6756 xorg_cv_cc_flag_unknown_warning_option=no 6757fi 6758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6759fi 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6763 CFLAGS="$xorg_testset_save_CFLAGS" 6764fi 6765 6766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6769 fi 6770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6774 $as_echo_n "(cached) " >&6 6775else 6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6777/* end confdefs.h. */ 6778int i; 6779_ACEOF 6780if ac_fn_c_try_compile "$LINENO"; then : 6781 xorg_cv_cc_flag_unused_command_line_argument=yes 6782else 6783 xorg_cv_cc_flag_unused_command_line_argument=no 6784fi 6785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6786fi 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6790 CFLAGS="$xorg_testset_save_CFLAGS" 6791fi 6792 6793found="no" 6794 6795 if test $found = "no" ; then 6796 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6798 fi 6799 6800 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6802 fi 6803 6804 CFLAGS="$CFLAGS -Werror=implicit" 6805 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6807$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6808 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6809 if eval \${$cacheid+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811else 6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813/* end confdefs.h. */ 6814int i; 6815int 6816main () 6817{ 6818 6819 ; 6820 return 0; 6821} 6822_ACEOF 6823if ac_fn_c_try_link "$LINENO"; then : 6824 eval $cacheid=yes 6825else 6826 eval $cacheid=no 6827fi 6828rm -f core conftest.err conftest.$ac_objext \ 6829 conftest$ac_exeext conftest.$ac_ext 6830fi 6831 6832 6833 CFLAGS="$xorg_testset_save_CFLAGS" 6834 6835 eval supported=\$$cacheid 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6837$as_echo "$supported" >&6; } 6838 if test "$supported" = "yes" ; then 6839 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6840 found="yes" 6841 fi 6842 fi 6843 6844 if test $found = "no" ; then 6845 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6847 fi 6848 6849 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6851 fi 6852 6853 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6854 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6856$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6857 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6858 if eval \${$cacheid+:} false; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6862/* end confdefs.h. */ 6863int i; 6864int 6865main () 6866{ 6867 6868 ; 6869 return 0; 6870} 6871_ACEOF 6872if ac_fn_c_try_link "$LINENO"; then : 6873 eval $cacheid=yes 6874else 6875 eval $cacheid=no 6876fi 6877rm -f core conftest.err conftest.$ac_objext \ 6878 conftest$ac_exeext conftest.$ac_ext 6879fi 6880 6881 6882 CFLAGS="$xorg_testset_save_CFLAGS" 6883 6884 eval supported=\$$cacheid 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6886$as_echo "$supported" >&6; } 6887 if test "$supported" = "yes" ; then 6888 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6889 found="yes" 6890 fi 6891 fi 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907xorg_testset_save_CFLAGS="$CFLAGS" 6908 6909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6914 $as_echo_n "(cached) " >&6 6915else 6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6917/* end confdefs.h. */ 6918int i; 6919_ACEOF 6920if ac_fn_c_try_compile "$LINENO"; then : 6921 xorg_cv_cc_flag_unknown_warning_option=yes 6922else 6923 xorg_cv_cc_flag_unknown_warning_option=no 6924fi 6925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6926fi 6927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6930 CFLAGS="$xorg_testset_save_CFLAGS" 6931fi 6932 6933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6936 fi 6937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6944/* end confdefs.h. */ 6945int i; 6946_ACEOF 6947if ac_fn_c_try_compile "$LINENO"; then : 6948 xorg_cv_cc_flag_unused_command_line_argument=yes 6949else 6950 xorg_cv_cc_flag_unused_command_line_argument=no 6951fi 6952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6953fi 6954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6957 CFLAGS="$xorg_testset_save_CFLAGS" 6958fi 6959 6960found="no" 6961 6962 if test $found = "no" ; then 6963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6965 fi 6966 6967 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6969 fi 6970 6971 CFLAGS="$CFLAGS -Werror=nonnull" 6972 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6974$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6975 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6976 if eval \${$cacheid+:} false; then : 6977 $as_echo_n "(cached) " >&6 6978else 6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6980/* end confdefs.h. */ 6981int i; 6982int 6983main () 6984{ 6985 6986 ; 6987 return 0; 6988} 6989_ACEOF 6990if ac_fn_c_try_link "$LINENO"; then : 6991 eval $cacheid=yes 6992else 6993 eval $cacheid=no 6994fi 6995rm -f core conftest.err conftest.$ac_objext \ 6996 conftest$ac_exeext conftest.$ac_ext 6997fi 6998 6999 7000 CFLAGS="$xorg_testset_save_CFLAGS" 7001 7002 eval supported=\$$cacheid 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7004$as_echo "$supported" >&6; } 7005 if test "$supported" = "yes" ; then 7006 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7007 found="yes" 7008 fi 7009 fi 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025xorg_testset_save_CFLAGS="$CFLAGS" 7026 7027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7035/* end confdefs.h. */ 7036int i; 7037_ACEOF 7038if ac_fn_c_try_compile "$LINENO"; then : 7039 xorg_cv_cc_flag_unknown_warning_option=yes 7040else 7041 xorg_cv_cc_flag_unknown_warning_option=no 7042fi 7043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7044fi 7045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7048 CFLAGS="$xorg_testset_save_CFLAGS" 7049fi 7050 7051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7054 fi 7055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060else 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062/* end confdefs.h. */ 7063int i; 7064_ACEOF 7065if ac_fn_c_try_compile "$LINENO"; then : 7066 xorg_cv_cc_flag_unused_command_line_argument=yes 7067else 7068 xorg_cv_cc_flag_unused_command_line_argument=no 7069fi 7070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7071fi 7072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7075 CFLAGS="$xorg_testset_save_CFLAGS" 7076fi 7077 7078found="no" 7079 7080 if test $found = "no" ; then 7081 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7083 fi 7084 7085 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7087 fi 7088 7089 CFLAGS="$CFLAGS -Werror=init-self" 7090 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7092$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7093 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7094 if eval \${$cacheid+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098/* end confdefs.h. */ 7099int i; 7100int 7101main () 7102{ 7103 7104 ; 7105 return 0; 7106} 7107_ACEOF 7108if ac_fn_c_try_link "$LINENO"; then : 7109 eval $cacheid=yes 7110else 7111 eval $cacheid=no 7112fi 7113rm -f core conftest.err conftest.$ac_objext \ 7114 conftest$ac_exeext conftest.$ac_ext 7115fi 7116 7117 7118 CFLAGS="$xorg_testset_save_CFLAGS" 7119 7120 eval supported=\$$cacheid 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7122$as_echo "$supported" >&6; } 7123 if test "$supported" = "yes" ; then 7124 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7125 found="yes" 7126 fi 7127 fi 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143xorg_testset_save_CFLAGS="$CFLAGS" 7144 7145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7150 $as_echo_n "(cached) " >&6 7151else 7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153/* end confdefs.h. */ 7154int i; 7155_ACEOF 7156if ac_fn_c_try_compile "$LINENO"; then : 7157 xorg_cv_cc_flag_unknown_warning_option=yes 7158else 7159 xorg_cv_cc_flag_unknown_warning_option=no 7160fi 7161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7162fi 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7166 CFLAGS="$xorg_testset_save_CFLAGS" 7167fi 7168 7169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7172 fi 7173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7177 $as_echo_n "(cached) " >&6 7178else 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180/* end confdefs.h. */ 7181int i; 7182_ACEOF 7183if ac_fn_c_try_compile "$LINENO"; then : 7184 xorg_cv_cc_flag_unused_command_line_argument=yes 7185else 7186 xorg_cv_cc_flag_unused_command_line_argument=no 7187fi 7188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7189fi 7190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7193 CFLAGS="$xorg_testset_save_CFLAGS" 7194fi 7195 7196found="no" 7197 7198 if test $found = "no" ; then 7199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7201 fi 7202 7203 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7205 fi 7206 7207 CFLAGS="$CFLAGS -Werror=main" 7208 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7210$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7211 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7212 if eval \${$cacheid+:} false; then : 7213 $as_echo_n "(cached) " >&6 7214else 7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7216/* end confdefs.h. */ 7217int i; 7218int 7219main () 7220{ 7221 7222 ; 7223 return 0; 7224} 7225_ACEOF 7226if ac_fn_c_try_link "$LINENO"; then : 7227 eval $cacheid=yes 7228else 7229 eval $cacheid=no 7230fi 7231rm -f core conftest.err conftest.$ac_objext \ 7232 conftest$ac_exeext conftest.$ac_ext 7233fi 7234 7235 7236 CFLAGS="$xorg_testset_save_CFLAGS" 7237 7238 eval supported=\$$cacheid 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7240$as_echo "$supported" >&6; } 7241 if test "$supported" = "yes" ; then 7242 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7243 found="yes" 7244 fi 7245 fi 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261xorg_testset_save_CFLAGS="$CFLAGS" 7262 7263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7268 $as_echo_n "(cached) " >&6 7269else 7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7271/* end confdefs.h. */ 7272int i; 7273_ACEOF 7274if ac_fn_c_try_compile "$LINENO"; then : 7275 xorg_cv_cc_flag_unknown_warning_option=yes 7276else 7277 xorg_cv_cc_flag_unknown_warning_option=no 7278fi 7279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7280fi 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7284 CFLAGS="$xorg_testset_save_CFLAGS" 7285fi 7286 7287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7290 fi 7291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7298/* end confdefs.h. */ 7299int i; 7300_ACEOF 7301if ac_fn_c_try_compile "$LINENO"; then : 7302 xorg_cv_cc_flag_unused_command_line_argument=yes 7303else 7304 xorg_cv_cc_flag_unused_command_line_argument=no 7305fi 7306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7307fi 7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7311 CFLAGS="$xorg_testset_save_CFLAGS" 7312fi 7313 7314found="no" 7315 7316 if test $found = "no" ; then 7317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7319 fi 7320 7321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7323 fi 7324 7325 CFLAGS="$CFLAGS -Werror=missing-braces" 7326 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7328$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7329 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7330 if eval \${$cacheid+:} false; then : 7331 $as_echo_n "(cached) " >&6 7332else 7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7334/* end confdefs.h. */ 7335int i; 7336int 7337main () 7338{ 7339 7340 ; 7341 return 0; 7342} 7343_ACEOF 7344if ac_fn_c_try_link "$LINENO"; then : 7345 eval $cacheid=yes 7346else 7347 eval $cacheid=no 7348fi 7349rm -f core conftest.err conftest.$ac_objext \ 7350 conftest$ac_exeext conftest.$ac_ext 7351fi 7352 7353 7354 CFLAGS="$xorg_testset_save_CFLAGS" 7355 7356 eval supported=\$$cacheid 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7358$as_echo "$supported" >&6; } 7359 if test "$supported" = "yes" ; then 7360 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7361 found="yes" 7362 fi 7363 fi 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379xorg_testset_save_CFLAGS="$CFLAGS" 7380 7381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7386 $as_echo_n "(cached) " >&6 7387else 7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389/* end confdefs.h. */ 7390int i; 7391_ACEOF 7392if ac_fn_c_try_compile "$LINENO"; then : 7393 xorg_cv_cc_flag_unknown_warning_option=yes 7394else 7395 xorg_cv_cc_flag_unknown_warning_option=no 7396fi 7397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7398fi 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7402 CFLAGS="$xorg_testset_save_CFLAGS" 7403fi 7404 7405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7408 fi 7409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7416/* end confdefs.h. */ 7417int i; 7418_ACEOF 7419if ac_fn_c_try_compile "$LINENO"; then : 7420 xorg_cv_cc_flag_unused_command_line_argument=yes 7421else 7422 xorg_cv_cc_flag_unused_command_line_argument=no 7423fi 7424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7425fi 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7429 CFLAGS="$xorg_testset_save_CFLAGS" 7430fi 7431 7432found="no" 7433 7434 if test $found = "no" ; then 7435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7437 fi 7438 7439 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7441 fi 7442 7443 CFLAGS="$CFLAGS -Werror=sequence-point" 7444 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7446$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7447 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7448 if eval \${$cacheid+:} false; then : 7449 $as_echo_n "(cached) " >&6 7450else 7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452/* end confdefs.h. */ 7453int i; 7454int 7455main () 7456{ 7457 7458 ; 7459 return 0; 7460} 7461_ACEOF 7462if ac_fn_c_try_link "$LINENO"; then : 7463 eval $cacheid=yes 7464else 7465 eval $cacheid=no 7466fi 7467rm -f core conftest.err conftest.$ac_objext \ 7468 conftest$ac_exeext conftest.$ac_ext 7469fi 7470 7471 7472 CFLAGS="$xorg_testset_save_CFLAGS" 7473 7474 eval supported=\$$cacheid 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7476$as_echo "$supported" >&6; } 7477 if test "$supported" = "yes" ; then 7478 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7479 found="yes" 7480 fi 7481 fi 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497xorg_testset_save_CFLAGS="$CFLAGS" 7498 7499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7504 $as_echo_n "(cached) " >&6 7505else 7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507/* end confdefs.h. */ 7508int i; 7509_ACEOF 7510if ac_fn_c_try_compile "$LINENO"; then : 7511 xorg_cv_cc_flag_unknown_warning_option=yes 7512else 7513 xorg_cv_cc_flag_unknown_warning_option=no 7514fi 7515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7516fi 7517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7520 CFLAGS="$xorg_testset_save_CFLAGS" 7521fi 7522 7523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 fi 7527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7531 $as_echo_n "(cached) " >&6 7532else 7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534/* end confdefs.h. */ 7535int i; 7536_ACEOF 7537if ac_fn_c_try_compile "$LINENO"; then : 7538 xorg_cv_cc_flag_unused_command_line_argument=yes 7539else 7540 xorg_cv_cc_flag_unused_command_line_argument=no 7541fi 7542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7543fi 7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7547 CFLAGS="$xorg_testset_save_CFLAGS" 7548fi 7549 7550found="no" 7551 7552 if test $found = "no" ; then 7553 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7555 fi 7556 7557 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7559 fi 7560 7561 CFLAGS="$CFLAGS -Werror=return-type" 7562 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7564$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7565 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7566 if eval \${$cacheid+:} false; then : 7567 $as_echo_n "(cached) " >&6 7568else 7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7570/* end confdefs.h. */ 7571int i; 7572int 7573main () 7574{ 7575 7576 ; 7577 return 0; 7578} 7579_ACEOF 7580if ac_fn_c_try_link "$LINENO"; then : 7581 eval $cacheid=yes 7582else 7583 eval $cacheid=no 7584fi 7585rm -f core conftest.err conftest.$ac_objext \ 7586 conftest$ac_exeext conftest.$ac_ext 7587fi 7588 7589 7590 CFLAGS="$xorg_testset_save_CFLAGS" 7591 7592 eval supported=\$$cacheid 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7594$as_echo "$supported" >&6; } 7595 if test "$supported" = "yes" ; then 7596 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7597 found="yes" 7598 fi 7599 fi 7600 7601 if test $found = "no" ; then 7602 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7604 fi 7605 7606 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7608 fi 7609 7610 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7611 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7613$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7614 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7615 if eval \${$cacheid+:} false; then : 7616 $as_echo_n "(cached) " >&6 7617else 7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7619/* end confdefs.h. */ 7620int i; 7621int 7622main () 7623{ 7624 7625 ; 7626 return 0; 7627} 7628_ACEOF 7629if ac_fn_c_try_link "$LINENO"; then : 7630 eval $cacheid=yes 7631else 7632 eval $cacheid=no 7633fi 7634rm -f core conftest.err conftest.$ac_objext \ 7635 conftest$ac_exeext conftest.$ac_ext 7636fi 7637 7638 7639 CFLAGS="$xorg_testset_save_CFLAGS" 7640 7641 eval supported=\$$cacheid 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7643$as_echo "$supported" >&6; } 7644 if test "$supported" = "yes" ; then 7645 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7646 found="yes" 7647 fi 7648 fi 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664xorg_testset_save_CFLAGS="$CFLAGS" 7665 7666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675int i; 7676_ACEOF 7677if ac_fn_c_try_compile "$LINENO"; then : 7678 xorg_cv_cc_flag_unknown_warning_option=yes 7679else 7680 xorg_cv_cc_flag_unknown_warning_option=no 7681fi 7682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7683fi 7684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7687 CFLAGS="$xorg_testset_save_CFLAGS" 7688fi 7689 7690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7693 fi 7694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699else 7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7701/* end confdefs.h. */ 7702int i; 7703_ACEOF 7704if ac_fn_c_try_compile "$LINENO"; then : 7705 xorg_cv_cc_flag_unused_command_line_argument=yes 7706else 7707 xorg_cv_cc_flag_unused_command_line_argument=no 7708fi 7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7710fi 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7714 CFLAGS="$xorg_testset_save_CFLAGS" 7715fi 7716 7717found="no" 7718 7719 if test $found = "no" ; then 7720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7722 fi 7723 7724 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7726 fi 7727 7728 CFLAGS="$CFLAGS -Werror=trigraphs" 7729 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7731$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7732 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7733 if eval \${$cacheid+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735else 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737/* end confdefs.h. */ 7738int i; 7739int 7740main () 7741{ 7742 7743 ; 7744 return 0; 7745} 7746_ACEOF 7747if ac_fn_c_try_link "$LINENO"; then : 7748 eval $cacheid=yes 7749else 7750 eval $cacheid=no 7751fi 7752rm -f core conftest.err conftest.$ac_objext \ 7753 conftest$ac_exeext conftest.$ac_ext 7754fi 7755 7756 7757 CFLAGS="$xorg_testset_save_CFLAGS" 7758 7759 eval supported=\$$cacheid 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7761$as_echo "$supported" >&6; } 7762 if test "$supported" = "yes" ; then 7763 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7764 found="yes" 7765 fi 7766 fi 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782xorg_testset_save_CFLAGS="$CFLAGS" 7783 7784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7789 $as_echo_n "(cached) " >&6 7790else 7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7792/* end confdefs.h. */ 7793int i; 7794_ACEOF 7795if ac_fn_c_try_compile "$LINENO"; then : 7796 xorg_cv_cc_flag_unknown_warning_option=yes 7797else 7798 xorg_cv_cc_flag_unknown_warning_option=no 7799fi 7800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7801fi 7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7805 CFLAGS="$xorg_testset_save_CFLAGS" 7806fi 7807 7808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7811 fi 7812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7816 $as_echo_n "(cached) " >&6 7817else 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820int i; 7821_ACEOF 7822if ac_fn_c_try_compile "$LINENO"; then : 7823 xorg_cv_cc_flag_unused_command_line_argument=yes 7824else 7825 xorg_cv_cc_flag_unused_command_line_argument=no 7826fi 7827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7828fi 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7832 CFLAGS="$xorg_testset_save_CFLAGS" 7833fi 7834 7835found="no" 7836 7837 if test $found = "no" ; then 7838 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7840 fi 7841 7842 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7844 fi 7845 7846 CFLAGS="$CFLAGS -Werror=array-bounds" 7847 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7849$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7850 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7851 if eval \${$cacheid+:} false; then : 7852 $as_echo_n "(cached) " >&6 7853else 7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7855/* end confdefs.h. */ 7856int i; 7857int 7858main () 7859{ 7860 7861 ; 7862 return 0; 7863} 7864_ACEOF 7865if ac_fn_c_try_link "$LINENO"; then : 7866 eval $cacheid=yes 7867else 7868 eval $cacheid=no 7869fi 7870rm -f core conftest.err conftest.$ac_objext \ 7871 conftest$ac_exeext conftest.$ac_ext 7872fi 7873 7874 7875 CFLAGS="$xorg_testset_save_CFLAGS" 7876 7877 eval supported=\$$cacheid 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7879$as_echo "$supported" >&6; } 7880 if test "$supported" = "yes" ; then 7881 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7882 found="yes" 7883 fi 7884 fi 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900xorg_testset_save_CFLAGS="$CFLAGS" 7901 7902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7907 $as_echo_n "(cached) " >&6 7908else 7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7910/* end confdefs.h. */ 7911int i; 7912_ACEOF 7913if ac_fn_c_try_compile "$LINENO"; then : 7914 xorg_cv_cc_flag_unknown_warning_option=yes 7915else 7916 xorg_cv_cc_flag_unknown_warning_option=no 7917fi 7918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7919fi 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7923 CFLAGS="$xorg_testset_save_CFLAGS" 7924fi 7925 7926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7929 fi 7930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7934 $as_echo_n "(cached) " >&6 7935else 7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937/* end confdefs.h. */ 7938int i; 7939_ACEOF 7940if ac_fn_c_try_compile "$LINENO"; then : 7941 xorg_cv_cc_flag_unused_command_line_argument=yes 7942else 7943 xorg_cv_cc_flag_unused_command_line_argument=no 7944fi 7945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7946fi 7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7950 CFLAGS="$xorg_testset_save_CFLAGS" 7951fi 7952 7953found="no" 7954 7955 if test $found = "no" ; then 7956 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7958 fi 7959 7960 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7962 fi 7963 7964 CFLAGS="$CFLAGS -Werror=write-strings" 7965 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7967$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7968 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7969 if eval \${$cacheid+:} false; then : 7970 $as_echo_n "(cached) " >&6 7971else 7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7973/* end confdefs.h. */ 7974int i; 7975int 7976main () 7977{ 7978 7979 ; 7980 return 0; 7981} 7982_ACEOF 7983if ac_fn_c_try_link "$LINENO"; then : 7984 eval $cacheid=yes 7985else 7986 eval $cacheid=no 7987fi 7988rm -f core conftest.err conftest.$ac_objext \ 7989 conftest$ac_exeext conftest.$ac_ext 7990fi 7991 7992 7993 CFLAGS="$xorg_testset_save_CFLAGS" 7994 7995 eval supported=\$$cacheid 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7997$as_echo "$supported" >&6; } 7998 if test "$supported" = "yes" ; then 7999 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8000 found="yes" 8001 fi 8002 fi 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018xorg_testset_save_CFLAGS="$CFLAGS" 8019 8020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8025 $as_echo_n "(cached) " >&6 8026else 8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8028/* end confdefs.h. */ 8029int i; 8030_ACEOF 8031if ac_fn_c_try_compile "$LINENO"; then : 8032 xorg_cv_cc_flag_unknown_warning_option=yes 8033else 8034 xorg_cv_cc_flag_unknown_warning_option=no 8035fi 8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8037fi 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8041 CFLAGS="$xorg_testset_save_CFLAGS" 8042fi 8043 8044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8047 fi 8048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053else 8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055/* end confdefs.h. */ 8056int i; 8057_ACEOF 8058if ac_fn_c_try_compile "$LINENO"; then : 8059 xorg_cv_cc_flag_unused_command_line_argument=yes 8060else 8061 xorg_cv_cc_flag_unused_command_line_argument=no 8062fi 8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8064fi 8065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8068 CFLAGS="$xorg_testset_save_CFLAGS" 8069fi 8070 8071found="no" 8072 8073 if test $found = "no" ; then 8074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8076 fi 8077 8078 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8080 fi 8081 8082 CFLAGS="$CFLAGS -Werror=address" 8083 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8085$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8086 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8087 if eval \${$cacheid+:} false; then : 8088 $as_echo_n "(cached) " >&6 8089else 8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8091/* end confdefs.h. */ 8092int i; 8093int 8094main () 8095{ 8096 8097 ; 8098 return 0; 8099} 8100_ACEOF 8101if ac_fn_c_try_link "$LINENO"; then : 8102 eval $cacheid=yes 8103else 8104 eval $cacheid=no 8105fi 8106rm -f core conftest.err conftest.$ac_objext \ 8107 conftest$ac_exeext conftest.$ac_ext 8108fi 8109 8110 8111 CFLAGS="$xorg_testset_save_CFLAGS" 8112 8113 eval supported=\$$cacheid 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8115$as_echo "$supported" >&6; } 8116 if test "$supported" = "yes" ; then 8117 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8118 found="yes" 8119 fi 8120 fi 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136xorg_testset_save_CFLAGS="$CFLAGS" 8137 8138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8143 $as_echo_n "(cached) " >&6 8144else 8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146/* end confdefs.h. */ 8147int i; 8148_ACEOF 8149if ac_fn_c_try_compile "$LINENO"; then : 8150 xorg_cv_cc_flag_unknown_warning_option=yes 8151else 8152 xorg_cv_cc_flag_unknown_warning_option=no 8153fi 8154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8155fi 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8159 CFLAGS="$xorg_testset_save_CFLAGS" 8160fi 8161 8162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165 fi 8166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173/* end confdefs.h. */ 8174int i; 8175_ACEOF 8176if ac_fn_c_try_compile "$LINENO"; then : 8177 xorg_cv_cc_flag_unused_command_line_argument=yes 8178else 8179 xorg_cv_cc_flag_unused_command_line_argument=no 8180fi 8181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8182fi 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8186 CFLAGS="$xorg_testset_save_CFLAGS" 8187fi 8188 8189found="no" 8190 8191 if test $found = "no" ; then 8192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8194 fi 8195 8196 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8198 fi 8199 8200 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8201 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8203$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8204 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8205 if eval \${$cacheid+:} false; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8209/* end confdefs.h. */ 8210int i; 8211int 8212main () 8213{ 8214 8215 ; 8216 return 0; 8217} 8218_ACEOF 8219if ac_fn_c_try_link "$LINENO"; then : 8220 eval $cacheid=yes 8221else 8222 eval $cacheid=no 8223fi 8224rm -f core conftest.err conftest.$ac_objext \ 8225 conftest$ac_exeext conftest.$ac_ext 8226fi 8227 8228 8229 CFLAGS="$xorg_testset_save_CFLAGS" 8230 8231 eval supported=\$$cacheid 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8233$as_echo "$supported" >&6; } 8234 if test "$supported" = "yes" ; then 8235 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8236 found="yes" 8237 fi 8238 fi 8239 8240 if test $found = "no" ; then 8241 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8243 fi 8244 8245 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8247 fi 8248 8249 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8250 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8252$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8253 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8254 if eval \${$cacheid+:} false; then : 8255 $as_echo_n "(cached) " >&6 8256else 8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8258/* end confdefs.h. */ 8259int i; 8260int 8261main () 8262{ 8263 8264 ; 8265 return 0; 8266} 8267_ACEOF 8268if ac_fn_c_try_link "$LINENO"; then : 8269 eval $cacheid=yes 8270else 8271 eval $cacheid=no 8272fi 8273rm -f core conftest.err conftest.$ac_objext \ 8274 conftest$ac_exeext conftest.$ac_ext 8275fi 8276 8277 8278 CFLAGS="$xorg_testset_save_CFLAGS" 8279 8280 eval supported=\$$cacheid 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8282$as_echo "$supported" >&6; } 8283 if test "$supported" = "yes" ; then 8284 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8285 found="yes" 8286 fi 8287 fi 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303xorg_testset_save_CFLAGS="$CFLAGS" 8304 8305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311else 8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313/* end confdefs.h. */ 8314int i; 8315_ACEOF 8316if ac_fn_c_try_compile "$LINENO"; then : 8317 xorg_cv_cc_flag_unknown_warning_option=yes 8318else 8319 xorg_cv_cc_flag_unknown_warning_option=no 8320fi 8321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8322fi 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8326 CFLAGS="$xorg_testset_save_CFLAGS" 8327fi 8328 8329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8332 fi 8333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8337 $as_echo_n "(cached) " >&6 8338else 8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8340/* end confdefs.h. */ 8341int i; 8342_ACEOF 8343if ac_fn_c_try_compile "$LINENO"; then : 8344 xorg_cv_cc_flag_unused_command_line_argument=yes 8345else 8346 xorg_cv_cc_flag_unused_command_line_argument=no 8347fi 8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8349fi 8350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8353 CFLAGS="$xorg_testset_save_CFLAGS" 8354fi 8355 8356found="no" 8357 8358 if test $found = "no" ; then 8359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8361 fi 8362 8363 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8365 fi 8366 8367 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8368 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8370$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8371 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8372 if eval \${$cacheid+:} false; then : 8373 $as_echo_n "(cached) " >&6 8374else 8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8376/* end confdefs.h. */ 8377int i; 8378int 8379main () 8380{ 8381 8382 ; 8383 return 0; 8384} 8385_ACEOF 8386if ac_fn_c_try_link "$LINENO"; then : 8387 eval $cacheid=yes 8388else 8389 eval $cacheid=no 8390fi 8391rm -f core conftest.err conftest.$ac_objext \ 8392 conftest$ac_exeext conftest.$ac_ext 8393fi 8394 8395 8396 CFLAGS="$xorg_testset_save_CFLAGS" 8397 8398 eval supported=\$$cacheid 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8400$as_echo "$supported" >&6; } 8401 if test "$supported" = "yes" ; then 8402 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8403 found="yes" 8404 fi 8405 fi 8406 8407 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8408else 8409{ $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 8410$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;} 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424xorg_testset_save_CFLAGS="$CFLAGS" 8425 8426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8431 $as_echo_n "(cached) " >&6 8432else 8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434/* end confdefs.h. */ 8435int i; 8436_ACEOF 8437if ac_fn_c_try_compile "$LINENO"; then : 8438 xorg_cv_cc_flag_unknown_warning_option=yes 8439else 8440 xorg_cv_cc_flag_unknown_warning_option=no 8441fi 8442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8443fi 8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8447 CFLAGS="$xorg_testset_save_CFLAGS" 8448fi 8449 8450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8453 fi 8454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8458 $as_echo_n "(cached) " >&6 8459else 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462int i; 8463_ACEOF 8464if ac_fn_c_try_compile "$LINENO"; then : 8465 xorg_cv_cc_flag_unused_command_line_argument=yes 8466else 8467 xorg_cv_cc_flag_unused_command_line_argument=no 8468fi 8469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8470fi 8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8474 CFLAGS="$xorg_testset_save_CFLAGS" 8475fi 8476 8477found="no" 8478 8479 if test $found = "no" ; then 8480 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8482 fi 8483 8484 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8486 fi 8487 8488 CFLAGS="$CFLAGS -Wimplicit" 8489 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8491$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8492 cacheid=xorg_cv_cc_flag__Wimplicit 8493 if eval \${$cacheid+:} false; then : 8494 $as_echo_n "(cached) " >&6 8495else 8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8497/* end confdefs.h. */ 8498int i; 8499int 8500main () 8501{ 8502 8503 ; 8504 return 0; 8505} 8506_ACEOF 8507if ac_fn_c_try_link "$LINENO"; then : 8508 eval $cacheid=yes 8509else 8510 eval $cacheid=no 8511fi 8512rm -f core conftest.err conftest.$ac_objext \ 8513 conftest$ac_exeext conftest.$ac_ext 8514fi 8515 8516 8517 CFLAGS="$xorg_testset_save_CFLAGS" 8518 8519 eval supported=\$$cacheid 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8521$as_echo "$supported" >&6; } 8522 if test "$supported" = "yes" ; then 8523 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8524 found="yes" 8525 fi 8526 fi 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542xorg_testset_save_CFLAGS="$CFLAGS" 8543 8544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553int i; 8554_ACEOF 8555if ac_fn_c_try_compile "$LINENO"; then : 8556 xorg_cv_cc_flag_unknown_warning_option=yes 8557else 8558 xorg_cv_cc_flag_unknown_warning_option=no 8559fi 8560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8561fi 8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8565 CFLAGS="$xorg_testset_save_CFLAGS" 8566fi 8567 8568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8571 fi 8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8576 $as_echo_n "(cached) " >&6 8577else 8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8579/* end confdefs.h. */ 8580int i; 8581_ACEOF 8582if ac_fn_c_try_compile "$LINENO"; then : 8583 xorg_cv_cc_flag_unused_command_line_argument=yes 8584else 8585 xorg_cv_cc_flag_unused_command_line_argument=no 8586fi 8587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8588fi 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8592 CFLAGS="$xorg_testset_save_CFLAGS" 8593fi 8594 8595found="no" 8596 8597 if test $found = "no" ; then 8598 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8600 fi 8601 8602 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8604 fi 8605 8606 CFLAGS="$CFLAGS -Wnonnull" 8607 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8609$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8610 cacheid=xorg_cv_cc_flag__Wnonnull 8611 if eval \${$cacheid+:} false; then : 8612 $as_echo_n "(cached) " >&6 8613else 8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8615/* end confdefs.h. */ 8616int i; 8617int 8618main () 8619{ 8620 8621 ; 8622 return 0; 8623} 8624_ACEOF 8625if ac_fn_c_try_link "$LINENO"; then : 8626 eval $cacheid=yes 8627else 8628 eval $cacheid=no 8629fi 8630rm -f core conftest.err conftest.$ac_objext \ 8631 conftest$ac_exeext conftest.$ac_ext 8632fi 8633 8634 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636 8637 eval supported=\$$cacheid 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8639$as_echo "$supported" >&6; } 8640 if test "$supported" = "yes" ; then 8641 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8642 found="yes" 8643 fi 8644 fi 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660xorg_testset_save_CFLAGS="$CFLAGS" 8661 8662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8667 $as_echo_n "(cached) " >&6 8668else 8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8670/* end confdefs.h. */ 8671int i; 8672_ACEOF 8673if ac_fn_c_try_compile "$LINENO"; then : 8674 xorg_cv_cc_flag_unknown_warning_option=yes 8675else 8676 xorg_cv_cc_flag_unknown_warning_option=no 8677fi 8678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8679fi 8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8683 CFLAGS="$xorg_testset_save_CFLAGS" 8684fi 8685 8686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8689 fi 8690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8694 $as_echo_n "(cached) " >&6 8695else 8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8697/* end confdefs.h. */ 8698int i; 8699_ACEOF 8700if ac_fn_c_try_compile "$LINENO"; then : 8701 xorg_cv_cc_flag_unused_command_line_argument=yes 8702else 8703 xorg_cv_cc_flag_unused_command_line_argument=no 8704fi 8705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8706fi 8707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8710 CFLAGS="$xorg_testset_save_CFLAGS" 8711fi 8712 8713found="no" 8714 8715 if test $found = "no" ; then 8716 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8718 fi 8719 8720 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8722 fi 8723 8724 CFLAGS="$CFLAGS -Winit-self" 8725 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8727$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8728 cacheid=xorg_cv_cc_flag__Winit_self 8729 if eval \${$cacheid+:} false; then : 8730 $as_echo_n "(cached) " >&6 8731else 8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8733/* end confdefs.h. */ 8734int i; 8735int 8736main () 8737{ 8738 8739 ; 8740 return 0; 8741} 8742_ACEOF 8743if ac_fn_c_try_link "$LINENO"; then : 8744 eval $cacheid=yes 8745else 8746 eval $cacheid=no 8747fi 8748rm -f core conftest.err conftest.$ac_objext \ 8749 conftest$ac_exeext conftest.$ac_ext 8750fi 8751 8752 8753 CFLAGS="$xorg_testset_save_CFLAGS" 8754 8755 eval supported=\$$cacheid 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8757$as_echo "$supported" >&6; } 8758 if test "$supported" = "yes" ; then 8759 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8760 found="yes" 8761 fi 8762 fi 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778xorg_testset_save_CFLAGS="$CFLAGS" 8779 8780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8785 $as_echo_n "(cached) " >&6 8786else 8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8788/* end confdefs.h. */ 8789int i; 8790_ACEOF 8791if ac_fn_c_try_compile "$LINENO"; then : 8792 xorg_cv_cc_flag_unknown_warning_option=yes 8793else 8794 xorg_cv_cc_flag_unknown_warning_option=no 8795fi 8796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8797fi 8798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8801 CFLAGS="$xorg_testset_save_CFLAGS" 8802fi 8803 8804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8807 fi 8808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8812 $as_echo_n "(cached) " >&6 8813else 8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8815/* end confdefs.h. */ 8816int i; 8817_ACEOF 8818if ac_fn_c_try_compile "$LINENO"; then : 8819 xorg_cv_cc_flag_unused_command_line_argument=yes 8820else 8821 xorg_cv_cc_flag_unused_command_line_argument=no 8822fi 8823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8824fi 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8828 CFLAGS="$xorg_testset_save_CFLAGS" 8829fi 8830 8831found="no" 8832 8833 if test $found = "no" ; then 8834 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8836 fi 8837 8838 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8840 fi 8841 8842 CFLAGS="$CFLAGS -Wmain" 8843 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8845$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8846 cacheid=xorg_cv_cc_flag__Wmain 8847 if eval \${$cacheid+:} false; then : 8848 $as_echo_n "(cached) " >&6 8849else 8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8851/* end confdefs.h. */ 8852int i; 8853int 8854main () 8855{ 8856 8857 ; 8858 return 0; 8859} 8860_ACEOF 8861if ac_fn_c_try_link "$LINENO"; then : 8862 eval $cacheid=yes 8863else 8864 eval $cacheid=no 8865fi 8866rm -f core conftest.err conftest.$ac_objext \ 8867 conftest$ac_exeext conftest.$ac_ext 8868fi 8869 8870 8871 CFLAGS="$xorg_testset_save_CFLAGS" 8872 8873 eval supported=\$$cacheid 8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8875$as_echo "$supported" >&6; } 8876 if test "$supported" = "yes" ; then 8877 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8878 found="yes" 8879 fi 8880 fi 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896xorg_testset_save_CFLAGS="$CFLAGS" 8897 8898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8903 $as_echo_n "(cached) " >&6 8904else 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907int i; 8908_ACEOF 8909if ac_fn_c_try_compile "$LINENO"; then : 8910 xorg_cv_cc_flag_unknown_warning_option=yes 8911else 8912 xorg_cv_cc_flag_unknown_warning_option=no 8913fi 8914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8915fi 8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8919 CFLAGS="$xorg_testset_save_CFLAGS" 8920fi 8921 8922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8925 fi 8926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931else 8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8933/* end confdefs.h. */ 8934int i; 8935_ACEOF 8936if ac_fn_c_try_compile "$LINENO"; then : 8937 xorg_cv_cc_flag_unused_command_line_argument=yes 8938else 8939 xorg_cv_cc_flag_unused_command_line_argument=no 8940fi 8941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8942fi 8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8946 CFLAGS="$xorg_testset_save_CFLAGS" 8947fi 8948 8949found="no" 8950 8951 if test $found = "no" ; then 8952 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8954 fi 8955 8956 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8958 fi 8959 8960 CFLAGS="$CFLAGS -Wmissing-braces" 8961 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8963$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8964 cacheid=xorg_cv_cc_flag__Wmissing_braces 8965 if eval \${$cacheid+:} false; then : 8966 $as_echo_n "(cached) " >&6 8967else 8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8969/* end confdefs.h. */ 8970int i; 8971int 8972main () 8973{ 8974 8975 ; 8976 return 0; 8977} 8978_ACEOF 8979if ac_fn_c_try_link "$LINENO"; then : 8980 eval $cacheid=yes 8981else 8982 eval $cacheid=no 8983fi 8984rm -f core conftest.err conftest.$ac_objext \ 8985 conftest$ac_exeext conftest.$ac_ext 8986fi 8987 8988 8989 CFLAGS="$xorg_testset_save_CFLAGS" 8990 8991 eval supported=\$$cacheid 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8993$as_echo "$supported" >&6; } 8994 if test "$supported" = "yes" ; then 8995 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8996 found="yes" 8997 fi 8998 fi 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014xorg_testset_save_CFLAGS="$CFLAGS" 9015 9016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9021 $as_echo_n "(cached) " >&6 9022else 9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9024/* end confdefs.h. */ 9025int i; 9026_ACEOF 9027if ac_fn_c_try_compile "$LINENO"; then : 9028 xorg_cv_cc_flag_unknown_warning_option=yes 9029else 9030 xorg_cv_cc_flag_unknown_warning_option=no 9031fi 9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9033fi 9034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9037 CFLAGS="$xorg_testset_save_CFLAGS" 9038fi 9039 9040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9043 fi 9044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9048 $as_echo_n "(cached) " >&6 9049else 9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9051/* end confdefs.h. */ 9052int i; 9053_ACEOF 9054if ac_fn_c_try_compile "$LINENO"; then : 9055 xorg_cv_cc_flag_unused_command_line_argument=yes 9056else 9057 xorg_cv_cc_flag_unused_command_line_argument=no 9058fi 9059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9060fi 9061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9064 CFLAGS="$xorg_testset_save_CFLAGS" 9065fi 9066 9067found="no" 9068 9069 if test $found = "no" ; then 9070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9072 fi 9073 9074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9076 fi 9077 9078 CFLAGS="$CFLAGS -Wsequence-point" 9079 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9081$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9082 cacheid=xorg_cv_cc_flag__Wsequence_point 9083 if eval \${$cacheid+:} false; then : 9084 $as_echo_n "(cached) " >&6 9085else 9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9087/* end confdefs.h. */ 9088int i; 9089int 9090main () 9091{ 9092 9093 ; 9094 return 0; 9095} 9096_ACEOF 9097if ac_fn_c_try_link "$LINENO"; then : 9098 eval $cacheid=yes 9099else 9100 eval $cacheid=no 9101fi 9102rm -f core conftest.err conftest.$ac_objext \ 9103 conftest$ac_exeext conftest.$ac_ext 9104fi 9105 9106 9107 CFLAGS="$xorg_testset_save_CFLAGS" 9108 9109 eval supported=\$$cacheid 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9111$as_echo "$supported" >&6; } 9112 if test "$supported" = "yes" ; then 9113 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9114 found="yes" 9115 fi 9116 fi 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132xorg_testset_save_CFLAGS="$CFLAGS" 9133 9134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9139 $as_echo_n "(cached) " >&6 9140else 9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9142/* end confdefs.h. */ 9143int i; 9144_ACEOF 9145if ac_fn_c_try_compile "$LINENO"; then : 9146 xorg_cv_cc_flag_unknown_warning_option=yes 9147else 9148 xorg_cv_cc_flag_unknown_warning_option=no 9149fi 9150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9151fi 9152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9155 CFLAGS="$xorg_testset_save_CFLAGS" 9156fi 9157 9158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161 fi 9162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9166 $as_echo_n "(cached) " >&6 9167else 9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9169/* end confdefs.h. */ 9170int i; 9171_ACEOF 9172if ac_fn_c_try_compile "$LINENO"; then : 9173 xorg_cv_cc_flag_unused_command_line_argument=yes 9174else 9175 xorg_cv_cc_flag_unused_command_line_argument=no 9176fi 9177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9178fi 9179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9182 CFLAGS="$xorg_testset_save_CFLAGS" 9183fi 9184 9185found="no" 9186 9187 if test $found = "no" ; then 9188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9190 fi 9191 9192 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9194 fi 9195 9196 CFLAGS="$CFLAGS -Wreturn-type" 9197 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9199$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9200 cacheid=xorg_cv_cc_flag__Wreturn_type 9201 if eval \${$cacheid+:} false; then : 9202 $as_echo_n "(cached) " >&6 9203else 9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9205/* end confdefs.h. */ 9206int i; 9207int 9208main () 9209{ 9210 9211 ; 9212 return 0; 9213} 9214_ACEOF 9215if ac_fn_c_try_link "$LINENO"; then : 9216 eval $cacheid=yes 9217else 9218 eval $cacheid=no 9219fi 9220rm -f core conftest.err conftest.$ac_objext \ 9221 conftest$ac_exeext conftest.$ac_ext 9222fi 9223 9224 9225 CFLAGS="$xorg_testset_save_CFLAGS" 9226 9227 eval supported=\$$cacheid 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9229$as_echo "$supported" >&6; } 9230 if test "$supported" = "yes" ; then 9231 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9232 found="yes" 9233 fi 9234 fi 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250xorg_testset_save_CFLAGS="$CFLAGS" 9251 9252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9257 $as_echo_n "(cached) " >&6 9258else 9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9260/* end confdefs.h. */ 9261int i; 9262_ACEOF 9263if ac_fn_c_try_compile "$LINENO"; then : 9264 xorg_cv_cc_flag_unknown_warning_option=yes 9265else 9266 xorg_cv_cc_flag_unknown_warning_option=no 9267fi 9268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9269fi 9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9273 CFLAGS="$xorg_testset_save_CFLAGS" 9274fi 9275 9276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9279 fi 9280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9284 $as_echo_n "(cached) " >&6 9285else 9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9287/* end confdefs.h. */ 9288int i; 9289_ACEOF 9290if ac_fn_c_try_compile "$LINENO"; then : 9291 xorg_cv_cc_flag_unused_command_line_argument=yes 9292else 9293 xorg_cv_cc_flag_unused_command_line_argument=no 9294fi 9295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9296fi 9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9300 CFLAGS="$xorg_testset_save_CFLAGS" 9301fi 9302 9303found="no" 9304 9305 if test $found = "no" ; then 9306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9308 fi 9309 9310 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9312 fi 9313 9314 CFLAGS="$CFLAGS -Wtrigraphs" 9315 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9317$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9318 cacheid=xorg_cv_cc_flag__Wtrigraphs 9319 if eval \${$cacheid+:} false; then : 9320 $as_echo_n "(cached) " >&6 9321else 9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9323/* end confdefs.h. */ 9324int i; 9325int 9326main () 9327{ 9328 9329 ; 9330 return 0; 9331} 9332_ACEOF 9333if ac_fn_c_try_link "$LINENO"; then : 9334 eval $cacheid=yes 9335else 9336 eval $cacheid=no 9337fi 9338rm -f core conftest.err conftest.$ac_objext \ 9339 conftest$ac_exeext conftest.$ac_ext 9340fi 9341 9342 9343 CFLAGS="$xorg_testset_save_CFLAGS" 9344 9345 eval supported=\$$cacheid 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9347$as_echo "$supported" >&6; } 9348 if test "$supported" = "yes" ; then 9349 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9350 found="yes" 9351 fi 9352 fi 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368xorg_testset_save_CFLAGS="$CFLAGS" 9369 9370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9375 $as_echo_n "(cached) " >&6 9376else 9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9378/* end confdefs.h. */ 9379int i; 9380_ACEOF 9381if ac_fn_c_try_compile "$LINENO"; then : 9382 xorg_cv_cc_flag_unknown_warning_option=yes 9383else 9384 xorg_cv_cc_flag_unknown_warning_option=no 9385fi 9386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9387fi 9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9391 CFLAGS="$xorg_testset_save_CFLAGS" 9392fi 9393 9394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9397 fi 9398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9402 $as_echo_n "(cached) " >&6 9403else 9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9405/* end confdefs.h. */ 9406int i; 9407_ACEOF 9408if ac_fn_c_try_compile "$LINENO"; then : 9409 xorg_cv_cc_flag_unused_command_line_argument=yes 9410else 9411 xorg_cv_cc_flag_unused_command_line_argument=no 9412fi 9413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9414fi 9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9418 CFLAGS="$xorg_testset_save_CFLAGS" 9419fi 9420 9421found="no" 9422 9423 if test $found = "no" ; then 9424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9426 fi 9427 9428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9430 fi 9431 9432 CFLAGS="$CFLAGS -Warray-bounds" 9433 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9435$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9436 cacheid=xorg_cv_cc_flag__Warray_bounds 9437 if eval \${$cacheid+:} false; then : 9438 $as_echo_n "(cached) " >&6 9439else 9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9441/* end confdefs.h. */ 9442int i; 9443int 9444main () 9445{ 9446 9447 ; 9448 return 0; 9449} 9450_ACEOF 9451if ac_fn_c_try_link "$LINENO"; then : 9452 eval $cacheid=yes 9453else 9454 eval $cacheid=no 9455fi 9456rm -f core conftest.err conftest.$ac_objext \ 9457 conftest$ac_exeext conftest.$ac_ext 9458fi 9459 9460 9461 CFLAGS="$xorg_testset_save_CFLAGS" 9462 9463 eval supported=\$$cacheid 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9465$as_echo "$supported" >&6; } 9466 if test "$supported" = "yes" ; then 9467 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9468 found="yes" 9469 fi 9470 fi 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486xorg_testset_save_CFLAGS="$CFLAGS" 9487 9488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9493 $as_echo_n "(cached) " >&6 9494else 9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9496/* end confdefs.h. */ 9497int i; 9498_ACEOF 9499if ac_fn_c_try_compile "$LINENO"; then : 9500 xorg_cv_cc_flag_unknown_warning_option=yes 9501else 9502 xorg_cv_cc_flag_unknown_warning_option=no 9503fi 9504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9505fi 9506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9509 CFLAGS="$xorg_testset_save_CFLAGS" 9510fi 9511 9512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9515 fi 9516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9520 $as_echo_n "(cached) " >&6 9521else 9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523/* end confdefs.h. */ 9524int i; 9525_ACEOF 9526if ac_fn_c_try_compile "$LINENO"; then : 9527 xorg_cv_cc_flag_unused_command_line_argument=yes 9528else 9529 xorg_cv_cc_flag_unused_command_line_argument=no 9530fi 9531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9532fi 9533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9536 CFLAGS="$xorg_testset_save_CFLAGS" 9537fi 9538 9539found="no" 9540 9541 if test $found = "no" ; then 9542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9544 fi 9545 9546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9548 fi 9549 9550 CFLAGS="$CFLAGS -Wwrite-strings" 9551 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9553$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9554 cacheid=xorg_cv_cc_flag__Wwrite_strings 9555 if eval \${$cacheid+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9559/* end confdefs.h. */ 9560int i; 9561int 9562main () 9563{ 9564 9565 ; 9566 return 0; 9567} 9568_ACEOF 9569if ac_fn_c_try_link "$LINENO"; then : 9570 eval $cacheid=yes 9571else 9572 eval $cacheid=no 9573fi 9574rm -f core conftest.err conftest.$ac_objext \ 9575 conftest$ac_exeext conftest.$ac_ext 9576fi 9577 9578 9579 CFLAGS="$xorg_testset_save_CFLAGS" 9580 9581 eval supported=\$$cacheid 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9583$as_echo "$supported" >&6; } 9584 if test "$supported" = "yes" ; then 9585 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9586 found="yes" 9587 fi 9588 fi 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604xorg_testset_save_CFLAGS="$CFLAGS" 9605 9606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9611 $as_echo_n "(cached) " >&6 9612else 9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9614/* end confdefs.h. */ 9615int i; 9616_ACEOF 9617if ac_fn_c_try_compile "$LINENO"; then : 9618 xorg_cv_cc_flag_unknown_warning_option=yes 9619else 9620 xorg_cv_cc_flag_unknown_warning_option=no 9621fi 9622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9623fi 9624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9627 CFLAGS="$xorg_testset_save_CFLAGS" 9628fi 9629 9630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9633 fi 9634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9638 $as_echo_n "(cached) " >&6 9639else 9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9641/* end confdefs.h. */ 9642int i; 9643_ACEOF 9644if ac_fn_c_try_compile "$LINENO"; then : 9645 xorg_cv_cc_flag_unused_command_line_argument=yes 9646else 9647 xorg_cv_cc_flag_unused_command_line_argument=no 9648fi 9649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9650fi 9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9654 CFLAGS="$xorg_testset_save_CFLAGS" 9655fi 9656 9657found="no" 9658 9659 if test $found = "no" ; then 9660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9662 fi 9663 9664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9666 fi 9667 9668 CFLAGS="$CFLAGS -Waddress" 9669 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9671$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9672 cacheid=xorg_cv_cc_flag__Waddress 9673 if eval \${$cacheid+:} false; then : 9674 $as_echo_n "(cached) " >&6 9675else 9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9677/* end confdefs.h. */ 9678int i; 9679int 9680main () 9681{ 9682 9683 ; 9684 return 0; 9685} 9686_ACEOF 9687if ac_fn_c_try_link "$LINENO"; then : 9688 eval $cacheid=yes 9689else 9690 eval $cacheid=no 9691fi 9692rm -f core conftest.err conftest.$ac_objext \ 9693 conftest$ac_exeext conftest.$ac_ext 9694fi 9695 9696 9697 CFLAGS="$xorg_testset_save_CFLAGS" 9698 9699 eval supported=\$$cacheid 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9701$as_echo "$supported" >&6; } 9702 if test "$supported" = "yes" ; then 9703 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9704 found="yes" 9705 fi 9706 fi 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722xorg_testset_save_CFLAGS="$CFLAGS" 9723 9724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9729 $as_echo_n "(cached) " >&6 9730else 9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732/* end confdefs.h. */ 9733int i; 9734_ACEOF 9735if ac_fn_c_try_compile "$LINENO"; then : 9736 xorg_cv_cc_flag_unknown_warning_option=yes 9737else 9738 xorg_cv_cc_flag_unknown_warning_option=no 9739fi 9740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9741fi 9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9745 CFLAGS="$xorg_testset_save_CFLAGS" 9746fi 9747 9748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9751 fi 9752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9756 $as_echo_n "(cached) " >&6 9757else 9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9759/* end confdefs.h. */ 9760int i; 9761_ACEOF 9762if ac_fn_c_try_compile "$LINENO"; then : 9763 xorg_cv_cc_flag_unused_command_line_argument=yes 9764else 9765 xorg_cv_cc_flag_unused_command_line_argument=no 9766fi 9767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9768fi 9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9772 CFLAGS="$xorg_testset_save_CFLAGS" 9773fi 9774 9775found="no" 9776 9777 if test $found = "no" ; then 9778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9780 fi 9781 9782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9784 fi 9785 9786 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9787 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9789$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9790 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9791 if eval \${$cacheid+:} false; then : 9792 $as_echo_n "(cached) " >&6 9793else 9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9795/* end confdefs.h. */ 9796int i; 9797int 9798main () 9799{ 9800 9801 ; 9802 return 0; 9803} 9804_ACEOF 9805if ac_fn_c_try_link "$LINENO"; then : 9806 eval $cacheid=yes 9807else 9808 eval $cacheid=no 9809fi 9810rm -f core conftest.err conftest.$ac_objext \ 9811 conftest$ac_exeext conftest.$ac_ext 9812fi 9813 9814 9815 CFLAGS="$xorg_testset_save_CFLAGS" 9816 9817 eval supported=\$$cacheid 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9819$as_echo "$supported" >&6; } 9820 if test "$supported" = "yes" ; then 9821 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9822 found="yes" 9823 fi 9824 fi 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840xorg_testset_save_CFLAGS="$CFLAGS" 9841 9842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9847 $as_echo_n "(cached) " >&6 9848else 9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9850/* end confdefs.h. */ 9851int i; 9852_ACEOF 9853if ac_fn_c_try_compile "$LINENO"; then : 9854 xorg_cv_cc_flag_unknown_warning_option=yes 9855else 9856 xorg_cv_cc_flag_unknown_warning_option=no 9857fi 9858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9859fi 9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9863 CFLAGS="$xorg_testset_save_CFLAGS" 9864fi 9865 9866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9869 fi 9870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9874 $as_echo_n "(cached) " >&6 9875else 9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9877/* end confdefs.h. */ 9878int i; 9879_ACEOF 9880if ac_fn_c_try_compile "$LINENO"; then : 9881 xorg_cv_cc_flag_unused_command_line_argument=yes 9882else 9883 xorg_cv_cc_flag_unused_command_line_argument=no 9884fi 9885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9886fi 9887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9890 CFLAGS="$xorg_testset_save_CFLAGS" 9891fi 9892 9893found="no" 9894 9895 if test $found = "no" ; then 9896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9898 fi 9899 9900 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9902 fi 9903 9904 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9905 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9907$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9908 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9909 if eval \${$cacheid+:} false; then : 9910 $as_echo_n "(cached) " >&6 9911else 9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9913/* end confdefs.h. */ 9914int i; 9915int 9916main () 9917{ 9918 9919 ; 9920 return 0; 9921} 9922_ACEOF 9923if ac_fn_c_try_link "$LINENO"; then : 9924 eval $cacheid=yes 9925else 9926 eval $cacheid=no 9927fi 9928rm -f core conftest.err conftest.$ac_objext \ 9929 conftest$ac_exeext conftest.$ac_ext 9930fi 9931 9932 9933 CFLAGS="$xorg_testset_save_CFLAGS" 9934 9935 eval supported=\$$cacheid 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9937$as_echo "$supported" >&6; } 9938 if test "$supported" = "yes" ; then 9939 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9940 found="yes" 9941 fi 9942 fi 9943 9944 9945fi 9946 9947 9948 9949 9950 9951 9952 9953 CWARNFLAGS="$BASE_CFLAGS" 9954 if test "x$GCC" = xyes ; then 9955 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9956 fi 9957 9958 9959 9960 9961 9962 9963 9964 9965# Check whether --enable-strict-compilation was given. 9966if test "${enable_strict_compilation+set}" = set; then : 9967 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9968else 9969 STRICT_COMPILE=no 9970fi 9971 9972 9973 9974 9975 9976 9977STRICT_CFLAGS="" 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991xorg_testset_save_CFLAGS="$CFLAGS" 9992 9993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9998 $as_echo_n "(cached) " >&6 9999else 10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10001/* end confdefs.h. */ 10002int i; 10003_ACEOF 10004if ac_fn_c_try_compile "$LINENO"; then : 10005 xorg_cv_cc_flag_unknown_warning_option=yes 10006else 10007 xorg_cv_cc_flag_unknown_warning_option=no 10008fi 10009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10010fi 10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10014 CFLAGS="$xorg_testset_save_CFLAGS" 10015fi 10016 10017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10020 fi 10021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10025 $as_echo_n "(cached) " >&6 10026else 10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10028/* end confdefs.h. */ 10029int i; 10030_ACEOF 10031if ac_fn_c_try_compile "$LINENO"; then : 10032 xorg_cv_cc_flag_unused_command_line_argument=yes 10033else 10034 xorg_cv_cc_flag_unused_command_line_argument=no 10035fi 10036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10037fi 10038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10040 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10041 CFLAGS="$xorg_testset_save_CFLAGS" 10042fi 10043 10044found="no" 10045 10046 if test $found = "no" ; then 10047 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10049 fi 10050 10051 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10053 fi 10054 10055 CFLAGS="$CFLAGS -pedantic" 10056 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10058$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10059 cacheid=xorg_cv_cc_flag__pedantic 10060 if eval \${$cacheid+:} false; then : 10061 $as_echo_n "(cached) " >&6 10062else 10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10064/* end confdefs.h. */ 10065int i; 10066int 10067main () 10068{ 10069 10070 ; 10071 return 0; 10072} 10073_ACEOF 10074if ac_fn_c_try_link "$LINENO"; then : 10075 eval $cacheid=yes 10076else 10077 eval $cacheid=no 10078fi 10079rm -f core conftest.err conftest.$ac_objext \ 10080 conftest$ac_exeext conftest.$ac_ext 10081fi 10082 10083 10084 CFLAGS="$xorg_testset_save_CFLAGS" 10085 10086 eval supported=\$$cacheid 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10088$as_echo "$supported" >&6; } 10089 if test "$supported" = "yes" ; then 10090 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10091 found="yes" 10092 fi 10093 fi 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109xorg_testset_save_CFLAGS="$CFLAGS" 10110 10111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10116 $as_echo_n "(cached) " >&6 10117else 10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10119/* end confdefs.h. */ 10120int i; 10121_ACEOF 10122if ac_fn_c_try_compile "$LINENO"; then : 10123 xorg_cv_cc_flag_unknown_warning_option=yes 10124else 10125 xorg_cv_cc_flag_unknown_warning_option=no 10126fi 10127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10128fi 10129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10132 CFLAGS="$xorg_testset_save_CFLAGS" 10133fi 10134 10135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10138 fi 10139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10143 $as_echo_n "(cached) " >&6 10144else 10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10146/* end confdefs.h. */ 10147int i; 10148_ACEOF 10149if ac_fn_c_try_compile "$LINENO"; then : 10150 xorg_cv_cc_flag_unused_command_line_argument=yes 10151else 10152 xorg_cv_cc_flag_unused_command_line_argument=no 10153fi 10154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10155fi 10156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10159 CFLAGS="$xorg_testset_save_CFLAGS" 10160fi 10161 10162found="no" 10163 10164 if test $found = "no" ; then 10165 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10167 fi 10168 10169 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10171 fi 10172 10173 CFLAGS="$CFLAGS -Werror" 10174 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10176$as_echo_n "checking if $CC supports -Werror... " >&6; } 10177 cacheid=xorg_cv_cc_flag__Werror 10178 if eval \${$cacheid+:} false; then : 10179 $as_echo_n "(cached) " >&6 10180else 10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10182/* end confdefs.h. */ 10183int i; 10184int 10185main () 10186{ 10187 10188 ; 10189 return 0; 10190} 10191_ACEOF 10192if ac_fn_c_try_link "$LINENO"; then : 10193 eval $cacheid=yes 10194else 10195 eval $cacheid=no 10196fi 10197rm -f core conftest.err conftest.$ac_objext \ 10198 conftest$ac_exeext conftest.$ac_ext 10199fi 10200 10201 10202 CFLAGS="$xorg_testset_save_CFLAGS" 10203 10204 eval supported=\$$cacheid 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10206$as_echo "$supported" >&6; } 10207 if test "$supported" = "yes" ; then 10208 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10209 found="yes" 10210 fi 10211 fi 10212 10213 if test $found = "no" ; then 10214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10216 fi 10217 10218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10220 fi 10221 10222 CFLAGS="$CFLAGS -errwarn" 10223 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10225$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10226 cacheid=xorg_cv_cc_flag__errwarn 10227 if eval \${$cacheid+:} false; then : 10228 $as_echo_n "(cached) " >&6 10229else 10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10231/* end confdefs.h. */ 10232int i; 10233int 10234main () 10235{ 10236 10237 ; 10238 return 0; 10239} 10240_ACEOF 10241if ac_fn_c_try_link "$LINENO"; then : 10242 eval $cacheid=yes 10243else 10244 eval $cacheid=no 10245fi 10246rm -f core conftest.err conftest.$ac_objext \ 10247 conftest$ac_exeext conftest.$ac_ext 10248fi 10249 10250 10251 CFLAGS="$xorg_testset_save_CFLAGS" 10252 10253 eval supported=\$$cacheid 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10255$as_echo "$supported" >&6; } 10256 if test "$supported" = "yes" ; then 10257 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10258 found="yes" 10259 fi 10260 fi 10261 10262 10263 10264# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10265# activate it with -Werror, so we add it here explicitly. 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279xorg_testset_save_CFLAGS="$CFLAGS" 10280 10281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10286 $as_echo_n "(cached) " >&6 10287else 10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10289/* end confdefs.h. */ 10290int i; 10291_ACEOF 10292if ac_fn_c_try_compile "$LINENO"; then : 10293 xorg_cv_cc_flag_unknown_warning_option=yes 10294else 10295 xorg_cv_cc_flag_unknown_warning_option=no 10296fi 10297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10298fi 10299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10302 CFLAGS="$xorg_testset_save_CFLAGS" 10303fi 10304 10305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10308 fi 10309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10313 $as_echo_n "(cached) " >&6 10314else 10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10316/* end confdefs.h. */ 10317int i; 10318_ACEOF 10319if ac_fn_c_try_compile "$LINENO"; then : 10320 xorg_cv_cc_flag_unused_command_line_argument=yes 10321else 10322 xorg_cv_cc_flag_unused_command_line_argument=no 10323fi 10324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10325fi 10326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10329 CFLAGS="$xorg_testset_save_CFLAGS" 10330fi 10331 10332found="no" 10333 10334 if test $found = "no" ; then 10335 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10337 fi 10338 10339 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10341 fi 10342 10343 CFLAGS="$CFLAGS -Werror=attributes" 10344 10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10346$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10347 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10348 if eval \${$cacheid+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350else 10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10352/* end confdefs.h. */ 10353int i; 10354int 10355main () 10356{ 10357 10358 ; 10359 return 0; 10360} 10361_ACEOF 10362if ac_fn_c_try_link "$LINENO"; then : 10363 eval $cacheid=yes 10364else 10365 eval $cacheid=no 10366fi 10367rm -f core conftest.err conftest.$ac_objext \ 10368 conftest$ac_exeext conftest.$ac_ext 10369fi 10370 10371 10372 CFLAGS="$xorg_testset_save_CFLAGS" 10373 10374 eval supported=\$$cacheid 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10376$as_echo "$supported" >&6; } 10377 if test "$supported" = "yes" ; then 10378 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10379 found="yes" 10380 fi 10381 fi 10382 10383 10384 10385if test "x$STRICT_COMPILE" = "xyes"; then 10386 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10387 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10388fi 10389 10390 10391 10392 10393 10394 10395cat >>confdefs.h <<_ACEOF 10396#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10397_ACEOF 10398 10399 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10400 if test "x$PVM" = "x"; then 10401 PVM="0" 10402 fi 10403 10404cat >>confdefs.h <<_ACEOF 10405#define PACKAGE_VERSION_MINOR $PVM 10406_ACEOF 10407 10408 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10409 if test "x$PVP" = "x"; then 10410 PVP="0" 10411 fi 10412 10413cat >>confdefs.h <<_ACEOF 10414#define PACKAGE_VERSION_PATCHLEVEL $PVP 10415_ACEOF 10416 10417 10418 10419CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10420mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10421|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10422echo 'git directory not found: installing possibly empty changelog.' >&2)" 10423 10424 10425 10426 10427macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10428INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10429mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10430|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10431echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10432 10433 10434 10435 10436 10437 10438if test x$APP_MAN_SUFFIX = x ; then 10439 APP_MAN_SUFFIX=1 10440fi 10441if test x$APP_MAN_DIR = x ; then 10442 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10443fi 10444 10445if test x$LIB_MAN_SUFFIX = x ; then 10446 LIB_MAN_SUFFIX=3 10447fi 10448if test x$LIB_MAN_DIR = x ; then 10449 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10450fi 10451 10452if test x$FILE_MAN_SUFFIX = x ; then 10453 case $host_os in 10454 solaris*) FILE_MAN_SUFFIX=4 ;; 10455 *) FILE_MAN_SUFFIX=5 ;; 10456 esac 10457fi 10458if test x$FILE_MAN_DIR = x ; then 10459 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10460fi 10461 10462if test x$MISC_MAN_SUFFIX = x ; then 10463 case $host_os in 10464 solaris*) MISC_MAN_SUFFIX=5 ;; 10465 *) MISC_MAN_SUFFIX=7 ;; 10466 esac 10467fi 10468if test x$MISC_MAN_DIR = x ; then 10469 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10470fi 10471 10472if test x$DRIVER_MAN_SUFFIX = x ; then 10473 case $host_os in 10474 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10475 *) DRIVER_MAN_SUFFIX=4 ;; 10476 esac 10477fi 10478if test x$DRIVER_MAN_DIR = x ; then 10479 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10480fi 10481 10482if test x$ADMIN_MAN_SUFFIX = x ; then 10483 case $host_os in 10484 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10485 *) ADMIN_MAN_SUFFIX=8 ;; 10486 esac 10487fi 10488if test x$ADMIN_MAN_DIR = x ; then 10489 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10490fi 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506XORG_MAN_PAGE="X Version 11" 10507 10508MAN_SUBSTS="\ 10509 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10510 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10511 -e 's|__xservername__|Xorg|g' \ 10512 -e 's|__xconfigfile__|xorg.conf|g' \ 10513 -e 's|__projectroot__|\$(prefix)|g' \ 10514 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10515 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10516 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10517 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10518 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10519 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10520 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10521 10522 10523 10524# Check whether --enable-silent-rules was given. 10525if test "${enable_silent_rules+set}" = set; then : 10526 enableval=$enable_silent_rules; 10527fi 10528 10529case $enable_silent_rules in # ((( 10530 yes) AM_DEFAULT_VERBOSITY=0;; 10531 no) AM_DEFAULT_VERBOSITY=1;; 10532 *) AM_DEFAULT_VERBOSITY=0;; 10533esac 10534am_make=${MAKE-make} 10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10536$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10537if ${am_cv_make_support_nested_variables+:} false; then : 10538 $as_echo_n "(cached) " >&6 10539else 10540 if $as_echo 'TRUE=$(BAR$(V)) 10541BAR0=false 10542BAR1=true 10543V=1 10544am__doit: 10545 @$(TRUE) 10546.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10547 am_cv_make_support_nested_variables=yes 10548else 10549 am_cv_make_support_nested_variables=no 10550fi 10551fi 10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10553$as_echo "$am_cv_make_support_nested_variables" >&6; } 10554if test $am_cv_make_support_nested_variables = yes; then 10555 AM_V='$(V)' 10556 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10557else 10558 AM_V=$AM_DEFAULT_VERBOSITY 10559 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10560fi 10561AM_BACKSLASH='\' 10562 10563 10564 10565ac_config_headers="$ac_config_headers config.h" 10566 10567 10568# Checks for pkg-config packages 10569 10570pkg_failed=no 10571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPYINFO" >&5 10572$as_echo_n "checking for XDPYINFO... " >&6; } 10573 10574if test -n "$XDPYINFO_CFLAGS"; then 10575 pkg_cv_XDPYINFO_CFLAGS="$XDPYINFO_CFLAGS" 10576 elif test -n "$PKG_CONFIG"; then 10577 if test -n "$PKG_CONFIG" && \ 10578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.17\""; } >&5 10579 ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.17") 2>&5 10580 ac_status=$? 10581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10582 test $ac_status = 0; }; then 10583 pkg_cv_XDPYINFO_CFLAGS=`$PKG_CONFIG --cflags "xext x11 xtst x11-xcb xcb xproto >= 7.0.17" 2>/dev/null` 10584else 10585 pkg_failed=yes 10586fi 10587 else 10588 pkg_failed=untried 10589fi 10590if test -n "$XDPYINFO_LIBS"; then 10591 pkg_cv_XDPYINFO_LIBS="$XDPYINFO_LIBS" 10592 elif test -n "$PKG_CONFIG"; then 10593 if test -n "$PKG_CONFIG" && \ 10594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.17\""; } >&5 10595 ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.17") 2>&5 10596 ac_status=$? 10597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10598 test $ac_status = 0; }; then 10599 pkg_cv_XDPYINFO_LIBS=`$PKG_CONFIG --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.17" 2>/dev/null` 10600else 10601 pkg_failed=yes 10602fi 10603 else 10604 pkg_failed=untried 10605fi 10606 10607 10608 10609if test $pkg_failed = yes; then 10610 10611if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10612 _pkg_short_errors_supported=yes 10613else 10614 _pkg_short_errors_supported=no 10615fi 10616 if test $_pkg_short_errors_supported = yes; then 10617 XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.17" 2>&1` 10618 else 10619 XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.17" 2>&1` 10620 fi 10621 # Put the nasty error message in config.log where it belongs 10622 echo "$XDPYINFO_PKG_ERRORS" >&5 10623 10624 as_fn_error $? "Package requirements (xext x11 xtst x11-xcb xcb xproto >= 7.0.17) were not met: 10625 10626$XDPYINFO_PKG_ERRORS 10627 10628Consider adjusting the PKG_CONFIG_PATH environment variable if you 10629installed software in a non-standard prefix. 10630 10631Alternatively, you may set the environment variables XDPYINFO_CFLAGS 10632and XDPYINFO_LIBS to avoid the need to call pkg-config. 10633See the pkg-config man page for more details. 10634" "$LINENO" 5 10635elif test $pkg_failed = untried; then 10636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10638as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10639is in your PATH or set the PKG_CONFIG environment variable to the full 10640path to pkg-config. 10641 10642Alternatively, you may set the environment variables XDPYINFO_CFLAGS 10643and XDPYINFO_LIBS to avoid the need to call pkg-config. 10644See the pkg-config man page for more details. 10645 10646To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10647See \`config.log' for more details" "$LINENO" 5; } 10648else 10649 XDPYINFO_CFLAGS=$pkg_cv_XDPYINFO_CFLAGS 10650 XDPYINFO_LIBS=$pkg_cv_XDPYINFO_LIBS 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10652$as_echo "yes" >&6; } 10653 : 10654fi 10655 10656# This is used below to allow <X11/Xlib.h> to be found 10657 10658pkg_failed=no 10659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_X11" >&5 10660$as_echo_n "checking for DPY_X11... " >&6; } 10661 10662if test -n "$DPY_X11_CFLAGS"; then 10663 pkg_cv_DPY_X11_CFLAGS="$DPY_X11_CFLAGS" 10664 elif test -n "$PKG_CONFIG"; then 10665 if test -n "$PKG_CONFIG" && \ 10666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 10667 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 10668 ac_status=$? 10669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10670 test $ac_status = 0; }; then 10671 pkg_cv_DPY_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 10672else 10673 pkg_failed=yes 10674fi 10675 else 10676 pkg_failed=untried 10677fi 10678if test -n "$DPY_X11_LIBS"; then 10679 pkg_cv_DPY_X11_LIBS="$DPY_X11_LIBS" 10680 elif test -n "$PKG_CONFIG"; then 10681 if test -n "$PKG_CONFIG" && \ 10682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 10683 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 10684 ac_status=$? 10685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10686 test $ac_status = 0; }; then 10687 pkg_cv_DPY_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 10688else 10689 pkg_failed=yes 10690fi 10691 else 10692 pkg_failed=untried 10693fi 10694 10695 10696 10697if test $pkg_failed = yes; then 10698 10699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10700 _pkg_short_errors_supported=yes 10701else 10702 _pkg_short_errors_supported=no 10703fi 10704 if test $_pkg_short_errors_supported = yes; then 10705 DPY_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` 10706 else 10707 DPY_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` 10708 fi 10709 # Put the nasty error message in config.log where it belongs 10710 echo "$DPY_X11_PKG_ERRORS" >&5 10711 10712 as_fn_error $? "Package requirements (x11) were not met: 10713 10714$DPY_X11_PKG_ERRORS 10715 10716Consider adjusting the PKG_CONFIG_PATH environment variable if you 10717installed software in a non-standard prefix. 10718 10719Alternatively, you may set the environment variables DPY_X11_CFLAGS 10720and DPY_X11_LIBS to avoid the need to call pkg-config. 10721See the pkg-config man page for more details. 10722" "$LINENO" 5 10723elif test $pkg_failed = untried; then 10724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10726as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10727is in your PATH or set the PKG_CONFIG environment variable to the full 10728path to pkg-config. 10729 10730Alternatively, you may set the environment variables DPY_X11_CFLAGS 10731and DPY_X11_LIBS to avoid the need to call pkg-config. 10732See the pkg-config man page for more details. 10733 10734To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10735See \`config.log' for more details" "$LINENO" 5; } 10736else 10737 DPY_X11_CFLAGS=$pkg_cv_DPY_X11_CFLAGS 10738 DPY_X11_LIBS=$pkg_cv_DPY_X11_LIBS 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10740$as_echo "yes" >&6; } 10741 : 10742fi 10743 10744 10745pkg_failed=no 10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XEXT" >&5 10747$as_echo_n "checking for DPY_XEXT... " >&6; } 10748 10749if test -n "$DPY_XEXT_CFLAGS"; then 10750 pkg_cv_DPY_XEXT_CFLAGS="$DPY_XEXT_CFLAGS" 10751 elif test -n "$PKG_CONFIG"; then 10752 if test -n "$PKG_CONFIG" && \ 10753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 10754 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 10755 ac_status=$? 10756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10757 test $ac_status = 0; }; then 10758 pkg_cv_DPY_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` 10759else 10760 pkg_failed=yes 10761fi 10762 else 10763 pkg_failed=untried 10764fi 10765if test -n "$DPY_XEXT_LIBS"; then 10766 pkg_cv_DPY_XEXT_LIBS="$DPY_XEXT_LIBS" 10767 elif test -n "$PKG_CONFIG"; then 10768 if test -n "$PKG_CONFIG" && \ 10769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 10770 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 10771 ac_status=$? 10772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10773 test $ac_status = 0; }; then 10774 pkg_cv_DPY_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` 10775else 10776 pkg_failed=yes 10777fi 10778 else 10779 pkg_failed=untried 10780fi 10781 10782 10783 10784if test $pkg_failed = yes; then 10785 10786if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10787 _pkg_short_errors_supported=yes 10788else 10789 _pkg_short_errors_supported=no 10790fi 10791 if test $_pkg_short_errors_supported = yes; then 10792 DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1` 10793 else 10794 DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1` 10795 fi 10796 # Put the nasty error message in config.log where it belongs 10797 echo "$DPY_XEXT_PKG_ERRORS" >&5 10798 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10800$as_echo "no" >&6; } 10801 echo "not found" 10802elif test $pkg_failed = untried; then 10803 echo "not found" 10804else 10805 DPY_XEXT_CFLAGS=$pkg_cv_DPY_XEXT_CFLAGS 10806 DPY_XEXT_LIBS=$pkg_cv_DPY_XEXT_LIBS 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10808$as_echo "yes" >&6; } 10809 SAVE_CPPFLAGS="$CPPFLAGS" 10810 CPPFLAGS="$CPPFLAGS $DPY_XEXT_CFLAGS $DPY_X11_CFLAGS" 10811 for ac_header in X11/extensions/multibuf.h X11/extensions/XShm.h 10812do : 10813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10814ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 10815" 10816if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10817 cat >>confdefs.h <<_ACEOF 10818#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10819_ACEOF 10820 10821fi 10822 10823done 10824 10825 CPPFLAGS="$SAVE_CPPFLAGS" 10826fi 10827 10828 10829pkg_failed=no 10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XKB" >&5 10831$as_echo_n "checking for DPY_XKB... " >&6; } 10832 10833if test -n "$DPY_XKB_CFLAGS"; then 10834 pkg_cv_DPY_XKB_CFLAGS="$DPY_XKB_CFLAGS" 10835 elif test -n "$PKG_CONFIG"; then 10836 if test -n "$PKG_CONFIG" && \ 10837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 10838 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 10839 ac_status=$? 10840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10841 test $ac_status = 0; }; then 10842 pkg_cv_DPY_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 10843else 10844 pkg_failed=yes 10845fi 10846 else 10847 pkg_failed=untried 10848fi 10849if test -n "$DPY_XKB_LIBS"; then 10850 pkg_cv_DPY_XKB_LIBS="$DPY_XKB_LIBS" 10851 elif test -n "$PKG_CONFIG"; then 10852 if test -n "$PKG_CONFIG" && \ 10853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 10854 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 10855 ac_status=$? 10856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10857 test $ac_status = 0; }; then 10858 pkg_cv_DPY_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 10859else 10860 pkg_failed=yes 10861fi 10862 else 10863 pkg_failed=untried 10864fi 10865 10866 10867 10868if test $pkg_failed = yes; then 10869 10870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10871 _pkg_short_errors_supported=yes 10872else 10873 _pkg_short_errors_supported=no 10874fi 10875 if test $_pkg_short_errors_supported = yes; then 10876 DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` 10877 else 10878 DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` 10879 fi 10880 # Put the nasty error message in config.log where it belongs 10881 echo "$DPY_XKB_PKG_ERRORS" >&5 10882 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10884$as_echo "no" >&6; } 10885 echo "not found" 10886elif test $pkg_failed = untried; then 10887 echo "not found" 10888else 10889 DPY_XKB_CFLAGS=$pkg_cv_DPY_XKB_CFLAGS 10890 DPY_XKB_LIBS=$pkg_cv_DPY_XKB_LIBS 10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10892$as_echo "yes" >&6; } 10893 SAVE_CPPFLAGS="$CPPFLAGS" 10894 CPPFLAGS="$CPPFLAGS $DPY_XKB_CFLAGS $DPY_X11_CFLAGS" 10895 for ac_header in X11/extensions/XKB.h X11/XKBlib.h 10896do : 10897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10898ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 10899" 10900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10901 cat >>confdefs.h <<_ACEOF 10902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10903_ACEOF 10904 10905fi 10906 10907done 10908 10909 CPPFLAGS="$SAVE_CPPFLAGS" 10910fi 10911 10912 10913pkg_failed=no 10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86VIDMODE" >&5 10915$as_echo_n "checking for DPY_XF86VIDMODE... " >&6; } 10916 10917if test -n "$DPY_XF86VIDMODE_CFLAGS"; then 10918 pkg_cv_DPY_XF86VIDMODE_CFLAGS="$DPY_XF86VIDMODE_CFLAGS" 10919 elif test -n "$PKG_CONFIG"; then 10920 if test -n "$PKG_CONFIG" && \ 10921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5 10922 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5 10923 ac_status=$? 10924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10925 test $ac_status = 0; }; then 10926 pkg_cv_DPY_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null` 10927else 10928 pkg_failed=yes 10929fi 10930 else 10931 pkg_failed=untried 10932fi 10933if test -n "$DPY_XF86VIDMODE_LIBS"; then 10934 pkg_cv_DPY_XF86VIDMODE_LIBS="$DPY_XF86VIDMODE_LIBS" 10935 elif test -n "$PKG_CONFIG"; then 10936 if test -n "$PKG_CONFIG" && \ 10937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5 10938 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5 10939 ac_status=$? 10940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10941 test $ac_status = 0; }; then 10942 pkg_cv_DPY_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null` 10943else 10944 pkg_failed=yes 10945fi 10946 else 10947 pkg_failed=untried 10948fi 10949 10950 10951 10952if test $pkg_failed = yes; then 10953 10954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10955 _pkg_short_errors_supported=yes 10956else 10957 _pkg_short_errors_supported=no 10958fi 10959 if test $_pkg_short_errors_supported = yes; then 10960 DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86vm" 2>&1` 10961 else 10962 DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86vm" 2>&1` 10963 fi 10964 # Put the nasty error message in config.log where it belongs 10965 echo "$DPY_XF86VIDMODE_PKG_ERRORS" >&5 10966 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10968$as_echo "no" >&6; } 10969 echo "not found" 10970elif test $pkg_failed = untried; then 10971 echo "not found" 10972else 10973 DPY_XF86VIDMODE_CFLAGS=$pkg_cv_DPY_XF86VIDMODE_CFLAGS 10974 DPY_XF86VIDMODE_LIBS=$pkg_cv_DPY_XF86VIDMODE_LIBS 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10976$as_echo "yes" >&6; } 10977 SAVE_CPPFLAGS="$CPPFLAGS" 10978 CPPFLAGS="$CPPFLAGS $DPY_XF86VIDMODE_CFLAGS $DPY_X11_CFLAGS" 10979 for ac_header in X11/extensions/xf86vmode.h X11/extensions/xf86vmstr.h X11/extensions/xf86vmproto.h 10980do : 10981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10982ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 10983" 10984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10985 cat >>confdefs.h <<_ACEOF 10986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10987_ACEOF 10988 10989fi 10990 10991done 10992 10993 CPPFLAGS="$SAVE_CPPFLAGS" 10994fi 10995 10996 10997# Check whether --with-dga was given. 10998if test "${with_dga+set}" = set; then : 10999 withval=$with_dga; USE_DGA="$withval" 11000else 11001 USE_DGA="yes" 11002fi 11003 11004if test "x$USE_DGA" != "xno" ; then 11005 11006pkg_failed=no 11007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86DGA" >&5 11008$as_echo_n "checking for DPY_XF86DGA... " >&6; } 11009 11010if test -n "$DPY_XF86DGA_CFLAGS"; then 11011 pkg_cv_DPY_XF86DGA_CFLAGS="$DPY_XF86DGA_CFLAGS" 11012 elif test -n "$PKG_CONFIG"; then 11013 if test -n "$PKG_CONFIG" && \ 11014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5 11015 ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5 11016 ac_status=$? 11017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11018 test $ac_status = 0; }; then 11019 pkg_cv_DPY_XF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xxf86dga" 2>/dev/null` 11020else 11021 pkg_failed=yes 11022fi 11023 else 11024 pkg_failed=untried 11025fi 11026if test -n "$DPY_XF86DGA_LIBS"; then 11027 pkg_cv_DPY_XF86DGA_LIBS="$DPY_XF86DGA_LIBS" 11028 elif test -n "$PKG_CONFIG"; then 11029 if test -n "$PKG_CONFIG" && \ 11030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5 11031 ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5 11032 ac_status=$? 11033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11034 test $ac_status = 0; }; then 11035 pkg_cv_DPY_XF86DGA_LIBS=`$PKG_CONFIG --libs "xxf86dga" 2>/dev/null` 11036else 11037 pkg_failed=yes 11038fi 11039 else 11040 pkg_failed=untried 11041fi 11042 11043 11044 11045if test $pkg_failed = yes; then 11046 11047if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11048 _pkg_short_errors_supported=yes 11049else 11050 _pkg_short_errors_supported=no 11051fi 11052 if test $_pkg_short_errors_supported = yes; then 11053 DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86dga" 2>&1` 11054 else 11055 DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86dga" 2>&1` 11056 fi 11057 # Put the nasty error message in config.log where it belongs 11058 echo "$DPY_XF86DGA_PKG_ERRORS" >&5 11059 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11061$as_echo "no" >&6; } 11062 echo "not found" 11063elif test $pkg_failed = untried; then 11064 echo "not found" 11065else 11066 DPY_XF86DGA_CFLAGS=$pkg_cv_DPY_XF86DGA_CFLAGS 11067 DPY_XF86DGA_LIBS=$pkg_cv_DPY_XF86DGA_LIBS 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11069$as_echo "yes" >&6; } 11070 SAVE_CPPFLAGS="$CPPFLAGS" 11071 CPPFLAGS="$CPPFLAGS $DPY_XF86DGA_CFLAGS $DPY_X11_CFLAGS" 11072 for ac_header in X11/extensions/Xxf86dga.h X11/extensions/xf86dgaproto.h X11/extensions/xf86dga.h X11/extensions/xf86dgastr.h 11073do : 11074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11075ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 11076#include <X11/Xproto.h> 11077" 11078if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11079 cat >>confdefs.h <<_ACEOF 11080#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11081_ACEOF 11082 11083fi 11084 11085done 11086 11087 CPPFLAGS="$SAVE_CPPFLAGS" 11088fi 11089else 11090 echo "without dga" 11091fi 11092 11093 11094 11095# Check whether --with-xf86misc was given. 11096if test "${with_xf86misc+set}" = set; then : 11097 withval=$with_xf86misc; USE_XF86MISC="$withval" 11098else 11099 USE_XF86MISC="yes" 11100fi 11101 11102if test "x$USE_XF86MISC" != "xno" ; then 11103 11104pkg_failed=no 11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86MISC" >&5 11106$as_echo_n "checking for DPY_XF86MISC... " >&6; } 11107 11108if test -n "$DPY_XF86MISC_CFLAGS"; then 11109 pkg_cv_DPY_XF86MISC_CFLAGS="$DPY_XF86MISC_CFLAGS" 11110 elif test -n "$PKG_CONFIG"; then 11111 if test -n "$PKG_CONFIG" && \ 11112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5 11113 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5 11114 ac_status=$? 11115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11116 test $ac_status = 0; }; then 11117 pkg_cv_DPY_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null` 11118else 11119 pkg_failed=yes 11120fi 11121 else 11122 pkg_failed=untried 11123fi 11124if test -n "$DPY_XF86MISC_LIBS"; then 11125 pkg_cv_DPY_XF86MISC_LIBS="$DPY_XF86MISC_LIBS" 11126 elif test -n "$PKG_CONFIG"; then 11127 if test -n "$PKG_CONFIG" && \ 11128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5 11129 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5 11130 ac_status=$? 11131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11132 test $ac_status = 0; }; then 11133 pkg_cv_DPY_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null` 11134else 11135 pkg_failed=yes 11136fi 11137 else 11138 pkg_failed=untried 11139fi 11140 11141 11142 11143if test $pkg_failed = yes; then 11144 11145if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11146 _pkg_short_errors_supported=yes 11147else 11148 _pkg_short_errors_supported=no 11149fi 11150 if test $_pkg_short_errors_supported = yes; then 11151 DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86misc" 2>&1` 11152 else 11153 DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86misc" 2>&1` 11154 fi 11155 # Put the nasty error message in config.log where it belongs 11156 echo "$DPY_XF86MISC_PKG_ERRORS" >&5 11157 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11159$as_echo "no" >&6; } 11160 echo "not found" 11161elif test $pkg_failed = untried; then 11162 echo "not found" 11163else 11164 DPY_XF86MISC_CFLAGS=$pkg_cv_DPY_XF86MISC_CFLAGS 11165 DPY_XF86MISC_LIBS=$pkg_cv_DPY_XF86MISC_LIBS 11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11167$as_echo "yes" >&6; } 11168 SAVE_CPPFLAGS="$CPPFLAGS" 11169 CPPFLAGS="$CPPFLAGS $DPY_XF86MISC_CFLAGS $DPY_X11_CFLAGS" 11170 for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h 11171do : 11172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11173ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 11174#include <X11/Xproto.h> 11175" 11176if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11177 cat >>confdefs.h <<_ACEOF 11178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11179_ACEOF 11180 11181fi 11182 11183done 11184 11185 CPPFLAGS="$SAVE_CPPFLAGS" 11186fi 11187else 11188 echo "without xf86misc" 11189fi 11190 11191 11192pkg_failed=no 11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XINPUT" >&5 11194$as_echo_n "checking for DPY_XINPUT... " >&6; } 11195 11196if test -n "$DPY_XINPUT_CFLAGS"; then 11197 pkg_cv_DPY_XINPUT_CFLAGS="$DPY_XINPUT_CFLAGS" 11198 elif test -n "$PKG_CONFIG"; then 11199 if test -n "$PKG_CONFIG" && \ 11200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5 11201 ($PKG_CONFIG --exists --print-errors "xi") 2>&5 11202 ac_status=$? 11203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11204 test $ac_status = 0; }; then 11205 pkg_cv_DPY_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "xi" 2>/dev/null` 11206else 11207 pkg_failed=yes 11208fi 11209 else 11210 pkg_failed=untried 11211fi 11212if test -n "$DPY_XINPUT_LIBS"; then 11213 pkg_cv_DPY_XINPUT_LIBS="$DPY_XINPUT_LIBS" 11214 elif test -n "$PKG_CONFIG"; then 11215 if test -n "$PKG_CONFIG" && \ 11216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5 11217 ($PKG_CONFIG --exists --print-errors "xi") 2>&5 11218 ac_status=$? 11219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11220 test $ac_status = 0; }; then 11221 pkg_cv_DPY_XINPUT_LIBS=`$PKG_CONFIG --libs "xi" 2>/dev/null` 11222else 11223 pkg_failed=yes 11224fi 11225 else 11226 pkg_failed=untried 11227fi 11228 11229 11230 11231if test $pkg_failed = yes; then 11232 11233if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11234 _pkg_short_errors_supported=yes 11235else 11236 _pkg_short_errors_supported=no 11237fi 11238 if test $_pkg_short_errors_supported = yes; then 11239 DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi" 2>&1` 11240 else 11241 DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi" 2>&1` 11242 fi 11243 # Put the nasty error message in config.log where it belongs 11244 echo "$DPY_XINPUT_PKG_ERRORS" >&5 11245 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11247$as_echo "no" >&6; } 11248 echo "not found" 11249elif test $pkg_failed = untried; then 11250 echo "not found" 11251else 11252 DPY_XINPUT_CFLAGS=$pkg_cv_DPY_XINPUT_CFLAGS 11253 DPY_XINPUT_LIBS=$pkg_cv_DPY_XINPUT_LIBS 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11255$as_echo "yes" >&6; } 11256 SAVE_CPPFLAGS="$CPPFLAGS" 11257 CPPFLAGS="$CPPFLAGS $DPY_XINPUT_CFLAGS $DPY_X11_CFLAGS" 11258 for ac_header in X11/extensions/XInput.h 11259do : 11260 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h> 11261" 11262if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then : 11263 cat >>confdefs.h <<_ACEOF 11264#define HAVE_X11_EXTENSIONS_XINPUT_H 1 11265_ACEOF 11266 11267fi 11268 11269done 11270 11271 CPPFLAGS="$SAVE_CPPFLAGS" 11272fi 11273 11274 11275pkg_failed=no 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XRENDER" >&5 11277$as_echo_n "checking for DPY_XRENDER... " >&6; } 11278 11279if test -n "$DPY_XRENDER_CFLAGS"; then 11280 pkg_cv_DPY_XRENDER_CFLAGS="$DPY_XRENDER_CFLAGS" 11281 elif test -n "$PKG_CONFIG"; then 11282 if test -n "$PKG_CONFIG" && \ 11283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5 11284 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5 11285 ac_status=$? 11286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11287 test $ac_status = 0; }; then 11288 pkg_cv_DPY_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null` 11289else 11290 pkg_failed=yes 11291fi 11292 else 11293 pkg_failed=untried 11294fi 11295if test -n "$DPY_XRENDER_LIBS"; then 11296 pkg_cv_DPY_XRENDER_LIBS="$DPY_XRENDER_LIBS" 11297 elif test -n "$PKG_CONFIG"; then 11298 if test -n "$PKG_CONFIG" && \ 11299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5 11300 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5 11301 ac_status=$? 11302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11303 test $ac_status = 0; }; then 11304 pkg_cv_DPY_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null` 11305else 11306 pkg_failed=yes 11307fi 11308 else 11309 pkg_failed=untried 11310fi 11311 11312 11313 11314if test $pkg_failed = yes; then 11315 11316if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11317 _pkg_short_errors_supported=yes 11318else 11319 _pkg_short_errors_supported=no 11320fi 11321 if test $_pkg_short_errors_supported = yes; then 11322 DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender" 2>&1` 11323 else 11324 DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender" 2>&1` 11325 fi 11326 # Put the nasty error message in config.log where it belongs 11327 echo "$DPY_XRENDER_PKG_ERRORS" >&5 11328 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11330$as_echo "no" >&6; } 11331 echo "not found" 11332elif test $pkg_failed = untried; then 11333 echo "not found" 11334else 11335 DPY_XRENDER_CFLAGS=$pkg_cv_DPY_XRENDER_CFLAGS 11336 DPY_XRENDER_LIBS=$pkg_cv_DPY_XRENDER_LIBS 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11338$as_echo "yes" >&6; } 11339 SAVE_CPPFLAGS="$CPPFLAGS" 11340 CPPFLAGS="$CPPFLAGS $DPY_XRENDER_CFLAGS $DPY_X11_CFLAGS" 11341 for ac_header in X11/extensions/Xrender.h 11342do : 11343 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/Xlib.h> 11344" 11345if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then : 11346 cat >>confdefs.h <<_ACEOF 11347#define HAVE_X11_EXTENSIONS_XRENDER_H 1 11348_ACEOF 11349 11350fi 11351 11352done 11353 11354 CPPFLAGS="$SAVE_CPPFLAGS" 11355fi 11356 11357 11358pkg_failed=no 11359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XCOMPOSITE" >&5 11360$as_echo_n "checking for DPY_XCOMPOSITE... " >&6; } 11361 11362if test -n "$DPY_XCOMPOSITE_CFLAGS"; then 11363 pkg_cv_DPY_XCOMPOSITE_CFLAGS="$DPY_XCOMPOSITE_CFLAGS" 11364 elif test -n "$PKG_CONFIG"; then 11365 if test -n "$PKG_CONFIG" && \ 11366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5 11367 ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5 11368 ac_status=$? 11369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11370 test $ac_status = 0; }; then 11371 pkg_cv_DPY_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "xcomposite" 2>/dev/null` 11372else 11373 pkg_failed=yes 11374fi 11375 else 11376 pkg_failed=untried 11377fi 11378if test -n "$DPY_XCOMPOSITE_LIBS"; then 11379 pkg_cv_DPY_XCOMPOSITE_LIBS="$DPY_XCOMPOSITE_LIBS" 11380 elif test -n "$PKG_CONFIG"; then 11381 if test -n "$PKG_CONFIG" && \ 11382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5 11383 ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5 11384 ac_status=$? 11385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11386 test $ac_status = 0; }; then 11387 pkg_cv_DPY_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "xcomposite" 2>/dev/null` 11388else 11389 pkg_failed=yes 11390fi 11391 else 11392 pkg_failed=untried 11393fi 11394 11395 11396 11397if test $pkg_failed = yes; then 11398 11399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11400 _pkg_short_errors_supported=yes 11401else 11402 _pkg_short_errors_supported=no 11403fi 11404 if test $_pkg_short_errors_supported = yes; then 11405 DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcomposite" 2>&1` 11406 else 11407 DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcomposite" 2>&1` 11408 fi 11409 # Put the nasty error message in config.log where it belongs 11410 echo "$DPY_XCOMPOSITE_PKG_ERRORS" >&5 11411 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11413$as_echo "no" >&6; } 11414 echo "not found" 11415elif test $pkg_failed = untried; then 11416 echo "not found" 11417else 11418 DPY_XCOMPOSITE_CFLAGS=$pkg_cv_DPY_XCOMPOSITE_CFLAGS 11419 DPY_XCOMPOSITE_LIBS=$pkg_cv_DPY_XCOMPOSITE_LIBS 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11421$as_echo "yes" >&6; } 11422 SAVE_CPPFLAGS="$CPPFLAGS" 11423 CPPFLAGS="$CPPFLAGS $DPY_XCOMPOSITE_CFLAGS $DPY_X11_CFLAGS" 11424 for ac_header in X11/extensions/Xcomposite.h 11425do : 11426 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" "#include <X11/Xlib.h> 11427" 11428if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = xyes; then : 11429 cat >>confdefs.h <<_ACEOF 11430#define HAVE_X11_EXTENSIONS_XCOMPOSITE_H 1 11431_ACEOF 11432 11433fi 11434 11435done 11436 11437 CPPFLAGS="$SAVE_CPPFLAGS" 11438fi 11439 11440 11441# Check whether --with-xinerama was given. 11442if test "${with_xinerama+set}" = set; then : 11443 withval=$with_xinerama; USE_XINERAMA="$withval" 11444else 11445 USE_XINERAMA="yes" 11446fi 11447 11448if test "x$USE_XINERAMA" != "xno" ; then 11449 11450pkg_failed=no 11451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XINERAMA" >&5 11452$as_echo_n "checking for DPY_XINERAMA... " >&6; } 11453 11454if test -n "$DPY_XINERAMA_CFLAGS"; then 11455 pkg_cv_DPY_XINERAMA_CFLAGS="$DPY_XINERAMA_CFLAGS" 11456 elif test -n "$PKG_CONFIG"; then 11457 if test -n "$PKG_CONFIG" && \ 11458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 11459 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 11460 ac_status=$? 11461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11462 test $ac_status = 0; }; then 11463 pkg_cv_DPY_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null` 11464else 11465 pkg_failed=yes 11466fi 11467 else 11468 pkg_failed=untried 11469fi 11470if test -n "$DPY_XINERAMA_LIBS"; then 11471 pkg_cv_DPY_XINERAMA_LIBS="$DPY_XINERAMA_LIBS" 11472 elif test -n "$PKG_CONFIG"; then 11473 if test -n "$PKG_CONFIG" && \ 11474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 11475 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 11476 ac_status=$? 11477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11478 test $ac_status = 0; }; then 11479 pkg_cv_DPY_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null` 11480else 11481 pkg_failed=yes 11482fi 11483 else 11484 pkg_failed=untried 11485fi 11486 11487 11488 11489if test $pkg_failed = yes; then 11490 11491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11492 _pkg_short_errors_supported=yes 11493else 11494 _pkg_short_errors_supported=no 11495fi 11496 if test $_pkg_short_errors_supported = yes; then 11497 DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xinerama" 2>&1` 11498 else 11499 DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xinerama" 2>&1` 11500 fi 11501 # Put the nasty error message in config.log where it belongs 11502 echo "$DPY_XINERAMA_PKG_ERRORS" >&5 11503 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11505$as_echo "no" >&6; } 11506 echo "not found" 11507elif test $pkg_failed = untried; then 11508 echo "not found" 11509else 11510 DPY_XINERAMA_CFLAGS=$pkg_cv_DPY_XINERAMA_CFLAGS 11511 DPY_XINERAMA_LIBS=$pkg_cv_DPY_XINERAMA_LIBS 11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11513$as_echo "yes" >&6; } 11514 SAVE_CPPFLAGS="$CPPFLAGS" 11515 CPPFLAGS="$CPPFLAGS $DPY_XINERAMA_CFLAGS $DPY_X11_CFLAGS" 11516 for ac_header in X11/extensions/Xinerama.h 11517do : 11518 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h> 11519" 11520if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then : 11521 cat >>confdefs.h <<_ACEOF 11522#define HAVE_X11_EXTENSIONS_XINERAMA_H 1 11523_ACEOF 11524 11525fi 11526 11527done 11528 11529 CPPFLAGS="$SAVE_CPPFLAGS" 11530fi 11531else 11532 echo "without xinerama" 11533fi 11534 11535 11536# Check whether --with-dmx was given. 11537if test "${with_dmx+set}" = set; then : 11538 withval=$with_dmx; USE_DMX="$withval" 11539else 11540 USE_DMX="yes" 11541fi 11542 11543if test "x$USE_DMX" != "xno" ; then 11544 11545pkg_failed=no 11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_DMX" >&5 11547$as_echo_n "checking for DPY_DMX... " >&6; } 11548 11549if test -n "$DPY_DMX_CFLAGS"; then 11550 pkg_cv_DPY_DMX_CFLAGS="$DPY_DMX_CFLAGS" 11551 elif test -n "$PKG_CONFIG"; then 11552 if test -n "$PKG_CONFIG" && \ 11553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5 11554 ($PKG_CONFIG --exists --print-errors "dmx") 2>&5 11555 ac_status=$? 11556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11557 test $ac_status = 0; }; then 11558 pkg_cv_DPY_DMX_CFLAGS=`$PKG_CONFIG --cflags "dmx" 2>/dev/null` 11559else 11560 pkg_failed=yes 11561fi 11562 else 11563 pkg_failed=untried 11564fi 11565if test -n "$DPY_DMX_LIBS"; then 11566 pkg_cv_DPY_DMX_LIBS="$DPY_DMX_LIBS" 11567 elif test -n "$PKG_CONFIG"; then 11568 if test -n "$PKG_CONFIG" && \ 11569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5 11570 ($PKG_CONFIG --exists --print-errors "dmx") 2>&5 11571 ac_status=$? 11572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11573 test $ac_status = 0; }; then 11574 pkg_cv_DPY_DMX_LIBS=`$PKG_CONFIG --libs "dmx" 2>/dev/null` 11575else 11576 pkg_failed=yes 11577fi 11578 else 11579 pkg_failed=untried 11580fi 11581 11582 11583 11584if test $pkg_failed = yes; then 11585 11586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11587 _pkg_short_errors_supported=yes 11588else 11589 _pkg_short_errors_supported=no 11590fi 11591 if test $_pkg_short_errors_supported = yes; then 11592 DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dmx" 2>&1` 11593 else 11594 DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --print-errors "dmx" 2>&1` 11595 fi 11596 # Put the nasty error message in config.log where it belongs 11597 echo "$DPY_DMX_PKG_ERRORS" >&5 11598 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11600$as_echo "no" >&6; } 11601 echo "not found" 11602elif test $pkg_failed = untried; then 11603 echo "not found" 11604else 11605 DPY_DMX_CFLAGS=$pkg_cv_DPY_DMX_CFLAGS 11606 DPY_DMX_LIBS=$pkg_cv_DPY_DMX_LIBS 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11608$as_echo "yes" >&6; } 11609 SAVE_CPPFLAGS="$CPPFLAGS" 11610 CPPFLAGS="$CPPFLAGS $DPY_DMX_CFLAGS $DPY_X11_CFLAGS" 11611 for ac_header in X11/extensions/dmxext.h 11612do : 11613 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dmxext.h" "ac_cv_header_X11_extensions_dmxext_h" "#include <X11/Xlib.h> 11614" 11615if test "x$ac_cv_header_X11_extensions_dmxext_h" = xyes; then : 11616 cat >>confdefs.h <<_ACEOF 11617#define HAVE_X11_EXTENSIONS_DMXEXT_H 1 11618_ACEOF 11619 11620fi 11621 11622done 11623 11624 CPPFLAGS="$SAVE_CPPFLAGS" 11625fi 11626else 11627 echo "without dmx" 11628fi 11629 11630 11631pkg_failed=no 11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XTST" >&5 11633$as_echo_n "checking for DPY_XTST... " >&6; } 11634 11635if test -n "$DPY_XTST_CFLAGS"; then 11636 pkg_cv_DPY_XTST_CFLAGS="$DPY_XTST_CFLAGS" 11637 elif test -n "$PKG_CONFIG"; then 11638 if test -n "$PKG_CONFIG" && \ 11639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5 11640 ($PKG_CONFIG --exists --print-errors "xtst") 2>&5 11641 ac_status=$? 11642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11643 test $ac_status = 0; }; then 11644 pkg_cv_DPY_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst" 2>/dev/null` 11645else 11646 pkg_failed=yes 11647fi 11648 else 11649 pkg_failed=untried 11650fi 11651if test -n "$DPY_XTST_LIBS"; then 11652 pkg_cv_DPY_XTST_LIBS="$DPY_XTST_LIBS" 11653 elif test -n "$PKG_CONFIG"; then 11654 if test -n "$PKG_CONFIG" && \ 11655 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5 11656 ($PKG_CONFIG --exists --print-errors "xtst") 2>&5 11657 ac_status=$? 11658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11659 test $ac_status = 0; }; then 11660 pkg_cv_DPY_XTST_LIBS=`$PKG_CONFIG --libs "xtst" 2>/dev/null` 11661else 11662 pkg_failed=yes 11663fi 11664 else 11665 pkg_failed=untried 11666fi 11667 11668 11669 11670if test $pkg_failed = yes; then 11671 11672if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11673 _pkg_short_errors_supported=yes 11674else 11675 _pkg_short_errors_supported=no 11676fi 11677 if test $_pkg_short_errors_supported = yes; then 11678 DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst" 2>&1` 11679 else 11680 DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst" 2>&1` 11681 fi 11682 # Put the nasty error message in config.log where it belongs 11683 echo "$DPY_XTST_PKG_ERRORS" >&5 11684 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11686$as_echo "no" >&6; } 11687 echo "not found" 11688elif test $pkg_failed = untried; then 11689 echo "not found" 11690else 11691 DPY_XTST_CFLAGS=$pkg_cv_DPY_XTST_CFLAGS 11692 DPY_XTST_LIBS=$pkg_cv_DPY_XTST_LIBS 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11694$as_echo "yes" >&6; } 11695 SAVE_CPPFLAGS="$CPPFLAGS" 11696 CPPFLAGS="$CPPFLAGS $DPY_XTST_CFLAGS $DPY_X11_CFLAGS" 11697 for ac_header in X11/extensions/record.h 11698do : 11699 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h> 11700" 11701if test "x$ac_cv_header_X11_extensions_record_h" = xyes; then : 11702 cat >>confdefs.h <<_ACEOF 11703#define HAVE_X11_EXTENSIONS_RECORD_H 1 11704_ACEOF 11705 11706fi 11707 11708done 11709 11710 CPPFLAGS="$SAVE_CPPFLAGS" 11711fi 11712 11713 11714 11715 11716 11717 11718# Check whether --with-lint was given. 11719if test "${with_lint+set}" = set; then : 11720 withval=$with_lint; use_lint=$withval 11721else 11722 use_lint=no 11723fi 11724 11725 11726# Obtain platform specific info like program name and options 11727# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11728case $host_os in 11729 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11730 lint_name=splint 11731 lint_options="-badflag" 11732 ;; 11733 *freebsd* | *netbsd*) 11734 lint_name=lint 11735 lint_options="-u -b" 11736 ;; 11737 *solaris*) 11738 lint_name=lint 11739 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11740 ;; 11741esac 11742 11743# Test for the presence of the program (either guessed by the code or spelled out by the user) 11744if test "x$use_lint" = x"yes" ; then 11745 # Extract the first word of "$lint_name", so it can be a program name with args. 11746set dummy $lint_name; ac_word=$2 11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11748$as_echo_n "checking for $ac_word... " >&6; } 11749if ${ac_cv_path_LINT+:} false; then : 11750 $as_echo_n "(cached) " >&6 11751else 11752 case $LINT in 11753 [\\/]* | ?:[\\/]*) 11754 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11755 ;; 11756 *) 11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11758for as_dir in $PATH 11759do 11760 IFS=$as_save_IFS 11761 test -z "$as_dir" && as_dir=. 11762 for ac_exec_ext in '' $ac_executable_extensions; do 11763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11764 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11766 break 2 11767 fi 11768done 11769 done 11770IFS=$as_save_IFS 11771 11772 ;; 11773esac 11774fi 11775LINT=$ac_cv_path_LINT 11776if test -n "$LINT"; then 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11778$as_echo "$LINT" >&6; } 11779else 11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11781$as_echo "no" >&6; } 11782fi 11783 11784 11785 if test "x$LINT" = "x"; then 11786 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11787 fi 11788elif test "x$use_lint" = x"no" ; then 11789 if test "x$LINT" != "x"; then 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11791$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11792 fi 11793else 11794 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11795fi 11796 11797# User supplied flags override default flags 11798if test "x$LINT_FLAGS" != "x"; then 11799 lint_options=$LINT_FLAGS 11800fi 11801 11802LINT_FLAGS=$lint_options 11803 11804 if test "x$LINT" != x; then 11805 LINT_TRUE= 11806 LINT_FALSE='#' 11807else 11808 LINT_TRUE='#' 11809 LINT_FALSE= 11810fi 11811 11812 11813 11814 11815ac_config_files="$ac_config_files Makefile man/Makefile" 11816 11817cat >confcache <<\_ACEOF 11818# This file is a shell script that caches the results of configure 11819# tests run on this system so they can be shared between configure 11820# scripts and configure runs, see configure's option --config-cache. 11821# It is not useful on other systems. If it contains results you don't 11822# want to keep, you may remove or edit it. 11823# 11824# config.status only pays attention to the cache file if you give it 11825# the --recheck option to rerun configure. 11826# 11827# `ac_cv_env_foo' variables (set or unset) will be overridden when 11828# loading this file, other *unset* `ac_cv_foo' will be assigned the 11829# following values. 11830 11831_ACEOF 11832 11833# The following way of writing the cache mishandles newlines in values, 11834# but we know of no workaround that is simple, portable, and efficient. 11835# So, we kill variables containing newlines. 11836# Ultrix sh set writes to stderr and can't be redirected directly, 11837# and sets the high bit in the cache file unless we assign to the vars. 11838( 11839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11840 eval ac_val=\$$ac_var 11841 case $ac_val in #( 11842 *${as_nl}*) 11843 case $ac_var in #( 11844 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11845$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11846 esac 11847 case $ac_var in #( 11848 _ | IFS | as_nl) ;; #( 11849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11850 *) { eval $ac_var=; unset $ac_var;} ;; 11851 esac ;; 11852 esac 11853 done 11854 11855 (set) 2>&1 | 11856 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11857 *${as_nl}ac_space=\ *) 11858 # `set' does not quote correctly, so add quotes: double-quote 11859 # substitution turns \\\\ into \\, and sed turns \\ into \. 11860 sed -n \ 11861 "s/'/'\\\\''/g; 11862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11863 ;; #( 11864 *) 11865 # `set' quotes correctly as required by POSIX, so do not add quotes. 11866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11867 ;; 11868 esac | 11869 sort 11870) | 11871 sed ' 11872 /^ac_cv_env_/b end 11873 t clear 11874 :clear 11875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11876 t end 11877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11878 :end' >>confcache 11879if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11880 if test -w "$cache_file"; then 11881 if test "x$cache_file" != "x/dev/null"; then 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11883$as_echo "$as_me: updating cache $cache_file" >&6;} 11884 if test ! -f "$cache_file" || test -h "$cache_file"; then 11885 cat confcache >"$cache_file" 11886 else 11887 case $cache_file in #( 11888 */* | ?:*) 11889 mv -f confcache "$cache_file"$$ && 11890 mv -f "$cache_file"$$ "$cache_file" ;; #( 11891 *) 11892 mv -f confcache "$cache_file" ;; 11893 esac 11894 fi 11895 fi 11896 else 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11898$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11899 fi 11900fi 11901rm -f confcache 11902 11903test "x$prefix" = xNONE && prefix=$ac_default_prefix 11904# Let make expand exec_prefix. 11905test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11906 11907DEFS=-DHAVE_CONFIG_H 11908 11909ac_libobjs= 11910ac_ltlibobjs= 11911U= 11912for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11913 # 1. Remove the extension, and $U if already installed. 11914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11915 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11917 # will be set to the directory where LIBOBJS objects are built. 11918 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11919 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11920done 11921LIBOBJS=$ac_libobjs 11922 11923LTLIBOBJS=$ac_ltlibobjs 11924 11925 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11927$as_echo_n "checking that generated files are newer than configure... " >&6; } 11928 if test -n "$am_sleep_pid"; then 11929 # Hide warnings about reused PIDs. 11930 wait $am_sleep_pid 2>/dev/null 11931 fi 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11933$as_echo "done" >&6; } 11934 if test -n "$EXEEXT"; then 11935 am__EXEEXT_TRUE= 11936 am__EXEEXT_FALSE='#' 11937else 11938 am__EXEEXT_TRUE='#' 11939 am__EXEEXT_FALSE= 11940fi 11941 11942if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11943 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11944Usually this means the macro was only invoked conditionally." "$LINENO" 5 11945fi 11946if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11947 as_fn_error $? "conditional \"AMDEP\" was never defined. 11948Usually this means the macro was only invoked conditionally." "$LINENO" 5 11949fi 11950if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11951 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11952Usually this means the macro was only invoked conditionally." "$LINENO" 5 11953fi 11954if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11955 as_fn_error $? "conditional \"LINT\" was never defined. 11956Usually this means the macro was only invoked conditionally." "$LINENO" 5 11957fi 11958 11959: "${CONFIG_STATUS=./config.status}" 11960ac_write_fail=0 11961ac_clean_files_save=$ac_clean_files 11962ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11963{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11964$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11965as_write_fail=0 11966cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11967#! $SHELL 11968# Generated by $as_me. 11969# Run this file to recreate the current configuration. 11970# Compiler output produced by configure, useful for debugging 11971# configure, is in config.log if it exists. 11972 11973debug=false 11974ac_cs_recheck=false 11975ac_cs_silent=false 11976 11977SHELL=\${CONFIG_SHELL-$SHELL} 11978export SHELL 11979_ASEOF 11980cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11981## -------------------- ## 11982## M4sh Initialization. ## 11983## -------------------- ## 11984 11985# Be more Bourne compatible 11986DUALCASE=1; export DUALCASE # for MKS sh 11987if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11988 emulate sh 11989 NULLCMD=: 11990 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11991 # is contrary to our usage. Disable this feature. 11992 alias -g '${1+"$@"}'='"$@"' 11993 setopt NO_GLOB_SUBST 11994else 11995 case `(set -o) 2>/dev/null` in #( 11996 *posix*) : 11997 set -o posix ;; #( 11998 *) : 11999 ;; 12000esac 12001fi 12002 12003 12004as_nl=' 12005' 12006export as_nl 12007# Printing a long string crashes Solaris 7 /usr/bin/printf. 12008as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12009as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12010as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12011# Prefer a ksh shell builtin over an external printf program on Solaris, 12012# but without wasting forks for bash or zsh. 12013if test -z "$BASH_VERSION$ZSH_VERSION" \ 12014 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12015 as_echo='print -r --' 12016 as_echo_n='print -rn --' 12017elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12018 as_echo='printf %s\n' 12019 as_echo_n='printf %s' 12020else 12021 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12022 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12023 as_echo_n='/usr/ucb/echo -n' 12024 else 12025 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12026 as_echo_n_body='eval 12027 arg=$1; 12028 case $arg in #( 12029 *"$as_nl"*) 12030 expr "X$arg" : "X\\(.*\\)$as_nl"; 12031 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12032 esac; 12033 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12034 ' 12035 export as_echo_n_body 12036 as_echo_n='sh -c $as_echo_n_body as_echo' 12037 fi 12038 export as_echo_body 12039 as_echo='sh -c $as_echo_body as_echo' 12040fi 12041 12042# The user is always right. 12043if test "${PATH_SEPARATOR+set}" != set; then 12044 PATH_SEPARATOR=: 12045 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12046 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12047 PATH_SEPARATOR=';' 12048 } 12049fi 12050 12051 12052# IFS 12053# We need space, tab and new line, in precisely that order. Quoting is 12054# there to prevent editors from complaining about space-tab. 12055# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12056# splitting by setting IFS to empty value.) 12057IFS=" "" $as_nl" 12058 12059# Find who we are. Look in the path if we contain no directory separator. 12060as_myself= 12061case $0 in #(( 12062 *[\\/]* ) as_myself=$0 ;; 12063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12064for as_dir in $PATH 12065do 12066 IFS=$as_save_IFS 12067 test -z "$as_dir" && as_dir=. 12068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12069 done 12070IFS=$as_save_IFS 12071 12072 ;; 12073esac 12074# We did not find ourselves, most probably we were run as `sh COMMAND' 12075# in which case we are not to be found in the path. 12076if test "x$as_myself" = x; then 12077 as_myself=$0 12078fi 12079if test ! -f "$as_myself"; then 12080 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12081 exit 1 12082fi 12083 12084# Unset variables that we do not need and which cause bugs (e.g. in 12085# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12086# suppresses any "Segmentation fault" message there. '((' could 12087# trigger a bug in pdksh 5.2.14. 12088for as_var in BASH_ENV ENV MAIL MAILPATH 12089do eval test x\${$as_var+set} = xset \ 12090 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12091done 12092PS1='$ ' 12093PS2='> ' 12094PS4='+ ' 12095 12096# NLS nuisances. 12097LC_ALL=C 12098export LC_ALL 12099LANGUAGE=C 12100export LANGUAGE 12101 12102# CDPATH. 12103(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12104 12105 12106# as_fn_error STATUS ERROR [LINENO LOG_FD] 12107# ---------------------------------------- 12108# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12109# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12110# script with STATUS, using 1 if that was 0. 12111as_fn_error () 12112{ 12113 as_status=$1; test $as_status -eq 0 && as_status=1 12114 if test "$4"; then 12115 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12116 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12117 fi 12118 $as_echo "$as_me: error: $2" >&2 12119 as_fn_exit $as_status 12120} # as_fn_error 12121 12122 12123# as_fn_set_status STATUS 12124# ----------------------- 12125# Set $? to STATUS, without forking. 12126as_fn_set_status () 12127{ 12128 return $1 12129} # as_fn_set_status 12130 12131# as_fn_exit STATUS 12132# ----------------- 12133# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12134as_fn_exit () 12135{ 12136 set +e 12137 as_fn_set_status $1 12138 exit $1 12139} # as_fn_exit 12140 12141# as_fn_unset VAR 12142# --------------- 12143# Portably unset VAR. 12144as_fn_unset () 12145{ 12146 { eval $1=; unset $1;} 12147} 12148as_unset=as_fn_unset 12149# as_fn_append VAR VALUE 12150# ---------------------- 12151# Append the text in VALUE to the end of the definition contained in VAR. Take 12152# advantage of any shell optimizations that allow amortized linear growth over 12153# repeated appends, instead of the typical quadratic growth present in naive 12154# implementations. 12155if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12156 eval 'as_fn_append () 12157 { 12158 eval $1+=\$2 12159 }' 12160else 12161 as_fn_append () 12162 { 12163 eval $1=\$$1\$2 12164 } 12165fi # as_fn_append 12166 12167# as_fn_arith ARG... 12168# ------------------ 12169# Perform arithmetic evaluation on the ARGs, and store the result in the 12170# global $as_val. Take advantage of shells that can avoid forks. The arguments 12171# must be portable across $(()) and expr. 12172if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12173 eval 'as_fn_arith () 12174 { 12175 as_val=$(( $* )) 12176 }' 12177else 12178 as_fn_arith () 12179 { 12180 as_val=`expr "$@" || test $? -eq 1` 12181 } 12182fi # as_fn_arith 12183 12184 12185if expr a : '\(a\)' >/dev/null 2>&1 && 12186 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12187 as_expr=expr 12188else 12189 as_expr=false 12190fi 12191 12192if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12193 as_basename=basename 12194else 12195 as_basename=false 12196fi 12197 12198if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12199 as_dirname=dirname 12200else 12201 as_dirname=false 12202fi 12203 12204as_me=`$as_basename -- "$0" || 12205$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12206 X"$0" : 'X\(//\)$' \| \ 12207 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12208$as_echo X/"$0" | 12209 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12210 s//\1/ 12211 q 12212 } 12213 /^X\/\(\/\/\)$/{ 12214 s//\1/ 12215 q 12216 } 12217 /^X\/\(\/\).*/{ 12218 s//\1/ 12219 q 12220 } 12221 s/.*/./; q'` 12222 12223# Avoid depending upon Character Ranges. 12224as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12225as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12226as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12227as_cr_digits='0123456789' 12228as_cr_alnum=$as_cr_Letters$as_cr_digits 12229 12230ECHO_C= ECHO_N= ECHO_T= 12231case `echo -n x` in #((((( 12232-n*) 12233 case `echo 'xy\c'` in 12234 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12235 xy) ECHO_C='\c';; 12236 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12237 ECHO_T=' ';; 12238 esac;; 12239*) 12240 ECHO_N='-n';; 12241esac 12242 12243rm -f conf$$ conf$$.exe conf$$.file 12244if test -d conf$$.dir; then 12245 rm -f conf$$.dir/conf$$.file 12246else 12247 rm -f conf$$.dir 12248 mkdir conf$$.dir 2>/dev/null 12249fi 12250if (echo >conf$$.file) 2>/dev/null; then 12251 if ln -s conf$$.file conf$$ 2>/dev/null; then 12252 as_ln_s='ln -s' 12253 # ... but there are two gotchas: 12254 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12255 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12256 # In both cases, we have to default to `cp -p'. 12257 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12258 as_ln_s='cp -p' 12259 elif ln conf$$.file conf$$ 2>/dev/null; then 12260 as_ln_s=ln 12261 else 12262 as_ln_s='cp -p' 12263 fi 12264else 12265 as_ln_s='cp -p' 12266fi 12267rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12268rmdir conf$$.dir 2>/dev/null 12269 12270 12271# as_fn_mkdir_p 12272# ------------- 12273# Create "$as_dir" as a directory, including parents if necessary. 12274as_fn_mkdir_p () 12275{ 12276 12277 case $as_dir in #( 12278 -*) as_dir=./$as_dir;; 12279 esac 12280 test -d "$as_dir" || eval $as_mkdir_p || { 12281 as_dirs= 12282 while :; do 12283 case $as_dir in #( 12284 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12285 *) as_qdir=$as_dir;; 12286 esac 12287 as_dirs="'$as_qdir' $as_dirs" 12288 as_dir=`$as_dirname -- "$as_dir" || 12289$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12290 X"$as_dir" : 'X\(//\)[^/]' \| \ 12291 X"$as_dir" : 'X\(//\)$' \| \ 12292 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12293$as_echo X"$as_dir" | 12294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12295 s//\1/ 12296 q 12297 } 12298 /^X\(\/\/\)[^/].*/{ 12299 s//\1/ 12300 q 12301 } 12302 /^X\(\/\/\)$/{ 12303 s//\1/ 12304 q 12305 } 12306 /^X\(\/\).*/{ 12307 s//\1/ 12308 q 12309 } 12310 s/.*/./; q'` 12311 test -d "$as_dir" && break 12312 done 12313 test -z "$as_dirs" || eval "mkdir $as_dirs" 12314 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12315 12316 12317} # as_fn_mkdir_p 12318if mkdir -p . 2>/dev/null; then 12319 as_mkdir_p='mkdir -p "$as_dir"' 12320else 12321 test -d ./-p && rmdir ./-p 12322 as_mkdir_p=false 12323fi 12324 12325if test -x / >/dev/null 2>&1; then 12326 as_test_x='test -x' 12327else 12328 if ls -dL / >/dev/null 2>&1; then 12329 as_ls_L_option=L 12330 else 12331 as_ls_L_option= 12332 fi 12333 as_test_x=' 12334 eval sh -c '\'' 12335 if test -d "$1"; then 12336 test -d "$1/."; 12337 else 12338 case $1 in #( 12339 -*)set "./$1";; 12340 esac; 12341 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12342 ???[sx]*):;;*)false;;esac;fi 12343 '\'' sh 12344 ' 12345fi 12346as_executable_p=$as_test_x 12347 12348# Sed expression to map a string onto a valid CPP name. 12349as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12350 12351# Sed expression to map a string onto a valid variable name. 12352as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12353 12354 12355exec 6>&1 12356## ----------------------------------- ## 12357## Main body of $CONFIG_STATUS script. ## 12358## ----------------------------------- ## 12359_ASEOF 12360test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12361 12362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12363# Save the log message, to keep $0 and so on meaningful, and to 12364# report actual input values of CONFIG_FILES etc. instead of their 12365# values after options handling. 12366ac_log=" 12367This file was extended by xdpyinfo $as_me 1.3.1, which was 12368generated by GNU Autoconf 2.68. Invocation command line was 12369 12370 CONFIG_FILES = $CONFIG_FILES 12371 CONFIG_HEADERS = $CONFIG_HEADERS 12372 CONFIG_LINKS = $CONFIG_LINKS 12373 CONFIG_COMMANDS = $CONFIG_COMMANDS 12374 $ $0 $@ 12375 12376on `(hostname || uname -n) 2>/dev/null | sed 1q` 12377" 12378 12379_ACEOF 12380 12381case $ac_config_files in *" 12382"*) set x $ac_config_files; shift; ac_config_files=$*;; 12383esac 12384 12385case $ac_config_headers in *" 12386"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12387esac 12388 12389 12390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12391# Files that config.status was made for. 12392config_files="$ac_config_files" 12393config_headers="$ac_config_headers" 12394config_commands="$ac_config_commands" 12395 12396_ACEOF 12397 12398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12399ac_cs_usage="\ 12400\`$as_me' instantiates files and other configuration actions 12401from templates according to the current configuration. Unless the files 12402and actions are specified as TAGs, all are instantiated by default. 12403 12404Usage: $0 [OPTION]... [TAG]... 12405 12406 -h, --help print this help, then exit 12407 -V, --version print version number and configuration settings, then exit 12408 --config print configuration, then exit 12409 -q, --quiet, --silent 12410 do not print progress messages 12411 -d, --debug don't remove temporary files 12412 --recheck update $as_me by reconfiguring in the same conditions 12413 --file=FILE[:TEMPLATE] 12414 instantiate the configuration file FILE 12415 --header=FILE[:TEMPLATE] 12416 instantiate the configuration header FILE 12417 12418Configuration files: 12419$config_files 12420 12421Configuration headers: 12422$config_headers 12423 12424Configuration commands: 12425$config_commands 12426 12427Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12428 12429_ACEOF 12430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12431ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12432ac_cs_version="\\ 12433xdpyinfo config.status 1.3.1 12434configured by $0, generated by GNU Autoconf 2.68, 12435 with options \\"\$ac_cs_config\\" 12436 12437Copyright (C) 2010 Free Software Foundation, Inc. 12438This config.status script is free software; the Free Software Foundation 12439gives unlimited permission to copy, distribute and modify it." 12440 12441ac_pwd='$ac_pwd' 12442srcdir='$srcdir' 12443INSTALL='$INSTALL' 12444MKDIR_P='$MKDIR_P' 12445AWK='$AWK' 12446test -n "\$AWK" || AWK=awk 12447_ACEOF 12448 12449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12450# The default lists apply if the user does not specify any file. 12451ac_need_defaults=: 12452while test $# != 0 12453do 12454 case $1 in 12455 --*=?*) 12456 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12457 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12458 ac_shift=: 12459 ;; 12460 --*=) 12461 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12462 ac_optarg= 12463 ac_shift=: 12464 ;; 12465 *) 12466 ac_option=$1 12467 ac_optarg=$2 12468 ac_shift=shift 12469 ;; 12470 esac 12471 12472 case $ac_option in 12473 # Handling of the options. 12474 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12475 ac_cs_recheck=: ;; 12476 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12477 $as_echo "$ac_cs_version"; exit ;; 12478 --config | --confi | --conf | --con | --co | --c ) 12479 $as_echo "$ac_cs_config"; exit ;; 12480 --debug | --debu | --deb | --de | --d | -d ) 12481 debug=: ;; 12482 --file | --fil | --fi | --f ) 12483 $ac_shift 12484 case $ac_optarg in 12485 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12486 '') as_fn_error $? "missing file argument" ;; 12487 esac 12488 as_fn_append CONFIG_FILES " '$ac_optarg'" 12489 ac_need_defaults=false;; 12490 --header | --heade | --head | --hea ) 12491 $ac_shift 12492 case $ac_optarg in 12493 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12494 esac 12495 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12496 ac_need_defaults=false;; 12497 --he | --h) 12498 # Conflict between --help and --header 12499 as_fn_error $? "ambiguous option: \`$1' 12500Try \`$0 --help' for more information.";; 12501 --help | --hel | -h ) 12502 $as_echo "$ac_cs_usage"; exit ;; 12503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12504 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12505 ac_cs_silent=: ;; 12506 12507 # This is an error. 12508 -*) as_fn_error $? "unrecognized option: \`$1' 12509Try \`$0 --help' for more information." ;; 12510 12511 *) as_fn_append ac_config_targets " $1" 12512 ac_need_defaults=false ;; 12513 12514 esac 12515 shift 12516done 12517 12518ac_configure_extra_args= 12519 12520if $ac_cs_silent; then 12521 exec 6>/dev/null 12522 ac_configure_extra_args="$ac_configure_extra_args --silent" 12523fi 12524 12525_ACEOF 12526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12527if \$ac_cs_recheck; then 12528 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12529 shift 12530 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12531 CONFIG_SHELL='$SHELL' 12532 export CONFIG_SHELL 12533 exec "\$@" 12534fi 12535 12536_ACEOF 12537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12538exec 5>>config.log 12539{ 12540 echo 12541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12542## Running $as_me. ## 12543_ASBOX 12544 $as_echo "$ac_log" 12545} >&5 12546 12547_ACEOF 12548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12549# 12550# INIT-COMMANDS 12551# 12552AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12553 12554_ACEOF 12555 12556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12557 12558# Handling of arguments. 12559for ac_config_target in $ac_config_targets 12560do 12561 case $ac_config_target in 12562 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12563 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12564 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12565 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12566 12567 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12568 esac 12569done 12570 12571 12572# If the user did not use the arguments to specify the items to instantiate, 12573# then the envvar interface is used. Set only those that are not. 12574# We use the long form for the default assignment because of an extremely 12575# bizarre bug on SunOS 4.1.3. 12576if $ac_need_defaults; then 12577 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12578 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12579 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12580fi 12581 12582# Have a temporary directory for convenience. Make it in the build tree 12583# simply because there is no reason against having it here, and in addition, 12584# creating and moving files from /tmp can sometimes cause problems. 12585# Hook for its removal unless debugging. 12586# Note that there is a small window in which the directory will not be cleaned: 12587# after its creation but before its name has been assigned to `$tmp'. 12588$debug || 12589{ 12590 tmp= ac_tmp= 12591 trap 'exit_status=$? 12592 : "${ac_tmp:=$tmp}" 12593 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12594' 0 12595 trap 'as_fn_exit 1' 1 2 13 15 12596} 12597# Create a (secure) tmp directory for tmp files. 12598 12599{ 12600 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12601 test -d "$tmp" 12602} || 12603{ 12604 tmp=./conf$$-$RANDOM 12605 (umask 077 && mkdir "$tmp") 12606} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12607ac_tmp=$tmp 12608 12609# Set up the scripts for CONFIG_FILES section. 12610# No need to generate them if there are no CONFIG_FILES. 12611# This happens for instance with `./config.status config.h'. 12612if test -n "$CONFIG_FILES"; then 12613 12614 12615ac_cr=`echo X | tr X '\015'` 12616# On cygwin, bash can eat \r inside `` if the user requested igncr. 12617# But we know of no other shell where ac_cr would be empty at this 12618# point, so we can use a bashism as a fallback. 12619if test "x$ac_cr" = x; then 12620 eval ac_cr=\$\'\\r\' 12621fi 12622ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12623if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12624 ac_cs_awk_cr='\\r' 12625else 12626 ac_cs_awk_cr=$ac_cr 12627fi 12628 12629echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12630_ACEOF 12631 12632 12633{ 12634 echo "cat >conf$$subs.awk <<_ACEOF" && 12635 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12636 echo "_ACEOF" 12637} >conf$$subs.sh || 12638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12639ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12640ac_delim='%!_!# ' 12641for ac_last_try in false false false false false :; do 12642 . ./conf$$subs.sh || 12643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12644 12645 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12646 if test $ac_delim_n = $ac_delim_num; then 12647 break 12648 elif $ac_last_try; then 12649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12650 else 12651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12652 fi 12653done 12654rm -f conf$$subs.sh 12655 12656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12657cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12658_ACEOF 12659sed -n ' 12660h 12661s/^/S["/; s/!.*/"]=/ 12662p 12663g 12664s/^[^!]*!// 12665:repl 12666t repl 12667s/'"$ac_delim"'$// 12668t delim 12669:nl 12670h 12671s/\(.\{148\}\)..*/\1/ 12672t more1 12673s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12674p 12675n 12676b repl 12677:more1 12678s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12679p 12680g 12681s/.\{148\}// 12682t nl 12683:delim 12684h 12685s/\(.\{148\}\)..*/\1/ 12686t more2 12687s/["\\]/\\&/g; s/^/"/; s/$/"/ 12688p 12689b 12690:more2 12691s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12692p 12693g 12694s/.\{148\}// 12695t delim 12696' <conf$$subs.awk | sed ' 12697/^[^""]/{ 12698 N 12699 s/\n// 12700} 12701' >>$CONFIG_STATUS || ac_write_fail=1 12702rm -f conf$$subs.awk 12703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12704_ACAWK 12705cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12706 for (key in S) S_is_set[key] = 1 12707 FS = "" 12708 12709} 12710{ 12711 line = $ 0 12712 nfields = split(line, field, "@") 12713 substed = 0 12714 len = length(field[1]) 12715 for (i = 2; i < nfields; i++) { 12716 key = field[i] 12717 keylen = length(key) 12718 if (S_is_set[key]) { 12719 value = S[key] 12720 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12721 len += length(value) + length(field[++i]) 12722 substed = 1 12723 } else 12724 len += 1 + keylen 12725 } 12726 12727 print line 12728} 12729 12730_ACAWK 12731_ACEOF 12732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12733if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12734 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12735else 12736 cat 12737fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12738 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12739_ACEOF 12740 12741# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12742# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12743# trailing colons and then remove the whole line if VPATH becomes empty 12744# (actually we leave an empty line to preserve line numbers). 12745if test "x$srcdir" = x.; then 12746 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12747h 12748s/// 12749s/^/:/ 12750s/[ ]*$/:/ 12751s/:\$(srcdir):/:/g 12752s/:\${srcdir}:/:/g 12753s/:@srcdir@:/:/g 12754s/^:*// 12755s/:*$// 12756x 12757s/\(=[ ]*\).*/\1/ 12758G 12759s/\n// 12760s/^[^=]*=[ ]*$// 12761}' 12762fi 12763 12764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12765fi # test -n "$CONFIG_FILES" 12766 12767# Set up the scripts for CONFIG_HEADERS section. 12768# No need to generate them if there are no CONFIG_HEADERS. 12769# This happens for instance with `./config.status Makefile'. 12770if test -n "$CONFIG_HEADERS"; then 12771cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12772BEGIN { 12773_ACEOF 12774 12775# Transform confdefs.h into an awk script `defines.awk', embedded as 12776# here-document in config.status, that substitutes the proper values into 12777# config.h.in to produce config.h. 12778 12779# Create a delimiter string that does not exist in confdefs.h, to ease 12780# handling of long lines. 12781ac_delim='%!_!# ' 12782for ac_last_try in false false :; do 12783 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12784 if test -z "$ac_tt"; then 12785 break 12786 elif $ac_last_try; then 12787 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12788 else 12789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12790 fi 12791done 12792 12793# For the awk script, D is an array of macro values keyed by name, 12794# likewise P contains macro parameters if any. Preserve backslash 12795# newline sequences. 12796 12797ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12798sed -n ' 12799s/.\{148\}/&'"$ac_delim"'/g 12800t rset 12801:rset 12802s/^[ ]*#[ ]*define[ ][ ]*/ / 12803t def 12804d 12805:def 12806s/\\$// 12807t bsnl 12808s/["\\]/\\&/g 12809s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12810D["\1"]=" \3"/p 12811s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12812d 12813:bsnl 12814s/["\\]/\\&/g 12815s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12816D["\1"]=" \3\\\\\\n"\\/p 12817t cont 12818s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12819t cont 12820d 12821:cont 12822n 12823s/.\{148\}/&'"$ac_delim"'/g 12824t clear 12825:clear 12826s/\\$// 12827t bsnlc 12828s/["\\]/\\&/g; s/^/"/; s/$/"/p 12829d 12830:bsnlc 12831s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12832b cont 12833' <confdefs.h | sed ' 12834s/'"$ac_delim"'/"\\\ 12835"/g' >>$CONFIG_STATUS || ac_write_fail=1 12836 12837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12838 for (key in D) D_is_set[key] = 1 12839 FS = "" 12840} 12841/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12842 line = \$ 0 12843 split(line, arg, " ") 12844 if (arg[1] == "#") { 12845 defundef = arg[2] 12846 mac1 = arg[3] 12847 } else { 12848 defundef = substr(arg[1], 2) 12849 mac1 = arg[2] 12850 } 12851 split(mac1, mac2, "(") #) 12852 macro = mac2[1] 12853 prefix = substr(line, 1, index(line, defundef) - 1) 12854 if (D_is_set[macro]) { 12855 # Preserve the white space surrounding the "#". 12856 print prefix "define", macro P[macro] D[macro] 12857 next 12858 } else { 12859 # Replace #undef with comments. This is necessary, for example, 12860 # in the case of _POSIX_SOURCE, which is predefined and required 12861 # on some systems where configure will not decide to define it. 12862 if (defundef == "undef") { 12863 print "/*", prefix defundef, macro, "*/" 12864 next 12865 } 12866 } 12867} 12868{ print } 12869_ACAWK 12870_ACEOF 12871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12872 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12873fi # test -n "$CONFIG_HEADERS" 12874 12875 12876eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12877shift 12878for ac_tag 12879do 12880 case $ac_tag in 12881 :[FHLC]) ac_mode=$ac_tag; continue;; 12882 esac 12883 case $ac_mode$ac_tag in 12884 :[FHL]*:*);; 12885 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12886 :[FH]-) ac_tag=-:-;; 12887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12888 esac 12889 ac_save_IFS=$IFS 12890 IFS=: 12891 set x $ac_tag 12892 IFS=$ac_save_IFS 12893 shift 12894 ac_file=$1 12895 shift 12896 12897 case $ac_mode in 12898 :L) ac_source=$1;; 12899 :[FH]) 12900 ac_file_inputs= 12901 for ac_f 12902 do 12903 case $ac_f in 12904 -) ac_f="$ac_tmp/stdin";; 12905 *) # Look for the file first in the build tree, then in the source tree 12906 # (if the path is not absolute). The absolute path cannot be DOS-style, 12907 # because $ac_f cannot contain `:'. 12908 test -f "$ac_f" || 12909 case $ac_f in 12910 [\\/$]*) false;; 12911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12912 esac || 12913 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12914 esac 12915 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12916 as_fn_append ac_file_inputs " '$ac_f'" 12917 done 12918 12919 # Let's still pretend it is `configure' which instantiates (i.e., don't 12920 # use $as_me), people would be surprised to read: 12921 # /* config.h. Generated by config.status. */ 12922 configure_input='Generated from '` 12923 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12924 `' by configure.' 12925 if test x"$ac_file" != x-; then 12926 configure_input="$ac_file. $configure_input" 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12928$as_echo "$as_me: creating $ac_file" >&6;} 12929 fi 12930 # Neutralize special characters interpreted by sed in replacement strings. 12931 case $configure_input in #( 12932 *\&* | *\|* | *\\* ) 12933 ac_sed_conf_input=`$as_echo "$configure_input" | 12934 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12935 *) ac_sed_conf_input=$configure_input;; 12936 esac 12937 12938 case $ac_tag in 12939 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12941 esac 12942 ;; 12943 esac 12944 12945 ac_dir=`$as_dirname -- "$ac_file" || 12946$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12947 X"$ac_file" : 'X\(//\)[^/]' \| \ 12948 X"$ac_file" : 'X\(//\)$' \| \ 12949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12950$as_echo X"$ac_file" | 12951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12952 s//\1/ 12953 q 12954 } 12955 /^X\(\/\/\)[^/].*/{ 12956 s//\1/ 12957 q 12958 } 12959 /^X\(\/\/\)$/{ 12960 s//\1/ 12961 q 12962 } 12963 /^X\(\/\).*/{ 12964 s//\1/ 12965 q 12966 } 12967 s/.*/./; q'` 12968 as_dir="$ac_dir"; as_fn_mkdir_p 12969 ac_builddir=. 12970 12971case "$ac_dir" in 12972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12973*) 12974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12975 # A ".." for each directory in $ac_dir_suffix. 12976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12977 case $ac_top_builddir_sub in 12978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12980 esac ;; 12981esac 12982ac_abs_top_builddir=$ac_pwd 12983ac_abs_builddir=$ac_pwd$ac_dir_suffix 12984# for backward compatibility: 12985ac_top_builddir=$ac_top_build_prefix 12986 12987case $srcdir in 12988 .) # We are building in place. 12989 ac_srcdir=. 12990 ac_top_srcdir=$ac_top_builddir_sub 12991 ac_abs_top_srcdir=$ac_pwd ;; 12992 [\\/]* | ?:[\\/]* ) # Absolute name. 12993 ac_srcdir=$srcdir$ac_dir_suffix; 12994 ac_top_srcdir=$srcdir 12995 ac_abs_top_srcdir=$srcdir ;; 12996 *) # Relative name. 12997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12998 ac_top_srcdir=$ac_top_build_prefix$srcdir 12999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13000esac 13001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13002 13003 13004 case $ac_mode in 13005 :F) 13006 # 13007 # CONFIG_FILE 13008 # 13009 13010 case $INSTALL in 13011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13013 esac 13014 ac_MKDIR_P=$MKDIR_P 13015 case $MKDIR_P in 13016 [\\/$]* | ?:[\\/]* ) ;; 13017 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13018 esac 13019_ACEOF 13020 13021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13022# If the template does not know about datarootdir, expand it. 13023# FIXME: This hack should be removed a few years after 2.60. 13024ac_datarootdir_hack=; ac_datarootdir_seen= 13025ac_sed_dataroot=' 13026/datarootdir/ { 13027 p 13028 q 13029} 13030/@datadir@/p 13031/@docdir@/p 13032/@infodir@/p 13033/@localedir@/p 13034/@mandir@/p' 13035case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13036*datarootdir*) ac_datarootdir_seen=yes;; 13037*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13039$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13040_ACEOF 13041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13042 ac_datarootdir_hack=' 13043 s&@datadir@&$datadir&g 13044 s&@docdir@&$docdir&g 13045 s&@infodir@&$infodir&g 13046 s&@localedir@&$localedir&g 13047 s&@mandir@&$mandir&g 13048 s&\\\${datarootdir}&$datarootdir&g' ;; 13049esac 13050_ACEOF 13051 13052# Neutralize VPATH when `$srcdir' = `.'. 13053# Shell code in configure.ac might set extrasub. 13054# FIXME: do we really want to maintain this feature? 13055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13056ac_sed_extra="$ac_vpsub 13057$extrasub 13058_ACEOF 13059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13060:t 13061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13062s|@configure_input@|$ac_sed_conf_input|;t t 13063s&@top_builddir@&$ac_top_builddir_sub&;t t 13064s&@top_build_prefix@&$ac_top_build_prefix&;t t 13065s&@srcdir@&$ac_srcdir&;t t 13066s&@abs_srcdir@&$ac_abs_srcdir&;t t 13067s&@top_srcdir@&$ac_top_srcdir&;t t 13068s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13069s&@builddir@&$ac_builddir&;t t 13070s&@abs_builddir@&$ac_abs_builddir&;t t 13071s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13072s&@INSTALL@&$ac_INSTALL&;t t 13073s&@MKDIR_P@&$ac_MKDIR_P&;t t 13074$ac_datarootdir_hack 13075" 13076eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13077 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13078 13079test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13080 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13082 "$ac_tmp/out"`; test -z "$ac_out"; } && 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13084which seems to be undefined. Please make sure it is defined" >&5 13085$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13086which seems to be undefined. Please make sure it is defined" >&2;} 13087 13088 rm -f "$ac_tmp/stdin" 13089 case $ac_file in 13090 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13091 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13092 esac \ 13093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13094 ;; 13095 :H) 13096 # 13097 # CONFIG_HEADER 13098 # 13099 if test x"$ac_file" != x-; then 13100 { 13101 $as_echo "/* $configure_input */" \ 13102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13103 } >"$ac_tmp/config.h" \ 13104 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13105 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13106 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13107$as_echo "$as_me: $ac_file is unchanged" >&6;} 13108 else 13109 rm -f "$ac_file" 13110 mv "$ac_tmp/config.h" "$ac_file" \ 13111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13112 fi 13113 else 13114 $as_echo "/* $configure_input */" \ 13115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13116 || as_fn_error $? "could not create -" "$LINENO" 5 13117 fi 13118# Compute "$ac_file"'s index in $config_headers. 13119_am_arg="$ac_file" 13120_am_stamp_count=1 13121for _am_header in $config_headers :; do 13122 case $_am_header in 13123 $_am_arg | $_am_arg:* ) 13124 break ;; 13125 * ) 13126 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13127 esac 13128done 13129echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13130$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13131 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13132 X"$_am_arg" : 'X\(//\)$' \| \ 13133 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13134$as_echo X"$_am_arg" | 13135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13136 s//\1/ 13137 q 13138 } 13139 /^X\(\/\/\)[^/].*/{ 13140 s//\1/ 13141 q 13142 } 13143 /^X\(\/\/\)$/{ 13144 s//\1/ 13145 q 13146 } 13147 /^X\(\/\).*/{ 13148 s//\1/ 13149 q 13150 } 13151 s/.*/./; q'`/stamp-h$_am_stamp_count 13152 ;; 13153 13154 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13155$as_echo "$as_me: executing $ac_file commands" >&6;} 13156 ;; 13157 esac 13158 13159 13160 case $ac_file$ac_mode in 13161 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13162 # Older Autoconf quotes --file arguments for eval, but not when files 13163 # are listed without --file. Let's play safe and only enable the eval 13164 # if we detect the quoting. 13165 case $CONFIG_FILES in 13166 *\'*) eval set x "$CONFIG_FILES" ;; 13167 *) set x $CONFIG_FILES ;; 13168 esac 13169 shift 13170 for mf 13171 do 13172 # Strip MF so we end up with the name of the file. 13173 mf=`echo "$mf" | sed -e 's/:.*$//'` 13174 # Check whether this is an Automake generated Makefile or not. 13175 # We used to match only the files named 'Makefile.in', but 13176 # some people rename them; so instead we look at the file content. 13177 # Grep'ing the first line is not enough: some people post-process 13178 # each Makefile.in and add a new line on top of each file to say so. 13179 # Grep'ing the whole file is not good either: AIX grep has a line 13180 # limit of 2048, but all sed's we know have understand at least 4000. 13181 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13182 dirpart=`$as_dirname -- "$mf" || 13183$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13184 X"$mf" : 'X\(//\)[^/]' \| \ 13185 X"$mf" : 'X\(//\)$' \| \ 13186 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13187$as_echo X"$mf" | 13188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13189 s//\1/ 13190 q 13191 } 13192 /^X\(\/\/\)[^/].*/{ 13193 s//\1/ 13194 q 13195 } 13196 /^X\(\/\/\)$/{ 13197 s//\1/ 13198 q 13199 } 13200 /^X\(\/\).*/{ 13201 s//\1/ 13202 q 13203 } 13204 s/.*/./; q'` 13205 else 13206 continue 13207 fi 13208 # Extract the definition of DEPDIR, am__include, and am__quote 13209 # from the Makefile without running 'make'. 13210 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13211 test -z "$DEPDIR" && continue 13212 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13213 test -z "$am__include" && continue 13214 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13215 # Find all dependency output files, they are included files with 13216 # $(DEPDIR) in their names. We invoke sed twice because it is the 13217 # simplest approach to changing $(DEPDIR) to its actual value in the 13218 # expansion. 13219 for file in `sed -n " 13220 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13221 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 13222 # Make sure the directory exists. 13223 test -f "$dirpart/$file" && continue 13224 fdir=`$as_dirname -- "$file" || 13225$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13226 X"$file" : 'X\(//\)[^/]' \| \ 13227 X"$file" : 'X\(//\)$' \| \ 13228 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13229$as_echo X"$file" | 13230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13231 s//\1/ 13232 q 13233 } 13234 /^X\(\/\/\)[^/].*/{ 13235 s//\1/ 13236 q 13237 } 13238 /^X\(\/\/\)$/{ 13239 s//\1/ 13240 q 13241 } 13242 /^X\(\/\).*/{ 13243 s//\1/ 13244 q 13245 } 13246 s/.*/./; q'` 13247 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13248 # echo "creating $dirpart/$file" 13249 echo '# dummy' > "$dirpart/$file" 13250 done 13251 done 13252} 13253 ;; 13254 13255 esac 13256done # for ac_tag 13257 13258 13259as_fn_exit 0 13260_ACEOF 13261ac_clean_files=$ac_clean_files_save 13262 13263test $ac_write_fail = 0 || 13264 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13265 13266 13267# configure is writing to config.log, and then calls config.status. 13268# config.status does its own redirection, appending to config.log. 13269# Unfortunately, on DOS this fails, as config.log is still kept open 13270# by configure, so config.status won't be able to write to it; its 13271# output is simply discarded. So we exec the FD to /dev/null, 13272# effectively closing config.log, so it can be properly (re)opened and 13273# appended to by config.status. When coming back to configure, we 13274# need to make the FD available again. 13275if test "$no_create" != yes; then 13276 ac_cs_success=: 13277 ac_config_status_args= 13278 test "$silent" = yes && 13279 ac_config_status_args="$ac_config_status_args --quiet" 13280 exec 5>/dev/null 13281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13282 exec 5>>config.log 13283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13284 # would make configure fail if this is the last instruction. 13285 $ac_cs_success || as_fn_exit 1 13286fi 13287if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13289$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13290fi 13291 13292