configure revision c3d5982a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xrefresh 1.0.5. 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='xrefresh' 563PACKAGE_TARNAME='xrefresh' 564PACKAGE_VERSION='1.0.5' 565PACKAGE_STRING='xrefresh 1.0.5' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610XREFRESH_LIBS 611XREFRESH_CFLAGS 612MAN_SUBSTS 613XORG_MAN_PAGE 614ADMIN_MAN_DIR 615DRIVER_MAN_DIR 616MISC_MAN_DIR 617FILE_MAN_DIR 618LIB_MAN_DIR 619APP_MAN_DIR 620ADMIN_MAN_SUFFIX 621DRIVER_MAN_SUFFIX 622MISC_MAN_SUFFIX 623FILE_MAN_SUFFIX 624LIB_MAN_SUFFIX 625APP_MAN_SUFFIX 626SED 627host_os 628host_vendor 629host_cpu 630host 631build_os 632build_vendor 633build_cpu 634build 635INSTALL_CMD 636PKG_CONFIG 637CHANGELOG_CMD 638STRICT_CFLAGS 639CWARNFLAGS 640BASE_CFLAGS 641MAINT 642MAINTAINER_MODE_FALSE 643MAINTAINER_MODE_TRUE 644AM_BACKSLASH 645AM_DEFAULT_VERBOSITY 646AM_DEFAULT_V 647AM_V 648am__fastdepCC_FALSE 649am__fastdepCC_TRUE 650CCDEPMODE 651am__nodep 652AMDEPBACKSLASH 653AMDEP_FALSE 654AMDEP_TRUE 655am__quote 656am__include 657DEPDIR 658am__untar 659am__tar 660AMTAR 661am__leading_dot 662SET_MAKE 663AWK 664mkdir_p 665MKDIR_P 666INSTALL_STRIP_PROGRAM 667STRIP 668install_sh 669MAKEINFO 670AUTOHEADER 671AUTOMAKE 672AUTOCONF 673ACLOCAL 674VERSION 675PACKAGE 676CYGPATH_W 677am__isrc 678INSTALL_DATA 679INSTALL_SCRIPT 680INSTALL_PROGRAM 681EGREP 682GREP 683CPP 684OBJEXT 685EXEEXT 686ac_ct_CC 687CPPFLAGS 688LDFLAGS 689CFLAGS 690CC 691target_alias 692host_alias 693build_alias 694LIBS 695ECHO_T 696ECHO_N 697ECHO_C 698DEFS 699mandir 700localedir 701libdir 702psdir 703pdfdir 704dvidir 705htmldir 706infodir 707docdir 708oldincludedir 709includedir 710localstatedir 711sharedstatedir 712sysconfdir 713datadir 714datarootdir 715libexecdir 716sbindir 717bindir 718program_transform_name 719prefix 720exec_prefix 721PACKAGE_URL 722PACKAGE_BUGREPORT 723PACKAGE_STRING 724PACKAGE_VERSION 725PACKAGE_TARNAME 726PACKAGE_NAME 727PATH_SEPARATOR 728SHELL' 729ac_subst_files='' 730ac_user_opts=' 731enable_option_checking 732enable_dependency_tracking 733enable_silent_rules 734enable_maintainer_mode 735enable_selective_werror 736enable_strict_compilation 737' 738 ac_precious_vars='build_alias 739host_alias 740target_alias 741CC 742CFLAGS 743LDFLAGS 744LIBS 745CPPFLAGS 746CPP 747PKG_CONFIG 748XREFRESH_CFLAGS 749XREFRESH_LIBS' 750 751 752# Initialize some variables set by options. 753ac_init_help= 754ac_init_version=false 755ac_unrecognized_opts= 756ac_unrecognized_sep= 757# The variables have the same names as the options, with 758# dashes changed to underlines. 759cache_file=/dev/null 760exec_prefix=NONE 761no_create= 762no_recursion= 763prefix=NONE 764program_prefix=NONE 765program_suffix=NONE 766program_transform_name=s,x,x, 767silent= 768site= 769srcdir= 770verbose= 771x_includes=NONE 772x_libraries=NONE 773 774# Installation directory options. 775# These are left unexpanded so users can "make install exec_prefix=/foo" 776# and all the variables that are supposed to be based on exec_prefix 777# by default will actually change. 778# Use braces instead of parens because sh, perl, etc. also accept them. 779# (The list follows the same order as the GNU Coding Standards.) 780bindir='${exec_prefix}/bin' 781sbindir='${exec_prefix}/sbin' 782libexecdir='${exec_prefix}/libexec' 783datarootdir='${prefix}/share' 784datadir='${datarootdir}' 785sysconfdir='${prefix}/etc' 786sharedstatedir='${prefix}/com' 787localstatedir='${prefix}/var' 788includedir='${prefix}/include' 789oldincludedir='/usr/include' 790docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 791infodir='${datarootdir}/info' 792htmldir='${docdir}' 793dvidir='${docdir}' 794pdfdir='${docdir}' 795psdir='${docdir}' 796libdir='${exec_prefix}/lib' 797localedir='${datarootdir}/locale' 798mandir='${datarootdir}/man' 799 800ac_prev= 801ac_dashdash= 802for ac_option 803do 804 # If the previous option needs an argument, assign it. 805 if test -n "$ac_prev"; then 806 eval $ac_prev=\$ac_option 807 ac_prev= 808 continue 809 fi 810 811 case $ac_option in 812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 813 *=) ac_optarg= ;; 814 *) ac_optarg=yes ;; 815 esac 816 817 # Accept the important Cygnus configure options, so we can diagnose typos. 818 819 case $ac_dashdash$ac_option in 820 --) 821 ac_dashdash=yes ;; 822 823 -bindir | --bindir | --bindi | --bind | --bin | --bi) 824 ac_prev=bindir ;; 825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 826 bindir=$ac_optarg ;; 827 828 -build | --build | --buil | --bui | --bu) 829 ac_prev=build_alias ;; 830 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 831 build_alias=$ac_optarg ;; 832 833 -cache-file | --cache-file | --cache-fil | --cache-fi \ 834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 835 ac_prev=cache_file ;; 836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 838 cache_file=$ac_optarg ;; 839 840 --config-cache | -C) 841 cache_file=config.cache ;; 842 843 -datadir | --datadir | --datadi | --datad) 844 ac_prev=datadir ;; 845 -datadir=* | --datadir=* | --datadi=* | --datad=*) 846 datadir=$ac_optarg ;; 847 848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 849 | --dataroo | --dataro | --datar) 850 ac_prev=datarootdir ;; 851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 853 datarootdir=$ac_optarg ;; 854 855 -disable-* | --disable-*) 856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 859 as_fn_error $? "invalid feature name: $ac_useropt" 860 ac_useropt_orig=$ac_useropt 861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 862 case $ac_user_opts in 863 *" 864"enable_$ac_useropt" 865"*) ;; 866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 867 ac_unrecognized_sep=', ';; 868 esac 869 eval enable_$ac_useropt=no ;; 870 871 -docdir | --docdir | --docdi | --doc | --do) 872 ac_prev=docdir ;; 873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 874 docdir=$ac_optarg ;; 875 876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 877 ac_prev=dvidir ;; 878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 879 dvidir=$ac_optarg ;; 880 881 -enable-* | --enable-*) 882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 885 as_fn_error $? "invalid feature name: $ac_useropt" 886 ac_useropt_orig=$ac_useropt 887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 888 case $ac_user_opts in 889 *" 890"enable_$ac_useropt" 891"*) ;; 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 893 ac_unrecognized_sep=', ';; 894 esac 895 eval enable_$ac_useropt=\$ac_optarg ;; 896 897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 899 | --exec | --exe | --ex) 900 ac_prev=exec_prefix ;; 901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 903 | --exec=* | --exe=* | --ex=*) 904 exec_prefix=$ac_optarg ;; 905 906 -gas | --gas | --ga | --g) 907 # Obsolete; use --with-gas. 908 with_gas=yes ;; 909 910 -help | --help | --hel | --he | -h) 911 ac_init_help=long ;; 912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 913 ac_init_help=recursive ;; 914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 915 ac_init_help=short ;; 916 917 -host | --host | --hos | --ho) 918 ac_prev=host_alias ;; 919 -host=* | --host=* | --hos=* | --ho=*) 920 host_alias=$ac_optarg ;; 921 922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 923 ac_prev=htmldir ;; 924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 925 | --ht=*) 926 htmldir=$ac_optarg ;; 927 928 -includedir | --includedir | --includedi | --included | --include \ 929 | --includ | --inclu | --incl | --inc) 930 ac_prev=includedir ;; 931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 932 | --includ=* | --inclu=* | --incl=* | --inc=*) 933 includedir=$ac_optarg ;; 934 935 -infodir | --infodir | --infodi | --infod | --info | --inf) 936 ac_prev=infodir ;; 937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 938 infodir=$ac_optarg ;; 939 940 -libdir | --libdir | --libdi | --libd) 941 ac_prev=libdir ;; 942 -libdir=* | --libdir=* | --libdi=* | --libd=*) 943 libdir=$ac_optarg ;; 944 945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 946 | --libexe | --libex | --libe) 947 ac_prev=libexecdir ;; 948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 949 | --libexe=* | --libex=* | --libe=*) 950 libexecdir=$ac_optarg ;; 951 952 -localedir | --localedir | --localedi | --localed | --locale) 953 ac_prev=localedir ;; 954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 955 localedir=$ac_optarg ;; 956 957 -localstatedir | --localstatedir | --localstatedi | --localstated \ 958 | --localstate | --localstat | --localsta | --localst | --locals) 959 ac_prev=localstatedir ;; 960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 962 localstatedir=$ac_optarg ;; 963 964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 965 ac_prev=mandir ;; 966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 967 mandir=$ac_optarg ;; 968 969 -nfp | --nfp | --nf) 970 # Obsolete; use --without-fp. 971 with_fp=no ;; 972 973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 974 | --no-cr | --no-c | -n) 975 no_create=yes ;; 976 977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 979 no_recursion=yes ;; 980 981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 983 | --oldin | --oldi | --old | --ol | --o) 984 ac_prev=oldincludedir ;; 985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 988 oldincludedir=$ac_optarg ;; 989 990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 991 ac_prev=prefix ;; 992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 993 prefix=$ac_optarg ;; 994 995 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 996 | --program-pre | --program-pr | --program-p) 997 ac_prev=program_prefix ;; 998 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1000 program_prefix=$ac_optarg ;; 1001 1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1003 | --program-suf | --program-su | --program-s) 1004 ac_prev=program_suffix ;; 1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1007 program_suffix=$ac_optarg ;; 1008 1009 -program-transform-name | --program-transform-name \ 1010 | --program-transform-nam | --program-transform-na \ 1011 | --program-transform-n | --program-transform- \ 1012 | --program-transform | --program-transfor \ 1013 | --program-transfo | --program-transf \ 1014 | --program-trans | --program-tran \ 1015 | --progr-tra | --program-tr | --program-t) 1016 ac_prev=program_transform_name ;; 1017 -program-transform-name=* | --program-transform-name=* \ 1018 | --program-transform-nam=* | --program-transform-na=* \ 1019 | --program-transform-n=* | --program-transform-=* \ 1020 | --program-transform=* | --program-transfor=* \ 1021 | --program-transfo=* | --program-transf=* \ 1022 | --program-trans=* | --program-tran=* \ 1023 | --progr-tra=* | --program-tr=* | --program-t=*) 1024 program_transform_name=$ac_optarg ;; 1025 1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1027 ac_prev=pdfdir ;; 1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1029 pdfdir=$ac_optarg ;; 1030 1031 -psdir | --psdir | --psdi | --psd | --ps) 1032 ac_prev=psdir ;; 1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1034 psdir=$ac_optarg ;; 1035 1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1037 | -silent | --silent | --silen | --sile | --sil) 1038 silent=yes ;; 1039 1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1041 ac_prev=sbindir ;; 1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1043 | --sbi=* | --sb=*) 1044 sbindir=$ac_optarg ;; 1045 1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1048 | --sharedst | --shareds | --shared | --share | --shar \ 1049 | --sha | --sh) 1050 ac_prev=sharedstatedir ;; 1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1054 | --sha=* | --sh=*) 1055 sharedstatedir=$ac_optarg ;; 1056 1057 -site | --site | --sit) 1058 ac_prev=site ;; 1059 -site=* | --site=* | --sit=*) 1060 site=$ac_optarg ;; 1061 1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1063 ac_prev=srcdir ;; 1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1065 srcdir=$ac_optarg ;; 1066 1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1068 | --syscon | --sysco | --sysc | --sys | --sy) 1069 ac_prev=sysconfdir ;; 1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1072 sysconfdir=$ac_optarg ;; 1073 1074 -target | --target | --targe | --targ | --tar | --ta | --t) 1075 ac_prev=target_alias ;; 1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1077 target_alias=$ac_optarg ;; 1078 1079 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1080 verbose=yes ;; 1081 1082 -version | --version | --versio | --versi | --vers | -V) 1083 ac_init_version=: ;; 1084 1085 -with-* | --with-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 as_fn_error $? "invalid package name: $ac_useropt" 1090 ac_useropt_orig=$ac_useropt 1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1092 case $ac_user_opts in 1093 *" 1094"with_$ac_useropt" 1095"*) ;; 1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1097 ac_unrecognized_sep=', ';; 1098 esac 1099 eval with_$ac_useropt=\$ac_optarg ;; 1100 1101 -without-* | --without-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=no ;; 1116 1117 --x) 1118 # Obsolete; use --with-x. 1119 with_x=yes ;; 1120 1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1122 | --x-incl | --x-inc | --x-in | --x-i) 1123 ac_prev=x_includes ;; 1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1126 x_includes=$ac_optarg ;; 1127 1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1130 ac_prev=x_libraries ;; 1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1133 x_libraries=$ac_optarg ;; 1134 1135 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1136Try \`$0 --help' for more information" 1137 ;; 1138 1139 *=*) 1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1141 # Reject names that are not valid shell variable names. 1142 case $ac_envvar in #( 1143 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1145 esac 1146 eval $ac_envvar=\$ac_optarg 1147 export $ac_envvar ;; 1148 1149 *) 1150 # FIXME: should be removed in autoconf 3.0. 1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1155 ;; 1156 1157 esac 1158done 1159 1160if test -n "$ac_prev"; then 1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1162 as_fn_error $? "missing argument to $ac_option" 1163fi 1164 1165if test -n "$ac_unrecognized_opts"; then 1166 case $enable_option_checking in 1167 no) ;; 1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1170 esac 1171fi 1172 1173# Check all directory arguments for consistency. 1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1175 datadir sysconfdir sharedstatedir localstatedir includedir \ 1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1177 libdir localedir mandir 1178do 1179 eval ac_val=\$$ac_var 1180 # Remove trailing slashes. 1181 case $ac_val in 1182 */ ) 1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1184 eval $ac_var=\$ac_val;; 1185 esac 1186 # Be sure to have absolute directory names. 1187 case $ac_val in 1188 [\\/$]* | ?:[\\/]* ) continue;; 1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1190 esac 1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1192done 1193 1194# There might be people who depend on the old broken behavior: `$host' 1195# used to hold the argument of --host etc. 1196# FIXME: To remove some day. 1197build=$build_alias 1198host=$host_alias 1199target=$target_alias 1200 1201# FIXME: To remove some day. 1202if test "x$host_alias" != x; then 1203 if test "x$build_alias" = x; then 1204 cross_compiling=maybe 1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1206 If a cross compiler is detected then cross compile mode will be used" >&2 1207 elif test "x$build_alias" != "x$host_alias"; then 1208 cross_compiling=yes 1209 fi 1210fi 1211 1212ac_tool_prefix= 1213test -n "$host_alias" && ac_tool_prefix=$host_alias- 1214 1215test "$silent" = yes && exec 6>/dev/null 1216 1217 1218ac_pwd=`pwd` && test -n "$ac_pwd" && 1219ac_ls_di=`ls -di .` && 1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1221 as_fn_error $? "working directory cannot be determined" 1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1223 as_fn_error $? "pwd does not report name of working directory" 1224 1225 1226# Find the source files, if location was not specified. 1227if test -z "$srcdir"; then 1228 ac_srcdir_defaulted=yes 1229 # Try the directory containing this script, then the parent directory. 1230 ac_confdir=`$as_dirname -- "$as_myself" || 1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1232 X"$as_myself" : 'X\(//\)[^/]' \| \ 1233 X"$as_myself" : 'X\(//\)$' \| \ 1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1235$as_echo X"$as_myself" | 1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)[^/].*/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\/\)$/{ 1245 s//\1/ 1246 q 1247 } 1248 /^X\(\/\).*/{ 1249 s//\1/ 1250 q 1251 } 1252 s/.*/./; q'` 1253 srcdir=$ac_confdir 1254 if test ! -r "$srcdir/$ac_unique_file"; then 1255 srcdir=.. 1256 fi 1257else 1258 ac_srcdir_defaulted=no 1259fi 1260if test ! -r "$srcdir/$ac_unique_file"; then 1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1263fi 1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1265ac_abs_confdir=`( 1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1267 pwd)` 1268# When building in place, set srcdir=. 1269if test "$ac_abs_confdir" = "$ac_pwd"; then 1270 srcdir=. 1271fi 1272# Remove unnecessary trailing slashes from srcdir. 1273# Double slashes in file names in object file debugging info 1274# mess up M-x gdb in Emacs. 1275case $srcdir in 1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1277esac 1278for ac_var in $ac_precious_vars; do 1279 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_env_${ac_var}_value=\$${ac_var} 1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1283done 1284 1285# 1286# Report the --help message. 1287# 1288if test "$ac_init_help" = "long"; then 1289 # Omit some internal or obsolete options to make the list less imposing. 1290 # This message is too long to be a string in the A/UX 3.1 sh. 1291 cat <<_ACEOF 1292\`configure' configures xrefresh 1.0.5 to adapt to many kinds of systems. 1293 1294Usage: $0 [OPTION]... [VAR=VALUE]... 1295 1296To assign environment variables (e.g., CC, CFLAGS...), specify them as 1297VAR=VALUE. See below for descriptions of some of the useful variables. 1298 1299Defaults for the options are specified in brackets. 1300 1301Configuration: 1302 -h, --help display this help and exit 1303 --help=short display options specific to this package 1304 --help=recursive display the short help of all the included packages 1305 -V, --version display version information and exit 1306 -q, --quiet, --silent do not print \`checking ...' messages 1307 --cache-file=FILE cache test results in FILE [disabled] 1308 -C, --config-cache alias for \`--cache-file=config.cache' 1309 -n, --no-create do not create output files 1310 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1311 1312Installation directories: 1313 --prefix=PREFIX install architecture-independent files in PREFIX 1314 [$ac_default_prefix] 1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1316 [PREFIX] 1317 1318By default, \`make install' will install all the files in 1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1320an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1321for instance \`--prefix=\$HOME'. 1322 1323For better control, use the options below. 1324 1325Fine tuning of the installation directories: 1326 --bindir=DIR user executables [EPREFIX/bin] 1327 --sbindir=DIR system admin executables [EPREFIX/sbin] 1328 --libexecdir=DIR program executables [EPREFIX/libexec] 1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1332 --libdir=DIR object code libraries [EPREFIX/lib] 1333 --includedir=DIR C header files [PREFIX/include] 1334 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1337 --infodir=DIR info documentation [DATAROOTDIR/info] 1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1339 --mandir=DIR man documentation [DATAROOTDIR/man] 1340 --docdir=DIR documentation root [DATAROOTDIR/doc/xrefresh] 1341 --htmldir=DIR html documentation [DOCDIR] 1342 --dvidir=DIR dvi documentation [DOCDIR] 1343 --pdfdir=DIR pdf documentation [DOCDIR] 1344 --psdir=DIR ps documentation [DOCDIR] 1345_ACEOF 1346 1347 cat <<\_ACEOF 1348 1349Program names: 1350 --program-prefix=PREFIX prepend PREFIX to installed program names 1351 --program-suffix=SUFFIX append SUFFIX to installed program names 1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1353 1354System types: 1355 --build=BUILD configure for building on BUILD [guessed] 1356 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1357_ACEOF 1358fi 1359 1360if test -n "$ac_init_help"; then 1361 case $ac_init_help in 1362 short | recursive ) echo "Configuration of xrefresh 1.0.5:";; 1363 esac 1364 cat <<\_ACEOF 1365 1366Optional Features: 1367 --disable-option-checking ignore unrecognized --enable/--with options 1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1370 --enable-dependency-tracking 1371 do not reject slow dependency extractors 1372 --disable-dependency-tracking 1373 speeds up one-time build 1374 --enable-silent-rules less verbose build output (undo: "make V=1") 1375 --disable-silent-rules verbose build output (undo: "make V=0") 1376 --enable-maintainer-mode 1377 enable make rules and dependencies not useful (and 1378 sometimes confusing) to the casual installer 1379 --disable-selective-werror 1380 Turn off selective compiler errors. (default: 1381 enabled) 1382 --enable-strict-compilation 1383 Enable all warnings from compiler and make them 1384 errors (default: disabled) 1385 1386Some influential environment variables: 1387 CC C compiler command 1388 CFLAGS C compiler flags 1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1390 nonstandard directory <lib dir> 1391 LIBS libraries to pass to the linker, e.g. -l<library> 1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1393 you have headers in a nonstandard directory <include dir> 1394 CPP C preprocessor 1395 PKG_CONFIG path to pkg-config utility 1396 XREFRESH_CFLAGS 1397 C compiler flags for XREFRESH, overriding pkg-config 1398 XREFRESH_LIBS 1399 linker flags for XREFRESH, overriding pkg-config 1400 1401Use these variables to override the choices made by `configure' or to help 1402it to find libraries and programs with nonstandard names/locations. 1403 1404Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1405_ACEOF 1406ac_status=$? 1407fi 1408 1409if test "$ac_init_help" = "recursive"; then 1410 # If there are subdirs, report their specific --help. 1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1412 test -d "$ac_dir" || 1413 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1414 continue 1415 ac_builddir=. 1416 1417case "$ac_dir" in 1418.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1419*) 1420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1421 # A ".." for each directory in $ac_dir_suffix. 1422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1423 case $ac_top_builddir_sub in 1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1426 esac ;; 1427esac 1428ac_abs_top_builddir=$ac_pwd 1429ac_abs_builddir=$ac_pwd$ac_dir_suffix 1430# for backward compatibility: 1431ac_top_builddir=$ac_top_build_prefix 1432 1433case $srcdir in 1434 .) # We are building in place. 1435 ac_srcdir=. 1436 ac_top_srcdir=$ac_top_builddir_sub 1437 ac_abs_top_srcdir=$ac_pwd ;; 1438 [\\/]* | ?:[\\/]* ) # Absolute name. 1439 ac_srcdir=$srcdir$ac_dir_suffix; 1440 ac_top_srcdir=$srcdir 1441 ac_abs_top_srcdir=$srcdir ;; 1442 *) # Relative name. 1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1444 ac_top_srcdir=$ac_top_build_prefix$srcdir 1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1446esac 1447ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1448 1449 cd "$ac_dir" || { ac_status=$?; continue; } 1450 # Check for guested configure. 1451 if test -f "$ac_srcdir/configure.gnu"; then 1452 echo && 1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1454 elif test -f "$ac_srcdir/configure"; then 1455 echo && 1456 $SHELL "$ac_srcdir/configure" --help=recursive 1457 else 1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1459 fi || ac_status=$? 1460 cd "$ac_pwd" || { ac_status=$?; break; } 1461 done 1462fi 1463 1464test -n "$ac_init_help" && exit $ac_status 1465if $ac_init_version; then 1466 cat <<\_ACEOF 1467xrefresh configure 1.0.5 1468generated by GNU Autoconf 2.68 1469 1470Copyright (C) 2010 Free Software Foundation, Inc. 1471This configure script is free software; the Free Software Foundation 1472gives unlimited permission to copy, distribute and modify it. 1473_ACEOF 1474 exit 1475fi 1476 1477## ------------------------ ## 1478## Autoconf initialization. ## 1479## ------------------------ ## 1480 1481# ac_fn_c_try_compile LINENO 1482# -------------------------- 1483# Try to compile conftest.$ac_ext, and return whether this succeeded. 1484ac_fn_c_try_compile () 1485{ 1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1487 rm -f conftest.$ac_objext 1488 if { { ac_try="$ac_compile" 1489case "(($ac_try" in 1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1491 *) ac_try_echo=$ac_try;; 1492esac 1493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1494$as_echo "$ac_try_echo"; } >&5 1495 (eval "$ac_compile") 2>conftest.err 1496 ac_status=$? 1497 if test -s conftest.err; then 1498 grep -v '^ *+' conftest.err >conftest.er1 1499 cat conftest.er1 >&5 1500 mv -f conftest.er1 conftest.err 1501 fi 1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1503 test $ac_status = 0; } && { 1504 test -z "$ac_c_werror_flag" || 1505 test ! -s conftest.err 1506 } && test -s conftest.$ac_objext; then : 1507 ac_retval=0 1508else 1509 $as_echo "$as_me: failed program was:" >&5 1510sed 's/^/| /' conftest.$ac_ext >&5 1511 1512 ac_retval=1 1513fi 1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1515 as_fn_set_status $ac_retval 1516 1517} # ac_fn_c_try_compile 1518 1519# ac_fn_c_try_cpp LINENO 1520# ---------------------- 1521# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1522ac_fn_c_try_cpp () 1523{ 1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1525 if { { ac_try="$ac_cpp conftest.$ac_ext" 1526case "(($ac_try" in 1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1528 *) ac_try_echo=$ac_try;; 1529esac 1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1531$as_echo "$ac_try_echo"; } >&5 1532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1533 ac_status=$? 1534 if test -s conftest.err; then 1535 grep -v '^ *+' conftest.err >conftest.er1 1536 cat conftest.er1 >&5 1537 mv -f conftest.er1 conftest.err 1538 fi 1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1540 test $ac_status = 0; } > conftest.i && { 1541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1542 test ! -s conftest.err 1543 }; then : 1544 ac_retval=0 1545else 1546 $as_echo "$as_me: failed program was:" >&5 1547sed 's/^/| /' conftest.$ac_ext >&5 1548 1549 ac_retval=1 1550fi 1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1552 as_fn_set_status $ac_retval 1553 1554} # ac_fn_c_try_cpp 1555 1556# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1557# ------------------------------------------------------- 1558# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1559# the include files in INCLUDES and setting the cache variable VAR 1560# accordingly. 1561ac_fn_c_check_header_mongrel () 1562{ 1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564 if eval \${$3+:} false; then : 1565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1566$as_echo_n "checking for $2... " >&6; } 1567if eval \${$3+:} false; then : 1568 $as_echo_n "(cached) " >&6 1569fi 1570eval ac_res=\$$3 1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1572$as_echo "$ac_res" >&6; } 1573else 1574 # Is the header compilable? 1575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1576$as_echo_n "checking $2 usability... " >&6; } 1577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1578/* end confdefs.h. */ 1579$4 1580#include <$2> 1581_ACEOF 1582if ac_fn_c_try_compile "$LINENO"; then : 1583 ac_header_compiler=yes 1584else 1585 ac_header_compiler=no 1586fi 1587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1589$as_echo "$ac_header_compiler" >&6; } 1590 1591# Is the header present? 1592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1593$as_echo_n "checking $2 presence... " >&6; } 1594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1595/* end confdefs.h. */ 1596#include <$2> 1597_ACEOF 1598if ac_fn_c_try_cpp "$LINENO"; then : 1599 ac_header_preproc=yes 1600else 1601 ac_header_preproc=no 1602fi 1603rm -f conftest.err conftest.i conftest.$ac_ext 1604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1605$as_echo "$ac_header_preproc" >&6; } 1606 1607# So? What about this header? 1608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1609 yes:no: ) 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1611$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1613$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1614 ;; 1615 no:yes:* ) 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1617$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1619$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1621$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1623$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1625$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1626( $as_echo "## ---------------------------------------------------------------------- ## 1627## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1628## ---------------------------------------------------------------------- ##" 1629 ) | sed "s/^/$as_me: WARNING: /" >&2 1630 ;; 1631esac 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1633$as_echo_n "checking for $2... " >&6; } 1634if eval \${$3+:} false; then : 1635 $as_echo_n "(cached) " >&6 1636else 1637 eval "$3=\$ac_header_compiler" 1638fi 1639eval ac_res=\$$3 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1641$as_echo "$ac_res" >&6; } 1642fi 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 1645} # ac_fn_c_check_header_mongrel 1646 1647# ac_fn_c_try_run LINENO 1648# ---------------------- 1649# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1650# that executables *can* be run. 1651ac_fn_c_try_run () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 if { { ac_try="$ac_link" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660$as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_link") 2>&5 1662 ac_status=$? 1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1665 { { case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670$as_echo "$ac_try_echo"; } >&5 1671 (eval "$ac_try") 2>&5 1672 ac_status=$? 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; }; }; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: program exited with status $ac_status" >&5 1678 $as_echo "$as_me: failed program was:" >&5 1679sed 's/^/| /' conftest.$ac_ext >&5 1680 1681 ac_retval=$ac_status 1682fi 1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 as_fn_set_status $ac_retval 1686 1687} # ac_fn_c_try_run 1688 1689# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1690# ------------------------------------------------------- 1691# Tests whether HEADER exists and can be compiled using the include files in 1692# INCLUDES, setting the cache variable VAR accordingly. 1693ac_fn_c_check_header_compile () 1694{ 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1697$as_echo_n "checking for $2... " >&6; } 1698if eval \${$3+:} false; then : 1699 $as_echo_n "(cached) " >&6 1700else 1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1702/* end confdefs.h. */ 1703$4 1704#include <$2> 1705_ACEOF 1706if ac_fn_c_try_compile "$LINENO"; then : 1707 eval "$3=yes" 1708else 1709 eval "$3=no" 1710fi 1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1712fi 1713eval ac_res=\$$3 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715$as_echo "$ac_res" >&6; } 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 1718} # ac_fn_c_check_header_compile 1719 1720# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1721# --------------------------------------------- 1722# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1723# accordingly. 1724ac_fn_c_check_decl () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 as_decl_name=`echo $2|sed 's/ *(.*//'` 1728 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1730$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736$4 1737int 1738main () 1739{ 1740#ifndef $as_decl_name 1741#ifdef __cplusplus 1742 (void) $as_decl_use; 1743#else 1744 (void) $as_decl_name; 1745#endif 1746#endif 1747 1748 ; 1749 return 0; 1750} 1751_ACEOF 1752if ac_fn_c_try_compile "$LINENO"; then : 1753 eval "$3=yes" 1754else 1755 eval "$3=no" 1756fi 1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1758fi 1759eval ac_res=\$$3 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1761$as_echo "$ac_res" >&6; } 1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1763 1764} # ac_fn_c_check_decl 1765 1766# ac_fn_c_try_link LINENO 1767# ----------------------- 1768# Try to link conftest.$ac_ext, and return whether this succeeded. 1769ac_fn_c_try_link () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 rm -f conftest.$ac_objext conftest$ac_exeext 1773 if { { ac_try="$ac_link" 1774case "(($ac_try" in 1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776 *) ac_try_echo=$ac_try;; 1777esac 1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779$as_echo "$ac_try_echo"; } >&5 1780 (eval "$ac_link") 2>conftest.err 1781 ac_status=$? 1782 if test -s conftest.err; then 1783 grep -v '^ *+' conftest.err >conftest.er1 1784 cat conftest.er1 >&5 1785 mv -f conftest.er1 conftest.err 1786 fi 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; } && { 1789 test -z "$ac_c_werror_flag" || 1790 test ! -s conftest.err 1791 } && test -s conftest$ac_exeext && { 1792 test "$cross_compiling" = yes || 1793 $as_test_x conftest$ac_exeext 1794 }; then : 1795 ac_retval=0 1796else 1797 $as_echo "$as_me: failed program was:" >&5 1798sed 's/^/| /' conftest.$ac_ext >&5 1799 1800 ac_retval=1 1801fi 1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1804 # interfere with the next link command; also delete a directory that is 1805 # left behind by Apple's compiler. We do this before executing the actions. 1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 as_fn_set_status $ac_retval 1809 1810} # ac_fn_c_try_link 1811 1812# ac_fn_c_check_func LINENO FUNC VAR 1813# ---------------------------------- 1814# Tests whether FUNC exists, setting the cache variable VAR accordingly 1815ac_fn_c_check_func () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1819$as_echo_n "checking for $2... " >&6; } 1820if eval \${$3+:} false; then : 1821 $as_echo_n "(cached) " >&6 1822else 1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1827#define $2 innocuous_$2 1828 1829/* System header to define __stub macros and hopefully few prototypes, 1830 which can conflict with char $2 (); below. 1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1832 <limits.h> exists even on freestanding compilers. */ 1833 1834#ifdef __STDC__ 1835# include <limits.h> 1836#else 1837# include <assert.h> 1838#endif 1839 1840#undef $2 1841 1842/* Override any GCC internal prototype to avoid an error. 1843 Use char because int might match the return type of a GCC 1844 builtin and then its argument prototype would still apply. */ 1845#ifdef __cplusplus 1846extern "C" 1847#endif 1848char $2 (); 1849/* The GNU C library defines this for functions which it implements 1850 to always fail with ENOSYS. Some functions are actually named 1851 something starting with __ and the normal name is an alias. */ 1852#if defined __stub_$2 || defined __stub___$2 1853choke me 1854#endif 1855 1856int 1857main () 1858{ 1859return $2 (); 1860 ; 1861 return 0; 1862} 1863_ACEOF 1864if ac_fn_c_try_link "$LINENO"; then : 1865 eval "$3=yes" 1866else 1867 eval "$3=no" 1868fi 1869rm -f core conftest.err conftest.$ac_objext \ 1870 conftest$ac_exeext conftest.$ac_ext 1871fi 1872eval ac_res=\$$3 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874$as_echo "$ac_res" >&6; } 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 1877} # ac_fn_c_check_func 1878cat >config.log <<_ACEOF 1879This file contains any messages produced by compilers while 1880running configure, to aid debugging if configure makes a mistake. 1881 1882It was created by xrefresh $as_me 1.0.5, which was 1883generated by GNU Autoconf 2.68. Invocation command line was 1884 1885 $ $0 $@ 1886 1887_ACEOF 1888exec 5>>config.log 1889{ 1890cat <<_ASUNAME 1891## --------- ## 1892## Platform. ## 1893## --------- ## 1894 1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1896uname -m = `(uname -m) 2>/dev/null || echo unknown` 1897uname -r = `(uname -r) 2>/dev/null || echo unknown` 1898uname -s = `(uname -s) 2>/dev/null || echo unknown` 1899uname -v = `(uname -v) 2>/dev/null || echo unknown` 1900 1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1902/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1903 1904/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1905/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1907/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1908/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1909/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1910/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1911 1912_ASUNAME 1913 1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1915for as_dir in $PATH 1916do 1917 IFS=$as_save_IFS 1918 test -z "$as_dir" && as_dir=. 1919 $as_echo "PATH: $as_dir" 1920 done 1921IFS=$as_save_IFS 1922 1923} >&5 1924 1925cat >&5 <<_ACEOF 1926 1927 1928## ----------- ## 1929## Core tests. ## 1930## ----------- ## 1931 1932_ACEOF 1933 1934 1935# Keep a trace of the command line. 1936# Strip out --no-create and --no-recursion so they do not pile up. 1937# Strip out --silent because we don't want to record it for future runs. 1938# Also quote any args containing shell meta-characters. 1939# Make two passes to allow for proper duplicate-argument suppression. 1940ac_configure_args= 1941ac_configure_args0= 1942ac_configure_args1= 1943ac_must_keep_next=false 1944for ac_pass in 1 2 1945do 1946 for ac_arg 1947 do 1948 case $ac_arg in 1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1951 | -silent | --silent | --silen | --sile | --sil) 1952 continue ;; 1953 *\'*) 1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1955 esac 1956 case $ac_pass in 1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1958 2) 1959 as_fn_append ac_configure_args1 " '$ac_arg'" 1960 if test $ac_must_keep_next = true; then 1961 ac_must_keep_next=false # Got value, back to normal. 1962 else 1963 case $ac_arg in 1964 *=* | --config-cache | -C | -disable-* | --disable-* \ 1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1967 | -with-* | --with-* | -without-* | --without-* | --x) 1968 case "$ac_configure_args0 " in 1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1970 esac 1971 ;; 1972 -* ) ac_must_keep_next=true ;; 1973 esac 1974 fi 1975 as_fn_append ac_configure_args " '$ac_arg'" 1976 ;; 1977 esac 1978 done 1979done 1980{ ac_configure_args0=; unset ac_configure_args0;} 1981{ ac_configure_args1=; unset ac_configure_args1;} 1982 1983# When interrupted or exit'd, cleanup temporary files, and complete 1984# config.log. We remove comments because anyway the quotes in there 1985# would cause problems or look ugly. 1986# WARNING: Use '\'' to represent an apostrophe within the trap. 1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1988trap 'exit_status=$? 1989 # Save into config.log some information that might help in debugging. 1990 { 1991 echo 1992 1993 $as_echo "## ---------------- ## 1994## Cache variables. ## 1995## ---------------- ##" 1996 echo 1997 # The following way of writing the cache mishandles newlines in values, 1998( 1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2000 eval ac_val=\$$ac_var 2001 case $ac_val in #( 2002 *${as_nl}*) 2003 case $ac_var in #( 2004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2005$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2006 esac 2007 case $ac_var in #( 2008 _ | IFS | as_nl) ;; #( 2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2010 *) { eval $ac_var=; unset $ac_var;} ;; 2011 esac ;; 2012 esac 2013 done 2014 (set) 2>&1 | 2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2016 *${as_nl}ac_space=\ *) 2017 sed -n \ 2018 "s/'\''/'\''\\\\'\'''\''/g; 2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2020 ;; #( 2021 *) 2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2023 ;; 2024 esac | 2025 sort 2026) 2027 echo 2028 2029 $as_echo "## ----------------- ## 2030## Output variables. ## 2031## ----------------- ##" 2032 echo 2033 for ac_var in $ac_subst_vars 2034 do 2035 eval ac_val=\$$ac_var 2036 case $ac_val in 2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2038 esac 2039 $as_echo "$ac_var='\''$ac_val'\''" 2040 done | sort 2041 echo 2042 2043 if test -n "$ac_subst_files"; then 2044 $as_echo "## ------------------- ## 2045## File substitutions. ## 2046## ------------------- ##" 2047 echo 2048 for ac_var in $ac_subst_files 2049 do 2050 eval ac_val=\$$ac_var 2051 case $ac_val in 2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2053 esac 2054 $as_echo "$ac_var='\''$ac_val'\''" 2055 done | sort 2056 echo 2057 fi 2058 2059 if test -s confdefs.h; then 2060 $as_echo "## ----------- ## 2061## confdefs.h. ## 2062## ----------- ##" 2063 echo 2064 cat confdefs.h 2065 echo 2066 fi 2067 test "$ac_signal" != 0 && 2068 $as_echo "$as_me: caught signal $ac_signal" 2069 $as_echo "$as_me: exit $exit_status" 2070 } >&5 2071 rm -f core *.core core.conftest.* && 2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2073 exit $exit_status 2074' 0 2075for ac_signal in 1 2 13 15; do 2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2077done 2078ac_signal=0 2079 2080# confdefs.h avoids OS command line length limits that DEFS can exceed. 2081rm -f -r conftest* confdefs.h 2082 2083$as_echo "/* confdefs.h */" > confdefs.h 2084 2085# Predefined preprocessor variables. 2086 2087cat >>confdefs.h <<_ACEOF 2088#define PACKAGE_NAME "$PACKAGE_NAME" 2089_ACEOF 2090 2091cat >>confdefs.h <<_ACEOF 2092#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2093_ACEOF 2094 2095cat >>confdefs.h <<_ACEOF 2096#define PACKAGE_VERSION "$PACKAGE_VERSION" 2097_ACEOF 2098 2099cat >>confdefs.h <<_ACEOF 2100#define PACKAGE_STRING "$PACKAGE_STRING" 2101_ACEOF 2102 2103cat >>confdefs.h <<_ACEOF 2104#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2105_ACEOF 2106 2107cat >>confdefs.h <<_ACEOF 2108#define PACKAGE_URL "$PACKAGE_URL" 2109_ACEOF 2110 2111 2112# Let the site file select an alternate cache file if it wants to. 2113# Prefer an explicitly selected file to automatically selected ones. 2114ac_site_file1=NONE 2115ac_site_file2=NONE 2116if test -n "$CONFIG_SITE"; then 2117 # We do not want a PATH search for config.site. 2118 case $CONFIG_SITE in #(( 2119 -*) ac_site_file1=./$CONFIG_SITE;; 2120 */*) ac_site_file1=$CONFIG_SITE;; 2121 *) ac_site_file1=./$CONFIG_SITE;; 2122 esac 2123elif test "x$prefix" != xNONE; then 2124 ac_site_file1=$prefix/share/config.site 2125 ac_site_file2=$prefix/etc/config.site 2126else 2127 ac_site_file1=$ac_default_prefix/share/config.site 2128 ac_site_file2=$ac_default_prefix/etc/config.site 2129fi 2130for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2131do 2132 test "x$ac_site_file" = xNONE && continue 2133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2135$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2136 sed 's/^/| /' "$ac_site_file" >&5 2137 . "$ac_site_file" \ 2138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2140as_fn_error $? "failed to load site script $ac_site_file 2141See \`config.log' for more details" "$LINENO" 5; } 2142 fi 2143done 2144 2145if test -r "$cache_file"; then 2146 # Some versions of bash will fail to source /dev/null (special files 2147 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2150$as_echo "$as_me: loading cache $cache_file" >&6;} 2151 case $cache_file in 2152 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2153 *) . "./$cache_file";; 2154 esac 2155 fi 2156else 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2158$as_echo "$as_me: creating cache $cache_file" >&6;} 2159 >$cache_file 2160fi 2161 2162# Check that the precious variables saved in the cache have kept the same 2163# value. 2164ac_cache_corrupted=false 2165for ac_var in $ac_precious_vars; do 2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2167 eval ac_new_set=\$ac_env_${ac_var}_set 2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2169 eval ac_new_val=\$ac_env_${ac_var}_value 2170 case $ac_old_set,$ac_new_set in 2171 set,) 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2173$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2174 ac_cache_corrupted=: ;; 2175 ,set) 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2177$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2178 ac_cache_corrupted=: ;; 2179 ,);; 2180 *) 2181 if test "x$ac_old_val" != "x$ac_new_val"; then 2182 # differences in whitespace do not lead to failure. 2183 ac_old_val_w=`echo x $ac_old_val` 2184 ac_new_val_w=`echo x $ac_new_val` 2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2187$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2188 ac_cache_corrupted=: 2189 else 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2191$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2192 eval $ac_var=\$ac_old_val 2193 fi 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2195$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2197$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2198 fi;; 2199 esac 2200 # Pass precious variables to config.status. 2201 if test "$ac_new_set" = set; then 2202 case $ac_new_val in 2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2204 *) ac_arg=$ac_var=$ac_new_val ;; 2205 esac 2206 case " $ac_configure_args " in 2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2209 esac 2210 fi 2211done 2212if $ac_cache_corrupted; then 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2216$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2218fi 2219## -------------------- ## 2220## Main body of script. ## 2221## -------------------- ## 2222 2223ac_ext=c 2224ac_cpp='$CPP $CPPFLAGS' 2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2227ac_compiler_gnu=$ac_cv_c_compiler_gnu 2228 2229 2230 2231ac_config_headers="$ac_config_headers config.h" 2232 2233ac_ext=c 2234ac_cpp='$CPP $CPPFLAGS' 2235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2237ac_compiler_gnu=$ac_cv_c_compiler_gnu 2238if test -n "$ac_tool_prefix"; then 2239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2240set dummy ${ac_tool_prefix}gcc; ac_word=$2 2241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2242$as_echo_n "checking for $ac_word... " >&6; } 2243if ${ac_cv_prog_CC+:} false; then : 2244 $as_echo_n "(cached) " >&6 2245else 2246 if test -n "$CC"; then 2247 ac_cv_prog_CC="$CC" # Let the user override the test. 2248else 2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2250for as_dir in $PATH 2251do 2252 IFS=$as_save_IFS 2253 test -z "$as_dir" && as_dir=. 2254 for ac_exec_ext in '' $ac_executable_extensions; do 2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2256 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2258 break 2 2259 fi 2260done 2261 done 2262IFS=$as_save_IFS 2263 2264fi 2265fi 2266CC=$ac_cv_prog_CC 2267if test -n "$CC"; then 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2269$as_echo "$CC" >&6; } 2270else 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2272$as_echo "no" >&6; } 2273fi 2274 2275 2276fi 2277if test -z "$ac_cv_prog_CC"; then 2278 ac_ct_CC=$CC 2279 # Extract the first word of "gcc", so it can be a program name with args. 2280set dummy gcc; ac_word=$2 2281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2282$as_echo_n "checking for $ac_word... " >&6; } 2283if ${ac_cv_prog_ac_ct_CC+:} false; then : 2284 $as_echo_n "(cached) " >&6 2285else 2286 if test -n "$ac_ct_CC"; then 2287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2288else 2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2290for as_dir in $PATH 2291do 2292 IFS=$as_save_IFS 2293 test -z "$as_dir" && as_dir=. 2294 for ac_exec_ext in '' $ac_executable_extensions; do 2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2296 ac_cv_prog_ac_ct_CC="gcc" 2297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2298 break 2 2299 fi 2300done 2301 done 2302IFS=$as_save_IFS 2303 2304fi 2305fi 2306ac_ct_CC=$ac_cv_prog_ac_ct_CC 2307if test -n "$ac_ct_CC"; then 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2309$as_echo "$ac_ct_CC" >&6; } 2310else 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2312$as_echo "no" >&6; } 2313fi 2314 2315 if test "x$ac_ct_CC" = x; then 2316 CC="" 2317 else 2318 case $cross_compiling:$ac_tool_warned in 2319yes:) 2320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2322ac_tool_warned=yes ;; 2323esac 2324 CC=$ac_ct_CC 2325 fi 2326else 2327 CC="$ac_cv_prog_CC" 2328fi 2329 2330if test -z "$CC"; then 2331 if test -n "$ac_tool_prefix"; then 2332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2333set dummy ${ac_tool_prefix}cc; ac_word=$2 2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2335$as_echo_n "checking for $ac_word... " >&6; } 2336if ${ac_cv_prog_CC+:} false; then : 2337 $as_echo_n "(cached) " >&6 2338else 2339 if test -n "$CC"; then 2340 ac_cv_prog_CC="$CC" # Let the user override the test. 2341else 2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343for as_dir in $PATH 2344do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 for ac_exec_ext in '' $ac_executable_extensions; do 2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2349 ac_cv_prog_CC="${ac_tool_prefix}cc" 2350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2351 break 2 2352 fi 2353done 2354 done 2355IFS=$as_save_IFS 2356 2357fi 2358fi 2359CC=$ac_cv_prog_CC 2360if test -n "$CC"; then 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2362$as_echo "$CC" >&6; } 2363else 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2365$as_echo "no" >&6; } 2366fi 2367 2368 2369 fi 2370fi 2371if test -z "$CC"; then 2372 # Extract the first word of "cc", so it can be a program name with args. 2373set dummy cc; ac_word=$2 2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2375$as_echo_n "checking for $ac_word... " >&6; } 2376if ${ac_cv_prog_CC+:} false; then : 2377 $as_echo_n "(cached) " >&6 2378else 2379 if test -n "$CC"; then 2380 ac_cv_prog_CC="$CC" # Let the user override the test. 2381else 2382 ac_prog_rejected=no 2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2384for as_dir in $PATH 2385do 2386 IFS=$as_save_IFS 2387 test -z "$as_dir" && as_dir=. 2388 for ac_exec_ext in '' $ac_executable_extensions; do 2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2391 ac_prog_rejected=yes 2392 continue 2393 fi 2394 ac_cv_prog_CC="cc" 2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2396 break 2 2397 fi 2398done 2399 done 2400IFS=$as_save_IFS 2401 2402if test $ac_prog_rejected = yes; then 2403 # We found a bogon in the path, so make sure we never use it. 2404 set dummy $ac_cv_prog_CC 2405 shift 2406 if test $# != 0; then 2407 # We chose a different compiler from the bogus one. 2408 # However, it has the same basename, so the bogon will be chosen 2409 # first if we set CC to just the basename; use the full file name. 2410 shift 2411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2412 fi 2413fi 2414fi 2415fi 2416CC=$ac_cv_prog_CC 2417if test -n "$CC"; then 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2419$as_echo "$CC" >&6; } 2420else 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2422$as_echo "no" >&6; } 2423fi 2424 2425 2426fi 2427if test -z "$CC"; then 2428 if test -n "$ac_tool_prefix"; then 2429 for ac_prog in cl.exe 2430 do 2431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2432set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2434$as_echo_n "checking for $ac_word... " >&6; } 2435if ${ac_cv_prog_CC+:} false; then : 2436 $as_echo_n "(cached) " >&6 2437else 2438 if test -n "$CC"; then 2439 ac_cv_prog_CC="$CC" # Let the user override the test. 2440else 2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2442for as_dir in $PATH 2443do 2444 IFS=$as_save_IFS 2445 test -z "$as_dir" && as_dir=. 2446 for ac_exec_ext in '' $ac_executable_extensions; do 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2450 break 2 2451 fi 2452done 2453 done 2454IFS=$as_save_IFS 2455 2456fi 2457fi 2458CC=$ac_cv_prog_CC 2459if test -n "$CC"; then 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2461$as_echo "$CC" >&6; } 2462else 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2464$as_echo "no" >&6; } 2465fi 2466 2467 2468 test -n "$CC" && break 2469 done 2470fi 2471if test -z "$CC"; then 2472 ac_ct_CC=$CC 2473 for ac_prog in cl.exe 2474do 2475 # Extract the first word of "$ac_prog", so it can be a program name with args. 2476set dummy $ac_prog; ac_word=$2 2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2478$as_echo_n "checking for $ac_word... " >&6; } 2479if ${ac_cv_prog_ac_ct_CC+:} false; then : 2480 $as_echo_n "(cached) " >&6 2481else 2482 if test -n "$ac_ct_CC"; then 2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2484else 2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2486for as_dir in $PATH 2487do 2488 IFS=$as_save_IFS 2489 test -z "$as_dir" && as_dir=. 2490 for ac_exec_ext in '' $ac_executable_extensions; do 2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2492 ac_cv_prog_ac_ct_CC="$ac_prog" 2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2494 break 2 2495 fi 2496done 2497 done 2498IFS=$as_save_IFS 2499 2500fi 2501fi 2502ac_ct_CC=$ac_cv_prog_ac_ct_CC 2503if test -n "$ac_ct_CC"; then 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2505$as_echo "$ac_ct_CC" >&6; } 2506else 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2508$as_echo "no" >&6; } 2509fi 2510 2511 2512 test -n "$ac_ct_CC" && break 2513done 2514 2515 if test "x$ac_ct_CC" = x; then 2516 CC="" 2517 else 2518 case $cross_compiling:$ac_tool_warned in 2519yes:) 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2522ac_tool_warned=yes ;; 2523esac 2524 CC=$ac_ct_CC 2525 fi 2526fi 2527 2528fi 2529 2530 2531test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2533as_fn_error $? "no acceptable C compiler found in \$PATH 2534See \`config.log' for more details" "$LINENO" 5; } 2535 2536# Provide some information about the compiler. 2537$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2538set X $ac_compile 2539ac_compiler=$2 2540for ac_option in --version -v -V -qversion; do 2541 { { ac_try="$ac_compiler $ac_option >&5" 2542case "(($ac_try" in 2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2544 *) ac_try_echo=$ac_try;; 2545esac 2546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2547$as_echo "$ac_try_echo"; } >&5 2548 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2549 ac_status=$? 2550 if test -s conftest.err; then 2551 sed '10a\ 2552... rest of stderr output deleted ... 2553 10q' conftest.err >conftest.er1 2554 cat conftest.er1 >&5 2555 fi 2556 rm -f conftest.er1 conftest.err 2557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2558 test $ac_status = 0; } 2559done 2560 2561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2562/* end confdefs.h. */ 2563 2564int 2565main () 2566{ 2567 2568 ; 2569 return 0; 2570} 2571_ACEOF 2572ac_clean_files_save=$ac_clean_files 2573ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2574# Try to create an executable without -o first, disregard a.out. 2575# It will help us diagnose broken compilers, and finding out an intuition 2576# of exeext. 2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2578$as_echo_n "checking whether the C compiler works... " >&6; } 2579ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2580 2581# The possible output files: 2582ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2583 2584ac_rmfiles= 2585for ac_file in $ac_files 2586do 2587 case $ac_file in 2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2589 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2590 esac 2591done 2592rm -f $ac_rmfiles 2593 2594if { { ac_try="$ac_link_default" 2595case "(($ac_try" in 2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2597 *) ac_try_echo=$ac_try;; 2598esac 2599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2600$as_echo "$ac_try_echo"; } >&5 2601 (eval "$ac_link_default") 2>&5 2602 ac_status=$? 2603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2604 test $ac_status = 0; }; then : 2605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2606# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2607# in a Makefile. We should not override ac_cv_exeext if it was cached, 2608# so that the user can short-circuit this test for compilers unknown to 2609# Autoconf. 2610for ac_file in $ac_files '' 2611do 2612 test -f "$ac_file" || continue 2613 case $ac_file in 2614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2615 ;; 2616 [ab].out ) 2617 # We found the default executable, but exeext='' is most 2618 # certainly right. 2619 break;; 2620 *.* ) 2621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2622 then :; else 2623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2624 fi 2625 # We set ac_cv_exeext here because the later test for it is not 2626 # safe: cross compilers may not add the suffix if given an `-o' 2627 # argument, so we may need to know it at that point already. 2628 # Even if this section looks crufty: it has the advantage of 2629 # actually working. 2630 break;; 2631 * ) 2632 break;; 2633 esac 2634done 2635test "$ac_cv_exeext" = no && ac_cv_exeext= 2636 2637else 2638 ac_file='' 2639fi 2640if test -z "$ac_file"; then : 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2642$as_echo "no" >&6; } 2643$as_echo "$as_me: failed program was:" >&5 2644sed 's/^/| /' conftest.$ac_ext >&5 2645 2646{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2648as_fn_error 77 "C compiler cannot create executables 2649See \`config.log' for more details" "$LINENO" 5; } 2650else 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2652$as_echo "yes" >&6; } 2653fi 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2655$as_echo_n "checking for C compiler default output file name... " >&6; } 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2657$as_echo "$ac_file" >&6; } 2658ac_exeext=$ac_cv_exeext 2659 2660rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2661ac_clean_files=$ac_clean_files_save 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2663$as_echo_n "checking for suffix of executables... " >&6; } 2664if { { ac_try="$ac_link" 2665case "(($ac_try" in 2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2667 *) ac_try_echo=$ac_try;; 2668esac 2669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2670$as_echo "$ac_try_echo"; } >&5 2671 (eval "$ac_link") 2>&5 2672 ac_status=$? 2673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2674 test $ac_status = 0; }; then : 2675 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2676# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2677# work properly (i.e., refer to `conftest.exe'), while it won't with 2678# `rm'. 2679for ac_file in conftest.exe conftest conftest.*; do 2680 test -f "$ac_file" || continue 2681 case $ac_file in 2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2684 break;; 2685 * ) break;; 2686 esac 2687done 2688else 2689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2691as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2692See \`config.log' for more details" "$LINENO" 5; } 2693fi 2694rm -f conftest conftest$ac_cv_exeext 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2696$as_echo "$ac_cv_exeext" >&6; } 2697 2698rm -f conftest.$ac_ext 2699EXEEXT=$ac_cv_exeext 2700ac_exeext=$EXEEXT 2701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2702/* end confdefs.h. */ 2703#include <stdio.h> 2704int 2705main () 2706{ 2707FILE *f = fopen ("conftest.out", "w"); 2708 return ferror (f) || fclose (f) != 0; 2709 2710 ; 2711 return 0; 2712} 2713_ACEOF 2714ac_clean_files="$ac_clean_files conftest.out" 2715# Check that the compiler produces executables we can run. If not, either 2716# the compiler is broken, or we cross compile. 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2718$as_echo_n "checking whether we are cross compiling... " >&6; } 2719if test "$cross_compiling" != yes; then 2720 { { ac_try="$ac_link" 2721case "(($ac_try" in 2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2723 *) ac_try_echo=$ac_try;; 2724esac 2725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2726$as_echo "$ac_try_echo"; } >&5 2727 (eval "$ac_link") 2>&5 2728 ac_status=$? 2729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2730 test $ac_status = 0; } 2731 if { ac_try='./conftest$ac_cv_exeext' 2732 { { case "(($ac_try" in 2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2734 *) ac_try_echo=$ac_try;; 2735esac 2736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2737$as_echo "$ac_try_echo"; } >&5 2738 (eval "$ac_try") 2>&5 2739 ac_status=$? 2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2741 test $ac_status = 0; }; }; then 2742 cross_compiling=no 2743 else 2744 if test "$cross_compiling" = maybe; then 2745 cross_compiling=yes 2746 else 2747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2749as_fn_error $? "cannot run C compiled programs. 2750If you meant to cross compile, use \`--host'. 2751See \`config.log' for more details" "$LINENO" 5; } 2752 fi 2753 fi 2754fi 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2756$as_echo "$cross_compiling" >&6; } 2757 2758rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2759ac_clean_files=$ac_clean_files_save 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2761$as_echo_n "checking for suffix of object files... " >&6; } 2762if ${ac_cv_objext+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2766/* end confdefs.h. */ 2767 2768int 2769main () 2770{ 2771 2772 ; 2773 return 0; 2774} 2775_ACEOF 2776rm -f conftest.o conftest.obj 2777if { { ac_try="$ac_compile" 2778case "(($ac_try" in 2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2780 *) ac_try_echo=$ac_try;; 2781esac 2782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2783$as_echo "$ac_try_echo"; } >&5 2784 (eval "$ac_compile") 2>&5 2785 ac_status=$? 2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2787 test $ac_status = 0; }; then : 2788 for ac_file in conftest.o conftest.obj conftest.*; do 2789 test -f "$ac_file" || continue; 2790 case $ac_file in 2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2793 break;; 2794 esac 2795done 2796else 2797 $as_echo "$as_me: failed program was:" >&5 2798sed 's/^/| /' conftest.$ac_ext >&5 2799 2800{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2802as_fn_error $? "cannot compute suffix of object files: cannot compile 2803See \`config.log' for more details" "$LINENO" 5; } 2804fi 2805rm -f conftest.$ac_cv_objext conftest.$ac_ext 2806fi 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2808$as_echo "$ac_cv_objext" >&6; } 2809OBJEXT=$ac_cv_objext 2810ac_objext=$OBJEXT 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2812$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2813if ${ac_cv_c_compiler_gnu+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2817/* end confdefs.h. */ 2818 2819int 2820main () 2821{ 2822#ifndef __GNUC__ 2823 choke me 2824#endif 2825 2826 ; 2827 return 0; 2828} 2829_ACEOF 2830if ac_fn_c_try_compile "$LINENO"; then : 2831 ac_compiler_gnu=yes 2832else 2833 ac_compiler_gnu=no 2834fi 2835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2836ac_cv_c_compiler_gnu=$ac_compiler_gnu 2837 2838fi 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2840$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2841if test $ac_compiler_gnu = yes; then 2842 GCC=yes 2843else 2844 GCC= 2845fi 2846ac_test_CFLAGS=${CFLAGS+set} 2847ac_save_CFLAGS=$CFLAGS 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2849$as_echo_n "checking whether $CC accepts -g... " >&6; } 2850if ${ac_cv_prog_cc_g+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 ac_save_c_werror_flag=$ac_c_werror_flag 2854 ac_c_werror_flag=yes 2855 ac_cv_prog_cc_g=no 2856 CFLAGS="-g" 2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2858/* end confdefs.h. */ 2859 2860int 2861main () 2862{ 2863 2864 ; 2865 return 0; 2866} 2867_ACEOF 2868if ac_fn_c_try_compile "$LINENO"; then : 2869 ac_cv_prog_cc_g=yes 2870else 2871 CFLAGS="" 2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2873/* end confdefs.h. */ 2874 2875int 2876main () 2877{ 2878 2879 ; 2880 return 0; 2881} 2882_ACEOF 2883if ac_fn_c_try_compile "$LINENO"; then : 2884 2885else 2886 ac_c_werror_flag=$ac_save_c_werror_flag 2887 CFLAGS="-g" 2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2889/* end confdefs.h. */ 2890 2891int 2892main () 2893{ 2894 2895 ; 2896 return 0; 2897} 2898_ACEOF 2899if ac_fn_c_try_compile "$LINENO"; then : 2900 ac_cv_prog_cc_g=yes 2901fi 2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2903fi 2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2905fi 2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2907 ac_c_werror_flag=$ac_save_c_werror_flag 2908fi 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2910$as_echo "$ac_cv_prog_cc_g" >&6; } 2911if test "$ac_test_CFLAGS" = set; then 2912 CFLAGS=$ac_save_CFLAGS 2913elif test $ac_cv_prog_cc_g = yes; then 2914 if test "$GCC" = yes; then 2915 CFLAGS="-g -O2" 2916 else 2917 CFLAGS="-g" 2918 fi 2919else 2920 if test "$GCC" = yes; then 2921 CFLAGS="-O2" 2922 else 2923 CFLAGS= 2924 fi 2925fi 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2927$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2928if ${ac_cv_prog_cc_c89+:} false; then : 2929 $as_echo_n "(cached) " >&6 2930else 2931 ac_cv_prog_cc_c89=no 2932ac_save_CC=$CC 2933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2934/* end confdefs.h. */ 2935#include <stdarg.h> 2936#include <stdio.h> 2937#include <sys/types.h> 2938#include <sys/stat.h> 2939/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2940struct buf { int x; }; 2941FILE * (*rcsopen) (struct buf *, struct stat *, int); 2942static char *e (p, i) 2943 char **p; 2944 int i; 2945{ 2946 return p[i]; 2947} 2948static char *f (char * (*g) (char **, int), char **p, ...) 2949{ 2950 char *s; 2951 va_list v; 2952 va_start (v,p); 2953 s = g (p, va_arg (v,int)); 2954 va_end (v); 2955 return s; 2956} 2957 2958/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2959 function prototypes and stuff, but not '\xHH' hex character constants. 2960 These don't provoke an error unfortunately, instead are silently treated 2961 as 'x'. The following induces an error, until -std is added to get 2962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2963 array size at least. It's necessary to write '\x00'==0 to get something 2964 that's true only with -std. */ 2965int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2966 2967/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2968 inside strings and character constants. */ 2969#define FOO(x) 'x' 2970int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2971 2972int test (int i, double x); 2973struct s1 {int (*f) (int a);}; 2974struct s2 {int (*f) (double a);}; 2975int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2976int argc; 2977char **argv; 2978int 2979main () 2980{ 2981return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2982 ; 2983 return 0; 2984} 2985_ACEOF 2986for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2987 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2988do 2989 CC="$ac_save_CC $ac_arg" 2990 if ac_fn_c_try_compile "$LINENO"; then : 2991 ac_cv_prog_cc_c89=$ac_arg 2992fi 2993rm -f core conftest.err conftest.$ac_objext 2994 test "x$ac_cv_prog_cc_c89" != "xno" && break 2995done 2996rm -f conftest.$ac_ext 2997CC=$ac_save_CC 2998 2999fi 3000# AC_CACHE_VAL 3001case "x$ac_cv_prog_cc_c89" in 3002 x) 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3004$as_echo "none needed" >&6; } ;; 3005 xno) 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3007$as_echo "unsupported" >&6; } ;; 3008 *) 3009 CC="$CC $ac_cv_prog_cc_c89" 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3011$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3012esac 3013if test "x$ac_cv_prog_cc_c89" != xno; then : 3014 3015fi 3016 3017ac_ext=c 3018ac_cpp='$CPP $CPPFLAGS' 3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3021ac_compiler_gnu=$ac_cv_c_compiler_gnu 3022 3023 3024ac_ext=c 3025ac_cpp='$CPP $CPPFLAGS' 3026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3028ac_compiler_gnu=$ac_cv_c_compiler_gnu 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3030$as_echo_n "checking how to run the C preprocessor... " >&6; } 3031# On Suns, sometimes $CPP names a directory. 3032if test -n "$CPP" && test -d "$CPP"; then 3033 CPP= 3034fi 3035if test -z "$CPP"; then 3036 if ${ac_cv_prog_CPP+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 # Double quotes because CPP needs to be expanded 3040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3041 do 3042 ac_preproc_ok=false 3043for ac_c_preproc_warn_flag in '' yes 3044do 3045 # Use a header file that comes with gcc, so configuring glibc 3046 # with a fresh cross-compiler works. 3047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3048 # <limits.h> exists even on freestanding compilers. 3049 # On the NeXT, cc -E runs the code through the compiler's parser, 3050 # not just through cpp. "Syntax error" is here to catch this case. 3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3052/* end confdefs.h. */ 3053#ifdef __STDC__ 3054# include <limits.h> 3055#else 3056# include <assert.h> 3057#endif 3058 Syntax error 3059_ACEOF 3060if ac_fn_c_try_cpp "$LINENO"; then : 3061 3062else 3063 # Broken: fails on valid input. 3064continue 3065fi 3066rm -f conftest.err conftest.i conftest.$ac_ext 3067 3068 # OK, works on sane cases. Now check whether nonexistent headers 3069 # can be detected and how. 3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3071/* end confdefs.h. */ 3072#include <ac_nonexistent.h> 3073_ACEOF 3074if ac_fn_c_try_cpp "$LINENO"; then : 3075 # Broken: success on invalid input. 3076continue 3077else 3078 # Passes both tests. 3079ac_preproc_ok=: 3080break 3081fi 3082rm -f conftest.err conftest.i conftest.$ac_ext 3083 3084done 3085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3086rm -f conftest.i conftest.err conftest.$ac_ext 3087if $ac_preproc_ok; then : 3088 break 3089fi 3090 3091 done 3092 ac_cv_prog_CPP=$CPP 3093 3094fi 3095 CPP=$ac_cv_prog_CPP 3096else 3097 ac_cv_prog_CPP=$CPP 3098fi 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3100$as_echo "$CPP" >&6; } 3101ac_preproc_ok=false 3102for ac_c_preproc_warn_flag in '' yes 3103do 3104 # Use a header file that comes with gcc, so configuring glibc 3105 # with a fresh cross-compiler works. 3106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3107 # <limits.h> exists even on freestanding compilers. 3108 # On the NeXT, cc -E runs the code through the compiler's parser, 3109 # not just through cpp. "Syntax error" is here to catch this case. 3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3111/* end confdefs.h. */ 3112#ifdef __STDC__ 3113# include <limits.h> 3114#else 3115# include <assert.h> 3116#endif 3117 Syntax error 3118_ACEOF 3119if ac_fn_c_try_cpp "$LINENO"; then : 3120 3121else 3122 # Broken: fails on valid input. 3123continue 3124fi 3125rm -f conftest.err conftest.i conftest.$ac_ext 3126 3127 # OK, works on sane cases. Now check whether nonexistent headers 3128 # can be detected and how. 3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3130/* end confdefs.h. */ 3131#include <ac_nonexistent.h> 3132_ACEOF 3133if ac_fn_c_try_cpp "$LINENO"; then : 3134 # Broken: success on invalid input. 3135continue 3136else 3137 # Passes both tests. 3138ac_preproc_ok=: 3139break 3140fi 3141rm -f conftest.err conftest.i conftest.$ac_ext 3142 3143done 3144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3145rm -f conftest.i conftest.err conftest.$ac_ext 3146if $ac_preproc_ok; then : 3147 3148else 3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3151as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3152See \`config.log' for more details" "$LINENO" 5; } 3153fi 3154 3155ac_ext=c 3156ac_cpp='$CPP $CPPFLAGS' 3157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3159ac_compiler_gnu=$ac_cv_c_compiler_gnu 3160 3161 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3163$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3164if ${ac_cv_path_GREP+:} false; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 if test -z "$GREP"; then 3168 ac_path_GREP_found=false 3169 # Loop through the user's path and test for each of PROGNAME-LIST 3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3172do 3173 IFS=$as_save_IFS 3174 test -z "$as_dir" && as_dir=. 3175 for ac_prog in grep ggrep; do 3176 for ac_exec_ext in '' $ac_executable_extensions; do 3177 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3178 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3179# Check for GNU ac_path_GREP and select it if it is found. 3180 # Check for GNU $ac_path_GREP 3181case `"$ac_path_GREP" --version 2>&1` in 3182*GNU*) 3183 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3184*) 3185 ac_count=0 3186 $as_echo_n 0123456789 >"conftest.in" 3187 while : 3188 do 3189 cat "conftest.in" "conftest.in" >"conftest.tmp" 3190 mv "conftest.tmp" "conftest.in" 3191 cp "conftest.in" "conftest.nl" 3192 $as_echo 'GREP' >> "conftest.nl" 3193 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3195 as_fn_arith $ac_count + 1 && ac_count=$as_val 3196 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3197 # Best one so far, save it but keep looking for a better one 3198 ac_cv_path_GREP="$ac_path_GREP" 3199 ac_path_GREP_max=$ac_count 3200 fi 3201 # 10*(2^10) chars as input seems more than enough 3202 test $ac_count -gt 10 && break 3203 done 3204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3205esac 3206 3207 $ac_path_GREP_found && break 3 3208 done 3209 done 3210 done 3211IFS=$as_save_IFS 3212 if test -z "$ac_cv_path_GREP"; then 3213 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3214 fi 3215else 3216 ac_cv_path_GREP=$GREP 3217fi 3218 3219fi 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3221$as_echo "$ac_cv_path_GREP" >&6; } 3222 GREP="$ac_cv_path_GREP" 3223 3224 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3226$as_echo_n "checking for egrep... " >&6; } 3227if ${ac_cv_path_EGREP+:} false; then : 3228 $as_echo_n "(cached) " >&6 3229else 3230 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3231 then ac_cv_path_EGREP="$GREP -E" 3232 else 3233 if test -z "$EGREP"; then 3234 ac_path_EGREP_found=false 3235 # Loop through the user's path and test for each of PROGNAME-LIST 3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3237for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3238do 3239 IFS=$as_save_IFS 3240 test -z "$as_dir" && as_dir=. 3241 for ac_prog in egrep; do 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3244 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3245# Check for GNU ac_path_EGREP and select it if it is found. 3246 # Check for GNU $ac_path_EGREP 3247case `"$ac_path_EGREP" --version 2>&1` in 3248*GNU*) 3249 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3250*) 3251 ac_count=0 3252 $as_echo_n 0123456789 >"conftest.in" 3253 while : 3254 do 3255 cat "conftest.in" "conftest.in" >"conftest.tmp" 3256 mv "conftest.tmp" "conftest.in" 3257 cp "conftest.in" "conftest.nl" 3258 $as_echo 'EGREP' >> "conftest.nl" 3259 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3261 as_fn_arith $ac_count + 1 && ac_count=$as_val 3262 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3263 # Best one so far, save it but keep looking for a better one 3264 ac_cv_path_EGREP="$ac_path_EGREP" 3265 ac_path_EGREP_max=$ac_count 3266 fi 3267 # 10*(2^10) chars as input seems more than enough 3268 test $ac_count -gt 10 && break 3269 done 3270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3271esac 3272 3273 $ac_path_EGREP_found && break 3 3274 done 3275 done 3276 done 3277IFS=$as_save_IFS 3278 if test -z "$ac_cv_path_EGREP"; then 3279 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3280 fi 3281else 3282 ac_cv_path_EGREP=$EGREP 3283fi 3284 3285 fi 3286fi 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3288$as_echo "$ac_cv_path_EGREP" >&6; } 3289 EGREP="$ac_cv_path_EGREP" 3290 3291 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3293$as_echo_n "checking for ANSI C header files... " >&6; } 3294if ${ac_cv_header_stdc+:} false; then : 3295 $as_echo_n "(cached) " >&6 3296else 3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299#include <stdlib.h> 3300#include <stdarg.h> 3301#include <string.h> 3302#include <float.h> 3303 3304int 3305main () 3306{ 3307 3308 ; 3309 return 0; 3310} 3311_ACEOF 3312if ac_fn_c_try_compile "$LINENO"; then : 3313 ac_cv_header_stdc=yes 3314else 3315 ac_cv_header_stdc=no 3316fi 3317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3318 3319if test $ac_cv_header_stdc = yes; then 3320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3322/* end confdefs.h. */ 3323#include <string.h> 3324 3325_ACEOF 3326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3327 $EGREP "memchr" >/dev/null 2>&1; then : 3328 3329else 3330 ac_cv_header_stdc=no 3331fi 3332rm -f conftest* 3333 3334fi 3335 3336if test $ac_cv_header_stdc = yes; then 3337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340#include <stdlib.h> 3341 3342_ACEOF 3343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3344 $EGREP "free" >/dev/null 2>&1; then : 3345 3346else 3347 ac_cv_header_stdc=no 3348fi 3349rm -f conftest* 3350 3351fi 3352 3353if test $ac_cv_header_stdc = yes; then 3354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3355 if test "$cross_compiling" = yes; then : 3356 : 3357else 3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3359/* end confdefs.h. */ 3360#include <ctype.h> 3361#include <stdlib.h> 3362#if ((' ' & 0x0FF) == 0x020) 3363# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3364# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3365#else 3366# define ISLOWER(c) \ 3367 (('a' <= (c) && (c) <= 'i') \ 3368 || ('j' <= (c) && (c) <= 'r') \ 3369 || ('s' <= (c) && (c) <= 'z')) 3370# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3371#endif 3372 3373#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3374int 3375main () 3376{ 3377 int i; 3378 for (i = 0; i < 256; i++) 3379 if (XOR (islower (i), ISLOWER (i)) 3380 || toupper (i) != TOUPPER (i)) 3381 return 2; 3382 return 0; 3383} 3384_ACEOF 3385if ac_fn_c_try_run "$LINENO"; then : 3386 3387else 3388 ac_cv_header_stdc=no 3389fi 3390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3391 conftest.$ac_objext conftest.beam conftest.$ac_ext 3392fi 3393 3394fi 3395fi 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3397$as_echo "$ac_cv_header_stdc" >&6; } 3398if test $ac_cv_header_stdc = yes; then 3399 3400$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3401 3402fi 3403 3404# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3406 inttypes.h stdint.h unistd.h 3407do : 3408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3409ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3410" 3411if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3412 cat >>confdefs.h <<_ACEOF 3413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3414_ACEOF 3415 3416fi 3417 3418done 3419 3420 3421 3422 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3423if test "x$ac_cv_header_minix_config_h" = xyes; then : 3424 MINIX=yes 3425else 3426 MINIX= 3427fi 3428 3429 3430 if test "$MINIX" = yes; then 3431 3432$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3433 3434 3435$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3436 3437 3438$as_echo "#define _MINIX 1" >>confdefs.h 3439 3440 fi 3441 3442 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3444$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3445if ${ac_cv_safe_to_define___extensions__+:} false; then : 3446 $as_echo_n "(cached) " >&6 3447else 3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3449/* end confdefs.h. */ 3450 3451# define __EXTENSIONS__ 1 3452 $ac_includes_default 3453int 3454main () 3455{ 3456 3457 ; 3458 return 0; 3459} 3460_ACEOF 3461if ac_fn_c_try_compile "$LINENO"; then : 3462 ac_cv_safe_to_define___extensions__=yes 3463else 3464 ac_cv_safe_to_define___extensions__=no 3465fi 3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3467fi 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3469$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3470 test $ac_cv_safe_to_define___extensions__ = yes && 3471 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3472 3473 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3474 3475 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3476 3477 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3478 3479 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3480 3481 3482 3483# Initialize Automake 3484am__api_version='1.13' 3485 3486ac_aux_dir= 3487for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3488 if test -f "$ac_dir/install-sh"; then 3489 ac_aux_dir=$ac_dir 3490 ac_install_sh="$ac_aux_dir/install-sh -c" 3491 break 3492 elif test -f "$ac_dir/install.sh"; then 3493 ac_aux_dir=$ac_dir 3494 ac_install_sh="$ac_aux_dir/install.sh -c" 3495 break 3496 elif test -f "$ac_dir/shtool"; then 3497 ac_aux_dir=$ac_dir 3498 ac_install_sh="$ac_aux_dir/shtool install -c" 3499 break 3500 fi 3501done 3502if test -z "$ac_aux_dir"; then 3503 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3504fi 3505 3506# These three variables are undocumented and unsupported, 3507# and are intended to be withdrawn in a future Autoconf release. 3508# They can cause serious problems if a builder's source tree is in a directory 3509# whose full name contains unusual characters. 3510ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3511ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3512ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3513 3514 3515# Find a good install program. We prefer a C program (faster), 3516# so one script is as good as another. But avoid the broken or 3517# incompatible versions: 3518# SysV /etc/install, /usr/sbin/install 3519# SunOS /usr/etc/install 3520# IRIX /sbin/install 3521# AIX /bin/install 3522# AmigaOS /C/install, which installs bootblocks on floppy discs 3523# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3524# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3525# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3526# OS/2's system install, which has a completely different semantic 3527# ./install, which can be erroneously created by make from ./install.sh. 3528# Reject install programs that cannot install multiple files. 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3530$as_echo_n "checking for a BSD-compatible install... " >&6; } 3531if test -z "$INSTALL"; then 3532if ${ac_cv_path_install+:} false; then : 3533 $as_echo_n "(cached) " >&6 3534else 3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3536for as_dir in $PATH 3537do 3538 IFS=$as_save_IFS 3539 test -z "$as_dir" && as_dir=. 3540 # Account for people who put trailing slashes in PATH elements. 3541case $as_dir/ in #(( 3542 ./ | .// | /[cC]/* | \ 3543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3545 /usr/ucb/* ) ;; 3546 *) 3547 # OSF1 and SCO ODT 3.0 have their own names for install. 3548 # Don't use installbsd from OSF since it installs stuff as root 3549 # by default. 3550 for ac_prog in ginstall scoinst install; do 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3553 if test $ac_prog = install && 3554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3555 # AIX install. It has an incompatible calling convention. 3556 : 3557 elif test $ac_prog = install && 3558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3559 # program-specific install script used by HP pwplus--don't use. 3560 : 3561 else 3562 rm -rf conftest.one conftest.two conftest.dir 3563 echo one > conftest.one 3564 echo two > conftest.two 3565 mkdir conftest.dir 3566 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3567 test -s conftest.one && test -s conftest.two && 3568 test -s conftest.dir/conftest.one && 3569 test -s conftest.dir/conftest.two 3570 then 3571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3572 break 3 3573 fi 3574 fi 3575 fi 3576 done 3577 done 3578 ;; 3579esac 3580 3581 done 3582IFS=$as_save_IFS 3583 3584rm -rf conftest.one conftest.two conftest.dir 3585 3586fi 3587 if test "${ac_cv_path_install+set}" = set; then 3588 INSTALL=$ac_cv_path_install 3589 else 3590 # As a last resort, use the slow shell script. Don't cache a 3591 # value for INSTALL within a source directory, because that will 3592 # break other packages using the cache if that directory is 3593 # removed, or if the value is a relative name. 3594 INSTALL=$ac_install_sh 3595 fi 3596fi 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3598$as_echo "$INSTALL" >&6; } 3599 3600# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3601# It thinks the first close brace ends the variable substitution. 3602test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3603 3604test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3605 3606test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3607 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3609$as_echo_n "checking whether build environment is sane... " >&6; } 3610# Reject unsafe characters in $srcdir or the absolute working directory 3611# name. Accept space and tab only in the latter. 3612am_lf=' 3613' 3614case `pwd` in 3615 *[\\\"\#\$\&\'\`$am_lf]*) 3616 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3617esac 3618case $srcdir in 3619 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3620 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3621esac 3622 3623# Do 'set' in a subshell so we don't clobber the current shell's 3624# arguments. Must try -L first in case configure is actually a 3625# symlink; some systems play weird games with the mod time of symlinks 3626# (eg FreeBSD returns the mod time of the symlink's containing 3627# directory). 3628if ( 3629 am_has_slept=no 3630 for am_try in 1 2; do 3631 echo "timestamp, slept: $am_has_slept" > conftest.file 3632 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3633 if test "$*" = "X"; then 3634 # -L didn't work. 3635 set X `ls -t "$srcdir/configure" conftest.file` 3636 fi 3637 if test "$*" != "X $srcdir/configure conftest.file" \ 3638 && test "$*" != "X conftest.file $srcdir/configure"; then 3639 3640 # If neither matched, then we have a broken ls. This can happen 3641 # if, for instance, CONFIG_SHELL is bash and it inherits a 3642 # broken ls alias from the environment. This has actually 3643 # happened. Such a system could not be considered "sane". 3644 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3645 alias in your environment" "$LINENO" 5 3646 fi 3647 if test "$2" = conftest.file || test $am_try -eq 2; then 3648 break 3649 fi 3650 # Just in case. 3651 sleep 1 3652 am_has_slept=yes 3653 done 3654 test "$2" = conftest.file 3655 ) 3656then 3657 # Ok. 3658 : 3659else 3660 as_fn_error $? "newly created file is older than distributed files! 3661Check your system clock" "$LINENO" 5 3662fi 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3664$as_echo "yes" >&6; } 3665# If we didn't sleep, we still need to ensure time stamps of config.status and 3666# generated files are strictly newer. 3667am_sleep_pid= 3668if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3669 ( sleep 1 ) & 3670 am_sleep_pid=$! 3671fi 3672 3673rm -f conftest.file 3674 3675test "$program_prefix" != NONE && 3676 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3677# Use a double $ so make ignores it. 3678test "$program_suffix" != NONE && 3679 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3680# Double any \ or $. 3681# By default was `s,x,x', remove it if useless. 3682ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3683program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3684 3685# expand $ac_aux_dir to an absolute path 3686am_aux_dir=`cd $ac_aux_dir && pwd` 3687 3688if test x"${MISSING+set}" != xset; then 3689 case $am_aux_dir in 3690 *\ * | *\ *) 3691 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3692 *) 3693 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3694 esac 3695fi 3696# Use eval to expand $SHELL 3697if eval "$MISSING --is-lightweight"; then 3698 am_missing_run="$MISSING " 3699else 3700 am_missing_run= 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3702$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3703fi 3704 3705if test x"${install_sh}" != xset; then 3706 case $am_aux_dir in 3707 *\ * | *\ *) 3708 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3709 *) 3710 install_sh="\${SHELL} $am_aux_dir/install-sh" 3711 esac 3712fi 3713 3714# Installed binaries are usually stripped using 'strip' when the user 3715# run "make install-strip". However 'strip' might not be the right 3716# tool to use in cross-compilation environments, therefore Automake 3717# will honor the 'STRIP' environment variable to overrule this program. 3718if test "$cross_compiling" != no; then 3719 if test -n "$ac_tool_prefix"; then 3720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3721set dummy ${ac_tool_prefix}strip; ac_word=$2 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3723$as_echo_n "checking for $ac_word... " >&6; } 3724if ${ac_cv_prog_STRIP+:} false; then : 3725 $as_echo_n "(cached) " >&6 3726else 3727 if test -n "$STRIP"; then 3728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3729else 3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3731for as_dir in $PATH 3732do 3733 IFS=$as_save_IFS 3734 test -z "$as_dir" && as_dir=. 3735 for ac_exec_ext in '' $ac_executable_extensions; do 3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3737 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3739 break 2 3740 fi 3741done 3742 done 3743IFS=$as_save_IFS 3744 3745fi 3746fi 3747STRIP=$ac_cv_prog_STRIP 3748if test -n "$STRIP"; then 3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3750$as_echo "$STRIP" >&6; } 3751else 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753$as_echo "no" >&6; } 3754fi 3755 3756 3757fi 3758if test -z "$ac_cv_prog_STRIP"; then 3759 ac_ct_STRIP=$STRIP 3760 # Extract the first word of "strip", so it can be a program name with args. 3761set dummy strip; ac_word=$2 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3763$as_echo_n "checking for $ac_word... " >&6; } 3764if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3765 $as_echo_n "(cached) " >&6 3766else 3767 if test -n "$ac_ct_STRIP"; then 3768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3769else 3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771for as_dir in $PATH 3772do 3773 IFS=$as_save_IFS 3774 test -z "$as_dir" && as_dir=. 3775 for ac_exec_ext in '' $ac_executable_extensions; do 3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3777 ac_cv_prog_ac_ct_STRIP="strip" 3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3779 break 2 3780 fi 3781done 3782 done 3783IFS=$as_save_IFS 3784 3785fi 3786fi 3787ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3788if test -n "$ac_ct_STRIP"; then 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3790$as_echo "$ac_ct_STRIP" >&6; } 3791else 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793$as_echo "no" >&6; } 3794fi 3795 3796 if test "x$ac_ct_STRIP" = x; then 3797 STRIP=":" 3798 else 3799 case $cross_compiling:$ac_tool_warned in 3800yes:) 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3803ac_tool_warned=yes ;; 3804esac 3805 STRIP=$ac_ct_STRIP 3806 fi 3807else 3808 STRIP="$ac_cv_prog_STRIP" 3809fi 3810 3811fi 3812INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3813 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3815$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3816if test -z "$MKDIR_P"; then 3817 if ${ac_cv_path_mkdir+:} false; then : 3818 $as_echo_n "(cached) " >&6 3819else 3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3821for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3822do 3823 IFS=$as_save_IFS 3824 test -z "$as_dir" && as_dir=. 3825 for ac_prog in mkdir gmkdir; do 3826 for ac_exec_ext in '' $ac_executable_extensions; do 3827 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3828 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3829 'mkdir (GNU coreutils) '* | \ 3830 'mkdir (coreutils) '* | \ 3831 'mkdir (fileutils) '4.1*) 3832 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3833 break 3;; 3834 esac 3835 done 3836 done 3837 done 3838IFS=$as_save_IFS 3839 3840fi 3841 3842 test -d ./--version && rmdir ./--version 3843 if test "${ac_cv_path_mkdir+set}" = set; then 3844 MKDIR_P="$ac_cv_path_mkdir -p" 3845 else 3846 # As a last resort, use the slow shell script. Don't cache a 3847 # value for MKDIR_P within a source directory, because that will 3848 # break other packages using the cache if that directory is 3849 # removed, or if the value is a relative name. 3850 MKDIR_P="$ac_install_sh -d" 3851 fi 3852fi 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3854$as_echo "$MKDIR_P" >&6; } 3855 3856for ac_prog in gawk mawk nawk awk 3857do 3858 # Extract the first word of "$ac_prog", so it can be a program name with args. 3859set dummy $ac_prog; ac_word=$2 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3861$as_echo_n "checking for $ac_word... " >&6; } 3862if ${ac_cv_prog_AWK+:} false; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 if test -n "$AWK"; then 3866 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3875 ac_cv_prog_AWK="$ac_prog" 3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3877 break 2 3878 fi 3879done 3880 done 3881IFS=$as_save_IFS 3882 3883fi 3884fi 3885AWK=$ac_cv_prog_AWK 3886if test -n "$AWK"; then 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3888$as_echo "$AWK" >&6; } 3889else 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3891$as_echo "no" >&6; } 3892fi 3893 3894 3895 test -n "$AWK" && break 3896done 3897 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3899$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3900set x ${MAKE-make} 3901ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3902if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3903 $as_echo_n "(cached) " >&6 3904else 3905 cat >conftest.make <<\_ACEOF 3906SHELL = /bin/sh 3907all: 3908 @echo '@@@%%%=$(MAKE)=@@@%%%' 3909_ACEOF 3910# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3911case `${MAKE-make} -f conftest.make 2>/dev/null` in 3912 *@@@%%%=?*=@@@%%%*) 3913 eval ac_cv_prog_make_${ac_make}_set=yes;; 3914 *) 3915 eval ac_cv_prog_make_${ac_make}_set=no;; 3916esac 3917rm -f conftest.make 3918fi 3919if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3921$as_echo "yes" >&6; } 3922 SET_MAKE= 3923else 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3925$as_echo "no" >&6; } 3926 SET_MAKE="MAKE=${MAKE-make}" 3927fi 3928 3929rm -rf .tst 2>/dev/null 3930mkdir .tst 2>/dev/null 3931if test -d .tst; then 3932 am__leading_dot=. 3933else 3934 am__leading_dot=_ 3935fi 3936rmdir .tst 2>/dev/null 3937 3938DEPDIR="${am__leading_dot}deps" 3939 3940ac_config_commands="$ac_config_commands depfiles" 3941 3942 3943am_make=${MAKE-make} 3944cat > confinc << 'END' 3945am__doit: 3946 @echo this is the am__doit target 3947.PHONY: am__doit 3948END 3949# If we don't find an include directive, just comment out the code. 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3951$as_echo_n "checking for style of include used by $am_make... " >&6; } 3952am__include="#" 3953am__quote= 3954_am_result=none 3955# First try GNU make style include. 3956echo "include confinc" > confmf 3957# Ignore all kinds of additional output from 'make'. 3958case `$am_make -s -f confmf 2> /dev/null` in #( 3959*the\ am__doit\ target*) 3960 am__include=include 3961 am__quote= 3962 _am_result=GNU 3963 ;; 3964esac 3965# Now try BSD make style include. 3966if test "$am__include" = "#"; then 3967 echo '.include "confinc"' > confmf 3968 case `$am_make -s -f confmf 2> /dev/null` in #( 3969 *the\ am__doit\ target*) 3970 am__include=.include 3971 am__quote="\"" 3972 _am_result=BSD 3973 ;; 3974 esac 3975fi 3976 3977 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3979$as_echo "$_am_result" >&6; } 3980rm -f confinc confmf 3981 3982# Check whether --enable-dependency-tracking was given. 3983if test "${enable_dependency_tracking+set}" = set; then : 3984 enableval=$enable_dependency_tracking; 3985fi 3986 3987if test "x$enable_dependency_tracking" != xno; then 3988 am_depcomp="$ac_aux_dir/depcomp" 3989 AMDEPBACKSLASH='\' 3990 am__nodep='_no' 3991fi 3992 if test "x$enable_dependency_tracking" != xno; then 3993 AMDEP_TRUE= 3994 AMDEP_FALSE='#' 3995else 3996 AMDEP_TRUE='#' 3997 AMDEP_FALSE= 3998fi 3999 4000 4001# Check whether --enable-silent-rules was given. 4002if test "${enable_silent_rules+set}" = set; then : 4003 enableval=$enable_silent_rules; 4004fi 4005 4006case $enable_silent_rules in # ((( 4007 yes) AM_DEFAULT_VERBOSITY=0;; 4008 no) AM_DEFAULT_VERBOSITY=1;; 4009 *) AM_DEFAULT_VERBOSITY=1;; 4010esac 4011am_make=${MAKE-make} 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4013$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4014if ${am_cv_make_support_nested_variables+:} false; then : 4015 $as_echo_n "(cached) " >&6 4016else 4017 if $as_echo 'TRUE=$(BAR$(V)) 4018BAR0=false 4019BAR1=true 4020V=1 4021am__doit: 4022 @$(TRUE) 4023.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4024 am_cv_make_support_nested_variables=yes 4025else 4026 am_cv_make_support_nested_variables=no 4027fi 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4030$as_echo "$am_cv_make_support_nested_variables" >&6; } 4031if test $am_cv_make_support_nested_variables = yes; then 4032 AM_V='$(V)' 4033 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4034else 4035 AM_V=$AM_DEFAULT_VERBOSITY 4036 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4037fi 4038AM_BACKSLASH='\' 4039 4040if test "`cd $srcdir && pwd`" != "`pwd`"; then 4041 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4042 # is not polluted with repeated "-I." 4043 am__isrc=' -I$(srcdir)' 4044 # test to see if srcdir already configured 4045 if test -f $srcdir/config.status; then 4046 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4047 fi 4048fi 4049 4050# test whether we have cygpath 4051if test -z "$CYGPATH_W"; then 4052 if (cygpath --version) >/dev/null 2>/dev/null; then 4053 CYGPATH_W='cygpath -w' 4054 else 4055 CYGPATH_W=echo 4056 fi 4057fi 4058 4059 4060# Define the identity of the package. 4061 PACKAGE='xrefresh' 4062 VERSION='1.0.5' 4063 4064 4065cat >>confdefs.h <<_ACEOF 4066#define PACKAGE "$PACKAGE" 4067_ACEOF 4068 4069 4070cat >>confdefs.h <<_ACEOF 4071#define VERSION "$VERSION" 4072_ACEOF 4073 4074# Some tools Automake needs. 4075 4076ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4077 4078 4079AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4080 4081 4082AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4083 4084 4085AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4086 4087 4088MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4089 4090# For better backward compatibility. To be removed once Automake 1.9.x 4091# dies out for good. For more background, see: 4092# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4093# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4094mkdir_p='$(MKDIR_P)' 4095 4096# We need awk for the "check" target. The system "awk" is bad on 4097# some platforms. 4098# Always define AMTAR for backward compatibility. Yes, it's still used 4099# in the wild :-( We should find a proper way to deprecate it ... 4100AMTAR='$${TAR-tar}' 4101 4102 4103# We'll loop over all known methods to create a tar archive until one works. 4104_am_tools='gnutar pax cpio none' 4105 4106am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4107 4108 4109 4110 4111 4112depcc="$CC" am_compiler_list= 4113 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4115$as_echo_n "checking dependency style of $depcc... " >&6; } 4116if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4117 $as_echo_n "(cached) " >&6 4118else 4119 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4120 # We make a subdir and do the tests there. Otherwise we can end up 4121 # making bogus files that we don't know about and never remove. For 4122 # instance it was reported that on HP-UX the gcc test will end up 4123 # making a dummy file named 'D' -- because '-MD' means "put the output 4124 # in D". 4125 rm -rf conftest.dir 4126 mkdir conftest.dir 4127 # Copy depcomp to subdir because otherwise we won't find it if we're 4128 # using a relative directory. 4129 cp "$am_depcomp" conftest.dir 4130 cd conftest.dir 4131 # We will build objects and dependencies in a subdirectory because 4132 # it helps to detect inapplicable dependency modes. For instance 4133 # both Tru64's cc and ICC support -MD to output dependencies as a 4134 # side effect of compilation, but ICC will put the dependencies in 4135 # the current directory while Tru64 will put them in the object 4136 # directory. 4137 mkdir sub 4138 4139 am_cv_CC_dependencies_compiler_type=none 4140 if test "$am_compiler_list" = ""; then 4141 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4142 fi 4143 am__universal=false 4144 case " $depcc " in #( 4145 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4146 esac 4147 4148 for depmode in $am_compiler_list; do 4149 # Setup a source with many dependencies, because some compilers 4150 # like to wrap large dependency lists on column 80 (with \), and 4151 # we should not choose a depcomp mode which is confused by this. 4152 # 4153 # We need to recreate these files for each test, as the compiler may 4154 # overwrite some of them when testing with obscure command lines. 4155 # This happens at least with the AIX C compiler. 4156 : > sub/conftest.c 4157 for i in 1 2 3 4 5 6; do 4158 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4159 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4160 # Solaris 10 /bin/sh. 4161 echo '/* dummy */' > sub/conftst$i.h 4162 done 4163 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4164 4165 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4166 # mode. It turns out that the SunPro C++ compiler does not properly 4167 # handle '-M -o', and we need to detect this. Also, some Intel 4168 # versions had trouble with output in subdirs. 4169 am__obj=sub/conftest.${OBJEXT-o} 4170 am__minus_obj="-o $am__obj" 4171 case $depmode in 4172 gcc) 4173 # This depmode causes a compiler race in universal mode. 4174 test "$am__universal" = false || continue 4175 ;; 4176 nosideeffect) 4177 # After this tag, mechanisms are not by side-effect, so they'll 4178 # only be used when explicitly requested. 4179 if test "x$enable_dependency_tracking" = xyes; then 4180 continue 4181 else 4182 break 4183 fi 4184 ;; 4185 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4186 # This compiler won't grok '-c -o', but also, the minuso test has 4187 # not run yet. These depmodes are late enough in the game, and 4188 # so weak that their functioning should not be impacted. 4189 am__obj=conftest.${OBJEXT-o} 4190 am__minus_obj= 4191 ;; 4192 none) break ;; 4193 esac 4194 if depmode=$depmode \ 4195 source=sub/conftest.c object=$am__obj \ 4196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4197 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4198 >/dev/null 2>conftest.err && 4199 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4201 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4203 # icc doesn't choke on unknown options, it will just issue warnings 4204 # or remarks (even with -Werror). So we grep stderr for any message 4205 # that says an option was ignored or not supported. 4206 # When given -MP, icc 7.0 and 7.1 complain thusly: 4207 # icc: Command line warning: ignoring option '-M'; no argument required 4208 # The diagnosis changed in icc 8.0: 4209 # icc: Command line remark: option '-MP' not supported 4210 if (grep 'ignoring option' conftest.err || 4211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4212 am_cv_CC_dependencies_compiler_type=$depmode 4213 break 4214 fi 4215 fi 4216 done 4217 4218 cd .. 4219 rm -rf conftest.dir 4220else 4221 am_cv_CC_dependencies_compiler_type=none 4222fi 4223 4224fi 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4226$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4227CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4228 4229 if 4230 test "x$enable_dependency_tracking" != xno \ 4231 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4232 am__fastdepCC_TRUE= 4233 am__fastdepCC_FALSE='#' 4234else 4235 am__fastdepCC_TRUE='#' 4236 am__fastdepCC_FALSE= 4237fi 4238 4239 4240 4241 4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4243$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4244 # Check whether --enable-maintainer-mode was given. 4245if test "${enable_maintainer_mode+set}" = set; then : 4246 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4247else 4248 USE_MAINTAINER_MODE=no 4249fi 4250 4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4252$as_echo "$USE_MAINTAINER_MODE" >&6; } 4253 if test $USE_MAINTAINER_MODE = yes; then 4254 MAINTAINER_MODE_TRUE= 4255 MAINTAINER_MODE_FALSE='#' 4256else 4257 MAINTAINER_MODE_TRUE='#' 4258 MAINTAINER_MODE_FALSE= 4259fi 4260 4261 MAINT=$MAINTAINER_MODE_TRUE 4262 4263 4264 4265# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4278$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4279if ${ac_cv_prog_cc_c99+:} false; then : 4280 $as_echo_n "(cached) " >&6 4281else 4282 ac_cv_prog_cc_c99=no 4283ac_save_CC=$CC 4284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286#include <stdarg.h> 4287#include <stdbool.h> 4288#include <stdlib.h> 4289#include <wchar.h> 4290#include <stdio.h> 4291 4292// Check varargs macros. These examples are taken from C99 6.10.3.5. 4293#define debug(...) fprintf (stderr, __VA_ARGS__) 4294#define showlist(...) puts (#__VA_ARGS__) 4295#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4296static void 4297test_varargs_macros (void) 4298{ 4299 int x = 1234; 4300 int y = 5678; 4301 debug ("Flag"); 4302 debug ("X = %d\n", x); 4303 showlist (The first, second, and third items.); 4304 report (x>y, "x is %d but y is %d", x, y); 4305} 4306 4307// Check long long types. 4308#define BIG64 18446744073709551615ull 4309#define BIG32 4294967295ul 4310#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4311#if !BIG_OK 4312 your preprocessor is broken; 4313#endif 4314#if BIG_OK 4315#else 4316 your preprocessor is broken; 4317#endif 4318static long long int bignum = -9223372036854775807LL; 4319static unsigned long long int ubignum = BIG64; 4320 4321struct incomplete_array 4322{ 4323 int datasize; 4324 double data[]; 4325}; 4326 4327struct named_init { 4328 int number; 4329 const wchar_t *name; 4330 double average; 4331}; 4332 4333typedef const char *ccp; 4334 4335static inline int 4336test_restrict (ccp restrict text) 4337{ 4338 // See if C++-style comments work. 4339 // Iterate through items via the restricted pointer. 4340 // Also check for declarations in for loops. 4341 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4342 continue; 4343 return 0; 4344} 4345 4346// Check varargs and va_copy. 4347static void 4348test_varargs (const char *format, ...) 4349{ 4350 va_list args; 4351 va_start (args, format); 4352 va_list args_copy; 4353 va_copy (args_copy, args); 4354 4355 const char *str; 4356 int number; 4357 float fnumber; 4358 4359 while (*format) 4360 { 4361 switch (*format++) 4362 { 4363 case 's': // string 4364 str = va_arg (args_copy, const char *); 4365 break; 4366 case 'd': // int 4367 number = va_arg (args_copy, int); 4368 break; 4369 case 'f': // float 4370 fnumber = va_arg (args_copy, double); 4371 break; 4372 default: 4373 break; 4374 } 4375 } 4376 va_end (args_copy); 4377 va_end (args); 4378} 4379 4380int 4381main () 4382{ 4383 4384 // Check bool. 4385 _Bool success = false; 4386 4387 // Check restrict. 4388 if (test_restrict ("String literal") == 0) 4389 success = true; 4390 char *restrict newvar = "Another string"; 4391 4392 // Check varargs. 4393 test_varargs ("s, d' f .", "string", 65, 34.234); 4394 test_varargs_macros (); 4395 4396 // Check flexible array members. 4397 struct incomplete_array *ia = 4398 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4399 ia->datasize = 10; 4400 for (int i = 0; i < ia->datasize; ++i) 4401 ia->data[i] = i * 1.234; 4402 4403 // Check named initializers. 4404 struct named_init ni = { 4405 .number = 34, 4406 .name = L"Test wide string", 4407 .average = 543.34343, 4408 }; 4409 4410 ni.number = 58; 4411 4412 int dynamic_array[ni.number]; 4413 dynamic_array[ni.number - 1] = 543; 4414 4415 // work around unused variable warnings 4416 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4417 || dynamic_array[ni.number - 1] != 543); 4418 4419 ; 4420 return 0; 4421} 4422_ACEOF 4423for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4424do 4425 CC="$ac_save_CC $ac_arg" 4426 if ac_fn_c_try_compile "$LINENO"; then : 4427 ac_cv_prog_cc_c99=$ac_arg 4428fi 4429rm -f core conftest.err conftest.$ac_objext 4430 test "x$ac_cv_prog_cc_c99" != "xno" && break 4431done 4432rm -f conftest.$ac_ext 4433CC=$ac_save_CC 4434 4435fi 4436# AC_CACHE_VAL 4437case "x$ac_cv_prog_cc_c99" in 4438 x) 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4440$as_echo "none needed" >&6; } ;; 4441 xno) 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4443$as_echo "unsupported" >&6; } ;; 4444 *) 4445 CC="$CC $ac_cv_prog_cc_c99" 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4447$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4448esac 4449if test "x$ac_cv_prog_cc_c99" != xno; then : 4450 4451fi 4452 4453 4454 4455 4456 4457 4458ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4459if test "x$ac_cv_have_decl___clang__" = xyes; then : 4460 CLANGCC="yes" 4461else 4462 CLANGCC="no" 4463fi 4464 4465ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4466if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4467 INTELCC="yes" 4468else 4469 INTELCC="no" 4470fi 4471 4472ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4473if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4474 SUNCC="yes" 4475else 4476 SUNCC="no" 4477fi 4478 4479 4480 4481 4482if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4483 if test -n "$ac_tool_prefix"; then 4484 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4485set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4487$as_echo_n "checking for $ac_word... " >&6; } 4488if ${ac_cv_path_PKG_CONFIG+:} false; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 case $PKG_CONFIG in 4492 [\\/]* | ?:[\\/]*) 4493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4494 ;; 4495 *) 4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4497for as_dir in $PATH 4498do 4499 IFS=$as_save_IFS 4500 test -z "$as_dir" && as_dir=. 4501 for ac_exec_ext in '' $ac_executable_extensions; do 4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4503 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4505 break 2 4506 fi 4507done 4508 done 4509IFS=$as_save_IFS 4510 4511 ;; 4512esac 4513fi 4514PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4515if test -n "$PKG_CONFIG"; then 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4517$as_echo "$PKG_CONFIG" >&6; } 4518else 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4520$as_echo "no" >&6; } 4521fi 4522 4523 4524fi 4525if test -z "$ac_cv_path_PKG_CONFIG"; then 4526 ac_pt_PKG_CONFIG=$PKG_CONFIG 4527 # Extract the first word of "pkg-config", so it can be a program name with args. 4528set dummy pkg-config; ac_word=$2 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4530$as_echo_n "checking for $ac_word... " >&6; } 4531if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 case $ac_pt_PKG_CONFIG in 4535 [\\/]* | ?:[\\/]*) 4536 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4537 ;; 4538 *) 4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4540for as_dir in $PATH 4541do 4542 IFS=$as_save_IFS 4543 test -z "$as_dir" && as_dir=. 4544 for ac_exec_ext in '' $ac_executable_extensions; do 4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4546 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4548 break 2 4549 fi 4550done 4551 done 4552IFS=$as_save_IFS 4553 4554 ;; 4555esac 4556fi 4557ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4558if test -n "$ac_pt_PKG_CONFIG"; then 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4560$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4561else 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4563$as_echo "no" >&6; } 4564fi 4565 4566 if test "x$ac_pt_PKG_CONFIG" = x; then 4567 PKG_CONFIG="" 4568 else 4569 case $cross_compiling:$ac_tool_warned in 4570yes:) 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4573ac_tool_warned=yes ;; 4574esac 4575 PKG_CONFIG=$ac_pt_PKG_CONFIG 4576 fi 4577else 4578 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4579fi 4580 4581fi 4582if test -n "$PKG_CONFIG"; then 4583 _pkg_min_version=0.9.0 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4585$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4586 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4588$as_echo "yes" >&6; } 4589 else 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4591$as_echo "no" >&6; } 4592 PKG_CONFIG="" 4593 fi 4594 4595fi 4596# Make sure we can run config.sub. 4597$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4598 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4599 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4601$as_echo_n "checking build system type... " >&6; } 4602if ${ac_cv_build+:} false; then : 4603 $as_echo_n "(cached) " >&6 4604else 4605 ac_build_alias=$build_alias 4606test "x$ac_build_alias" = x && 4607 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4608test "x$ac_build_alias" = x && 4609 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4610ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4612 4613fi 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4615$as_echo "$ac_cv_build" >&6; } 4616case $ac_cv_build in 4617*-*-*) ;; 4618*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4619esac 4620build=$ac_cv_build 4621ac_save_IFS=$IFS; IFS='-' 4622set x $ac_cv_build 4623shift 4624build_cpu=$1 4625build_vendor=$2 4626shift; shift 4627# Remember, the first character of IFS is used to create $*, 4628# except with old shells: 4629build_os=$* 4630IFS=$ac_save_IFS 4631case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4632 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4635$as_echo_n "checking host system type... " >&6; } 4636if ${ac_cv_host+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if test "x$host_alias" = x; then 4640 ac_cv_host=$ac_cv_build 4641else 4642 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4644fi 4645 4646fi 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4648$as_echo "$ac_cv_host" >&6; } 4649case $ac_cv_host in 4650*-*-*) ;; 4651*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4652esac 4653host=$ac_cv_host 4654ac_save_IFS=$IFS; IFS='-' 4655set x $ac_cv_host 4656shift 4657host_cpu=$1 4658host_vendor=$2 4659shift; shift 4660# Remember, the first character of IFS is used to create $*, 4661# except with old shells: 4662host_os=$* 4663IFS=$ac_save_IFS 4664case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4665 4666 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4668$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4669if ${ac_cv_path_SED+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4673 for ac_i in 1 2 3 4 5 6 7; do 4674 ac_script="$ac_script$as_nl$ac_script" 4675 done 4676 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4677 { ac_script=; unset ac_script;} 4678 if test -z "$SED"; then 4679 ac_path_SED_found=false 4680 # Loop through the user's path and test for each of PROGNAME-LIST 4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4682for as_dir in $PATH 4683do 4684 IFS=$as_save_IFS 4685 test -z "$as_dir" && as_dir=. 4686 for ac_prog in sed gsed; do 4687 for ac_exec_ext in '' $ac_executable_extensions; do 4688 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4689 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4690# Check for GNU ac_path_SED and select it if it is found. 4691 # Check for GNU $ac_path_SED 4692case `"$ac_path_SED" --version 2>&1` in 4693*GNU*) 4694 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4695*) 4696 ac_count=0 4697 $as_echo_n 0123456789 >"conftest.in" 4698 while : 4699 do 4700 cat "conftest.in" "conftest.in" >"conftest.tmp" 4701 mv "conftest.tmp" "conftest.in" 4702 cp "conftest.in" "conftest.nl" 4703 $as_echo '' >> "conftest.nl" 4704 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4706 as_fn_arith $ac_count + 1 && ac_count=$as_val 4707 if test $ac_count -gt ${ac_path_SED_max-0}; then 4708 # Best one so far, save it but keep looking for a better one 4709 ac_cv_path_SED="$ac_path_SED" 4710 ac_path_SED_max=$ac_count 4711 fi 4712 # 10*(2^10) chars as input seems more than enough 4713 test $ac_count -gt 10 && break 4714 done 4715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4716esac 4717 4718 $ac_path_SED_found && break 3 4719 done 4720 done 4721 done 4722IFS=$as_save_IFS 4723 if test -z "$ac_cv_path_SED"; then 4724 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4725 fi 4726else 4727 ac_cv_path_SED=$SED 4728fi 4729 4730fi 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4732$as_echo "$ac_cv_path_SED" >&6; } 4733 SED="$ac_cv_path_SED" 4734 rm -f conftest.sed 4735 4736 4737 4738 4739 4740 4741# Check whether --enable-selective-werror was given. 4742if test "${enable_selective_werror+set}" = set; then : 4743 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4744else 4745 SELECTIVE_WERROR=yes 4746fi 4747 4748 4749 4750 4751 4752# -v is too short to test reliably with XORG_TESTSET_CFLAG 4753if test "x$SUNCC" = "xyes"; then 4754 BASE_CFLAGS="-v" 4755else 4756 BASE_CFLAGS="" 4757fi 4758 4759# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773xorg_testset_save_CFLAGS="$CFLAGS" 4774 4775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4780 $as_echo_n "(cached) " >&6 4781else 4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4783/* end confdefs.h. */ 4784int i; 4785_ACEOF 4786if ac_fn_c_try_compile "$LINENO"; then : 4787 xorg_cv_cc_flag_unknown_warning_option=yes 4788else 4789 xorg_cv_cc_flag_unknown_warning_option=no 4790fi 4791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4792fi 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4796 CFLAGS="$xorg_testset_save_CFLAGS" 4797fi 4798 4799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4802 fi 4803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4807 $as_echo_n "(cached) " >&6 4808else 4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4810/* end confdefs.h. */ 4811int i; 4812_ACEOF 4813if ac_fn_c_try_compile "$LINENO"; then : 4814 xorg_cv_cc_flag_unused_command_line_argument=yes 4815else 4816 xorg_cv_cc_flag_unused_command_line_argument=no 4817fi 4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4819fi 4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4823 CFLAGS="$xorg_testset_save_CFLAGS" 4824fi 4825 4826found="no" 4827 4828 if test $found = "no" ; then 4829 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4831 fi 4832 4833 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4835 fi 4836 4837 CFLAGS="$CFLAGS -Wall" 4838 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4840$as_echo_n "checking if $CC supports -Wall... " >&6; } 4841 cacheid=xorg_cv_cc_flag__Wall 4842 if eval \${$cacheid+:} false; then : 4843 $as_echo_n "(cached) " >&6 4844else 4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4846/* end confdefs.h. */ 4847int i; 4848int 4849main () 4850{ 4851 4852 ; 4853 return 0; 4854} 4855_ACEOF 4856if ac_fn_c_try_link "$LINENO"; then : 4857 eval $cacheid=yes 4858else 4859 eval $cacheid=no 4860fi 4861rm -f core conftest.err conftest.$ac_objext \ 4862 conftest$ac_exeext conftest.$ac_ext 4863fi 4864 4865 4866 CFLAGS="$xorg_testset_save_CFLAGS" 4867 4868 eval supported=\$$cacheid 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4870$as_echo "$supported" >&6; } 4871 if test "$supported" = "yes" ; then 4872 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4873 found="yes" 4874 fi 4875 fi 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891xorg_testset_save_CFLAGS="$CFLAGS" 4892 4893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901/* end confdefs.h. */ 4902int i; 4903_ACEOF 4904if ac_fn_c_try_compile "$LINENO"; then : 4905 xorg_cv_cc_flag_unknown_warning_option=yes 4906else 4907 xorg_cv_cc_flag_unknown_warning_option=no 4908fi 4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4910fi 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4914 CFLAGS="$xorg_testset_save_CFLAGS" 4915fi 4916 4917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4920 fi 4921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4928/* end confdefs.h. */ 4929int i; 4930_ACEOF 4931if ac_fn_c_try_compile "$LINENO"; then : 4932 xorg_cv_cc_flag_unused_command_line_argument=yes 4933else 4934 xorg_cv_cc_flag_unused_command_line_argument=no 4935fi 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4941 CFLAGS="$xorg_testset_save_CFLAGS" 4942fi 4943 4944found="no" 4945 4946 if test $found = "no" ; then 4947 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4949 fi 4950 4951 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4953 fi 4954 4955 CFLAGS="$CFLAGS -Wpointer-arith" 4956 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4958$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4959 cacheid=xorg_cv_cc_flag__Wpointer_arith 4960 if eval \${$cacheid+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964/* end confdefs.h. */ 4965int i; 4966int 4967main () 4968{ 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974if ac_fn_c_try_link "$LINENO"; then : 4975 eval $cacheid=yes 4976else 4977 eval $cacheid=no 4978fi 4979rm -f core conftest.err conftest.$ac_objext \ 4980 conftest$ac_exeext conftest.$ac_ext 4981fi 4982 4983 4984 CFLAGS="$xorg_testset_save_CFLAGS" 4985 4986 eval supported=\$$cacheid 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4988$as_echo "$supported" >&6; } 4989 if test "$supported" = "yes" ; then 4990 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4991 found="yes" 4992 fi 4993 fi 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009xorg_testset_save_CFLAGS="$CFLAGS" 5010 5011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020int i; 5021_ACEOF 5022if ac_fn_c_try_compile "$LINENO"; then : 5023 xorg_cv_cc_flag_unknown_warning_option=yes 5024else 5025 xorg_cv_cc_flag_unknown_warning_option=no 5026fi 5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5028fi 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5032 CFLAGS="$xorg_testset_save_CFLAGS" 5033fi 5034 5035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 fi 5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046/* end confdefs.h. */ 5047int i; 5048_ACEOF 5049if ac_fn_c_try_compile "$LINENO"; then : 5050 xorg_cv_cc_flag_unused_command_line_argument=yes 5051else 5052 xorg_cv_cc_flag_unused_command_line_argument=no 5053fi 5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060fi 5061 5062found="no" 5063 5064 if test $found = "no" ; then 5065 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5067 fi 5068 5069 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5071 fi 5072 5073 CFLAGS="$CFLAGS -Wmissing-declarations" 5074 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5076$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5077 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5078 if eval \${$cacheid+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082/* end confdefs.h. */ 5083int i; 5084int 5085main () 5086{ 5087 5088 ; 5089 return 0; 5090} 5091_ACEOF 5092if ac_fn_c_try_link "$LINENO"; then : 5093 eval $cacheid=yes 5094else 5095 eval $cacheid=no 5096fi 5097rm -f core conftest.err conftest.$ac_objext \ 5098 conftest$ac_exeext conftest.$ac_ext 5099fi 5100 5101 5102 CFLAGS="$xorg_testset_save_CFLAGS" 5103 5104 eval supported=\$$cacheid 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5106$as_echo "$supported" >&6; } 5107 if test "$supported" = "yes" ; then 5108 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5109 found="yes" 5110 fi 5111 fi 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127xorg_testset_save_CFLAGS="$CFLAGS" 5128 5129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5137/* end confdefs.h. */ 5138int i; 5139_ACEOF 5140if ac_fn_c_try_compile "$LINENO"; then : 5141 xorg_cv_cc_flag_unknown_warning_option=yes 5142else 5143 xorg_cv_cc_flag_unknown_warning_option=no 5144fi 5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5146fi 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5150 CFLAGS="$xorg_testset_save_CFLAGS" 5151fi 5152 5153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5156 fi 5157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164/* end confdefs.h. */ 5165int i; 5166_ACEOF 5167if ac_fn_c_try_compile "$LINENO"; then : 5168 xorg_cv_cc_flag_unused_command_line_argument=yes 5169else 5170 xorg_cv_cc_flag_unused_command_line_argument=no 5171fi 5172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5173fi 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5177 CFLAGS="$xorg_testset_save_CFLAGS" 5178fi 5179 5180found="no" 5181 5182 if test $found = "no" ; then 5183 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5185 fi 5186 5187 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5189 fi 5190 5191 CFLAGS="$CFLAGS -Wformat=2" 5192 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5194$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5195 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5196 if eval \${$cacheid+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201int i; 5202int 5203main () 5204{ 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210if ac_fn_c_try_link "$LINENO"; then : 5211 eval $cacheid=yes 5212else 5213 eval $cacheid=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext \ 5216 conftest$ac_exeext conftest.$ac_ext 5217fi 5218 5219 5220 CFLAGS="$xorg_testset_save_CFLAGS" 5221 5222 eval supported=\$$cacheid 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5224$as_echo "$supported" >&6; } 5225 if test "$supported" = "yes" ; then 5226 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5227 found="yes" 5228 fi 5229 fi 5230 5231 if test $found = "no" ; then 5232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5234 fi 5235 5236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5238 fi 5239 5240 CFLAGS="$CFLAGS -Wformat" 5241 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5243$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5244 cacheid=xorg_cv_cc_flag__Wformat 5245 if eval \${$cacheid+:} false; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5249/* end confdefs.h. */ 5250int i; 5251int 5252main () 5253{ 5254 5255 ; 5256 return 0; 5257} 5258_ACEOF 5259if ac_fn_c_try_link "$LINENO"; then : 5260 eval $cacheid=yes 5261else 5262 eval $cacheid=no 5263fi 5264rm -f core conftest.err conftest.$ac_objext \ 5265 conftest$ac_exeext conftest.$ac_ext 5266fi 5267 5268 5269 CFLAGS="$xorg_testset_save_CFLAGS" 5270 5271 eval supported=\$$cacheid 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5273$as_echo "$supported" >&6; } 5274 if test "$supported" = "yes" ; then 5275 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5276 found="yes" 5277 fi 5278 fi 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296xorg_testset_save_CFLAGS="$CFLAGS" 5297 5298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5303 $as_echo_n "(cached) " >&6 5304else 5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5306/* end confdefs.h. */ 5307int i; 5308_ACEOF 5309if ac_fn_c_try_compile "$LINENO"; then : 5310 xorg_cv_cc_flag_unknown_warning_option=yes 5311else 5312 xorg_cv_cc_flag_unknown_warning_option=no 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5315fi 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5319 CFLAGS="$xorg_testset_save_CFLAGS" 5320fi 5321 5322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5325 fi 5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333/* end confdefs.h. */ 5334int i; 5335_ACEOF 5336if ac_fn_c_try_compile "$LINENO"; then : 5337 xorg_cv_cc_flag_unused_command_line_argument=yes 5338else 5339 xorg_cv_cc_flag_unused_command_line_argument=no 5340fi 5341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5342fi 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5346 CFLAGS="$xorg_testset_save_CFLAGS" 5347fi 5348 5349found="no" 5350 5351 if test $found = "no" ; then 5352 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5354 fi 5355 5356 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5358 fi 5359 5360 CFLAGS="$CFLAGS -Wstrict-prototypes" 5361 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5363$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5364 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5365 if eval \${$cacheid+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5369/* end confdefs.h. */ 5370int i; 5371int 5372main () 5373{ 5374 5375 ; 5376 return 0; 5377} 5378_ACEOF 5379if ac_fn_c_try_link "$LINENO"; then : 5380 eval $cacheid=yes 5381else 5382 eval $cacheid=no 5383fi 5384rm -f core conftest.err conftest.$ac_objext \ 5385 conftest$ac_exeext conftest.$ac_ext 5386fi 5387 5388 5389 CFLAGS="$xorg_testset_save_CFLAGS" 5390 5391 eval supported=\$$cacheid 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5393$as_echo "$supported" >&6; } 5394 if test "$supported" = "yes" ; then 5395 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5396 found="yes" 5397 fi 5398 fi 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414xorg_testset_save_CFLAGS="$CFLAGS" 5415 5416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424/* end confdefs.h. */ 5425int i; 5426_ACEOF 5427if ac_fn_c_try_compile "$LINENO"; then : 5428 xorg_cv_cc_flag_unknown_warning_option=yes 5429else 5430 xorg_cv_cc_flag_unknown_warning_option=no 5431fi 5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5433fi 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5437 CFLAGS="$xorg_testset_save_CFLAGS" 5438fi 5439 5440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5443 fi 5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451/* end confdefs.h. */ 5452int i; 5453_ACEOF 5454if ac_fn_c_try_compile "$LINENO"; then : 5455 xorg_cv_cc_flag_unused_command_line_argument=yes 5456else 5457 xorg_cv_cc_flag_unused_command_line_argument=no 5458fi 5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5460fi 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5464 CFLAGS="$xorg_testset_save_CFLAGS" 5465fi 5466 5467found="no" 5468 5469 if test $found = "no" ; then 5470 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5472 fi 5473 5474 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5476 fi 5477 5478 CFLAGS="$CFLAGS -Wmissing-prototypes" 5479 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5481$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5482 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5483 if eval \${$cacheid+:} false; then : 5484 $as_echo_n "(cached) " >&6 5485else 5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5487/* end confdefs.h. */ 5488int i; 5489int 5490main () 5491{ 5492 5493 ; 5494 return 0; 5495} 5496_ACEOF 5497if ac_fn_c_try_link "$LINENO"; then : 5498 eval $cacheid=yes 5499else 5500 eval $cacheid=no 5501fi 5502rm -f core conftest.err conftest.$ac_objext \ 5503 conftest$ac_exeext conftest.$ac_ext 5504fi 5505 5506 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508 5509 eval supported=\$$cacheid 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5511$as_echo "$supported" >&6; } 5512 if test "$supported" = "yes" ; then 5513 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5514 found="yes" 5515 fi 5516 fi 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532xorg_testset_save_CFLAGS="$CFLAGS" 5533 5534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540else 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543int i; 5544_ACEOF 5545if ac_fn_c_try_compile "$LINENO"; then : 5546 xorg_cv_cc_flag_unknown_warning_option=yes 5547else 5548 xorg_cv_cc_flag_unknown_warning_option=no 5549fi 5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5551fi 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5555 CFLAGS="$xorg_testset_save_CFLAGS" 5556fi 5557 5558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5561 fi 5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5566 $as_echo_n "(cached) " >&6 5567else 5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569/* end confdefs.h. */ 5570int i; 5571_ACEOF 5572if ac_fn_c_try_compile "$LINENO"; then : 5573 xorg_cv_cc_flag_unused_command_line_argument=yes 5574else 5575 xorg_cv_cc_flag_unused_command_line_argument=no 5576fi 5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5578fi 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5582 CFLAGS="$xorg_testset_save_CFLAGS" 5583fi 5584 5585found="no" 5586 5587 if test $found = "no" ; then 5588 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5590 fi 5591 5592 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5594 fi 5595 5596 CFLAGS="$CFLAGS -Wnested-externs" 5597 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5599$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5600 cacheid=xorg_cv_cc_flag__Wnested_externs 5601 if eval \${$cacheid+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605/* end confdefs.h. */ 5606int i; 5607int 5608main () 5609{ 5610 5611 ; 5612 return 0; 5613} 5614_ACEOF 5615if ac_fn_c_try_link "$LINENO"; then : 5616 eval $cacheid=yes 5617else 5618 eval $cacheid=no 5619fi 5620rm -f core conftest.err conftest.$ac_objext \ 5621 conftest$ac_exeext conftest.$ac_ext 5622fi 5623 5624 5625 CFLAGS="$xorg_testset_save_CFLAGS" 5626 5627 eval supported=\$$cacheid 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5629$as_echo "$supported" >&6; } 5630 if test "$supported" = "yes" ; then 5631 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5632 found="yes" 5633 fi 5634 fi 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650xorg_testset_save_CFLAGS="$CFLAGS" 5651 5652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661int i; 5662_ACEOF 5663if ac_fn_c_try_compile "$LINENO"; then : 5664 xorg_cv_cc_flag_unknown_warning_option=yes 5665else 5666 xorg_cv_cc_flag_unknown_warning_option=no 5667fi 5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5669fi 5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5673 CFLAGS="$xorg_testset_save_CFLAGS" 5674fi 5675 5676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5679 fi 5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685else 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688int i; 5689_ACEOF 5690if ac_fn_c_try_compile "$LINENO"; then : 5691 xorg_cv_cc_flag_unused_command_line_argument=yes 5692else 5693 xorg_cv_cc_flag_unused_command_line_argument=no 5694fi 5695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5696fi 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5700 CFLAGS="$xorg_testset_save_CFLAGS" 5701fi 5702 5703found="no" 5704 5705 if test $found = "no" ; then 5706 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5708 fi 5709 5710 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5712 fi 5713 5714 CFLAGS="$CFLAGS -Wbad-function-cast" 5715 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5717$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5718 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5719 if eval \${$cacheid+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5723/* end confdefs.h. */ 5724int i; 5725int 5726main () 5727{ 5728 5729 ; 5730 return 0; 5731} 5732_ACEOF 5733if ac_fn_c_try_link "$LINENO"; then : 5734 eval $cacheid=yes 5735else 5736 eval $cacheid=no 5737fi 5738rm -f core conftest.err conftest.$ac_objext \ 5739 conftest$ac_exeext conftest.$ac_ext 5740fi 5741 5742 5743 CFLAGS="$xorg_testset_save_CFLAGS" 5744 5745 eval supported=\$$cacheid 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5747$as_echo "$supported" >&6; } 5748 if test "$supported" = "yes" ; then 5749 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5750 found="yes" 5751 fi 5752 fi 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768xorg_testset_save_CFLAGS="$CFLAGS" 5769 5770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779int i; 5780_ACEOF 5781if ac_fn_c_try_compile "$LINENO"; then : 5782 xorg_cv_cc_flag_unknown_warning_option=yes 5783else 5784 xorg_cv_cc_flag_unknown_warning_option=no 5785fi 5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5787fi 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5791 CFLAGS="$xorg_testset_save_CFLAGS" 5792fi 5793 5794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5797 fi 5798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5805/* end confdefs.h. */ 5806int i; 5807_ACEOF 5808if ac_fn_c_try_compile "$LINENO"; then : 5809 xorg_cv_cc_flag_unused_command_line_argument=yes 5810else 5811 xorg_cv_cc_flag_unused_command_line_argument=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5814fi 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819fi 5820 5821found="no" 5822 5823 if test $found = "no" ; then 5824 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5826 fi 5827 5828 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5830 fi 5831 5832 CFLAGS="$CFLAGS -Wold-style-definition" 5833 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5835$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5836 cacheid=xorg_cv_cc_flag__Wold_style_definition 5837 if eval \${$cacheid+:} false; then : 5838 $as_echo_n "(cached) " >&6 5839else 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842int i; 5843int 5844main () 5845{ 5846 5847 ; 5848 return 0; 5849} 5850_ACEOF 5851if ac_fn_c_try_link "$LINENO"; then : 5852 eval $cacheid=yes 5853else 5854 eval $cacheid=no 5855fi 5856rm -f core conftest.err conftest.$ac_objext \ 5857 conftest$ac_exeext conftest.$ac_ext 5858fi 5859 5860 5861 CFLAGS="$xorg_testset_save_CFLAGS" 5862 5863 eval supported=\$$cacheid 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5865$as_echo "$supported" >&6; } 5866 if test "$supported" = "yes" ; then 5867 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5868 found="yes" 5869 fi 5870 fi 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886xorg_testset_save_CFLAGS="$CFLAGS" 5887 5888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894else 5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896/* end confdefs.h. */ 5897int i; 5898_ACEOF 5899if ac_fn_c_try_compile "$LINENO"; then : 5900 xorg_cv_cc_flag_unknown_warning_option=yes 5901else 5902 xorg_cv_cc_flag_unknown_warning_option=no 5903fi 5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5905fi 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5909 CFLAGS="$xorg_testset_save_CFLAGS" 5910fi 5911 5912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5915 fi 5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923/* end confdefs.h. */ 5924int i; 5925_ACEOF 5926if ac_fn_c_try_compile "$LINENO"; then : 5927 xorg_cv_cc_flag_unused_command_line_argument=yes 5928else 5929 xorg_cv_cc_flag_unused_command_line_argument=no 5930fi 5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5932fi 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5936 CFLAGS="$xorg_testset_save_CFLAGS" 5937fi 5938 5939found="no" 5940 5941 if test $found = "no" ; then 5942 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5944 fi 5945 5946 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5948 fi 5949 5950 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5951 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5953$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5954 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5955 if eval \${$cacheid+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959/* end confdefs.h. */ 5960int i; 5961int 5962main () 5963{ 5964 5965 ; 5966 return 0; 5967} 5968_ACEOF 5969if ac_fn_c_try_link "$LINENO"; then : 5970 eval $cacheid=yes 5971else 5972 eval $cacheid=no 5973fi 5974rm -f core conftest.err conftest.$ac_objext \ 5975 conftest$ac_exeext conftest.$ac_ext 5976fi 5977 5978 5979 CFLAGS="$xorg_testset_save_CFLAGS" 5980 5981 eval supported=\$$cacheid 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5983$as_echo "$supported" >&6; } 5984 if test "$supported" = "yes" ; then 5985 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5986 found="yes" 5987 fi 5988 fi 5989 5990 5991 5992 5993 5994# This chunk adds additional warnings that could catch undesired effects. 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008xorg_testset_save_CFLAGS="$CFLAGS" 6009 6010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019int i; 6020_ACEOF 6021if ac_fn_c_try_compile "$LINENO"; then : 6022 xorg_cv_cc_flag_unknown_warning_option=yes 6023else 6024 xorg_cv_cc_flag_unknown_warning_option=no 6025fi 6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6027fi 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6031 CFLAGS="$xorg_testset_save_CFLAGS" 6032fi 6033 6034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6037 fi 6038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6042 $as_echo_n "(cached) " >&6 6043else 6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6045/* end confdefs.h. */ 6046int i; 6047_ACEOF 6048if ac_fn_c_try_compile "$LINENO"; then : 6049 xorg_cv_cc_flag_unused_command_line_argument=yes 6050else 6051 xorg_cv_cc_flag_unused_command_line_argument=no 6052fi 6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6054fi 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6058 CFLAGS="$xorg_testset_save_CFLAGS" 6059fi 6060 6061found="no" 6062 6063 if test $found = "no" ; then 6064 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6066 fi 6067 6068 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6070 fi 6071 6072 CFLAGS="$CFLAGS -Wunused" 6073 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6075$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6076 cacheid=xorg_cv_cc_flag__Wunused 6077 if eval \${$cacheid+:} false; then : 6078 $as_echo_n "(cached) " >&6 6079else 6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6081/* end confdefs.h. */ 6082int i; 6083int 6084main () 6085{ 6086 6087 ; 6088 return 0; 6089} 6090_ACEOF 6091if ac_fn_c_try_link "$LINENO"; then : 6092 eval $cacheid=yes 6093else 6094 eval $cacheid=no 6095fi 6096rm -f core conftest.err conftest.$ac_objext \ 6097 conftest$ac_exeext conftest.$ac_ext 6098fi 6099 6100 6101 CFLAGS="$xorg_testset_save_CFLAGS" 6102 6103 eval supported=\$$cacheid 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6105$as_echo "$supported" >&6; } 6106 if test "$supported" = "yes" ; then 6107 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6108 found="yes" 6109 fi 6110 fi 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126xorg_testset_save_CFLAGS="$CFLAGS" 6127 6128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6136/* end confdefs.h. */ 6137int i; 6138_ACEOF 6139if ac_fn_c_try_compile "$LINENO"; then : 6140 xorg_cv_cc_flag_unknown_warning_option=yes 6141else 6142 xorg_cv_cc_flag_unknown_warning_option=no 6143fi 6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6145fi 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6149 CFLAGS="$xorg_testset_save_CFLAGS" 6150fi 6151 6152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6155 fi 6156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6160 $as_echo_n "(cached) " >&6 6161else 6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6163/* end confdefs.h. */ 6164int i; 6165_ACEOF 6166if ac_fn_c_try_compile "$LINENO"; then : 6167 xorg_cv_cc_flag_unused_command_line_argument=yes 6168else 6169 xorg_cv_cc_flag_unused_command_line_argument=no 6170fi 6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6172fi 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6176 CFLAGS="$xorg_testset_save_CFLAGS" 6177fi 6178 6179found="no" 6180 6181 if test $found = "no" ; then 6182 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6184 fi 6185 6186 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6188 fi 6189 6190 CFLAGS="$CFLAGS -Wuninitialized" 6191 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6193$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6194 cacheid=xorg_cv_cc_flag__Wuninitialized 6195 if eval \${$cacheid+:} false; then : 6196 $as_echo_n "(cached) " >&6 6197else 6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6199/* end confdefs.h. */ 6200int i; 6201int 6202main () 6203{ 6204 6205 ; 6206 return 0; 6207} 6208_ACEOF 6209if ac_fn_c_try_link "$LINENO"; then : 6210 eval $cacheid=yes 6211else 6212 eval $cacheid=no 6213fi 6214rm -f core conftest.err conftest.$ac_objext \ 6215 conftest$ac_exeext conftest.$ac_ext 6216fi 6217 6218 6219 CFLAGS="$xorg_testset_save_CFLAGS" 6220 6221 eval supported=\$$cacheid 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6223$as_echo "$supported" >&6; } 6224 if test "$supported" = "yes" ; then 6225 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6226 found="yes" 6227 fi 6228 fi 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244xorg_testset_save_CFLAGS="$CFLAGS" 6245 6246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6251 $as_echo_n "(cached) " >&6 6252else 6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6254/* end confdefs.h. */ 6255int i; 6256_ACEOF 6257if ac_fn_c_try_compile "$LINENO"; then : 6258 xorg_cv_cc_flag_unknown_warning_option=yes 6259else 6260 xorg_cv_cc_flag_unknown_warning_option=no 6261fi 6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6263fi 6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6267 CFLAGS="$xorg_testset_save_CFLAGS" 6268fi 6269 6270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6273 fi 6274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6278 $as_echo_n "(cached) " >&6 6279else 6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6281/* end confdefs.h. */ 6282int i; 6283_ACEOF 6284if ac_fn_c_try_compile "$LINENO"; then : 6285 xorg_cv_cc_flag_unused_command_line_argument=yes 6286else 6287 xorg_cv_cc_flag_unused_command_line_argument=no 6288fi 6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6290fi 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6294 CFLAGS="$xorg_testset_save_CFLAGS" 6295fi 6296 6297found="no" 6298 6299 if test $found = "no" ; then 6300 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6302 fi 6303 6304 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6306 fi 6307 6308 CFLAGS="$CFLAGS -Wshadow" 6309 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6311$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6312 cacheid=xorg_cv_cc_flag__Wshadow 6313 if eval \${$cacheid+:} false; then : 6314 $as_echo_n "(cached) " >&6 6315else 6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6317/* end confdefs.h. */ 6318int i; 6319int 6320main () 6321{ 6322 6323 ; 6324 return 0; 6325} 6326_ACEOF 6327if ac_fn_c_try_link "$LINENO"; then : 6328 eval $cacheid=yes 6329else 6330 eval $cacheid=no 6331fi 6332rm -f core conftest.err conftest.$ac_objext \ 6333 conftest$ac_exeext conftest.$ac_ext 6334fi 6335 6336 6337 CFLAGS="$xorg_testset_save_CFLAGS" 6338 6339 eval supported=\$$cacheid 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6341$as_echo "$supported" >&6; } 6342 if test "$supported" = "yes" ; then 6343 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6344 found="yes" 6345 fi 6346 fi 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362xorg_testset_save_CFLAGS="$CFLAGS" 6363 6364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6367$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6368if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6372/* end confdefs.h. */ 6373int i; 6374_ACEOF 6375if ac_fn_c_try_compile "$LINENO"; then : 6376 xorg_cv_cc_flag_unknown_warning_option=yes 6377else 6378 xorg_cv_cc_flag_unknown_warning_option=no 6379fi 6380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6381fi 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6383$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6385 CFLAGS="$xorg_testset_save_CFLAGS" 6386fi 6387 6388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6391 fi 6392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6394$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6395if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6396 $as_echo_n "(cached) " >&6 6397else 6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6399/* end confdefs.h. */ 6400int i; 6401_ACEOF 6402if ac_fn_c_try_compile "$LINENO"; then : 6403 xorg_cv_cc_flag_unused_command_line_argument=yes 6404else 6405 xorg_cv_cc_flag_unused_command_line_argument=no 6406fi 6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6408fi 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6410$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6412 CFLAGS="$xorg_testset_save_CFLAGS" 6413fi 6414 6415found="no" 6416 6417 if test $found = "no" ; then 6418 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6420 fi 6421 6422 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6424 fi 6425 6426 CFLAGS="$CFLAGS -Wcast-qual" 6427 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6429$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6430 cacheid=xorg_cv_cc_flag__Wcast_qual 6431 if eval \${$cacheid+:} false; then : 6432 $as_echo_n "(cached) " >&6 6433else 6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435/* end confdefs.h. */ 6436int i; 6437int 6438main () 6439{ 6440 6441 ; 6442 return 0; 6443} 6444_ACEOF 6445if ac_fn_c_try_link "$LINENO"; then : 6446 eval $cacheid=yes 6447else 6448 eval $cacheid=no 6449fi 6450rm -f core conftest.err conftest.$ac_objext \ 6451 conftest$ac_exeext conftest.$ac_ext 6452fi 6453 6454 6455 CFLAGS="$xorg_testset_save_CFLAGS" 6456 6457 eval supported=\$$cacheid 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6459$as_echo "$supported" >&6; } 6460 if test "$supported" = "yes" ; then 6461 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6462 found="yes" 6463 fi 6464 fi 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480xorg_testset_save_CFLAGS="$CFLAGS" 6481 6482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490/* end confdefs.h. */ 6491int i; 6492_ACEOF 6493if ac_fn_c_try_compile "$LINENO"; then : 6494 xorg_cv_cc_flag_unknown_warning_option=yes 6495else 6496 xorg_cv_cc_flag_unknown_warning_option=no 6497fi 6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6499fi 6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6503 CFLAGS="$xorg_testset_save_CFLAGS" 6504fi 6505 6506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6509 fi 6510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6517/* end confdefs.h. */ 6518int i; 6519_ACEOF 6520if ac_fn_c_try_compile "$LINENO"; then : 6521 xorg_cv_cc_flag_unused_command_line_argument=yes 6522else 6523 xorg_cv_cc_flag_unused_command_line_argument=no 6524fi 6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6526fi 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6530 CFLAGS="$xorg_testset_save_CFLAGS" 6531fi 6532 6533found="no" 6534 6535 if test $found = "no" ; then 6536 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6538 fi 6539 6540 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6542 fi 6543 6544 CFLAGS="$CFLAGS -Wmissing-noreturn" 6545 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6547$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6548 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6549 if eval \${$cacheid+:} false; then : 6550 $as_echo_n "(cached) " >&6 6551else 6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6553/* end confdefs.h. */ 6554int i; 6555int 6556main () 6557{ 6558 6559 ; 6560 return 0; 6561} 6562_ACEOF 6563if ac_fn_c_try_link "$LINENO"; then : 6564 eval $cacheid=yes 6565else 6566 eval $cacheid=no 6567fi 6568rm -f core conftest.err conftest.$ac_objext \ 6569 conftest$ac_exeext conftest.$ac_ext 6570fi 6571 6572 6573 CFLAGS="$xorg_testset_save_CFLAGS" 6574 6575 eval supported=\$$cacheid 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6577$as_echo "$supported" >&6; } 6578 if test "$supported" = "yes" ; then 6579 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6580 found="yes" 6581 fi 6582 fi 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598xorg_testset_save_CFLAGS="$CFLAGS" 6599 6600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6605 $as_echo_n "(cached) " >&6 6606else 6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6608/* end confdefs.h. */ 6609int i; 6610_ACEOF 6611if ac_fn_c_try_compile "$LINENO"; then : 6612 xorg_cv_cc_flag_unknown_warning_option=yes 6613else 6614 xorg_cv_cc_flag_unknown_warning_option=no 6615fi 6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6617fi 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6621 CFLAGS="$xorg_testset_save_CFLAGS" 6622fi 6623 6624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6627 fi 6628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6632 $as_echo_n "(cached) " >&6 6633else 6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6635/* end confdefs.h. */ 6636int i; 6637_ACEOF 6638if ac_fn_c_try_compile "$LINENO"; then : 6639 xorg_cv_cc_flag_unused_command_line_argument=yes 6640else 6641 xorg_cv_cc_flag_unused_command_line_argument=no 6642fi 6643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6644fi 6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6648 CFLAGS="$xorg_testset_save_CFLAGS" 6649fi 6650 6651found="no" 6652 6653 if test $found = "no" ; then 6654 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6656 fi 6657 6658 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6660 fi 6661 6662 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6663 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6665$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6666 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6667 if eval \${$cacheid+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671/* end confdefs.h. */ 6672int i; 6673int 6674main () 6675{ 6676 6677 ; 6678 return 0; 6679} 6680_ACEOF 6681if ac_fn_c_try_link "$LINENO"; then : 6682 eval $cacheid=yes 6683else 6684 eval $cacheid=no 6685fi 6686rm -f core conftest.err conftest.$ac_objext \ 6687 conftest$ac_exeext conftest.$ac_ext 6688fi 6689 6690 6691 CFLAGS="$xorg_testset_save_CFLAGS" 6692 6693 eval supported=\$$cacheid 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6695$as_echo "$supported" >&6; } 6696 if test "$supported" = "yes" ; then 6697 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6698 found="yes" 6699 fi 6700 fi 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716xorg_testset_save_CFLAGS="$CFLAGS" 6717 6718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6723 $as_echo_n "(cached) " >&6 6724else 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6726/* end confdefs.h. */ 6727int i; 6728_ACEOF 6729if ac_fn_c_try_compile "$LINENO"; then : 6730 xorg_cv_cc_flag_unknown_warning_option=yes 6731else 6732 xorg_cv_cc_flag_unknown_warning_option=no 6733fi 6734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6735fi 6736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6739 CFLAGS="$xorg_testset_save_CFLAGS" 6740fi 6741 6742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6745 fi 6746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6753/* end confdefs.h. */ 6754int i; 6755_ACEOF 6756if ac_fn_c_try_compile "$LINENO"; then : 6757 xorg_cv_cc_flag_unused_command_line_argument=yes 6758else 6759 xorg_cv_cc_flag_unused_command_line_argument=no 6760fi 6761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6762fi 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767fi 6768 6769found="no" 6770 6771 if test $found = "no" ; then 6772 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6774 fi 6775 6776 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6778 fi 6779 6780 CFLAGS="$CFLAGS -Wredundant-decls" 6781 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6783$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6784 cacheid=xorg_cv_cc_flag__Wredundant_decls 6785 if eval \${$cacheid+:} false; then : 6786 $as_echo_n "(cached) " >&6 6787else 6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6789/* end confdefs.h. */ 6790int i; 6791int 6792main () 6793{ 6794 6795 ; 6796 return 0; 6797} 6798_ACEOF 6799if ac_fn_c_try_link "$LINENO"; then : 6800 eval $cacheid=yes 6801else 6802 eval $cacheid=no 6803fi 6804rm -f core conftest.err conftest.$ac_objext \ 6805 conftest$ac_exeext conftest.$ac_ext 6806fi 6807 6808 6809 CFLAGS="$xorg_testset_save_CFLAGS" 6810 6811 eval supported=\$$cacheid 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6813$as_echo "$supported" >&6; } 6814 if test "$supported" = "yes" ; then 6815 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6816 found="yes" 6817 fi 6818 fi 6819 6820 6821 6822# These are currently disabled because they are noisy. They will be enabled 6823# in the future once the codebase is sufficiently modernized to silence 6824# them. For now, I don't want them to drown out the other warnings. 6825# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6826# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6827# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6828 6829# Turn some warnings into errors, so we don't accidently get successful builds 6830# when there are problems that should be fixed. 6831 6832if test "x$SELECTIVE_WERROR" = "xyes" ; then 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846xorg_testset_save_CFLAGS="$CFLAGS" 6847 6848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6853 $as_echo_n "(cached) " >&6 6854else 6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6856/* end confdefs.h. */ 6857int i; 6858_ACEOF 6859if ac_fn_c_try_compile "$LINENO"; then : 6860 xorg_cv_cc_flag_unknown_warning_option=yes 6861else 6862 xorg_cv_cc_flag_unknown_warning_option=no 6863fi 6864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6865fi 6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6869 CFLAGS="$xorg_testset_save_CFLAGS" 6870fi 6871 6872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6875 fi 6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881else 6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884int i; 6885_ACEOF 6886if ac_fn_c_try_compile "$LINENO"; then : 6887 xorg_cv_cc_flag_unused_command_line_argument=yes 6888else 6889 xorg_cv_cc_flag_unused_command_line_argument=no 6890fi 6891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6892fi 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6896 CFLAGS="$xorg_testset_save_CFLAGS" 6897fi 6898 6899found="no" 6900 6901 if test $found = "no" ; then 6902 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6904 fi 6905 6906 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6908 fi 6909 6910 CFLAGS="$CFLAGS -Werror=implicit" 6911 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6913$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6914 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6915 if eval \${$cacheid+:} false; then : 6916 $as_echo_n "(cached) " >&6 6917else 6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6919/* end confdefs.h. */ 6920int i; 6921int 6922main () 6923{ 6924 6925 ; 6926 return 0; 6927} 6928_ACEOF 6929if ac_fn_c_try_link "$LINENO"; then : 6930 eval $cacheid=yes 6931else 6932 eval $cacheid=no 6933fi 6934rm -f core conftest.err conftest.$ac_objext \ 6935 conftest$ac_exeext conftest.$ac_ext 6936fi 6937 6938 6939 CFLAGS="$xorg_testset_save_CFLAGS" 6940 6941 eval supported=\$$cacheid 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6943$as_echo "$supported" >&6; } 6944 if test "$supported" = "yes" ; then 6945 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6946 found="yes" 6947 fi 6948 fi 6949 6950 if test $found = "no" ; then 6951 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6953 fi 6954 6955 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6957 fi 6958 6959 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6960 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6962$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6963 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6964 if eval \${$cacheid+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6968/* end confdefs.h. */ 6969int i; 6970int 6971main () 6972{ 6973 6974 ; 6975 return 0; 6976} 6977_ACEOF 6978if ac_fn_c_try_link "$LINENO"; then : 6979 eval $cacheid=yes 6980else 6981 eval $cacheid=no 6982fi 6983rm -f core conftest.err conftest.$ac_objext \ 6984 conftest$ac_exeext conftest.$ac_ext 6985fi 6986 6987 6988 CFLAGS="$xorg_testset_save_CFLAGS" 6989 6990 eval supported=\$$cacheid 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6992$as_echo "$supported" >&6; } 6993 if test "$supported" = "yes" ; then 6994 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6995 found="yes" 6996 fi 6997 fi 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013xorg_testset_save_CFLAGS="$CFLAGS" 7014 7015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024int i; 7025_ACEOF 7026if ac_fn_c_try_compile "$LINENO"; then : 7027 xorg_cv_cc_flag_unknown_warning_option=yes 7028else 7029 xorg_cv_cc_flag_unknown_warning_option=no 7030fi 7031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7032fi 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7036 CFLAGS="$xorg_testset_save_CFLAGS" 7037fi 7038 7039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7042 fi 7043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050/* end confdefs.h. */ 7051int i; 7052_ACEOF 7053if ac_fn_c_try_compile "$LINENO"; then : 7054 xorg_cv_cc_flag_unused_command_line_argument=yes 7055else 7056 xorg_cv_cc_flag_unused_command_line_argument=no 7057fi 7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064fi 7065 7066found="no" 7067 7068 if test $found = "no" ; then 7069 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7071 fi 7072 7073 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7075 fi 7076 7077 CFLAGS="$CFLAGS -Werror=nonnull" 7078 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7080$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7081 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7082 if eval \${$cacheid+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087int i; 7088int 7089main () 7090{ 7091 7092 ; 7093 return 0; 7094} 7095_ACEOF 7096if ac_fn_c_try_link "$LINENO"; then : 7097 eval $cacheid=yes 7098else 7099 eval $cacheid=no 7100fi 7101rm -f core conftest.err conftest.$ac_objext \ 7102 conftest$ac_exeext conftest.$ac_ext 7103fi 7104 7105 7106 CFLAGS="$xorg_testset_save_CFLAGS" 7107 7108 eval supported=\$$cacheid 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7110$as_echo "$supported" >&6; } 7111 if test "$supported" = "yes" ; then 7112 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7113 found="yes" 7114 fi 7115 fi 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131xorg_testset_save_CFLAGS="$CFLAGS" 7132 7133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7138 $as_echo_n "(cached) " >&6 7139else 7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7141/* end confdefs.h. */ 7142int i; 7143_ACEOF 7144if ac_fn_c_try_compile "$LINENO"; then : 7145 xorg_cv_cc_flag_unknown_warning_option=yes 7146else 7147 xorg_cv_cc_flag_unknown_warning_option=no 7148fi 7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7150fi 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7154 CFLAGS="$xorg_testset_save_CFLAGS" 7155fi 7156 7157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7160 fi 7161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7168/* end confdefs.h. */ 7169int i; 7170_ACEOF 7171if ac_fn_c_try_compile "$LINENO"; then : 7172 xorg_cv_cc_flag_unused_command_line_argument=yes 7173else 7174 xorg_cv_cc_flag_unused_command_line_argument=no 7175fi 7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7177fi 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7181 CFLAGS="$xorg_testset_save_CFLAGS" 7182fi 7183 7184found="no" 7185 7186 if test $found = "no" ; then 7187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7189 fi 7190 7191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7193 fi 7194 7195 CFLAGS="$CFLAGS -Werror=init-self" 7196 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7198$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7199 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7200 if eval \${$cacheid+:} false; then : 7201 $as_echo_n "(cached) " >&6 7202else 7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7204/* end confdefs.h. */ 7205int i; 7206int 7207main () 7208{ 7209 7210 ; 7211 return 0; 7212} 7213_ACEOF 7214if ac_fn_c_try_link "$LINENO"; then : 7215 eval $cacheid=yes 7216else 7217 eval $cacheid=no 7218fi 7219rm -f core conftest.err conftest.$ac_objext \ 7220 conftest$ac_exeext conftest.$ac_ext 7221fi 7222 7223 7224 CFLAGS="$xorg_testset_save_CFLAGS" 7225 7226 eval supported=\$$cacheid 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7228$as_echo "$supported" >&6; } 7229 if test "$supported" = "yes" ; then 7230 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7231 found="yes" 7232 fi 7233 fi 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249xorg_testset_save_CFLAGS="$CFLAGS" 7250 7251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7256 $as_echo_n "(cached) " >&6 7257else 7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7259/* end confdefs.h. */ 7260int i; 7261_ACEOF 7262if ac_fn_c_try_compile "$LINENO"; then : 7263 xorg_cv_cc_flag_unknown_warning_option=yes 7264else 7265 xorg_cv_cc_flag_unknown_warning_option=no 7266fi 7267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7268fi 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7272 CFLAGS="$xorg_testset_save_CFLAGS" 7273fi 7274 7275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7278 fi 7279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7286/* end confdefs.h. */ 7287int i; 7288_ACEOF 7289if ac_fn_c_try_compile "$LINENO"; then : 7290 xorg_cv_cc_flag_unused_command_line_argument=yes 7291else 7292 xorg_cv_cc_flag_unused_command_line_argument=no 7293fi 7294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7295fi 7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7299 CFLAGS="$xorg_testset_save_CFLAGS" 7300fi 7301 7302found="no" 7303 7304 if test $found = "no" ; then 7305 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7307 fi 7308 7309 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7311 fi 7312 7313 CFLAGS="$CFLAGS -Werror=main" 7314 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7316$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7317 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7318 if eval \${$cacheid+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320else 7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7322/* end confdefs.h. */ 7323int i; 7324int 7325main () 7326{ 7327 7328 ; 7329 return 0; 7330} 7331_ACEOF 7332if ac_fn_c_try_link "$LINENO"; then : 7333 eval $cacheid=yes 7334else 7335 eval $cacheid=no 7336fi 7337rm -f core conftest.err conftest.$ac_objext \ 7338 conftest$ac_exeext conftest.$ac_ext 7339fi 7340 7341 7342 CFLAGS="$xorg_testset_save_CFLAGS" 7343 7344 eval supported=\$$cacheid 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7346$as_echo "$supported" >&6; } 7347 if test "$supported" = "yes" ; then 7348 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7349 found="yes" 7350 fi 7351 fi 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367xorg_testset_save_CFLAGS="$CFLAGS" 7368 7369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7374 $as_echo_n "(cached) " >&6 7375else 7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377/* end confdefs.h. */ 7378int i; 7379_ACEOF 7380if ac_fn_c_try_compile "$LINENO"; then : 7381 xorg_cv_cc_flag_unknown_warning_option=yes 7382else 7383 xorg_cv_cc_flag_unknown_warning_option=no 7384fi 7385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7386fi 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7390 CFLAGS="$xorg_testset_save_CFLAGS" 7391fi 7392 7393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7396 fi 7397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7401 $as_echo_n "(cached) " >&6 7402else 7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7404/* end confdefs.h. */ 7405int i; 7406_ACEOF 7407if ac_fn_c_try_compile "$LINENO"; then : 7408 xorg_cv_cc_flag_unused_command_line_argument=yes 7409else 7410 xorg_cv_cc_flag_unused_command_line_argument=no 7411fi 7412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7413fi 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7417 CFLAGS="$xorg_testset_save_CFLAGS" 7418fi 7419 7420found="no" 7421 7422 if test $found = "no" ; then 7423 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7425 fi 7426 7427 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7429 fi 7430 7431 CFLAGS="$CFLAGS -Werror=missing-braces" 7432 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7434$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7435 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7436 if eval \${$cacheid+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438else 7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7440/* end confdefs.h. */ 7441int i; 7442int 7443main () 7444{ 7445 7446 ; 7447 return 0; 7448} 7449_ACEOF 7450if ac_fn_c_try_link "$LINENO"; then : 7451 eval $cacheid=yes 7452else 7453 eval $cacheid=no 7454fi 7455rm -f core conftest.err conftest.$ac_objext \ 7456 conftest$ac_exeext conftest.$ac_ext 7457fi 7458 7459 7460 CFLAGS="$xorg_testset_save_CFLAGS" 7461 7462 eval supported=\$$cacheid 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7464$as_echo "$supported" >&6; } 7465 if test "$supported" = "yes" ; then 7466 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7467 found="yes" 7468 fi 7469 fi 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485xorg_testset_save_CFLAGS="$CFLAGS" 7486 7487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495/* end confdefs.h. */ 7496int i; 7497_ACEOF 7498if ac_fn_c_try_compile "$LINENO"; then : 7499 xorg_cv_cc_flag_unknown_warning_option=yes 7500else 7501 xorg_cv_cc_flag_unknown_warning_option=no 7502fi 7503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7504fi 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7508 CFLAGS="$xorg_testset_save_CFLAGS" 7509fi 7510 7511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7514 fi 7515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7522/* end confdefs.h. */ 7523int i; 7524_ACEOF 7525if ac_fn_c_try_compile "$LINENO"; then : 7526 xorg_cv_cc_flag_unused_command_line_argument=yes 7527else 7528 xorg_cv_cc_flag_unused_command_line_argument=no 7529fi 7530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7531fi 7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7535 CFLAGS="$xorg_testset_save_CFLAGS" 7536fi 7537 7538found="no" 7539 7540 if test $found = "no" ; then 7541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7543 fi 7544 7545 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7547 fi 7548 7549 CFLAGS="$CFLAGS -Werror=sequence-point" 7550 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7552$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7553 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7554 if eval \${$cacheid+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556else 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7558/* end confdefs.h. */ 7559int i; 7560int 7561main () 7562{ 7563 7564 ; 7565 return 0; 7566} 7567_ACEOF 7568if ac_fn_c_try_link "$LINENO"; then : 7569 eval $cacheid=yes 7570else 7571 eval $cacheid=no 7572fi 7573rm -f core conftest.err conftest.$ac_objext \ 7574 conftest$ac_exeext conftest.$ac_ext 7575fi 7576 7577 7578 CFLAGS="$xorg_testset_save_CFLAGS" 7579 7580 eval supported=\$$cacheid 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7582$as_echo "$supported" >&6; } 7583 if test "$supported" = "yes" ; then 7584 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7585 found="yes" 7586 fi 7587 fi 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603xorg_testset_save_CFLAGS="$CFLAGS" 7604 7605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7613/* end confdefs.h. */ 7614int i; 7615_ACEOF 7616if ac_fn_c_try_compile "$LINENO"; then : 7617 xorg_cv_cc_flag_unknown_warning_option=yes 7618else 7619 xorg_cv_cc_flag_unknown_warning_option=no 7620fi 7621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7622fi 7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7626 CFLAGS="$xorg_testset_save_CFLAGS" 7627fi 7628 7629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7632 fi 7633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641int i; 7642_ACEOF 7643if ac_fn_c_try_compile "$LINENO"; then : 7644 xorg_cv_cc_flag_unused_command_line_argument=yes 7645else 7646 xorg_cv_cc_flag_unused_command_line_argument=no 7647fi 7648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7649fi 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7653 CFLAGS="$xorg_testset_save_CFLAGS" 7654fi 7655 7656found="no" 7657 7658 if test $found = "no" ; then 7659 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7661 fi 7662 7663 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7665 fi 7666 7667 CFLAGS="$CFLAGS -Werror=return-type" 7668 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7670$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7671 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7672 if eval \${$cacheid+:} false; then : 7673 $as_echo_n "(cached) " >&6 7674else 7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7676/* end confdefs.h. */ 7677int i; 7678int 7679main () 7680{ 7681 7682 ; 7683 return 0; 7684} 7685_ACEOF 7686if ac_fn_c_try_link "$LINENO"; then : 7687 eval $cacheid=yes 7688else 7689 eval $cacheid=no 7690fi 7691rm -f core conftest.err conftest.$ac_objext \ 7692 conftest$ac_exeext conftest.$ac_ext 7693fi 7694 7695 7696 CFLAGS="$xorg_testset_save_CFLAGS" 7697 7698 eval supported=\$$cacheid 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7700$as_echo "$supported" >&6; } 7701 if test "$supported" = "yes" ; then 7702 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7703 found="yes" 7704 fi 7705 fi 7706 7707 if test $found = "no" ; then 7708 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7710 fi 7711 7712 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7714 fi 7715 7716 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7717 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7719$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7720 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7721 if eval \${$cacheid+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726int i; 7727int 7728main () 7729{ 7730 7731 ; 7732 return 0; 7733} 7734_ACEOF 7735if ac_fn_c_try_link "$LINENO"; then : 7736 eval $cacheid=yes 7737else 7738 eval $cacheid=no 7739fi 7740rm -f core conftest.err conftest.$ac_objext \ 7741 conftest$ac_exeext conftest.$ac_ext 7742fi 7743 7744 7745 CFLAGS="$xorg_testset_save_CFLAGS" 7746 7747 eval supported=\$$cacheid 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7749$as_echo "$supported" >&6; } 7750 if test "$supported" = "yes" ; then 7751 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7752 found="yes" 7753 fi 7754 fi 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770xorg_testset_save_CFLAGS="$CFLAGS" 7771 7772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781int i; 7782_ACEOF 7783if ac_fn_c_try_compile "$LINENO"; then : 7784 xorg_cv_cc_flag_unknown_warning_option=yes 7785else 7786 xorg_cv_cc_flag_unknown_warning_option=no 7787fi 7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7789fi 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7793 CFLAGS="$xorg_testset_save_CFLAGS" 7794fi 7795 7796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7799 fi 7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808int i; 7809_ACEOF 7810if ac_fn_c_try_compile "$LINENO"; then : 7811 xorg_cv_cc_flag_unused_command_line_argument=yes 7812else 7813 xorg_cv_cc_flag_unused_command_line_argument=no 7814fi 7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7816fi 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821fi 7822 7823found="no" 7824 7825 if test $found = "no" ; then 7826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7828 fi 7829 7830 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7832 fi 7833 7834 CFLAGS="$CFLAGS -Werror=trigraphs" 7835 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7837$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7838 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7839 if eval \${$cacheid+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841else 7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843/* end confdefs.h. */ 7844int i; 7845int 7846main () 7847{ 7848 7849 ; 7850 return 0; 7851} 7852_ACEOF 7853if ac_fn_c_try_link "$LINENO"; then : 7854 eval $cacheid=yes 7855else 7856 eval $cacheid=no 7857fi 7858rm -f core conftest.err conftest.$ac_objext \ 7859 conftest$ac_exeext conftest.$ac_ext 7860fi 7861 7862 7863 CFLAGS="$xorg_testset_save_CFLAGS" 7864 7865 eval supported=\$$cacheid 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7867$as_echo "$supported" >&6; } 7868 if test "$supported" = "yes" ; then 7869 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7870 found="yes" 7871 fi 7872 fi 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888xorg_testset_save_CFLAGS="$CFLAGS" 7889 7890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896else 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899int i; 7900_ACEOF 7901if ac_fn_c_try_compile "$LINENO"; then : 7902 xorg_cv_cc_flag_unknown_warning_option=yes 7903else 7904 xorg_cv_cc_flag_unknown_warning_option=no 7905fi 7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7907fi 7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7911 CFLAGS="$xorg_testset_save_CFLAGS" 7912fi 7913 7914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7917 fi 7918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925/* end confdefs.h. */ 7926int i; 7927_ACEOF 7928if ac_fn_c_try_compile "$LINENO"; then : 7929 xorg_cv_cc_flag_unused_command_line_argument=yes 7930else 7931 xorg_cv_cc_flag_unused_command_line_argument=no 7932fi 7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7934fi 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7938 CFLAGS="$xorg_testset_save_CFLAGS" 7939fi 7940 7941found="no" 7942 7943 if test $found = "no" ; then 7944 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7946 fi 7947 7948 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7950 fi 7951 7952 CFLAGS="$CFLAGS -Werror=array-bounds" 7953 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7955$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7956 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7957 if eval \${$cacheid+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959else 7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7961/* end confdefs.h. */ 7962int i; 7963int 7964main () 7965{ 7966 7967 ; 7968 return 0; 7969} 7970_ACEOF 7971if ac_fn_c_try_link "$LINENO"; then : 7972 eval $cacheid=yes 7973else 7974 eval $cacheid=no 7975fi 7976rm -f core conftest.err conftest.$ac_objext \ 7977 conftest$ac_exeext conftest.$ac_ext 7978fi 7979 7980 7981 CFLAGS="$xorg_testset_save_CFLAGS" 7982 7983 eval supported=\$$cacheid 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7985$as_echo "$supported" >&6; } 7986 if test "$supported" = "yes" ; then 7987 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7988 found="yes" 7989 fi 7990 fi 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006xorg_testset_save_CFLAGS="$CFLAGS" 8007 8008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8013 $as_echo_n "(cached) " >&6 8014else 8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8016/* end confdefs.h. */ 8017int i; 8018_ACEOF 8019if ac_fn_c_try_compile "$LINENO"; then : 8020 xorg_cv_cc_flag_unknown_warning_option=yes 8021else 8022 xorg_cv_cc_flag_unknown_warning_option=no 8023fi 8024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8025fi 8026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8029 CFLAGS="$xorg_testset_save_CFLAGS" 8030fi 8031 8032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8035 fi 8036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8043/* end confdefs.h. */ 8044int i; 8045_ACEOF 8046if ac_fn_c_try_compile "$LINENO"; then : 8047 xorg_cv_cc_flag_unused_command_line_argument=yes 8048else 8049 xorg_cv_cc_flag_unused_command_line_argument=no 8050fi 8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8052fi 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8056 CFLAGS="$xorg_testset_save_CFLAGS" 8057fi 8058 8059found="no" 8060 8061 if test $found = "no" ; then 8062 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8064 fi 8065 8066 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8068 fi 8069 8070 CFLAGS="$CFLAGS -Werror=write-strings" 8071 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8073$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8074 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8075 if eval \${$cacheid+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077else 8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8079/* end confdefs.h. */ 8080int i; 8081int 8082main () 8083{ 8084 8085 ; 8086 return 0; 8087} 8088_ACEOF 8089if ac_fn_c_try_link "$LINENO"; then : 8090 eval $cacheid=yes 8091else 8092 eval $cacheid=no 8093fi 8094rm -f core conftest.err conftest.$ac_objext \ 8095 conftest$ac_exeext conftest.$ac_ext 8096fi 8097 8098 8099 CFLAGS="$xorg_testset_save_CFLAGS" 8100 8101 eval supported=\$$cacheid 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8103$as_echo "$supported" >&6; } 8104 if test "$supported" = "yes" ; then 8105 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8106 found="yes" 8107 fi 8108 fi 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124xorg_testset_save_CFLAGS="$CFLAGS" 8125 8126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8131 $as_echo_n "(cached) " >&6 8132else 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8134/* end confdefs.h. */ 8135int i; 8136_ACEOF 8137if ac_fn_c_try_compile "$LINENO"; then : 8138 xorg_cv_cc_flag_unknown_warning_option=yes 8139else 8140 xorg_cv_cc_flag_unknown_warning_option=no 8141fi 8142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8143fi 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8147 CFLAGS="$xorg_testset_save_CFLAGS" 8148fi 8149 8150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8153 fi 8154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162int i; 8163_ACEOF 8164if ac_fn_c_try_compile "$LINENO"; then : 8165 xorg_cv_cc_flag_unused_command_line_argument=yes 8166else 8167 xorg_cv_cc_flag_unused_command_line_argument=no 8168fi 8169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8170fi 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8174 CFLAGS="$xorg_testset_save_CFLAGS" 8175fi 8176 8177found="no" 8178 8179 if test $found = "no" ; then 8180 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8182 fi 8183 8184 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8186 fi 8187 8188 CFLAGS="$CFLAGS -Werror=address" 8189 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8191$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8192 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8193 if eval \${$cacheid+:} false; then : 8194 $as_echo_n "(cached) " >&6 8195else 8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8197/* end confdefs.h. */ 8198int i; 8199int 8200main () 8201{ 8202 8203 ; 8204 return 0; 8205} 8206_ACEOF 8207if ac_fn_c_try_link "$LINENO"; then : 8208 eval $cacheid=yes 8209else 8210 eval $cacheid=no 8211fi 8212rm -f core conftest.err conftest.$ac_objext \ 8213 conftest$ac_exeext conftest.$ac_ext 8214fi 8215 8216 8217 CFLAGS="$xorg_testset_save_CFLAGS" 8218 8219 eval supported=\$$cacheid 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8221$as_echo "$supported" >&6; } 8222 if test "$supported" = "yes" ; then 8223 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8224 found="yes" 8225 fi 8226 fi 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242xorg_testset_save_CFLAGS="$CFLAGS" 8243 8244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8249 $as_echo_n "(cached) " >&6 8250else 8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8252/* end confdefs.h. */ 8253int i; 8254_ACEOF 8255if ac_fn_c_try_compile "$LINENO"; then : 8256 xorg_cv_cc_flag_unknown_warning_option=yes 8257else 8258 xorg_cv_cc_flag_unknown_warning_option=no 8259fi 8260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8261fi 8262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8265 CFLAGS="$xorg_testset_save_CFLAGS" 8266fi 8267 8268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8271 fi 8272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280int i; 8281_ACEOF 8282if ac_fn_c_try_compile "$LINENO"; then : 8283 xorg_cv_cc_flag_unused_command_line_argument=yes 8284else 8285 xorg_cv_cc_flag_unused_command_line_argument=no 8286fi 8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8288fi 8289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8292 CFLAGS="$xorg_testset_save_CFLAGS" 8293fi 8294 8295found="no" 8296 8297 if test $found = "no" ; then 8298 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8300 fi 8301 8302 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8304 fi 8305 8306 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8307 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8309$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8310 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8311 if eval \${$cacheid+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313else 8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8315/* end confdefs.h. */ 8316int i; 8317int 8318main () 8319{ 8320 8321 ; 8322 return 0; 8323} 8324_ACEOF 8325if ac_fn_c_try_link "$LINENO"; then : 8326 eval $cacheid=yes 8327else 8328 eval $cacheid=no 8329fi 8330rm -f core conftest.err conftest.$ac_objext \ 8331 conftest$ac_exeext conftest.$ac_ext 8332fi 8333 8334 8335 CFLAGS="$xorg_testset_save_CFLAGS" 8336 8337 eval supported=\$$cacheid 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8339$as_echo "$supported" >&6; } 8340 if test "$supported" = "yes" ; then 8341 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8342 found="yes" 8343 fi 8344 fi 8345 8346 if test $found = "no" ; then 8347 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8349 fi 8350 8351 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8353 fi 8354 8355 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8356 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8358$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8359 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8360 if eval \${$cacheid+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364/* end confdefs.h. */ 8365int i; 8366int 8367main () 8368{ 8369 8370 ; 8371 return 0; 8372} 8373_ACEOF 8374if ac_fn_c_try_link "$LINENO"; then : 8375 eval $cacheid=yes 8376else 8377 eval $cacheid=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext \ 8380 conftest$ac_exeext conftest.$ac_ext 8381fi 8382 8383 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385 8386 eval supported=\$$cacheid 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8388$as_echo "$supported" >&6; } 8389 if test "$supported" = "yes" ; then 8390 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8391 found="yes" 8392 fi 8393 fi 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409xorg_testset_save_CFLAGS="$CFLAGS" 8410 8411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417else 8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8419/* end confdefs.h. */ 8420int i; 8421_ACEOF 8422if ac_fn_c_try_compile "$LINENO"; then : 8423 xorg_cv_cc_flag_unknown_warning_option=yes 8424else 8425 xorg_cv_cc_flag_unknown_warning_option=no 8426fi 8427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8428fi 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8432 CFLAGS="$xorg_testset_save_CFLAGS" 8433fi 8434 8435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 fi 8439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8443 $as_echo_n "(cached) " >&6 8444else 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446/* end confdefs.h. */ 8447int i; 8448_ACEOF 8449if ac_fn_c_try_compile "$LINENO"; then : 8450 xorg_cv_cc_flag_unused_command_line_argument=yes 8451else 8452 xorg_cv_cc_flag_unused_command_line_argument=no 8453fi 8454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8455fi 8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8459 CFLAGS="$xorg_testset_save_CFLAGS" 8460fi 8461 8462found="no" 8463 8464 if test $found = "no" ; then 8465 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8467 fi 8468 8469 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8471 fi 8472 8473 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8474 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8476$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8477 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8478 if eval \${$cacheid+:} false; then : 8479 $as_echo_n "(cached) " >&6 8480else 8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482/* end confdefs.h. */ 8483int i; 8484int 8485main () 8486{ 8487 8488 ; 8489 return 0; 8490} 8491_ACEOF 8492if ac_fn_c_try_link "$LINENO"; then : 8493 eval $cacheid=yes 8494else 8495 eval $cacheid=no 8496fi 8497rm -f core conftest.err conftest.$ac_objext \ 8498 conftest$ac_exeext conftest.$ac_ext 8499fi 8500 8501 8502 CFLAGS="$xorg_testset_save_CFLAGS" 8503 8504 eval supported=\$$cacheid 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8506$as_echo "$supported" >&6; } 8507 if test "$supported" = "yes" ; then 8508 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8509 found="yes" 8510 fi 8511 fi 8512 8513 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8514else 8515{ $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 8516$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;} 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530xorg_testset_save_CFLAGS="$CFLAGS" 8531 8532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540/* end confdefs.h. */ 8541int i; 8542_ACEOF 8543if ac_fn_c_try_compile "$LINENO"; then : 8544 xorg_cv_cc_flag_unknown_warning_option=yes 8545else 8546 xorg_cv_cc_flag_unknown_warning_option=no 8547fi 8548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8549fi 8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8553 CFLAGS="$xorg_testset_save_CFLAGS" 8554fi 8555 8556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8559 fi 8560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8564 $as_echo_n "(cached) " >&6 8565else 8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8567/* end confdefs.h. */ 8568int i; 8569_ACEOF 8570if ac_fn_c_try_compile "$LINENO"; then : 8571 xorg_cv_cc_flag_unused_command_line_argument=yes 8572else 8573 xorg_cv_cc_flag_unused_command_line_argument=no 8574fi 8575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8576fi 8577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8580 CFLAGS="$xorg_testset_save_CFLAGS" 8581fi 8582 8583found="no" 8584 8585 if test $found = "no" ; then 8586 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8588 fi 8589 8590 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8592 fi 8593 8594 CFLAGS="$CFLAGS -Wimplicit" 8595 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8597$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8598 cacheid=xorg_cv_cc_flag__Wimplicit 8599 if eval \${$cacheid+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8603/* end confdefs.h. */ 8604int i; 8605int 8606main () 8607{ 8608 8609 ; 8610 return 0; 8611} 8612_ACEOF 8613if ac_fn_c_try_link "$LINENO"; then : 8614 eval $cacheid=yes 8615else 8616 eval $cacheid=no 8617fi 8618rm -f core conftest.err conftest.$ac_objext \ 8619 conftest$ac_exeext conftest.$ac_ext 8620fi 8621 8622 8623 CFLAGS="$xorg_testset_save_CFLAGS" 8624 8625 eval supported=\$$cacheid 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8627$as_echo "$supported" >&6; } 8628 if test "$supported" = "yes" ; then 8629 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8630 found="yes" 8631 fi 8632 fi 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648xorg_testset_save_CFLAGS="$CFLAGS" 8649 8650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658/* end confdefs.h. */ 8659int i; 8660_ACEOF 8661if ac_fn_c_try_compile "$LINENO"; then : 8662 xorg_cv_cc_flag_unknown_warning_option=yes 8663else 8664 xorg_cv_cc_flag_unknown_warning_option=no 8665fi 8666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8667fi 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8671 CFLAGS="$xorg_testset_save_CFLAGS" 8672fi 8673 8674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8677 fi 8678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685/* end confdefs.h. */ 8686int i; 8687_ACEOF 8688if ac_fn_c_try_compile "$LINENO"; then : 8689 xorg_cv_cc_flag_unused_command_line_argument=yes 8690else 8691 xorg_cv_cc_flag_unused_command_line_argument=no 8692fi 8693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8694fi 8695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8698 CFLAGS="$xorg_testset_save_CFLAGS" 8699fi 8700 8701found="no" 8702 8703 if test $found = "no" ; then 8704 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8706 fi 8707 8708 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8710 fi 8711 8712 CFLAGS="$CFLAGS -Wnonnull" 8713 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8715$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8716 cacheid=xorg_cv_cc_flag__Wnonnull 8717 if eval \${$cacheid+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719else 8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8721/* end confdefs.h. */ 8722int i; 8723int 8724main () 8725{ 8726 8727 ; 8728 return 0; 8729} 8730_ACEOF 8731if ac_fn_c_try_link "$LINENO"; then : 8732 eval $cacheid=yes 8733else 8734 eval $cacheid=no 8735fi 8736rm -f core conftest.err conftest.$ac_objext \ 8737 conftest$ac_exeext conftest.$ac_ext 8738fi 8739 8740 8741 CFLAGS="$xorg_testset_save_CFLAGS" 8742 8743 eval supported=\$$cacheid 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8745$as_echo "$supported" >&6; } 8746 if test "$supported" = "yes" ; then 8747 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8748 found="yes" 8749 fi 8750 fi 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766xorg_testset_save_CFLAGS="$CFLAGS" 8767 8768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777int i; 8778_ACEOF 8779if ac_fn_c_try_compile "$LINENO"; then : 8780 xorg_cv_cc_flag_unknown_warning_option=yes 8781else 8782 xorg_cv_cc_flag_unknown_warning_option=no 8783fi 8784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8785fi 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790fi 8791 8792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8795 fi 8796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801else 8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8803/* end confdefs.h. */ 8804int i; 8805_ACEOF 8806if ac_fn_c_try_compile "$LINENO"; then : 8807 xorg_cv_cc_flag_unused_command_line_argument=yes 8808else 8809 xorg_cv_cc_flag_unused_command_line_argument=no 8810fi 8811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8812fi 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817fi 8818 8819found="no" 8820 8821 if test $found = "no" ; then 8822 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8824 fi 8825 8826 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8828 fi 8829 8830 CFLAGS="$CFLAGS -Winit-self" 8831 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8833$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8834 cacheid=xorg_cv_cc_flag__Winit_self 8835 if eval \${$cacheid+:} false; then : 8836 $as_echo_n "(cached) " >&6 8837else 8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8839/* end confdefs.h. */ 8840int i; 8841int 8842main () 8843{ 8844 8845 ; 8846 return 0; 8847} 8848_ACEOF 8849if ac_fn_c_try_link "$LINENO"; then : 8850 eval $cacheid=yes 8851else 8852 eval $cacheid=no 8853fi 8854rm -f core conftest.err conftest.$ac_objext \ 8855 conftest$ac_exeext conftest.$ac_ext 8856fi 8857 8858 8859 CFLAGS="$xorg_testset_save_CFLAGS" 8860 8861 eval supported=\$$cacheid 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8863$as_echo "$supported" >&6; } 8864 if test "$supported" = "yes" ; then 8865 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8866 found="yes" 8867 fi 8868 fi 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884xorg_testset_save_CFLAGS="$CFLAGS" 8885 8886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8891 $as_echo_n "(cached) " >&6 8892else 8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895int i; 8896_ACEOF 8897if ac_fn_c_try_compile "$LINENO"; then : 8898 xorg_cv_cc_flag_unknown_warning_option=yes 8899else 8900 xorg_cv_cc_flag_unknown_warning_option=no 8901fi 8902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8903fi 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8907 CFLAGS="$xorg_testset_save_CFLAGS" 8908fi 8909 8910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8913 fi 8914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8918 $as_echo_n "(cached) " >&6 8919else 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921/* end confdefs.h. */ 8922int i; 8923_ACEOF 8924if ac_fn_c_try_compile "$LINENO"; then : 8925 xorg_cv_cc_flag_unused_command_line_argument=yes 8926else 8927 xorg_cv_cc_flag_unused_command_line_argument=no 8928fi 8929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8930fi 8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935fi 8936 8937found="no" 8938 8939 if test $found = "no" ; then 8940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8942 fi 8943 8944 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8946 fi 8947 8948 CFLAGS="$CFLAGS -Wmain" 8949 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8951$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8952 cacheid=xorg_cv_cc_flag__Wmain 8953 if eval \${$cacheid+:} false; then : 8954 $as_echo_n "(cached) " >&6 8955else 8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957/* end confdefs.h. */ 8958int i; 8959int 8960main () 8961{ 8962 8963 ; 8964 return 0; 8965} 8966_ACEOF 8967if ac_fn_c_try_link "$LINENO"; then : 8968 eval $cacheid=yes 8969else 8970 eval $cacheid=no 8971fi 8972rm -f core conftest.err conftest.$ac_objext \ 8973 conftest$ac_exeext conftest.$ac_ext 8974fi 8975 8976 8977 CFLAGS="$xorg_testset_save_CFLAGS" 8978 8979 eval supported=\$$cacheid 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8981$as_echo "$supported" >&6; } 8982 if test "$supported" = "yes" ; then 8983 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8984 found="yes" 8985 fi 8986 fi 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002xorg_testset_save_CFLAGS="$CFLAGS" 9003 9004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9009 $as_echo_n "(cached) " >&6 9010else 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013int i; 9014_ACEOF 9015if ac_fn_c_try_compile "$LINENO"; then : 9016 xorg_cv_cc_flag_unknown_warning_option=yes 9017else 9018 xorg_cv_cc_flag_unknown_warning_option=no 9019fi 9020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9021fi 9022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9025 CFLAGS="$xorg_testset_save_CFLAGS" 9026fi 9027 9028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9031 fi 9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9036 $as_echo_n "(cached) " >&6 9037else 9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9039/* end confdefs.h. */ 9040int i; 9041_ACEOF 9042if ac_fn_c_try_compile "$LINENO"; then : 9043 xorg_cv_cc_flag_unused_command_line_argument=yes 9044else 9045 xorg_cv_cc_flag_unused_command_line_argument=no 9046fi 9047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9048fi 9049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9052 CFLAGS="$xorg_testset_save_CFLAGS" 9053fi 9054 9055found="no" 9056 9057 if test $found = "no" ; then 9058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9060 fi 9061 9062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9064 fi 9065 9066 CFLAGS="$CFLAGS -Wmissing-braces" 9067 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9069$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9070 cacheid=xorg_cv_cc_flag__Wmissing_braces 9071 if eval \${$cacheid+:} false; then : 9072 $as_echo_n "(cached) " >&6 9073else 9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9075/* end confdefs.h. */ 9076int i; 9077int 9078main () 9079{ 9080 9081 ; 9082 return 0; 9083} 9084_ACEOF 9085if ac_fn_c_try_link "$LINENO"; then : 9086 eval $cacheid=yes 9087else 9088 eval $cacheid=no 9089fi 9090rm -f core conftest.err conftest.$ac_objext \ 9091 conftest$ac_exeext conftest.$ac_ext 9092fi 9093 9094 9095 CFLAGS="$xorg_testset_save_CFLAGS" 9096 9097 eval supported=\$$cacheid 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9099$as_echo "$supported" >&6; } 9100 if test "$supported" = "yes" ; then 9101 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9102 found="yes" 9103 fi 9104 fi 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120xorg_testset_save_CFLAGS="$CFLAGS" 9121 9122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9127 $as_echo_n "(cached) " >&6 9128else 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130/* end confdefs.h. */ 9131int i; 9132_ACEOF 9133if ac_fn_c_try_compile "$LINENO"; then : 9134 xorg_cv_cc_flag_unknown_warning_option=yes 9135else 9136 xorg_cv_cc_flag_unknown_warning_option=no 9137fi 9138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9139fi 9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9143 CFLAGS="$xorg_testset_save_CFLAGS" 9144fi 9145 9146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9149 fi 9150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9154 $as_echo_n "(cached) " >&6 9155else 9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9157/* end confdefs.h. */ 9158int i; 9159_ACEOF 9160if ac_fn_c_try_compile "$LINENO"; then : 9161 xorg_cv_cc_flag_unused_command_line_argument=yes 9162else 9163 xorg_cv_cc_flag_unused_command_line_argument=no 9164fi 9165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9166fi 9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171fi 9172 9173found="no" 9174 9175 if test $found = "no" ; then 9176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9178 fi 9179 9180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9182 fi 9183 9184 CFLAGS="$CFLAGS -Wsequence-point" 9185 9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9187$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9188 cacheid=xorg_cv_cc_flag__Wsequence_point 9189 if eval \${$cacheid+:} false; then : 9190 $as_echo_n "(cached) " >&6 9191else 9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9193/* end confdefs.h. */ 9194int i; 9195int 9196main () 9197{ 9198 9199 ; 9200 return 0; 9201} 9202_ACEOF 9203if ac_fn_c_try_link "$LINENO"; then : 9204 eval $cacheid=yes 9205else 9206 eval $cacheid=no 9207fi 9208rm -f core conftest.err conftest.$ac_objext \ 9209 conftest$ac_exeext conftest.$ac_ext 9210fi 9211 9212 9213 CFLAGS="$xorg_testset_save_CFLAGS" 9214 9215 eval supported=\$$cacheid 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9217$as_echo "$supported" >&6; } 9218 if test "$supported" = "yes" ; then 9219 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9220 found="yes" 9221 fi 9222 fi 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238xorg_testset_save_CFLAGS="$CFLAGS" 9239 9240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9245 $as_echo_n "(cached) " >&6 9246else 9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9248/* end confdefs.h. */ 9249int i; 9250_ACEOF 9251if ac_fn_c_try_compile "$LINENO"; then : 9252 xorg_cv_cc_flag_unknown_warning_option=yes 9253else 9254 xorg_cv_cc_flag_unknown_warning_option=no 9255fi 9256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9257fi 9258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9261 CFLAGS="$xorg_testset_save_CFLAGS" 9262fi 9263 9264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9267 fi 9268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9272 $as_echo_n "(cached) " >&6 9273else 9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9275/* end confdefs.h. */ 9276int i; 9277_ACEOF 9278if ac_fn_c_try_compile "$LINENO"; then : 9279 xorg_cv_cc_flag_unused_command_line_argument=yes 9280else 9281 xorg_cv_cc_flag_unused_command_line_argument=no 9282fi 9283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9284fi 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9288 CFLAGS="$xorg_testset_save_CFLAGS" 9289fi 9290 9291found="no" 9292 9293 if test $found = "no" ; then 9294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9296 fi 9297 9298 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9300 fi 9301 9302 CFLAGS="$CFLAGS -Wreturn-type" 9303 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9305$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9306 cacheid=xorg_cv_cc_flag__Wreturn_type 9307 if eval \${$cacheid+:} false; then : 9308 $as_echo_n "(cached) " >&6 9309else 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312int i; 9313int 9314main () 9315{ 9316 9317 ; 9318 return 0; 9319} 9320_ACEOF 9321if ac_fn_c_try_link "$LINENO"; then : 9322 eval $cacheid=yes 9323else 9324 eval $cacheid=no 9325fi 9326rm -f core conftest.err conftest.$ac_objext \ 9327 conftest$ac_exeext conftest.$ac_ext 9328fi 9329 9330 9331 CFLAGS="$xorg_testset_save_CFLAGS" 9332 9333 eval supported=\$$cacheid 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9335$as_echo "$supported" >&6; } 9336 if test "$supported" = "yes" ; then 9337 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9338 found="yes" 9339 fi 9340 fi 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356xorg_testset_save_CFLAGS="$CFLAGS" 9357 9358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9363 $as_echo_n "(cached) " >&6 9364else 9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9366/* end confdefs.h. */ 9367int i; 9368_ACEOF 9369if ac_fn_c_try_compile "$LINENO"; then : 9370 xorg_cv_cc_flag_unknown_warning_option=yes 9371else 9372 xorg_cv_cc_flag_unknown_warning_option=no 9373fi 9374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9375fi 9376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9379 CFLAGS="$xorg_testset_save_CFLAGS" 9380fi 9381 9382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9385 fi 9386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9390 $as_echo_n "(cached) " >&6 9391else 9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9393/* end confdefs.h. */ 9394int i; 9395_ACEOF 9396if ac_fn_c_try_compile "$LINENO"; then : 9397 xorg_cv_cc_flag_unused_command_line_argument=yes 9398else 9399 xorg_cv_cc_flag_unused_command_line_argument=no 9400fi 9401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9402fi 9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9406 CFLAGS="$xorg_testset_save_CFLAGS" 9407fi 9408 9409found="no" 9410 9411 if test $found = "no" ; then 9412 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9414 fi 9415 9416 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9418 fi 9419 9420 CFLAGS="$CFLAGS -Wtrigraphs" 9421 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9423$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9424 cacheid=xorg_cv_cc_flag__Wtrigraphs 9425 if eval \${$cacheid+:} false; then : 9426 $as_echo_n "(cached) " >&6 9427else 9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9429/* end confdefs.h. */ 9430int i; 9431int 9432main () 9433{ 9434 9435 ; 9436 return 0; 9437} 9438_ACEOF 9439if ac_fn_c_try_link "$LINENO"; then : 9440 eval $cacheid=yes 9441else 9442 eval $cacheid=no 9443fi 9444rm -f core conftest.err conftest.$ac_objext \ 9445 conftest$ac_exeext conftest.$ac_ext 9446fi 9447 9448 9449 CFLAGS="$xorg_testset_save_CFLAGS" 9450 9451 eval supported=\$$cacheid 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9453$as_echo "$supported" >&6; } 9454 if test "$supported" = "yes" ; then 9455 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9456 found="yes" 9457 fi 9458 fi 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474xorg_testset_save_CFLAGS="$CFLAGS" 9475 9476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9481 $as_echo_n "(cached) " >&6 9482else 9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9484/* end confdefs.h. */ 9485int i; 9486_ACEOF 9487if ac_fn_c_try_compile "$LINENO"; then : 9488 xorg_cv_cc_flag_unknown_warning_option=yes 9489else 9490 xorg_cv_cc_flag_unknown_warning_option=no 9491fi 9492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9493fi 9494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9497 CFLAGS="$xorg_testset_save_CFLAGS" 9498fi 9499 9500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9503 fi 9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9508 $as_echo_n "(cached) " >&6 9509else 9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9511/* end confdefs.h. */ 9512int i; 9513_ACEOF 9514if ac_fn_c_try_compile "$LINENO"; then : 9515 xorg_cv_cc_flag_unused_command_line_argument=yes 9516else 9517 xorg_cv_cc_flag_unused_command_line_argument=no 9518fi 9519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9520fi 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9524 CFLAGS="$xorg_testset_save_CFLAGS" 9525fi 9526 9527found="no" 9528 9529 if test $found = "no" ; then 9530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9532 fi 9533 9534 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9536 fi 9537 9538 CFLAGS="$CFLAGS -Warray-bounds" 9539 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9541$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9542 cacheid=xorg_cv_cc_flag__Warray_bounds 9543 if eval \${$cacheid+:} false; then : 9544 $as_echo_n "(cached) " >&6 9545else 9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9547/* end confdefs.h. */ 9548int i; 9549int 9550main () 9551{ 9552 9553 ; 9554 return 0; 9555} 9556_ACEOF 9557if ac_fn_c_try_link "$LINENO"; then : 9558 eval $cacheid=yes 9559else 9560 eval $cacheid=no 9561fi 9562rm -f core conftest.err conftest.$ac_objext \ 9563 conftest$ac_exeext conftest.$ac_ext 9564fi 9565 9566 9567 CFLAGS="$xorg_testset_save_CFLAGS" 9568 9569 eval supported=\$$cacheid 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9571$as_echo "$supported" >&6; } 9572 if test "$supported" = "yes" ; then 9573 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9574 found="yes" 9575 fi 9576 fi 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592xorg_testset_save_CFLAGS="$CFLAGS" 9593 9594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9602/* end confdefs.h. */ 9603int i; 9604_ACEOF 9605if ac_fn_c_try_compile "$LINENO"; then : 9606 xorg_cv_cc_flag_unknown_warning_option=yes 9607else 9608 xorg_cv_cc_flag_unknown_warning_option=no 9609fi 9610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9611fi 9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9615 CFLAGS="$xorg_testset_save_CFLAGS" 9616fi 9617 9618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9621 fi 9622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9626 $as_echo_n "(cached) " >&6 9627else 9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629/* end confdefs.h. */ 9630int i; 9631_ACEOF 9632if ac_fn_c_try_compile "$LINENO"; then : 9633 xorg_cv_cc_flag_unused_command_line_argument=yes 9634else 9635 xorg_cv_cc_flag_unused_command_line_argument=no 9636fi 9637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9638fi 9639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9642 CFLAGS="$xorg_testset_save_CFLAGS" 9643fi 9644 9645found="no" 9646 9647 if test $found = "no" ; then 9648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9650 fi 9651 9652 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9654 fi 9655 9656 CFLAGS="$CFLAGS -Wwrite-strings" 9657 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9659$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9660 cacheid=xorg_cv_cc_flag__Wwrite_strings 9661 if eval \${$cacheid+:} false; then : 9662 $as_echo_n "(cached) " >&6 9663else 9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665/* end confdefs.h. */ 9666int i; 9667int 9668main () 9669{ 9670 9671 ; 9672 return 0; 9673} 9674_ACEOF 9675if ac_fn_c_try_link "$LINENO"; then : 9676 eval $cacheid=yes 9677else 9678 eval $cacheid=no 9679fi 9680rm -f core conftest.err conftest.$ac_objext \ 9681 conftest$ac_exeext conftest.$ac_ext 9682fi 9683 9684 9685 CFLAGS="$xorg_testset_save_CFLAGS" 9686 9687 eval supported=\$$cacheid 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9689$as_echo "$supported" >&6; } 9690 if test "$supported" = "yes" ; then 9691 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9692 found="yes" 9693 fi 9694 fi 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710xorg_testset_save_CFLAGS="$CFLAGS" 9711 9712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9720/* end confdefs.h. */ 9721int i; 9722_ACEOF 9723if ac_fn_c_try_compile "$LINENO"; then : 9724 xorg_cv_cc_flag_unknown_warning_option=yes 9725else 9726 xorg_cv_cc_flag_unknown_warning_option=no 9727fi 9728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9729fi 9730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9733 CFLAGS="$xorg_testset_save_CFLAGS" 9734fi 9735 9736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9739 fi 9740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9744 $as_echo_n "(cached) " >&6 9745else 9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9747/* end confdefs.h. */ 9748int i; 9749_ACEOF 9750if ac_fn_c_try_compile "$LINENO"; then : 9751 xorg_cv_cc_flag_unused_command_line_argument=yes 9752else 9753 xorg_cv_cc_flag_unused_command_line_argument=no 9754fi 9755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9756fi 9757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9760 CFLAGS="$xorg_testset_save_CFLAGS" 9761fi 9762 9763found="no" 9764 9765 if test $found = "no" ; then 9766 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9768 fi 9769 9770 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9772 fi 9773 9774 CFLAGS="$CFLAGS -Waddress" 9775 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9777$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9778 cacheid=xorg_cv_cc_flag__Waddress 9779 if eval \${$cacheid+:} false; then : 9780 $as_echo_n "(cached) " >&6 9781else 9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9783/* end confdefs.h. */ 9784int i; 9785int 9786main () 9787{ 9788 9789 ; 9790 return 0; 9791} 9792_ACEOF 9793if ac_fn_c_try_link "$LINENO"; then : 9794 eval $cacheid=yes 9795else 9796 eval $cacheid=no 9797fi 9798rm -f core conftest.err conftest.$ac_objext \ 9799 conftest$ac_exeext conftest.$ac_ext 9800fi 9801 9802 9803 CFLAGS="$xorg_testset_save_CFLAGS" 9804 9805 eval supported=\$$cacheid 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9807$as_echo "$supported" >&6; } 9808 if test "$supported" = "yes" ; then 9809 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9810 found="yes" 9811 fi 9812 fi 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828xorg_testset_save_CFLAGS="$CFLAGS" 9829 9830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9835 $as_echo_n "(cached) " >&6 9836else 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839int i; 9840_ACEOF 9841if ac_fn_c_try_compile "$LINENO"; then : 9842 xorg_cv_cc_flag_unknown_warning_option=yes 9843else 9844 xorg_cv_cc_flag_unknown_warning_option=no 9845fi 9846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9847fi 9848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9851 CFLAGS="$xorg_testset_save_CFLAGS" 9852fi 9853 9854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9857 fi 9858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9862 $as_echo_n "(cached) " >&6 9863else 9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9865/* end confdefs.h. */ 9866int i; 9867_ACEOF 9868if ac_fn_c_try_compile "$LINENO"; then : 9869 xorg_cv_cc_flag_unused_command_line_argument=yes 9870else 9871 xorg_cv_cc_flag_unused_command_line_argument=no 9872fi 9873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9874fi 9875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9878 CFLAGS="$xorg_testset_save_CFLAGS" 9879fi 9880 9881found="no" 9882 9883 if test $found = "no" ; then 9884 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9886 fi 9887 9888 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9890 fi 9891 9892 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9893 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9895$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9896 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9897 if eval \${$cacheid+:} false; then : 9898 $as_echo_n "(cached) " >&6 9899else 9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9901/* end confdefs.h. */ 9902int i; 9903int 9904main () 9905{ 9906 9907 ; 9908 return 0; 9909} 9910_ACEOF 9911if ac_fn_c_try_link "$LINENO"; then : 9912 eval $cacheid=yes 9913else 9914 eval $cacheid=no 9915fi 9916rm -f core conftest.err conftest.$ac_objext \ 9917 conftest$ac_exeext conftest.$ac_ext 9918fi 9919 9920 9921 CFLAGS="$xorg_testset_save_CFLAGS" 9922 9923 eval supported=\$$cacheid 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9925$as_echo "$supported" >&6; } 9926 if test "$supported" = "yes" ; then 9927 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9928 found="yes" 9929 fi 9930 fi 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946xorg_testset_save_CFLAGS="$CFLAGS" 9947 9948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9953 $as_echo_n "(cached) " >&6 9954else 9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9956/* end confdefs.h. */ 9957int i; 9958_ACEOF 9959if ac_fn_c_try_compile "$LINENO"; then : 9960 xorg_cv_cc_flag_unknown_warning_option=yes 9961else 9962 xorg_cv_cc_flag_unknown_warning_option=no 9963fi 9964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9965fi 9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9969 CFLAGS="$xorg_testset_save_CFLAGS" 9970fi 9971 9972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9975 fi 9976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9980 $as_echo_n "(cached) " >&6 9981else 9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9983/* end confdefs.h. */ 9984int i; 9985_ACEOF 9986if ac_fn_c_try_compile "$LINENO"; then : 9987 xorg_cv_cc_flag_unused_command_line_argument=yes 9988else 9989 xorg_cv_cc_flag_unused_command_line_argument=no 9990fi 9991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9992fi 9993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9996 CFLAGS="$xorg_testset_save_CFLAGS" 9997fi 9998 9999found="no" 10000 10001 if test $found = "no" ; then 10002 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10004 fi 10005 10006 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10008 fi 10009 10010 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10011 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10013$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10014 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10015 if eval \${$cacheid+:} false; then : 10016 $as_echo_n "(cached) " >&6 10017else 10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10019/* end confdefs.h. */ 10020int i; 10021int 10022main () 10023{ 10024 10025 ; 10026 return 0; 10027} 10028_ACEOF 10029if ac_fn_c_try_link "$LINENO"; then : 10030 eval $cacheid=yes 10031else 10032 eval $cacheid=no 10033fi 10034rm -f core conftest.err conftest.$ac_objext \ 10035 conftest$ac_exeext conftest.$ac_ext 10036fi 10037 10038 10039 CFLAGS="$xorg_testset_save_CFLAGS" 10040 10041 eval supported=\$$cacheid 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10043$as_echo "$supported" >&6; } 10044 if test "$supported" = "yes" ; then 10045 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10046 found="yes" 10047 fi 10048 fi 10049 10050 10051fi 10052 10053 10054 10055 10056 10057 10058 10059 CWARNFLAGS="$BASE_CFLAGS" 10060 if test "x$GCC" = xyes ; then 10061 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10062 fi 10063 10064 10065 10066 10067 10068 10069 10070 10071# Check whether --enable-strict-compilation was given. 10072if test "${enable_strict_compilation+set}" = set; then : 10073 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10074else 10075 STRICT_COMPILE=no 10076fi 10077 10078 10079 10080 10081 10082 10083STRICT_CFLAGS="" 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097xorg_testset_save_CFLAGS="$CFLAGS" 10098 10099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10104 $as_echo_n "(cached) " >&6 10105else 10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10107/* end confdefs.h. */ 10108int i; 10109_ACEOF 10110if ac_fn_c_try_compile "$LINENO"; then : 10111 xorg_cv_cc_flag_unknown_warning_option=yes 10112else 10113 xorg_cv_cc_flag_unknown_warning_option=no 10114fi 10115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10116fi 10117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10120 CFLAGS="$xorg_testset_save_CFLAGS" 10121fi 10122 10123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10126 fi 10127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10131 $as_echo_n "(cached) " >&6 10132else 10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10134/* end confdefs.h. */ 10135int i; 10136_ACEOF 10137if ac_fn_c_try_compile "$LINENO"; then : 10138 xorg_cv_cc_flag_unused_command_line_argument=yes 10139else 10140 xorg_cv_cc_flag_unused_command_line_argument=no 10141fi 10142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10143fi 10144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10147 CFLAGS="$xorg_testset_save_CFLAGS" 10148fi 10149 10150found="no" 10151 10152 if test $found = "no" ; then 10153 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10155 fi 10156 10157 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10159 fi 10160 10161 CFLAGS="$CFLAGS -pedantic" 10162 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10164$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10165 cacheid=xorg_cv_cc_flag__pedantic 10166 if eval \${$cacheid+:} false; then : 10167 $as_echo_n "(cached) " >&6 10168else 10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10170/* end confdefs.h. */ 10171int i; 10172int 10173main () 10174{ 10175 10176 ; 10177 return 0; 10178} 10179_ACEOF 10180if ac_fn_c_try_link "$LINENO"; then : 10181 eval $cacheid=yes 10182else 10183 eval $cacheid=no 10184fi 10185rm -f core conftest.err conftest.$ac_objext \ 10186 conftest$ac_exeext conftest.$ac_ext 10187fi 10188 10189 10190 CFLAGS="$xorg_testset_save_CFLAGS" 10191 10192 eval supported=\$$cacheid 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10194$as_echo "$supported" >&6; } 10195 if test "$supported" = "yes" ; then 10196 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10197 found="yes" 10198 fi 10199 fi 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215xorg_testset_save_CFLAGS="$CFLAGS" 10216 10217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10222 $as_echo_n "(cached) " >&6 10223else 10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10225/* end confdefs.h. */ 10226int i; 10227_ACEOF 10228if ac_fn_c_try_compile "$LINENO"; then : 10229 xorg_cv_cc_flag_unknown_warning_option=yes 10230else 10231 xorg_cv_cc_flag_unknown_warning_option=no 10232fi 10233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10234fi 10235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10238 CFLAGS="$xorg_testset_save_CFLAGS" 10239fi 10240 10241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10244 fi 10245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10249 $as_echo_n "(cached) " >&6 10250else 10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10252/* end confdefs.h. */ 10253int i; 10254_ACEOF 10255if ac_fn_c_try_compile "$LINENO"; then : 10256 xorg_cv_cc_flag_unused_command_line_argument=yes 10257else 10258 xorg_cv_cc_flag_unused_command_line_argument=no 10259fi 10260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10261fi 10262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10265 CFLAGS="$xorg_testset_save_CFLAGS" 10266fi 10267 10268found="no" 10269 10270 if test $found = "no" ; then 10271 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10273 fi 10274 10275 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10277 fi 10278 10279 CFLAGS="$CFLAGS -Werror" 10280 10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10282$as_echo_n "checking if $CC supports -Werror... " >&6; } 10283 cacheid=xorg_cv_cc_flag__Werror 10284 if eval \${$cacheid+:} false; then : 10285 $as_echo_n "(cached) " >&6 10286else 10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10288/* end confdefs.h. */ 10289int i; 10290int 10291main () 10292{ 10293 10294 ; 10295 return 0; 10296} 10297_ACEOF 10298if ac_fn_c_try_link "$LINENO"; then : 10299 eval $cacheid=yes 10300else 10301 eval $cacheid=no 10302fi 10303rm -f core conftest.err conftest.$ac_objext \ 10304 conftest$ac_exeext conftest.$ac_ext 10305fi 10306 10307 10308 CFLAGS="$xorg_testset_save_CFLAGS" 10309 10310 eval supported=\$$cacheid 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10312$as_echo "$supported" >&6; } 10313 if test "$supported" = "yes" ; then 10314 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10315 found="yes" 10316 fi 10317 fi 10318 10319 if test $found = "no" ; then 10320 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10322 fi 10323 10324 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10326 fi 10327 10328 CFLAGS="$CFLAGS -errwarn" 10329 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10331$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10332 cacheid=xorg_cv_cc_flag__errwarn 10333 if eval \${$cacheid+:} false; then : 10334 $as_echo_n "(cached) " >&6 10335else 10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10337/* end confdefs.h. */ 10338int i; 10339int 10340main () 10341{ 10342 10343 ; 10344 return 0; 10345} 10346_ACEOF 10347if ac_fn_c_try_link "$LINENO"; then : 10348 eval $cacheid=yes 10349else 10350 eval $cacheid=no 10351fi 10352rm -f core conftest.err conftest.$ac_objext \ 10353 conftest$ac_exeext conftest.$ac_ext 10354fi 10355 10356 10357 CFLAGS="$xorg_testset_save_CFLAGS" 10358 10359 eval supported=\$$cacheid 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10361$as_echo "$supported" >&6; } 10362 if test "$supported" = "yes" ; then 10363 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10364 found="yes" 10365 fi 10366 fi 10367 10368 10369 10370# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10371# activate it with -Werror, so we add it here explicitly. 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385xorg_testset_save_CFLAGS="$CFLAGS" 10386 10387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10392 $as_echo_n "(cached) " >&6 10393else 10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10395/* end confdefs.h. */ 10396int i; 10397_ACEOF 10398if ac_fn_c_try_compile "$LINENO"; then : 10399 xorg_cv_cc_flag_unknown_warning_option=yes 10400else 10401 xorg_cv_cc_flag_unknown_warning_option=no 10402fi 10403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10404fi 10405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10408 CFLAGS="$xorg_testset_save_CFLAGS" 10409fi 10410 10411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10414 fi 10415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10419 $as_echo_n "(cached) " >&6 10420else 10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423int i; 10424_ACEOF 10425if ac_fn_c_try_compile "$LINENO"; then : 10426 xorg_cv_cc_flag_unused_command_line_argument=yes 10427else 10428 xorg_cv_cc_flag_unused_command_line_argument=no 10429fi 10430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10431fi 10432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10435 CFLAGS="$xorg_testset_save_CFLAGS" 10436fi 10437 10438found="no" 10439 10440 if test $found = "no" ; then 10441 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10443 fi 10444 10445 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10447 fi 10448 10449 CFLAGS="$CFLAGS -Werror=attributes" 10450 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10452$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10453 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10454 if eval \${$cacheid+:} false; then : 10455 $as_echo_n "(cached) " >&6 10456else 10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10458/* end confdefs.h. */ 10459int i; 10460int 10461main () 10462{ 10463 10464 ; 10465 return 0; 10466} 10467_ACEOF 10468if ac_fn_c_try_link "$LINENO"; then : 10469 eval $cacheid=yes 10470else 10471 eval $cacheid=no 10472fi 10473rm -f core conftest.err conftest.$ac_objext \ 10474 conftest$ac_exeext conftest.$ac_ext 10475fi 10476 10477 10478 CFLAGS="$xorg_testset_save_CFLAGS" 10479 10480 eval supported=\$$cacheid 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10482$as_echo "$supported" >&6; } 10483 if test "$supported" = "yes" ; then 10484 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10485 found="yes" 10486 fi 10487 fi 10488 10489 10490 10491if test "x$STRICT_COMPILE" = "xyes"; then 10492 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10493 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10494fi 10495 10496 10497 10498 10499 10500 10501cat >>confdefs.h <<_ACEOF 10502#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10503_ACEOF 10504 10505 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10506 if test "x$PVM" = "x"; then 10507 PVM="0" 10508 fi 10509 10510cat >>confdefs.h <<_ACEOF 10511#define PACKAGE_VERSION_MINOR $PVM 10512_ACEOF 10513 10514 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10515 if test "x$PVP" = "x"; then 10516 PVP="0" 10517 fi 10518 10519cat >>confdefs.h <<_ACEOF 10520#define PACKAGE_VERSION_PATCHLEVEL $PVP 10521_ACEOF 10522 10523 10524 10525CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10526mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10527|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10528echo 'git directory not found: installing possibly empty changelog.' >&2)" 10529 10530 10531 10532 10533macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10534INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10535mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10536|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10537echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10538 10539 10540 10541 10542 10543 10544if test x$APP_MAN_SUFFIX = x ; then 10545 APP_MAN_SUFFIX=1 10546fi 10547if test x$APP_MAN_DIR = x ; then 10548 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10549fi 10550 10551if test x$LIB_MAN_SUFFIX = x ; then 10552 LIB_MAN_SUFFIX=3 10553fi 10554if test x$LIB_MAN_DIR = x ; then 10555 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10556fi 10557 10558if test x$FILE_MAN_SUFFIX = x ; then 10559 case $host_os in 10560 solaris*) FILE_MAN_SUFFIX=4 ;; 10561 *) FILE_MAN_SUFFIX=5 ;; 10562 esac 10563fi 10564if test x$FILE_MAN_DIR = x ; then 10565 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10566fi 10567 10568if test x$MISC_MAN_SUFFIX = x ; then 10569 case $host_os in 10570 solaris*) MISC_MAN_SUFFIX=5 ;; 10571 *) MISC_MAN_SUFFIX=7 ;; 10572 esac 10573fi 10574if test x$MISC_MAN_DIR = x ; then 10575 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10576fi 10577 10578if test x$DRIVER_MAN_SUFFIX = x ; then 10579 case $host_os in 10580 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10581 *) DRIVER_MAN_SUFFIX=4 ;; 10582 esac 10583fi 10584if test x$DRIVER_MAN_DIR = x ; then 10585 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10586fi 10587 10588if test x$ADMIN_MAN_SUFFIX = x ; then 10589 case $host_os in 10590 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10591 *) ADMIN_MAN_SUFFIX=8 ;; 10592 esac 10593fi 10594if test x$ADMIN_MAN_DIR = x ; then 10595 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10596fi 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612XORG_MAN_PAGE="X Version 11" 10613 10614MAN_SUBSTS="\ 10615 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10616 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10617 -e 's|__xservername__|Xorg|g' \ 10618 -e 's|__xconfigfile__|xorg.conf|g' \ 10619 -e 's|__projectroot__|\$(prefix)|g' \ 10620 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10621 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10622 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10623 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10624 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10625 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10626 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10627 10628 10629 10630# Check whether --enable-silent-rules was given. 10631if test "${enable_silent_rules+set}" = set; then : 10632 enableval=$enable_silent_rules; 10633fi 10634 10635case $enable_silent_rules in # ((( 10636 yes) AM_DEFAULT_VERBOSITY=0;; 10637 no) AM_DEFAULT_VERBOSITY=1;; 10638 *) AM_DEFAULT_VERBOSITY=0;; 10639esac 10640am_make=${MAKE-make} 10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10642$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10643if ${am_cv_make_support_nested_variables+:} false; then : 10644 $as_echo_n "(cached) " >&6 10645else 10646 if $as_echo 'TRUE=$(BAR$(V)) 10647BAR0=false 10648BAR1=true 10649V=1 10650am__doit: 10651 @$(TRUE) 10652.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10653 am_cv_make_support_nested_variables=yes 10654else 10655 am_cv_make_support_nested_variables=no 10656fi 10657fi 10658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10659$as_echo "$am_cv_make_support_nested_variables" >&6; } 10660if test $am_cv_make_support_nested_variables = yes; then 10661 AM_V='$(V)' 10662 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10663else 10664 AM_V=$AM_DEFAULT_VERBOSITY 10665 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10666fi 10667AM_BACKSLASH='\' 10668 10669 10670 10671for ac_func in strcasecmp 10672do : 10673 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 10674if test "x$ac_cv_func_strcasecmp" = xyes; then : 10675 cat >>confdefs.h <<_ACEOF 10676#define HAVE_STRCASECMP 1 10677_ACEOF 10678 10679fi 10680done 10681 10682 10683# Checks for pkg-config packages 10684 10685pkg_failed=no 10686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XREFRESH" >&5 10687$as_echo_n "checking for XREFRESH... " >&6; } 10688 10689if test -n "$XREFRESH_CFLAGS"; then 10690 pkg_cv_XREFRESH_CFLAGS="$XREFRESH_CFLAGS" 10691 elif test -n "$PKG_CONFIG"; then 10692 if test -n "$PKG_CONFIG" && \ 10693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 10694 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 10695 ac_status=$? 10696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10697 test $ac_status = 0; }; then 10698 pkg_cv_XREFRESH_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null` 10699else 10700 pkg_failed=yes 10701fi 10702 else 10703 pkg_failed=untried 10704fi 10705if test -n "$XREFRESH_LIBS"; then 10706 pkg_cv_XREFRESH_LIBS="$XREFRESH_LIBS" 10707 elif test -n "$PKG_CONFIG"; then 10708 if test -n "$PKG_CONFIG" && \ 10709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 10710 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 10711 ac_status=$? 10712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10713 test $ac_status = 0; }; then 10714 pkg_cv_XREFRESH_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null` 10715else 10716 pkg_failed=yes 10717fi 10718 else 10719 pkg_failed=untried 10720fi 10721 10722 10723 10724if test $pkg_failed = yes; then 10725 10726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10727 _pkg_short_errors_supported=yes 10728else 10729 _pkg_short_errors_supported=no 10730fi 10731 if test $_pkg_short_errors_supported = yes; then 10732 XREFRESH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1` 10733 else 10734 XREFRESH_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1` 10735 fi 10736 # Put the nasty error message in config.log where it belongs 10737 echo "$XREFRESH_PKG_ERRORS" >&5 10738 10739 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met: 10740 10741$XREFRESH_PKG_ERRORS 10742 10743Consider adjusting the PKG_CONFIG_PATH environment variable if you 10744installed software in a non-standard prefix. 10745 10746Alternatively, you may set the environment variables XREFRESH_CFLAGS 10747and XREFRESH_LIBS to avoid the need to call pkg-config. 10748See the pkg-config man page for more details. 10749" "$LINENO" 5 10750elif test $pkg_failed = untried; then 10751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10753as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10754is in your PATH or set the PKG_CONFIG environment variable to the full 10755path to pkg-config. 10756 10757Alternatively, you may set the environment variables XREFRESH_CFLAGS 10758and XREFRESH_LIBS to avoid the need to call pkg-config. 10759See the pkg-config man page for more details. 10760 10761To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10762See \`config.log' for more details" "$LINENO" 5; } 10763else 10764 XREFRESH_CFLAGS=$pkg_cv_XREFRESH_CFLAGS 10765 XREFRESH_LIBS=$pkg_cv_XREFRESH_LIBS 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10767$as_echo "yes" >&6; } 10768 : 10769fi 10770 10771ac_config_files="$ac_config_files Makefile man/Makefile" 10772 10773cat >confcache <<\_ACEOF 10774# This file is a shell script that caches the results of configure 10775# tests run on this system so they can be shared between configure 10776# scripts and configure runs, see configure's option --config-cache. 10777# It is not useful on other systems. If it contains results you don't 10778# want to keep, you may remove or edit it. 10779# 10780# config.status only pays attention to the cache file if you give it 10781# the --recheck option to rerun configure. 10782# 10783# `ac_cv_env_foo' variables (set or unset) will be overridden when 10784# loading this file, other *unset* `ac_cv_foo' will be assigned the 10785# following values. 10786 10787_ACEOF 10788 10789# The following way of writing the cache mishandles newlines in values, 10790# but we know of no workaround that is simple, portable, and efficient. 10791# So, we kill variables containing newlines. 10792# Ultrix sh set writes to stderr and can't be redirected directly, 10793# and sets the high bit in the cache file unless we assign to the vars. 10794( 10795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10796 eval ac_val=\$$ac_var 10797 case $ac_val in #( 10798 *${as_nl}*) 10799 case $ac_var in #( 10800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10801$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10802 esac 10803 case $ac_var in #( 10804 _ | IFS | as_nl) ;; #( 10805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10806 *) { eval $ac_var=; unset $ac_var;} ;; 10807 esac ;; 10808 esac 10809 done 10810 10811 (set) 2>&1 | 10812 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10813 *${as_nl}ac_space=\ *) 10814 # `set' does not quote correctly, so add quotes: double-quote 10815 # substitution turns \\\\ into \\, and sed turns \\ into \. 10816 sed -n \ 10817 "s/'/'\\\\''/g; 10818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10819 ;; #( 10820 *) 10821 # `set' quotes correctly as required by POSIX, so do not add quotes. 10822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10823 ;; 10824 esac | 10825 sort 10826) | 10827 sed ' 10828 /^ac_cv_env_/b end 10829 t clear 10830 :clear 10831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10832 t end 10833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10834 :end' >>confcache 10835if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10836 if test -w "$cache_file"; then 10837 if test "x$cache_file" != "x/dev/null"; then 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10839$as_echo "$as_me: updating cache $cache_file" >&6;} 10840 if test ! -f "$cache_file" || test -h "$cache_file"; then 10841 cat confcache >"$cache_file" 10842 else 10843 case $cache_file in #( 10844 */* | ?:*) 10845 mv -f confcache "$cache_file"$$ && 10846 mv -f "$cache_file"$$ "$cache_file" ;; #( 10847 *) 10848 mv -f confcache "$cache_file" ;; 10849 esac 10850 fi 10851 fi 10852 else 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10854$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10855 fi 10856fi 10857rm -f confcache 10858 10859test "x$prefix" = xNONE && prefix=$ac_default_prefix 10860# Let make expand exec_prefix. 10861test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10862 10863DEFS=-DHAVE_CONFIG_H 10864 10865ac_libobjs= 10866ac_ltlibobjs= 10867U= 10868for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10869 # 1. Remove the extension, and $U if already installed. 10870 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10871 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10873 # will be set to the directory where LIBOBJS objects are built. 10874 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10875 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10876done 10877LIBOBJS=$ac_libobjs 10878 10879LTLIBOBJS=$ac_ltlibobjs 10880 10881 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10883$as_echo_n "checking that generated files are newer than configure... " >&6; } 10884 if test -n "$am_sleep_pid"; then 10885 # Hide warnings about reused PIDs. 10886 wait $am_sleep_pid 2>/dev/null 10887 fi 10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10889$as_echo "done" >&6; } 10890if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10891 as_fn_error $? "conditional \"AMDEP\" was never defined. 10892Usually this means the macro was only invoked conditionally." "$LINENO" 5 10893fi 10894if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10895 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10896Usually this means the macro was only invoked conditionally." "$LINENO" 5 10897fi 10898 if test -n "$EXEEXT"; then 10899 am__EXEEXT_TRUE= 10900 am__EXEEXT_FALSE='#' 10901else 10902 am__EXEEXT_TRUE='#' 10903 am__EXEEXT_FALSE= 10904fi 10905 10906if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10907 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10908Usually this means the macro was only invoked conditionally." "$LINENO" 5 10909fi 10910 10911: "${CONFIG_STATUS=./config.status}" 10912ac_write_fail=0 10913ac_clean_files_save=$ac_clean_files 10914ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10915{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10916$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10917as_write_fail=0 10918cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10919#! $SHELL 10920# Generated by $as_me. 10921# Run this file to recreate the current configuration. 10922# Compiler output produced by configure, useful for debugging 10923# configure, is in config.log if it exists. 10924 10925debug=false 10926ac_cs_recheck=false 10927ac_cs_silent=false 10928 10929SHELL=\${CONFIG_SHELL-$SHELL} 10930export SHELL 10931_ASEOF 10932cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10933## -------------------- ## 10934## M4sh Initialization. ## 10935## -------------------- ## 10936 10937# Be more Bourne compatible 10938DUALCASE=1; export DUALCASE # for MKS sh 10939if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10940 emulate sh 10941 NULLCMD=: 10942 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10943 # is contrary to our usage. Disable this feature. 10944 alias -g '${1+"$@"}'='"$@"' 10945 setopt NO_GLOB_SUBST 10946else 10947 case `(set -o) 2>/dev/null` in #( 10948 *posix*) : 10949 set -o posix ;; #( 10950 *) : 10951 ;; 10952esac 10953fi 10954 10955 10956as_nl=' 10957' 10958export as_nl 10959# Printing a long string crashes Solaris 7 /usr/bin/printf. 10960as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10961as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10962as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10963# Prefer a ksh shell builtin over an external printf program on Solaris, 10964# but without wasting forks for bash or zsh. 10965if test -z "$BASH_VERSION$ZSH_VERSION" \ 10966 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10967 as_echo='print -r --' 10968 as_echo_n='print -rn --' 10969elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10970 as_echo='printf %s\n' 10971 as_echo_n='printf %s' 10972else 10973 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10974 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10975 as_echo_n='/usr/ucb/echo -n' 10976 else 10977 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10978 as_echo_n_body='eval 10979 arg=$1; 10980 case $arg in #( 10981 *"$as_nl"*) 10982 expr "X$arg" : "X\\(.*\\)$as_nl"; 10983 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10984 esac; 10985 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10986 ' 10987 export as_echo_n_body 10988 as_echo_n='sh -c $as_echo_n_body as_echo' 10989 fi 10990 export as_echo_body 10991 as_echo='sh -c $as_echo_body as_echo' 10992fi 10993 10994# The user is always right. 10995if test "${PATH_SEPARATOR+set}" != set; then 10996 PATH_SEPARATOR=: 10997 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10998 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10999 PATH_SEPARATOR=';' 11000 } 11001fi 11002 11003 11004# IFS 11005# We need space, tab and new line, in precisely that order. Quoting is 11006# there to prevent editors from complaining about space-tab. 11007# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11008# splitting by setting IFS to empty value.) 11009IFS=" "" $as_nl" 11010 11011# Find who we are. Look in the path if we contain no directory separator. 11012as_myself= 11013case $0 in #(( 11014 *[\\/]* ) as_myself=$0 ;; 11015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11016for as_dir in $PATH 11017do 11018 IFS=$as_save_IFS 11019 test -z "$as_dir" && as_dir=. 11020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11021 done 11022IFS=$as_save_IFS 11023 11024 ;; 11025esac 11026# We did not find ourselves, most probably we were run as `sh COMMAND' 11027# in which case we are not to be found in the path. 11028if test "x$as_myself" = x; then 11029 as_myself=$0 11030fi 11031if test ! -f "$as_myself"; then 11032 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11033 exit 1 11034fi 11035 11036# Unset variables that we do not need and which cause bugs (e.g. in 11037# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11038# suppresses any "Segmentation fault" message there. '((' could 11039# trigger a bug in pdksh 5.2.14. 11040for as_var in BASH_ENV ENV MAIL MAILPATH 11041do eval test x\${$as_var+set} = xset \ 11042 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11043done 11044PS1='$ ' 11045PS2='> ' 11046PS4='+ ' 11047 11048# NLS nuisances. 11049LC_ALL=C 11050export LC_ALL 11051LANGUAGE=C 11052export LANGUAGE 11053 11054# CDPATH. 11055(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11056 11057 11058# as_fn_error STATUS ERROR [LINENO LOG_FD] 11059# ---------------------------------------- 11060# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11061# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11062# script with STATUS, using 1 if that was 0. 11063as_fn_error () 11064{ 11065 as_status=$1; test $as_status -eq 0 && as_status=1 11066 if test "$4"; then 11067 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11068 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11069 fi 11070 $as_echo "$as_me: error: $2" >&2 11071 as_fn_exit $as_status 11072} # as_fn_error 11073 11074 11075# as_fn_set_status STATUS 11076# ----------------------- 11077# Set $? to STATUS, without forking. 11078as_fn_set_status () 11079{ 11080 return $1 11081} # as_fn_set_status 11082 11083# as_fn_exit STATUS 11084# ----------------- 11085# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11086as_fn_exit () 11087{ 11088 set +e 11089 as_fn_set_status $1 11090 exit $1 11091} # as_fn_exit 11092 11093# as_fn_unset VAR 11094# --------------- 11095# Portably unset VAR. 11096as_fn_unset () 11097{ 11098 { eval $1=; unset $1;} 11099} 11100as_unset=as_fn_unset 11101# as_fn_append VAR VALUE 11102# ---------------------- 11103# Append the text in VALUE to the end of the definition contained in VAR. Take 11104# advantage of any shell optimizations that allow amortized linear growth over 11105# repeated appends, instead of the typical quadratic growth present in naive 11106# implementations. 11107if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11108 eval 'as_fn_append () 11109 { 11110 eval $1+=\$2 11111 }' 11112else 11113 as_fn_append () 11114 { 11115 eval $1=\$$1\$2 11116 } 11117fi # as_fn_append 11118 11119# as_fn_arith ARG... 11120# ------------------ 11121# Perform arithmetic evaluation on the ARGs, and store the result in the 11122# global $as_val. Take advantage of shells that can avoid forks. The arguments 11123# must be portable across $(()) and expr. 11124if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11125 eval 'as_fn_arith () 11126 { 11127 as_val=$(( $* )) 11128 }' 11129else 11130 as_fn_arith () 11131 { 11132 as_val=`expr "$@" || test $? -eq 1` 11133 } 11134fi # as_fn_arith 11135 11136 11137if expr a : '\(a\)' >/dev/null 2>&1 && 11138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11139 as_expr=expr 11140else 11141 as_expr=false 11142fi 11143 11144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11145 as_basename=basename 11146else 11147 as_basename=false 11148fi 11149 11150if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11151 as_dirname=dirname 11152else 11153 as_dirname=false 11154fi 11155 11156as_me=`$as_basename -- "$0" || 11157$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11158 X"$0" : 'X\(//\)$' \| \ 11159 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11160$as_echo X/"$0" | 11161 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11162 s//\1/ 11163 q 11164 } 11165 /^X\/\(\/\/\)$/{ 11166 s//\1/ 11167 q 11168 } 11169 /^X\/\(\/\).*/{ 11170 s//\1/ 11171 q 11172 } 11173 s/.*/./; q'` 11174 11175# Avoid depending upon Character Ranges. 11176as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11177as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11178as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11179as_cr_digits='0123456789' 11180as_cr_alnum=$as_cr_Letters$as_cr_digits 11181 11182ECHO_C= ECHO_N= ECHO_T= 11183case `echo -n x` in #((((( 11184-n*) 11185 case `echo 'xy\c'` in 11186 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11187 xy) ECHO_C='\c';; 11188 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11189 ECHO_T=' ';; 11190 esac;; 11191*) 11192 ECHO_N='-n';; 11193esac 11194 11195rm -f conf$$ conf$$.exe conf$$.file 11196if test -d conf$$.dir; then 11197 rm -f conf$$.dir/conf$$.file 11198else 11199 rm -f conf$$.dir 11200 mkdir conf$$.dir 2>/dev/null 11201fi 11202if (echo >conf$$.file) 2>/dev/null; then 11203 if ln -s conf$$.file conf$$ 2>/dev/null; then 11204 as_ln_s='ln -s' 11205 # ... but there are two gotchas: 11206 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11207 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11208 # In both cases, we have to default to `cp -p'. 11209 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11210 as_ln_s='cp -p' 11211 elif ln conf$$.file conf$$ 2>/dev/null; then 11212 as_ln_s=ln 11213 else 11214 as_ln_s='cp -p' 11215 fi 11216else 11217 as_ln_s='cp -p' 11218fi 11219rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11220rmdir conf$$.dir 2>/dev/null 11221 11222 11223# as_fn_mkdir_p 11224# ------------- 11225# Create "$as_dir" as a directory, including parents if necessary. 11226as_fn_mkdir_p () 11227{ 11228 11229 case $as_dir in #( 11230 -*) as_dir=./$as_dir;; 11231 esac 11232 test -d "$as_dir" || eval $as_mkdir_p || { 11233 as_dirs= 11234 while :; do 11235 case $as_dir in #( 11236 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11237 *) as_qdir=$as_dir;; 11238 esac 11239 as_dirs="'$as_qdir' $as_dirs" 11240 as_dir=`$as_dirname -- "$as_dir" || 11241$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11242 X"$as_dir" : 'X\(//\)[^/]' \| \ 11243 X"$as_dir" : 'X\(//\)$' \| \ 11244 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11245$as_echo X"$as_dir" | 11246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11247 s//\1/ 11248 q 11249 } 11250 /^X\(\/\/\)[^/].*/{ 11251 s//\1/ 11252 q 11253 } 11254 /^X\(\/\/\)$/{ 11255 s//\1/ 11256 q 11257 } 11258 /^X\(\/\).*/{ 11259 s//\1/ 11260 q 11261 } 11262 s/.*/./; q'` 11263 test -d "$as_dir" && break 11264 done 11265 test -z "$as_dirs" || eval "mkdir $as_dirs" 11266 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11267 11268 11269} # as_fn_mkdir_p 11270if mkdir -p . 2>/dev/null; then 11271 as_mkdir_p='mkdir -p "$as_dir"' 11272else 11273 test -d ./-p && rmdir ./-p 11274 as_mkdir_p=false 11275fi 11276 11277if test -x / >/dev/null 2>&1; then 11278 as_test_x='test -x' 11279else 11280 if ls -dL / >/dev/null 2>&1; then 11281 as_ls_L_option=L 11282 else 11283 as_ls_L_option= 11284 fi 11285 as_test_x=' 11286 eval sh -c '\'' 11287 if test -d "$1"; then 11288 test -d "$1/."; 11289 else 11290 case $1 in #( 11291 -*)set "./$1";; 11292 esac; 11293 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11294 ???[sx]*):;;*)false;;esac;fi 11295 '\'' sh 11296 ' 11297fi 11298as_executable_p=$as_test_x 11299 11300# Sed expression to map a string onto a valid CPP name. 11301as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11302 11303# Sed expression to map a string onto a valid variable name. 11304as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11305 11306 11307exec 6>&1 11308## ----------------------------------- ## 11309## Main body of $CONFIG_STATUS script. ## 11310## ----------------------------------- ## 11311_ASEOF 11312test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11313 11314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11315# Save the log message, to keep $0 and so on meaningful, and to 11316# report actual input values of CONFIG_FILES etc. instead of their 11317# values after options handling. 11318ac_log=" 11319This file was extended by xrefresh $as_me 1.0.5, which was 11320generated by GNU Autoconf 2.68. Invocation command line was 11321 11322 CONFIG_FILES = $CONFIG_FILES 11323 CONFIG_HEADERS = $CONFIG_HEADERS 11324 CONFIG_LINKS = $CONFIG_LINKS 11325 CONFIG_COMMANDS = $CONFIG_COMMANDS 11326 $ $0 $@ 11327 11328on `(hostname || uname -n) 2>/dev/null | sed 1q` 11329" 11330 11331_ACEOF 11332 11333case $ac_config_files in *" 11334"*) set x $ac_config_files; shift; ac_config_files=$*;; 11335esac 11336 11337case $ac_config_headers in *" 11338"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11339esac 11340 11341 11342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11343# Files that config.status was made for. 11344config_files="$ac_config_files" 11345config_headers="$ac_config_headers" 11346config_commands="$ac_config_commands" 11347 11348_ACEOF 11349 11350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11351ac_cs_usage="\ 11352\`$as_me' instantiates files and other configuration actions 11353from templates according to the current configuration. Unless the files 11354and actions are specified as TAGs, all are instantiated by default. 11355 11356Usage: $0 [OPTION]... [TAG]... 11357 11358 -h, --help print this help, then exit 11359 -V, --version print version number and configuration settings, then exit 11360 --config print configuration, then exit 11361 -q, --quiet, --silent 11362 do not print progress messages 11363 -d, --debug don't remove temporary files 11364 --recheck update $as_me by reconfiguring in the same conditions 11365 --file=FILE[:TEMPLATE] 11366 instantiate the configuration file FILE 11367 --header=FILE[:TEMPLATE] 11368 instantiate the configuration header FILE 11369 11370Configuration files: 11371$config_files 11372 11373Configuration headers: 11374$config_headers 11375 11376Configuration commands: 11377$config_commands 11378 11379Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11380 11381_ACEOF 11382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11383ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11384ac_cs_version="\\ 11385xrefresh config.status 1.0.5 11386configured by $0, generated by GNU Autoconf 2.68, 11387 with options \\"\$ac_cs_config\\" 11388 11389Copyright (C) 2010 Free Software Foundation, Inc. 11390This config.status script is free software; the Free Software Foundation 11391gives unlimited permission to copy, distribute and modify it." 11392 11393ac_pwd='$ac_pwd' 11394srcdir='$srcdir' 11395INSTALL='$INSTALL' 11396MKDIR_P='$MKDIR_P' 11397AWK='$AWK' 11398test -n "\$AWK" || AWK=awk 11399_ACEOF 11400 11401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11402# The default lists apply if the user does not specify any file. 11403ac_need_defaults=: 11404while test $# != 0 11405do 11406 case $1 in 11407 --*=?*) 11408 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11409 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11410 ac_shift=: 11411 ;; 11412 --*=) 11413 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11414 ac_optarg= 11415 ac_shift=: 11416 ;; 11417 *) 11418 ac_option=$1 11419 ac_optarg=$2 11420 ac_shift=shift 11421 ;; 11422 esac 11423 11424 case $ac_option in 11425 # Handling of the options. 11426 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11427 ac_cs_recheck=: ;; 11428 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11429 $as_echo "$ac_cs_version"; exit ;; 11430 --config | --confi | --conf | --con | --co | --c ) 11431 $as_echo "$ac_cs_config"; exit ;; 11432 --debug | --debu | --deb | --de | --d | -d ) 11433 debug=: ;; 11434 --file | --fil | --fi | --f ) 11435 $ac_shift 11436 case $ac_optarg in 11437 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11438 '') as_fn_error $? "missing file argument" ;; 11439 esac 11440 as_fn_append CONFIG_FILES " '$ac_optarg'" 11441 ac_need_defaults=false;; 11442 --header | --heade | --head | --hea ) 11443 $ac_shift 11444 case $ac_optarg in 11445 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11446 esac 11447 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11448 ac_need_defaults=false;; 11449 --he | --h) 11450 # Conflict between --help and --header 11451 as_fn_error $? "ambiguous option: \`$1' 11452Try \`$0 --help' for more information.";; 11453 --help | --hel | -h ) 11454 $as_echo "$ac_cs_usage"; exit ;; 11455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11456 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11457 ac_cs_silent=: ;; 11458 11459 # This is an error. 11460 -*) as_fn_error $? "unrecognized option: \`$1' 11461Try \`$0 --help' for more information." ;; 11462 11463 *) as_fn_append ac_config_targets " $1" 11464 ac_need_defaults=false ;; 11465 11466 esac 11467 shift 11468done 11469 11470ac_configure_extra_args= 11471 11472if $ac_cs_silent; then 11473 exec 6>/dev/null 11474 ac_configure_extra_args="$ac_configure_extra_args --silent" 11475fi 11476 11477_ACEOF 11478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11479if \$ac_cs_recheck; then 11480 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11481 shift 11482 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11483 CONFIG_SHELL='$SHELL' 11484 export CONFIG_SHELL 11485 exec "\$@" 11486fi 11487 11488_ACEOF 11489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11490exec 5>>config.log 11491{ 11492 echo 11493 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11494## Running $as_me. ## 11495_ASBOX 11496 $as_echo "$ac_log" 11497} >&5 11498 11499_ACEOF 11500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11501# 11502# INIT-COMMANDS 11503# 11504AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11505 11506_ACEOF 11507 11508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11509 11510# Handling of arguments. 11511for ac_config_target in $ac_config_targets 11512do 11513 case $ac_config_target in 11514 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11515 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11516 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11517 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11518 11519 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11520 esac 11521done 11522 11523 11524# If the user did not use the arguments to specify the items to instantiate, 11525# then the envvar interface is used. Set only those that are not. 11526# We use the long form for the default assignment because of an extremely 11527# bizarre bug on SunOS 4.1.3. 11528if $ac_need_defaults; then 11529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11530 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11531 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11532fi 11533 11534# Have a temporary directory for convenience. Make it in the build tree 11535# simply because there is no reason against having it here, and in addition, 11536# creating and moving files from /tmp can sometimes cause problems. 11537# Hook for its removal unless debugging. 11538# Note that there is a small window in which the directory will not be cleaned: 11539# after its creation but before its name has been assigned to `$tmp'. 11540$debug || 11541{ 11542 tmp= ac_tmp= 11543 trap 'exit_status=$? 11544 : "${ac_tmp:=$tmp}" 11545 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11546' 0 11547 trap 'as_fn_exit 1' 1 2 13 15 11548} 11549# Create a (secure) tmp directory for tmp files. 11550 11551{ 11552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11553 test -d "$tmp" 11554} || 11555{ 11556 tmp=./conf$$-$RANDOM 11557 (umask 077 && mkdir "$tmp") 11558} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11559ac_tmp=$tmp 11560 11561# Set up the scripts for CONFIG_FILES section. 11562# No need to generate them if there are no CONFIG_FILES. 11563# This happens for instance with `./config.status config.h'. 11564if test -n "$CONFIG_FILES"; then 11565 11566 11567ac_cr=`echo X | tr X '\015'` 11568# On cygwin, bash can eat \r inside `` if the user requested igncr. 11569# But we know of no other shell where ac_cr would be empty at this 11570# point, so we can use a bashism as a fallback. 11571if test "x$ac_cr" = x; then 11572 eval ac_cr=\$\'\\r\' 11573fi 11574ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11575if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11576 ac_cs_awk_cr='\\r' 11577else 11578 ac_cs_awk_cr=$ac_cr 11579fi 11580 11581echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11582_ACEOF 11583 11584 11585{ 11586 echo "cat >conf$$subs.awk <<_ACEOF" && 11587 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11588 echo "_ACEOF" 11589} >conf$$subs.sh || 11590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11591ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11592ac_delim='%!_!# ' 11593for ac_last_try in false false false false false :; do 11594 . ./conf$$subs.sh || 11595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11596 11597 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11598 if test $ac_delim_n = $ac_delim_num; then 11599 break 11600 elif $ac_last_try; then 11601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11602 else 11603 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11604 fi 11605done 11606rm -f conf$$subs.sh 11607 11608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11609cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11610_ACEOF 11611sed -n ' 11612h 11613s/^/S["/; s/!.*/"]=/ 11614p 11615g 11616s/^[^!]*!// 11617:repl 11618t repl 11619s/'"$ac_delim"'$// 11620t delim 11621:nl 11622h 11623s/\(.\{148\}\)..*/\1/ 11624t more1 11625s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11626p 11627n 11628b repl 11629:more1 11630s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11631p 11632g 11633s/.\{148\}// 11634t nl 11635:delim 11636h 11637s/\(.\{148\}\)..*/\1/ 11638t more2 11639s/["\\]/\\&/g; s/^/"/; s/$/"/ 11640p 11641b 11642:more2 11643s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11644p 11645g 11646s/.\{148\}// 11647t delim 11648' <conf$$subs.awk | sed ' 11649/^[^""]/{ 11650 N 11651 s/\n// 11652} 11653' >>$CONFIG_STATUS || ac_write_fail=1 11654rm -f conf$$subs.awk 11655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11656_ACAWK 11657cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11658 for (key in S) S_is_set[key] = 1 11659 FS = "" 11660 11661} 11662{ 11663 line = $ 0 11664 nfields = split(line, field, "@") 11665 substed = 0 11666 len = length(field[1]) 11667 for (i = 2; i < nfields; i++) { 11668 key = field[i] 11669 keylen = length(key) 11670 if (S_is_set[key]) { 11671 value = S[key] 11672 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11673 len += length(value) + length(field[++i]) 11674 substed = 1 11675 } else 11676 len += 1 + keylen 11677 } 11678 11679 print line 11680} 11681 11682_ACAWK 11683_ACEOF 11684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11685if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11686 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11687else 11688 cat 11689fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11690 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11691_ACEOF 11692 11693# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11694# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11695# trailing colons and then remove the whole line if VPATH becomes empty 11696# (actually we leave an empty line to preserve line numbers). 11697if test "x$srcdir" = x.; then 11698 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11699h 11700s/// 11701s/^/:/ 11702s/[ ]*$/:/ 11703s/:\$(srcdir):/:/g 11704s/:\${srcdir}:/:/g 11705s/:@srcdir@:/:/g 11706s/^:*// 11707s/:*$// 11708x 11709s/\(=[ ]*\).*/\1/ 11710G 11711s/\n// 11712s/^[^=]*=[ ]*$// 11713}' 11714fi 11715 11716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11717fi # test -n "$CONFIG_FILES" 11718 11719# Set up the scripts for CONFIG_HEADERS section. 11720# No need to generate them if there are no CONFIG_HEADERS. 11721# This happens for instance with `./config.status Makefile'. 11722if test -n "$CONFIG_HEADERS"; then 11723cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11724BEGIN { 11725_ACEOF 11726 11727# Transform confdefs.h into an awk script `defines.awk', embedded as 11728# here-document in config.status, that substitutes the proper values into 11729# config.h.in to produce config.h. 11730 11731# Create a delimiter string that does not exist in confdefs.h, to ease 11732# handling of long lines. 11733ac_delim='%!_!# ' 11734for ac_last_try in false false :; do 11735 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11736 if test -z "$ac_tt"; then 11737 break 11738 elif $ac_last_try; then 11739 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11740 else 11741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11742 fi 11743done 11744 11745# For the awk script, D is an array of macro values keyed by name, 11746# likewise P contains macro parameters if any. Preserve backslash 11747# newline sequences. 11748 11749ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11750sed -n ' 11751s/.\{148\}/&'"$ac_delim"'/g 11752t rset 11753:rset 11754s/^[ ]*#[ ]*define[ ][ ]*/ / 11755t def 11756d 11757:def 11758s/\\$// 11759t bsnl 11760s/["\\]/\\&/g 11761s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11762D["\1"]=" \3"/p 11763s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11764d 11765:bsnl 11766s/["\\]/\\&/g 11767s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11768D["\1"]=" \3\\\\\\n"\\/p 11769t cont 11770s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11771t cont 11772d 11773:cont 11774n 11775s/.\{148\}/&'"$ac_delim"'/g 11776t clear 11777:clear 11778s/\\$// 11779t bsnlc 11780s/["\\]/\\&/g; s/^/"/; s/$/"/p 11781d 11782:bsnlc 11783s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11784b cont 11785' <confdefs.h | sed ' 11786s/'"$ac_delim"'/"\\\ 11787"/g' >>$CONFIG_STATUS || ac_write_fail=1 11788 11789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11790 for (key in D) D_is_set[key] = 1 11791 FS = "" 11792} 11793/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11794 line = \$ 0 11795 split(line, arg, " ") 11796 if (arg[1] == "#") { 11797 defundef = arg[2] 11798 mac1 = arg[3] 11799 } else { 11800 defundef = substr(arg[1], 2) 11801 mac1 = arg[2] 11802 } 11803 split(mac1, mac2, "(") #) 11804 macro = mac2[1] 11805 prefix = substr(line, 1, index(line, defundef) - 1) 11806 if (D_is_set[macro]) { 11807 # Preserve the white space surrounding the "#". 11808 print prefix "define", macro P[macro] D[macro] 11809 next 11810 } else { 11811 # Replace #undef with comments. This is necessary, for example, 11812 # in the case of _POSIX_SOURCE, which is predefined and required 11813 # on some systems where configure will not decide to define it. 11814 if (defundef == "undef") { 11815 print "/*", prefix defundef, macro, "*/" 11816 next 11817 } 11818 } 11819} 11820{ print } 11821_ACAWK 11822_ACEOF 11823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11824 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11825fi # test -n "$CONFIG_HEADERS" 11826 11827 11828eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11829shift 11830for ac_tag 11831do 11832 case $ac_tag in 11833 :[FHLC]) ac_mode=$ac_tag; continue;; 11834 esac 11835 case $ac_mode$ac_tag in 11836 :[FHL]*:*);; 11837 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11838 :[FH]-) ac_tag=-:-;; 11839 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11840 esac 11841 ac_save_IFS=$IFS 11842 IFS=: 11843 set x $ac_tag 11844 IFS=$ac_save_IFS 11845 shift 11846 ac_file=$1 11847 shift 11848 11849 case $ac_mode in 11850 :L) ac_source=$1;; 11851 :[FH]) 11852 ac_file_inputs= 11853 for ac_f 11854 do 11855 case $ac_f in 11856 -) ac_f="$ac_tmp/stdin";; 11857 *) # Look for the file first in the build tree, then in the source tree 11858 # (if the path is not absolute). The absolute path cannot be DOS-style, 11859 # because $ac_f cannot contain `:'. 11860 test -f "$ac_f" || 11861 case $ac_f in 11862 [\\/$]*) false;; 11863 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11864 esac || 11865 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11866 esac 11867 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11868 as_fn_append ac_file_inputs " '$ac_f'" 11869 done 11870 11871 # Let's still pretend it is `configure' which instantiates (i.e., don't 11872 # use $as_me), people would be surprised to read: 11873 # /* config.h. Generated by config.status. */ 11874 configure_input='Generated from '` 11875 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11876 `' by configure.' 11877 if test x"$ac_file" != x-; then 11878 configure_input="$ac_file. $configure_input" 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11880$as_echo "$as_me: creating $ac_file" >&6;} 11881 fi 11882 # Neutralize special characters interpreted by sed in replacement strings. 11883 case $configure_input in #( 11884 *\&* | *\|* | *\\* ) 11885 ac_sed_conf_input=`$as_echo "$configure_input" | 11886 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11887 *) ac_sed_conf_input=$configure_input;; 11888 esac 11889 11890 case $ac_tag in 11891 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11893 esac 11894 ;; 11895 esac 11896 11897 ac_dir=`$as_dirname -- "$ac_file" || 11898$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11899 X"$ac_file" : 'X\(//\)[^/]' \| \ 11900 X"$ac_file" : 'X\(//\)$' \| \ 11901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11902$as_echo X"$ac_file" | 11903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11904 s//\1/ 11905 q 11906 } 11907 /^X\(\/\/\)[^/].*/{ 11908 s//\1/ 11909 q 11910 } 11911 /^X\(\/\/\)$/{ 11912 s//\1/ 11913 q 11914 } 11915 /^X\(\/\).*/{ 11916 s//\1/ 11917 q 11918 } 11919 s/.*/./; q'` 11920 as_dir="$ac_dir"; as_fn_mkdir_p 11921 ac_builddir=. 11922 11923case "$ac_dir" in 11924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11925*) 11926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11927 # A ".." for each directory in $ac_dir_suffix. 11928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11929 case $ac_top_builddir_sub in 11930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11932 esac ;; 11933esac 11934ac_abs_top_builddir=$ac_pwd 11935ac_abs_builddir=$ac_pwd$ac_dir_suffix 11936# for backward compatibility: 11937ac_top_builddir=$ac_top_build_prefix 11938 11939case $srcdir in 11940 .) # We are building in place. 11941 ac_srcdir=. 11942 ac_top_srcdir=$ac_top_builddir_sub 11943 ac_abs_top_srcdir=$ac_pwd ;; 11944 [\\/]* | ?:[\\/]* ) # Absolute name. 11945 ac_srcdir=$srcdir$ac_dir_suffix; 11946 ac_top_srcdir=$srcdir 11947 ac_abs_top_srcdir=$srcdir ;; 11948 *) # Relative name. 11949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11950 ac_top_srcdir=$ac_top_build_prefix$srcdir 11951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11952esac 11953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11954 11955 11956 case $ac_mode in 11957 :F) 11958 # 11959 # CONFIG_FILE 11960 # 11961 11962 case $INSTALL in 11963 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11964 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11965 esac 11966 ac_MKDIR_P=$MKDIR_P 11967 case $MKDIR_P in 11968 [\\/$]* | ?:[\\/]* ) ;; 11969 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11970 esac 11971_ACEOF 11972 11973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11974# If the template does not know about datarootdir, expand it. 11975# FIXME: This hack should be removed a few years after 2.60. 11976ac_datarootdir_hack=; ac_datarootdir_seen= 11977ac_sed_dataroot=' 11978/datarootdir/ { 11979 p 11980 q 11981} 11982/@datadir@/p 11983/@docdir@/p 11984/@infodir@/p 11985/@localedir@/p 11986/@mandir@/p' 11987case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11988*datarootdir*) ac_datarootdir_seen=yes;; 11989*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11991$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11992_ACEOF 11993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11994 ac_datarootdir_hack=' 11995 s&@datadir@&$datadir&g 11996 s&@docdir@&$docdir&g 11997 s&@infodir@&$infodir&g 11998 s&@localedir@&$localedir&g 11999 s&@mandir@&$mandir&g 12000 s&\\\${datarootdir}&$datarootdir&g' ;; 12001esac 12002_ACEOF 12003 12004# Neutralize VPATH when `$srcdir' = `.'. 12005# Shell code in configure.ac might set extrasub. 12006# FIXME: do we really want to maintain this feature? 12007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12008ac_sed_extra="$ac_vpsub 12009$extrasub 12010_ACEOF 12011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12012:t 12013/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12014s|@configure_input@|$ac_sed_conf_input|;t t 12015s&@top_builddir@&$ac_top_builddir_sub&;t t 12016s&@top_build_prefix@&$ac_top_build_prefix&;t t 12017s&@srcdir@&$ac_srcdir&;t t 12018s&@abs_srcdir@&$ac_abs_srcdir&;t t 12019s&@top_srcdir@&$ac_top_srcdir&;t t 12020s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12021s&@builddir@&$ac_builddir&;t t 12022s&@abs_builddir@&$ac_abs_builddir&;t t 12023s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12024s&@INSTALL@&$ac_INSTALL&;t t 12025s&@MKDIR_P@&$ac_MKDIR_P&;t t 12026$ac_datarootdir_hack 12027" 12028eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12029 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12030 12031test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12032 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12034 "$ac_tmp/out"`; test -z "$ac_out"; } && 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12036which seems to be undefined. Please make sure it is defined" >&5 12037$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12038which seems to be undefined. Please make sure it is defined" >&2;} 12039 12040 rm -f "$ac_tmp/stdin" 12041 case $ac_file in 12042 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12043 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12044 esac \ 12045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12046 ;; 12047 :H) 12048 # 12049 # CONFIG_HEADER 12050 # 12051 if test x"$ac_file" != x-; then 12052 { 12053 $as_echo "/* $configure_input */" \ 12054 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12055 } >"$ac_tmp/config.h" \ 12056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12057 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12059$as_echo "$as_me: $ac_file is unchanged" >&6;} 12060 else 12061 rm -f "$ac_file" 12062 mv "$ac_tmp/config.h" "$ac_file" \ 12063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12064 fi 12065 else 12066 $as_echo "/* $configure_input */" \ 12067 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12068 || as_fn_error $? "could not create -" "$LINENO" 5 12069 fi 12070# Compute "$ac_file"'s index in $config_headers. 12071_am_arg="$ac_file" 12072_am_stamp_count=1 12073for _am_header in $config_headers :; do 12074 case $_am_header in 12075 $_am_arg | $_am_arg:* ) 12076 break ;; 12077 * ) 12078 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12079 esac 12080done 12081echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12082$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12083 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12084 X"$_am_arg" : 'X\(//\)$' \| \ 12085 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12086$as_echo X"$_am_arg" | 12087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12088 s//\1/ 12089 q 12090 } 12091 /^X\(\/\/\)[^/].*/{ 12092 s//\1/ 12093 q 12094 } 12095 /^X\(\/\/\)$/{ 12096 s//\1/ 12097 q 12098 } 12099 /^X\(\/\).*/{ 12100 s//\1/ 12101 q 12102 } 12103 s/.*/./; q'`/stamp-h$_am_stamp_count 12104 ;; 12105 12106 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12107$as_echo "$as_me: executing $ac_file commands" >&6;} 12108 ;; 12109 esac 12110 12111 12112 case $ac_file$ac_mode in 12113 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12114 # Older Autoconf quotes --file arguments for eval, but not when files 12115 # are listed without --file. Let's play safe and only enable the eval 12116 # if we detect the quoting. 12117 case $CONFIG_FILES in 12118 *\'*) eval set x "$CONFIG_FILES" ;; 12119 *) set x $CONFIG_FILES ;; 12120 esac 12121 shift 12122 for mf 12123 do 12124 # Strip MF so we end up with the name of the file. 12125 mf=`echo "$mf" | sed -e 's/:.*$//'` 12126 # Check whether this is an Automake generated Makefile or not. 12127 # We used to match only the files named 'Makefile.in', but 12128 # some people rename them; so instead we look at the file content. 12129 # Grep'ing the first line is not enough: some people post-process 12130 # each Makefile.in and add a new line on top of each file to say so. 12131 # Grep'ing the whole file is not good either: AIX grep has a line 12132 # limit of 2048, but all sed's we know have understand at least 4000. 12133 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12134 dirpart=`$as_dirname -- "$mf" || 12135$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12136 X"$mf" : 'X\(//\)[^/]' \| \ 12137 X"$mf" : 'X\(//\)$' \| \ 12138 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12139$as_echo X"$mf" | 12140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12141 s//\1/ 12142 q 12143 } 12144 /^X\(\/\/\)[^/].*/{ 12145 s//\1/ 12146 q 12147 } 12148 /^X\(\/\/\)$/{ 12149 s//\1/ 12150 q 12151 } 12152 /^X\(\/\).*/{ 12153 s//\1/ 12154 q 12155 } 12156 s/.*/./; q'` 12157 else 12158 continue 12159 fi 12160 # Extract the definition of DEPDIR, am__include, and am__quote 12161 # from the Makefile without running 'make'. 12162 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12163 test -z "$DEPDIR" && continue 12164 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12165 test -z "$am__include" && continue 12166 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12167 # Find all dependency output files, they are included files with 12168 # $(DEPDIR) in their names. We invoke sed twice because it is the 12169 # simplest approach to changing $(DEPDIR) to its actual value in the 12170 # expansion. 12171 for file in `sed -n " 12172 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12173 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12174 # Make sure the directory exists. 12175 test -f "$dirpart/$file" && continue 12176 fdir=`$as_dirname -- "$file" || 12177$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12178 X"$file" : 'X\(//\)[^/]' \| \ 12179 X"$file" : 'X\(//\)$' \| \ 12180 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12181$as_echo X"$file" | 12182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12183 s//\1/ 12184 q 12185 } 12186 /^X\(\/\/\)[^/].*/{ 12187 s//\1/ 12188 q 12189 } 12190 /^X\(\/\/\)$/{ 12191 s//\1/ 12192 q 12193 } 12194 /^X\(\/\).*/{ 12195 s//\1/ 12196 q 12197 } 12198 s/.*/./; q'` 12199 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12200 # echo "creating $dirpart/$file" 12201 echo '# dummy' > "$dirpart/$file" 12202 done 12203 done 12204} 12205 ;; 12206 12207 esac 12208done # for ac_tag 12209 12210 12211as_fn_exit 0 12212_ACEOF 12213ac_clean_files=$ac_clean_files_save 12214 12215test $ac_write_fail = 0 || 12216 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12217 12218 12219# configure is writing to config.log, and then calls config.status. 12220# config.status does its own redirection, appending to config.log. 12221# Unfortunately, on DOS this fails, as config.log is still kept open 12222# by configure, so config.status won't be able to write to it; its 12223# output is simply discarded. So we exec the FD to /dev/null, 12224# effectively closing config.log, so it can be properly (re)opened and 12225# appended to by config.status. When coming back to configure, we 12226# need to make the FD available again. 12227if test "$no_create" != yes; then 12228 ac_cs_success=: 12229 ac_config_status_args= 12230 test "$silent" = yes && 12231 ac_config_status_args="$ac_config_status_args --quiet" 12232 exec 5>/dev/null 12233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12234 exec 5>>config.log 12235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12236 # would make configure fail if this is the last instruction. 12237 $ac_cs_success || as_fn_exit 1 12238fi 12239if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12241$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12242fi 12243 12244