1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xfindproxy 1.0.4. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xfindproxy' 583PACKAGE_TARNAME='xfindproxy' 584PACKAGE_VERSION='1.0.4' 585PACKAGE_STRING='xfindproxy 1.0.4' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630XFINDPROXY_LIBS 631XFINDPROXY_CFLAGS 632MAN_SUBSTS 633XORG_MAN_PAGE 634ADMIN_MAN_DIR 635DRIVER_MAN_DIR 636MISC_MAN_DIR 637FILE_MAN_DIR 638LIB_MAN_DIR 639APP_MAN_DIR 640ADMIN_MAN_SUFFIX 641DRIVER_MAN_SUFFIX 642MISC_MAN_SUFFIX 643FILE_MAN_SUFFIX 644LIB_MAN_SUFFIX 645APP_MAN_SUFFIX 646SED 647host_os 648host_vendor 649host_cpu 650host 651build_os 652build_vendor 653build_cpu 654build 655INSTALL_CMD 656PKG_CONFIG 657CHANGELOG_CMD 658STRICT_CFLAGS 659CWARNFLAGS 660BASE_CFLAGS 661EGREP 662GREP 663CPP 664am__fastdepCC_FALSE 665am__fastdepCC_TRUE 666CCDEPMODE 667am__nodep 668AMDEPBACKSLASH 669AMDEP_FALSE 670AMDEP_TRUE 671am__quote 672am__include 673DEPDIR 674OBJEXT 675EXEEXT 676ac_ct_CC 677CPPFLAGS 678LDFLAGS 679CFLAGS 680CC 681AM_BACKSLASH 682AM_DEFAULT_VERBOSITY 683AM_DEFAULT_V 684AM_V 685am__untar 686am__tar 687AMTAR 688am__leading_dot 689SET_MAKE 690AWK 691mkdir_p 692MKDIR_P 693INSTALL_STRIP_PROGRAM 694STRIP 695install_sh 696MAKEINFO 697AUTOHEADER 698AUTOMAKE 699AUTOCONF 700ACLOCAL 701VERSION 702PACKAGE 703CYGPATH_W 704am__isrc 705INSTALL_DATA 706INSTALL_SCRIPT 707INSTALL_PROGRAM 708target_alias 709host_alias 710build_alias 711LIBS 712ECHO_T 713ECHO_N 714ECHO_C 715DEFS 716mandir 717localedir 718libdir 719psdir 720pdfdir 721dvidir 722htmldir 723infodir 724docdir 725oldincludedir 726includedir 727localstatedir 728sharedstatedir 729sysconfdir 730datadir 731datarootdir 732libexecdir 733sbindir 734bindir 735program_transform_name 736prefix 737exec_prefix 738PACKAGE_URL 739PACKAGE_BUGREPORT 740PACKAGE_STRING 741PACKAGE_VERSION 742PACKAGE_TARNAME 743PACKAGE_NAME 744PATH_SEPARATOR 745SHELL' 746ac_subst_files='' 747ac_user_opts=' 748enable_option_checking 749enable_silent_rules 750enable_dependency_tracking 751enable_selective_werror 752enable_strict_compilation 753' 754 ac_precious_vars='build_alias 755host_alias 756target_alias 757CC 758CFLAGS 759LDFLAGS 760LIBS 761CPPFLAGS 762CPP 763PKG_CONFIG 764XFINDPROXY_CFLAGS 765XFINDPROXY_LIBS' 766 767 768# Initialize some variables set by options. 769ac_init_help= 770ac_init_version=false 771ac_unrecognized_opts= 772ac_unrecognized_sep= 773# The variables have the same names as the options, with 774# dashes changed to underlines. 775cache_file=/dev/null 776exec_prefix=NONE 777no_create= 778no_recursion= 779prefix=NONE 780program_prefix=NONE 781program_suffix=NONE 782program_transform_name=s,x,x, 783silent= 784site= 785srcdir= 786verbose= 787x_includes=NONE 788x_libraries=NONE 789 790# Installation directory options. 791# These are left unexpanded so users can "make install exec_prefix=/foo" 792# and all the variables that are supposed to be based on exec_prefix 793# by default will actually change. 794# Use braces instead of parens because sh, perl, etc. also accept them. 795# (The list follows the same order as the GNU Coding Standards.) 796bindir='${exec_prefix}/bin' 797sbindir='${exec_prefix}/sbin' 798libexecdir='${exec_prefix}/libexec' 799datarootdir='${prefix}/share' 800datadir='${datarootdir}' 801sysconfdir='${prefix}/etc' 802sharedstatedir='${prefix}/com' 803localstatedir='${prefix}/var' 804includedir='${prefix}/include' 805oldincludedir='/usr/include' 806docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 807infodir='${datarootdir}/info' 808htmldir='${docdir}' 809dvidir='${docdir}' 810pdfdir='${docdir}' 811psdir='${docdir}' 812libdir='${exec_prefix}/lib' 813localedir='${datarootdir}/locale' 814mandir='${datarootdir}/man' 815 816ac_prev= 817ac_dashdash= 818for ac_option 819do 820 # If the previous option needs an argument, assign it. 821 if test -n "$ac_prev"; then 822 eval $ac_prev=\$ac_option 823 ac_prev= 824 continue 825 fi 826 827 case $ac_option in 828 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 829 *=) ac_optarg= ;; 830 *) ac_optarg=yes ;; 831 esac 832 833 # Accept the important Cygnus configure options, so we can diagnose typos. 834 835 case $ac_dashdash$ac_option in 836 --) 837 ac_dashdash=yes ;; 838 839 -bindir | --bindir | --bindi | --bind | --bin | --bi) 840 ac_prev=bindir ;; 841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 842 bindir=$ac_optarg ;; 843 844 -build | --build | --buil | --bui | --bu) 845 ac_prev=build_alias ;; 846 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 847 build_alias=$ac_optarg ;; 848 849 -cache-file | --cache-file | --cache-fil | --cache-fi \ 850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 851 ac_prev=cache_file ;; 852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 854 cache_file=$ac_optarg ;; 855 856 --config-cache | -C) 857 cache_file=config.cache ;; 858 859 -datadir | --datadir | --datadi | --datad) 860 ac_prev=datadir ;; 861 -datadir=* | --datadir=* | --datadi=* | --datad=*) 862 datadir=$ac_optarg ;; 863 864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 865 | --dataroo | --dataro | --datar) 866 ac_prev=datarootdir ;; 867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 869 datarootdir=$ac_optarg ;; 870 871 -disable-* | --disable-*) 872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 873 # Reject names that are not valid shell variable names. 874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 875 as_fn_error $? "invalid feature name: $ac_useropt" 876 ac_useropt_orig=$ac_useropt 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878 case $ac_user_opts in 879 *" 880"enable_$ac_useropt" 881"*) ;; 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 883 ac_unrecognized_sep=', ';; 884 esac 885 eval enable_$ac_useropt=no ;; 886 887 -docdir | --docdir | --docdi | --doc | --do) 888 ac_prev=docdir ;; 889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 890 docdir=$ac_optarg ;; 891 892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 893 ac_prev=dvidir ;; 894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 895 dvidir=$ac_optarg ;; 896 897 -enable-* | --enable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=\$ac_optarg ;; 912 913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 915 | --exec | --exe | --ex) 916 ac_prev=exec_prefix ;; 917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 919 | --exec=* | --exe=* | --ex=*) 920 exec_prefix=$ac_optarg ;; 921 922 -gas | --gas | --ga | --g) 923 # Obsolete; use --with-gas. 924 with_gas=yes ;; 925 926 -help | --help | --hel | --he | -h) 927 ac_init_help=long ;; 928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 929 ac_init_help=recursive ;; 930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 931 ac_init_help=short ;; 932 933 -host | --host | --hos | --ho) 934 ac_prev=host_alias ;; 935 -host=* | --host=* | --hos=* | --ho=*) 936 host_alias=$ac_optarg ;; 937 938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 939 ac_prev=htmldir ;; 940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 941 | --ht=*) 942 htmldir=$ac_optarg ;; 943 944 -includedir | --includedir | --includedi | --included | --include \ 945 | --includ | --inclu | --incl | --inc) 946 ac_prev=includedir ;; 947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 948 | --includ=* | --inclu=* | --incl=* | --inc=*) 949 includedir=$ac_optarg ;; 950 951 -infodir | --infodir | --infodi | --infod | --info | --inf) 952 ac_prev=infodir ;; 953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 954 infodir=$ac_optarg ;; 955 956 -libdir | --libdir | --libdi | --libd) 957 ac_prev=libdir ;; 958 -libdir=* | --libdir=* | --libdi=* | --libd=*) 959 libdir=$ac_optarg ;; 960 961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 962 | --libexe | --libex | --libe) 963 ac_prev=libexecdir ;; 964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 965 | --libexe=* | --libex=* | --libe=*) 966 libexecdir=$ac_optarg ;; 967 968 -localedir | --localedir | --localedi | --localed | --locale) 969 ac_prev=localedir ;; 970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 971 localedir=$ac_optarg ;; 972 973 -localstatedir | --localstatedir | --localstatedi | --localstated \ 974 | --localstate | --localstat | --localsta | --localst | --locals) 975 ac_prev=localstatedir ;; 976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 978 localstatedir=$ac_optarg ;; 979 980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 981 ac_prev=mandir ;; 982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 983 mandir=$ac_optarg ;; 984 985 -nfp | --nfp | --nf) 986 # Obsolete; use --without-fp. 987 with_fp=no ;; 988 989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 990 | --no-cr | --no-c | -n) 991 no_create=yes ;; 992 993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 995 no_recursion=yes ;; 996 997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 999 | --oldin | --oldi | --old | --ol | --o) 1000 ac_prev=oldincludedir ;; 1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1004 oldincludedir=$ac_optarg ;; 1005 1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1007 ac_prev=prefix ;; 1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1009 prefix=$ac_optarg ;; 1010 1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1012 | --program-pre | --program-pr | --program-p) 1013 ac_prev=program_prefix ;; 1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1016 program_prefix=$ac_optarg ;; 1017 1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1019 | --program-suf | --program-su | --program-s) 1020 ac_prev=program_suffix ;; 1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1023 program_suffix=$ac_optarg ;; 1024 1025 -program-transform-name | --program-transform-name \ 1026 | --program-transform-nam | --program-transform-na \ 1027 | --program-transform-n | --program-transform- \ 1028 | --program-transform | --program-transfor \ 1029 | --program-transfo | --program-transf \ 1030 | --program-trans | --program-tran \ 1031 | --progr-tra | --program-tr | --program-t) 1032 ac_prev=program_transform_name ;; 1033 -program-transform-name=* | --program-transform-name=* \ 1034 | --program-transform-nam=* | --program-transform-na=* \ 1035 | --program-transform-n=* | --program-transform-=* \ 1036 | --program-transform=* | --program-transfor=* \ 1037 | --program-transfo=* | --program-transf=* \ 1038 | --program-trans=* | --program-tran=* \ 1039 | --progr-tra=* | --program-tr=* | --program-t=*) 1040 program_transform_name=$ac_optarg ;; 1041 1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1043 ac_prev=pdfdir ;; 1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1045 pdfdir=$ac_optarg ;; 1046 1047 -psdir | --psdir | --psdi | --psd | --ps) 1048 ac_prev=psdir ;; 1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1050 psdir=$ac_optarg ;; 1051 1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1053 | -silent | --silent | --silen | --sile | --sil) 1054 silent=yes ;; 1055 1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1057 ac_prev=sbindir ;; 1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1059 | --sbi=* | --sb=*) 1060 sbindir=$ac_optarg ;; 1061 1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1064 | --sharedst | --shareds | --shared | --share | --shar \ 1065 | --sha | --sh) 1066 ac_prev=sharedstatedir ;; 1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1070 | --sha=* | --sh=*) 1071 sharedstatedir=$ac_optarg ;; 1072 1073 -site | --site | --sit) 1074 ac_prev=site ;; 1075 -site=* | --site=* | --sit=*) 1076 site=$ac_optarg ;; 1077 1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1079 ac_prev=srcdir ;; 1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1081 srcdir=$ac_optarg ;; 1082 1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1084 | --syscon | --sysco | --sysc | --sys | --sy) 1085 ac_prev=sysconfdir ;; 1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1088 sysconfdir=$ac_optarg ;; 1089 1090 -target | --target | --targe | --targ | --tar | --ta | --t) 1091 ac_prev=target_alias ;; 1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1093 target_alias=$ac_optarg ;; 1094 1095 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1096 verbose=yes ;; 1097 1098 -version | --version | --versio | --versi | --vers | -V) 1099 ac_init_version=: ;; 1100 1101 -with-* | --with-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=\$ac_optarg ;; 1116 1117 -without-* | --without-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=no ;; 1132 1133 --x) 1134 # Obsolete; use --with-x. 1135 with_x=yes ;; 1136 1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1138 | --x-incl | --x-inc | --x-in | --x-i) 1139 ac_prev=x_includes ;; 1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1142 x_includes=$ac_optarg ;; 1143 1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1146 ac_prev=x_libraries ;; 1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1149 x_libraries=$ac_optarg ;; 1150 1151 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1152Try \`$0 --help' for more information" 1153 ;; 1154 1155 *=*) 1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1157 # Reject names that are not valid shell variable names. 1158 case $ac_envvar in #( 1159 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1161 esac 1162 eval $ac_envvar=\$ac_optarg 1163 export $ac_envvar ;; 1164 1165 *) 1166 # FIXME: should be removed in autoconf 3.0. 1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1171 ;; 1172 1173 esac 1174done 1175 1176if test -n "$ac_prev"; then 1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1178 as_fn_error $? "missing argument to $ac_option" 1179fi 1180 1181if test -n "$ac_unrecognized_opts"; then 1182 case $enable_option_checking in 1183 no) ;; 1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1186 esac 1187fi 1188 1189# Check all directory arguments for consistency. 1190for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1191 datadir sysconfdir sharedstatedir localstatedir includedir \ 1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1193 libdir localedir mandir 1194do 1195 eval ac_val=\$$ac_var 1196 # Remove trailing slashes. 1197 case $ac_val in 1198 */ ) 1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1200 eval $ac_var=\$ac_val;; 1201 esac 1202 # Be sure to have absolute directory names. 1203 case $ac_val in 1204 [\\/$]* | ?:[\\/]* ) continue;; 1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1206 esac 1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1208done 1209 1210# There might be people who depend on the old broken behavior: `$host' 1211# used to hold the argument of --host etc. 1212# FIXME: To remove some day. 1213build=$build_alias 1214host=$host_alias 1215target=$target_alias 1216 1217# FIXME: To remove some day. 1218if test "x$host_alias" != x; then 1219 if test "x$build_alias" = x; then 1220 cross_compiling=maybe 1221 elif test "x$build_alias" != "x$host_alias"; then 1222 cross_compiling=yes 1223 fi 1224fi 1225 1226ac_tool_prefix= 1227test -n "$host_alias" && ac_tool_prefix=$host_alias- 1228 1229test "$silent" = yes && exec 6>/dev/null 1230 1231 1232ac_pwd=`pwd` && test -n "$ac_pwd" && 1233ac_ls_di=`ls -di .` && 1234ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1235 as_fn_error $? "working directory cannot be determined" 1236test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1237 as_fn_error $? "pwd does not report name of working directory" 1238 1239 1240# Find the source files, if location was not specified. 1241if test -z "$srcdir"; then 1242 ac_srcdir_defaulted=yes 1243 # Try the directory containing this script, then the parent directory. 1244 ac_confdir=`$as_dirname -- "$as_myself" || 1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1246 X"$as_myself" : 'X\(//\)[^/]' \| \ 1247 X"$as_myself" : 'X\(//\)$' \| \ 1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1249$as_echo X"$as_myself" | 1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)[^/].*/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\).*/{ 1263 s//\1/ 1264 q 1265 } 1266 s/.*/./; q'` 1267 srcdir=$ac_confdir 1268 if test ! -r "$srcdir/$ac_unique_file"; then 1269 srcdir=.. 1270 fi 1271else 1272 ac_srcdir_defaulted=no 1273fi 1274if test ! -r "$srcdir/$ac_unique_file"; then 1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1277fi 1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1279ac_abs_confdir=`( 1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1281 pwd)` 1282# When building in place, set srcdir=. 1283if test "$ac_abs_confdir" = "$ac_pwd"; then 1284 srcdir=. 1285fi 1286# Remove unnecessary trailing slashes from srcdir. 1287# Double slashes in file names in object file debugging info 1288# mess up M-x gdb in Emacs. 1289case $srcdir in 1290*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1291esac 1292for ac_var in $ac_precious_vars; do 1293 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_env_${ac_var}_value=\$${ac_var} 1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1297done 1298 1299# 1300# Report the --help message. 1301# 1302if test "$ac_init_help" = "long"; then 1303 # Omit some internal or obsolete options to make the list less imposing. 1304 # This message is too long to be a string in the A/UX 3.1 sh. 1305 cat <<_ACEOF 1306\`configure' configures xfindproxy 1.0.4 to adapt to many kinds of systems. 1307 1308Usage: $0 [OPTION]... [VAR=VALUE]... 1309 1310To assign environment variables (e.g., CC, CFLAGS...), specify them as 1311VAR=VALUE. See below for descriptions of some of the useful variables. 1312 1313Defaults for the options are specified in brackets. 1314 1315Configuration: 1316 -h, --help display this help and exit 1317 --help=short display options specific to this package 1318 --help=recursive display the short help of all the included packages 1319 -V, --version display version information and exit 1320 -q, --quiet, --silent do not print \`checking ...' messages 1321 --cache-file=FILE cache test results in FILE [disabled] 1322 -C, --config-cache alias for \`--cache-file=config.cache' 1323 -n, --no-create do not create output files 1324 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1325 1326Installation directories: 1327 --prefix=PREFIX install architecture-independent files in PREFIX 1328 [$ac_default_prefix] 1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1330 [PREFIX] 1331 1332By default, \`make install' will install all the files in 1333\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1334an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1335for instance \`--prefix=\$HOME'. 1336 1337For better control, use the options below. 1338 1339Fine tuning of the installation directories: 1340 --bindir=DIR user executables [EPREFIX/bin] 1341 --sbindir=DIR system admin executables [EPREFIX/sbin] 1342 --libexecdir=DIR program executables [EPREFIX/libexec] 1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1346 --libdir=DIR object code libraries [EPREFIX/lib] 1347 --includedir=DIR C header files [PREFIX/include] 1348 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1351 --infodir=DIR info documentation [DATAROOTDIR/info] 1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1353 --mandir=DIR man documentation [DATAROOTDIR/man] 1354 --docdir=DIR documentation root [DATAROOTDIR/doc/xfindproxy] 1355 --htmldir=DIR html documentation [DOCDIR] 1356 --dvidir=DIR dvi documentation [DOCDIR] 1357 --pdfdir=DIR pdf documentation [DOCDIR] 1358 --psdir=DIR ps documentation [DOCDIR] 1359_ACEOF 1360 1361 cat <<\_ACEOF 1362 1363Program names: 1364 --program-prefix=PREFIX prepend PREFIX to installed program names 1365 --program-suffix=SUFFIX append SUFFIX to installed program names 1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1367 1368System types: 1369 --build=BUILD configure for building on BUILD [guessed] 1370 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1371_ACEOF 1372fi 1373 1374if test -n "$ac_init_help"; then 1375 case $ac_init_help in 1376 short | recursive ) echo "Configuration of xfindproxy 1.0.4:";; 1377 esac 1378 cat <<\_ACEOF 1379 1380Optional Features: 1381 --disable-option-checking ignore unrecognized --enable/--with options 1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1384 --enable-silent-rules less verbose build output (undo: "make V=1") 1385 --disable-silent-rules verbose build output (undo: "make V=0") 1386 --enable-dependency-tracking 1387 do not reject slow dependency extractors 1388 --disable-dependency-tracking 1389 speeds up one-time build 1390 --disable-selective-werror 1391 Turn off selective compiler errors. (default: 1392 enabled) 1393 --enable-strict-compilation 1394 Enable all warnings from compiler and make them 1395 errors (default: disabled) 1396 1397Some influential environment variables: 1398 CC C compiler command 1399 CFLAGS C compiler flags 1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1401 nonstandard directory <lib dir> 1402 LIBS libraries to pass to the linker, e.g. -l<library> 1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1404 you have headers in a nonstandard directory <include dir> 1405 CPP C preprocessor 1406 PKG_CONFIG path to pkg-config utility 1407 XFINDPROXY_CFLAGS 1408 C compiler flags for XFINDPROXY, overriding pkg-config 1409 XFINDPROXY_LIBS 1410 linker flags for XFINDPROXY, overriding pkg-config 1411 1412Use these variables to override the choices made by `configure' or to help 1413it to find libraries and programs with nonstandard names/locations. 1414 1415Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1416_ACEOF 1417ac_status=$? 1418fi 1419 1420if test "$ac_init_help" = "recursive"; then 1421 # If there are subdirs, report their specific --help. 1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1423 test -d "$ac_dir" || 1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1425 continue 1426 ac_builddir=. 1427 1428case "$ac_dir" in 1429.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1430*) 1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1432 # A ".." for each directory in $ac_dir_suffix. 1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1434 case $ac_top_builddir_sub in 1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1437 esac ;; 1438esac 1439ac_abs_top_builddir=$ac_pwd 1440ac_abs_builddir=$ac_pwd$ac_dir_suffix 1441# for backward compatibility: 1442ac_top_builddir=$ac_top_build_prefix 1443 1444case $srcdir in 1445 .) # We are building in place. 1446 ac_srcdir=. 1447 ac_top_srcdir=$ac_top_builddir_sub 1448 ac_abs_top_srcdir=$ac_pwd ;; 1449 [\\/]* | ?:[\\/]* ) # Absolute name. 1450 ac_srcdir=$srcdir$ac_dir_suffix; 1451 ac_top_srcdir=$srcdir 1452 ac_abs_top_srcdir=$srcdir ;; 1453 *) # Relative name. 1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1455 ac_top_srcdir=$ac_top_build_prefix$srcdir 1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1457esac 1458ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1459 1460 cd "$ac_dir" || { ac_status=$?; continue; } 1461 # Check for guested configure. 1462 if test -f "$ac_srcdir/configure.gnu"; then 1463 echo && 1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1465 elif test -f "$ac_srcdir/configure"; then 1466 echo && 1467 $SHELL "$ac_srcdir/configure" --help=recursive 1468 else 1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1470 fi || ac_status=$? 1471 cd "$ac_pwd" || { ac_status=$?; break; } 1472 done 1473fi 1474 1475test -n "$ac_init_help" && exit $ac_status 1476if $ac_init_version; then 1477 cat <<\_ACEOF 1478xfindproxy configure 1.0.4 1479generated by GNU Autoconf 2.69 1480 1481Copyright (C) 2012 Free Software Foundation, Inc. 1482This configure script is free software; the Free Software Foundation 1483gives unlimited permission to copy, distribute and modify it. 1484_ACEOF 1485 exit 1486fi 1487 1488## ------------------------ ## 1489## Autoconf initialization. ## 1490## ------------------------ ## 1491 1492# ac_fn_c_try_compile LINENO 1493# -------------------------- 1494# Try to compile conftest.$ac_ext, and return whether this succeeded. 1495ac_fn_c_try_compile () 1496{ 1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1498 rm -f conftest.$ac_objext 1499 if { { ac_try="$ac_compile" 1500case "(($ac_try" in 1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1502 *) ac_try_echo=$ac_try;; 1503esac 1504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1505$as_echo "$ac_try_echo"; } >&5 1506 (eval "$ac_compile") 2>conftest.err 1507 ac_status=$? 1508 if test -s conftest.err; then 1509 grep -v '^ *+' conftest.err >conftest.er1 1510 cat conftest.er1 >&5 1511 mv -f conftest.er1 conftest.err 1512 fi 1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1514 test $ac_status = 0; } && { 1515 test -z "$ac_c_werror_flag" || 1516 test ! -s conftest.err 1517 } && test -s conftest.$ac_objext; then : 1518 ac_retval=0 1519else 1520 $as_echo "$as_me: failed program was:" >&5 1521sed 's/^/| /' conftest.$ac_ext >&5 1522 1523 ac_retval=1 1524fi 1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1526 as_fn_set_status $ac_retval 1527 1528} # ac_fn_c_try_compile 1529 1530# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1531# --------------------------------------------- 1532# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1533# accordingly. 1534ac_fn_c_check_decl () 1535{ 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 as_decl_name=`echo $2|sed 's/ *(.*//'` 1538 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1540$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1541if eval \${$3+:} false; then : 1542 $as_echo_n "(cached) " >&6 1543else 1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1545/* end confdefs.h. */ 1546$4 1547int 1548main () 1549{ 1550#ifndef $as_decl_name 1551#ifdef __cplusplus 1552 (void) $as_decl_use; 1553#else 1554 (void) $as_decl_name; 1555#endif 1556#endif 1557 1558 ; 1559 return 0; 1560} 1561_ACEOF 1562if ac_fn_c_try_compile "$LINENO"; then : 1563 eval "$3=yes" 1564else 1565 eval "$3=no" 1566fi 1567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1568fi 1569eval ac_res=\$$3 1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1571$as_echo "$ac_res" >&6; } 1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1573 1574} # ac_fn_c_check_decl 1575 1576# ac_fn_c_try_cpp LINENO 1577# ---------------------- 1578# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_cpp () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 if { { ac_try="$ac_cpp conftest.$ac_ext" 1583case "(($ac_try" in 1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1585 *) ac_try_echo=$ac_try;; 1586esac 1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1588$as_echo "$ac_try_echo"; } >&5 1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1590 ac_status=$? 1591 if test -s conftest.err; then 1592 grep -v '^ *+' conftest.err >conftest.er1 1593 cat conftest.er1 >&5 1594 mv -f conftest.er1 conftest.err 1595 fi 1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1597 test $ac_status = 0; } > conftest.i && { 1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1599 test ! -s conftest.err 1600 }; then : 1601 ac_retval=0 1602else 1603 $as_echo "$as_me: failed program was:" >&5 1604sed 's/^/| /' conftest.$ac_ext >&5 1605 1606 ac_retval=1 1607fi 1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1609 as_fn_set_status $ac_retval 1610 1611} # ac_fn_c_try_cpp 1612 1613# ac_fn_c_try_run LINENO 1614# ---------------------- 1615# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1616# that executables *can* be run. 1617ac_fn_c_try_run () 1618{ 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 if { { ac_try="$ac_link" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626$as_echo "$ac_try_echo"; } >&5 1627 (eval "$ac_link") 2>&5 1628 ac_status=$? 1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1631 { { case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636$as_echo "$ac_try_echo"; } >&5 1637 (eval "$ac_try") 2>&5 1638 ac_status=$? 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; }; }; then : 1641 ac_retval=0 1642else 1643 $as_echo "$as_me: program exited with status $ac_status" >&5 1644 $as_echo "$as_me: failed program was:" >&5 1645sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=$ac_status 1648fi 1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_c_try_run 1654 1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1656# ------------------------------------------------------- 1657# Tests whether HEADER exists and can be compiled using the include files in 1658# INCLUDES, setting the cache variable VAR accordingly. 1659ac_fn_c_check_header_compile () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1663$as_echo_n "checking for $2... " >&6; } 1664if eval \${$3+:} false; then : 1665 $as_echo_n "(cached) " >&6 1666else 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1668/* end confdefs.h. */ 1669$4 1670#include <$2> 1671_ACEOF 1672if ac_fn_c_try_compile "$LINENO"; then : 1673 eval "$3=yes" 1674else 1675 eval "$3=no" 1676fi 1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1678fi 1679eval ac_res=\$$3 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1681$as_echo "$ac_res" >&6; } 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 1684} # ac_fn_c_check_header_compile 1685 1686# ac_fn_c_try_link LINENO 1687# ----------------------- 1688# Try to link conftest.$ac_ext, and return whether this succeeded. 1689ac_fn_c_try_link () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 rm -f conftest.$ac_objext conftest$ac_exeext 1693 if { { ac_try="$ac_link" 1694case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_link") 2>conftest.err 1701 ac_status=$? 1702 if test -s conftest.err; then 1703 grep -v '^ *+' conftest.err >conftest.er1 1704 cat conftest.er1 >&5 1705 mv -f conftest.er1 conftest.err 1706 fi 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } && { 1709 test -z "$ac_c_werror_flag" || 1710 test ! -s conftest.err 1711 } && test -s conftest$ac_exeext && { 1712 test "$cross_compiling" = yes || 1713 test -x conftest$ac_exeext 1714 }; then : 1715 ac_retval=0 1716else 1717 $as_echo "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721fi 1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1724 # interfere with the next link command; also delete a directory that is 1725 # left behind by Apple's compiler. We do this before executing the actions. 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_link 1731cat >config.log <<_ACEOF 1732This file contains any messages produced by compilers while 1733running configure, to aid debugging if configure makes a mistake. 1734 1735It was created by xfindproxy $as_me 1.0.4, which was 1736generated by GNU Autoconf 2.69. Invocation command line was 1737 1738 $ $0 $@ 1739 1740_ACEOF 1741exec 5>>config.log 1742{ 1743cat <<_ASUNAME 1744## --------- ## 1745## Platform. ## 1746## --------- ## 1747 1748hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1749uname -m = `(uname -m) 2>/dev/null || echo unknown` 1750uname -r = `(uname -r) 2>/dev/null || echo unknown` 1751uname -s = `(uname -s) 2>/dev/null || echo unknown` 1752uname -v = `(uname -v) 2>/dev/null || echo unknown` 1753 1754/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1755/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1756 1757/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1758/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1759/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1760/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1761/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1762/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1763/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1764 1765_ASUNAME 1766 1767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1768for as_dir in $PATH 1769do 1770 IFS=$as_save_IFS 1771 test -z "$as_dir" && as_dir=. 1772 $as_echo "PATH: $as_dir" 1773 done 1774IFS=$as_save_IFS 1775 1776} >&5 1777 1778cat >&5 <<_ACEOF 1779 1780 1781## ----------- ## 1782## Core tests. ## 1783## ----------- ## 1784 1785_ACEOF 1786 1787 1788# Keep a trace of the command line. 1789# Strip out --no-create and --no-recursion so they do not pile up. 1790# Strip out --silent because we don't want to record it for future runs. 1791# Also quote any args containing shell meta-characters. 1792# Make two passes to allow for proper duplicate-argument suppression. 1793ac_configure_args= 1794ac_configure_args0= 1795ac_configure_args1= 1796ac_must_keep_next=false 1797for ac_pass in 1 2 1798do 1799 for ac_arg 1800 do 1801 case $ac_arg in 1802 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1804 | -silent | --silent | --silen | --sile | --sil) 1805 continue ;; 1806 *\'*) 1807 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1808 esac 1809 case $ac_pass in 1810 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1811 2) 1812 as_fn_append ac_configure_args1 " '$ac_arg'" 1813 if test $ac_must_keep_next = true; then 1814 ac_must_keep_next=false # Got value, back to normal. 1815 else 1816 case $ac_arg in 1817 *=* | --config-cache | -C | -disable-* | --disable-* \ 1818 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1819 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1820 | -with-* | --with-* | -without-* | --without-* | --x) 1821 case "$ac_configure_args0 " in 1822 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1823 esac 1824 ;; 1825 -* ) ac_must_keep_next=true ;; 1826 esac 1827 fi 1828 as_fn_append ac_configure_args " '$ac_arg'" 1829 ;; 1830 esac 1831 done 1832done 1833{ ac_configure_args0=; unset ac_configure_args0;} 1834{ ac_configure_args1=; unset ac_configure_args1;} 1835 1836# When interrupted or exit'd, cleanup temporary files, and complete 1837# config.log. We remove comments because anyway the quotes in there 1838# would cause problems or look ugly. 1839# WARNING: Use '\'' to represent an apostrophe within the trap. 1840# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1841trap 'exit_status=$? 1842 # Save into config.log some information that might help in debugging. 1843 { 1844 echo 1845 1846 $as_echo "## ---------------- ## 1847## Cache variables. ## 1848## ---------------- ##" 1849 echo 1850 # The following way of writing the cache mishandles newlines in values, 1851( 1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1853 eval ac_val=\$$ac_var 1854 case $ac_val in #( 1855 *${as_nl}*) 1856 case $ac_var in #( 1857 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1858$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1859 esac 1860 case $ac_var in #( 1861 _ | IFS | as_nl) ;; #( 1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1863 *) { eval $ac_var=; unset $ac_var;} ;; 1864 esac ;; 1865 esac 1866 done 1867 (set) 2>&1 | 1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1869 *${as_nl}ac_space=\ *) 1870 sed -n \ 1871 "s/'\''/'\''\\\\'\'''\''/g; 1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1873 ;; #( 1874 *) 1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1876 ;; 1877 esac | 1878 sort 1879) 1880 echo 1881 1882 $as_echo "## ----------------- ## 1883## Output variables. ## 1884## ----------------- ##" 1885 echo 1886 for ac_var in $ac_subst_vars 1887 do 1888 eval ac_val=\$$ac_var 1889 case $ac_val in 1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1891 esac 1892 $as_echo "$ac_var='\''$ac_val'\''" 1893 done | sort 1894 echo 1895 1896 if test -n "$ac_subst_files"; then 1897 $as_echo "## ------------------- ## 1898## File substitutions. ## 1899## ------------------- ##" 1900 echo 1901 for ac_var in $ac_subst_files 1902 do 1903 eval ac_val=\$$ac_var 1904 case $ac_val in 1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1906 esac 1907 $as_echo "$ac_var='\''$ac_val'\''" 1908 done | sort 1909 echo 1910 fi 1911 1912 if test -s confdefs.h; then 1913 $as_echo "## ----------- ## 1914## confdefs.h. ## 1915## ----------- ##" 1916 echo 1917 cat confdefs.h 1918 echo 1919 fi 1920 test "$ac_signal" != 0 && 1921 $as_echo "$as_me: caught signal $ac_signal" 1922 $as_echo "$as_me: exit $exit_status" 1923 } >&5 1924 rm -f core *.core core.conftest.* && 1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1926 exit $exit_status 1927' 0 1928for ac_signal in 1 2 13 15; do 1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1930done 1931ac_signal=0 1932 1933# confdefs.h avoids OS command line length limits that DEFS can exceed. 1934rm -f -r conftest* confdefs.h 1935 1936$as_echo "/* confdefs.h */" > confdefs.h 1937 1938# Predefined preprocessor variables. 1939 1940cat >>confdefs.h <<_ACEOF 1941#define PACKAGE_NAME "$PACKAGE_NAME" 1942_ACEOF 1943 1944cat >>confdefs.h <<_ACEOF 1945#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1946_ACEOF 1947 1948cat >>confdefs.h <<_ACEOF 1949#define PACKAGE_VERSION "$PACKAGE_VERSION" 1950_ACEOF 1951 1952cat >>confdefs.h <<_ACEOF 1953#define PACKAGE_STRING "$PACKAGE_STRING" 1954_ACEOF 1955 1956cat >>confdefs.h <<_ACEOF 1957#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1958_ACEOF 1959 1960cat >>confdefs.h <<_ACEOF 1961#define PACKAGE_URL "$PACKAGE_URL" 1962_ACEOF 1963 1964 1965# Let the site file select an alternate cache file if it wants to. 1966# Prefer an explicitly selected file to automatically selected ones. 1967ac_site_file1=NONE 1968ac_site_file2=NONE 1969if test -n "$CONFIG_SITE"; then 1970 # We do not want a PATH search for config.site. 1971 case $CONFIG_SITE in #(( 1972 -*) ac_site_file1=./$CONFIG_SITE;; 1973 */*) ac_site_file1=$CONFIG_SITE;; 1974 *) ac_site_file1=./$CONFIG_SITE;; 1975 esac 1976elif test "x$prefix" != xNONE; then 1977 ac_site_file1=$prefix/share/config.site 1978 ac_site_file2=$prefix/etc/config.site 1979else 1980 ac_site_file1=$ac_default_prefix/share/config.site 1981 ac_site_file2=$ac_default_prefix/etc/config.site 1982fi 1983for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1984do 1985 test "x$ac_site_file" = xNONE && continue 1986 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1988$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1989 sed 's/^/| /' "$ac_site_file" >&5 1990 . "$ac_site_file" \ 1991 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1993as_fn_error $? "failed to load site script $ac_site_file 1994See \`config.log' for more details" "$LINENO" 5; } 1995 fi 1996done 1997 1998if test -r "$cache_file"; then 1999 # Some versions of bash will fail to source /dev/null (special files 2000 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2001 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2003$as_echo "$as_me: loading cache $cache_file" >&6;} 2004 case $cache_file in 2005 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2006 *) . "./$cache_file";; 2007 esac 2008 fi 2009else 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2011$as_echo "$as_me: creating cache $cache_file" >&6;} 2012 >$cache_file 2013fi 2014 2015# Check that the precious variables saved in the cache have kept the same 2016# value. 2017ac_cache_corrupted=false 2018for ac_var in $ac_precious_vars; do 2019 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2020 eval ac_new_set=\$ac_env_${ac_var}_set 2021 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2022 eval ac_new_val=\$ac_env_${ac_var}_value 2023 case $ac_old_set,$ac_new_set in 2024 set,) 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2026$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2027 ac_cache_corrupted=: ;; 2028 ,set) 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2030$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2031 ac_cache_corrupted=: ;; 2032 ,);; 2033 *) 2034 if test "x$ac_old_val" != "x$ac_new_val"; then 2035 # differences in whitespace do not lead to failure. 2036 ac_old_val_w=`echo x $ac_old_val` 2037 ac_new_val_w=`echo x $ac_new_val` 2038 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2040$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2041 ac_cache_corrupted=: 2042 else 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2044$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2045 eval $ac_var=\$ac_old_val 2046 fi 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2048$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2050$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2051 fi;; 2052 esac 2053 # Pass precious variables to config.status. 2054 if test "$ac_new_set" = set; then 2055 case $ac_new_val in 2056 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2057 *) ac_arg=$ac_var=$ac_new_val ;; 2058 esac 2059 case " $ac_configure_args " in 2060 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2061 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2062 esac 2063 fi 2064done 2065if $ac_cache_corrupted; then 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2069$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2070 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2071fi 2072## -------------------- ## 2073## Main body of script. ## 2074## -------------------- ## 2075 2076ac_ext=c 2077ac_cpp='$CPP $CPPFLAGS' 2078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2080ac_compiler_gnu=$ac_cv_c_compiler_gnu 2081 2082 2083 2084ac_config_headers="$ac_config_headers config.h" 2085 2086 2087# Initialize Automake 2088am__api_version='1.15' 2089 2090ac_aux_dir= 2091for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2092 if test -f "$ac_dir/install-sh"; then 2093 ac_aux_dir=$ac_dir 2094 ac_install_sh="$ac_aux_dir/install-sh -c" 2095 break 2096 elif test -f "$ac_dir/install.sh"; then 2097 ac_aux_dir=$ac_dir 2098 ac_install_sh="$ac_aux_dir/install.sh -c" 2099 break 2100 elif test -f "$ac_dir/shtool"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/shtool install -c" 2103 break 2104 fi 2105done 2106if test -z "$ac_aux_dir"; then 2107 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2108fi 2109 2110# These three variables are undocumented and unsupported, 2111# and are intended to be withdrawn in a future Autoconf release. 2112# They can cause serious problems if a builder's source tree is in a directory 2113# whose full name contains unusual characters. 2114ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2115ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2116ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2117 2118 2119# Find a good install program. We prefer a C program (faster), 2120# so one script is as good as another. But avoid the broken or 2121# incompatible versions: 2122# SysV /etc/install, /usr/sbin/install 2123# SunOS /usr/etc/install 2124# IRIX /sbin/install 2125# AIX /bin/install 2126# AmigaOS /C/install, which installs bootblocks on floppy discs 2127# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2128# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2129# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2130# OS/2's system install, which has a completely different semantic 2131# ./install, which can be erroneously created by make from ./install.sh. 2132# Reject install programs that cannot install multiple files. 2133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2134$as_echo_n "checking for a BSD-compatible install... " >&6; } 2135if test -z "$INSTALL"; then 2136if ${ac_cv_path_install+:} false; then : 2137 $as_echo_n "(cached) " >&6 2138else 2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2140for as_dir in $PATH 2141do 2142 IFS=$as_save_IFS 2143 test -z "$as_dir" && as_dir=. 2144 # Account for people who put trailing slashes in PATH elements. 2145case $as_dir/ in #(( 2146 ./ | .// | /[cC]/* | \ 2147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2149 /usr/ucb/* ) ;; 2150 *) 2151 # OSF1 and SCO ODT 3.0 have their own names for install. 2152 # Don't use installbsd from OSF since it installs stuff as root 2153 # by default. 2154 for ac_prog in ginstall scoinst install; do 2155 for ac_exec_ext in '' $ac_executable_extensions; do 2156 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2157 if test $ac_prog = install && 2158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2159 # AIX install. It has an incompatible calling convention. 2160 : 2161 elif test $ac_prog = install && 2162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2163 # program-specific install script used by HP pwplus--don't use. 2164 : 2165 else 2166 rm -rf conftest.one conftest.two conftest.dir 2167 echo one > conftest.one 2168 echo two > conftest.two 2169 mkdir conftest.dir 2170 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2171 test -s conftest.one && test -s conftest.two && 2172 test -s conftest.dir/conftest.one && 2173 test -s conftest.dir/conftest.two 2174 then 2175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2176 break 3 2177 fi 2178 fi 2179 fi 2180 done 2181 done 2182 ;; 2183esac 2184 2185 done 2186IFS=$as_save_IFS 2187 2188rm -rf conftest.one conftest.two conftest.dir 2189 2190fi 2191 if test "${ac_cv_path_install+set}" = set; then 2192 INSTALL=$ac_cv_path_install 2193 else 2194 # As a last resort, use the slow shell script. Don't cache a 2195 # value for INSTALL within a source directory, because that will 2196 # break other packages using the cache if that directory is 2197 # removed, or if the value is a relative name. 2198 INSTALL=$ac_install_sh 2199 fi 2200fi 2201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2202$as_echo "$INSTALL" >&6; } 2203 2204# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2205# It thinks the first close brace ends the variable substitution. 2206test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2207 2208test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2209 2210test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2211 2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2213$as_echo_n "checking whether build environment is sane... " >&6; } 2214# Reject unsafe characters in $srcdir or the absolute working directory 2215# name. Accept space and tab only in the latter. 2216am_lf=' 2217' 2218case `pwd` in 2219 *[\\\"\#\$\&\'\`$am_lf]*) 2220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2221esac 2222case $srcdir in 2223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2225esac 2226 2227# Do 'set' in a subshell so we don't clobber the current shell's 2228# arguments. Must try -L first in case configure is actually a 2229# symlink; some systems play weird games with the mod time of symlinks 2230# (eg FreeBSD returns the mod time of the symlink's containing 2231# directory). 2232if ( 2233 am_has_slept=no 2234 for am_try in 1 2; do 2235 echo "timestamp, slept: $am_has_slept" > conftest.file 2236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2237 if test "$*" = "X"; then 2238 # -L didn't work. 2239 set X `ls -t "$srcdir/configure" conftest.file` 2240 fi 2241 if test "$*" != "X $srcdir/configure conftest.file" \ 2242 && test "$*" != "X conftest.file $srcdir/configure"; then 2243 2244 # If neither matched, then we have a broken ls. This can happen 2245 # if, for instance, CONFIG_SHELL is bash and it inherits a 2246 # broken ls alias from the environment. This has actually 2247 # happened. Such a system could not be considered "sane". 2248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2249 alias in your environment" "$LINENO" 5 2250 fi 2251 if test "$2" = conftest.file || test $am_try -eq 2; then 2252 break 2253 fi 2254 # Just in case. 2255 sleep 1 2256 am_has_slept=yes 2257 done 2258 test "$2" = conftest.file 2259 ) 2260then 2261 # Ok. 2262 : 2263else 2264 as_fn_error $? "newly created file is older than distributed files! 2265Check your system clock" "$LINENO" 5 2266fi 2267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2268$as_echo "yes" >&6; } 2269# If we didn't sleep, we still need to ensure time stamps of config.status and 2270# generated files are strictly newer. 2271am_sleep_pid= 2272if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2273 ( sleep 1 ) & 2274 am_sleep_pid=$! 2275fi 2276 2277rm -f conftest.file 2278 2279test "$program_prefix" != NONE && 2280 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2281# Use a double $ so make ignores it. 2282test "$program_suffix" != NONE && 2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2284# Double any \ or $. 2285# By default was `s,x,x', remove it if useless. 2286ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2287program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2288 2289# Expand $ac_aux_dir to an absolute path. 2290am_aux_dir=`cd "$ac_aux_dir" && pwd` 2291 2292if test x"${MISSING+set}" != xset; then 2293 case $am_aux_dir in 2294 *\ * | *\ *) 2295 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2296 *) 2297 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2298 esac 2299fi 2300# Use eval to expand $SHELL 2301if eval "$MISSING --is-lightweight"; then 2302 am_missing_run="$MISSING " 2303else 2304 am_missing_run= 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2306$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2307fi 2308 2309if test x"${install_sh+set}" != xset; then 2310 case $am_aux_dir in 2311 *\ * | *\ *) 2312 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2313 *) 2314 install_sh="\${SHELL} $am_aux_dir/install-sh" 2315 esac 2316fi 2317 2318# Installed binaries are usually stripped using 'strip' when the user 2319# run "make install-strip". However 'strip' might not be the right 2320# tool to use in cross-compilation environments, therefore Automake 2321# will honor the 'STRIP' environment variable to overrule this program. 2322if test "$cross_compiling" != no; then 2323 if test -n "$ac_tool_prefix"; then 2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2325set dummy ${ac_tool_prefix}strip; ac_word=$2 2326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2327$as_echo_n "checking for $ac_word... " >&6; } 2328if ${ac_cv_prog_STRIP+:} false; then : 2329 $as_echo_n "(cached) " >&6 2330else 2331 if test -n "$STRIP"; then 2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2333else 2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2335for as_dir in $PATH 2336do 2337 IFS=$as_save_IFS 2338 test -z "$as_dir" && as_dir=. 2339 for ac_exec_ext in '' $ac_executable_extensions; do 2340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2343 break 2 2344 fi 2345done 2346 done 2347IFS=$as_save_IFS 2348 2349fi 2350fi 2351STRIP=$ac_cv_prog_STRIP 2352if test -n "$STRIP"; then 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2354$as_echo "$STRIP" >&6; } 2355else 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2357$as_echo "no" >&6; } 2358fi 2359 2360 2361fi 2362if test -z "$ac_cv_prog_STRIP"; then 2363 ac_ct_STRIP=$STRIP 2364 # Extract the first word of "strip", so it can be a program name with args. 2365set dummy strip; ac_word=$2 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2367$as_echo_n "checking for $ac_word... " >&6; } 2368if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2369 $as_echo_n "(cached) " >&6 2370else 2371 if test -n "$ac_ct_STRIP"; then 2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2373else 2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 for ac_exec_ext in '' $ac_executable_extensions; do 2380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2381 ac_cv_prog_ac_ct_STRIP="strip" 2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385done 2386 done 2387IFS=$as_save_IFS 2388 2389fi 2390fi 2391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2392if test -n "$ac_ct_STRIP"; then 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2394$as_echo "$ac_ct_STRIP" >&6; } 2395else 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2397$as_echo "no" >&6; } 2398fi 2399 2400 if test "x$ac_ct_STRIP" = x; then 2401 STRIP=":" 2402 else 2403 case $cross_compiling:$ac_tool_warned in 2404yes:) 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2407ac_tool_warned=yes ;; 2408esac 2409 STRIP=$ac_ct_STRIP 2410 fi 2411else 2412 STRIP="$ac_cv_prog_STRIP" 2413fi 2414 2415fi 2416INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2417 2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2419$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2420if test -z "$MKDIR_P"; then 2421 if ${ac_cv_path_mkdir+:} false; then : 2422 $as_echo_n "(cached) " >&6 2423else 2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2425for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2426do 2427 IFS=$as_save_IFS 2428 test -z "$as_dir" && as_dir=. 2429 for ac_prog in mkdir gmkdir; do 2430 for ac_exec_ext in '' $ac_executable_extensions; do 2431 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2432 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2433 'mkdir (GNU coreutils) '* | \ 2434 'mkdir (coreutils) '* | \ 2435 'mkdir (fileutils) '4.1*) 2436 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2437 break 3;; 2438 esac 2439 done 2440 done 2441 done 2442IFS=$as_save_IFS 2443 2444fi 2445 2446 test -d ./--version && rmdir ./--version 2447 if test "${ac_cv_path_mkdir+set}" = set; then 2448 MKDIR_P="$ac_cv_path_mkdir -p" 2449 else 2450 # As a last resort, use the slow shell script. Don't cache a 2451 # value for MKDIR_P within a source directory, because that will 2452 # break other packages using the cache if that directory is 2453 # removed, or if the value is a relative name. 2454 MKDIR_P="$ac_install_sh -d" 2455 fi 2456fi 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2458$as_echo "$MKDIR_P" >&6; } 2459 2460for ac_prog in gawk mawk nawk awk 2461do 2462 # Extract the first word of "$ac_prog", so it can be a program name with args. 2463set dummy $ac_prog; ac_word=$2 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2465$as_echo_n "checking for $ac_word... " >&6; } 2466if ${ac_cv_prog_AWK+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 if test -n "$AWK"; then 2470 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2479 ac_cv_prog_AWK="$ac_prog" 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484 done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489AWK=$ac_cv_prog_AWK 2490if test -n "$AWK"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2492$as_echo "$AWK" >&6; } 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2495$as_echo "no" >&6; } 2496fi 2497 2498 2499 test -n "$AWK" && break 2500done 2501 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2503$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2504set x ${MAKE-make} 2505ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2506if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2507 $as_echo_n "(cached) " >&6 2508else 2509 cat >conftest.make <<\_ACEOF 2510SHELL = /bin/sh 2511all: 2512 @echo '@@@%%%=$(MAKE)=@@@%%%' 2513_ACEOF 2514# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2515case `${MAKE-make} -f conftest.make 2>/dev/null` in 2516 *@@@%%%=?*=@@@%%%*) 2517 eval ac_cv_prog_make_${ac_make}_set=yes;; 2518 *) 2519 eval ac_cv_prog_make_${ac_make}_set=no;; 2520esac 2521rm -f conftest.make 2522fi 2523if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2525$as_echo "yes" >&6; } 2526 SET_MAKE= 2527else 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2529$as_echo "no" >&6; } 2530 SET_MAKE="MAKE=${MAKE-make}" 2531fi 2532 2533rm -rf .tst 2>/dev/null 2534mkdir .tst 2>/dev/null 2535if test -d .tst; then 2536 am__leading_dot=. 2537else 2538 am__leading_dot=_ 2539fi 2540rmdir .tst 2>/dev/null 2541 2542# Check whether --enable-silent-rules was given. 2543if test "${enable_silent_rules+set}" = set; then : 2544 enableval=$enable_silent_rules; 2545fi 2546 2547case $enable_silent_rules in # ((( 2548 yes) AM_DEFAULT_VERBOSITY=0;; 2549 no) AM_DEFAULT_VERBOSITY=1;; 2550 *) AM_DEFAULT_VERBOSITY=1;; 2551esac 2552am_make=${MAKE-make} 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2554$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2555if ${am_cv_make_support_nested_variables+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557else 2558 if $as_echo 'TRUE=$(BAR$(V)) 2559BAR0=false 2560BAR1=true 2561V=1 2562am__doit: 2563 @$(TRUE) 2564.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2565 am_cv_make_support_nested_variables=yes 2566else 2567 am_cv_make_support_nested_variables=no 2568fi 2569fi 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2571$as_echo "$am_cv_make_support_nested_variables" >&6; } 2572if test $am_cv_make_support_nested_variables = yes; then 2573 AM_V='$(V)' 2574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2575else 2576 AM_V=$AM_DEFAULT_VERBOSITY 2577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2578fi 2579AM_BACKSLASH='\' 2580 2581if test "`cd $srcdir && pwd`" != "`pwd`"; then 2582 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2583 # is not polluted with repeated "-I." 2584 am__isrc=' -I$(srcdir)' 2585 # test to see if srcdir already configured 2586 if test -f $srcdir/config.status; then 2587 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2588 fi 2589fi 2590 2591# test whether we have cygpath 2592if test -z "$CYGPATH_W"; then 2593 if (cygpath --version) >/dev/null 2>/dev/null; then 2594 CYGPATH_W='cygpath -w' 2595 else 2596 CYGPATH_W=echo 2597 fi 2598fi 2599 2600 2601# Define the identity of the package. 2602 PACKAGE='xfindproxy' 2603 VERSION='1.0.4' 2604 2605 2606cat >>confdefs.h <<_ACEOF 2607#define PACKAGE "$PACKAGE" 2608_ACEOF 2609 2610 2611cat >>confdefs.h <<_ACEOF 2612#define VERSION "$VERSION" 2613_ACEOF 2614 2615# Some tools Automake needs. 2616 2617ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2618 2619 2620AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2621 2622 2623AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2624 2625 2626AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2627 2628 2629MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2630 2631# For better backward compatibility. To be removed once Automake 1.9.x 2632# dies out for good. For more background, see: 2633# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2634# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2635mkdir_p='$(MKDIR_P)' 2636 2637# We need awk for the "check" target (and possibly the TAP driver). The 2638# system "awk" is bad on some platforms. 2639# Always define AMTAR for backward compatibility. Yes, it's still used 2640# in the wild :-( We should find a proper way to deprecate it ... 2641AMTAR='$${TAR-tar}' 2642 2643 2644# We'll loop over all known methods to create a tar archive until one works. 2645_am_tools='gnutar pax cpio none' 2646 2647am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2648 2649 2650 2651 2652 2653 2654# POSIX will say in a future version that running "rm -f" with no argument 2655# is OK; and we want to be able to make that assumption in our Makefile 2656# recipes. So use an aggressive probe to check that the usage we want is 2657# actually supported "in the wild" to an acceptable degree. 2658# See automake bug#10828. 2659# To make any issue more visible, cause the running configure to be aborted 2660# by default if the 'rm' program in use doesn't match our expectations; the 2661# user can still override this though. 2662if rm -f && rm -fr && rm -rf; then : OK; else 2663 cat >&2 <<'END' 2664Oops! 2665 2666Your 'rm' program seems unable to run without file operands specified 2667on the command line, even when the '-f' option is present. This is contrary 2668to the behaviour of most rm programs out there, and not conforming with 2669the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2670 2671Please tell bug-automake@gnu.org about your system, including the value 2672of your $PATH and any error possibly output before this message. This 2673can help us improve future automake versions. 2674 2675END 2676 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2677 echo 'Configuration will proceed anyway, since you have set the' >&2 2678 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2679 echo >&2 2680 else 2681 cat >&2 <<'END' 2682Aborting the configuration process, to ensure you take notice of the issue. 2683 2684You can download and install GNU coreutils to get an 'rm' implementation 2685that behaves properly: <http://www.gnu.org/software/coreutils/>. 2686 2687If you want to complete the configuration process using your problematic 2688'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2689to "yes", and re-run configure. 2690 2691END 2692 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2693 fi 2694fi 2695 2696 2697# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709DEPDIR="${am__leading_dot}deps" 2710 2711ac_config_commands="$ac_config_commands depfiles" 2712 2713 2714am_make=${MAKE-make} 2715cat > confinc << 'END' 2716am__doit: 2717 @echo this is the am__doit target 2718.PHONY: am__doit 2719END 2720# If we don't find an include directive, just comment out the code. 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2722$as_echo_n "checking for style of include used by $am_make... " >&6; } 2723am__include="#" 2724am__quote= 2725_am_result=none 2726# First try GNU make style include. 2727echo "include confinc" > confmf 2728# Ignore all kinds of additional output from 'make'. 2729case `$am_make -s -f confmf 2> /dev/null` in #( 2730*the\ am__doit\ target*) 2731 am__include=include 2732 am__quote= 2733 _am_result=GNU 2734 ;; 2735esac 2736# Now try BSD make style include. 2737if test "$am__include" = "#"; then 2738 echo '.include "confinc"' > confmf 2739 case `$am_make -s -f confmf 2> /dev/null` in #( 2740 *the\ am__doit\ target*) 2741 am__include=.include 2742 am__quote="\"" 2743 _am_result=BSD 2744 ;; 2745 esac 2746fi 2747 2748 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2750$as_echo "$_am_result" >&6; } 2751rm -f confinc confmf 2752 2753# Check whether --enable-dependency-tracking was given. 2754if test "${enable_dependency_tracking+set}" = set; then : 2755 enableval=$enable_dependency_tracking; 2756fi 2757 2758if test "x$enable_dependency_tracking" != xno; then 2759 am_depcomp="$ac_aux_dir/depcomp" 2760 AMDEPBACKSLASH='\' 2761 am__nodep='_no' 2762fi 2763 if test "x$enable_dependency_tracking" != xno; then 2764 AMDEP_TRUE= 2765 AMDEP_FALSE='#' 2766else 2767 AMDEP_TRUE='#' 2768 AMDEP_FALSE= 2769fi 2770 2771 2772ac_ext=c 2773ac_cpp='$CPP $CPPFLAGS' 2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2776ac_compiler_gnu=$ac_cv_c_compiler_gnu 2777if test -n "$ac_tool_prefix"; then 2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2779set dummy ${ac_tool_prefix}gcc; ac_word=$2 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2781$as_echo_n "checking for $ac_word... " >&6; } 2782if ${ac_cv_prog_CC+:} false; then : 2783 $as_echo_n "(cached) " >&6 2784else 2785 if test -n "$CC"; then 2786 ac_cv_prog_CC="$CC" # Let the user override the test. 2787else 2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2789for as_dir in $PATH 2790do 2791 IFS=$as_save_IFS 2792 test -z "$as_dir" && as_dir=. 2793 for ac_exec_ext in '' $ac_executable_extensions; do 2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2795 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2797 break 2 2798 fi 2799done 2800 done 2801IFS=$as_save_IFS 2802 2803fi 2804fi 2805CC=$ac_cv_prog_CC 2806if test -n "$CC"; then 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2808$as_echo "$CC" >&6; } 2809else 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2811$as_echo "no" >&6; } 2812fi 2813 2814 2815fi 2816if test -z "$ac_cv_prog_CC"; then 2817 ac_ct_CC=$CC 2818 # Extract the first word of "gcc", so it can be a program name with args. 2819set dummy gcc; ac_word=$2 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2821$as_echo_n "checking for $ac_word... " >&6; } 2822if ${ac_cv_prog_ac_ct_CC+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824else 2825 if test -n "$ac_ct_CC"; then 2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2827else 2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2829for as_dir in $PATH 2830do 2831 IFS=$as_save_IFS 2832 test -z "$as_dir" && as_dir=. 2833 for ac_exec_ext in '' $ac_executable_extensions; do 2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2835 ac_cv_prog_ac_ct_CC="gcc" 2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2837 break 2 2838 fi 2839done 2840 done 2841IFS=$as_save_IFS 2842 2843fi 2844fi 2845ac_ct_CC=$ac_cv_prog_ac_ct_CC 2846if test -n "$ac_ct_CC"; then 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2848$as_echo "$ac_ct_CC" >&6; } 2849else 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2851$as_echo "no" >&6; } 2852fi 2853 2854 if test "x$ac_ct_CC" = x; then 2855 CC="" 2856 else 2857 case $cross_compiling:$ac_tool_warned in 2858yes:) 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2861ac_tool_warned=yes ;; 2862esac 2863 CC=$ac_ct_CC 2864 fi 2865else 2866 CC="$ac_cv_prog_CC" 2867fi 2868 2869if test -z "$CC"; then 2870 if test -n "$ac_tool_prefix"; then 2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2872set dummy ${ac_tool_prefix}cc; ac_word=$2 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874$as_echo_n "checking for $ac_word... " >&6; } 2875if ${ac_cv_prog_CC+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if test -n "$CC"; then 2879 ac_cv_prog_CC="$CC" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2888 ac_cv_prog_CC="${ac_tool_prefix}cc" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893 done 2894IFS=$as_save_IFS 2895 2896fi 2897fi 2898CC=$ac_cv_prog_CC 2899if test -n "$CC"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2901$as_echo "$CC" >&6; } 2902else 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904$as_echo "no" >&6; } 2905fi 2906 2907 2908 fi 2909fi 2910if test -z "$CC"; then 2911 # Extract the first word of "cc", so it can be a program name with args. 2912set dummy cc; ac_word=$2 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914$as_echo_n "checking for $ac_word... " >&6; } 2915if ${ac_cv_prog_CC+:} false; then : 2916 $as_echo_n "(cached) " >&6 2917else 2918 if test -n "$CC"; then 2919 ac_cv_prog_CC="$CC" # Let the user override the test. 2920else 2921 ac_prog_rejected=no 2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923for as_dir in $PATH 2924do 2925 IFS=$as_save_IFS 2926 test -z "$as_dir" && as_dir=. 2927 for ac_exec_ext in '' $ac_executable_extensions; do 2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2930 ac_prog_rejected=yes 2931 continue 2932 fi 2933 ac_cv_prog_CC="cc" 2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938 done 2939IFS=$as_save_IFS 2940 2941if test $ac_prog_rejected = yes; then 2942 # We found a bogon in the path, so make sure we never use it. 2943 set dummy $ac_cv_prog_CC 2944 shift 2945 if test $# != 0; then 2946 # We chose a different compiler from the bogus one. 2947 # However, it has the same basename, so the bogon will be chosen 2948 # first if we set CC to just the basename; use the full file name. 2949 shift 2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2951 fi 2952fi 2953fi 2954fi 2955CC=$ac_cv_prog_CC 2956if test -n "$CC"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2958$as_echo "$CC" >&6; } 2959else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961$as_echo "no" >&6; } 2962fi 2963 2964 2965fi 2966if test -z "$CC"; then 2967 if test -n "$ac_tool_prefix"; then 2968 for ac_prog in cl.exe 2969 do 2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2971set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2973$as_echo_n "checking for $ac_word... " >&6; } 2974if ${ac_cv_prog_CC+:} false; then : 2975 $as_echo_n "(cached) " >&6 2976else 2977 if test -n "$CC"; then 2978 ac_cv_prog_CC="$CC" # Let the user override the test. 2979else 2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2981for as_dir in $PATH 2982do 2983 IFS=$as_save_IFS 2984 test -z "$as_dir" && as_dir=. 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2989 break 2 2990 fi 2991done 2992 done 2993IFS=$as_save_IFS 2994 2995fi 2996fi 2997CC=$ac_cv_prog_CC 2998if test -n "$CC"; then 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3000$as_echo "$CC" >&6; } 3001else 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3003$as_echo "no" >&6; } 3004fi 3005 3006 3007 test -n "$CC" && break 3008 done 3009fi 3010if test -z "$CC"; then 3011 ac_ct_CC=$CC 3012 for ac_prog in cl.exe 3013do 3014 # Extract the first word of "$ac_prog", so it can be a program name with args. 3015set dummy $ac_prog; ac_word=$2 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3017$as_echo_n "checking for $ac_word... " >&6; } 3018if ${ac_cv_prog_ac_ct_CC+:} false; then : 3019 $as_echo_n "(cached) " >&6 3020else 3021 if test -n "$ac_ct_CC"; then 3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3023else 3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025for as_dir in $PATH 3026do 3027 IFS=$as_save_IFS 3028 test -z "$as_dir" && as_dir=. 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3031 ac_cv_prog_ac_ct_CC="$ac_prog" 3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035done 3036 done 3037IFS=$as_save_IFS 3038 3039fi 3040fi 3041ac_ct_CC=$ac_cv_prog_ac_ct_CC 3042if test -n "$ac_ct_CC"; then 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3044$as_echo "$ac_ct_CC" >&6; } 3045else 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3047$as_echo "no" >&6; } 3048fi 3049 3050 3051 test -n "$ac_ct_CC" && break 3052done 3053 3054 if test "x$ac_ct_CC" = x; then 3055 CC="" 3056 else 3057 case $cross_compiling:$ac_tool_warned in 3058yes:) 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3061ac_tool_warned=yes ;; 3062esac 3063 CC=$ac_ct_CC 3064 fi 3065fi 3066 3067fi 3068 3069 3070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3072as_fn_error $? "no acceptable C compiler found in \$PATH 3073See \`config.log' for more details" "$LINENO" 5; } 3074 3075# Provide some information about the compiler. 3076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3077set X $ac_compile 3078ac_compiler=$2 3079for ac_option in --version -v -V -qversion; do 3080 { { ac_try="$ac_compiler $ac_option >&5" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3086$as_echo "$ac_try_echo"; } >&5 3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3088 ac_status=$? 3089 if test -s conftest.err; then 3090 sed '10a\ 3091... rest of stderr output deleted ... 3092 10q' conftest.err >conftest.er1 3093 cat conftest.er1 >&5 3094 fi 3095 rm -f conftest.er1 conftest.err 3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3097 test $ac_status = 0; } 3098done 3099 3100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3101/* end confdefs.h. */ 3102 3103int 3104main () 3105{ 3106 3107 ; 3108 return 0; 3109} 3110_ACEOF 3111ac_clean_files_save=$ac_clean_files 3112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3113# Try to create an executable without -o first, disregard a.out. 3114# It will help us diagnose broken compilers, and finding out an intuition 3115# of exeext. 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3117$as_echo_n "checking whether the C compiler works... " >&6; } 3118ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3119 3120# The possible output files: 3121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3122 3123ac_rmfiles= 3124for ac_file in $ac_files 3125do 3126 case $ac_file in 3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3129 esac 3130done 3131rm -f $ac_rmfiles 3132 3133if { { ac_try="$ac_link_default" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3139$as_echo "$ac_try_echo"; } >&5 3140 (eval "$ac_link_default") 2>&5 3141 ac_status=$? 3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3143 test $ac_status = 0; }; then : 3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3145# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3146# in a Makefile. We should not override ac_cv_exeext if it was cached, 3147# so that the user can short-circuit this test for compilers unknown to 3148# Autoconf. 3149for ac_file in $ac_files '' 3150do 3151 test -f "$ac_file" || continue 3152 case $ac_file in 3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3154 ;; 3155 [ab].out ) 3156 # We found the default executable, but exeext='' is most 3157 # certainly right. 3158 break;; 3159 *.* ) 3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3161 then :; else 3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3163 fi 3164 # We set ac_cv_exeext here because the later test for it is not 3165 # safe: cross compilers may not add the suffix if given an `-o' 3166 # argument, so we may need to know it at that point already. 3167 # Even if this section looks crufty: it has the advantage of 3168 # actually working. 3169 break;; 3170 * ) 3171 break;; 3172 esac 3173done 3174test "$ac_cv_exeext" = no && ac_cv_exeext= 3175 3176else 3177 ac_file='' 3178fi 3179if test -z "$ac_file"; then : 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3181$as_echo "no" >&6; } 3182$as_echo "$as_me: failed program was:" >&5 3183sed 's/^/| /' conftest.$ac_ext >&5 3184 3185{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3187as_fn_error 77 "C compiler cannot create executables 3188See \`config.log' for more details" "$LINENO" 5; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3191$as_echo "yes" >&6; } 3192fi 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3194$as_echo_n "checking for C compiler default output file name... " >&6; } 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3196$as_echo "$ac_file" >&6; } 3197ac_exeext=$ac_cv_exeext 3198 3199rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3200ac_clean_files=$ac_clean_files_save 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3202$as_echo_n "checking for suffix of executables... " >&6; } 3203if { { ac_try="$ac_link" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3209$as_echo "$ac_try_echo"; } >&5 3210 (eval "$ac_link") 2>&5 3211 ac_status=$? 3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3213 test $ac_status = 0; }; then : 3214 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3215# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3216# work properly (i.e., refer to `conftest.exe'), while it won't with 3217# `rm'. 3218for ac_file in conftest.exe conftest conftest.*; do 3219 test -f "$ac_file" || continue 3220 case $ac_file in 3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3223 break;; 3224 * ) break;; 3225 esac 3226done 3227else 3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3230as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3231See \`config.log' for more details" "$LINENO" 5; } 3232fi 3233rm -f conftest conftest$ac_cv_exeext 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3235$as_echo "$ac_cv_exeext" >&6; } 3236 3237rm -f conftest.$ac_ext 3238EXEEXT=$ac_cv_exeext 3239ac_exeext=$EXEEXT 3240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3241/* end confdefs.h. */ 3242#include <stdio.h> 3243int 3244main () 3245{ 3246FILE *f = fopen ("conftest.out", "w"); 3247 return ferror (f) || fclose (f) != 0; 3248 3249 ; 3250 return 0; 3251} 3252_ACEOF 3253ac_clean_files="$ac_clean_files conftest.out" 3254# Check that the compiler produces executables we can run. If not, either 3255# the compiler is broken, or we cross compile. 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3257$as_echo_n "checking whether we are cross compiling... " >&6; } 3258if test "$cross_compiling" != yes; then 3259 { { ac_try="$ac_link" 3260case "(($ac_try" in 3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3262 *) ac_try_echo=$ac_try;; 3263esac 3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3265$as_echo "$ac_try_echo"; } >&5 3266 (eval "$ac_link") 2>&5 3267 ac_status=$? 3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3269 test $ac_status = 0; } 3270 if { ac_try='./conftest$ac_cv_exeext' 3271 { { case "(($ac_try" in 3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3273 *) ac_try_echo=$ac_try;; 3274esac 3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3276$as_echo "$ac_try_echo"; } >&5 3277 (eval "$ac_try") 2>&5 3278 ac_status=$? 3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3280 test $ac_status = 0; }; }; then 3281 cross_compiling=no 3282 else 3283 if test "$cross_compiling" = maybe; then 3284 cross_compiling=yes 3285 else 3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3288as_fn_error $? "cannot run C compiled programs. 3289If you meant to cross compile, use \`--host'. 3290See \`config.log' for more details" "$LINENO" 5; } 3291 fi 3292 fi 3293fi 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3295$as_echo "$cross_compiling" >&6; } 3296 3297rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3298ac_clean_files=$ac_clean_files_save 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3300$as_echo_n "checking for suffix of object files... " >&6; } 3301if ${ac_cv_objext+:} false; then : 3302 $as_echo_n "(cached) " >&6 3303else 3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305/* end confdefs.h. */ 3306 3307int 3308main () 3309{ 3310 3311 ; 3312 return 0; 3313} 3314_ACEOF 3315rm -f conftest.o conftest.obj 3316if { { ac_try="$ac_compile" 3317case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3322$as_echo "$ac_try_echo"; } >&5 3323 (eval "$ac_compile") 2>&5 3324 ac_status=$? 3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3326 test $ac_status = 0; }; then : 3327 for ac_file in conftest.o conftest.obj conftest.*; do 3328 test -f "$ac_file" || continue; 3329 case $ac_file in 3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3332 break;; 3333 esac 3334done 3335else 3336 $as_echo "$as_me: failed program was:" >&5 3337sed 's/^/| /' conftest.$ac_ext >&5 3338 3339{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3341as_fn_error $? "cannot compute suffix of object files: cannot compile 3342See \`config.log' for more details" "$LINENO" 5; } 3343fi 3344rm -f conftest.$ac_cv_objext conftest.$ac_ext 3345fi 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3347$as_echo "$ac_cv_objext" >&6; } 3348OBJEXT=$ac_cv_objext 3349ac_objext=$OBJEXT 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3351$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3352if ${ac_cv_c_compiler_gnu+:} false; then : 3353 $as_echo_n "(cached) " >&6 3354else 3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3356/* end confdefs.h. */ 3357 3358int 3359main () 3360{ 3361#ifndef __GNUC__ 3362 choke me 3363#endif 3364 3365 ; 3366 return 0; 3367} 3368_ACEOF 3369if ac_fn_c_try_compile "$LINENO"; then : 3370 ac_compiler_gnu=yes 3371else 3372 ac_compiler_gnu=no 3373fi 3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3375ac_cv_c_compiler_gnu=$ac_compiler_gnu 3376 3377fi 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3379$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3380if test $ac_compiler_gnu = yes; then 3381 GCC=yes 3382else 3383 GCC= 3384fi 3385ac_test_CFLAGS=${CFLAGS+set} 3386ac_save_CFLAGS=$CFLAGS 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3388$as_echo_n "checking whether $CC accepts -g... " >&6; } 3389if ${ac_cv_prog_cc_g+:} false; then : 3390 $as_echo_n "(cached) " >&6 3391else 3392 ac_save_c_werror_flag=$ac_c_werror_flag 3393 ac_c_werror_flag=yes 3394 ac_cv_prog_cc_g=no 3395 CFLAGS="-g" 3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3397/* end confdefs.h. */ 3398 3399int 3400main () 3401{ 3402 3403 ; 3404 return 0; 3405} 3406_ACEOF 3407if ac_fn_c_try_compile "$LINENO"; then : 3408 ac_cv_prog_cc_g=yes 3409else 3410 CFLAGS="" 3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3412/* end confdefs.h. */ 3413 3414int 3415main () 3416{ 3417 3418 ; 3419 return 0; 3420} 3421_ACEOF 3422if ac_fn_c_try_compile "$LINENO"; then : 3423 3424else 3425 ac_c_werror_flag=$ac_save_c_werror_flag 3426 CFLAGS="-g" 3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3428/* end confdefs.h. */ 3429 3430int 3431main () 3432{ 3433 3434 ; 3435 return 0; 3436} 3437_ACEOF 3438if ac_fn_c_try_compile "$LINENO"; then : 3439 ac_cv_prog_cc_g=yes 3440fi 3441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3442fi 3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3444fi 3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3446 ac_c_werror_flag=$ac_save_c_werror_flag 3447fi 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3449$as_echo "$ac_cv_prog_cc_g" >&6; } 3450if test "$ac_test_CFLAGS" = set; then 3451 CFLAGS=$ac_save_CFLAGS 3452elif test $ac_cv_prog_cc_g = yes; then 3453 if test "$GCC" = yes; then 3454 CFLAGS="-g -O2" 3455 else 3456 CFLAGS="-g" 3457 fi 3458else 3459 if test "$GCC" = yes; then 3460 CFLAGS="-O2" 3461 else 3462 CFLAGS= 3463 fi 3464fi 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3466$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3467if ${ac_cv_prog_cc_c89+:} false; then : 3468 $as_echo_n "(cached) " >&6 3469else 3470 ac_cv_prog_cc_c89=no 3471ac_save_CC=$CC 3472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3473/* end confdefs.h. */ 3474#include <stdarg.h> 3475#include <stdio.h> 3476struct stat; 3477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3478struct buf { int x; }; 3479FILE * (*rcsopen) (struct buf *, struct stat *, int); 3480static char *e (p, i) 3481 char **p; 3482 int i; 3483{ 3484 return p[i]; 3485} 3486static char *f (char * (*g) (char **, int), char **p, ...) 3487{ 3488 char *s; 3489 va_list v; 3490 va_start (v,p); 3491 s = g (p, va_arg (v,int)); 3492 va_end (v); 3493 return s; 3494} 3495 3496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3497 function prototypes and stuff, but not '\xHH' hex character constants. 3498 These don't provoke an error unfortunately, instead are silently treated 3499 as 'x'. The following induces an error, until -std is added to get 3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3501 array size at least. It's necessary to write '\x00'==0 to get something 3502 that's true only with -std. */ 3503int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3504 3505/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3506 inside strings and character constants. */ 3507#define FOO(x) 'x' 3508int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3509 3510int test (int i, double x); 3511struct s1 {int (*f) (int a);}; 3512struct s2 {int (*f) (double a);}; 3513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3514int argc; 3515char **argv; 3516int 3517main () 3518{ 3519return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3520 ; 3521 return 0; 3522} 3523_ACEOF 3524for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3526do 3527 CC="$ac_save_CC $ac_arg" 3528 if ac_fn_c_try_compile "$LINENO"; then : 3529 ac_cv_prog_cc_c89=$ac_arg 3530fi 3531rm -f core conftest.err conftest.$ac_objext 3532 test "x$ac_cv_prog_cc_c89" != "xno" && break 3533done 3534rm -f conftest.$ac_ext 3535CC=$ac_save_CC 3536 3537fi 3538# AC_CACHE_VAL 3539case "x$ac_cv_prog_cc_c89" in 3540 x) 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3542$as_echo "none needed" >&6; } ;; 3543 xno) 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3545$as_echo "unsupported" >&6; } ;; 3546 *) 3547 CC="$CC $ac_cv_prog_cc_c89" 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3549$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3550esac 3551if test "x$ac_cv_prog_cc_c89" != xno; then : 3552 3553fi 3554 3555ac_ext=c 3556ac_cpp='$CPP $CPPFLAGS' 3557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3559ac_compiler_gnu=$ac_cv_c_compiler_gnu 3560 3561ac_ext=c 3562ac_cpp='$CPP $CPPFLAGS' 3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3567$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3568if ${am_cv_prog_cc_c_o+:} false; then : 3569 $as_echo_n "(cached) " >&6 3570else 3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572/* end confdefs.h. */ 3573 3574int 3575main () 3576{ 3577 3578 ; 3579 return 0; 3580} 3581_ACEOF 3582 # Make sure it works both with $CC and with simple cc. 3583 # Following AC_PROG_CC_C_O, we do the test twice because some 3584 # compilers refuse to overwrite an existing .o file with -o, 3585 # though they will create one. 3586 am_cv_prog_cc_c_o=yes 3587 for am_i in 1 2; do 3588 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3589 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3590 ac_status=$? 3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3592 (exit $ac_status); } \ 3593 && test -f conftest2.$ac_objext; then 3594 : OK 3595 else 3596 am_cv_prog_cc_c_o=no 3597 break 3598 fi 3599 done 3600 rm -f core conftest* 3601 unset am_i 3602fi 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3604$as_echo "$am_cv_prog_cc_c_o" >&6; } 3605if test "$am_cv_prog_cc_c_o" != yes; then 3606 # Losing compiler, so override with the script. 3607 # FIXME: It is wrong to rewrite CC. 3608 # But if we don't then we get into trouble of one sort or another. 3609 # A longer-term fix would be to have automake use am__CC in this case, 3610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3611 CC="$am_aux_dir/compile $CC" 3612fi 3613ac_ext=c 3614ac_cpp='$CPP $CPPFLAGS' 3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3617ac_compiler_gnu=$ac_cv_c_compiler_gnu 3618 3619 3620depcc="$CC" am_compiler_list= 3621 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3623$as_echo_n "checking dependency style of $depcc... " >&6; } 3624if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3628 # We make a subdir and do the tests there. Otherwise we can end up 3629 # making bogus files that we don't know about and never remove. For 3630 # instance it was reported that on HP-UX the gcc test will end up 3631 # making a dummy file named 'D' -- because '-MD' means "put the output 3632 # in D". 3633 rm -rf conftest.dir 3634 mkdir conftest.dir 3635 # Copy depcomp to subdir because otherwise we won't find it if we're 3636 # using a relative directory. 3637 cp "$am_depcomp" conftest.dir 3638 cd conftest.dir 3639 # We will build objects and dependencies in a subdirectory because 3640 # it helps to detect inapplicable dependency modes. For instance 3641 # both Tru64's cc and ICC support -MD to output dependencies as a 3642 # side effect of compilation, but ICC will put the dependencies in 3643 # the current directory while Tru64 will put them in the object 3644 # directory. 3645 mkdir sub 3646 3647 am_cv_CC_dependencies_compiler_type=none 3648 if test "$am_compiler_list" = ""; then 3649 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3650 fi 3651 am__universal=false 3652 case " $depcc " in #( 3653 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3654 esac 3655 3656 for depmode in $am_compiler_list; do 3657 # Setup a source with many dependencies, because some compilers 3658 # like to wrap large dependency lists on column 80 (with \), and 3659 # we should not choose a depcomp mode which is confused by this. 3660 # 3661 # We need to recreate these files for each test, as the compiler may 3662 # overwrite some of them when testing with obscure command lines. 3663 # This happens at least with the AIX C compiler. 3664 : > sub/conftest.c 3665 for i in 1 2 3 4 5 6; do 3666 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3667 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3668 # Solaris 10 /bin/sh. 3669 echo '/* dummy */' > sub/conftst$i.h 3670 done 3671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3672 3673 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3674 # mode. It turns out that the SunPro C++ compiler does not properly 3675 # handle '-M -o', and we need to detect this. Also, some Intel 3676 # versions had trouble with output in subdirs. 3677 am__obj=sub/conftest.${OBJEXT-o} 3678 am__minus_obj="-o $am__obj" 3679 case $depmode in 3680 gcc) 3681 # This depmode causes a compiler race in universal mode. 3682 test "$am__universal" = false || continue 3683 ;; 3684 nosideeffect) 3685 # After this tag, mechanisms are not by side-effect, so they'll 3686 # only be used when explicitly requested. 3687 if test "x$enable_dependency_tracking" = xyes; then 3688 continue 3689 else 3690 break 3691 fi 3692 ;; 3693 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3694 # This compiler won't grok '-c -o', but also, the minuso test has 3695 # not run yet. These depmodes are late enough in the game, and 3696 # so weak that their functioning should not be impacted. 3697 am__obj=conftest.${OBJEXT-o} 3698 am__minus_obj= 3699 ;; 3700 none) break ;; 3701 esac 3702 if depmode=$depmode \ 3703 source=sub/conftest.c object=$am__obj \ 3704 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3705 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3706 >/dev/null 2>conftest.err && 3707 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3709 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3711 # icc doesn't choke on unknown options, it will just issue warnings 3712 # or remarks (even with -Werror). So we grep stderr for any message 3713 # that says an option was ignored or not supported. 3714 # When given -MP, icc 7.0 and 7.1 complain thusly: 3715 # icc: Command line warning: ignoring option '-M'; no argument required 3716 # The diagnosis changed in icc 8.0: 3717 # icc: Command line remark: option '-MP' not supported 3718 if (grep 'ignoring option' conftest.err || 3719 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3720 am_cv_CC_dependencies_compiler_type=$depmode 3721 break 3722 fi 3723 fi 3724 done 3725 3726 cd .. 3727 rm -rf conftest.dir 3728else 3729 am_cv_CC_dependencies_compiler_type=none 3730fi 3731 3732fi 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3734$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3735CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3736 3737 if 3738 test "x$enable_dependency_tracking" != xno \ 3739 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3740 am__fastdepCC_TRUE= 3741 am__fastdepCC_FALSE='#' 3742else 3743 am__fastdepCC_TRUE='#' 3744 am__fastdepCC_FALSE= 3745fi 3746 3747 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3749$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3750if ${ac_cv_prog_cc_c99+:} false; then : 3751 $as_echo_n "(cached) " >&6 3752else 3753 ac_cv_prog_cc_c99=no 3754ac_save_CC=$CC 3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757#include <stdarg.h> 3758#include <stdbool.h> 3759#include <stdlib.h> 3760#include <wchar.h> 3761#include <stdio.h> 3762 3763// Check varargs macros. These examples are taken from C99 6.10.3.5. 3764#define debug(...) fprintf (stderr, __VA_ARGS__) 3765#define showlist(...) puts (#__VA_ARGS__) 3766#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3767static void 3768test_varargs_macros (void) 3769{ 3770 int x = 1234; 3771 int y = 5678; 3772 debug ("Flag"); 3773 debug ("X = %d\n", x); 3774 showlist (The first, second, and third items.); 3775 report (x>y, "x is %d but y is %d", x, y); 3776} 3777 3778// Check long long types. 3779#define BIG64 18446744073709551615ull 3780#define BIG32 4294967295ul 3781#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3782#if !BIG_OK 3783 your preprocessor is broken; 3784#endif 3785#if BIG_OK 3786#else 3787 your preprocessor is broken; 3788#endif 3789static long long int bignum = -9223372036854775807LL; 3790static unsigned long long int ubignum = BIG64; 3791 3792struct incomplete_array 3793{ 3794 int datasize; 3795 double data[]; 3796}; 3797 3798struct named_init { 3799 int number; 3800 const wchar_t *name; 3801 double average; 3802}; 3803 3804typedef const char *ccp; 3805 3806static inline int 3807test_restrict (ccp restrict text) 3808{ 3809 // See if C++-style comments work. 3810 // Iterate through items via the restricted pointer. 3811 // Also check for declarations in for loops. 3812 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3813 continue; 3814 return 0; 3815} 3816 3817// Check varargs and va_copy. 3818static void 3819test_varargs (const char *format, ...) 3820{ 3821 va_list args; 3822 va_start (args, format); 3823 va_list args_copy; 3824 va_copy (args_copy, args); 3825 3826 const char *str; 3827 int number; 3828 float fnumber; 3829 3830 while (*format) 3831 { 3832 switch (*format++) 3833 { 3834 case 's': // string 3835 str = va_arg (args_copy, const char *); 3836 break; 3837 case 'd': // int 3838 number = va_arg (args_copy, int); 3839 break; 3840 case 'f': // float 3841 fnumber = va_arg (args_copy, double); 3842 break; 3843 default: 3844 break; 3845 } 3846 } 3847 va_end (args_copy); 3848 va_end (args); 3849} 3850 3851int 3852main () 3853{ 3854 3855 // Check bool. 3856 _Bool success = false; 3857 3858 // Check restrict. 3859 if (test_restrict ("String literal") == 0) 3860 success = true; 3861 char *restrict newvar = "Another string"; 3862 3863 // Check varargs. 3864 test_varargs ("s, d' f .", "string", 65, 34.234); 3865 test_varargs_macros (); 3866 3867 // Check flexible array members. 3868 struct incomplete_array *ia = 3869 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3870 ia->datasize = 10; 3871 for (int i = 0; i < ia->datasize; ++i) 3872 ia->data[i] = i * 1.234; 3873 3874 // Check named initializers. 3875 struct named_init ni = { 3876 .number = 34, 3877 .name = L"Test wide string", 3878 .average = 543.34343, 3879 }; 3880 3881 ni.number = 58; 3882 3883 int dynamic_array[ni.number]; 3884 dynamic_array[ni.number - 1] = 543; 3885 3886 // work around unused variable warnings 3887 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3888 || dynamic_array[ni.number - 1] != 543); 3889 3890 ; 3891 return 0; 3892} 3893_ACEOF 3894for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3895do 3896 CC="$ac_save_CC $ac_arg" 3897 if ac_fn_c_try_compile "$LINENO"; then : 3898 ac_cv_prog_cc_c99=$ac_arg 3899fi 3900rm -f core conftest.err conftest.$ac_objext 3901 test "x$ac_cv_prog_cc_c99" != "xno" && break 3902done 3903rm -f conftest.$ac_ext 3904CC=$ac_save_CC 3905 3906fi 3907# AC_CACHE_VAL 3908case "x$ac_cv_prog_cc_c99" in 3909 x) 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3911$as_echo "none needed" >&6; } ;; 3912 xno) 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3914$as_echo "unsupported" >&6; } ;; 3915 *) 3916 CC="$CC $ac_cv_prog_cc_c99" 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3918$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3919esac 3920if test "x$ac_cv_prog_cc_c99" != xno; then : 3921 3922fi 3923 3924 3925 3926ac_ext=c 3927ac_cpp='$CPP $CPPFLAGS' 3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3930ac_compiler_gnu=$ac_cv_c_compiler_gnu 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3932$as_echo_n "checking how to run the C preprocessor... " >&6; } 3933# On Suns, sometimes $CPP names a directory. 3934if test -n "$CPP" && test -d "$CPP"; then 3935 CPP= 3936fi 3937if test -z "$CPP"; then 3938 if ${ac_cv_prog_CPP+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 # Double quotes because CPP needs to be expanded 3942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3943 do 3944 ac_preproc_ok=false 3945for ac_c_preproc_warn_flag in '' yes 3946do 3947 # Use a header file that comes with gcc, so configuring glibc 3948 # with a fresh cross-compiler works. 3949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3950 # <limits.h> exists even on freestanding compilers. 3951 # On the NeXT, cc -E runs the code through the compiler's parser, 3952 # not just through cpp. "Syntax error" is here to catch this case. 3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3954/* end confdefs.h. */ 3955#ifdef __STDC__ 3956# include <limits.h> 3957#else 3958# include <assert.h> 3959#endif 3960 Syntax error 3961_ACEOF 3962if ac_fn_c_try_cpp "$LINENO"; then : 3963 3964else 3965 # Broken: fails on valid input. 3966continue 3967fi 3968rm -f conftest.err conftest.i conftest.$ac_ext 3969 3970 # OK, works on sane cases. Now check whether nonexistent headers 3971 # can be detected and how. 3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3973/* end confdefs.h. */ 3974#include <ac_nonexistent.h> 3975_ACEOF 3976if ac_fn_c_try_cpp "$LINENO"; then : 3977 # Broken: success on invalid input. 3978continue 3979else 3980 # Passes both tests. 3981ac_preproc_ok=: 3982break 3983fi 3984rm -f conftest.err conftest.i conftest.$ac_ext 3985 3986done 3987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3988rm -f conftest.i conftest.err conftest.$ac_ext 3989if $ac_preproc_ok; then : 3990 break 3991fi 3992 3993 done 3994 ac_cv_prog_CPP=$CPP 3995 3996fi 3997 CPP=$ac_cv_prog_CPP 3998else 3999 ac_cv_prog_CPP=$CPP 4000fi 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4002$as_echo "$CPP" >&6; } 4003ac_preproc_ok=false 4004for ac_c_preproc_warn_flag in '' yes 4005do 4006 # Use a header file that comes with gcc, so configuring glibc 4007 # with a fresh cross-compiler works. 4008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4009 # <limits.h> exists even on freestanding compilers. 4010 # On the NeXT, cc -E runs the code through the compiler's parser, 4011 # not just through cpp. "Syntax error" is here to catch this case. 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014#ifdef __STDC__ 4015# include <limits.h> 4016#else 4017# include <assert.h> 4018#endif 4019 Syntax error 4020_ACEOF 4021if ac_fn_c_try_cpp "$LINENO"; then : 4022 4023else 4024 # Broken: fails on valid input. 4025continue 4026fi 4027rm -f conftest.err conftest.i conftest.$ac_ext 4028 4029 # OK, works on sane cases. Now check whether nonexistent headers 4030 # can be detected and how. 4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4032/* end confdefs.h. */ 4033#include <ac_nonexistent.h> 4034_ACEOF 4035if ac_fn_c_try_cpp "$LINENO"; then : 4036 # Broken: success on invalid input. 4037continue 4038else 4039 # Passes both tests. 4040ac_preproc_ok=: 4041break 4042fi 4043rm -f conftest.err conftest.i conftest.$ac_ext 4044 4045done 4046# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4047rm -f conftest.i conftest.err conftest.$ac_ext 4048if $ac_preproc_ok; then : 4049 4050else 4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4053as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4054See \`config.log' for more details" "$LINENO" 5; } 4055fi 4056 4057ac_ext=c 4058ac_cpp='$CPP $CPPFLAGS' 4059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4061ac_compiler_gnu=$ac_cv_c_compiler_gnu 4062 4063 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4065$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4066if ${ac_cv_path_GREP+:} false; then : 4067 $as_echo_n "(cached) " >&6 4068else 4069 if test -z "$GREP"; then 4070 ac_path_GREP_found=false 4071 # Loop through the user's path and test for each of PROGNAME-LIST 4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4074do 4075 IFS=$as_save_IFS 4076 test -z "$as_dir" && as_dir=. 4077 for ac_prog in grep ggrep; do 4078 for ac_exec_ext in '' $ac_executable_extensions; do 4079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4080 as_fn_executable_p "$ac_path_GREP" || continue 4081# Check for GNU ac_path_GREP and select it if it is found. 4082 # Check for GNU $ac_path_GREP 4083case `"$ac_path_GREP" --version 2>&1` in 4084*GNU*) 4085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4086*) 4087 ac_count=0 4088 $as_echo_n 0123456789 >"conftest.in" 4089 while : 4090 do 4091 cat "conftest.in" "conftest.in" >"conftest.tmp" 4092 mv "conftest.tmp" "conftest.in" 4093 cp "conftest.in" "conftest.nl" 4094 $as_echo 'GREP' >> "conftest.nl" 4095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4097 as_fn_arith $ac_count + 1 && ac_count=$as_val 4098 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4099 # Best one so far, save it but keep looking for a better one 4100 ac_cv_path_GREP="$ac_path_GREP" 4101 ac_path_GREP_max=$ac_count 4102 fi 4103 # 10*(2^10) chars as input seems more than enough 4104 test $ac_count -gt 10 && break 4105 done 4106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4107esac 4108 4109 $ac_path_GREP_found && break 3 4110 done 4111 done 4112 done 4113IFS=$as_save_IFS 4114 if test -z "$ac_cv_path_GREP"; then 4115 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4116 fi 4117else 4118 ac_cv_path_GREP=$GREP 4119fi 4120 4121fi 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4123$as_echo "$ac_cv_path_GREP" >&6; } 4124 GREP="$ac_cv_path_GREP" 4125 4126 4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4128$as_echo_n "checking for egrep... " >&6; } 4129if ${ac_cv_path_EGREP+:} false; then : 4130 $as_echo_n "(cached) " >&6 4131else 4132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4133 then ac_cv_path_EGREP="$GREP -E" 4134 else 4135 if test -z "$EGREP"; then 4136 ac_path_EGREP_found=false 4137 # Loop through the user's path and test for each of PROGNAME-LIST 4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4139for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4140do 4141 IFS=$as_save_IFS 4142 test -z "$as_dir" && as_dir=. 4143 for ac_prog in egrep; do 4144 for ac_exec_ext in '' $ac_executable_extensions; do 4145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4146 as_fn_executable_p "$ac_path_EGREP" || continue 4147# Check for GNU ac_path_EGREP and select it if it is found. 4148 # Check for GNU $ac_path_EGREP 4149case `"$ac_path_EGREP" --version 2>&1` in 4150*GNU*) 4151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4152*) 4153 ac_count=0 4154 $as_echo_n 0123456789 >"conftest.in" 4155 while : 4156 do 4157 cat "conftest.in" "conftest.in" >"conftest.tmp" 4158 mv "conftest.tmp" "conftest.in" 4159 cp "conftest.in" "conftest.nl" 4160 $as_echo 'EGREP' >> "conftest.nl" 4161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4163 as_fn_arith $ac_count + 1 && ac_count=$as_val 4164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4165 # Best one so far, save it but keep looking for a better one 4166 ac_cv_path_EGREP="$ac_path_EGREP" 4167 ac_path_EGREP_max=$ac_count 4168 fi 4169 # 10*(2^10) chars as input seems more than enough 4170 test $ac_count -gt 10 && break 4171 done 4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4173esac 4174 4175 $ac_path_EGREP_found && break 3 4176 done 4177 done 4178 done 4179IFS=$as_save_IFS 4180 if test -z "$ac_cv_path_EGREP"; then 4181 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4182 fi 4183else 4184 ac_cv_path_EGREP=$EGREP 4185fi 4186 4187 fi 4188fi 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4190$as_echo "$ac_cv_path_EGREP" >&6; } 4191 EGREP="$ac_cv_path_EGREP" 4192 4193 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4195$as_echo_n "checking for ANSI C header files... " >&6; } 4196if ${ac_cv_header_stdc+:} false; then : 4197 $as_echo_n "(cached) " >&6 4198else 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4200/* end confdefs.h. */ 4201#include <stdlib.h> 4202#include <stdarg.h> 4203#include <string.h> 4204#include <float.h> 4205 4206int 4207main () 4208{ 4209 4210 ; 4211 return 0; 4212} 4213_ACEOF 4214if ac_fn_c_try_compile "$LINENO"; then : 4215 ac_cv_header_stdc=yes 4216else 4217 ac_cv_header_stdc=no 4218fi 4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4220 4221if test $ac_cv_header_stdc = yes; then 4222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4224/* end confdefs.h. */ 4225#include <string.h> 4226 4227_ACEOF 4228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4229 $EGREP "memchr" >/dev/null 2>&1; then : 4230 4231else 4232 ac_cv_header_stdc=no 4233fi 4234rm -f conftest* 4235 4236fi 4237 4238if test $ac_cv_header_stdc = yes; then 4239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241/* end confdefs.h. */ 4242#include <stdlib.h> 4243 4244_ACEOF 4245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4246 $EGREP "free" >/dev/null 2>&1; then : 4247 4248else 4249 ac_cv_header_stdc=no 4250fi 4251rm -f conftest* 4252 4253fi 4254 4255if test $ac_cv_header_stdc = yes; then 4256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4257 if test "$cross_compiling" = yes; then : 4258 : 4259else 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262#include <ctype.h> 4263#include <stdlib.h> 4264#if ((' ' & 0x0FF) == 0x020) 4265# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4266# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4267#else 4268# define ISLOWER(c) \ 4269 (('a' <= (c) && (c) <= 'i') \ 4270 || ('j' <= (c) && (c) <= 'r') \ 4271 || ('s' <= (c) && (c) <= 'z')) 4272# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4273#endif 4274 4275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4276int 4277main () 4278{ 4279 int i; 4280 for (i = 0; i < 256; i++) 4281 if (XOR (islower (i), ISLOWER (i)) 4282 || toupper (i) != TOUPPER (i)) 4283 return 2; 4284 return 0; 4285} 4286_ACEOF 4287if ac_fn_c_try_run "$LINENO"; then : 4288 4289else 4290 ac_cv_header_stdc=no 4291fi 4292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4293 conftest.$ac_objext conftest.beam conftest.$ac_ext 4294fi 4295 4296fi 4297fi 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4299$as_echo "$ac_cv_header_stdc" >&6; } 4300if test $ac_cv_header_stdc = yes; then 4301 4302$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4303 4304fi 4305 4306# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4307for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4308 inttypes.h stdint.h unistd.h 4309do : 4310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4311ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4312" 4313if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4314 cat >>confdefs.h <<_ACEOF 4315#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4316_ACEOF 4317 4318fi 4319 4320done 4321 4322 4323 4324 4325 4326 4327ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4328if test "x$ac_cv_have_decl___clang__" = xyes; then : 4329 CLANGCC="yes" 4330else 4331 CLANGCC="no" 4332fi 4333 4334ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4335if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4336 INTELCC="yes" 4337else 4338 INTELCC="no" 4339fi 4340 4341ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4342if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4343 SUNCC="yes" 4344else 4345 SUNCC="no" 4346fi 4347 4348 4349 4350 4351if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4352 if test -n "$ac_tool_prefix"; then 4353 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4354set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4356$as_echo_n "checking for $ac_word... " >&6; } 4357if ${ac_cv_path_PKG_CONFIG+:} false; then : 4358 $as_echo_n "(cached) " >&6 4359else 4360 case $PKG_CONFIG in 4361 [\\/]* | ?:[\\/]*) 4362 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4363 ;; 4364 *) 4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4366for as_dir in $PATH 4367do 4368 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4372 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4374 break 2 4375 fi 4376done 4377 done 4378IFS=$as_save_IFS 4379 4380 ;; 4381esac 4382fi 4383PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4384if test -n "$PKG_CONFIG"; then 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4386$as_echo "$PKG_CONFIG" >&6; } 4387else 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4389$as_echo "no" >&6; } 4390fi 4391 4392 4393fi 4394if test -z "$ac_cv_path_PKG_CONFIG"; then 4395 ac_pt_PKG_CONFIG=$PKG_CONFIG 4396 # Extract the first word of "pkg-config", so it can be a program name with args. 4397set dummy pkg-config; ac_word=$2 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4399$as_echo_n "checking for $ac_word... " >&6; } 4400if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 case $ac_pt_PKG_CONFIG in 4404 [\\/]* | ?:[\\/]*) 4405 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4406 ;; 4407 *) 4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4409for as_dir in $PATH 4410do 4411 IFS=$as_save_IFS 4412 test -z "$as_dir" && as_dir=. 4413 for ac_exec_ext in '' $ac_executable_extensions; do 4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4415 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4417 break 2 4418 fi 4419done 4420 done 4421IFS=$as_save_IFS 4422 4423 ;; 4424esac 4425fi 4426ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4427if test -n "$ac_pt_PKG_CONFIG"; then 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4429$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4430else 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4432$as_echo "no" >&6; } 4433fi 4434 4435 if test "x$ac_pt_PKG_CONFIG" = x; then 4436 PKG_CONFIG="" 4437 else 4438 case $cross_compiling:$ac_tool_warned in 4439yes:) 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4442ac_tool_warned=yes ;; 4443esac 4444 PKG_CONFIG=$ac_pt_PKG_CONFIG 4445 fi 4446else 4447 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4448fi 4449 4450fi 4451if test -n "$PKG_CONFIG"; then 4452 _pkg_min_version=0.9.0 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4454$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4455 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4457$as_echo "yes" >&6; } 4458 else 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4460$as_echo "no" >&6; } 4461 PKG_CONFIG="" 4462 fi 4463 4464fi 4465# Make sure we can run config.sub. 4466$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4467 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4468 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4470$as_echo_n "checking build system type... " >&6; } 4471if ${ac_cv_build+:} false; then : 4472 $as_echo_n "(cached) " >&6 4473else 4474 ac_build_alias=$build_alias 4475test "x$ac_build_alias" = x && 4476 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4477test "x$ac_build_alias" = x && 4478 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4479ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4480 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4481 4482fi 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4484$as_echo "$ac_cv_build" >&6; } 4485case $ac_cv_build in 4486*-*-*) ;; 4487*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4488esac 4489build=$ac_cv_build 4490ac_save_IFS=$IFS; IFS='-' 4491set x $ac_cv_build 4492shift 4493build_cpu=$1 4494build_vendor=$2 4495shift; shift 4496# Remember, the first character of IFS is used to create $*, 4497# except with old shells: 4498build_os=$* 4499IFS=$ac_save_IFS 4500case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4501 4502 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4504$as_echo_n "checking host system type... " >&6; } 4505if ${ac_cv_host+:} false; then : 4506 $as_echo_n "(cached) " >&6 4507else 4508 if test "x$host_alias" = x; then 4509 ac_cv_host=$ac_cv_build 4510else 4511 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4512 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4513fi 4514 4515fi 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4517$as_echo "$ac_cv_host" >&6; } 4518case $ac_cv_host in 4519*-*-*) ;; 4520*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4521esac 4522host=$ac_cv_host 4523ac_save_IFS=$IFS; IFS='-' 4524set x $ac_cv_host 4525shift 4526host_cpu=$1 4527host_vendor=$2 4528shift; shift 4529# Remember, the first character of IFS is used to create $*, 4530# except with old shells: 4531host_os=$* 4532IFS=$ac_save_IFS 4533case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4534 4535 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4537$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4538if ${ac_cv_path_SED+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4542 for ac_i in 1 2 3 4 5 6 7; do 4543 ac_script="$ac_script$as_nl$ac_script" 4544 done 4545 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4546 { ac_script=; unset ac_script;} 4547 if test -z "$SED"; then 4548 ac_path_SED_found=false 4549 # Loop through the user's path and test for each of PROGNAME-LIST 4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4551for as_dir in $PATH 4552do 4553 IFS=$as_save_IFS 4554 test -z "$as_dir" && as_dir=. 4555 for ac_prog in sed gsed; do 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4558 as_fn_executable_p "$ac_path_SED" || continue 4559# Check for GNU ac_path_SED and select it if it is found. 4560 # Check for GNU $ac_path_SED 4561case `"$ac_path_SED" --version 2>&1` in 4562*GNU*) 4563 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4564*) 4565 ac_count=0 4566 $as_echo_n 0123456789 >"conftest.in" 4567 while : 4568 do 4569 cat "conftest.in" "conftest.in" >"conftest.tmp" 4570 mv "conftest.tmp" "conftest.in" 4571 cp "conftest.in" "conftest.nl" 4572 $as_echo '' >> "conftest.nl" 4573 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4575 as_fn_arith $ac_count + 1 && ac_count=$as_val 4576 if test $ac_count -gt ${ac_path_SED_max-0}; then 4577 # Best one so far, save it but keep looking for a better one 4578 ac_cv_path_SED="$ac_path_SED" 4579 ac_path_SED_max=$ac_count 4580 fi 4581 # 10*(2^10) chars as input seems more than enough 4582 test $ac_count -gt 10 && break 4583 done 4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4585esac 4586 4587 $ac_path_SED_found && break 3 4588 done 4589 done 4590 done 4591IFS=$as_save_IFS 4592 if test -z "$ac_cv_path_SED"; then 4593 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4594 fi 4595else 4596 ac_cv_path_SED=$SED 4597fi 4598 4599fi 4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4601$as_echo "$ac_cv_path_SED" >&6; } 4602 SED="$ac_cv_path_SED" 4603 rm -f conftest.sed 4604 4605 4606 4607 4608 4609 4610# Check whether --enable-selective-werror was given. 4611if test "${enable_selective_werror+set}" = set; then : 4612 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4613else 4614 SELECTIVE_WERROR=yes 4615fi 4616 4617 4618 4619 4620 4621# -v is too short to test reliably with XORG_TESTSET_CFLAG 4622if test "x$SUNCC" = "xyes"; then 4623 BASE_CFLAGS="-v" 4624else 4625 BASE_CFLAGS="" 4626fi 4627 4628# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642xorg_testset_save_CFLAGS="$CFLAGS" 4643 4644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652/* end confdefs.h. */ 4653int i; 4654_ACEOF 4655if ac_fn_c_try_compile "$LINENO"; then : 4656 xorg_cv_cc_flag_unknown_warning_option=yes 4657else 4658 xorg_cv_cc_flag_unknown_warning_option=no 4659fi 4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4661fi 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4665 CFLAGS="$xorg_testset_save_CFLAGS" 4666fi 4667 4668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4671 fi 4672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4676 $as_echo_n "(cached) " >&6 4677else 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679/* end confdefs.h. */ 4680int i; 4681_ACEOF 4682if ac_fn_c_try_compile "$LINENO"; then : 4683 xorg_cv_cc_flag_unused_command_line_argument=yes 4684else 4685 xorg_cv_cc_flag_unused_command_line_argument=no 4686fi 4687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4688fi 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4692 CFLAGS="$xorg_testset_save_CFLAGS" 4693fi 4694 4695found="no" 4696 4697 if test $found = "no" ; then 4698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4700 fi 4701 4702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4704 fi 4705 4706 CFLAGS="$CFLAGS -Wall" 4707 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4709$as_echo_n "checking if $CC supports -Wall... " >&6; } 4710 cacheid=xorg_cv_cc_flag__Wall 4711 if eval \${$cacheid+:} false; then : 4712 $as_echo_n "(cached) " >&6 4713else 4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715/* end confdefs.h. */ 4716int i; 4717int 4718main () 4719{ 4720 4721 ; 4722 return 0; 4723} 4724_ACEOF 4725if ac_fn_c_try_link "$LINENO"; then : 4726 eval $cacheid=yes 4727else 4728 eval $cacheid=no 4729fi 4730rm -f core conftest.err conftest.$ac_objext \ 4731 conftest$ac_exeext conftest.$ac_ext 4732fi 4733 4734 4735 CFLAGS="$xorg_testset_save_CFLAGS" 4736 4737 eval supported=\$$cacheid 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4739$as_echo "$supported" >&6; } 4740 if test "$supported" = "yes" ; then 4741 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4742 found="yes" 4743 fi 4744 fi 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760xorg_testset_save_CFLAGS="$CFLAGS" 4761 4762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4767 $as_echo_n "(cached) " >&6 4768else 4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4770/* end confdefs.h. */ 4771int i; 4772_ACEOF 4773if ac_fn_c_try_compile "$LINENO"; then : 4774 xorg_cv_cc_flag_unknown_warning_option=yes 4775else 4776 xorg_cv_cc_flag_unknown_warning_option=no 4777fi 4778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4779fi 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4783 CFLAGS="$xorg_testset_save_CFLAGS" 4784fi 4785 4786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4789 fi 4790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4794 $as_echo_n "(cached) " >&6 4795else 4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797/* end confdefs.h. */ 4798int i; 4799_ACEOF 4800if ac_fn_c_try_compile "$LINENO"; then : 4801 xorg_cv_cc_flag_unused_command_line_argument=yes 4802else 4803 xorg_cv_cc_flag_unused_command_line_argument=no 4804fi 4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4806fi 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4810 CFLAGS="$xorg_testset_save_CFLAGS" 4811fi 4812 4813found="no" 4814 4815 if test $found = "no" ; then 4816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4818 fi 4819 4820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4822 fi 4823 4824 CFLAGS="$CFLAGS -Wpointer-arith" 4825 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4827$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4828 cacheid=xorg_cv_cc_flag__Wpointer_arith 4829 if eval \${$cacheid+:} false; then : 4830 $as_echo_n "(cached) " >&6 4831else 4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4833/* end confdefs.h. */ 4834int i; 4835int 4836main () 4837{ 4838 4839 ; 4840 return 0; 4841} 4842_ACEOF 4843if ac_fn_c_try_link "$LINENO"; then : 4844 eval $cacheid=yes 4845else 4846 eval $cacheid=no 4847fi 4848rm -f core conftest.err conftest.$ac_objext \ 4849 conftest$ac_exeext conftest.$ac_ext 4850fi 4851 4852 4853 CFLAGS="$xorg_testset_save_CFLAGS" 4854 4855 eval supported=\$$cacheid 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4857$as_echo "$supported" >&6; } 4858 if test "$supported" = "yes" ; then 4859 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4860 found="yes" 4861 fi 4862 fi 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878xorg_testset_save_CFLAGS="$CFLAGS" 4879 4880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4885 $as_echo_n "(cached) " >&6 4886else 4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4888/* end confdefs.h. */ 4889int i; 4890_ACEOF 4891if ac_fn_c_try_compile "$LINENO"; then : 4892 xorg_cv_cc_flag_unknown_warning_option=yes 4893else 4894 xorg_cv_cc_flag_unknown_warning_option=no 4895fi 4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4897fi 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4901 CFLAGS="$xorg_testset_save_CFLAGS" 4902fi 4903 4904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4907 fi 4908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4912 $as_echo_n "(cached) " >&6 4913else 4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4915/* end confdefs.h. */ 4916int i; 4917_ACEOF 4918if ac_fn_c_try_compile "$LINENO"; then : 4919 xorg_cv_cc_flag_unused_command_line_argument=yes 4920else 4921 xorg_cv_cc_flag_unused_command_line_argument=no 4922fi 4923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4924fi 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4928 CFLAGS="$xorg_testset_save_CFLAGS" 4929fi 4930 4931found="no" 4932 4933 if test $found = "no" ; then 4934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4936 fi 4937 4938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4940 fi 4941 4942 CFLAGS="$CFLAGS -Wmissing-declarations" 4943 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4945$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4946 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4947 if eval \${$cacheid+:} false; then : 4948 $as_echo_n "(cached) " >&6 4949else 4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4951/* end confdefs.h. */ 4952int i; 4953int 4954main () 4955{ 4956 4957 ; 4958 return 0; 4959} 4960_ACEOF 4961if ac_fn_c_try_link "$LINENO"; then : 4962 eval $cacheid=yes 4963else 4964 eval $cacheid=no 4965fi 4966rm -f core conftest.err conftest.$ac_objext \ 4967 conftest$ac_exeext conftest.$ac_ext 4968fi 4969 4970 4971 CFLAGS="$xorg_testset_save_CFLAGS" 4972 4973 eval supported=\$$cacheid 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4975$as_echo "$supported" >&6; } 4976 if test "$supported" = "yes" ; then 4977 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4978 found="yes" 4979 fi 4980 fi 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996xorg_testset_save_CFLAGS="$CFLAGS" 4997 4998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006/* end confdefs.h. */ 5007int i; 5008_ACEOF 5009if ac_fn_c_try_compile "$LINENO"; then : 5010 xorg_cv_cc_flag_unknown_warning_option=yes 5011else 5012 xorg_cv_cc_flag_unknown_warning_option=no 5013fi 5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5015fi 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5019 CFLAGS="$xorg_testset_save_CFLAGS" 5020fi 5021 5022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025 fi 5026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5030 $as_echo_n "(cached) " >&6 5031else 5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033/* end confdefs.h. */ 5034int i; 5035_ACEOF 5036if ac_fn_c_try_compile "$LINENO"; then : 5037 xorg_cv_cc_flag_unused_command_line_argument=yes 5038else 5039 xorg_cv_cc_flag_unused_command_line_argument=no 5040fi 5041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5042fi 5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5046 CFLAGS="$xorg_testset_save_CFLAGS" 5047fi 5048 5049found="no" 5050 5051 if test $found = "no" ; then 5052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5054 fi 5055 5056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5058 fi 5059 5060 CFLAGS="$CFLAGS -Wformat=2" 5061 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5063$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5064 cacheid=xorg_cv_cc_flag__Wformat_2 5065 if eval \${$cacheid+:} false; then : 5066 $as_echo_n "(cached) " >&6 5067else 5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5069/* end confdefs.h. */ 5070int i; 5071int 5072main () 5073{ 5074 5075 ; 5076 return 0; 5077} 5078_ACEOF 5079if ac_fn_c_try_link "$LINENO"; then : 5080 eval $cacheid=yes 5081else 5082 eval $cacheid=no 5083fi 5084rm -f core conftest.err conftest.$ac_objext \ 5085 conftest$ac_exeext conftest.$ac_ext 5086fi 5087 5088 5089 CFLAGS="$xorg_testset_save_CFLAGS" 5090 5091 eval supported=\$$cacheid 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5093$as_echo "$supported" >&6; } 5094 if test "$supported" = "yes" ; then 5095 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5096 found="yes" 5097 fi 5098 fi 5099 5100 if test $found = "no" ; then 5101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5103 fi 5104 5105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5107 fi 5108 5109 CFLAGS="$CFLAGS -Wformat" 5110 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5112$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5113 cacheid=xorg_cv_cc_flag__Wformat 5114 if eval \${$cacheid+:} false; then : 5115 $as_echo_n "(cached) " >&6 5116else 5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5118/* end confdefs.h. */ 5119int i; 5120int 5121main () 5122{ 5123 5124 ; 5125 return 0; 5126} 5127_ACEOF 5128if ac_fn_c_try_link "$LINENO"; then : 5129 eval $cacheid=yes 5130else 5131 eval $cacheid=no 5132fi 5133rm -f core conftest.err conftest.$ac_objext \ 5134 conftest$ac_exeext conftest.$ac_ext 5135fi 5136 5137 5138 CFLAGS="$xorg_testset_save_CFLAGS" 5139 5140 eval supported=\$$cacheid 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5142$as_echo "$supported" >&6; } 5143 if test "$supported" = "yes" ; then 5144 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5145 found="yes" 5146 fi 5147 fi 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165xorg_testset_save_CFLAGS="$CFLAGS" 5166 5167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5170$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5171if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176int i; 5177_ACEOF 5178if ac_fn_c_try_compile "$LINENO"; then : 5179 xorg_cv_cc_flag_unknown_warning_option=yes 5180else 5181 xorg_cv_cc_flag_unknown_warning_option=no 5182fi 5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5184fi 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5186$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5188 CFLAGS="$xorg_testset_save_CFLAGS" 5189fi 5190 5191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5194 fi 5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5197$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5198if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203int i; 5204_ACEOF 5205if ac_fn_c_try_compile "$LINENO"; then : 5206 xorg_cv_cc_flag_unused_command_line_argument=yes 5207else 5208 xorg_cv_cc_flag_unused_command_line_argument=no 5209fi 5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5211fi 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5213$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5215 CFLAGS="$xorg_testset_save_CFLAGS" 5216fi 5217 5218found="no" 5219 5220 if test $found = "no" ; then 5221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5223 fi 5224 5225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5227 fi 5228 5229 CFLAGS="$CFLAGS -Wstrict-prototypes" 5230 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5232$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5233 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5234 if eval \${$cacheid+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236else 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238/* end confdefs.h. */ 5239int i; 5240int 5241main () 5242{ 5243 5244 ; 5245 return 0; 5246} 5247_ACEOF 5248if ac_fn_c_try_link "$LINENO"; then : 5249 eval $cacheid=yes 5250else 5251 eval $cacheid=no 5252fi 5253rm -f core conftest.err conftest.$ac_objext \ 5254 conftest$ac_exeext conftest.$ac_ext 5255fi 5256 5257 5258 CFLAGS="$xorg_testset_save_CFLAGS" 5259 5260 eval supported=\$$cacheid 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5262$as_echo "$supported" >&6; } 5263 if test "$supported" = "yes" ; then 5264 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5265 found="yes" 5266 fi 5267 fi 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283xorg_testset_save_CFLAGS="$CFLAGS" 5284 5285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291else 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295_ACEOF 5296if ac_fn_c_try_compile "$LINENO"; then : 5297 xorg_cv_cc_flag_unknown_warning_option=yes 5298else 5299 xorg_cv_cc_flag_unknown_warning_option=no 5300fi 5301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5302fi 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5306 CFLAGS="$xorg_testset_save_CFLAGS" 5307fi 5308 5309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 fi 5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5317 $as_echo_n "(cached) " >&6 5318else 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321int i; 5322_ACEOF 5323if ac_fn_c_try_compile "$LINENO"; then : 5324 xorg_cv_cc_flag_unused_command_line_argument=yes 5325else 5326 xorg_cv_cc_flag_unused_command_line_argument=no 5327fi 5328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5329fi 5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5333 CFLAGS="$xorg_testset_save_CFLAGS" 5334fi 5335 5336found="no" 5337 5338 if test $found = "no" ; then 5339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5341 fi 5342 5343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5345 fi 5346 5347 CFLAGS="$CFLAGS -Wmissing-prototypes" 5348 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5350$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5351 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5352 if eval \${$cacheid+:} false; then : 5353 $as_echo_n "(cached) " >&6 5354else 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356/* end confdefs.h. */ 5357int i; 5358int 5359main () 5360{ 5361 5362 ; 5363 return 0; 5364} 5365_ACEOF 5366if ac_fn_c_try_link "$LINENO"; then : 5367 eval $cacheid=yes 5368else 5369 eval $cacheid=no 5370fi 5371rm -f core conftest.err conftest.$ac_objext \ 5372 conftest$ac_exeext conftest.$ac_ext 5373fi 5374 5375 5376 CFLAGS="$xorg_testset_save_CFLAGS" 5377 5378 eval supported=\$$cacheid 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5380$as_echo "$supported" >&6; } 5381 if test "$supported" = "yes" ; then 5382 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5383 found="yes" 5384 fi 5385 fi 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401xorg_testset_save_CFLAGS="$CFLAGS" 5402 5403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411/* end confdefs.h. */ 5412int i; 5413_ACEOF 5414if ac_fn_c_try_compile "$LINENO"; then : 5415 xorg_cv_cc_flag_unknown_warning_option=yes 5416else 5417 xorg_cv_cc_flag_unknown_warning_option=no 5418fi 5419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5420fi 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5424 CFLAGS="$xorg_testset_save_CFLAGS" 5425fi 5426 5427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5430 fi 5431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5435 $as_echo_n "(cached) " >&6 5436else 5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5438/* end confdefs.h. */ 5439int i; 5440_ACEOF 5441if ac_fn_c_try_compile "$LINENO"; then : 5442 xorg_cv_cc_flag_unused_command_line_argument=yes 5443else 5444 xorg_cv_cc_flag_unused_command_line_argument=no 5445fi 5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5447fi 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5451 CFLAGS="$xorg_testset_save_CFLAGS" 5452fi 5453 5454found="no" 5455 5456 if test $found = "no" ; then 5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5459 fi 5460 5461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5463 fi 5464 5465 CFLAGS="$CFLAGS -Wnested-externs" 5466 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5468$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5469 cacheid=xorg_cv_cc_flag__Wnested_externs 5470 if eval \${$cacheid+:} false; then : 5471 $as_echo_n "(cached) " >&6 5472else 5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5474/* end confdefs.h. */ 5475int i; 5476int 5477main () 5478{ 5479 5480 ; 5481 return 0; 5482} 5483_ACEOF 5484if ac_fn_c_try_link "$LINENO"; then : 5485 eval $cacheid=yes 5486else 5487 eval $cacheid=no 5488fi 5489rm -f core conftest.err conftest.$ac_objext \ 5490 conftest$ac_exeext conftest.$ac_ext 5491fi 5492 5493 5494 CFLAGS="$xorg_testset_save_CFLAGS" 5495 5496 eval supported=\$$cacheid 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5498$as_echo "$supported" >&6; } 5499 if test "$supported" = "yes" ; then 5500 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5501 found="yes" 5502 fi 5503 fi 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519xorg_testset_save_CFLAGS="$CFLAGS" 5520 5521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5526 $as_echo_n "(cached) " >&6 5527else 5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5529/* end confdefs.h. */ 5530int i; 5531_ACEOF 5532if ac_fn_c_try_compile "$LINENO"; then : 5533 xorg_cv_cc_flag_unknown_warning_option=yes 5534else 5535 xorg_cv_cc_flag_unknown_warning_option=no 5536fi 5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5538fi 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5542 CFLAGS="$xorg_testset_save_CFLAGS" 5543fi 5544 5545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 fi 5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5553 $as_echo_n "(cached) " >&6 5554else 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5556/* end confdefs.h. */ 5557int i; 5558_ACEOF 5559if ac_fn_c_try_compile "$LINENO"; then : 5560 xorg_cv_cc_flag_unused_command_line_argument=yes 5561else 5562 xorg_cv_cc_flag_unused_command_line_argument=no 5563fi 5564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5565fi 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5569 CFLAGS="$xorg_testset_save_CFLAGS" 5570fi 5571 5572found="no" 5573 5574 if test $found = "no" ; then 5575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5577 fi 5578 5579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5581 fi 5582 5583 CFLAGS="$CFLAGS -Wbad-function-cast" 5584 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5586$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5587 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5588 if eval \${$cacheid+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590else 5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5592/* end confdefs.h. */ 5593int i; 5594int 5595main () 5596{ 5597 5598 ; 5599 return 0; 5600} 5601_ACEOF 5602if ac_fn_c_try_link "$LINENO"; then : 5603 eval $cacheid=yes 5604else 5605 eval $cacheid=no 5606fi 5607rm -f core conftest.err conftest.$ac_objext \ 5608 conftest$ac_exeext conftest.$ac_ext 5609fi 5610 5611 5612 CFLAGS="$xorg_testset_save_CFLAGS" 5613 5614 eval supported=\$$cacheid 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5616$as_echo "$supported" >&6; } 5617 if test "$supported" = "yes" ; then 5618 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5619 found="yes" 5620 fi 5621 fi 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637xorg_testset_save_CFLAGS="$CFLAGS" 5638 5639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5644 $as_echo_n "(cached) " >&6 5645else 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647/* end confdefs.h. */ 5648int i; 5649_ACEOF 5650if ac_fn_c_try_compile "$LINENO"; then : 5651 xorg_cv_cc_flag_unknown_warning_option=yes 5652else 5653 xorg_cv_cc_flag_unknown_warning_option=no 5654fi 5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5656fi 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5660 CFLAGS="$xorg_testset_save_CFLAGS" 5661fi 5662 5663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5666 fi 5667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5671 $as_echo_n "(cached) " >&6 5672else 5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5674/* end confdefs.h. */ 5675int i; 5676_ACEOF 5677if ac_fn_c_try_compile "$LINENO"; then : 5678 xorg_cv_cc_flag_unused_command_line_argument=yes 5679else 5680 xorg_cv_cc_flag_unused_command_line_argument=no 5681fi 5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5683fi 5684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5687 CFLAGS="$xorg_testset_save_CFLAGS" 5688fi 5689 5690found="no" 5691 5692 if test $found = "no" ; then 5693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5695 fi 5696 5697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5699 fi 5700 5701 CFLAGS="$CFLAGS -Wold-style-definition" 5702 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5704$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5705 cacheid=xorg_cv_cc_flag__Wold_style_definition 5706 if eval \${$cacheid+:} false; then : 5707 $as_echo_n "(cached) " >&6 5708else 5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5710/* end confdefs.h. */ 5711int i; 5712int 5713main () 5714{ 5715 5716 ; 5717 return 0; 5718} 5719_ACEOF 5720if ac_fn_c_try_link "$LINENO"; then : 5721 eval $cacheid=yes 5722else 5723 eval $cacheid=no 5724fi 5725rm -f core conftest.err conftest.$ac_objext \ 5726 conftest$ac_exeext conftest.$ac_ext 5727fi 5728 5729 5730 CFLAGS="$xorg_testset_save_CFLAGS" 5731 5732 eval supported=\$$cacheid 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5734$as_echo "$supported" >&6; } 5735 if test "$supported" = "yes" ; then 5736 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5737 found="yes" 5738 fi 5739 fi 5740 5741 if test $found = "no" ; then 5742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5744 fi 5745 5746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5748 fi 5749 5750 CFLAGS="$CFLAGS -fd" 5751 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5753$as_echo_n "checking if $CC supports -fd... " >&6; } 5754 cacheid=xorg_cv_cc_flag__fd 5755 if eval \${$cacheid+:} false; then : 5756 $as_echo_n "(cached) " >&6 5757else 5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5759/* end confdefs.h. */ 5760int i; 5761int 5762main () 5763{ 5764 5765 ; 5766 return 0; 5767} 5768_ACEOF 5769if ac_fn_c_try_link "$LINENO"; then : 5770 eval $cacheid=yes 5771else 5772 eval $cacheid=no 5773fi 5774rm -f core conftest.err conftest.$ac_objext \ 5775 conftest$ac_exeext conftest.$ac_ext 5776fi 5777 5778 5779 CFLAGS="$xorg_testset_save_CFLAGS" 5780 5781 eval supported=\$$cacheid 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5783$as_echo "$supported" >&6; } 5784 if test "$supported" = "yes" ; then 5785 BASE_CFLAGS="$BASE_CFLAGS -fd" 5786 found="yes" 5787 fi 5788 fi 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804xorg_testset_save_CFLAGS="$CFLAGS" 5805 5806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5811 $as_echo_n "(cached) " >&6 5812else 5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5814/* end confdefs.h. */ 5815int i; 5816_ACEOF 5817if ac_fn_c_try_compile "$LINENO"; then : 5818 xorg_cv_cc_flag_unknown_warning_option=yes 5819else 5820 xorg_cv_cc_flag_unknown_warning_option=no 5821fi 5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5823fi 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5827 CFLAGS="$xorg_testset_save_CFLAGS" 5828fi 5829 5830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5833 fi 5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5838 $as_echo_n "(cached) " >&6 5839else 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842int i; 5843_ACEOF 5844if ac_fn_c_try_compile "$LINENO"; then : 5845 xorg_cv_cc_flag_unused_command_line_argument=yes 5846else 5847 xorg_cv_cc_flag_unused_command_line_argument=no 5848fi 5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5850fi 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5854 CFLAGS="$xorg_testset_save_CFLAGS" 5855fi 5856 5857found="no" 5858 5859 if test $found = "no" ; then 5860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5862 fi 5863 5864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5866 fi 5867 5868 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5869 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5871$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5872 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5873 if eval \${$cacheid+:} false; then : 5874 $as_echo_n "(cached) " >&6 5875else 5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5877/* end confdefs.h. */ 5878int i; 5879int 5880main () 5881{ 5882 5883 ; 5884 return 0; 5885} 5886_ACEOF 5887if ac_fn_c_try_link "$LINENO"; then : 5888 eval $cacheid=yes 5889else 5890 eval $cacheid=no 5891fi 5892rm -f core conftest.err conftest.$ac_objext \ 5893 conftest$ac_exeext conftest.$ac_ext 5894fi 5895 5896 5897 CFLAGS="$xorg_testset_save_CFLAGS" 5898 5899 eval supported=\$$cacheid 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5901$as_echo "$supported" >&6; } 5902 if test "$supported" = "yes" ; then 5903 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5904 found="yes" 5905 fi 5906 fi 5907 5908 5909 5910 5911 5912# This chunk adds additional warnings that could catch undesired effects. 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926xorg_testset_save_CFLAGS="$CFLAGS" 5927 5928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5933 $as_echo_n "(cached) " >&6 5934else 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937int i; 5938_ACEOF 5939if ac_fn_c_try_compile "$LINENO"; then : 5940 xorg_cv_cc_flag_unknown_warning_option=yes 5941else 5942 xorg_cv_cc_flag_unknown_warning_option=no 5943fi 5944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5945fi 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5949 CFLAGS="$xorg_testset_save_CFLAGS" 5950fi 5951 5952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5955 fi 5956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961else 5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5963/* end confdefs.h. */ 5964int i; 5965_ACEOF 5966if ac_fn_c_try_compile "$LINENO"; then : 5967 xorg_cv_cc_flag_unused_command_line_argument=yes 5968else 5969 xorg_cv_cc_flag_unused_command_line_argument=no 5970fi 5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5972fi 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5976 CFLAGS="$xorg_testset_save_CFLAGS" 5977fi 5978 5979found="no" 5980 5981 if test $found = "no" ; then 5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5984 fi 5985 5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5988 fi 5989 5990 CFLAGS="$CFLAGS -Wunused" 5991 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5993$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5994 cacheid=xorg_cv_cc_flag__Wunused 5995 if eval \${$cacheid+:} false; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5999/* end confdefs.h. */ 6000int i; 6001int 6002main () 6003{ 6004 6005 ; 6006 return 0; 6007} 6008_ACEOF 6009if ac_fn_c_try_link "$LINENO"; then : 6010 eval $cacheid=yes 6011else 6012 eval $cacheid=no 6013fi 6014rm -f core conftest.err conftest.$ac_objext \ 6015 conftest$ac_exeext conftest.$ac_ext 6016fi 6017 6018 6019 CFLAGS="$xorg_testset_save_CFLAGS" 6020 6021 eval supported=\$$cacheid 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6023$as_echo "$supported" >&6; } 6024 if test "$supported" = "yes" ; then 6025 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6026 found="yes" 6027 fi 6028 fi 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044xorg_testset_save_CFLAGS="$CFLAGS" 6045 6046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054/* end confdefs.h. */ 6055int i; 6056_ACEOF 6057if ac_fn_c_try_compile "$LINENO"; then : 6058 xorg_cv_cc_flag_unknown_warning_option=yes 6059else 6060 xorg_cv_cc_flag_unknown_warning_option=no 6061fi 6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6063fi 6064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6067 CFLAGS="$xorg_testset_save_CFLAGS" 6068fi 6069 6070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6073 fi 6074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6078 $as_echo_n "(cached) " >&6 6079else 6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6081/* end confdefs.h. */ 6082int i; 6083_ACEOF 6084if ac_fn_c_try_compile "$LINENO"; then : 6085 xorg_cv_cc_flag_unused_command_line_argument=yes 6086else 6087 xorg_cv_cc_flag_unused_command_line_argument=no 6088fi 6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6090fi 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6094 CFLAGS="$xorg_testset_save_CFLAGS" 6095fi 6096 6097found="no" 6098 6099 if test $found = "no" ; then 6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 fi 6103 6104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6106 fi 6107 6108 CFLAGS="$CFLAGS -Wuninitialized" 6109 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6111$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6112 cacheid=xorg_cv_cc_flag__Wuninitialized 6113 if eval \${$cacheid+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115else 6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6117/* end confdefs.h. */ 6118int i; 6119int 6120main () 6121{ 6122 6123 ; 6124 return 0; 6125} 6126_ACEOF 6127if ac_fn_c_try_link "$LINENO"; then : 6128 eval $cacheid=yes 6129else 6130 eval $cacheid=no 6131fi 6132rm -f core conftest.err conftest.$ac_objext \ 6133 conftest$ac_exeext conftest.$ac_ext 6134fi 6135 6136 6137 CFLAGS="$xorg_testset_save_CFLAGS" 6138 6139 eval supported=\$$cacheid 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6141$as_echo "$supported" >&6; } 6142 if test "$supported" = "yes" ; then 6143 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6144 found="yes" 6145 fi 6146 fi 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162xorg_testset_save_CFLAGS="$CFLAGS" 6163 6164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6169 $as_echo_n "(cached) " >&6 6170else 6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6172/* end confdefs.h. */ 6173int i; 6174_ACEOF 6175if ac_fn_c_try_compile "$LINENO"; then : 6176 xorg_cv_cc_flag_unknown_warning_option=yes 6177else 6178 xorg_cv_cc_flag_unknown_warning_option=no 6179fi 6180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6181fi 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6185 CFLAGS="$xorg_testset_save_CFLAGS" 6186fi 6187 6188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6191 fi 6192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6196 $as_echo_n "(cached) " >&6 6197else 6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6199/* end confdefs.h. */ 6200int i; 6201_ACEOF 6202if ac_fn_c_try_compile "$LINENO"; then : 6203 xorg_cv_cc_flag_unused_command_line_argument=yes 6204else 6205 xorg_cv_cc_flag_unused_command_line_argument=no 6206fi 6207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6208fi 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6212 CFLAGS="$xorg_testset_save_CFLAGS" 6213fi 6214 6215found="no" 6216 6217 if test $found = "no" ; then 6218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 fi 6221 6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6224 fi 6225 6226 CFLAGS="$CFLAGS -Wshadow" 6227 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6229$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6230 cacheid=xorg_cv_cc_flag__Wshadow 6231 if eval \${$cacheid+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235/* end confdefs.h. */ 6236int i; 6237int 6238main () 6239{ 6240 6241 ; 6242 return 0; 6243} 6244_ACEOF 6245if ac_fn_c_try_link "$LINENO"; then : 6246 eval $cacheid=yes 6247else 6248 eval $cacheid=no 6249fi 6250rm -f core conftest.err conftest.$ac_objext \ 6251 conftest$ac_exeext conftest.$ac_ext 6252fi 6253 6254 6255 CFLAGS="$xorg_testset_save_CFLAGS" 6256 6257 eval supported=\$$cacheid 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6259$as_echo "$supported" >&6; } 6260 if test "$supported" = "yes" ; then 6261 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6262 found="yes" 6263 fi 6264 fi 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280xorg_testset_save_CFLAGS="$CFLAGS" 6281 6282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288else 6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6290/* end confdefs.h. */ 6291int i; 6292_ACEOF 6293if ac_fn_c_try_compile "$LINENO"; then : 6294 xorg_cv_cc_flag_unknown_warning_option=yes 6295else 6296 xorg_cv_cc_flag_unknown_warning_option=no 6297fi 6298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6299fi 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6303 CFLAGS="$xorg_testset_save_CFLAGS" 6304fi 6305 6306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6309 fi 6310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6314 $as_echo_n "(cached) " >&6 6315else 6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6317/* end confdefs.h. */ 6318int i; 6319_ACEOF 6320if ac_fn_c_try_compile "$LINENO"; then : 6321 xorg_cv_cc_flag_unused_command_line_argument=yes 6322else 6323 xorg_cv_cc_flag_unused_command_line_argument=no 6324fi 6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6326fi 6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6330 CFLAGS="$xorg_testset_save_CFLAGS" 6331fi 6332 6333found="no" 6334 6335 if test $found = "no" ; then 6336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6338 fi 6339 6340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6342 fi 6343 6344 CFLAGS="$CFLAGS -Wmissing-noreturn" 6345 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6347$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6348 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6349 if eval \${$cacheid+:} false; then : 6350 $as_echo_n "(cached) " >&6 6351else 6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6353/* end confdefs.h. */ 6354int i; 6355int 6356main () 6357{ 6358 6359 ; 6360 return 0; 6361} 6362_ACEOF 6363if ac_fn_c_try_link "$LINENO"; then : 6364 eval $cacheid=yes 6365else 6366 eval $cacheid=no 6367fi 6368rm -f core conftest.err conftest.$ac_objext \ 6369 conftest$ac_exeext conftest.$ac_ext 6370fi 6371 6372 6373 CFLAGS="$xorg_testset_save_CFLAGS" 6374 6375 eval supported=\$$cacheid 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6377$as_echo "$supported" >&6; } 6378 if test "$supported" = "yes" ; then 6379 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6380 found="yes" 6381 fi 6382 fi 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398xorg_testset_save_CFLAGS="$CFLAGS" 6399 6400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6405 $as_echo_n "(cached) " >&6 6406else 6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6408/* end confdefs.h. */ 6409int i; 6410_ACEOF 6411if ac_fn_c_try_compile "$LINENO"; then : 6412 xorg_cv_cc_flag_unknown_warning_option=yes 6413else 6414 xorg_cv_cc_flag_unknown_warning_option=no 6415fi 6416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6417fi 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6421 CFLAGS="$xorg_testset_save_CFLAGS" 6422fi 6423 6424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6427 fi 6428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6432 $as_echo_n "(cached) " >&6 6433else 6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435/* end confdefs.h. */ 6436int i; 6437_ACEOF 6438if ac_fn_c_try_compile "$LINENO"; then : 6439 xorg_cv_cc_flag_unused_command_line_argument=yes 6440else 6441 xorg_cv_cc_flag_unused_command_line_argument=no 6442fi 6443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6444fi 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6448 CFLAGS="$xorg_testset_save_CFLAGS" 6449fi 6450 6451found="no" 6452 6453 if test $found = "no" ; then 6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6456 fi 6457 6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6460 fi 6461 6462 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6463 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6465$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6466 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6467 if eval \${$cacheid+:} false; then : 6468 $as_echo_n "(cached) " >&6 6469else 6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6471/* end confdefs.h. */ 6472int i; 6473int 6474main () 6475{ 6476 6477 ; 6478 return 0; 6479} 6480_ACEOF 6481if ac_fn_c_try_link "$LINENO"; then : 6482 eval $cacheid=yes 6483else 6484 eval $cacheid=no 6485fi 6486rm -f core conftest.err conftest.$ac_objext \ 6487 conftest$ac_exeext conftest.$ac_ext 6488fi 6489 6490 6491 CFLAGS="$xorg_testset_save_CFLAGS" 6492 6493 eval supported=\$$cacheid 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6495$as_echo "$supported" >&6; } 6496 if test "$supported" = "yes" ; then 6497 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6498 found="yes" 6499 fi 6500 fi 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516xorg_testset_save_CFLAGS="$CFLAGS" 6517 6518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6526/* end confdefs.h. */ 6527int i; 6528_ACEOF 6529if ac_fn_c_try_compile "$LINENO"; then : 6530 xorg_cv_cc_flag_unknown_warning_option=yes 6531else 6532 xorg_cv_cc_flag_unknown_warning_option=no 6533fi 6534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6535fi 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540fi 6541 6542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6545 fi 6546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6550 $as_echo_n "(cached) " >&6 6551else 6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6553/* end confdefs.h. */ 6554int i; 6555_ACEOF 6556if ac_fn_c_try_compile "$LINENO"; then : 6557 xorg_cv_cc_flag_unused_command_line_argument=yes 6558else 6559 xorg_cv_cc_flag_unused_command_line_argument=no 6560fi 6561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6562fi 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6566 CFLAGS="$xorg_testset_save_CFLAGS" 6567fi 6568 6569found="no" 6570 6571 if test $found = "no" ; then 6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6574 fi 6575 6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6578 fi 6579 6580 CFLAGS="$CFLAGS -Wredundant-decls" 6581 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6583$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6584 cacheid=xorg_cv_cc_flag__Wredundant_decls 6585 if eval \${$cacheid+:} false; then : 6586 $as_echo_n "(cached) " >&6 6587else 6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6589/* end confdefs.h. */ 6590int i; 6591int 6592main () 6593{ 6594 6595 ; 6596 return 0; 6597} 6598_ACEOF 6599if ac_fn_c_try_link "$LINENO"; then : 6600 eval $cacheid=yes 6601else 6602 eval $cacheid=no 6603fi 6604rm -f core conftest.err conftest.$ac_objext \ 6605 conftest$ac_exeext conftest.$ac_ext 6606fi 6607 6608 6609 CFLAGS="$xorg_testset_save_CFLAGS" 6610 6611 eval supported=\$$cacheid 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6613$as_echo "$supported" >&6; } 6614 if test "$supported" = "yes" ; then 6615 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6616 found="yes" 6617 fi 6618 fi 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634xorg_testset_save_CFLAGS="$CFLAGS" 6635 6636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6641 $as_echo_n "(cached) " >&6 6642else 6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6644/* end confdefs.h. */ 6645int i; 6646_ACEOF 6647if ac_fn_c_try_compile "$LINENO"; then : 6648 xorg_cv_cc_flag_unknown_warning_option=yes 6649else 6650 xorg_cv_cc_flag_unknown_warning_option=no 6651fi 6652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6653fi 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6657 CFLAGS="$xorg_testset_save_CFLAGS" 6658fi 6659 6660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6663 fi 6664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671/* end confdefs.h. */ 6672int i; 6673_ACEOF 6674if ac_fn_c_try_compile "$LINENO"; then : 6675 xorg_cv_cc_flag_unused_command_line_argument=yes 6676else 6677 xorg_cv_cc_flag_unused_command_line_argument=no 6678fi 6679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6680fi 6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6684 CFLAGS="$xorg_testset_save_CFLAGS" 6685fi 6686 6687found="no" 6688 6689 if test $found = "no" ; then 6690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6692 fi 6693 6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6696 fi 6697 6698 CFLAGS="$CFLAGS -Wlogical-op" 6699 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6701$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6702 cacheid=xorg_cv_cc_flag__Wlogical_op 6703 if eval \${$cacheid+:} false; then : 6704 $as_echo_n "(cached) " >&6 6705else 6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707/* end confdefs.h. */ 6708int i; 6709int 6710main () 6711{ 6712 6713 ; 6714 return 0; 6715} 6716_ACEOF 6717if ac_fn_c_try_link "$LINENO"; then : 6718 eval $cacheid=yes 6719else 6720 eval $cacheid=no 6721fi 6722rm -f core conftest.err conftest.$ac_objext \ 6723 conftest$ac_exeext conftest.$ac_ext 6724fi 6725 6726 6727 CFLAGS="$xorg_testset_save_CFLAGS" 6728 6729 eval supported=\$$cacheid 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6731$as_echo "$supported" >&6; } 6732 if test "$supported" = "yes" ; then 6733 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6734 found="yes" 6735 fi 6736 fi 6737 6738 6739 6740# These are currently disabled because they are noisy. They will be enabled 6741# in the future once the codebase is sufficiently modernized to silence 6742# them. For now, I don't want them to drown out the other warnings. 6743# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6744# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6745# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6746 6747# Turn some warnings into errors, so we don't accidently get successful builds 6748# when there are problems that should be fixed. 6749 6750if test "x$SELECTIVE_WERROR" = "xyes" ; then 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764xorg_testset_save_CFLAGS="$CFLAGS" 6765 6766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6771 $as_echo_n "(cached) " >&6 6772else 6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6774/* end confdefs.h. */ 6775int i; 6776_ACEOF 6777if ac_fn_c_try_compile "$LINENO"; then : 6778 xorg_cv_cc_flag_unknown_warning_option=yes 6779else 6780 xorg_cv_cc_flag_unknown_warning_option=no 6781fi 6782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6783fi 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6787 CFLAGS="$xorg_testset_save_CFLAGS" 6788fi 6789 6790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6793 fi 6794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6798 $as_echo_n "(cached) " >&6 6799else 6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801/* end confdefs.h. */ 6802int i; 6803_ACEOF 6804if ac_fn_c_try_compile "$LINENO"; then : 6805 xorg_cv_cc_flag_unused_command_line_argument=yes 6806else 6807 xorg_cv_cc_flag_unused_command_line_argument=no 6808fi 6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6810fi 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6814 CFLAGS="$xorg_testset_save_CFLAGS" 6815fi 6816 6817found="no" 6818 6819 if test $found = "no" ; then 6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822 fi 6823 6824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6826 fi 6827 6828 CFLAGS="$CFLAGS -Werror=implicit" 6829 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6831$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6832 cacheid=xorg_cv_cc_flag__Werror_implicit 6833 if eval \${$cacheid+:} false; then : 6834 $as_echo_n "(cached) " >&6 6835else 6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6837/* end confdefs.h. */ 6838int i; 6839int 6840main () 6841{ 6842 6843 ; 6844 return 0; 6845} 6846_ACEOF 6847if ac_fn_c_try_link "$LINENO"; then : 6848 eval $cacheid=yes 6849else 6850 eval $cacheid=no 6851fi 6852rm -f core conftest.err conftest.$ac_objext \ 6853 conftest$ac_exeext conftest.$ac_ext 6854fi 6855 6856 6857 CFLAGS="$xorg_testset_save_CFLAGS" 6858 6859 eval supported=\$$cacheid 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6861$as_echo "$supported" >&6; } 6862 if test "$supported" = "yes" ; then 6863 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6864 found="yes" 6865 fi 6866 fi 6867 6868 if test $found = "no" ; then 6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6871 fi 6872 6873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6875 fi 6876 6877 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6878 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6880$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6881 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6882 if eval \${$cacheid+:} false; then : 6883 $as_echo_n "(cached) " >&6 6884else 6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6886/* end confdefs.h. */ 6887int i; 6888int 6889main () 6890{ 6891 6892 ; 6893 return 0; 6894} 6895_ACEOF 6896if ac_fn_c_try_link "$LINENO"; then : 6897 eval $cacheid=yes 6898else 6899 eval $cacheid=no 6900fi 6901rm -f core conftest.err conftest.$ac_objext \ 6902 conftest$ac_exeext conftest.$ac_ext 6903fi 6904 6905 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907 6908 eval supported=\$$cacheid 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6910$as_echo "$supported" >&6; } 6911 if test "$supported" = "yes" ; then 6912 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6913 found="yes" 6914 fi 6915 fi 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931xorg_testset_save_CFLAGS="$CFLAGS" 6932 6933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939else 6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6941/* end confdefs.h. */ 6942int i; 6943_ACEOF 6944if ac_fn_c_try_compile "$LINENO"; then : 6945 xorg_cv_cc_flag_unknown_warning_option=yes 6946else 6947 xorg_cv_cc_flag_unknown_warning_option=no 6948fi 6949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6950fi 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6954 CFLAGS="$xorg_testset_save_CFLAGS" 6955fi 6956 6957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6960 fi 6961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6968/* end confdefs.h. */ 6969int i; 6970_ACEOF 6971if ac_fn_c_try_compile "$LINENO"; then : 6972 xorg_cv_cc_flag_unused_command_line_argument=yes 6973else 6974 xorg_cv_cc_flag_unused_command_line_argument=no 6975fi 6976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6977fi 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982fi 6983 6984found="no" 6985 6986 if test $found = "no" ; then 6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 fi 6990 6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6993 fi 6994 6995 CFLAGS="$CFLAGS -Werror=nonnull" 6996 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6998$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6999 cacheid=xorg_cv_cc_flag__Werror_nonnull 7000 if eval \${$cacheid+:} false; then : 7001 $as_echo_n "(cached) " >&6 7002else 7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004/* end confdefs.h. */ 7005int i; 7006int 7007main () 7008{ 7009 7010 ; 7011 return 0; 7012} 7013_ACEOF 7014if ac_fn_c_try_link "$LINENO"; then : 7015 eval $cacheid=yes 7016else 7017 eval $cacheid=no 7018fi 7019rm -f core conftest.err conftest.$ac_objext \ 7020 conftest$ac_exeext conftest.$ac_ext 7021fi 7022 7023 7024 CFLAGS="$xorg_testset_save_CFLAGS" 7025 7026 eval supported=\$$cacheid 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7028$as_echo "$supported" >&6; } 7029 if test "$supported" = "yes" ; then 7030 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7031 found="yes" 7032 fi 7033 fi 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049xorg_testset_save_CFLAGS="$CFLAGS" 7050 7051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7056 $as_echo_n "(cached) " >&6 7057else 7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7059/* end confdefs.h. */ 7060int i; 7061_ACEOF 7062if ac_fn_c_try_compile "$LINENO"; then : 7063 xorg_cv_cc_flag_unknown_warning_option=yes 7064else 7065 xorg_cv_cc_flag_unknown_warning_option=no 7066fi 7067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7068fi 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7072 CFLAGS="$xorg_testset_save_CFLAGS" 7073fi 7074 7075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7078 fi 7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087int i; 7088_ACEOF 7089if ac_fn_c_try_compile "$LINENO"; then : 7090 xorg_cv_cc_flag_unused_command_line_argument=yes 7091else 7092 xorg_cv_cc_flag_unused_command_line_argument=no 7093fi 7094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7095fi 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7099 CFLAGS="$xorg_testset_save_CFLAGS" 7100fi 7101 7102found="no" 7103 7104 if test $found = "no" ; then 7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7107 fi 7108 7109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7111 fi 7112 7113 CFLAGS="$CFLAGS -Werror=init-self" 7114 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7116$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7117 cacheid=xorg_cv_cc_flag__Werror_init_self 7118 if eval \${$cacheid+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120else 7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7122/* end confdefs.h. */ 7123int i; 7124int 7125main () 7126{ 7127 7128 ; 7129 return 0; 7130} 7131_ACEOF 7132if ac_fn_c_try_link "$LINENO"; then : 7133 eval $cacheid=yes 7134else 7135 eval $cacheid=no 7136fi 7137rm -f core conftest.err conftest.$ac_objext \ 7138 conftest$ac_exeext conftest.$ac_ext 7139fi 7140 7141 7142 CFLAGS="$xorg_testset_save_CFLAGS" 7143 7144 eval supported=\$$cacheid 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7146$as_echo "$supported" >&6; } 7147 if test "$supported" = "yes" ; then 7148 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7149 found="yes" 7150 fi 7151 fi 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167xorg_testset_save_CFLAGS="$CFLAGS" 7168 7169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7174 $as_echo_n "(cached) " >&6 7175else 7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177/* end confdefs.h. */ 7178int i; 7179_ACEOF 7180if ac_fn_c_try_compile "$LINENO"; then : 7181 xorg_cv_cc_flag_unknown_warning_option=yes 7182else 7183 xorg_cv_cc_flag_unknown_warning_option=no 7184fi 7185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7186fi 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7190 CFLAGS="$xorg_testset_save_CFLAGS" 7191fi 7192 7193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7196 fi 7197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7201 $as_echo_n "(cached) " >&6 7202else 7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7204/* end confdefs.h. */ 7205int i; 7206_ACEOF 7207if ac_fn_c_try_compile "$LINENO"; then : 7208 xorg_cv_cc_flag_unused_command_line_argument=yes 7209else 7210 xorg_cv_cc_flag_unused_command_line_argument=no 7211fi 7212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7213fi 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7217 CFLAGS="$xorg_testset_save_CFLAGS" 7218fi 7219 7220found="no" 7221 7222 if test $found = "no" ; then 7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7225 fi 7226 7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7229 fi 7230 7231 CFLAGS="$CFLAGS -Werror=main" 7232 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7234$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7235 cacheid=xorg_cv_cc_flag__Werror_main 7236 if eval \${$cacheid+:} false; then : 7237 $as_echo_n "(cached) " >&6 7238else 7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7240/* end confdefs.h. */ 7241int i; 7242int 7243main () 7244{ 7245 7246 ; 7247 return 0; 7248} 7249_ACEOF 7250if ac_fn_c_try_link "$LINENO"; then : 7251 eval $cacheid=yes 7252else 7253 eval $cacheid=no 7254fi 7255rm -f core conftest.err conftest.$ac_objext \ 7256 conftest$ac_exeext conftest.$ac_ext 7257fi 7258 7259 7260 CFLAGS="$xorg_testset_save_CFLAGS" 7261 7262 eval supported=\$$cacheid 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7264$as_echo "$supported" >&6; } 7265 if test "$supported" = "yes" ; then 7266 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7267 found="yes" 7268 fi 7269 fi 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285xorg_testset_save_CFLAGS="$CFLAGS" 7286 7287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7292 $as_echo_n "(cached) " >&6 7293else 7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7295/* end confdefs.h. */ 7296int i; 7297_ACEOF 7298if ac_fn_c_try_compile "$LINENO"; then : 7299 xorg_cv_cc_flag_unknown_warning_option=yes 7300else 7301 xorg_cv_cc_flag_unknown_warning_option=no 7302fi 7303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7304fi 7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7308 CFLAGS="$xorg_testset_save_CFLAGS" 7309fi 7310 7311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7314 fi 7315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320else 7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7322/* end confdefs.h. */ 7323int i; 7324_ACEOF 7325if ac_fn_c_try_compile "$LINENO"; then : 7326 xorg_cv_cc_flag_unused_command_line_argument=yes 7327else 7328 xorg_cv_cc_flag_unused_command_line_argument=no 7329fi 7330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7331fi 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7335 CFLAGS="$xorg_testset_save_CFLAGS" 7336fi 7337 7338found="no" 7339 7340 if test $found = "no" ; then 7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7343 fi 7344 7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7347 fi 7348 7349 CFLAGS="$CFLAGS -Werror=missing-braces" 7350 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7352$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7353 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7354 if eval \${$cacheid+:} false; then : 7355 $as_echo_n "(cached) " >&6 7356else 7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7358/* end confdefs.h. */ 7359int i; 7360int 7361main () 7362{ 7363 7364 ; 7365 return 0; 7366} 7367_ACEOF 7368if ac_fn_c_try_link "$LINENO"; then : 7369 eval $cacheid=yes 7370else 7371 eval $cacheid=no 7372fi 7373rm -f core conftest.err conftest.$ac_objext \ 7374 conftest$ac_exeext conftest.$ac_ext 7375fi 7376 7377 7378 CFLAGS="$xorg_testset_save_CFLAGS" 7379 7380 eval supported=\$$cacheid 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7382$as_echo "$supported" >&6; } 7383 if test "$supported" = "yes" ; then 7384 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7385 found="yes" 7386 fi 7387 fi 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403xorg_testset_save_CFLAGS="$CFLAGS" 7404 7405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7410 $as_echo_n "(cached) " >&6 7411else 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7413/* end confdefs.h. */ 7414int i; 7415_ACEOF 7416if ac_fn_c_try_compile "$LINENO"; then : 7417 xorg_cv_cc_flag_unknown_warning_option=yes 7418else 7419 xorg_cv_cc_flag_unknown_warning_option=no 7420fi 7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7422fi 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7426 CFLAGS="$xorg_testset_save_CFLAGS" 7427fi 7428 7429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7432 fi 7433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438else 7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7440/* end confdefs.h. */ 7441int i; 7442_ACEOF 7443if ac_fn_c_try_compile "$LINENO"; then : 7444 xorg_cv_cc_flag_unused_command_line_argument=yes 7445else 7446 xorg_cv_cc_flag_unused_command_line_argument=no 7447fi 7448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7449fi 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7453 CFLAGS="$xorg_testset_save_CFLAGS" 7454fi 7455 7456found="no" 7457 7458 if test $found = "no" ; then 7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7461 fi 7462 7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7465 fi 7466 7467 CFLAGS="$CFLAGS -Werror=sequence-point" 7468 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7470$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7471 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7472 if eval \${$cacheid+:} false; then : 7473 $as_echo_n "(cached) " >&6 7474else 7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7476/* end confdefs.h. */ 7477int i; 7478int 7479main () 7480{ 7481 7482 ; 7483 return 0; 7484} 7485_ACEOF 7486if ac_fn_c_try_link "$LINENO"; then : 7487 eval $cacheid=yes 7488else 7489 eval $cacheid=no 7490fi 7491rm -f core conftest.err conftest.$ac_objext \ 7492 conftest$ac_exeext conftest.$ac_ext 7493fi 7494 7495 7496 CFLAGS="$xorg_testset_save_CFLAGS" 7497 7498 eval supported=\$$cacheid 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7500$as_echo "$supported" >&6; } 7501 if test "$supported" = "yes" ; then 7502 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7503 found="yes" 7504 fi 7505 fi 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521xorg_testset_save_CFLAGS="$CFLAGS" 7522 7523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7528 $as_echo_n "(cached) " >&6 7529else 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7531/* end confdefs.h. */ 7532int i; 7533_ACEOF 7534if ac_fn_c_try_compile "$LINENO"; then : 7535 xorg_cv_cc_flag_unknown_warning_option=yes 7536else 7537 xorg_cv_cc_flag_unknown_warning_option=no 7538fi 7539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7540fi 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7544 CFLAGS="$xorg_testset_save_CFLAGS" 7545fi 7546 7547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7550 fi 7551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556else 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7558/* end confdefs.h. */ 7559int i; 7560_ACEOF 7561if ac_fn_c_try_compile "$LINENO"; then : 7562 xorg_cv_cc_flag_unused_command_line_argument=yes 7563else 7564 xorg_cv_cc_flag_unused_command_line_argument=no 7565fi 7566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7567fi 7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7571 CFLAGS="$xorg_testset_save_CFLAGS" 7572fi 7573 7574found="no" 7575 7576 if test $found = "no" ; then 7577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7579 fi 7580 7581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7583 fi 7584 7585 CFLAGS="$CFLAGS -Werror=return-type" 7586 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7588$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7589 cacheid=xorg_cv_cc_flag__Werror_return_type 7590 if eval \${$cacheid+:} false; then : 7591 $as_echo_n "(cached) " >&6 7592else 7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7594/* end confdefs.h. */ 7595int i; 7596int 7597main () 7598{ 7599 7600 ; 7601 return 0; 7602} 7603_ACEOF 7604if ac_fn_c_try_link "$LINENO"; then : 7605 eval $cacheid=yes 7606else 7607 eval $cacheid=no 7608fi 7609rm -f core conftest.err conftest.$ac_objext \ 7610 conftest$ac_exeext conftest.$ac_ext 7611fi 7612 7613 7614 CFLAGS="$xorg_testset_save_CFLAGS" 7615 7616 eval supported=\$$cacheid 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7618$as_echo "$supported" >&6; } 7619 if test "$supported" = "yes" ; then 7620 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7621 found="yes" 7622 fi 7623 fi 7624 7625 if test $found = "no" ; then 7626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7628 fi 7629 7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7632 fi 7633 7634 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7635 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7637$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7638 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7639 if eval \${$cacheid+:} false; then : 7640 $as_echo_n "(cached) " >&6 7641else 7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643/* end confdefs.h. */ 7644int i; 7645int 7646main () 7647{ 7648 7649 ; 7650 return 0; 7651} 7652_ACEOF 7653if ac_fn_c_try_link "$LINENO"; then : 7654 eval $cacheid=yes 7655else 7656 eval $cacheid=no 7657fi 7658rm -f core conftest.err conftest.$ac_objext \ 7659 conftest$ac_exeext conftest.$ac_ext 7660fi 7661 7662 7663 CFLAGS="$xorg_testset_save_CFLAGS" 7664 7665 eval supported=\$$cacheid 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7667$as_echo "$supported" >&6; } 7668 if test "$supported" = "yes" ; then 7669 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7670 found="yes" 7671 fi 7672 fi 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688xorg_testset_save_CFLAGS="$CFLAGS" 7689 7690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7695 $as_echo_n "(cached) " >&6 7696else 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698/* end confdefs.h. */ 7699int i; 7700_ACEOF 7701if ac_fn_c_try_compile "$LINENO"; then : 7702 xorg_cv_cc_flag_unknown_warning_option=yes 7703else 7704 xorg_cv_cc_flag_unknown_warning_option=no 7705fi 7706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7707fi 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7711 CFLAGS="$xorg_testset_save_CFLAGS" 7712fi 7713 7714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7717 fi 7718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726int i; 7727_ACEOF 7728if ac_fn_c_try_compile "$LINENO"; then : 7729 xorg_cv_cc_flag_unused_command_line_argument=yes 7730else 7731 xorg_cv_cc_flag_unused_command_line_argument=no 7732fi 7733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7734fi 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7738 CFLAGS="$xorg_testset_save_CFLAGS" 7739fi 7740 7741found="no" 7742 7743 if test $found = "no" ; then 7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7746 fi 7747 7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7750 fi 7751 7752 CFLAGS="$CFLAGS -Werror=trigraphs" 7753 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7755$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7756 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7757 if eval \${$cacheid+:} false; then : 7758 $as_echo_n "(cached) " >&6 7759else 7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7761/* end confdefs.h. */ 7762int i; 7763int 7764main () 7765{ 7766 7767 ; 7768 return 0; 7769} 7770_ACEOF 7771if ac_fn_c_try_link "$LINENO"; then : 7772 eval $cacheid=yes 7773else 7774 eval $cacheid=no 7775fi 7776rm -f core conftest.err conftest.$ac_objext \ 7777 conftest$ac_exeext conftest.$ac_ext 7778fi 7779 7780 7781 CFLAGS="$xorg_testset_save_CFLAGS" 7782 7783 eval supported=\$$cacheid 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7785$as_echo "$supported" >&6; } 7786 if test "$supported" = "yes" ; then 7787 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7788 found="yes" 7789 fi 7790 fi 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806xorg_testset_save_CFLAGS="$CFLAGS" 7807 7808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7813 $as_echo_n "(cached) " >&6 7814else 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816/* end confdefs.h. */ 7817int i; 7818_ACEOF 7819if ac_fn_c_try_compile "$LINENO"; then : 7820 xorg_cv_cc_flag_unknown_warning_option=yes 7821else 7822 xorg_cv_cc_flag_unknown_warning_option=no 7823fi 7824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7825fi 7826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7829 CFLAGS="$xorg_testset_save_CFLAGS" 7830fi 7831 7832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7835 fi 7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841else 7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843/* end confdefs.h. */ 7844int i; 7845_ACEOF 7846if ac_fn_c_try_compile "$LINENO"; then : 7847 xorg_cv_cc_flag_unused_command_line_argument=yes 7848else 7849 xorg_cv_cc_flag_unused_command_line_argument=no 7850fi 7851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7852fi 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7856 CFLAGS="$xorg_testset_save_CFLAGS" 7857fi 7858 7859found="no" 7860 7861 if test $found = "no" ; then 7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7864 fi 7865 7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7868 fi 7869 7870 CFLAGS="$CFLAGS -Werror=array-bounds" 7871 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7873$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7874 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7875 if eval \${$cacheid+:} false; then : 7876 $as_echo_n "(cached) " >&6 7877else 7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7879/* end confdefs.h. */ 7880int i; 7881int 7882main () 7883{ 7884 7885 ; 7886 return 0; 7887} 7888_ACEOF 7889if ac_fn_c_try_link "$LINENO"; then : 7890 eval $cacheid=yes 7891else 7892 eval $cacheid=no 7893fi 7894rm -f core conftest.err conftest.$ac_objext \ 7895 conftest$ac_exeext conftest.$ac_ext 7896fi 7897 7898 7899 CFLAGS="$xorg_testset_save_CFLAGS" 7900 7901 eval supported=\$$cacheid 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7903$as_echo "$supported" >&6; } 7904 if test "$supported" = "yes" ; then 7905 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7906 found="yes" 7907 fi 7908 fi 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924xorg_testset_save_CFLAGS="$CFLAGS" 7925 7926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932else 7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7934/* end confdefs.h. */ 7935int i; 7936_ACEOF 7937if ac_fn_c_try_compile "$LINENO"; then : 7938 xorg_cv_cc_flag_unknown_warning_option=yes 7939else 7940 xorg_cv_cc_flag_unknown_warning_option=no 7941fi 7942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7943fi 7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7947 CFLAGS="$xorg_testset_save_CFLAGS" 7948fi 7949 7950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7953 fi 7954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959else 7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7961/* end confdefs.h. */ 7962int i; 7963_ACEOF 7964if ac_fn_c_try_compile "$LINENO"; then : 7965 xorg_cv_cc_flag_unused_command_line_argument=yes 7966else 7967 xorg_cv_cc_flag_unused_command_line_argument=no 7968fi 7969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7970fi 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7974 CFLAGS="$xorg_testset_save_CFLAGS" 7975fi 7976 7977found="no" 7978 7979 if test $found = "no" ; then 7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7982 fi 7983 7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7986 fi 7987 7988 CFLAGS="$CFLAGS -Werror=write-strings" 7989 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7991$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7992 cacheid=xorg_cv_cc_flag__Werror_write_strings 7993 if eval \${$cacheid+:} false; then : 7994 $as_echo_n "(cached) " >&6 7995else 7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7997/* end confdefs.h. */ 7998int i; 7999int 8000main () 8001{ 8002 8003 ; 8004 return 0; 8005} 8006_ACEOF 8007if ac_fn_c_try_link "$LINENO"; then : 8008 eval $cacheid=yes 8009else 8010 eval $cacheid=no 8011fi 8012rm -f core conftest.err conftest.$ac_objext \ 8013 conftest$ac_exeext conftest.$ac_ext 8014fi 8015 8016 8017 CFLAGS="$xorg_testset_save_CFLAGS" 8018 8019 eval supported=\$$cacheid 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8021$as_echo "$supported" >&6; } 8022 if test "$supported" = "yes" ; then 8023 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8024 found="yes" 8025 fi 8026 fi 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042xorg_testset_save_CFLAGS="$CFLAGS" 8043 8044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050else 8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8052/* end confdefs.h. */ 8053int i; 8054_ACEOF 8055if ac_fn_c_try_compile "$LINENO"; then : 8056 xorg_cv_cc_flag_unknown_warning_option=yes 8057else 8058 xorg_cv_cc_flag_unknown_warning_option=no 8059fi 8060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8061fi 8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8065 CFLAGS="$xorg_testset_save_CFLAGS" 8066fi 8067 8068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8071 fi 8072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077else 8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8079/* end confdefs.h. */ 8080int i; 8081_ACEOF 8082if ac_fn_c_try_compile "$LINENO"; then : 8083 xorg_cv_cc_flag_unused_command_line_argument=yes 8084else 8085 xorg_cv_cc_flag_unused_command_line_argument=no 8086fi 8087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8088fi 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8092 CFLAGS="$xorg_testset_save_CFLAGS" 8093fi 8094 8095found="no" 8096 8097 if test $found = "no" ; then 8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8100 fi 8101 8102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8104 fi 8105 8106 CFLAGS="$CFLAGS -Werror=address" 8107 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8109$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8110 cacheid=xorg_cv_cc_flag__Werror_address 8111 if eval \${$cacheid+:} false; then : 8112 $as_echo_n "(cached) " >&6 8113else 8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8115/* end confdefs.h. */ 8116int i; 8117int 8118main () 8119{ 8120 8121 ; 8122 return 0; 8123} 8124_ACEOF 8125if ac_fn_c_try_link "$LINENO"; then : 8126 eval $cacheid=yes 8127else 8128 eval $cacheid=no 8129fi 8130rm -f core conftest.err conftest.$ac_objext \ 8131 conftest$ac_exeext conftest.$ac_ext 8132fi 8133 8134 8135 CFLAGS="$xorg_testset_save_CFLAGS" 8136 8137 eval supported=\$$cacheid 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8139$as_echo "$supported" >&6; } 8140 if test "$supported" = "yes" ; then 8141 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8142 found="yes" 8143 fi 8144 fi 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160xorg_testset_save_CFLAGS="$CFLAGS" 8161 8162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8170/* end confdefs.h. */ 8171int i; 8172_ACEOF 8173if ac_fn_c_try_compile "$LINENO"; then : 8174 xorg_cv_cc_flag_unknown_warning_option=yes 8175else 8176 xorg_cv_cc_flag_unknown_warning_option=no 8177fi 8178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8179fi 8180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8183 CFLAGS="$xorg_testset_save_CFLAGS" 8184fi 8185 8186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8189 fi 8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8194 $as_echo_n "(cached) " >&6 8195else 8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8197/* end confdefs.h. */ 8198int i; 8199_ACEOF 8200if ac_fn_c_try_compile "$LINENO"; then : 8201 xorg_cv_cc_flag_unused_command_line_argument=yes 8202else 8203 xorg_cv_cc_flag_unused_command_line_argument=no 8204fi 8205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8206fi 8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8210 CFLAGS="$xorg_testset_save_CFLAGS" 8211fi 8212 8213found="no" 8214 8215 if test $found = "no" ; then 8216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8218 fi 8219 8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8222 fi 8223 8224 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8225 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8227$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8228 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8229 if eval \${$cacheid+:} false; then : 8230 $as_echo_n "(cached) " >&6 8231else 8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8233/* end confdefs.h. */ 8234int i; 8235int 8236main () 8237{ 8238 8239 ; 8240 return 0; 8241} 8242_ACEOF 8243if ac_fn_c_try_link "$LINENO"; then : 8244 eval $cacheid=yes 8245else 8246 eval $cacheid=no 8247fi 8248rm -f core conftest.err conftest.$ac_objext \ 8249 conftest$ac_exeext conftest.$ac_ext 8250fi 8251 8252 8253 CFLAGS="$xorg_testset_save_CFLAGS" 8254 8255 eval supported=\$$cacheid 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8257$as_echo "$supported" >&6; } 8258 if test "$supported" = "yes" ; then 8259 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8260 found="yes" 8261 fi 8262 fi 8263 8264 if test $found = "no" ; then 8265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8267 fi 8268 8269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8271 fi 8272 8273 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8274 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8276$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8277 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8278 if eval \${$cacheid+:} false; then : 8279 $as_echo_n "(cached) " >&6 8280else 8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8282/* end confdefs.h. */ 8283int i; 8284int 8285main () 8286{ 8287 8288 ; 8289 return 0; 8290} 8291_ACEOF 8292if ac_fn_c_try_link "$LINENO"; then : 8293 eval $cacheid=yes 8294else 8295 eval $cacheid=no 8296fi 8297rm -f core conftest.err conftest.$ac_objext \ 8298 conftest$ac_exeext conftest.$ac_ext 8299fi 8300 8301 8302 CFLAGS="$xorg_testset_save_CFLAGS" 8303 8304 eval supported=\$$cacheid 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8306$as_echo "$supported" >&6; } 8307 if test "$supported" = "yes" ; then 8308 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8309 found="yes" 8310 fi 8311 fi 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327xorg_testset_save_CFLAGS="$CFLAGS" 8328 8329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335else 8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337/* end confdefs.h. */ 8338int i; 8339_ACEOF 8340if ac_fn_c_try_compile "$LINENO"; then : 8341 xorg_cv_cc_flag_unknown_warning_option=yes 8342else 8343 xorg_cv_cc_flag_unknown_warning_option=no 8344fi 8345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8346fi 8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8350 CFLAGS="$xorg_testset_save_CFLAGS" 8351fi 8352 8353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8356 fi 8357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364/* end confdefs.h. */ 8365int i; 8366_ACEOF 8367if ac_fn_c_try_compile "$LINENO"; then : 8368 xorg_cv_cc_flag_unused_command_line_argument=yes 8369else 8370 xorg_cv_cc_flag_unused_command_line_argument=no 8371fi 8372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8373fi 8374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8377 CFLAGS="$xorg_testset_save_CFLAGS" 8378fi 8379 8380found="no" 8381 8382 if test $found = "no" ; then 8383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8385 fi 8386 8387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8389 fi 8390 8391 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8392 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8394$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8395 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8396 if eval \${$cacheid+:} false; then : 8397 $as_echo_n "(cached) " >&6 8398else 8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8400/* end confdefs.h. */ 8401int i; 8402int 8403main () 8404{ 8405 8406 ; 8407 return 0; 8408} 8409_ACEOF 8410if ac_fn_c_try_link "$LINENO"; then : 8411 eval $cacheid=yes 8412else 8413 eval $cacheid=no 8414fi 8415rm -f core conftest.err conftest.$ac_objext \ 8416 conftest$ac_exeext conftest.$ac_ext 8417fi 8418 8419 8420 CFLAGS="$xorg_testset_save_CFLAGS" 8421 8422 eval supported=\$$cacheid 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8424$as_echo "$supported" >&6; } 8425 if test "$supported" = "yes" ; then 8426 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8427 found="yes" 8428 fi 8429 fi 8430 8431 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8432else 8433{ $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 8434$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;} 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448xorg_testset_save_CFLAGS="$CFLAGS" 8449 8450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8455 $as_echo_n "(cached) " >&6 8456else 8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458/* end confdefs.h. */ 8459int i; 8460_ACEOF 8461if ac_fn_c_try_compile "$LINENO"; then : 8462 xorg_cv_cc_flag_unknown_warning_option=yes 8463else 8464 xorg_cv_cc_flag_unknown_warning_option=no 8465fi 8466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8467fi 8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8471 CFLAGS="$xorg_testset_save_CFLAGS" 8472fi 8473 8474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8477 fi 8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483else 8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8485/* end confdefs.h. */ 8486int i; 8487_ACEOF 8488if ac_fn_c_try_compile "$LINENO"; then : 8489 xorg_cv_cc_flag_unused_command_line_argument=yes 8490else 8491 xorg_cv_cc_flag_unused_command_line_argument=no 8492fi 8493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8494fi 8495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8498 CFLAGS="$xorg_testset_save_CFLAGS" 8499fi 8500 8501found="no" 8502 8503 if test $found = "no" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8510 fi 8511 8512 CFLAGS="$CFLAGS -Wimplicit" 8513 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8515$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8516 cacheid=xorg_cv_cc_flag__Wimplicit 8517 if eval \${$cacheid+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519else 8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8521/* end confdefs.h. */ 8522int i; 8523int 8524main () 8525{ 8526 8527 ; 8528 return 0; 8529} 8530_ACEOF 8531if ac_fn_c_try_link "$LINENO"; then : 8532 eval $cacheid=yes 8533else 8534 eval $cacheid=no 8535fi 8536rm -f core conftest.err conftest.$ac_objext \ 8537 conftest$ac_exeext conftest.$ac_ext 8538fi 8539 8540 8541 CFLAGS="$xorg_testset_save_CFLAGS" 8542 8543 eval supported=\$$cacheid 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8545$as_echo "$supported" >&6; } 8546 if test "$supported" = "yes" ; then 8547 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8548 found="yes" 8549 fi 8550 fi 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566xorg_testset_save_CFLAGS="$CFLAGS" 8567 8568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8576/* end confdefs.h. */ 8577int i; 8578_ACEOF 8579if ac_fn_c_try_compile "$LINENO"; then : 8580 xorg_cv_cc_flag_unknown_warning_option=yes 8581else 8582 xorg_cv_cc_flag_unknown_warning_option=no 8583fi 8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8585fi 8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8589 CFLAGS="$xorg_testset_save_CFLAGS" 8590fi 8591 8592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8603/* end confdefs.h. */ 8604int i; 8605_ACEOF 8606if ac_fn_c_try_compile "$LINENO"; then : 8607 xorg_cv_cc_flag_unused_command_line_argument=yes 8608else 8609 xorg_cv_cc_flag_unused_command_line_argument=no 8610fi 8611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8612fi 8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8616 CFLAGS="$xorg_testset_save_CFLAGS" 8617fi 8618 8619found="no" 8620 8621 if test $found = "no" ; then 8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8624 fi 8625 8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8628 fi 8629 8630 CFLAGS="$CFLAGS -Wnonnull" 8631 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8633$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8634 cacheid=xorg_cv_cc_flag__Wnonnull 8635 if eval \${$cacheid+:} false; then : 8636 $as_echo_n "(cached) " >&6 8637else 8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8639/* end confdefs.h. */ 8640int i; 8641int 8642main () 8643{ 8644 8645 ; 8646 return 0; 8647} 8648_ACEOF 8649if ac_fn_c_try_link "$LINENO"; then : 8650 eval $cacheid=yes 8651else 8652 eval $cacheid=no 8653fi 8654rm -f core conftest.err conftest.$ac_objext \ 8655 conftest$ac_exeext conftest.$ac_ext 8656fi 8657 8658 8659 CFLAGS="$xorg_testset_save_CFLAGS" 8660 8661 eval supported=\$$cacheid 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8663$as_echo "$supported" >&6; } 8664 if test "$supported" = "yes" ; then 8665 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8666 found="yes" 8667 fi 8668 fi 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684xorg_testset_save_CFLAGS="$CFLAGS" 8685 8686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695int i; 8696_ACEOF 8697if ac_fn_c_try_compile "$LINENO"; then : 8698 xorg_cv_cc_flag_unknown_warning_option=yes 8699else 8700 xorg_cv_cc_flag_unknown_warning_option=no 8701fi 8702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8703fi 8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8707 CFLAGS="$xorg_testset_save_CFLAGS" 8708fi 8709 8710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8713 fi 8714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719else 8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8721/* end confdefs.h. */ 8722int i; 8723_ACEOF 8724if ac_fn_c_try_compile "$LINENO"; then : 8725 xorg_cv_cc_flag_unused_command_line_argument=yes 8726else 8727 xorg_cv_cc_flag_unused_command_line_argument=no 8728fi 8729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8734 CFLAGS="$xorg_testset_save_CFLAGS" 8735fi 8736 8737found="no" 8738 8739 if test $found = "no" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 fi 8747 8748 CFLAGS="$CFLAGS -Winit-self" 8749 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8751$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8752 cacheid=xorg_cv_cc_flag__Winit_self 8753 if eval \${$cacheid+:} false; then : 8754 $as_echo_n "(cached) " >&6 8755else 8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8757/* end confdefs.h. */ 8758int i; 8759int 8760main () 8761{ 8762 8763 ; 8764 return 0; 8765} 8766_ACEOF 8767if ac_fn_c_try_link "$LINENO"; then : 8768 eval $cacheid=yes 8769else 8770 eval $cacheid=no 8771fi 8772rm -f core conftest.err conftest.$ac_objext \ 8773 conftest$ac_exeext conftest.$ac_ext 8774fi 8775 8776 8777 CFLAGS="$xorg_testset_save_CFLAGS" 8778 8779 eval supported=\$$cacheid 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8781$as_echo "$supported" >&6; } 8782 if test "$supported" = "yes" ; then 8783 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8784 found="yes" 8785 fi 8786 fi 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802xorg_testset_save_CFLAGS="$CFLAGS" 8803 8804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8809 $as_echo_n "(cached) " >&6 8810else 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812/* end confdefs.h. */ 8813int i; 8814_ACEOF 8815if ac_fn_c_try_compile "$LINENO"; then : 8816 xorg_cv_cc_flag_unknown_warning_option=yes 8817else 8818 xorg_cv_cc_flag_unknown_warning_option=no 8819fi 8820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8821fi 8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8825 CFLAGS="$xorg_testset_save_CFLAGS" 8826fi 8827 8828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8831 fi 8832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8836 $as_echo_n "(cached) " >&6 8837else 8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8839/* end confdefs.h. */ 8840int i; 8841_ACEOF 8842if ac_fn_c_try_compile "$LINENO"; then : 8843 xorg_cv_cc_flag_unused_command_line_argument=yes 8844else 8845 xorg_cv_cc_flag_unused_command_line_argument=no 8846fi 8847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8848fi 8849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8852 CFLAGS="$xorg_testset_save_CFLAGS" 8853fi 8854 8855found="no" 8856 8857 if test $found = "no" ; then 8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8860 fi 8861 8862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8864 fi 8865 8866 CFLAGS="$CFLAGS -Wmain" 8867 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8869$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8870 cacheid=xorg_cv_cc_flag__Wmain 8871 if eval \${$cacheid+:} false; then : 8872 $as_echo_n "(cached) " >&6 8873else 8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875/* end confdefs.h. */ 8876int i; 8877int 8878main () 8879{ 8880 8881 ; 8882 return 0; 8883} 8884_ACEOF 8885if ac_fn_c_try_link "$LINENO"; then : 8886 eval $cacheid=yes 8887else 8888 eval $cacheid=no 8889fi 8890rm -f core conftest.err conftest.$ac_objext \ 8891 conftest$ac_exeext conftest.$ac_ext 8892fi 8893 8894 8895 CFLAGS="$xorg_testset_save_CFLAGS" 8896 8897 eval supported=\$$cacheid 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8899$as_echo "$supported" >&6; } 8900 if test "$supported" = "yes" ; then 8901 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8902 found="yes" 8903 fi 8904 fi 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920xorg_testset_save_CFLAGS="$CFLAGS" 8921 8922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8925$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8926if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931int i; 8932_ACEOF 8933if ac_fn_c_try_compile "$LINENO"; then : 8934 xorg_cv_cc_flag_unknown_warning_option=yes 8935else 8936 xorg_cv_cc_flag_unknown_warning_option=no 8937fi 8938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8939fi 8940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8941$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8943 CFLAGS="$xorg_testset_save_CFLAGS" 8944fi 8945 8946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8949 fi 8950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8952$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8953if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8954 $as_echo_n "(cached) " >&6 8955else 8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957/* end confdefs.h. */ 8958int i; 8959_ACEOF 8960if ac_fn_c_try_compile "$LINENO"; then : 8961 xorg_cv_cc_flag_unused_command_line_argument=yes 8962else 8963 xorg_cv_cc_flag_unused_command_line_argument=no 8964fi 8965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8966fi 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8968$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8970 CFLAGS="$xorg_testset_save_CFLAGS" 8971fi 8972 8973found="no" 8974 8975 if test $found = "no" ; then 8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 fi 8979 8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8982 fi 8983 8984 CFLAGS="$CFLAGS -Wmissing-braces" 8985 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8987$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8988 cacheid=xorg_cv_cc_flag__Wmissing_braces 8989 if eval \${$cacheid+:} false; then : 8990 $as_echo_n "(cached) " >&6 8991else 8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8993/* end confdefs.h. */ 8994int i; 8995int 8996main () 8997{ 8998 8999 ; 9000 return 0; 9001} 9002_ACEOF 9003if ac_fn_c_try_link "$LINENO"; then : 9004 eval $cacheid=yes 9005else 9006 eval $cacheid=no 9007fi 9008rm -f core conftest.err conftest.$ac_objext \ 9009 conftest$ac_exeext conftest.$ac_ext 9010fi 9011 9012 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014 9015 eval supported=\$$cacheid 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9017$as_echo "$supported" >&6; } 9018 if test "$supported" = "yes" ; then 9019 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9020 found="yes" 9021 fi 9022 fi 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038xorg_testset_save_CFLAGS="$CFLAGS" 9039 9040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9045 $as_echo_n "(cached) " >&6 9046else 9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048/* end confdefs.h. */ 9049int i; 9050_ACEOF 9051if ac_fn_c_try_compile "$LINENO"; then : 9052 xorg_cv_cc_flag_unknown_warning_option=yes 9053else 9054 xorg_cv_cc_flag_unknown_warning_option=no 9055fi 9056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9057fi 9058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9061 CFLAGS="$xorg_testset_save_CFLAGS" 9062fi 9063 9064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9067 fi 9068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9072 $as_echo_n "(cached) " >&6 9073else 9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9075/* end confdefs.h. */ 9076int i; 9077_ACEOF 9078if ac_fn_c_try_compile "$LINENO"; then : 9079 xorg_cv_cc_flag_unused_command_line_argument=yes 9080else 9081 xorg_cv_cc_flag_unused_command_line_argument=no 9082fi 9083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9084fi 9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9088 CFLAGS="$xorg_testset_save_CFLAGS" 9089fi 9090 9091found="no" 9092 9093 if test $found = "no" ; then 9094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9096 fi 9097 9098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9100 fi 9101 9102 CFLAGS="$CFLAGS -Wsequence-point" 9103 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9105$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9106 cacheid=xorg_cv_cc_flag__Wsequence_point 9107 if eval \${$cacheid+:} false; then : 9108 $as_echo_n "(cached) " >&6 9109else 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111/* end confdefs.h. */ 9112int i; 9113int 9114main () 9115{ 9116 9117 ; 9118 return 0; 9119} 9120_ACEOF 9121if ac_fn_c_try_link "$LINENO"; then : 9122 eval $cacheid=yes 9123else 9124 eval $cacheid=no 9125fi 9126rm -f core conftest.err conftest.$ac_objext \ 9127 conftest$ac_exeext conftest.$ac_ext 9128fi 9129 9130 9131 CFLAGS="$xorg_testset_save_CFLAGS" 9132 9133 eval supported=\$$cacheid 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9135$as_echo "$supported" >&6; } 9136 if test "$supported" = "yes" ; then 9137 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9138 found="yes" 9139 fi 9140 fi 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156xorg_testset_save_CFLAGS="$CFLAGS" 9157 9158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9161$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9162if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9163 $as_echo_n "(cached) " >&6 9164else 9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9166/* end confdefs.h. */ 9167int i; 9168_ACEOF 9169if ac_fn_c_try_compile "$LINENO"; then : 9170 xorg_cv_cc_flag_unknown_warning_option=yes 9171else 9172 xorg_cv_cc_flag_unknown_warning_option=no 9173fi 9174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9175fi 9176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9177$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9179 CFLAGS="$xorg_testset_save_CFLAGS" 9180fi 9181 9182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9185 fi 9186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9188$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9189if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9190 $as_echo_n "(cached) " >&6 9191else 9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9193/* end confdefs.h. */ 9194int i; 9195_ACEOF 9196if ac_fn_c_try_compile "$LINENO"; then : 9197 xorg_cv_cc_flag_unused_command_line_argument=yes 9198else 9199 xorg_cv_cc_flag_unused_command_line_argument=no 9200fi 9201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9202fi 9203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9204$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9206 CFLAGS="$xorg_testset_save_CFLAGS" 9207fi 9208 9209found="no" 9210 9211 if test $found = "no" ; then 9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9214 fi 9215 9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9218 fi 9219 9220 CFLAGS="$CFLAGS -Wreturn-type" 9221 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9223$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9224 cacheid=xorg_cv_cc_flag__Wreturn_type 9225 if eval \${$cacheid+:} false; then : 9226 $as_echo_n "(cached) " >&6 9227else 9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9229/* end confdefs.h. */ 9230int i; 9231int 9232main () 9233{ 9234 9235 ; 9236 return 0; 9237} 9238_ACEOF 9239if ac_fn_c_try_link "$LINENO"; then : 9240 eval $cacheid=yes 9241else 9242 eval $cacheid=no 9243fi 9244rm -f core conftest.err conftest.$ac_objext \ 9245 conftest$ac_exeext conftest.$ac_ext 9246fi 9247 9248 9249 CFLAGS="$xorg_testset_save_CFLAGS" 9250 9251 eval supported=\$$cacheid 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9253$as_echo "$supported" >&6; } 9254 if test "$supported" = "yes" ; then 9255 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9256 found="yes" 9257 fi 9258 fi 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274xorg_testset_save_CFLAGS="$CFLAGS" 9275 9276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9279$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9280if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9281 $as_echo_n "(cached) " >&6 9282else 9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284/* end confdefs.h. */ 9285int i; 9286_ACEOF 9287if ac_fn_c_try_compile "$LINENO"; then : 9288 xorg_cv_cc_flag_unknown_warning_option=yes 9289else 9290 xorg_cv_cc_flag_unknown_warning_option=no 9291fi 9292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9293fi 9294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9295$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9297 CFLAGS="$xorg_testset_save_CFLAGS" 9298fi 9299 9300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9303 fi 9304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9306$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9307if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9308 $as_echo_n "(cached) " >&6 9309else 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312int i; 9313_ACEOF 9314if ac_fn_c_try_compile "$LINENO"; then : 9315 xorg_cv_cc_flag_unused_command_line_argument=yes 9316else 9317 xorg_cv_cc_flag_unused_command_line_argument=no 9318fi 9319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9320fi 9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9322$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9324 CFLAGS="$xorg_testset_save_CFLAGS" 9325fi 9326 9327found="no" 9328 9329 if test $found = "no" ; then 9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9332 fi 9333 9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9336 fi 9337 9338 CFLAGS="$CFLAGS -Wtrigraphs" 9339 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9341$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9342 cacheid=xorg_cv_cc_flag__Wtrigraphs 9343 if eval \${$cacheid+:} false; then : 9344 $as_echo_n "(cached) " >&6 9345else 9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347/* end confdefs.h. */ 9348int i; 9349int 9350main () 9351{ 9352 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357if ac_fn_c_try_link "$LINENO"; then : 9358 eval $cacheid=yes 9359else 9360 eval $cacheid=no 9361fi 9362rm -f core conftest.err conftest.$ac_objext \ 9363 conftest$ac_exeext conftest.$ac_ext 9364fi 9365 9366 9367 CFLAGS="$xorg_testset_save_CFLAGS" 9368 9369 eval supported=\$$cacheid 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9371$as_echo "$supported" >&6; } 9372 if test "$supported" = "yes" ; then 9373 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9374 found="yes" 9375 fi 9376 fi 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392xorg_testset_save_CFLAGS="$CFLAGS" 9393 9394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9397$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9398if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9399 $as_echo_n "(cached) " >&6 9400else 9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9402/* end confdefs.h. */ 9403int i; 9404_ACEOF 9405if ac_fn_c_try_compile "$LINENO"; then : 9406 xorg_cv_cc_flag_unknown_warning_option=yes 9407else 9408 xorg_cv_cc_flag_unknown_warning_option=no 9409fi 9410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9411fi 9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9413$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9415 CFLAGS="$xorg_testset_save_CFLAGS" 9416fi 9417 9418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9421 fi 9422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9424$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9425if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9426 $as_echo_n "(cached) " >&6 9427else 9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9429/* end confdefs.h. */ 9430int i; 9431_ACEOF 9432if ac_fn_c_try_compile "$LINENO"; then : 9433 xorg_cv_cc_flag_unused_command_line_argument=yes 9434else 9435 xorg_cv_cc_flag_unused_command_line_argument=no 9436fi 9437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9438fi 9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9440$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9442 CFLAGS="$xorg_testset_save_CFLAGS" 9443fi 9444 9445found="no" 9446 9447 if test $found = "no" ; then 9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9450 fi 9451 9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9454 fi 9455 9456 CFLAGS="$CFLAGS -Warray-bounds" 9457 9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9459$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9460 cacheid=xorg_cv_cc_flag__Warray_bounds 9461 if eval \${$cacheid+:} false; then : 9462 $as_echo_n "(cached) " >&6 9463else 9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9465/* end confdefs.h. */ 9466int i; 9467int 9468main () 9469{ 9470 9471 ; 9472 return 0; 9473} 9474_ACEOF 9475if ac_fn_c_try_link "$LINENO"; then : 9476 eval $cacheid=yes 9477else 9478 eval $cacheid=no 9479fi 9480rm -f core conftest.err conftest.$ac_objext \ 9481 conftest$ac_exeext conftest.$ac_ext 9482fi 9483 9484 9485 CFLAGS="$xorg_testset_save_CFLAGS" 9486 9487 eval supported=\$$cacheid 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9489$as_echo "$supported" >&6; } 9490 if test "$supported" = "yes" ; then 9491 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9492 found="yes" 9493 fi 9494 fi 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510xorg_testset_save_CFLAGS="$CFLAGS" 9511 9512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9515$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9516if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9517 $as_echo_n "(cached) " >&6 9518else 9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9520/* end confdefs.h. */ 9521int i; 9522_ACEOF 9523if ac_fn_c_try_compile "$LINENO"; then : 9524 xorg_cv_cc_flag_unknown_warning_option=yes 9525else 9526 xorg_cv_cc_flag_unknown_warning_option=no 9527fi 9528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9529fi 9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9531$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9533 CFLAGS="$xorg_testset_save_CFLAGS" 9534fi 9535 9536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9539 fi 9540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9542$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9543if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9544 $as_echo_n "(cached) " >&6 9545else 9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9547/* end confdefs.h. */ 9548int i; 9549_ACEOF 9550if ac_fn_c_try_compile "$LINENO"; then : 9551 xorg_cv_cc_flag_unused_command_line_argument=yes 9552else 9553 xorg_cv_cc_flag_unused_command_line_argument=no 9554fi 9555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9556fi 9557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9558$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9560 CFLAGS="$xorg_testset_save_CFLAGS" 9561fi 9562 9563found="no" 9564 9565 if test $found = "no" ; then 9566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9568 fi 9569 9570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9572 fi 9573 9574 CFLAGS="$CFLAGS -Wwrite-strings" 9575 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9577$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9578 cacheid=xorg_cv_cc_flag__Wwrite_strings 9579 if eval \${$cacheid+:} false; then : 9580 $as_echo_n "(cached) " >&6 9581else 9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9583/* end confdefs.h. */ 9584int i; 9585int 9586main () 9587{ 9588 9589 ; 9590 return 0; 9591} 9592_ACEOF 9593if ac_fn_c_try_link "$LINENO"; then : 9594 eval $cacheid=yes 9595else 9596 eval $cacheid=no 9597fi 9598rm -f core conftest.err conftest.$ac_objext \ 9599 conftest$ac_exeext conftest.$ac_ext 9600fi 9601 9602 9603 CFLAGS="$xorg_testset_save_CFLAGS" 9604 9605 eval supported=\$$cacheid 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9607$as_echo "$supported" >&6; } 9608 if test "$supported" = "yes" ; then 9609 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9610 found="yes" 9611 fi 9612 fi 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628xorg_testset_save_CFLAGS="$CFLAGS" 9629 9630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9633$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9634if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9635 $as_echo_n "(cached) " >&6 9636else 9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9638/* end confdefs.h. */ 9639int i; 9640_ACEOF 9641if ac_fn_c_try_compile "$LINENO"; then : 9642 xorg_cv_cc_flag_unknown_warning_option=yes 9643else 9644 xorg_cv_cc_flag_unknown_warning_option=no 9645fi 9646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9647fi 9648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9649$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9651 CFLAGS="$xorg_testset_save_CFLAGS" 9652fi 9653 9654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9657 fi 9658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9660$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9661if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9662 $as_echo_n "(cached) " >&6 9663else 9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665/* end confdefs.h. */ 9666int i; 9667_ACEOF 9668if ac_fn_c_try_compile "$LINENO"; then : 9669 xorg_cv_cc_flag_unused_command_line_argument=yes 9670else 9671 xorg_cv_cc_flag_unused_command_line_argument=no 9672fi 9673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9674fi 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9676$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9678 CFLAGS="$xorg_testset_save_CFLAGS" 9679fi 9680 9681found="no" 9682 9683 if test $found = "no" ; then 9684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686 fi 9687 9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9690 fi 9691 9692 CFLAGS="$CFLAGS -Waddress" 9693 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9695$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9696 cacheid=xorg_cv_cc_flag__Waddress 9697 if eval \${$cacheid+:} false; then : 9698 $as_echo_n "(cached) " >&6 9699else 9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9701/* end confdefs.h. */ 9702int i; 9703int 9704main () 9705{ 9706 9707 ; 9708 return 0; 9709} 9710_ACEOF 9711if ac_fn_c_try_link "$LINENO"; then : 9712 eval $cacheid=yes 9713else 9714 eval $cacheid=no 9715fi 9716rm -f core conftest.err conftest.$ac_objext \ 9717 conftest$ac_exeext conftest.$ac_ext 9718fi 9719 9720 9721 CFLAGS="$xorg_testset_save_CFLAGS" 9722 9723 eval supported=\$$cacheid 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9725$as_echo "$supported" >&6; } 9726 if test "$supported" = "yes" ; then 9727 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9728 found="yes" 9729 fi 9730 fi 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746xorg_testset_save_CFLAGS="$CFLAGS" 9747 9748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9751$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9752if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9753 $as_echo_n "(cached) " >&6 9754else 9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9756/* end confdefs.h. */ 9757int i; 9758_ACEOF 9759if ac_fn_c_try_compile "$LINENO"; then : 9760 xorg_cv_cc_flag_unknown_warning_option=yes 9761else 9762 xorg_cv_cc_flag_unknown_warning_option=no 9763fi 9764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9765fi 9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9767$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9769 CFLAGS="$xorg_testset_save_CFLAGS" 9770fi 9771 9772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9775 fi 9776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9778$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9779if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9780 $as_echo_n "(cached) " >&6 9781else 9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9783/* end confdefs.h. */ 9784int i; 9785_ACEOF 9786if ac_fn_c_try_compile "$LINENO"; then : 9787 xorg_cv_cc_flag_unused_command_line_argument=yes 9788else 9789 xorg_cv_cc_flag_unused_command_line_argument=no 9790fi 9791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9792fi 9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9794$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9796 CFLAGS="$xorg_testset_save_CFLAGS" 9797fi 9798 9799found="no" 9800 9801 if test $found = "no" ; then 9802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9804 fi 9805 9806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9808 fi 9809 9810 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9811 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9813$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9814 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9815 if eval \${$cacheid+:} false; then : 9816 $as_echo_n "(cached) " >&6 9817else 9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9819/* end confdefs.h. */ 9820int i; 9821int 9822main () 9823{ 9824 9825 ; 9826 return 0; 9827} 9828_ACEOF 9829if ac_fn_c_try_link "$LINENO"; then : 9830 eval $cacheid=yes 9831else 9832 eval $cacheid=no 9833fi 9834rm -f core conftest.err conftest.$ac_objext \ 9835 conftest$ac_exeext conftest.$ac_ext 9836fi 9837 9838 9839 CFLAGS="$xorg_testset_save_CFLAGS" 9840 9841 eval supported=\$$cacheid 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9843$as_echo "$supported" >&6; } 9844 if test "$supported" = "yes" ; then 9845 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9846 found="yes" 9847 fi 9848 fi 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864xorg_testset_save_CFLAGS="$CFLAGS" 9865 9866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9871 $as_echo_n "(cached) " >&6 9872else 9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9874/* end confdefs.h. */ 9875int i; 9876_ACEOF 9877if ac_fn_c_try_compile "$LINENO"; then : 9878 xorg_cv_cc_flag_unknown_warning_option=yes 9879else 9880 xorg_cv_cc_flag_unknown_warning_option=no 9881fi 9882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9883fi 9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9887 CFLAGS="$xorg_testset_save_CFLAGS" 9888fi 9889 9890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 fi 9894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9898 $as_echo_n "(cached) " >&6 9899else 9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9901/* end confdefs.h. */ 9902int i; 9903_ACEOF 9904if ac_fn_c_try_compile "$LINENO"; then : 9905 xorg_cv_cc_flag_unused_command_line_argument=yes 9906else 9907 xorg_cv_cc_flag_unused_command_line_argument=no 9908fi 9909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9910fi 9911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9914 CFLAGS="$xorg_testset_save_CFLAGS" 9915fi 9916 9917found="no" 9918 9919 if test $found = "no" ; then 9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9922 fi 9923 9924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9926 fi 9927 9928 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9929 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9931$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9932 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9933 if eval \${$cacheid+:} false; then : 9934 $as_echo_n "(cached) " >&6 9935else 9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9937/* end confdefs.h. */ 9938int i; 9939int 9940main () 9941{ 9942 9943 ; 9944 return 0; 9945} 9946_ACEOF 9947if ac_fn_c_try_link "$LINENO"; then : 9948 eval $cacheid=yes 9949else 9950 eval $cacheid=no 9951fi 9952rm -f core conftest.err conftest.$ac_objext \ 9953 conftest$ac_exeext conftest.$ac_ext 9954fi 9955 9956 9957 CFLAGS="$xorg_testset_save_CFLAGS" 9958 9959 eval supported=\$$cacheid 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9961$as_echo "$supported" >&6; } 9962 if test "$supported" = "yes" ; then 9963 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9964 found="yes" 9965 fi 9966 fi 9967 9968 9969fi 9970 9971 9972 9973 9974 9975 9976 9977 CWARNFLAGS="$BASE_CFLAGS" 9978 if test "x$GCC" = xyes ; then 9979 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9980 fi 9981 9982 9983 9984 9985 9986 9987 9988 9989# Check whether --enable-strict-compilation was given. 9990if test "${enable_strict_compilation+set}" = set; then : 9991 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9992else 9993 STRICT_COMPILE=no 9994fi 9995 9996 9997 9998 9999 10000 10001STRICT_CFLAGS="" 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015xorg_testset_save_CFLAGS="$CFLAGS" 10016 10017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10022 $as_echo_n "(cached) " >&6 10023else 10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10025/* end confdefs.h. */ 10026int i; 10027_ACEOF 10028if ac_fn_c_try_compile "$LINENO"; then : 10029 xorg_cv_cc_flag_unknown_warning_option=yes 10030else 10031 xorg_cv_cc_flag_unknown_warning_option=no 10032fi 10033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10034fi 10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039fi 10040 10041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10044 fi 10045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050else 10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052/* end confdefs.h. */ 10053int i; 10054_ACEOF 10055if ac_fn_c_try_compile "$LINENO"; then : 10056 xorg_cv_cc_flag_unused_command_line_argument=yes 10057else 10058 xorg_cv_cc_flag_unused_command_line_argument=no 10059fi 10060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10061fi 10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10065 CFLAGS="$xorg_testset_save_CFLAGS" 10066fi 10067 10068found="no" 10069 10070 if test $found = "no" ; then 10071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10073 fi 10074 10075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10077 fi 10078 10079 CFLAGS="$CFLAGS -pedantic" 10080 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10082$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10083 cacheid=xorg_cv_cc_flag__pedantic 10084 if eval \${$cacheid+:} false; then : 10085 $as_echo_n "(cached) " >&6 10086else 10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10088/* end confdefs.h. */ 10089int i; 10090int 10091main () 10092{ 10093 10094 ; 10095 return 0; 10096} 10097_ACEOF 10098if ac_fn_c_try_link "$LINENO"; then : 10099 eval $cacheid=yes 10100else 10101 eval $cacheid=no 10102fi 10103rm -f core conftest.err conftest.$ac_objext \ 10104 conftest$ac_exeext conftest.$ac_ext 10105fi 10106 10107 10108 CFLAGS="$xorg_testset_save_CFLAGS" 10109 10110 eval supported=\$$cacheid 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10112$as_echo "$supported" >&6; } 10113 if test "$supported" = "yes" ; then 10114 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10115 found="yes" 10116 fi 10117 fi 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133xorg_testset_save_CFLAGS="$CFLAGS" 10134 10135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10138$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10139if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10140 $as_echo_n "(cached) " >&6 10141else 10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143/* end confdefs.h. */ 10144int i; 10145_ACEOF 10146if ac_fn_c_try_compile "$LINENO"; then : 10147 xorg_cv_cc_flag_unknown_warning_option=yes 10148else 10149 xorg_cv_cc_flag_unknown_warning_option=no 10150fi 10151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10152fi 10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10154$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10156 CFLAGS="$xorg_testset_save_CFLAGS" 10157fi 10158 10159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10162 fi 10163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10165$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10166if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10167 $as_echo_n "(cached) " >&6 10168else 10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10170/* end confdefs.h. */ 10171int i; 10172_ACEOF 10173if ac_fn_c_try_compile "$LINENO"; then : 10174 xorg_cv_cc_flag_unused_command_line_argument=yes 10175else 10176 xorg_cv_cc_flag_unused_command_line_argument=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10179fi 10180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10181$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184fi 10185 10186found="no" 10187 10188 if test $found = "no" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10195 fi 10196 10197 CFLAGS="$CFLAGS -Werror" 10198 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10200$as_echo_n "checking if $CC supports -Werror... " >&6; } 10201 cacheid=xorg_cv_cc_flag__Werror 10202 if eval \${$cacheid+:} false; then : 10203 $as_echo_n "(cached) " >&6 10204else 10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10206/* end confdefs.h. */ 10207int i; 10208int 10209main () 10210{ 10211 10212 ; 10213 return 0; 10214} 10215_ACEOF 10216if ac_fn_c_try_link "$LINENO"; then : 10217 eval $cacheid=yes 10218else 10219 eval $cacheid=no 10220fi 10221rm -f core conftest.err conftest.$ac_objext \ 10222 conftest$ac_exeext conftest.$ac_ext 10223fi 10224 10225 10226 CFLAGS="$xorg_testset_save_CFLAGS" 10227 10228 eval supported=\$$cacheid 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10230$as_echo "$supported" >&6; } 10231 if test "$supported" = "yes" ; then 10232 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10233 found="yes" 10234 fi 10235 fi 10236 10237 if test $found = "no" ; then 10238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10240 fi 10241 10242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10244 fi 10245 10246 CFLAGS="$CFLAGS -errwarn" 10247 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10249$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10250 cacheid=xorg_cv_cc_flag__errwarn 10251 if eval \${$cacheid+:} false; then : 10252 $as_echo_n "(cached) " >&6 10253else 10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10255/* end confdefs.h. */ 10256int i; 10257int 10258main () 10259{ 10260 10261 ; 10262 return 0; 10263} 10264_ACEOF 10265if ac_fn_c_try_link "$LINENO"; then : 10266 eval $cacheid=yes 10267else 10268 eval $cacheid=no 10269fi 10270rm -f core conftest.err conftest.$ac_objext \ 10271 conftest$ac_exeext conftest.$ac_ext 10272fi 10273 10274 10275 CFLAGS="$xorg_testset_save_CFLAGS" 10276 10277 eval supported=\$$cacheid 10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10279$as_echo "$supported" >&6; } 10280 if test "$supported" = "yes" ; then 10281 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10282 found="yes" 10283 fi 10284 fi 10285 10286 10287 10288# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10289# activate it with -Werror, so we add it here explicitly. 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303xorg_testset_save_CFLAGS="$CFLAGS" 10304 10305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10310 $as_echo_n "(cached) " >&6 10311else 10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313/* end confdefs.h. */ 10314int i; 10315_ACEOF 10316if ac_fn_c_try_compile "$LINENO"; then : 10317 xorg_cv_cc_flag_unknown_warning_option=yes 10318else 10319 xorg_cv_cc_flag_unknown_warning_option=no 10320fi 10321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10322fi 10323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10326 CFLAGS="$xorg_testset_save_CFLAGS" 10327fi 10328 10329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10332 fi 10333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10337 $as_echo_n "(cached) " >&6 10338else 10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10340/* end confdefs.h. */ 10341int i; 10342_ACEOF 10343if ac_fn_c_try_compile "$LINENO"; then : 10344 xorg_cv_cc_flag_unused_command_line_argument=yes 10345else 10346 xorg_cv_cc_flag_unused_command_line_argument=no 10347fi 10348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10349fi 10350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10353 CFLAGS="$xorg_testset_save_CFLAGS" 10354fi 10355 10356found="no" 10357 10358 if test $found = "no" ; then 10359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10361 fi 10362 10363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10365 fi 10366 10367 CFLAGS="$CFLAGS -Werror=attributes" 10368 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10370$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10371 cacheid=xorg_cv_cc_flag__Werror_attributes 10372 if eval \${$cacheid+:} false; then : 10373 $as_echo_n "(cached) " >&6 10374else 10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10376/* end confdefs.h. */ 10377int i; 10378int 10379main () 10380{ 10381 10382 ; 10383 return 0; 10384} 10385_ACEOF 10386if ac_fn_c_try_link "$LINENO"; then : 10387 eval $cacheid=yes 10388else 10389 eval $cacheid=no 10390fi 10391rm -f core conftest.err conftest.$ac_objext \ 10392 conftest$ac_exeext conftest.$ac_ext 10393fi 10394 10395 10396 CFLAGS="$xorg_testset_save_CFLAGS" 10397 10398 eval supported=\$$cacheid 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10400$as_echo "$supported" >&6; } 10401 if test "$supported" = "yes" ; then 10402 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10403 found="yes" 10404 fi 10405 fi 10406 10407 10408 10409if test "x$STRICT_COMPILE" = "xyes"; then 10410 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10411 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10412fi 10413 10414 10415 10416 10417 10418 10419cat >>confdefs.h <<_ACEOF 10420#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10421_ACEOF 10422 10423 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10424 if test "x$PVM" = "x"; then 10425 PVM="0" 10426 fi 10427 10428cat >>confdefs.h <<_ACEOF 10429#define PACKAGE_VERSION_MINOR $PVM 10430_ACEOF 10431 10432 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10433 if test "x$PVP" = "x"; then 10434 PVP="0" 10435 fi 10436 10437cat >>confdefs.h <<_ACEOF 10438#define PACKAGE_VERSION_PATCHLEVEL $PVP 10439_ACEOF 10440 10441 10442 10443CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10444mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10445|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10446echo 'git directory not found: installing possibly empty changelog.' >&2)" 10447 10448 10449 10450 10451macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10452INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10453mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10454|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10455echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10456 10457 10458 10459 10460 10461 10462if test x$APP_MAN_SUFFIX = x ; then 10463 APP_MAN_SUFFIX=1 10464fi 10465if test x$APP_MAN_DIR = x ; then 10466 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10467fi 10468 10469if test x$LIB_MAN_SUFFIX = x ; then 10470 LIB_MAN_SUFFIX=3 10471fi 10472if test x$LIB_MAN_DIR = x ; then 10473 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10474fi 10475 10476if test x$FILE_MAN_SUFFIX = x ; then 10477 case $host_os in 10478 solaris*) FILE_MAN_SUFFIX=4 ;; 10479 *) FILE_MAN_SUFFIX=5 ;; 10480 esac 10481fi 10482if test x$FILE_MAN_DIR = x ; then 10483 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10484fi 10485 10486if test x$MISC_MAN_SUFFIX = x ; then 10487 case $host_os in 10488 solaris*) MISC_MAN_SUFFIX=5 ;; 10489 *) MISC_MAN_SUFFIX=7 ;; 10490 esac 10491fi 10492if test x$MISC_MAN_DIR = x ; then 10493 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10494fi 10495 10496if test x$DRIVER_MAN_SUFFIX = x ; then 10497 case $host_os in 10498 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10499 *) DRIVER_MAN_SUFFIX=4 ;; 10500 esac 10501fi 10502if test x$DRIVER_MAN_DIR = x ; then 10503 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10504fi 10505 10506if test x$ADMIN_MAN_SUFFIX = x ; then 10507 case $host_os in 10508 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10509 *) ADMIN_MAN_SUFFIX=8 ;; 10510 esac 10511fi 10512if test x$ADMIN_MAN_DIR = x ; then 10513 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10514fi 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530XORG_MAN_PAGE="X Version 11" 10531 10532MAN_SUBSTS="\ 10533 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10534 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10535 -e 's|__xservername__|Xorg|g' \ 10536 -e 's|__xconfigfile__|xorg.conf|g' \ 10537 -e 's|__projectroot__|\$(prefix)|g' \ 10538 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10539 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10540 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10541 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10542 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10543 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10544 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10545 10546 10547 10548# Check whether --enable-silent-rules was given. 10549if test "${enable_silent_rules+set}" = set; then : 10550 enableval=$enable_silent_rules; 10551fi 10552 10553case $enable_silent_rules in # ((( 10554 yes) AM_DEFAULT_VERBOSITY=0;; 10555 no) AM_DEFAULT_VERBOSITY=1;; 10556 *) AM_DEFAULT_VERBOSITY=0;; 10557esac 10558am_make=${MAKE-make} 10559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10560$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10561if ${am_cv_make_support_nested_variables+:} false; then : 10562 $as_echo_n "(cached) " >&6 10563else 10564 if $as_echo 'TRUE=$(BAR$(V)) 10565BAR0=false 10566BAR1=true 10567V=1 10568am__doit: 10569 @$(TRUE) 10570.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10571 am_cv_make_support_nested_variables=yes 10572else 10573 am_cv_make_support_nested_variables=no 10574fi 10575fi 10576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10577$as_echo "$am_cv_make_support_nested_variables" >&6; } 10578if test $am_cv_make_support_nested_variables = yes; then 10579 AM_V='$(V)' 10580 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10581else 10582 AM_V=$AM_DEFAULT_VERBOSITY 10583 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10584fi 10585AM_BACKSLASH='\' 10586 10587 10588 10589# Checks for pkg-config packages 10590 10591pkg_failed=no 10592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFINDPROXY" >&5 10593$as_echo_n "checking for XFINDPROXY... " >&6; } 10594 10595if test -n "$XFINDPROXY_CFLAGS"; then 10596 pkg_cv_XFINDPROXY_CFLAGS="$XFINDPROXY_CFLAGS" 10597 elif test -n "$PKG_CONFIG"; then 10598 if test -n "$PKG_CONFIG" && \ 10599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto ice xt xproxymngproto\""; } >&5 10600 ($PKG_CONFIG --exists --print-errors "xproto ice xt xproxymngproto") 2>&5 10601 ac_status=$? 10602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10603 test $ac_status = 0; }; then 10604 pkg_cv_XFINDPROXY_CFLAGS=`$PKG_CONFIG --cflags "xproto ice xt xproxymngproto" 2>/dev/null` 10605else 10606 pkg_failed=yes 10607fi 10608 else 10609 pkg_failed=untried 10610fi 10611if test -n "$XFINDPROXY_LIBS"; then 10612 pkg_cv_XFINDPROXY_LIBS="$XFINDPROXY_LIBS" 10613 elif test -n "$PKG_CONFIG"; then 10614 if test -n "$PKG_CONFIG" && \ 10615 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto ice xt xproxymngproto\""; } >&5 10616 ($PKG_CONFIG --exists --print-errors "xproto ice xt xproxymngproto") 2>&5 10617 ac_status=$? 10618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10619 test $ac_status = 0; }; then 10620 pkg_cv_XFINDPROXY_LIBS=`$PKG_CONFIG --libs "xproto ice xt xproxymngproto" 2>/dev/null` 10621else 10622 pkg_failed=yes 10623fi 10624 else 10625 pkg_failed=untried 10626fi 10627 10628 10629 10630if test $pkg_failed = yes; then 10631 10632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10633 _pkg_short_errors_supported=yes 10634else 10635 _pkg_short_errors_supported=no 10636fi 10637 if test $_pkg_short_errors_supported = yes; then 10638 XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto ice xt xproxymngproto" 2>&1` 10639 else 10640 XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto ice xt xproxymngproto" 2>&1` 10641 fi 10642 # Put the nasty error message in config.log where it belongs 10643 echo "$XFINDPROXY_PKG_ERRORS" >&5 10644 10645 as_fn_error $? "Package requirements (xproto ice xt xproxymngproto) were not met: 10646 10647$XFINDPROXY_PKG_ERRORS 10648 10649Consider adjusting the PKG_CONFIG_PATH environment variable if you 10650installed software in a non-standard prefix. 10651 10652Alternatively, you may set the environment variables XFINDPROXY_CFLAGS 10653and XFINDPROXY_LIBS to avoid the need to call pkg-config. 10654See the pkg-config man page for more details. 10655" "$LINENO" 5 10656elif test $pkg_failed = untried; then 10657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10659as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10660is in your PATH or set the PKG_CONFIG environment variable to the full 10661path to pkg-config. 10662 10663Alternatively, you may set the environment variables XFINDPROXY_CFLAGS 10664and XFINDPROXY_LIBS to avoid the need to call pkg-config. 10665See the pkg-config man page for more details. 10666 10667To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10668See \`config.log' for more details" "$LINENO" 5; } 10669else 10670 XFINDPROXY_CFLAGS=$pkg_cv_XFINDPROXY_CFLAGS 10671 XFINDPROXY_LIBS=$pkg_cv_XFINDPROXY_LIBS 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10673$as_echo "yes" >&6; } 10674 : 10675fi 10676 10677ac_config_files="$ac_config_files Makefile" 10678 10679cat >confcache <<\_ACEOF 10680# This file is a shell script that caches the results of configure 10681# tests run on this system so they can be shared between configure 10682# scripts and configure runs, see configure's option --config-cache. 10683# It is not useful on other systems. If it contains results you don't 10684# want to keep, you may remove or edit it. 10685# 10686# config.status only pays attention to the cache file if you give it 10687# the --recheck option to rerun configure. 10688# 10689# `ac_cv_env_foo' variables (set or unset) will be overridden when 10690# loading this file, other *unset* `ac_cv_foo' will be assigned the 10691# following values. 10692 10693_ACEOF 10694 10695# The following way of writing the cache mishandles newlines in values, 10696# but we know of no workaround that is simple, portable, and efficient. 10697# So, we kill variables containing newlines. 10698# Ultrix sh set writes to stderr and can't be redirected directly, 10699# and sets the high bit in the cache file unless we assign to the vars. 10700( 10701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10702 eval ac_val=\$$ac_var 10703 case $ac_val in #( 10704 *${as_nl}*) 10705 case $ac_var in #( 10706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10707$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10708 esac 10709 case $ac_var in #( 10710 _ | IFS | as_nl) ;; #( 10711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10712 *) { eval $ac_var=; unset $ac_var;} ;; 10713 esac ;; 10714 esac 10715 done 10716 10717 (set) 2>&1 | 10718 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10719 *${as_nl}ac_space=\ *) 10720 # `set' does not quote correctly, so add quotes: double-quote 10721 # substitution turns \\\\ into \\, and sed turns \\ into \. 10722 sed -n \ 10723 "s/'/'\\\\''/g; 10724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10725 ;; #( 10726 *) 10727 # `set' quotes correctly as required by POSIX, so do not add quotes. 10728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10729 ;; 10730 esac | 10731 sort 10732) | 10733 sed ' 10734 /^ac_cv_env_/b end 10735 t clear 10736 :clear 10737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10738 t end 10739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10740 :end' >>confcache 10741if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10742 if test -w "$cache_file"; then 10743 if test "x$cache_file" != "x/dev/null"; then 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10745$as_echo "$as_me: updating cache $cache_file" >&6;} 10746 if test ! -f "$cache_file" || test -h "$cache_file"; then 10747 cat confcache >"$cache_file" 10748 else 10749 case $cache_file in #( 10750 */* | ?:*) 10751 mv -f confcache "$cache_file"$$ && 10752 mv -f "$cache_file"$$ "$cache_file" ;; #( 10753 *) 10754 mv -f confcache "$cache_file" ;; 10755 esac 10756 fi 10757 fi 10758 else 10759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10760$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10761 fi 10762fi 10763rm -f confcache 10764 10765test "x$prefix" = xNONE && prefix=$ac_default_prefix 10766# Let make expand exec_prefix. 10767test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10768 10769DEFS=-DHAVE_CONFIG_H 10770 10771ac_libobjs= 10772ac_ltlibobjs= 10773U= 10774for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10775 # 1. Remove the extension, and $U if already installed. 10776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10779 # will be set to the directory where LIBOBJS objects are built. 10780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10782done 10783LIBOBJS=$ac_libobjs 10784 10785LTLIBOBJS=$ac_ltlibobjs 10786 10787 10788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10789$as_echo_n "checking that generated files are newer than configure... " >&6; } 10790 if test -n "$am_sleep_pid"; then 10791 # Hide warnings about reused PIDs. 10792 wait $am_sleep_pid 2>/dev/null 10793 fi 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10795$as_echo "done" >&6; } 10796 if test -n "$EXEEXT"; then 10797 am__EXEEXT_TRUE= 10798 am__EXEEXT_FALSE='#' 10799else 10800 am__EXEEXT_TRUE='#' 10801 am__EXEEXT_FALSE= 10802fi 10803 10804if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10805 as_fn_error $? "conditional \"AMDEP\" was never defined. 10806Usually this means the macro was only invoked conditionally." "$LINENO" 5 10807fi 10808if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10809 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10810Usually this means the macro was only invoked conditionally." "$LINENO" 5 10811fi 10812 10813: "${CONFIG_STATUS=./config.status}" 10814ac_write_fail=0 10815ac_clean_files_save=$ac_clean_files 10816ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10817{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10818$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10819as_write_fail=0 10820cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10821#! $SHELL 10822# Generated by $as_me. 10823# Run this file to recreate the current configuration. 10824# Compiler output produced by configure, useful for debugging 10825# configure, is in config.log if it exists. 10826 10827debug=false 10828ac_cs_recheck=false 10829ac_cs_silent=false 10830 10831SHELL=\${CONFIG_SHELL-$SHELL} 10832export SHELL 10833_ASEOF 10834cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10835## -------------------- ## 10836## M4sh Initialization. ## 10837## -------------------- ## 10838 10839# Be more Bourne compatible 10840DUALCASE=1; export DUALCASE # for MKS sh 10841if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10842 emulate sh 10843 NULLCMD=: 10844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10845 # is contrary to our usage. Disable this feature. 10846 alias -g '${1+"$@"}'='"$@"' 10847 setopt NO_GLOB_SUBST 10848else 10849 case `(set -o) 2>/dev/null` in #( 10850 *posix*) : 10851 set -o posix ;; #( 10852 *) : 10853 ;; 10854esac 10855fi 10856 10857 10858as_nl=' 10859' 10860export as_nl 10861# Printing a long string crashes Solaris 7 /usr/bin/printf. 10862as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10865# Prefer a ksh shell builtin over an external printf program on Solaris, 10866# but without wasting forks for bash or zsh. 10867if test -z "$BASH_VERSION$ZSH_VERSION" \ 10868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10869 as_echo='print -r --' 10870 as_echo_n='print -rn --' 10871elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10872 as_echo='printf %s\n' 10873 as_echo_n='printf %s' 10874else 10875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10877 as_echo_n='/usr/ucb/echo -n' 10878 else 10879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10880 as_echo_n_body='eval 10881 arg=$1; 10882 case $arg in #( 10883 *"$as_nl"*) 10884 expr "X$arg" : "X\\(.*\\)$as_nl"; 10885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10886 esac; 10887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10888 ' 10889 export as_echo_n_body 10890 as_echo_n='sh -c $as_echo_n_body as_echo' 10891 fi 10892 export as_echo_body 10893 as_echo='sh -c $as_echo_body as_echo' 10894fi 10895 10896# The user is always right. 10897if test "${PATH_SEPARATOR+set}" != set; then 10898 PATH_SEPARATOR=: 10899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10901 PATH_SEPARATOR=';' 10902 } 10903fi 10904 10905 10906# IFS 10907# We need space, tab and new line, in precisely that order. Quoting is 10908# there to prevent editors from complaining about space-tab. 10909# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10910# splitting by setting IFS to empty value.) 10911IFS=" "" $as_nl" 10912 10913# Find who we are. Look in the path if we contain no directory separator. 10914as_myself= 10915case $0 in #(( 10916 *[\\/]* ) as_myself=$0 ;; 10917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10918for as_dir in $PATH 10919do 10920 IFS=$as_save_IFS 10921 test -z "$as_dir" && as_dir=. 10922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10923 done 10924IFS=$as_save_IFS 10925 10926 ;; 10927esac 10928# We did not find ourselves, most probably we were run as `sh COMMAND' 10929# in which case we are not to be found in the path. 10930if test "x$as_myself" = x; then 10931 as_myself=$0 10932fi 10933if test ! -f "$as_myself"; then 10934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10935 exit 1 10936fi 10937 10938# Unset variables that we do not need and which cause bugs (e.g. in 10939# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10940# suppresses any "Segmentation fault" message there. '((' could 10941# trigger a bug in pdksh 5.2.14. 10942for as_var in BASH_ENV ENV MAIL MAILPATH 10943do eval test x\${$as_var+set} = xset \ 10944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10945done 10946PS1='$ ' 10947PS2='> ' 10948PS4='+ ' 10949 10950# NLS nuisances. 10951LC_ALL=C 10952export LC_ALL 10953LANGUAGE=C 10954export LANGUAGE 10955 10956# CDPATH. 10957(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10958 10959 10960# as_fn_error STATUS ERROR [LINENO LOG_FD] 10961# ---------------------------------------- 10962# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10963# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10964# script with STATUS, using 1 if that was 0. 10965as_fn_error () 10966{ 10967 as_status=$1; test $as_status -eq 0 && as_status=1 10968 if test "$4"; then 10969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10971 fi 10972 $as_echo "$as_me: error: $2" >&2 10973 as_fn_exit $as_status 10974} # as_fn_error 10975 10976 10977# as_fn_set_status STATUS 10978# ----------------------- 10979# Set $? to STATUS, without forking. 10980as_fn_set_status () 10981{ 10982 return $1 10983} # as_fn_set_status 10984 10985# as_fn_exit STATUS 10986# ----------------- 10987# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10988as_fn_exit () 10989{ 10990 set +e 10991 as_fn_set_status $1 10992 exit $1 10993} # as_fn_exit 10994 10995# as_fn_unset VAR 10996# --------------- 10997# Portably unset VAR. 10998as_fn_unset () 10999{ 11000 { eval $1=; unset $1;} 11001} 11002as_unset=as_fn_unset 11003# as_fn_append VAR VALUE 11004# ---------------------- 11005# Append the text in VALUE to the end of the definition contained in VAR. Take 11006# advantage of any shell optimizations that allow amortized linear growth over 11007# repeated appends, instead of the typical quadratic growth present in naive 11008# implementations. 11009if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11010 eval 'as_fn_append () 11011 { 11012 eval $1+=\$2 11013 }' 11014else 11015 as_fn_append () 11016 { 11017 eval $1=\$$1\$2 11018 } 11019fi # as_fn_append 11020 11021# as_fn_arith ARG... 11022# ------------------ 11023# Perform arithmetic evaluation on the ARGs, and store the result in the 11024# global $as_val. Take advantage of shells that can avoid forks. The arguments 11025# must be portable across $(()) and expr. 11026if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11027 eval 'as_fn_arith () 11028 { 11029 as_val=$(( $* )) 11030 }' 11031else 11032 as_fn_arith () 11033 { 11034 as_val=`expr "$@" || test $? -eq 1` 11035 } 11036fi # as_fn_arith 11037 11038 11039if expr a : '\(a\)' >/dev/null 2>&1 && 11040 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11041 as_expr=expr 11042else 11043 as_expr=false 11044fi 11045 11046if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11047 as_basename=basename 11048else 11049 as_basename=false 11050fi 11051 11052if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11053 as_dirname=dirname 11054else 11055 as_dirname=false 11056fi 11057 11058as_me=`$as_basename -- "$0" || 11059$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11060 X"$0" : 'X\(//\)$' \| \ 11061 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11062$as_echo X/"$0" | 11063 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11064 s//\1/ 11065 q 11066 } 11067 /^X\/\(\/\/\)$/{ 11068 s//\1/ 11069 q 11070 } 11071 /^X\/\(\/\).*/{ 11072 s//\1/ 11073 q 11074 } 11075 s/.*/./; q'` 11076 11077# Avoid depending upon Character Ranges. 11078as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11079as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11080as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11081as_cr_digits='0123456789' 11082as_cr_alnum=$as_cr_Letters$as_cr_digits 11083 11084ECHO_C= ECHO_N= ECHO_T= 11085case `echo -n x` in #((((( 11086-n*) 11087 case `echo 'xy\c'` in 11088 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11089 xy) ECHO_C='\c';; 11090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11091 ECHO_T=' ';; 11092 esac;; 11093*) 11094 ECHO_N='-n';; 11095esac 11096 11097rm -f conf$$ conf$$.exe conf$$.file 11098if test -d conf$$.dir; then 11099 rm -f conf$$.dir/conf$$.file 11100else 11101 rm -f conf$$.dir 11102 mkdir conf$$.dir 2>/dev/null 11103fi 11104if (echo >conf$$.file) 2>/dev/null; then 11105 if ln -s conf$$.file conf$$ 2>/dev/null; then 11106 as_ln_s='ln -s' 11107 # ... but there are two gotchas: 11108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11110 # In both cases, we have to default to `cp -pR'. 11111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11112 as_ln_s='cp -pR' 11113 elif ln conf$$.file conf$$ 2>/dev/null; then 11114 as_ln_s=ln 11115 else 11116 as_ln_s='cp -pR' 11117 fi 11118else 11119 as_ln_s='cp -pR' 11120fi 11121rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11122rmdir conf$$.dir 2>/dev/null 11123 11124 11125# as_fn_mkdir_p 11126# ------------- 11127# Create "$as_dir" as a directory, including parents if necessary. 11128as_fn_mkdir_p () 11129{ 11130 11131 case $as_dir in #( 11132 -*) as_dir=./$as_dir;; 11133 esac 11134 test -d "$as_dir" || eval $as_mkdir_p || { 11135 as_dirs= 11136 while :; do 11137 case $as_dir in #( 11138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11139 *) as_qdir=$as_dir;; 11140 esac 11141 as_dirs="'$as_qdir' $as_dirs" 11142 as_dir=`$as_dirname -- "$as_dir" || 11143$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11144 X"$as_dir" : 'X\(//\)[^/]' \| \ 11145 X"$as_dir" : 'X\(//\)$' \| \ 11146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11147$as_echo X"$as_dir" | 11148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11149 s//\1/ 11150 q 11151 } 11152 /^X\(\/\/\)[^/].*/{ 11153 s//\1/ 11154 q 11155 } 11156 /^X\(\/\/\)$/{ 11157 s//\1/ 11158 q 11159 } 11160 /^X\(\/\).*/{ 11161 s//\1/ 11162 q 11163 } 11164 s/.*/./; q'` 11165 test -d "$as_dir" && break 11166 done 11167 test -z "$as_dirs" || eval "mkdir $as_dirs" 11168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11169 11170 11171} # as_fn_mkdir_p 11172if mkdir -p . 2>/dev/null; then 11173 as_mkdir_p='mkdir -p "$as_dir"' 11174else 11175 test -d ./-p && rmdir ./-p 11176 as_mkdir_p=false 11177fi 11178 11179 11180# as_fn_executable_p FILE 11181# ----------------------- 11182# Test if FILE is an executable regular file. 11183as_fn_executable_p () 11184{ 11185 test -f "$1" && test -x "$1" 11186} # as_fn_executable_p 11187as_test_x='test -x' 11188as_executable_p=as_fn_executable_p 11189 11190# Sed expression to map a string onto a valid CPP name. 11191as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11192 11193# Sed expression to map a string onto a valid variable name. 11194as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11195 11196 11197exec 6>&1 11198## ----------------------------------- ## 11199## Main body of $CONFIG_STATUS script. ## 11200## ----------------------------------- ## 11201_ASEOF 11202test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11203 11204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11205# Save the log message, to keep $0 and so on meaningful, and to 11206# report actual input values of CONFIG_FILES etc. instead of their 11207# values after options handling. 11208ac_log=" 11209This file was extended by xfindproxy $as_me 1.0.4, which was 11210generated by GNU Autoconf 2.69. Invocation command line was 11211 11212 CONFIG_FILES = $CONFIG_FILES 11213 CONFIG_HEADERS = $CONFIG_HEADERS 11214 CONFIG_LINKS = $CONFIG_LINKS 11215 CONFIG_COMMANDS = $CONFIG_COMMANDS 11216 $ $0 $@ 11217 11218on `(hostname || uname -n) 2>/dev/null | sed 1q` 11219" 11220 11221_ACEOF 11222 11223case $ac_config_files in *" 11224"*) set x $ac_config_files; shift; ac_config_files=$*;; 11225esac 11226 11227case $ac_config_headers in *" 11228"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11229esac 11230 11231 11232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11233# Files that config.status was made for. 11234config_files="$ac_config_files" 11235config_headers="$ac_config_headers" 11236config_commands="$ac_config_commands" 11237 11238_ACEOF 11239 11240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11241ac_cs_usage="\ 11242\`$as_me' instantiates files and other configuration actions 11243from templates according to the current configuration. Unless the files 11244and actions are specified as TAGs, all are instantiated by default. 11245 11246Usage: $0 [OPTION]... [TAG]... 11247 11248 -h, --help print this help, then exit 11249 -V, --version print version number and configuration settings, then exit 11250 --config print configuration, then exit 11251 -q, --quiet, --silent 11252 do not print progress messages 11253 -d, --debug don't remove temporary files 11254 --recheck update $as_me by reconfiguring in the same conditions 11255 --file=FILE[:TEMPLATE] 11256 instantiate the configuration file FILE 11257 --header=FILE[:TEMPLATE] 11258 instantiate the configuration header FILE 11259 11260Configuration files: 11261$config_files 11262 11263Configuration headers: 11264$config_headers 11265 11266Configuration commands: 11267$config_commands 11268 11269Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11270 11271_ACEOF 11272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11273ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11274ac_cs_version="\\ 11275xfindproxy config.status 1.0.4 11276configured by $0, generated by GNU Autoconf 2.69, 11277 with options \\"\$ac_cs_config\\" 11278 11279Copyright (C) 2012 Free Software Foundation, Inc. 11280This config.status script is free software; the Free Software Foundation 11281gives unlimited permission to copy, distribute and modify it." 11282 11283ac_pwd='$ac_pwd' 11284srcdir='$srcdir' 11285INSTALL='$INSTALL' 11286MKDIR_P='$MKDIR_P' 11287AWK='$AWK' 11288test -n "\$AWK" || AWK=awk 11289_ACEOF 11290 11291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11292# The default lists apply if the user does not specify any file. 11293ac_need_defaults=: 11294while test $# != 0 11295do 11296 case $1 in 11297 --*=?*) 11298 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11300 ac_shift=: 11301 ;; 11302 --*=) 11303 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11304 ac_optarg= 11305 ac_shift=: 11306 ;; 11307 *) 11308 ac_option=$1 11309 ac_optarg=$2 11310 ac_shift=shift 11311 ;; 11312 esac 11313 11314 case $ac_option in 11315 # Handling of the options. 11316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11317 ac_cs_recheck=: ;; 11318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11319 $as_echo "$ac_cs_version"; exit ;; 11320 --config | --confi | --conf | --con | --co | --c ) 11321 $as_echo "$ac_cs_config"; exit ;; 11322 --debug | --debu | --deb | --de | --d | -d ) 11323 debug=: ;; 11324 --file | --fil | --fi | --f ) 11325 $ac_shift 11326 case $ac_optarg in 11327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11328 '') as_fn_error $? "missing file argument" ;; 11329 esac 11330 as_fn_append CONFIG_FILES " '$ac_optarg'" 11331 ac_need_defaults=false;; 11332 --header | --heade | --head | --hea ) 11333 $ac_shift 11334 case $ac_optarg in 11335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11336 esac 11337 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11338 ac_need_defaults=false;; 11339 --he | --h) 11340 # Conflict between --help and --header 11341 as_fn_error $? "ambiguous option: \`$1' 11342Try \`$0 --help' for more information.";; 11343 --help | --hel | -h ) 11344 $as_echo "$ac_cs_usage"; exit ;; 11345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11346 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11347 ac_cs_silent=: ;; 11348 11349 # This is an error. 11350 -*) as_fn_error $? "unrecognized option: \`$1' 11351Try \`$0 --help' for more information." ;; 11352 11353 *) as_fn_append ac_config_targets " $1" 11354 ac_need_defaults=false ;; 11355 11356 esac 11357 shift 11358done 11359 11360ac_configure_extra_args= 11361 11362if $ac_cs_silent; then 11363 exec 6>/dev/null 11364 ac_configure_extra_args="$ac_configure_extra_args --silent" 11365fi 11366 11367_ACEOF 11368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11369if \$ac_cs_recheck; then 11370 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11371 shift 11372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11373 CONFIG_SHELL='$SHELL' 11374 export CONFIG_SHELL 11375 exec "\$@" 11376fi 11377 11378_ACEOF 11379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11380exec 5>>config.log 11381{ 11382 echo 11383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11384## Running $as_me. ## 11385_ASBOX 11386 $as_echo "$ac_log" 11387} >&5 11388 11389_ACEOF 11390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11391# 11392# INIT-COMMANDS 11393# 11394AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11395 11396_ACEOF 11397 11398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11399 11400# Handling of arguments. 11401for ac_config_target in $ac_config_targets 11402do 11403 case $ac_config_target in 11404 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11405 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11406 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11407 11408 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11409 esac 11410done 11411 11412 11413# If the user did not use the arguments to specify the items to instantiate, 11414# then the envvar interface is used. Set only those that are not. 11415# We use the long form for the default assignment because of an extremely 11416# bizarre bug on SunOS 4.1.3. 11417if $ac_need_defaults; then 11418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11420 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11421fi 11422 11423# Have a temporary directory for convenience. Make it in the build tree 11424# simply because there is no reason against having it here, and in addition, 11425# creating and moving files from /tmp can sometimes cause problems. 11426# Hook for its removal unless debugging. 11427# Note that there is a small window in which the directory will not be cleaned: 11428# after its creation but before its name has been assigned to `$tmp'. 11429$debug || 11430{ 11431 tmp= ac_tmp= 11432 trap 'exit_status=$? 11433 : "${ac_tmp:=$tmp}" 11434 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11435' 0 11436 trap 'as_fn_exit 1' 1 2 13 15 11437} 11438# Create a (secure) tmp directory for tmp files. 11439 11440{ 11441 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11442 test -d "$tmp" 11443} || 11444{ 11445 tmp=./conf$$-$RANDOM 11446 (umask 077 && mkdir "$tmp") 11447} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11448ac_tmp=$tmp 11449 11450# Set up the scripts for CONFIG_FILES section. 11451# No need to generate them if there are no CONFIG_FILES. 11452# This happens for instance with `./config.status config.h'. 11453if test -n "$CONFIG_FILES"; then 11454 11455 11456ac_cr=`echo X | tr X '\015'` 11457# On cygwin, bash can eat \r inside `` if the user requested igncr. 11458# But we know of no other shell where ac_cr would be empty at this 11459# point, so we can use a bashism as a fallback. 11460if test "x$ac_cr" = x; then 11461 eval ac_cr=\$\'\\r\' 11462fi 11463ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11464if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11465 ac_cs_awk_cr='\\r' 11466else 11467 ac_cs_awk_cr=$ac_cr 11468fi 11469 11470echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11471_ACEOF 11472 11473 11474{ 11475 echo "cat >conf$$subs.awk <<_ACEOF" && 11476 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11477 echo "_ACEOF" 11478} >conf$$subs.sh || 11479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11480ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11481ac_delim='%!_!# ' 11482for ac_last_try in false false false false false :; do 11483 . ./conf$$subs.sh || 11484 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11485 11486 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11487 if test $ac_delim_n = $ac_delim_num; then 11488 break 11489 elif $ac_last_try; then 11490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11491 else 11492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11493 fi 11494done 11495rm -f conf$$subs.sh 11496 11497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11498cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11499_ACEOF 11500sed -n ' 11501h 11502s/^/S["/; s/!.*/"]=/ 11503p 11504g 11505s/^[^!]*!// 11506:repl 11507t repl 11508s/'"$ac_delim"'$// 11509t delim 11510:nl 11511h 11512s/\(.\{148\}\)..*/\1/ 11513t more1 11514s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11515p 11516n 11517b repl 11518:more1 11519s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11520p 11521g 11522s/.\{148\}// 11523t nl 11524:delim 11525h 11526s/\(.\{148\}\)..*/\1/ 11527t more2 11528s/["\\]/\\&/g; s/^/"/; s/$/"/ 11529p 11530b 11531:more2 11532s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11533p 11534g 11535s/.\{148\}// 11536t delim 11537' <conf$$subs.awk | sed ' 11538/^[^""]/{ 11539 N 11540 s/\n// 11541} 11542' >>$CONFIG_STATUS || ac_write_fail=1 11543rm -f conf$$subs.awk 11544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11545_ACAWK 11546cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11547 for (key in S) S_is_set[key] = 1 11548 FS = "" 11549 11550} 11551{ 11552 line = $ 0 11553 nfields = split(line, field, "@") 11554 substed = 0 11555 len = length(field[1]) 11556 for (i = 2; i < nfields; i++) { 11557 key = field[i] 11558 keylen = length(key) 11559 if (S_is_set[key]) { 11560 value = S[key] 11561 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11562 len += length(value) + length(field[++i]) 11563 substed = 1 11564 } else 11565 len += 1 + keylen 11566 } 11567 11568 print line 11569} 11570 11571_ACAWK 11572_ACEOF 11573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11574if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11575 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11576else 11577 cat 11578fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11579 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11580_ACEOF 11581 11582# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11583# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11584# trailing colons and then remove the whole line if VPATH becomes empty 11585# (actually we leave an empty line to preserve line numbers). 11586if test "x$srcdir" = x.; then 11587 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11588h 11589s/// 11590s/^/:/ 11591s/[ ]*$/:/ 11592s/:\$(srcdir):/:/g 11593s/:\${srcdir}:/:/g 11594s/:@srcdir@:/:/g 11595s/^:*// 11596s/:*$// 11597x 11598s/\(=[ ]*\).*/\1/ 11599G 11600s/\n// 11601s/^[^=]*=[ ]*$// 11602}' 11603fi 11604 11605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11606fi # test -n "$CONFIG_FILES" 11607 11608# Set up the scripts for CONFIG_HEADERS section. 11609# No need to generate them if there are no CONFIG_HEADERS. 11610# This happens for instance with `./config.status Makefile'. 11611if test -n "$CONFIG_HEADERS"; then 11612cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11613BEGIN { 11614_ACEOF 11615 11616# Transform confdefs.h into an awk script `defines.awk', embedded as 11617# here-document in config.status, that substitutes the proper values into 11618# config.h.in to produce config.h. 11619 11620# Create a delimiter string that does not exist in confdefs.h, to ease 11621# handling of long lines. 11622ac_delim='%!_!# ' 11623for ac_last_try in false false :; do 11624 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11625 if test -z "$ac_tt"; then 11626 break 11627 elif $ac_last_try; then 11628 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11629 else 11630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11631 fi 11632done 11633 11634# For the awk script, D is an array of macro values keyed by name, 11635# likewise P contains macro parameters if any. Preserve backslash 11636# newline sequences. 11637 11638ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11639sed -n ' 11640s/.\{148\}/&'"$ac_delim"'/g 11641t rset 11642:rset 11643s/^[ ]*#[ ]*define[ ][ ]*/ / 11644t def 11645d 11646:def 11647s/\\$// 11648t bsnl 11649s/["\\]/\\&/g 11650s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11651D["\1"]=" \3"/p 11652s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11653d 11654:bsnl 11655s/["\\]/\\&/g 11656s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11657D["\1"]=" \3\\\\\\n"\\/p 11658t cont 11659s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11660t cont 11661d 11662:cont 11663n 11664s/.\{148\}/&'"$ac_delim"'/g 11665t clear 11666:clear 11667s/\\$// 11668t bsnlc 11669s/["\\]/\\&/g; s/^/"/; s/$/"/p 11670d 11671:bsnlc 11672s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11673b cont 11674' <confdefs.h | sed ' 11675s/'"$ac_delim"'/"\\\ 11676"/g' >>$CONFIG_STATUS || ac_write_fail=1 11677 11678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11679 for (key in D) D_is_set[key] = 1 11680 FS = "" 11681} 11682/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11683 line = \$ 0 11684 split(line, arg, " ") 11685 if (arg[1] == "#") { 11686 defundef = arg[2] 11687 mac1 = arg[3] 11688 } else { 11689 defundef = substr(arg[1], 2) 11690 mac1 = arg[2] 11691 } 11692 split(mac1, mac2, "(") #) 11693 macro = mac2[1] 11694 prefix = substr(line, 1, index(line, defundef) - 1) 11695 if (D_is_set[macro]) { 11696 # Preserve the white space surrounding the "#". 11697 print prefix "define", macro P[macro] D[macro] 11698 next 11699 } else { 11700 # Replace #undef with comments. This is necessary, for example, 11701 # in the case of _POSIX_SOURCE, which is predefined and required 11702 # on some systems where configure will not decide to define it. 11703 if (defundef == "undef") { 11704 print "/*", prefix defundef, macro, "*/" 11705 next 11706 } 11707 } 11708} 11709{ print } 11710_ACAWK 11711_ACEOF 11712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11713 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11714fi # test -n "$CONFIG_HEADERS" 11715 11716 11717eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11718shift 11719for ac_tag 11720do 11721 case $ac_tag in 11722 :[FHLC]) ac_mode=$ac_tag; continue;; 11723 esac 11724 case $ac_mode$ac_tag in 11725 :[FHL]*:*);; 11726 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11727 :[FH]-) ac_tag=-:-;; 11728 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11729 esac 11730 ac_save_IFS=$IFS 11731 IFS=: 11732 set x $ac_tag 11733 IFS=$ac_save_IFS 11734 shift 11735 ac_file=$1 11736 shift 11737 11738 case $ac_mode in 11739 :L) ac_source=$1;; 11740 :[FH]) 11741 ac_file_inputs= 11742 for ac_f 11743 do 11744 case $ac_f in 11745 -) ac_f="$ac_tmp/stdin";; 11746 *) # Look for the file first in the build tree, then in the source tree 11747 # (if the path is not absolute). The absolute path cannot be DOS-style, 11748 # because $ac_f cannot contain `:'. 11749 test -f "$ac_f" || 11750 case $ac_f in 11751 [\\/$]*) false;; 11752 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11753 esac || 11754 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11755 esac 11756 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11757 as_fn_append ac_file_inputs " '$ac_f'" 11758 done 11759 11760 # Let's still pretend it is `configure' which instantiates (i.e., don't 11761 # use $as_me), people would be surprised to read: 11762 # /* config.h. Generated by config.status. */ 11763 configure_input='Generated from '` 11764 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11765 `' by configure.' 11766 if test x"$ac_file" != x-; then 11767 configure_input="$ac_file. $configure_input" 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11769$as_echo "$as_me: creating $ac_file" >&6;} 11770 fi 11771 # Neutralize special characters interpreted by sed in replacement strings. 11772 case $configure_input in #( 11773 *\&* | *\|* | *\\* ) 11774 ac_sed_conf_input=`$as_echo "$configure_input" | 11775 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11776 *) ac_sed_conf_input=$configure_input;; 11777 esac 11778 11779 case $ac_tag in 11780 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11782 esac 11783 ;; 11784 esac 11785 11786 ac_dir=`$as_dirname -- "$ac_file" || 11787$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11788 X"$ac_file" : 'X\(//\)[^/]' \| \ 11789 X"$ac_file" : 'X\(//\)$' \| \ 11790 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11791$as_echo X"$ac_file" | 11792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11793 s//\1/ 11794 q 11795 } 11796 /^X\(\/\/\)[^/].*/{ 11797 s//\1/ 11798 q 11799 } 11800 /^X\(\/\/\)$/{ 11801 s//\1/ 11802 q 11803 } 11804 /^X\(\/\).*/{ 11805 s//\1/ 11806 q 11807 } 11808 s/.*/./; q'` 11809 as_dir="$ac_dir"; as_fn_mkdir_p 11810 ac_builddir=. 11811 11812case "$ac_dir" in 11813.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11814*) 11815 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11816 # A ".." for each directory in $ac_dir_suffix. 11817 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11818 case $ac_top_builddir_sub in 11819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11821 esac ;; 11822esac 11823ac_abs_top_builddir=$ac_pwd 11824ac_abs_builddir=$ac_pwd$ac_dir_suffix 11825# for backward compatibility: 11826ac_top_builddir=$ac_top_build_prefix 11827 11828case $srcdir in 11829 .) # We are building in place. 11830 ac_srcdir=. 11831 ac_top_srcdir=$ac_top_builddir_sub 11832 ac_abs_top_srcdir=$ac_pwd ;; 11833 [\\/]* | ?:[\\/]* ) # Absolute name. 11834 ac_srcdir=$srcdir$ac_dir_suffix; 11835 ac_top_srcdir=$srcdir 11836 ac_abs_top_srcdir=$srcdir ;; 11837 *) # Relative name. 11838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11839 ac_top_srcdir=$ac_top_build_prefix$srcdir 11840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11841esac 11842ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11843 11844 11845 case $ac_mode in 11846 :F) 11847 # 11848 # CONFIG_FILE 11849 # 11850 11851 case $INSTALL in 11852 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11853 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11854 esac 11855 ac_MKDIR_P=$MKDIR_P 11856 case $MKDIR_P in 11857 [\\/$]* | ?:[\\/]* ) ;; 11858 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11859 esac 11860_ACEOF 11861 11862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11863# If the template does not know about datarootdir, expand it. 11864# FIXME: This hack should be removed a few years after 2.60. 11865ac_datarootdir_hack=; ac_datarootdir_seen= 11866ac_sed_dataroot=' 11867/datarootdir/ { 11868 p 11869 q 11870} 11871/@datadir@/p 11872/@docdir@/p 11873/@infodir@/p 11874/@localedir@/p 11875/@mandir@/p' 11876case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11877*datarootdir*) ac_datarootdir_seen=yes;; 11878*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11880$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11881_ACEOF 11882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11883 ac_datarootdir_hack=' 11884 s&@datadir@&$datadir&g 11885 s&@docdir@&$docdir&g 11886 s&@infodir@&$infodir&g 11887 s&@localedir@&$localedir&g 11888 s&@mandir@&$mandir&g 11889 s&\\\${datarootdir}&$datarootdir&g' ;; 11890esac 11891_ACEOF 11892 11893# Neutralize VPATH when `$srcdir' = `.'. 11894# Shell code in configure.ac might set extrasub. 11895# FIXME: do we really want to maintain this feature? 11896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11897ac_sed_extra="$ac_vpsub 11898$extrasub 11899_ACEOF 11900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11901:t 11902/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11903s|@configure_input@|$ac_sed_conf_input|;t t 11904s&@top_builddir@&$ac_top_builddir_sub&;t t 11905s&@top_build_prefix@&$ac_top_build_prefix&;t t 11906s&@srcdir@&$ac_srcdir&;t t 11907s&@abs_srcdir@&$ac_abs_srcdir&;t t 11908s&@top_srcdir@&$ac_top_srcdir&;t t 11909s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11910s&@builddir@&$ac_builddir&;t t 11911s&@abs_builddir@&$ac_abs_builddir&;t t 11912s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11913s&@INSTALL@&$ac_INSTALL&;t t 11914s&@MKDIR_P@&$ac_MKDIR_P&;t t 11915$ac_datarootdir_hack 11916" 11917eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11918 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11919 11920test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11921 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11922 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11923 "$ac_tmp/out"`; test -z "$ac_out"; } && 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11925which seems to be undefined. Please make sure it is defined" >&5 11926$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11927which seems to be undefined. Please make sure it is defined" >&2;} 11928 11929 rm -f "$ac_tmp/stdin" 11930 case $ac_file in 11931 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11932 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11933 esac \ 11934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11935 ;; 11936 :H) 11937 # 11938 # CONFIG_HEADER 11939 # 11940 if test x"$ac_file" != x-; then 11941 { 11942 $as_echo "/* $configure_input */" \ 11943 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11944 } >"$ac_tmp/config.h" \ 11945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11946 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11948$as_echo "$as_me: $ac_file is unchanged" >&6;} 11949 else 11950 rm -f "$ac_file" 11951 mv "$ac_tmp/config.h" "$ac_file" \ 11952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11953 fi 11954 else 11955 $as_echo "/* $configure_input */" \ 11956 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11957 || as_fn_error $? "could not create -" "$LINENO" 5 11958 fi 11959# Compute "$ac_file"'s index in $config_headers. 11960_am_arg="$ac_file" 11961_am_stamp_count=1 11962for _am_header in $config_headers :; do 11963 case $_am_header in 11964 $_am_arg | $_am_arg:* ) 11965 break ;; 11966 * ) 11967 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11968 esac 11969done 11970echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11971$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11972 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11973 X"$_am_arg" : 'X\(//\)$' \| \ 11974 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11975$as_echo X"$_am_arg" | 11976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11977 s//\1/ 11978 q 11979 } 11980 /^X\(\/\/\)[^/].*/{ 11981 s//\1/ 11982 q 11983 } 11984 /^X\(\/\/\)$/{ 11985 s//\1/ 11986 q 11987 } 11988 /^X\(\/\).*/{ 11989 s//\1/ 11990 q 11991 } 11992 s/.*/./; q'`/stamp-h$_am_stamp_count 11993 ;; 11994 11995 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11996$as_echo "$as_me: executing $ac_file commands" >&6;} 11997 ;; 11998 esac 11999 12000 12001 case $ac_file$ac_mode in 12002 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12003 # Older Autoconf quotes --file arguments for eval, but not when files 12004 # are listed without --file. Let's play safe and only enable the eval 12005 # if we detect the quoting. 12006 case $CONFIG_FILES in 12007 *\'*) eval set x "$CONFIG_FILES" ;; 12008 *) set x $CONFIG_FILES ;; 12009 esac 12010 shift 12011 for mf 12012 do 12013 # Strip MF so we end up with the name of the file. 12014 mf=`echo "$mf" | sed -e 's/:.*$//'` 12015 # Check whether this is an Automake generated Makefile or not. 12016 # We used to match only the files named 'Makefile.in', but 12017 # some people rename them; so instead we look at the file content. 12018 # Grep'ing the first line is not enough: some people post-process 12019 # each Makefile.in and add a new line on top of each file to say so. 12020 # Grep'ing the whole file is not good either: AIX grep has a line 12021 # limit of 2048, but all sed's we know have understand at least 4000. 12022 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12023 dirpart=`$as_dirname -- "$mf" || 12024$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12025 X"$mf" : 'X\(//\)[^/]' \| \ 12026 X"$mf" : 'X\(//\)$' \| \ 12027 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12028$as_echo X"$mf" | 12029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12030 s//\1/ 12031 q 12032 } 12033 /^X\(\/\/\)[^/].*/{ 12034 s//\1/ 12035 q 12036 } 12037 /^X\(\/\/\)$/{ 12038 s//\1/ 12039 q 12040 } 12041 /^X\(\/\).*/{ 12042 s//\1/ 12043 q 12044 } 12045 s/.*/./; q'` 12046 else 12047 continue 12048 fi 12049 # Extract the definition of DEPDIR, am__include, and am__quote 12050 # from the Makefile without running 'make'. 12051 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12052 test -z "$DEPDIR" && continue 12053 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12054 test -z "$am__include" && continue 12055 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12056 # Find all dependency output files, they are included files with 12057 # $(DEPDIR) in their names. We invoke sed twice because it is the 12058 # simplest approach to changing $(DEPDIR) to its actual value in the 12059 # expansion. 12060 for file in `sed -n " 12061 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12062 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12063 # Make sure the directory exists. 12064 test -f "$dirpart/$file" && continue 12065 fdir=`$as_dirname -- "$file" || 12066$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12067 X"$file" : 'X\(//\)[^/]' \| \ 12068 X"$file" : 'X\(//\)$' \| \ 12069 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12070$as_echo X"$file" | 12071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12072 s//\1/ 12073 q 12074 } 12075 /^X\(\/\/\)[^/].*/{ 12076 s//\1/ 12077 q 12078 } 12079 /^X\(\/\/\)$/{ 12080 s//\1/ 12081 q 12082 } 12083 /^X\(\/\).*/{ 12084 s//\1/ 12085 q 12086 } 12087 s/.*/./; q'` 12088 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12089 # echo "creating $dirpart/$file" 12090 echo '# dummy' > "$dirpart/$file" 12091 done 12092 done 12093} 12094 ;; 12095 12096 esac 12097done # for ac_tag 12098 12099 12100as_fn_exit 0 12101_ACEOF 12102ac_clean_files=$ac_clean_files_save 12103 12104test $ac_write_fail = 0 || 12105 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12106 12107 12108# configure is writing to config.log, and then calls config.status. 12109# config.status does its own redirection, appending to config.log. 12110# Unfortunately, on DOS this fails, as config.log is still kept open 12111# by configure, so config.status won't be able to write to it; its 12112# output is simply discarded. So we exec the FD to /dev/null, 12113# effectively closing config.log, so it can be properly (re)opened and 12114# appended to by config.status. When coming back to configure, we 12115# need to make the FD available again. 12116if test "$no_create" != yes; then 12117 ac_cs_success=: 12118 ac_config_status_args= 12119 test "$silent" = yes && 12120 ac_config_status_args="$ac_config_status_args --quiet" 12121 exec 5>/dev/null 12122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12123 exec 5>>config.log 12124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12125 # would make configure fail if this is the last instruction. 12126 $ac_cs_success || as_fn_exit 1 12127fi 12128if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12130$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12131fi 12132 12133