configure revision 8e4923e5
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xfindproxy 1.0.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xfindproxy' 563PACKAGE_TARNAME='xfindproxy' 564PACKAGE_VERSION='1.0.3' 565PACKAGE_STRING='xfindproxy 1.0.3' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610XFINDPROXY_LIBS 611XFINDPROXY_CFLAGS 612MAN_SUBSTS 613XORG_MAN_PAGE 614ADMIN_MAN_DIR 615DRIVER_MAN_DIR 616MISC_MAN_DIR 617FILE_MAN_DIR 618LIB_MAN_DIR 619APP_MAN_DIR 620ADMIN_MAN_SUFFIX 621DRIVER_MAN_SUFFIX 622MISC_MAN_SUFFIX 623FILE_MAN_SUFFIX 624LIB_MAN_SUFFIX 625APP_MAN_SUFFIX 626SED 627host_os 628host_vendor 629host_cpu 630host 631build_os 632build_vendor 633build_cpu 634build 635INSTALL_CMD 636PKG_CONFIG 637CHANGELOG_CMD 638STRICT_CFLAGS 639CWARNFLAGS 640BASE_CFLAGS 641EGREP 642GREP 643CPP 644am__fastdepCC_FALSE 645am__fastdepCC_TRUE 646CCDEPMODE 647am__nodep 648AMDEPBACKSLASH 649AMDEP_FALSE 650AMDEP_TRUE 651am__quote 652am__include 653DEPDIR 654OBJEXT 655EXEEXT 656ac_ct_CC 657CPPFLAGS 658LDFLAGS 659CFLAGS 660CC 661MAINT 662MAINTAINER_MODE_FALSE 663MAINTAINER_MODE_TRUE 664AM_BACKSLASH 665AM_DEFAULT_VERBOSITY 666AM_DEFAULT_V 667AM_V 668am__untar 669am__tar 670AMTAR 671am__leading_dot 672SET_MAKE 673AWK 674mkdir_p 675MKDIR_P 676INSTALL_STRIP_PROGRAM 677STRIP 678install_sh 679MAKEINFO 680AUTOHEADER 681AUTOMAKE 682AUTOCONF 683ACLOCAL 684VERSION 685PACKAGE 686CYGPATH_W 687am__isrc 688INSTALL_DATA 689INSTALL_SCRIPT 690INSTALL_PROGRAM 691target_alias 692host_alias 693build_alias 694LIBS 695ECHO_T 696ECHO_N 697ECHO_C 698DEFS 699mandir 700localedir 701libdir 702psdir 703pdfdir 704dvidir 705htmldir 706infodir 707docdir 708oldincludedir 709includedir 710localstatedir 711sharedstatedir 712sysconfdir 713datadir 714datarootdir 715libexecdir 716sbindir 717bindir 718program_transform_name 719prefix 720exec_prefix 721PACKAGE_URL 722PACKAGE_BUGREPORT 723PACKAGE_STRING 724PACKAGE_VERSION 725PACKAGE_TARNAME 726PACKAGE_NAME 727PATH_SEPARATOR 728SHELL' 729ac_subst_files='' 730ac_user_opts=' 731enable_option_checking 732enable_silent_rules 733enable_maintainer_mode 734enable_dependency_tracking 735enable_selective_werror 736enable_strict_compilation 737' 738 ac_precious_vars='build_alias 739host_alias 740target_alias 741CC 742CFLAGS 743LDFLAGS 744LIBS 745CPPFLAGS 746CPP 747PKG_CONFIG 748XFINDPROXY_CFLAGS 749XFINDPROXY_LIBS' 750 751 752# Initialize some variables set by options. 753ac_init_help= 754ac_init_version=false 755ac_unrecognized_opts= 756ac_unrecognized_sep= 757# The variables have the same names as the options, with 758# dashes changed to underlines. 759cache_file=/dev/null 760exec_prefix=NONE 761no_create= 762no_recursion= 763prefix=NONE 764program_prefix=NONE 765program_suffix=NONE 766program_transform_name=s,x,x, 767silent= 768site= 769srcdir= 770verbose= 771x_includes=NONE 772x_libraries=NONE 773 774# Installation directory options. 775# These are left unexpanded so users can "make install exec_prefix=/foo" 776# and all the variables that are supposed to be based on exec_prefix 777# by default will actually change. 778# Use braces instead of parens because sh, perl, etc. also accept them. 779# (The list follows the same order as the GNU Coding Standards.) 780bindir='${exec_prefix}/bin' 781sbindir='${exec_prefix}/sbin' 782libexecdir='${exec_prefix}/libexec' 783datarootdir='${prefix}/share' 784datadir='${datarootdir}' 785sysconfdir='${prefix}/etc' 786sharedstatedir='${prefix}/com' 787localstatedir='${prefix}/var' 788includedir='${prefix}/include' 789oldincludedir='/usr/include' 790docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 791infodir='${datarootdir}/info' 792htmldir='${docdir}' 793dvidir='${docdir}' 794pdfdir='${docdir}' 795psdir='${docdir}' 796libdir='${exec_prefix}/lib' 797localedir='${datarootdir}/locale' 798mandir='${datarootdir}/man' 799 800ac_prev= 801ac_dashdash= 802for ac_option 803do 804 # If the previous option needs an argument, assign it. 805 if test -n "$ac_prev"; then 806 eval $ac_prev=\$ac_option 807 ac_prev= 808 continue 809 fi 810 811 case $ac_option in 812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 813 *=) ac_optarg= ;; 814 *) ac_optarg=yes ;; 815 esac 816 817 # Accept the important Cygnus configure options, so we can diagnose typos. 818 819 case $ac_dashdash$ac_option in 820 --) 821 ac_dashdash=yes ;; 822 823 -bindir | --bindir | --bindi | --bind | --bin | --bi) 824 ac_prev=bindir ;; 825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 826 bindir=$ac_optarg ;; 827 828 -build | --build | --buil | --bui | --bu) 829 ac_prev=build_alias ;; 830 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 831 build_alias=$ac_optarg ;; 832 833 -cache-file | --cache-file | --cache-fil | --cache-fi \ 834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 835 ac_prev=cache_file ;; 836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 838 cache_file=$ac_optarg ;; 839 840 --config-cache | -C) 841 cache_file=config.cache ;; 842 843 -datadir | --datadir | --datadi | --datad) 844 ac_prev=datadir ;; 845 -datadir=* | --datadir=* | --datadi=* | --datad=*) 846 datadir=$ac_optarg ;; 847 848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 849 | --dataroo | --dataro | --datar) 850 ac_prev=datarootdir ;; 851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 853 datarootdir=$ac_optarg ;; 854 855 -disable-* | --disable-*) 856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 859 as_fn_error $? "invalid feature name: $ac_useropt" 860 ac_useropt_orig=$ac_useropt 861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 862 case $ac_user_opts in 863 *" 864"enable_$ac_useropt" 865"*) ;; 866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 867 ac_unrecognized_sep=', ';; 868 esac 869 eval enable_$ac_useropt=no ;; 870 871 -docdir | --docdir | --docdi | --doc | --do) 872 ac_prev=docdir ;; 873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 874 docdir=$ac_optarg ;; 875 876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 877 ac_prev=dvidir ;; 878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 879 dvidir=$ac_optarg ;; 880 881 -enable-* | --enable-*) 882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 885 as_fn_error $? "invalid feature name: $ac_useropt" 886 ac_useropt_orig=$ac_useropt 887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 888 case $ac_user_opts in 889 *" 890"enable_$ac_useropt" 891"*) ;; 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 893 ac_unrecognized_sep=', ';; 894 esac 895 eval enable_$ac_useropt=\$ac_optarg ;; 896 897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 899 | --exec | --exe | --ex) 900 ac_prev=exec_prefix ;; 901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 903 | --exec=* | --exe=* | --ex=*) 904 exec_prefix=$ac_optarg ;; 905 906 -gas | --gas | --ga | --g) 907 # Obsolete; use --with-gas. 908 with_gas=yes ;; 909 910 -help | --help | --hel | --he | -h) 911 ac_init_help=long ;; 912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 913 ac_init_help=recursive ;; 914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 915 ac_init_help=short ;; 916 917 -host | --host | --hos | --ho) 918 ac_prev=host_alias ;; 919 -host=* | --host=* | --hos=* | --ho=*) 920 host_alias=$ac_optarg ;; 921 922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 923 ac_prev=htmldir ;; 924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 925 | --ht=*) 926 htmldir=$ac_optarg ;; 927 928 -includedir | --includedir | --includedi | --included | --include \ 929 | --includ | --inclu | --incl | --inc) 930 ac_prev=includedir ;; 931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 932 | --includ=* | --inclu=* | --incl=* | --inc=*) 933 includedir=$ac_optarg ;; 934 935 -infodir | --infodir | --infodi | --infod | --info | --inf) 936 ac_prev=infodir ;; 937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 938 infodir=$ac_optarg ;; 939 940 -libdir | --libdir | --libdi | --libd) 941 ac_prev=libdir ;; 942 -libdir=* | --libdir=* | --libdi=* | --libd=*) 943 libdir=$ac_optarg ;; 944 945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 946 | --libexe | --libex | --libe) 947 ac_prev=libexecdir ;; 948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 949 | --libexe=* | --libex=* | --libe=*) 950 libexecdir=$ac_optarg ;; 951 952 -localedir | --localedir | --localedi | --localed | --locale) 953 ac_prev=localedir ;; 954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 955 localedir=$ac_optarg ;; 956 957 -localstatedir | --localstatedir | --localstatedi | --localstated \ 958 | --localstate | --localstat | --localsta | --localst | --locals) 959 ac_prev=localstatedir ;; 960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 962 localstatedir=$ac_optarg ;; 963 964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 965 ac_prev=mandir ;; 966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 967 mandir=$ac_optarg ;; 968 969 -nfp | --nfp | --nf) 970 # Obsolete; use --without-fp. 971 with_fp=no ;; 972 973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 974 | --no-cr | --no-c | -n) 975 no_create=yes ;; 976 977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 979 no_recursion=yes ;; 980 981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 983 | --oldin | --oldi | --old | --ol | --o) 984 ac_prev=oldincludedir ;; 985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 988 oldincludedir=$ac_optarg ;; 989 990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 991 ac_prev=prefix ;; 992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 993 prefix=$ac_optarg ;; 994 995 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 996 | --program-pre | --program-pr | --program-p) 997 ac_prev=program_prefix ;; 998 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1000 program_prefix=$ac_optarg ;; 1001 1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1003 | --program-suf | --program-su | --program-s) 1004 ac_prev=program_suffix ;; 1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1007 program_suffix=$ac_optarg ;; 1008 1009 -program-transform-name | --program-transform-name \ 1010 | --program-transform-nam | --program-transform-na \ 1011 | --program-transform-n | --program-transform- \ 1012 | --program-transform | --program-transfor \ 1013 | --program-transfo | --program-transf \ 1014 | --program-trans | --program-tran \ 1015 | --progr-tra | --program-tr | --program-t) 1016 ac_prev=program_transform_name ;; 1017 -program-transform-name=* | --program-transform-name=* \ 1018 | --program-transform-nam=* | --program-transform-na=* \ 1019 | --program-transform-n=* | --program-transform-=* \ 1020 | --program-transform=* | --program-transfor=* \ 1021 | --program-transfo=* | --program-transf=* \ 1022 | --program-trans=* | --program-tran=* \ 1023 | --progr-tra=* | --program-tr=* | --program-t=*) 1024 program_transform_name=$ac_optarg ;; 1025 1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1027 ac_prev=pdfdir ;; 1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1029 pdfdir=$ac_optarg ;; 1030 1031 -psdir | --psdir | --psdi | --psd | --ps) 1032 ac_prev=psdir ;; 1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1034 psdir=$ac_optarg ;; 1035 1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1037 | -silent | --silent | --silen | --sile | --sil) 1038 silent=yes ;; 1039 1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1041 ac_prev=sbindir ;; 1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1043 | --sbi=* | --sb=*) 1044 sbindir=$ac_optarg ;; 1045 1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1048 | --sharedst | --shareds | --shared | --share | --shar \ 1049 | --sha | --sh) 1050 ac_prev=sharedstatedir ;; 1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1054 | --sha=* | --sh=*) 1055 sharedstatedir=$ac_optarg ;; 1056 1057 -site | --site | --sit) 1058 ac_prev=site ;; 1059 -site=* | --site=* | --sit=*) 1060 site=$ac_optarg ;; 1061 1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1063 ac_prev=srcdir ;; 1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1065 srcdir=$ac_optarg ;; 1066 1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1068 | --syscon | --sysco | --sysc | --sys | --sy) 1069 ac_prev=sysconfdir ;; 1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1072 sysconfdir=$ac_optarg ;; 1073 1074 -target | --target | --targe | --targ | --tar | --ta | --t) 1075 ac_prev=target_alias ;; 1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1077 target_alias=$ac_optarg ;; 1078 1079 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1080 verbose=yes ;; 1081 1082 -version | --version | --versio | --versi | --vers | -V) 1083 ac_init_version=: ;; 1084 1085 -with-* | --with-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 as_fn_error $? "invalid package name: $ac_useropt" 1090 ac_useropt_orig=$ac_useropt 1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1092 case $ac_user_opts in 1093 *" 1094"with_$ac_useropt" 1095"*) ;; 1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1097 ac_unrecognized_sep=', ';; 1098 esac 1099 eval with_$ac_useropt=\$ac_optarg ;; 1100 1101 -without-* | --without-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=no ;; 1116 1117 --x) 1118 # Obsolete; use --with-x. 1119 with_x=yes ;; 1120 1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1122 | --x-incl | --x-inc | --x-in | --x-i) 1123 ac_prev=x_includes ;; 1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1126 x_includes=$ac_optarg ;; 1127 1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1130 ac_prev=x_libraries ;; 1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1133 x_libraries=$ac_optarg ;; 1134 1135 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1136Try \`$0 --help' for more information" 1137 ;; 1138 1139 *=*) 1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1141 # Reject names that are not valid shell variable names. 1142 case $ac_envvar in #( 1143 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1145 esac 1146 eval $ac_envvar=\$ac_optarg 1147 export $ac_envvar ;; 1148 1149 *) 1150 # FIXME: should be removed in autoconf 3.0. 1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1155 ;; 1156 1157 esac 1158done 1159 1160if test -n "$ac_prev"; then 1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1162 as_fn_error $? "missing argument to $ac_option" 1163fi 1164 1165if test -n "$ac_unrecognized_opts"; then 1166 case $enable_option_checking in 1167 no) ;; 1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1170 esac 1171fi 1172 1173# Check all directory arguments for consistency. 1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1175 datadir sysconfdir sharedstatedir localstatedir includedir \ 1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1177 libdir localedir mandir 1178do 1179 eval ac_val=\$$ac_var 1180 # Remove trailing slashes. 1181 case $ac_val in 1182 */ ) 1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1184 eval $ac_var=\$ac_val;; 1185 esac 1186 # Be sure to have absolute directory names. 1187 case $ac_val in 1188 [\\/$]* | ?:[\\/]* ) continue;; 1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1190 esac 1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1192done 1193 1194# There might be people who depend on the old broken behavior: `$host' 1195# used to hold the argument of --host etc. 1196# FIXME: To remove some day. 1197build=$build_alias 1198host=$host_alias 1199target=$target_alias 1200 1201# FIXME: To remove some day. 1202if test "x$host_alias" != x; then 1203 if test "x$build_alias" = x; then 1204 cross_compiling=maybe 1205 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1206 If a cross compiler is detected then cross compile mode will be used" >&2 1207 elif test "x$build_alias" != "x$host_alias"; then 1208 cross_compiling=yes 1209 fi 1210fi 1211 1212ac_tool_prefix= 1213test -n "$host_alias" && ac_tool_prefix=$host_alias- 1214 1215test "$silent" = yes && exec 6>/dev/null 1216 1217 1218ac_pwd=`pwd` && test -n "$ac_pwd" && 1219ac_ls_di=`ls -di .` && 1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1221 as_fn_error $? "working directory cannot be determined" 1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1223 as_fn_error $? "pwd does not report name of working directory" 1224 1225 1226# Find the source files, if location was not specified. 1227if test -z "$srcdir"; then 1228 ac_srcdir_defaulted=yes 1229 # Try the directory containing this script, then the parent directory. 1230 ac_confdir=`$as_dirname -- "$as_myself" || 1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1232 X"$as_myself" : 'X\(//\)[^/]' \| \ 1233 X"$as_myself" : 'X\(//\)$' \| \ 1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1235$as_echo X"$as_myself" | 1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)[^/].*/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\/\)$/{ 1245 s//\1/ 1246 q 1247 } 1248 /^X\(\/\).*/{ 1249 s//\1/ 1250 q 1251 } 1252 s/.*/./; q'` 1253 srcdir=$ac_confdir 1254 if test ! -r "$srcdir/$ac_unique_file"; then 1255 srcdir=.. 1256 fi 1257else 1258 ac_srcdir_defaulted=no 1259fi 1260if test ! -r "$srcdir/$ac_unique_file"; then 1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1263fi 1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1265ac_abs_confdir=`( 1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1267 pwd)` 1268# When building in place, set srcdir=. 1269if test "$ac_abs_confdir" = "$ac_pwd"; then 1270 srcdir=. 1271fi 1272# Remove unnecessary trailing slashes from srcdir. 1273# Double slashes in file names in object file debugging info 1274# mess up M-x gdb in Emacs. 1275case $srcdir in 1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1277esac 1278for ac_var in $ac_precious_vars; do 1279 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_env_${ac_var}_value=\$${ac_var} 1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1283done 1284 1285# 1286# Report the --help message. 1287# 1288if test "$ac_init_help" = "long"; then 1289 # Omit some internal or obsolete options to make the list less imposing. 1290 # This message is too long to be a string in the A/UX 3.1 sh. 1291 cat <<_ACEOF 1292\`configure' configures xfindproxy 1.0.3 to adapt to many kinds of systems. 1293 1294Usage: $0 [OPTION]... [VAR=VALUE]... 1295 1296To assign environment variables (e.g., CC, CFLAGS...), specify them as 1297VAR=VALUE. See below for descriptions of some of the useful variables. 1298 1299Defaults for the options are specified in brackets. 1300 1301Configuration: 1302 -h, --help display this help and exit 1303 --help=short display options specific to this package 1304 --help=recursive display the short help of all the included packages 1305 -V, --version display version information and exit 1306 -q, --quiet, --silent do not print \`checking ...' messages 1307 --cache-file=FILE cache test results in FILE [disabled] 1308 -C, --config-cache alias for \`--cache-file=config.cache' 1309 -n, --no-create do not create output files 1310 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1311 1312Installation directories: 1313 --prefix=PREFIX install architecture-independent files in PREFIX 1314 [$ac_default_prefix] 1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1316 [PREFIX] 1317 1318By default, \`make install' will install all the files in 1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1320an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1321for instance \`--prefix=\$HOME'. 1322 1323For better control, use the options below. 1324 1325Fine tuning of the installation directories: 1326 --bindir=DIR user executables [EPREFIX/bin] 1327 --sbindir=DIR system admin executables [EPREFIX/sbin] 1328 --libexecdir=DIR program executables [EPREFIX/libexec] 1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1332 --libdir=DIR object code libraries [EPREFIX/lib] 1333 --includedir=DIR C header files [PREFIX/include] 1334 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1337 --infodir=DIR info documentation [DATAROOTDIR/info] 1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1339 --mandir=DIR man documentation [DATAROOTDIR/man] 1340 --docdir=DIR documentation root [DATAROOTDIR/doc/xfindproxy] 1341 --htmldir=DIR html documentation [DOCDIR] 1342 --dvidir=DIR dvi documentation [DOCDIR] 1343 --pdfdir=DIR pdf documentation [DOCDIR] 1344 --psdir=DIR ps documentation [DOCDIR] 1345_ACEOF 1346 1347 cat <<\_ACEOF 1348 1349Program names: 1350 --program-prefix=PREFIX prepend PREFIX to installed program names 1351 --program-suffix=SUFFIX append SUFFIX to installed program names 1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1353 1354System types: 1355 --build=BUILD configure for building on BUILD [guessed] 1356 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1357_ACEOF 1358fi 1359 1360if test -n "$ac_init_help"; then 1361 case $ac_init_help in 1362 short | recursive ) echo "Configuration of xfindproxy 1.0.3:";; 1363 esac 1364 cat <<\_ACEOF 1365 1366Optional Features: 1367 --disable-option-checking ignore unrecognized --enable/--with options 1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1370 --enable-silent-rules less verbose build output (undo: "make V=1") 1371 --disable-silent-rules verbose build output (undo: "make V=0") 1372 --enable-maintainer-mode 1373 enable make rules and dependencies not useful (and 1374 sometimes confusing) to the casual installer 1375 --enable-dependency-tracking 1376 do not reject slow dependency extractors 1377 --disable-dependency-tracking 1378 speeds up one-time build 1379 --disable-selective-werror 1380 Turn off selective compiler errors. (default: 1381 enabled) 1382 --enable-strict-compilation 1383 Enable all warnings from compiler and make them 1384 errors (default: disabled) 1385 1386Some influential environment variables: 1387 CC C compiler command 1388 CFLAGS C compiler flags 1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1390 nonstandard directory <lib dir> 1391 LIBS libraries to pass to the linker, e.g. -l<library> 1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1393 you have headers in a nonstandard directory <include dir> 1394 CPP C preprocessor 1395 PKG_CONFIG path to pkg-config utility 1396 XFINDPROXY_CFLAGS 1397 C compiler flags for XFINDPROXY, overriding pkg-config 1398 XFINDPROXY_LIBS 1399 linker flags for XFINDPROXY, overriding pkg-config 1400 1401Use these variables to override the choices made by `configure' or to help 1402it to find libraries and programs with nonstandard names/locations. 1403 1404Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1405_ACEOF 1406ac_status=$? 1407fi 1408 1409if test "$ac_init_help" = "recursive"; then 1410 # If there are subdirs, report their specific --help. 1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1412 test -d "$ac_dir" || 1413 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1414 continue 1415 ac_builddir=. 1416 1417case "$ac_dir" in 1418.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1419*) 1420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1421 # A ".." for each directory in $ac_dir_suffix. 1422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1423 case $ac_top_builddir_sub in 1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1426 esac ;; 1427esac 1428ac_abs_top_builddir=$ac_pwd 1429ac_abs_builddir=$ac_pwd$ac_dir_suffix 1430# for backward compatibility: 1431ac_top_builddir=$ac_top_build_prefix 1432 1433case $srcdir in 1434 .) # We are building in place. 1435 ac_srcdir=. 1436 ac_top_srcdir=$ac_top_builddir_sub 1437 ac_abs_top_srcdir=$ac_pwd ;; 1438 [\\/]* | ?:[\\/]* ) # Absolute name. 1439 ac_srcdir=$srcdir$ac_dir_suffix; 1440 ac_top_srcdir=$srcdir 1441 ac_abs_top_srcdir=$srcdir ;; 1442 *) # Relative name. 1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1444 ac_top_srcdir=$ac_top_build_prefix$srcdir 1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1446esac 1447ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1448 1449 cd "$ac_dir" || { ac_status=$?; continue; } 1450 # Check for guested configure. 1451 if test -f "$ac_srcdir/configure.gnu"; then 1452 echo && 1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1454 elif test -f "$ac_srcdir/configure"; then 1455 echo && 1456 $SHELL "$ac_srcdir/configure" --help=recursive 1457 else 1458 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1459 fi || ac_status=$? 1460 cd "$ac_pwd" || { ac_status=$?; break; } 1461 done 1462fi 1463 1464test -n "$ac_init_help" && exit $ac_status 1465if $ac_init_version; then 1466 cat <<\_ACEOF 1467xfindproxy configure 1.0.3 1468generated by GNU Autoconf 2.68 1469 1470Copyright (C) 2010 Free Software Foundation, Inc. 1471This configure script is free software; the Free Software Foundation 1472gives unlimited permission to copy, distribute and modify it. 1473_ACEOF 1474 exit 1475fi 1476 1477## ------------------------ ## 1478## Autoconf initialization. ## 1479## ------------------------ ## 1480 1481# ac_fn_c_try_compile LINENO 1482# -------------------------- 1483# Try to compile conftest.$ac_ext, and return whether this succeeded. 1484ac_fn_c_try_compile () 1485{ 1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1487 rm -f conftest.$ac_objext 1488 if { { ac_try="$ac_compile" 1489case "(($ac_try" in 1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1491 *) ac_try_echo=$ac_try;; 1492esac 1493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1494$as_echo "$ac_try_echo"; } >&5 1495 (eval "$ac_compile") 2>conftest.err 1496 ac_status=$? 1497 if test -s conftest.err; then 1498 grep -v '^ *+' conftest.err >conftest.er1 1499 cat conftest.er1 >&5 1500 mv -f conftest.er1 conftest.err 1501 fi 1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1503 test $ac_status = 0; } && { 1504 test -z "$ac_c_werror_flag" || 1505 test ! -s conftest.err 1506 } && test -s conftest.$ac_objext; then : 1507 ac_retval=0 1508else 1509 $as_echo "$as_me: failed program was:" >&5 1510sed 's/^/| /' conftest.$ac_ext >&5 1511 1512 ac_retval=1 1513fi 1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1515 as_fn_set_status $ac_retval 1516 1517} # ac_fn_c_try_compile 1518 1519# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1520# --------------------------------------------- 1521# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1522# accordingly. 1523ac_fn_c_check_decl () 1524{ 1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1526 as_decl_name=`echo $2|sed 's/ *(.*//'` 1527 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1529$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1530if eval \${$3+:} false; then : 1531 $as_echo_n "(cached) " >&6 1532else 1533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1534/* end confdefs.h. */ 1535$4 1536int 1537main () 1538{ 1539#ifndef $as_decl_name 1540#ifdef __cplusplus 1541 (void) $as_decl_use; 1542#else 1543 (void) $as_decl_name; 1544#endif 1545#endif 1546 1547 ; 1548 return 0; 1549} 1550_ACEOF 1551if ac_fn_c_try_compile "$LINENO"; then : 1552 eval "$3=yes" 1553else 1554 eval "$3=no" 1555fi 1556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1557fi 1558eval ac_res=\$$3 1559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1560$as_echo "$ac_res" >&6; } 1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1562 1563} # ac_fn_c_check_decl 1564 1565# ac_fn_c_try_cpp LINENO 1566# ---------------------- 1567# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1568ac_fn_c_try_cpp () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 if { { ac_try="$ac_cpp conftest.$ac_ext" 1572case "(($ac_try" in 1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1574 *) ac_try_echo=$ac_try;; 1575esac 1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1577$as_echo "$ac_try_echo"; } >&5 1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1579 ac_status=$? 1580 if test -s conftest.err; then 1581 grep -v '^ *+' conftest.err >conftest.er1 1582 cat conftest.er1 >&5 1583 mv -f conftest.er1 conftest.err 1584 fi 1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1586 test $ac_status = 0; } > conftest.i && { 1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1588 test ! -s conftest.err 1589 }; then : 1590 ac_retval=0 1591else 1592 $as_echo "$as_me: failed program was:" >&5 1593sed 's/^/| /' conftest.$ac_ext >&5 1594 1595 ac_retval=1 1596fi 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1598 as_fn_set_status $ac_retval 1599 1600} # ac_fn_c_try_cpp 1601 1602# ac_fn_c_try_run LINENO 1603# ---------------------- 1604# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1605# that executables *can* be run. 1606ac_fn_c_try_run () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 if { { ac_try="$ac_link" 1610case "(($ac_try" in 1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1612 *) ac_try_echo=$ac_try;; 1613esac 1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1615$as_echo "$ac_try_echo"; } >&5 1616 (eval "$ac_link") 2>&5 1617 ac_status=$? 1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1619 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1620 { { case "(($ac_try" in 1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1622 *) ac_try_echo=$ac_try;; 1623esac 1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1625$as_echo "$ac_try_echo"; } >&5 1626 (eval "$ac_try") 2>&5 1627 ac_status=$? 1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629 test $ac_status = 0; }; }; then : 1630 ac_retval=0 1631else 1632 $as_echo "$as_me: program exited with status $ac_status" >&5 1633 $as_echo "$as_me: failed program was:" >&5 1634sed 's/^/| /' conftest.$ac_ext >&5 1635 1636 ac_retval=$ac_status 1637fi 1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 as_fn_set_status $ac_retval 1641 1642} # ac_fn_c_try_run 1643 1644# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1645# ------------------------------------------------------- 1646# Tests whether HEADER exists and can be compiled using the include files in 1647# INCLUDES, setting the cache variable VAR accordingly. 1648ac_fn_c_check_header_compile () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1652$as_echo_n "checking for $2... " >&6; } 1653if eval \${$3+:} false; then : 1654 $as_echo_n "(cached) " >&6 1655else 1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1657/* end confdefs.h. */ 1658$4 1659#include <$2> 1660_ACEOF 1661if ac_fn_c_try_compile "$LINENO"; then : 1662 eval "$3=yes" 1663else 1664 eval "$3=no" 1665fi 1666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1667fi 1668eval ac_res=\$$3 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1670$as_echo "$ac_res" >&6; } 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 1673} # ac_fn_c_check_header_compile 1674 1675# ac_fn_c_try_link LINENO 1676# ----------------------- 1677# Try to link conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_link () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 rm -f conftest.$ac_objext conftest$ac_exeext 1682 if { { ac_try="$ac_link" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_link") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { 1698 test -z "$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 } && test -s conftest$ac_exeext && { 1701 test "$cross_compiling" = yes || 1702 $as_test_x conftest$ac_exeext 1703 }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: failed program was:" >&5 1707sed 's/^/| /' conftest.$ac_ext >&5 1708 1709 ac_retval=1 1710fi 1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1713 # interfere with the next link command; also delete a directory that is 1714 # left behind by Apple's compiler. We do this before executing the actions. 1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 as_fn_set_status $ac_retval 1718 1719} # ac_fn_c_try_link 1720cat >config.log <<_ACEOF 1721This file contains any messages produced by compilers while 1722running configure, to aid debugging if configure makes a mistake. 1723 1724It was created by xfindproxy $as_me 1.0.3, which was 1725generated by GNU Autoconf 2.68. Invocation command line was 1726 1727 $ $0 $@ 1728 1729_ACEOF 1730exec 5>>config.log 1731{ 1732cat <<_ASUNAME 1733## --------- ## 1734## Platform. ## 1735## --------- ## 1736 1737hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1738uname -m = `(uname -m) 2>/dev/null || echo unknown` 1739uname -r = `(uname -r) 2>/dev/null || echo unknown` 1740uname -s = `(uname -s) 2>/dev/null || echo unknown` 1741uname -v = `(uname -v) 2>/dev/null || echo unknown` 1742 1743/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1744/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1745 1746/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1747/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1748/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1749/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1750/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1751/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1752/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1753 1754_ASUNAME 1755 1756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1757for as_dir in $PATH 1758do 1759 IFS=$as_save_IFS 1760 test -z "$as_dir" && as_dir=. 1761 $as_echo "PATH: $as_dir" 1762 done 1763IFS=$as_save_IFS 1764 1765} >&5 1766 1767cat >&5 <<_ACEOF 1768 1769 1770## ----------- ## 1771## Core tests. ## 1772## ----------- ## 1773 1774_ACEOF 1775 1776 1777# Keep a trace of the command line. 1778# Strip out --no-create and --no-recursion so they do not pile up. 1779# Strip out --silent because we don't want to record it for future runs. 1780# Also quote any args containing shell meta-characters. 1781# Make two passes to allow for proper duplicate-argument suppression. 1782ac_configure_args= 1783ac_configure_args0= 1784ac_configure_args1= 1785ac_must_keep_next=false 1786for ac_pass in 1 2 1787do 1788 for ac_arg 1789 do 1790 case $ac_arg in 1791 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1793 | -silent | --silent | --silen | --sile | --sil) 1794 continue ;; 1795 *\'*) 1796 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1797 esac 1798 case $ac_pass in 1799 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1800 2) 1801 as_fn_append ac_configure_args1 " '$ac_arg'" 1802 if test $ac_must_keep_next = true; then 1803 ac_must_keep_next=false # Got value, back to normal. 1804 else 1805 case $ac_arg in 1806 *=* | --config-cache | -C | -disable-* | --disable-* \ 1807 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1808 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1809 | -with-* | --with-* | -without-* | --without-* | --x) 1810 case "$ac_configure_args0 " in 1811 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1812 esac 1813 ;; 1814 -* ) ac_must_keep_next=true ;; 1815 esac 1816 fi 1817 as_fn_append ac_configure_args " '$ac_arg'" 1818 ;; 1819 esac 1820 done 1821done 1822{ ac_configure_args0=; unset ac_configure_args0;} 1823{ ac_configure_args1=; unset ac_configure_args1;} 1824 1825# When interrupted or exit'd, cleanup temporary files, and complete 1826# config.log. We remove comments because anyway the quotes in there 1827# would cause problems or look ugly. 1828# WARNING: Use '\'' to represent an apostrophe within the trap. 1829# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1830trap 'exit_status=$? 1831 # Save into config.log some information that might help in debugging. 1832 { 1833 echo 1834 1835 $as_echo "## ---------------- ## 1836## Cache variables. ## 1837## ---------------- ##" 1838 echo 1839 # The following way of writing the cache mishandles newlines in values, 1840( 1841 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1842 eval ac_val=\$$ac_var 1843 case $ac_val in #( 1844 *${as_nl}*) 1845 case $ac_var in #( 1846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1847$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1848 esac 1849 case $ac_var in #( 1850 _ | IFS | as_nl) ;; #( 1851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1852 *) { eval $ac_var=; unset $ac_var;} ;; 1853 esac ;; 1854 esac 1855 done 1856 (set) 2>&1 | 1857 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1858 *${as_nl}ac_space=\ *) 1859 sed -n \ 1860 "s/'\''/'\''\\\\'\'''\''/g; 1861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1862 ;; #( 1863 *) 1864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1865 ;; 1866 esac | 1867 sort 1868) 1869 echo 1870 1871 $as_echo "## ----------------- ## 1872## Output variables. ## 1873## ----------------- ##" 1874 echo 1875 for ac_var in $ac_subst_vars 1876 do 1877 eval ac_val=\$$ac_var 1878 case $ac_val in 1879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1880 esac 1881 $as_echo "$ac_var='\''$ac_val'\''" 1882 done | sort 1883 echo 1884 1885 if test -n "$ac_subst_files"; then 1886 $as_echo "## ------------------- ## 1887## File substitutions. ## 1888## ------------------- ##" 1889 echo 1890 for ac_var in $ac_subst_files 1891 do 1892 eval ac_val=\$$ac_var 1893 case $ac_val in 1894 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1895 esac 1896 $as_echo "$ac_var='\''$ac_val'\''" 1897 done | sort 1898 echo 1899 fi 1900 1901 if test -s confdefs.h; then 1902 $as_echo "## ----------- ## 1903## confdefs.h. ## 1904## ----------- ##" 1905 echo 1906 cat confdefs.h 1907 echo 1908 fi 1909 test "$ac_signal" != 0 && 1910 $as_echo "$as_me: caught signal $ac_signal" 1911 $as_echo "$as_me: exit $exit_status" 1912 } >&5 1913 rm -f core *.core core.conftest.* && 1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1915 exit $exit_status 1916' 0 1917for ac_signal in 1 2 13 15; do 1918 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1919done 1920ac_signal=0 1921 1922# confdefs.h avoids OS command line length limits that DEFS can exceed. 1923rm -f -r conftest* confdefs.h 1924 1925$as_echo "/* confdefs.h */" > confdefs.h 1926 1927# Predefined preprocessor variables. 1928 1929cat >>confdefs.h <<_ACEOF 1930#define PACKAGE_NAME "$PACKAGE_NAME" 1931_ACEOF 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1935_ACEOF 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_VERSION "$PACKAGE_VERSION" 1939_ACEOF 1940 1941cat >>confdefs.h <<_ACEOF 1942#define PACKAGE_STRING "$PACKAGE_STRING" 1943_ACEOF 1944 1945cat >>confdefs.h <<_ACEOF 1946#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1947_ACEOF 1948 1949cat >>confdefs.h <<_ACEOF 1950#define PACKAGE_URL "$PACKAGE_URL" 1951_ACEOF 1952 1953 1954# Let the site file select an alternate cache file if it wants to. 1955# Prefer an explicitly selected file to automatically selected ones. 1956ac_site_file1=NONE 1957ac_site_file2=NONE 1958if test -n "$CONFIG_SITE"; then 1959 # We do not want a PATH search for config.site. 1960 case $CONFIG_SITE in #(( 1961 -*) ac_site_file1=./$CONFIG_SITE;; 1962 */*) ac_site_file1=$CONFIG_SITE;; 1963 *) ac_site_file1=./$CONFIG_SITE;; 1964 esac 1965elif test "x$prefix" != xNONE; then 1966 ac_site_file1=$prefix/share/config.site 1967 ac_site_file2=$prefix/etc/config.site 1968else 1969 ac_site_file1=$ac_default_prefix/share/config.site 1970 ac_site_file2=$ac_default_prefix/etc/config.site 1971fi 1972for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1973do 1974 test "x$ac_site_file" = xNONE && continue 1975 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1977$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1978 sed 's/^/| /' "$ac_site_file" >&5 1979 . "$ac_site_file" \ 1980 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1982as_fn_error $? "failed to load site script $ac_site_file 1983See \`config.log' for more details" "$LINENO" 5; } 1984 fi 1985done 1986 1987if test -r "$cache_file"; then 1988 # Some versions of bash will fail to source /dev/null (special files 1989 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1990 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1992$as_echo "$as_me: loading cache $cache_file" >&6;} 1993 case $cache_file in 1994 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1995 *) . "./$cache_file";; 1996 esac 1997 fi 1998else 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2000$as_echo "$as_me: creating cache $cache_file" >&6;} 2001 >$cache_file 2002fi 2003 2004# Check that the precious variables saved in the cache have kept the same 2005# value. 2006ac_cache_corrupted=false 2007for ac_var in $ac_precious_vars; do 2008 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2009 eval ac_new_set=\$ac_env_${ac_var}_set 2010 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2011 eval ac_new_val=\$ac_env_${ac_var}_value 2012 case $ac_old_set,$ac_new_set in 2013 set,) 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2015$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2016 ac_cache_corrupted=: ;; 2017 ,set) 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2019$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2020 ac_cache_corrupted=: ;; 2021 ,);; 2022 *) 2023 if test "x$ac_old_val" != "x$ac_new_val"; then 2024 # differences in whitespace do not lead to failure. 2025 ac_old_val_w=`echo x $ac_old_val` 2026 ac_new_val_w=`echo x $ac_new_val` 2027 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2029$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2030 ac_cache_corrupted=: 2031 else 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2033$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2034 eval $ac_var=\$ac_old_val 2035 fi 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2037$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2039$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2040 fi;; 2041 esac 2042 # Pass precious variables to config.status. 2043 if test "$ac_new_set" = set; then 2044 case $ac_new_val in 2045 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2046 *) ac_arg=$ac_var=$ac_new_val ;; 2047 esac 2048 case " $ac_configure_args " in 2049 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2050 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2051 esac 2052 fi 2053done 2054if $ac_cache_corrupted; then 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2058$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2059 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2060fi 2061## -------------------- ## 2062## Main body of script. ## 2063## -------------------- ## 2064 2065ac_ext=c 2066ac_cpp='$CPP $CPPFLAGS' 2067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2069ac_compiler_gnu=$ac_cv_c_compiler_gnu 2070 2071 2072 2073ac_config_headers="$ac_config_headers config.h" 2074 2075 2076# Initialize Automake 2077am__api_version='1.14' 2078 2079ac_aux_dir= 2080for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2081 if test -f "$ac_dir/install-sh"; then 2082 ac_aux_dir=$ac_dir 2083 ac_install_sh="$ac_aux_dir/install-sh -c" 2084 break 2085 elif test -f "$ac_dir/install.sh"; then 2086 ac_aux_dir=$ac_dir 2087 ac_install_sh="$ac_aux_dir/install.sh -c" 2088 break 2089 elif test -f "$ac_dir/shtool"; then 2090 ac_aux_dir=$ac_dir 2091 ac_install_sh="$ac_aux_dir/shtool install -c" 2092 break 2093 fi 2094done 2095if test -z "$ac_aux_dir"; then 2096 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2097fi 2098 2099# These three variables are undocumented and unsupported, 2100# and are intended to be withdrawn in a future Autoconf release. 2101# They can cause serious problems if a builder's source tree is in a directory 2102# whose full name contains unusual characters. 2103ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2104ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2105ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2106 2107 2108# Find a good install program. We prefer a C program (faster), 2109# so one script is as good as another. But avoid the broken or 2110# incompatible versions: 2111# SysV /etc/install, /usr/sbin/install 2112# SunOS /usr/etc/install 2113# IRIX /sbin/install 2114# AIX /bin/install 2115# AmigaOS /C/install, which installs bootblocks on floppy discs 2116# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2117# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2118# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2119# OS/2's system install, which has a completely different semantic 2120# ./install, which can be erroneously created by make from ./install.sh. 2121# Reject install programs that cannot install multiple files. 2122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2123$as_echo_n "checking for a BSD-compatible install... " >&6; } 2124if test -z "$INSTALL"; then 2125if ${ac_cv_path_install+:} false; then : 2126 $as_echo_n "(cached) " >&6 2127else 2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2129for as_dir in $PATH 2130do 2131 IFS=$as_save_IFS 2132 test -z "$as_dir" && as_dir=. 2133 # Account for people who put trailing slashes in PATH elements. 2134case $as_dir/ in #(( 2135 ./ | .// | /[cC]/* | \ 2136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2137 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2138 /usr/ucb/* ) ;; 2139 *) 2140 # OSF1 and SCO ODT 3.0 have their own names for install. 2141 # Don't use installbsd from OSF since it installs stuff as root 2142 # by default. 2143 for ac_prog in ginstall scoinst install; do 2144 for ac_exec_ext in '' $ac_executable_extensions; do 2145 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2146 if test $ac_prog = install && 2147 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2148 # AIX install. It has an incompatible calling convention. 2149 : 2150 elif test $ac_prog = install && 2151 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2152 # program-specific install script used by HP pwplus--don't use. 2153 : 2154 else 2155 rm -rf conftest.one conftest.two conftest.dir 2156 echo one > conftest.one 2157 echo two > conftest.two 2158 mkdir conftest.dir 2159 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2160 test -s conftest.one && test -s conftest.two && 2161 test -s conftest.dir/conftest.one && 2162 test -s conftest.dir/conftest.two 2163 then 2164 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2165 break 3 2166 fi 2167 fi 2168 fi 2169 done 2170 done 2171 ;; 2172esac 2173 2174 done 2175IFS=$as_save_IFS 2176 2177rm -rf conftest.one conftest.two conftest.dir 2178 2179fi 2180 if test "${ac_cv_path_install+set}" = set; then 2181 INSTALL=$ac_cv_path_install 2182 else 2183 # As a last resort, use the slow shell script. Don't cache a 2184 # value for INSTALL within a source directory, because that will 2185 # break other packages using the cache if that directory is 2186 # removed, or if the value is a relative name. 2187 INSTALL=$ac_install_sh 2188 fi 2189fi 2190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2191$as_echo "$INSTALL" >&6; } 2192 2193# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2194# It thinks the first close brace ends the variable substitution. 2195test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2196 2197test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2198 2199test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2200 2201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2202$as_echo_n "checking whether build environment is sane... " >&6; } 2203# Reject unsafe characters in $srcdir or the absolute working directory 2204# name. Accept space and tab only in the latter. 2205am_lf=' 2206' 2207case `pwd` in 2208 *[\\\"\#\$\&\'\`$am_lf]*) 2209 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2210esac 2211case $srcdir in 2212 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2213 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2214esac 2215 2216# Do 'set' in a subshell so we don't clobber the current shell's 2217# arguments. Must try -L first in case configure is actually a 2218# symlink; some systems play weird games with the mod time of symlinks 2219# (eg FreeBSD returns the mod time of the symlink's containing 2220# directory). 2221if ( 2222 am_has_slept=no 2223 for am_try in 1 2; do 2224 echo "timestamp, slept: $am_has_slept" > conftest.file 2225 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2226 if test "$*" = "X"; then 2227 # -L didn't work. 2228 set X `ls -t "$srcdir/configure" conftest.file` 2229 fi 2230 if test "$*" != "X $srcdir/configure conftest.file" \ 2231 && test "$*" != "X conftest.file $srcdir/configure"; then 2232 2233 # If neither matched, then we have a broken ls. This can happen 2234 # if, for instance, CONFIG_SHELL is bash and it inherits a 2235 # broken ls alias from the environment. This has actually 2236 # happened. Such a system could not be considered "sane". 2237 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2238 alias in your environment" "$LINENO" 5 2239 fi 2240 if test "$2" = conftest.file || test $am_try -eq 2; then 2241 break 2242 fi 2243 # Just in case. 2244 sleep 1 2245 am_has_slept=yes 2246 done 2247 test "$2" = conftest.file 2248 ) 2249then 2250 # Ok. 2251 : 2252else 2253 as_fn_error $? "newly created file is older than distributed files! 2254Check your system clock" "$LINENO" 5 2255fi 2256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2257$as_echo "yes" >&6; } 2258# If we didn't sleep, we still need to ensure time stamps of config.status and 2259# generated files are strictly newer. 2260am_sleep_pid= 2261if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2262 ( sleep 1 ) & 2263 am_sleep_pid=$! 2264fi 2265 2266rm -f conftest.file 2267 2268test "$program_prefix" != NONE && 2269 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2270# Use a double $ so make ignores it. 2271test "$program_suffix" != NONE && 2272 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2273# Double any \ or $. 2274# By default was `s,x,x', remove it if useless. 2275ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2276program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2277 2278# expand $ac_aux_dir to an absolute path 2279am_aux_dir=`cd $ac_aux_dir && pwd` 2280 2281if test x"${MISSING+set}" != xset; then 2282 case $am_aux_dir in 2283 *\ * | *\ *) 2284 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2285 *) 2286 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2287 esac 2288fi 2289# Use eval to expand $SHELL 2290if eval "$MISSING --is-lightweight"; then 2291 am_missing_run="$MISSING " 2292else 2293 am_missing_run= 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2295$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2296fi 2297 2298if test x"${install_sh}" != xset; then 2299 case $am_aux_dir in 2300 *\ * | *\ *) 2301 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2302 *) 2303 install_sh="\${SHELL} $am_aux_dir/install-sh" 2304 esac 2305fi 2306 2307# Installed binaries are usually stripped using 'strip' when the user 2308# run "make install-strip". However 'strip' might not be the right 2309# tool to use in cross-compilation environments, therefore Automake 2310# will honor the 'STRIP' environment variable to overrule this program. 2311if test "$cross_compiling" != no; then 2312 if test -n "$ac_tool_prefix"; then 2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2314set dummy ${ac_tool_prefix}strip; ac_word=$2 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2316$as_echo_n "checking for $ac_word... " >&6; } 2317if ${ac_cv_prog_STRIP+:} false; then : 2318 $as_echo_n "(cached) " >&6 2319else 2320 if test -n "$STRIP"; then 2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2322else 2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2324for as_dir in $PATH 2325do 2326 IFS=$as_save_IFS 2327 test -z "$as_dir" && as_dir=. 2328 for ac_exec_ext in '' $ac_executable_extensions; do 2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2330 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2332 break 2 2333 fi 2334done 2335 done 2336IFS=$as_save_IFS 2337 2338fi 2339fi 2340STRIP=$ac_cv_prog_STRIP 2341if test -n "$STRIP"; then 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2343$as_echo "$STRIP" >&6; } 2344else 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2346$as_echo "no" >&6; } 2347fi 2348 2349 2350fi 2351if test -z "$ac_cv_prog_STRIP"; then 2352 ac_ct_STRIP=$STRIP 2353 # Extract the first word of "strip", so it can be a program name with args. 2354set dummy strip; ac_word=$2 2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2356$as_echo_n "checking for $ac_word... " >&6; } 2357if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2358 $as_echo_n "(cached) " >&6 2359else 2360 if test -n "$ac_ct_STRIP"; then 2361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2362else 2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2364for as_dir in $PATH 2365do 2366 IFS=$as_save_IFS 2367 test -z "$as_dir" && as_dir=. 2368 for ac_exec_ext in '' $ac_executable_extensions; do 2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2370 ac_cv_prog_ac_ct_STRIP="strip" 2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2372 break 2 2373 fi 2374done 2375 done 2376IFS=$as_save_IFS 2377 2378fi 2379fi 2380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2381if test -n "$ac_ct_STRIP"; then 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2383$as_echo "$ac_ct_STRIP" >&6; } 2384else 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2386$as_echo "no" >&6; } 2387fi 2388 2389 if test "x$ac_ct_STRIP" = x; then 2390 STRIP=":" 2391 else 2392 case $cross_compiling:$ac_tool_warned in 2393yes:) 2394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2396ac_tool_warned=yes ;; 2397esac 2398 STRIP=$ac_ct_STRIP 2399 fi 2400else 2401 STRIP="$ac_cv_prog_STRIP" 2402fi 2403 2404fi 2405INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2406 2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2408$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2409if test -z "$MKDIR_P"; then 2410 if ${ac_cv_path_mkdir+:} false; then : 2411 $as_echo_n "(cached) " >&6 2412else 2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2414for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2415do 2416 IFS=$as_save_IFS 2417 test -z "$as_dir" && as_dir=. 2418 for ac_prog in mkdir gmkdir; do 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2421 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2422 'mkdir (GNU coreutils) '* | \ 2423 'mkdir (coreutils) '* | \ 2424 'mkdir (fileutils) '4.1*) 2425 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2426 break 3;; 2427 esac 2428 done 2429 done 2430 done 2431IFS=$as_save_IFS 2432 2433fi 2434 2435 test -d ./--version && rmdir ./--version 2436 if test "${ac_cv_path_mkdir+set}" = set; then 2437 MKDIR_P="$ac_cv_path_mkdir -p" 2438 else 2439 # As a last resort, use the slow shell script. Don't cache a 2440 # value for MKDIR_P within a source directory, because that will 2441 # break other packages using the cache if that directory is 2442 # removed, or if the value is a relative name. 2443 MKDIR_P="$ac_install_sh -d" 2444 fi 2445fi 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2447$as_echo "$MKDIR_P" >&6; } 2448 2449for ac_prog in gawk mawk nawk awk 2450do 2451 # Extract the first word of "$ac_prog", so it can be a program name with args. 2452set dummy $ac_prog; ac_word=$2 2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2454$as_echo_n "checking for $ac_word... " >&6; } 2455if ${ac_cv_prog_AWK+:} false; then : 2456 $as_echo_n "(cached) " >&6 2457else 2458 if test -n "$AWK"; then 2459 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2460else 2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2462for as_dir in $PATH 2463do 2464 IFS=$as_save_IFS 2465 test -z "$as_dir" && as_dir=. 2466 for ac_exec_ext in '' $ac_executable_extensions; do 2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2468 ac_cv_prog_AWK="$ac_prog" 2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2470 break 2 2471 fi 2472done 2473 done 2474IFS=$as_save_IFS 2475 2476fi 2477fi 2478AWK=$ac_cv_prog_AWK 2479if test -n "$AWK"; then 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2481$as_echo "$AWK" >&6; } 2482else 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2484$as_echo "no" >&6; } 2485fi 2486 2487 2488 test -n "$AWK" && break 2489done 2490 2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2492$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2493set x ${MAKE-make} 2494ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2495if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2496 $as_echo_n "(cached) " >&6 2497else 2498 cat >conftest.make <<\_ACEOF 2499SHELL = /bin/sh 2500all: 2501 @echo '@@@%%%=$(MAKE)=@@@%%%' 2502_ACEOF 2503# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2504case `${MAKE-make} -f conftest.make 2>/dev/null` in 2505 *@@@%%%=?*=@@@%%%*) 2506 eval ac_cv_prog_make_${ac_make}_set=yes;; 2507 *) 2508 eval ac_cv_prog_make_${ac_make}_set=no;; 2509esac 2510rm -f conftest.make 2511fi 2512if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2514$as_echo "yes" >&6; } 2515 SET_MAKE= 2516else 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2518$as_echo "no" >&6; } 2519 SET_MAKE="MAKE=${MAKE-make}" 2520fi 2521 2522rm -rf .tst 2>/dev/null 2523mkdir .tst 2>/dev/null 2524if test -d .tst; then 2525 am__leading_dot=. 2526else 2527 am__leading_dot=_ 2528fi 2529rmdir .tst 2>/dev/null 2530 2531# Check whether --enable-silent-rules was given. 2532if test "${enable_silent_rules+set}" = set; then : 2533 enableval=$enable_silent_rules; 2534fi 2535 2536case $enable_silent_rules in # ((( 2537 yes) AM_DEFAULT_VERBOSITY=0;; 2538 no) AM_DEFAULT_VERBOSITY=1;; 2539 *) AM_DEFAULT_VERBOSITY=1;; 2540esac 2541am_make=${MAKE-make} 2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2543$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2544if ${am_cv_make_support_nested_variables+:} false; then : 2545 $as_echo_n "(cached) " >&6 2546else 2547 if $as_echo 'TRUE=$(BAR$(V)) 2548BAR0=false 2549BAR1=true 2550V=1 2551am__doit: 2552 @$(TRUE) 2553.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2554 am_cv_make_support_nested_variables=yes 2555else 2556 am_cv_make_support_nested_variables=no 2557fi 2558fi 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2560$as_echo "$am_cv_make_support_nested_variables" >&6; } 2561if test $am_cv_make_support_nested_variables = yes; then 2562 AM_V='$(V)' 2563 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2564else 2565 AM_V=$AM_DEFAULT_VERBOSITY 2566 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2567fi 2568AM_BACKSLASH='\' 2569 2570if test "`cd $srcdir && pwd`" != "`pwd`"; then 2571 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2572 # is not polluted with repeated "-I." 2573 am__isrc=' -I$(srcdir)' 2574 # test to see if srcdir already configured 2575 if test -f $srcdir/config.status; then 2576 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2577 fi 2578fi 2579 2580# test whether we have cygpath 2581if test -z "$CYGPATH_W"; then 2582 if (cygpath --version) >/dev/null 2>/dev/null; then 2583 CYGPATH_W='cygpath -w' 2584 else 2585 CYGPATH_W=echo 2586 fi 2587fi 2588 2589 2590# Define the identity of the package. 2591 PACKAGE='xfindproxy' 2592 VERSION='1.0.3' 2593 2594 2595cat >>confdefs.h <<_ACEOF 2596#define PACKAGE "$PACKAGE" 2597_ACEOF 2598 2599 2600cat >>confdefs.h <<_ACEOF 2601#define VERSION "$VERSION" 2602_ACEOF 2603 2604# Some tools Automake needs. 2605 2606ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2607 2608 2609AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2610 2611 2612AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2613 2614 2615AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2616 2617 2618MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2619 2620# For better backward compatibility. To be removed once Automake 1.9.x 2621# dies out for good. For more background, see: 2622# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2623# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2624mkdir_p='$(MKDIR_P)' 2625 2626# We need awk for the "check" target. The system "awk" is bad on 2627# some platforms. 2628# Always define AMTAR for backward compatibility. Yes, it's still used 2629# in the wild :-( We should find a proper way to deprecate it ... 2630AMTAR='$${TAR-tar}' 2631 2632 2633# We'll loop over all known methods to create a tar archive until one works. 2634_am_tools='gnutar pax cpio none' 2635 2636am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2637 2638 2639 2640 2641 2642 2643# POSIX will say in a future version that running "rm -f" with no argument 2644# is OK; and we want to be able to make that assumption in our Makefile 2645# recipes. So use an aggressive probe to check that the usage we want is 2646# actually supported "in the wild" to an acceptable degree. 2647# See automake bug#10828. 2648# To make any issue more visible, cause the running configure to be aborted 2649# by default if the 'rm' program in use doesn't match our expectations; the 2650# user can still override this though. 2651if rm -f && rm -fr && rm -rf; then : OK; else 2652 cat >&2 <<'END' 2653Oops! 2654 2655Your 'rm' program seems unable to run without file operands specified 2656on the command line, even when the '-f' option is present. This is contrary 2657to the behaviour of most rm programs out there, and not conforming with 2658the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2659 2660Please tell bug-automake@gnu.org about your system, including the value 2661of your $PATH and any error possibly output before this message. This 2662can help us improve future automake versions. 2663 2664END 2665 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2666 echo 'Configuration will proceed anyway, since you have set the' >&2 2667 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2668 echo >&2 2669 else 2670 cat >&2 <<'END' 2671Aborting the configuration process, to ensure you take notice of the issue. 2672 2673You can download and install GNU coreutils to get an 'rm' implementation 2674that behaves properly: <http://www.gnu.org/software/coreutils/>. 2675 2676If you want to complete the configuration process using your problematic 2677'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2678to "yes", and re-run configure. 2679 2680END 2681 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2682 fi 2683fi 2684 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2686$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2687 # Check whether --enable-maintainer-mode was given. 2688if test "${enable_maintainer_mode+set}" = set; then : 2689 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2690else 2691 USE_MAINTAINER_MODE=no 2692fi 2693 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2695$as_echo "$USE_MAINTAINER_MODE" >&6; } 2696 if test $USE_MAINTAINER_MODE = yes; then 2697 MAINTAINER_MODE_TRUE= 2698 MAINTAINER_MODE_FALSE='#' 2699else 2700 MAINTAINER_MODE_TRUE='#' 2701 MAINTAINER_MODE_FALSE= 2702fi 2703 2704 MAINT=$MAINTAINER_MODE_TRUE 2705 2706 2707 2708# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720DEPDIR="${am__leading_dot}deps" 2721 2722ac_config_commands="$ac_config_commands depfiles" 2723 2724 2725am_make=${MAKE-make} 2726cat > confinc << 'END' 2727am__doit: 2728 @echo this is the am__doit target 2729.PHONY: am__doit 2730END 2731# If we don't find an include directive, just comment out the code. 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2733$as_echo_n "checking for style of include used by $am_make... " >&6; } 2734am__include="#" 2735am__quote= 2736_am_result=none 2737# First try GNU make style include. 2738echo "include confinc" > confmf 2739# Ignore all kinds of additional output from 'make'. 2740case `$am_make -s -f confmf 2> /dev/null` in #( 2741*the\ am__doit\ target*) 2742 am__include=include 2743 am__quote= 2744 _am_result=GNU 2745 ;; 2746esac 2747# Now try BSD make style include. 2748if test "$am__include" = "#"; then 2749 echo '.include "confinc"' > confmf 2750 case `$am_make -s -f confmf 2> /dev/null` in #( 2751 *the\ am__doit\ target*) 2752 am__include=.include 2753 am__quote="\"" 2754 _am_result=BSD 2755 ;; 2756 esac 2757fi 2758 2759 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2761$as_echo "$_am_result" >&6; } 2762rm -f confinc confmf 2763 2764# Check whether --enable-dependency-tracking was given. 2765if test "${enable_dependency_tracking+set}" = set; then : 2766 enableval=$enable_dependency_tracking; 2767fi 2768 2769if test "x$enable_dependency_tracking" != xno; then 2770 am_depcomp="$ac_aux_dir/depcomp" 2771 AMDEPBACKSLASH='\' 2772 am__nodep='_no' 2773fi 2774 if test "x$enable_dependency_tracking" != xno; then 2775 AMDEP_TRUE= 2776 AMDEP_FALSE='#' 2777else 2778 AMDEP_TRUE='#' 2779 AMDEP_FALSE= 2780fi 2781 2782 2783ac_ext=c 2784ac_cpp='$CPP $CPPFLAGS' 2785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2787ac_compiler_gnu=$ac_cv_c_compiler_gnu 2788if test -n "$ac_tool_prefix"; then 2789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2790set dummy ${ac_tool_prefix}gcc; ac_word=$2 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2792$as_echo_n "checking for $ac_word... " >&6; } 2793if ${ac_cv_prog_CC+:} false; then : 2794 $as_echo_n "(cached) " >&6 2795else 2796 if test -n "$CC"; then 2797 ac_cv_prog_CC="$CC" # Let the user override the test. 2798else 2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2800for as_dir in $PATH 2801do 2802 IFS=$as_save_IFS 2803 test -z "$as_dir" && as_dir=. 2804 for ac_exec_ext in '' $ac_executable_extensions; do 2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2806 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2808 break 2 2809 fi 2810done 2811 done 2812IFS=$as_save_IFS 2813 2814fi 2815fi 2816CC=$ac_cv_prog_CC 2817if test -n "$CC"; then 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2819$as_echo "$CC" >&6; } 2820else 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2822$as_echo "no" >&6; } 2823fi 2824 2825 2826fi 2827if test -z "$ac_cv_prog_CC"; then 2828 ac_ct_CC=$CC 2829 # Extract the first word of "gcc", so it can be a program name with args. 2830set dummy gcc; ac_word=$2 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2832$as_echo_n "checking for $ac_word... " >&6; } 2833if ${ac_cv_prog_ac_ct_CC+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 if test -n "$ac_ct_CC"; then 2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2838else 2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2840for as_dir in $PATH 2841do 2842 IFS=$as_save_IFS 2843 test -z "$as_dir" && as_dir=. 2844 for ac_exec_ext in '' $ac_executable_extensions; do 2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2846 ac_cv_prog_ac_ct_CC="gcc" 2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2848 break 2 2849 fi 2850done 2851 done 2852IFS=$as_save_IFS 2853 2854fi 2855fi 2856ac_ct_CC=$ac_cv_prog_ac_ct_CC 2857if test -n "$ac_ct_CC"; then 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2859$as_echo "$ac_ct_CC" >&6; } 2860else 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2862$as_echo "no" >&6; } 2863fi 2864 2865 if test "x$ac_ct_CC" = x; then 2866 CC="" 2867 else 2868 case $cross_compiling:$ac_tool_warned in 2869yes:) 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2872ac_tool_warned=yes ;; 2873esac 2874 CC=$ac_ct_CC 2875 fi 2876else 2877 CC="$ac_cv_prog_CC" 2878fi 2879 2880if test -z "$CC"; then 2881 if test -n "$ac_tool_prefix"; then 2882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2883set dummy ${ac_tool_prefix}cc; ac_word=$2 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2885$as_echo_n "checking for $ac_word... " >&6; } 2886if ${ac_cv_prog_CC+:} false; then : 2887 $as_echo_n "(cached) " >&6 2888else 2889 if test -n "$CC"; then 2890 ac_cv_prog_CC="$CC" # Let the user override the test. 2891else 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 test -z "$as_dir" && as_dir=. 2897 for ac_exec_ext in '' $ac_executable_extensions; do 2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2899 ac_cv_prog_CC="${ac_tool_prefix}cc" 2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2901 break 2 2902 fi 2903done 2904 done 2905IFS=$as_save_IFS 2906 2907fi 2908fi 2909CC=$ac_cv_prog_CC 2910if test -n "$CC"; then 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2912$as_echo "$CC" >&6; } 2913else 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2915$as_echo "no" >&6; } 2916fi 2917 2918 2919 fi 2920fi 2921if test -z "$CC"; then 2922 # Extract the first word of "cc", so it can be a program name with args. 2923set dummy cc; ac_word=$2 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2925$as_echo_n "checking for $ac_word... " >&6; } 2926if ${ac_cv_prog_CC+:} false; then : 2927 $as_echo_n "(cached) " >&6 2928else 2929 if test -n "$CC"; then 2930 ac_cv_prog_CC="$CC" # Let the user override the test. 2931else 2932 ac_prog_rejected=no 2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH 2935do 2936 IFS=$as_save_IFS 2937 test -z "$as_dir" && as_dir=. 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2941 ac_prog_rejected=yes 2942 continue 2943 fi 2944 ac_cv_prog_CC="cc" 2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948done 2949 done 2950IFS=$as_save_IFS 2951 2952if test $ac_prog_rejected = yes; then 2953 # We found a bogon in the path, so make sure we never use it. 2954 set dummy $ac_cv_prog_CC 2955 shift 2956 if test $# != 0; then 2957 # We chose a different compiler from the bogus one. 2958 # However, it has the same basename, so the bogon will be chosen 2959 # first if we set CC to just the basename; use the full file name. 2960 shift 2961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2962 fi 2963fi 2964fi 2965fi 2966CC=$ac_cv_prog_CC 2967if test -n "$CC"; then 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2969$as_echo "$CC" >&6; } 2970else 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2972$as_echo "no" >&6; } 2973fi 2974 2975 2976fi 2977if test -z "$CC"; then 2978 if test -n "$ac_tool_prefix"; then 2979 for ac_prog in cl.exe 2980 do 2981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2982set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2984$as_echo_n "checking for $ac_word... " >&6; } 2985if ${ac_cv_prog_CC+:} false; then : 2986 $as_echo_n "(cached) " >&6 2987else 2988 if test -n "$CC"; then 2989 ac_cv_prog_CC="$CC" # Let the user override the test. 2990else 2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2992for as_dir in $PATH 2993do 2994 IFS=$as_save_IFS 2995 test -z "$as_dir" && as_dir=. 2996 for ac_exec_ext in '' $ac_executable_extensions; do 2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3000 break 2 3001 fi 3002done 3003 done 3004IFS=$as_save_IFS 3005 3006fi 3007fi 3008CC=$ac_cv_prog_CC 3009if test -n "$CC"; then 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3011$as_echo "$CC" >&6; } 3012else 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3014$as_echo "no" >&6; } 3015fi 3016 3017 3018 test -n "$CC" && break 3019 done 3020fi 3021if test -z "$CC"; then 3022 ac_ct_CC=$CC 3023 for ac_prog in cl.exe 3024do 3025 # Extract the first word of "$ac_prog", so it can be a program name with args. 3026set dummy $ac_prog; ac_word=$2 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3028$as_echo_n "checking for $ac_word... " >&6; } 3029if ${ac_cv_prog_ac_ct_CC+:} false; then : 3030 $as_echo_n "(cached) " >&6 3031else 3032 if test -n "$ac_ct_CC"; then 3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3034else 3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3036for as_dir in $PATH 3037do 3038 IFS=$as_save_IFS 3039 test -z "$as_dir" && as_dir=. 3040 for ac_exec_ext in '' $ac_executable_extensions; do 3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3042 ac_cv_prog_ac_ct_CC="$ac_prog" 3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3044 break 2 3045 fi 3046done 3047 done 3048IFS=$as_save_IFS 3049 3050fi 3051fi 3052ac_ct_CC=$ac_cv_prog_ac_ct_CC 3053if test -n "$ac_ct_CC"; then 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3055$as_echo "$ac_ct_CC" >&6; } 3056else 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3058$as_echo "no" >&6; } 3059fi 3060 3061 3062 test -n "$ac_ct_CC" && break 3063done 3064 3065 if test "x$ac_ct_CC" = x; then 3066 CC="" 3067 else 3068 case $cross_compiling:$ac_tool_warned in 3069yes:) 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3072ac_tool_warned=yes ;; 3073esac 3074 CC=$ac_ct_CC 3075 fi 3076fi 3077 3078fi 3079 3080 3081test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3083as_fn_error $? "no acceptable C compiler found in \$PATH 3084See \`config.log' for more details" "$LINENO" 5; } 3085 3086# Provide some information about the compiler. 3087$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3088set X $ac_compile 3089ac_compiler=$2 3090for ac_option in --version -v -V -qversion; do 3091 { { ac_try="$ac_compiler $ac_option >&5" 3092case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3097$as_echo "$ac_try_echo"; } >&5 3098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3099 ac_status=$? 3100 if test -s conftest.err; then 3101 sed '10a\ 3102... rest of stderr output deleted ... 3103 10q' conftest.err >conftest.er1 3104 cat conftest.er1 >&5 3105 fi 3106 rm -f conftest.er1 conftest.err 3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3108 test $ac_status = 0; } 3109done 3110 3111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3112/* end confdefs.h. */ 3113 3114int 3115main () 3116{ 3117 3118 ; 3119 return 0; 3120} 3121_ACEOF 3122ac_clean_files_save=$ac_clean_files 3123ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3124# Try to create an executable without -o first, disregard a.out. 3125# It will help us diagnose broken compilers, and finding out an intuition 3126# of exeext. 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3128$as_echo_n "checking whether the C compiler works... " >&6; } 3129ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3130 3131# The possible output files: 3132ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3133 3134ac_rmfiles= 3135for ac_file in $ac_files 3136do 3137 case $ac_file in 3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3139 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3140 esac 3141done 3142rm -f $ac_rmfiles 3143 3144if { { ac_try="$ac_link_default" 3145case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148esac 3149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3150$as_echo "$ac_try_echo"; } >&5 3151 (eval "$ac_link_default") 2>&5 3152 ac_status=$? 3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3154 test $ac_status = 0; }; then : 3155 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3156# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3157# in a Makefile. We should not override ac_cv_exeext if it was cached, 3158# so that the user can short-circuit this test for compilers unknown to 3159# Autoconf. 3160for ac_file in $ac_files '' 3161do 3162 test -f "$ac_file" || continue 3163 case $ac_file in 3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3165 ;; 3166 [ab].out ) 3167 # We found the default executable, but exeext='' is most 3168 # certainly right. 3169 break;; 3170 *.* ) 3171 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3172 then :; else 3173 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3174 fi 3175 # We set ac_cv_exeext here because the later test for it is not 3176 # safe: cross compilers may not add the suffix if given an `-o' 3177 # argument, so we may need to know it at that point already. 3178 # Even if this section looks crufty: it has the advantage of 3179 # actually working. 3180 break;; 3181 * ) 3182 break;; 3183 esac 3184done 3185test "$ac_cv_exeext" = no && ac_cv_exeext= 3186 3187else 3188 ac_file='' 3189fi 3190if test -z "$ac_file"; then : 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3192$as_echo "no" >&6; } 3193$as_echo "$as_me: failed program was:" >&5 3194sed 's/^/| /' conftest.$ac_ext >&5 3195 3196{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3198as_fn_error 77 "C compiler cannot create executables 3199See \`config.log' for more details" "$LINENO" 5; } 3200else 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3202$as_echo "yes" >&6; } 3203fi 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3205$as_echo_n "checking for C compiler default output file name... " >&6; } 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3207$as_echo "$ac_file" >&6; } 3208ac_exeext=$ac_cv_exeext 3209 3210rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3211ac_clean_files=$ac_clean_files_save 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3213$as_echo_n "checking for suffix of executables... " >&6; } 3214if { { ac_try="$ac_link" 3215case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3220$as_echo "$ac_try_echo"; } >&5 3221 (eval "$ac_link") 2>&5 3222 ac_status=$? 3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3224 test $ac_status = 0; }; then : 3225 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3226# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3227# work properly (i.e., refer to `conftest.exe'), while it won't with 3228# `rm'. 3229for ac_file in conftest.exe conftest conftest.*; do 3230 test -f "$ac_file" || continue 3231 case $ac_file in 3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3234 break;; 3235 * ) break;; 3236 esac 3237done 3238else 3239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3241as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3242See \`config.log' for more details" "$LINENO" 5; } 3243fi 3244rm -f conftest conftest$ac_cv_exeext 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3246$as_echo "$ac_cv_exeext" >&6; } 3247 3248rm -f conftest.$ac_ext 3249EXEEXT=$ac_cv_exeext 3250ac_exeext=$EXEEXT 3251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3252/* end confdefs.h. */ 3253#include <stdio.h> 3254int 3255main () 3256{ 3257FILE *f = fopen ("conftest.out", "w"); 3258 return ferror (f) || fclose (f) != 0; 3259 3260 ; 3261 return 0; 3262} 3263_ACEOF 3264ac_clean_files="$ac_clean_files conftest.out" 3265# Check that the compiler produces executables we can run. If not, either 3266# the compiler is broken, or we cross compile. 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3268$as_echo_n "checking whether we are cross compiling... " >&6; } 3269if test "$cross_compiling" != yes; then 3270 { { ac_try="$ac_link" 3271case "(($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_link") 2>&5 3278 ac_status=$? 3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3280 test $ac_status = 0; } 3281 if { ac_try='./conftest$ac_cv_exeext' 3282 { { case "(($ac_try" in 3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3284 *) ac_try_echo=$ac_try;; 3285esac 3286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3287$as_echo "$ac_try_echo"; } >&5 3288 (eval "$ac_try") 2>&5 3289 ac_status=$? 3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3291 test $ac_status = 0; }; }; then 3292 cross_compiling=no 3293 else 3294 if test "$cross_compiling" = maybe; then 3295 cross_compiling=yes 3296 else 3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3299as_fn_error $? "cannot run C compiled programs. 3300If you meant to cross compile, use \`--host'. 3301See \`config.log' for more details" "$LINENO" 5; } 3302 fi 3303 fi 3304fi 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3306$as_echo "$cross_compiling" >&6; } 3307 3308rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3309ac_clean_files=$ac_clean_files_save 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3311$as_echo_n "checking for suffix of object files... " >&6; } 3312if ${ac_cv_objext+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314else 3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3316/* end confdefs.h. */ 3317 3318int 3319main () 3320{ 3321 3322 ; 3323 return 0; 3324} 3325_ACEOF 3326rm -f conftest.o conftest.obj 3327if { { ac_try="$ac_compile" 3328case "(($ac_try" in 3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3330 *) ac_try_echo=$ac_try;; 3331esac 3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3333$as_echo "$ac_try_echo"; } >&5 3334 (eval "$ac_compile") 2>&5 3335 ac_status=$? 3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3337 test $ac_status = 0; }; then : 3338 for ac_file in conftest.o conftest.obj conftest.*; do 3339 test -f "$ac_file" || continue; 3340 case $ac_file in 3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3343 break;; 3344 esac 3345done 3346else 3347 $as_echo "$as_me: failed program was:" >&5 3348sed 's/^/| /' conftest.$ac_ext >&5 3349 3350{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3352as_fn_error $? "cannot compute suffix of object files: cannot compile 3353See \`config.log' for more details" "$LINENO" 5; } 3354fi 3355rm -f conftest.$ac_cv_objext conftest.$ac_ext 3356fi 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3358$as_echo "$ac_cv_objext" >&6; } 3359OBJEXT=$ac_cv_objext 3360ac_objext=$OBJEXT 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3362$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3363if ${ac_cv_c_compiler_gnu+:} false; then : 3364 $as_echo_n "(cached) " >&6 3365else 3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3367/* end confdefs.h. */ 3368 3369int 3370main () 3371{ 3372#ifndef __GNUC__ 3373 choke me 3374#endif 3375 3376 ; 3377 return 0; 3378} 3379_ACEOF 3380if ac_fn_c_try_compile "$LINENO"; then : 3381 ac_compiler_gnu=yes 3382else 3383 ac_compiler_gnu=no 3384fi 3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3386ac_cv_c_compiler_gnu=$ac_compiler_gnu 3387 3388fi 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3390$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3391if test $ac_compiler_gnu = yes; then 3392 GCC=yes 3393else 3394 GCC= 3395fi 3396ac_test_CFLAGS=${CFLAGS+set} 3397ac_save_CFLAGS=$CFLAGS 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3399$as_echo_n "checking whether $CC accepts -g... " >&6; } 3400if ${ac_cv_prog_cc_g+:} false; then : 3401 $as_echo_n "(cached) " >&6 3402else 3403 ac_save_c_werror_flag=$ac_c_werror_flag 3404 ac_c_werror_flag=yes 3405 ac_cv_prog_cc_g=no 3406 CFLAGS="-g" 3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3408/* end confdefs.h. */ 3409 3410int 3411main () 3412{ 3413 3414 ; 3415 return 0; 3416} 3417_ACEOF 3418if ac_fn_c_try_compile "$LINENO"; then : 3419 ac_cv_prog_cc_g=yes 3420else 3421 CFLAGS="" 3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3423/* end confdefs.h. */ 3424 3425int 3426main () 3427{ 3428 3429 ; 3430 return 0; 3431} 3432_ACEOF 3433if ac_fn_c_try_compile "$LINENO"; then : 3434 3435else 3436 ac_c_werror_flag=$ac_save_c_werror_flag 3437 CFLAGS="-g" 3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439/* end confdefs.h. */ 3440 3441int 3442main () 3443{ 3444 3445 ; 3446 return 0; 3447} 3448_ACEOF 3449if ac_fn_c_try_compile "$LINENO"; then : 3450 ac_cv_prog_cc_g=yes 3451fi 3452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3453fi 3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3455fi 3456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3457 ac_c_werror_flag=$ac_save_c_werror_flag 3458fi 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3460$as_echo "$ac_cv_prog_cc_g" >&6; } 3461if test "$ac_test_CFLAGS" = set; then 3462 CFLAGS=$ac_save_CFLAGS 3463elif test $ac_cv_prog_cc_g = yes; then 3464 if test "$GCC" = yes; then 3465 CFLAGS="-g -O2" 3466 else 3467 CFLAGS="-g" 3468 fi 3469else 3470 if test "$GCC" = yes; then 3471 CFLAGS="-O2" 3472 else 3473 CFLAGS= 3474 fi 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3477$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3478if ${ac_cv_prog_cc_c89+:} false; then : 3479 $as_echo_n "(cached) " >&6 3480else 3481 ac_cv_prog_cc_c89=no 3482ac_save_CC=$CC 3483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3484/* end confdefs.h. */ 3485#include <stdarg.h> 3486#include <stdio.h> 3487#include <sys/types.h> 3488#include <sys/stat.h> 3489/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3490struct buf { int x; }; 3491FILE * (*rcsopen) (struct buf *, struct stat *, int); 3492static char *e (p, i) 3493 char **p; 3494 int i; 3495{ 3496 return p[i]; 3497} 3498static char *f (char * (*g) (char **, int), char **p, ...) 3499{ 3500 char *s; 3501 va_list v; 3502 va_start (v,p); 3503 s = g (p, va_arg (v,int)); 3504 va_end (v); 3505 return s; 3506} 3507 3508/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3509 function prototypes and stuff, but not '\xHH' hex character constants. 3510 These don't provoke an error unfortunately, instead are silently treated 3511 as 'x'. The following induces an error, until -std is added to get 3512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3513 array size at least. It's necessary to write '\x00'==0 to get something 3514 that's true only with -std. */ 3515int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3516 3517/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3518 inside strings and character constants. */ 3519#define FOO(x) 'x' 3520int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3521 3522int test (int i, double x); 3523struct s1 {int (*f) (int a);}; 3524struct s2 {int (*f) (double a);}; 3525int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3526int argc; 3527char **argv; 3528int 3529main () 3530{ 3531return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3537 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3538do 3539 CC="$ac_save_CC $ac_arg" 3540 if ac_fn_c_try_compile "$LINENO"; then : 3541 ac_cv_prog_cc_c89=$ac_arg 3542fi 3543rm -f core conftest.err conftest.$ac_objext 3544 test "x$ac_cv_prog_cc_c89" != "xno" && break 3545done 3546rm -f conftest.$ac_ext 3547CC=$ac_save_CC 3548 3549fi 3550# AC_CACHE_VAL 3551case "x$ac_cv_prog_cc_c89" in 3552 x) 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3554$as_echo "none needed" >&6; } ;; 3555 xno) 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3557$as_echo "unsupported" >&6; } ;; 3558 *) 3559 CC="$CC $ac_cv_prog_cc_c89" 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3561$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3562esac 3563if test "x$ac_cv_prog_cc_c89" != xno; then : 3564 3565fi 3566 3567ac_ext=c 3568ac_cpp='$CPP $CPPFLAGS' 3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3571ac_compiler_gnu=$ac_cv_c_compiler_gnu 3572 3573ac_ext=c 3574ac_cpp='$CPP $CPPFLAGS' 3575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3577ac_compiler_gnu=$ac_cv_c_compiler_gnu 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3579$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3580if ${am_cv_prog_cc_c_o+:} false; then : 3581 $as_echo_n "(cached) " >&6 3582else 3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584/* end confdefs.h. */ 3585 3586int 3587main () 3588{ 3589 3590 ; 3591 return 0; 3592} 3593_ACEOF 3594 # Make sure it works both with $CC and with simple cc. 3595 # Following AC_PROG_CC_C_O, we do the test twice because some 3596 # compilers refuse to overwrite an existing .o file with -o, 3597 # though they will create one. 3598 am_cv_prog_cc_c_o=yes 3599 for am_i in 1 2; do 3600 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3601 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3602 ac_status=$? 3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3604 (exit $ac_status); } \ 3605 && test -f conftest2.$ac_objext; then 3606 : OK 3607 else 3608 am_cv_prog_cc_c_o=no 3609 break 3610 fi 3611 done 3612 rm -f core conftest* 3613 unset am_i 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3616$as_echo "$am_cv_prog_cc_c_o" >&6; } 3617if test "$am_cv_prog_cc_c_o" != yes; then 3618 # Losing compiler, so override with the script. 3619 # FIXME: It is wrong to rewrite CC. 3620 # But if we don't then we get into trouble of one sort or another. 3621 # A longer-term fix would be to have automake use am__CC in this case, 3622 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3623 CC="$am_aux_dir/compile $CC" 3624fi 3625ac_ext=c 3626ac_cpp='$CPP $CPPFLAGS' 3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3629ac_compiler_gnu=$ac_cv_c_compiler_gnu 3630 3631 3632depcc="$CC" am_compiler_list= 3633 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3635$as_echo_n "checking dependency style of $depcc... " >&6; } 3636if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3637 $as_echo_n "(cached) " >&6 3638else 3639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3640 # We make a subdir and do the tests there. Otherwise we can end up 3641 # making bogus files that we don't know about and never remove. For 3642 # instance it was reported that on HP-UX the gcc test will end up 3643 # making a dummy file named 'D' -- because '-MD' means "put the output 3644 # in D". 3645 rm -rf conftest.dir 3646 mkdir conftest.dir 3647 # Copy depcomp to subdir because otherwise we won't find it if we're 3648 # using a relative directory. 3649 cp "$am_depcomp" conftest.dir 3650 cd conftest.dir 3651 # We will build objects and dependencies in a subdirectory because 3652 # it helps to detect inapplicable dependency modes. For instance 3653 # both Tru64's cc and ICC support -MD to output dependencies as a 3654 # side effect of compilation, but ICC will put the dependencies in 3655 # the current directory while Tru64 will put them in the object 3656 # directory. 3657 mkdir sub 3658 3659 am_cv_CC_dependencies_compiler_type=none 3660 if test "$am_compiler_list" = ""; then 3661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3662 fi 3663 am__universal=false 3664 case " $depcc " in #( 3665 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3666 esac 3667 3668 for depmode in $am_compiler_list; do 3669 # Setup a source with many dependencies, because some compilers 3670 # like to wrap large dependency lists on column 80 (with \), and 3671 # we should not choose a depcomp mode which is confused by this. 3672 # 3673 # We need to recreate these files for each test, as the compiler may 3674 # overwrite some of them when testing with obscure command lines. 3675 # This happens at least with the AIX C compiler. 3676 : > sub/conftest.c 3677 for i in 1 2 3 4 5 6; do 3678 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3679 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3680 # Solaris 10 /bin/sh. 3681 echo '/* dummy */' > sub/conftst$i.h 3682 done 3683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3684 3685 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3686 # mode. It turns out that the SunPro C++ compiler does not properly 3687 # handle '-M -o', and we need to detect this. Also, some Intel 3688 # versions had trouble with output in subdirs. 3689 am__obj=sub/conftest.${OBJEXT-o} 3690 am__minus_obj="-o $am__obj" 3691 case $depmode in 3692 gcc) 3693 # This depmode causes a compiler race in universal mode. 3694 test "$am__universal" = false || continue 3695 ;; 3696 nosideeffect) 3697 # After this tag, mechanisms are not by side-effect, so they'll 3698 # only be used when explicitly requested. 3699 if test "x$enable_dependency_tracking" = xyes; then 3700 continue 3701 else 3702 break 3703 fi 3704 ;; 3705 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3706 # This compiler won't grok '-c -o', but also, the minuso test has 3707 # not run yet. These depmodes are late enough in the game, and 3708 # so weak that their functioning should not be impacted. 3709 am__obj=conftest.${OBJEXT-o} 3710 am__minus_obj= 3711 ;; 3712 none) break ;; 3713 esac 3714 if depmode=$depmode \ 3715 source=sub/conftest.c object=$am__obj \ 3716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3717 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3718 >/dev/null 2>conftest.err && 3719 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3721 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3723 # icc doesn't choke on unknown options, it will just issue warnings 3724 # or remarks (even with -Werror). So we grep stderr for any message 3725 # that says an option was ignored or not supported. 3726 # When given -MP, icc 7.0 and 7.1 complain thusly: 3727 # icc: Command line warning: ignoring option '-M'; no argument required 3728 # The diagnosis changed in icc 8.0: 3729 # icc: Command line remark: option '-MP' not supported 3730 if (grep 'ignoring option' conftest.err || 3731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3732 am_cv_CC_dependencies_compiler_type=$depmode 3733 break 3734 fi 3735 fi 3736 done 3737 3738 cd .. 3739 rm -rf conftest.dir 3740else 3741 am_cv_CC_dependencies_compiler_type=none 3742fi 3743 3744fi 3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3746$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3747CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3748 3749 if 3750 test "x$enable_dependency_tracking" != xno \ 3751 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3752 am__fastdepCC_TRUE= 3753 am__fastdepCC_FALSE='#' 3754else 3755 am__fastdepCC_TRUE='#' 3756 am__fastdepCC_FALSE= 3757fi 3758 3759 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3761$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3762if ${ac_cv_prog_cc_c99+:} false; then : 3763 $as_echo_n "(cached) " >&6 3764else 3765 ac_cv_prog_cc_c99=no 3766ac_save_CC=$CC 3767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3768/* end confdefs.h. */ 3769#include <stdarg.h> 3770#include <stdbool.h> 3771#include <stdlib.h> 3772#include <wchar.h> 3773#include <stdio.h> 3774 3775// Check varargs macros. These examples are taken from C99 6.10.3.5. 3776#define debug(...) fprintf (stderr, __VA_ARGS__) 3777#define showlist(...) puts (#__VA_ARGS__) 3778#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3779static void 3780test_varargs_macros (void) 3781{ 3782 int x = 1234; 3783 int y = 5678; 3784 debug ("Flag"); 3785 debug ("X = %d\n", x); 3786 showlist (The first, second, and third items.); 3787 report (x>y, "x is %d but y is %d", x, y); 3788} 3789 3790// Check long long types. 3791#define BIG64 18446744073709551615ull 3792#define BIG32 4294967295ul 3793#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3794#if !BIG_OK 3795 your preprocessor is broken; 3796#endif 3797#if BIG_OK 3798#else 3799 your preprocessor is broken; 3800#endif 3801static long long int bignum = -9223372036854775807LL; 3802static unsigned long long int ubignum = BIG64; 3803 3804struct incomplete_array 3805{ 3806 int datasize; 3807 double data[]; 3808}; 3809 3810struct named_init { 3811 int number; 3812 const wchar_t *name; 3813 double average; 3814}; 3815 3816typedef const char *ccp; 3817 3818static inline int 3819test_restrict (ccp restrict text) 3820{ 3821 // See if C++-style comments work. 3822 // Iterate through items via the restricted pointer. 3823 // Also check for declarations in for loops. 3824 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3825 continue; 3826 return 0; 3827} 3828 3829// Check varargs and va_copy. 3830static void 3831test_varargs (const char *format, ...) 3832{ 3833 va_list args; 3834 va_start (args, format); 3835 va_list args_copy; 3836 va_copy (args_copy, args); 3837 3838 const char *str; 3839 int number; 3840 float fnumber; 3841 3842 while (*format) 3843 { 3844 switch (*format++) 3845 { 3846 case 's': // string 3847 str = va_arg (args_copy, const char *); 3848 break; 3849 case 'd': // int 3850 number = va_arg (args_copy, int); 3851 break; 3852 case 'f': // float 3853 fnumber = va_arg (args_copy, double); 3854 break; 3855 default: 3856 break; 3857 } 3858 } 3859 va_end (args_copy); 3860 va_end (args); 3861} 3862 3863int 3864main () 3865{ 3866 3867 // Check bool. 3868 _Bool success = false; 3869 3870 // Check restrict. 3871 if (test_restrict ("String literal") == 0) 3872 success = true; 3873 char *restrict newvar = "Another string"; 3874 3875 // Check varargs. 3876 test_varargs ("s, d' f .", "string", 65, 34.234); 3877 test_varargs_macros (); 3878 3879 // Check flexible array members. 3880 struct incomplete_array *ia = 3881 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3882 ia->datasize = 10; 3883 for (int i = 0; i < ia->datasize; ++i) 3884 ia->data[i] = i * 1.234; 3885 3886 // Check named initializers. 3887 struct named_init ni = { 3888 .number = 34, 3889 .name = L"Test wide string", 3890 .average = 543.34343, 3891 }; 3892 3893 ni.number = 58; 3894 3895 int dynamic_array[ni.number]; 3896 dynamic_array[ni.number - 1] = 543; 3897 3898 // work around unused variable warnings 3899 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3900 || dynamic_array[ni.number - 1] != 543); 3901 3902 ; 3903 return 0; 3904} 3905_ACEOF 3906for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3907do 3908 CC="$ac_save_CC $ac_arg" 3909 if ac_fn_c_try_compile "$LINENO"; then : 3910 ac_cv_prog_cc_c99=$ac_arg 3911fi 3912rm -f core conftest.err conftest.$ac_objext 3913 test "x$ac_cv_prog_cc_c99" != "xno" && break 3914done 3915rm -f conftest.$ac_ext 3916CC=$ac_save_CC 3917 3918fi 3919# AC_CACHE_VAL 3920case "x$ac_cv_prog_cc_c99" in 3921 x) 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3923$as_echo "none needed" >&6; } ;; 3924 xno) 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3926$as_echo "unsupported" >&6; } ;; 3927 *) 3928 CC="$CC $ac_cv_prog_cc_c99" 3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3930$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3931esac 3932if test "x$ac_cv_prog_cc_c99" != xno; then : 3933 3934fi 3935 3936 3937 3938ac_ext=c 3939ac_cpp='$CPP $CPPFLAGS' 3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3942ac_compiler_gnu=$ac_cv_c_compiler_gnu 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3944$as_echo_n "checking how to run the C preprocessor... " >&6; } 3945# On Suns, sometimes $CPP names a directory. 3946if test -n "$CPP" && test -d "$CPP"; then 3947 CPP= 3948fi 3949if test -z "$CPP"; then 3950 if ${ac_cv_prog_CPP+:} false; then : 3951 $as_echo_n "(cached) " >&6 3952else 3953 # Double quotes because CPP needs to be expanded 3954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3955 do 3956 ac_preproc_ok=false 3957for ac_c_preproc_warn_flag in '' yes 3958do 3959 # Use a header file that comes with gcc, so configuring glibc 3960 # with a fresh cross-compiler works. 3961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3962 # <limits.h> exists even on freestanding compilers. 3963 # On the NeXT, cc -E runs the code through the compiler's parser, 3964 # not just through cpp. "Syntax error" is here to catch this case. 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967#ifdef __STDC__ 3968# include <limits.h> 3969#else 3970# include <assert.h> 3971#endif 3972 Syntax error 3973_ACEOF 3974if ac_fn_c_try_cpp "$LINENO"; then : 3975 3976else 3977 # Broken: fails on valid input. 3978continue 3979fi 3980rm -f conftest.err conftest.i conftest.$ac_ext 3981 3982 # OK, works on sane cases. Now check whether nonexistent headers 3983 # can be detected and how. 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986#include <ac_nonexistent.h> 3987_ACEOF 3988if ac_fn_c_try_cpp "$LINENO"; then : 3989 # Broken: success on invalid input. 3990continue 3991else 3992 # Passes both tests. 3993ac_preproc_ok=: 3994break 3995fi 3996rm -f conftest.err conftest.i conftest.$ac_ext 3997 3998done 3999# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4000rm -f conftest.i conftest.err conftest.$ac_ext 4001if $ac_preproc_ok; then : 4002 break 4003fi 4004 4005 done 4006 ac_cv_prog_CPP=$CPP 4007 4008fi 4009 CPP=$ac_cv_prog_CPP 4010else 4011 ac_cv_prog_CPP=$CPP 4012fi 4013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4014$as_echo "$CPP" >&6; } 4015ac_preproc_ok=false 4016for ac_c_preproc_warn_flag in '' yes 4017do 4018 # Use a header file that comes with gcc, so configuring glibc 4019 # with a fresh cross-compiler works. 4020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4021 # <limits.h> exists even on freestanding compilers. 4022 # On the NeXT, cc -E runs the code through the compiler's parser, 4023 # not just through cpp. "Syntax error" is here to catch this case. 4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4025/* end confdefs.h. */ 4026#ifdef __STDC__ 4027# include <limits.h> 4028#else 4029# include <assert.h> 4030#endif 4031 Syntax error 4032_ACEOF 4033if ac_fn_c_try_cpp "$LINENO"; then : 4034 4035else 4036 # Broken: fails on valid input. 4037continue 4038fi 4039rm -f conftest.err conftest.i conftest.$ac_ext 4040 4041 # OK, works on sane cases. Now check whether nonexistent headers 4042 # can be detected and how. 4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045#include <ac_nonexistent.h> 4046_ACEOF 4047if ac_fn_c_try_cpp "$LINENO"; then : 4048 # Broken: success on invalid input. 4049continue 4050else 4051 # Passes both tests. 4052ac_preproc_ok=: 4053break 4054fi 4055rm -f conftest.err conftest.i conftest.$ac_ext 4056 4057done 4058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4059rm -f conftest.i conftest.err conftest.$ac_ext 4060if $ac_preproc_ok; then : 4061 4062else 4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4065as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4066See \`config.log' for more details" "$LINENO" 5; } 4067fi 4068 4069ac_ext=c 4070ac_cpp='$CPP $CPPFLAGS' 4071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4073ac_compiler_gnu=$ac_cv_c_compiler_gnu 4074 4075 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4077$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4078if ${ac_cv_path_GREP+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 if test -z "$GREP"; then 4082 ac_path_GREP_found=false 4083 # Loop through the user's path and test for each of PROGNAME-LIST 4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4085for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4086do 4087 IFS=$as_save_IFS 4088 test -z "$as_dir" && as_dir=. 4089 for ac_prog in grep ggrep; do 4090 for ac_exec_ext in '' $ac_executable_extensions; do 4091 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4092 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4093# Check for GNU ac_path_GREP and select it if it is found. 4094 # Check for GNU $ac_path_GREP 4095case `"$ac_path_GREP" --version 2>&1` in 4096*GNU*) 4097 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4098*) 4099 ac_count=0 4100 $as_echo_n 0123456789 >"conftest.in" 4101 while : 4102 do 4103 cat "conftest.in" "conftest.in" >"conftest.tmp" 4104 mv "conftest.tmp" "conftest.in" 4105 cp "conftest.in" "conftest.nl" 4106 $as_echo 'GREP' >> "conftest.nl" 4107 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4109 as_fn_arith $ac_count + 1 && ac_count=$as_val 4110 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4111 # Best one so far, save it but keep looking for a better one 4112 ac_cv_path_GREP="$ac_path_GREP" 4113 ac_path_GREP_max=$ac_count 4114 fi 4115 # 10*(2^10) chars as input seems more than enough 4116 test $ac_count -gt 10 && break 4117 done 4118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4119esac 4120 4121 $ac_path_GREP_found && break 3 4122 done 4123 done 4124 done 4125IFS=$as_save_IFS 4126 if test -z "$ac_cv_path_GREP"; then 4127 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4128 fi 4129else 4130 ac_cv_path_GREP=$GREP 4131fi 4132 4133fi 4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4135$as_echo "$ac_cv_path_GREP" >&6; } 4136 GREP="$ac_cv_path_GREP" 4137 4138 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4140$as_echo_n "checking for egrep... " >&6; } 4141if ${ac_cv_path_EGREP+:} false; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4145 then ac_cv_path_EGREP="$GREP -E" 4146 else 4147 if test -z "$EGREP"; then 4148 ac_path_EGREP_found=false 4149 # Loop through the user's path and test for each of PROGNAME-LIST 4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4152do 4153 IFS=$as_save_IFS 4154 test -z "$as_dir" && as_dir=. 4155 for ac_prog in egrep; do 4156 for ac_exec_ext in '' $ac_executable_extensions; do 4157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4159# Check for GNU ac_path_EGREP and select it if it is found. 4160 # Check for GNU $ac_path_EGREP 4161case `"$ac_path_EGREP" --version 2>&1` in 4162*GNU*) 4163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4164*) 4165 ac_count=0 4166 $as_echo_n 0123456789 >"conftest.in" 4167 while : 4168 do 4169 cat "conftest.in" "conftest.in" >"conftest.tmp" 4170 mv "conftest.tmp" "conftest.in" 4171 cp "conftest.in" "conftest.nl" 4172 $as_echo 'EGREP' >> "conftest.nl" 4173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4175 as_fn_arith $ac_count + 1 && ac_count=$as_val 4176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4177 # Best one so far, save it but keep looking for a better one 4178 ac_cv_path_EGREP="$ac_path_EGREP" 4179 ac_path_EGREP_max=$ac_count 4180 fi 4181 # 10*(2^10) chars as input seems more than enough 4182 test $ac_count -gt 10 && break 4183 done 4184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4185esac 4186 4187 $ac_path_EGREP_found && break 3 4188 done 4189 done 4190 done 4191IFS=$as_save_IFS 4192 if test -z "$ac_cv_path_EGREP"; then 4193 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4194 fi 4195else 4196 ac_cv_path_EGREP=$EGREP 4197fi 4198 4199 fi 4200fi 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4202$as_echo "$ac_cv_path_EGREP" >&6; } 4203 EGREP="$ac_cv_path_EGREP" 4204 4205 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4207$as_echo_n "checking for ANSI C header files... " >&6; } 4208if ${ac_cv_header_stdc+:} false; then : 4209 $as_echo_n "(cached) " >&6 4210else 4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212/* end confdefs.h. */ 4213#include <stdlib.h> 4214#include <stdarg.h> 4215#include <string.h> 4216#include <float.h> 4217 4218int 4219main () 4220{ 4221 4222 ; 4223 return 0; 4224} 4225_ACEOF 4226if ac_fn_c_try_compile "$LINENO"; then : 4227 ac_cv_header_stdc=yes 4228else 4229 ac_cv_header_stdc=no 4230fi 4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4232 4233if test $ac_cv_header_stdc = yes; then 4234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4236/* end confdefs.h. */ 4237#include <string.h> 4238 4239_ACEOF 4240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4241 $EGREP "memchr" >/dev/null 2>&1; then : 4242 4243else 4244 ac_cv_header_stdc=no 4245fi 4246rm -f conftest* 4247 4248fi 4249 4250if test $ac_cv_header_stdc = yes; then 4251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4253/* end confdefs.h. */ 4254#include <stdlib.h> 4255 4256_ACEOF 4257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4258 $EGREP "free" >/dev/null 2>&1; then : 4259 4260else 4261 ac_cv_header_stdc=no 4262fi 4263rm -f conftest* 4264 4265fi 4266 4267if test $ac_cv_header_stdc = yes; then 4268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4269 if test "$cross_compiling" = yes; then : 4270 : 4271else 4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4273/* end confdefs.h. */ 4274#include <ctype.h> 4275#include <stdlib.h> 4276#if ((' ' & 0x0FF) == 0x020) 4277# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4278# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4279#else 4280# define ISLOWER(c) \ 4281 (('a' <= (c) && (c) <= 'i') \ 4282 || ('j' <= (c) && (c) <= 'r') \ 4283 || ('s' <= (c) && (c) <= 'z')) 4284# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4285#endif 4286 4287#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4288int 4289main () 4290{ 4291 int i; 4292 for (i = 0; i < 256; i++) 4293 if (XOR (islower (i), ISLOWER (i)) 4294 || toupper (i) != TOUPPER (i)) 4295 return 2; 4296 return 0; 4297} 4298_ACEOF 4299if ac_fn_c_try_run "$LINENO"; then : 4300 4301else 4302 ac_cv_header_stdc=no 4303fi 4304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4305 conftest.$ac_objext conftest.beam conftest.$ac_ext 4306fi 4307 4308fi 4309fi 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4311$as_echo "$ac_cv_header_stdc" >&6; } 4312if test $ac_cv_header_stdc = yes; then 4313 4314$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4315 4316fi 4317 4318# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4319for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4320 inttypes.h stdint.h unistd.h 4321do : 4322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4323ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4324" 4325if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4326 cat >>confdefs.h <<_ACEOF 4327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4328_ACEOF 4329 4330fi 4331 4332done 4333 4334 4335 4336 4337 4338 4339ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4340if test "x$ac_cv_have_decl___clang__" = xyes; then : 4341 CLANGCC="yes" 4342else 4343 CLANGCC="no" 4344fi 4345 4346ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4347if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4348 INTELCC="yes" 4349else 4350 INTELCC="no" 4351fi 4352 4353ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4354if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4355 SUNCC="yes" 4356else 4357 SUNCC="no" 4358fi 4359 4360 4361 4362 4363if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4364 if test -n "$ac_tool_prefix"; then 4365 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4366set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4368$as_echo_n "checking for $ac_word... " >&6; } 4369if ${ac_cv_path_PKG_CONFIG+:} false; then : 4370 $as_echo_n "(cached) " >&6 4371else 4372 case $PKG_CONFIG in 4373 [\\/]* | ?:[\\/]*) 4374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4375 ;; 4376 *) 4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4378for as_dir in $PATH 4379do 4380 IFS=$as_save_IFS 4381 test -z "$as_dir" && as_dir=. 4382 for ac_exec_ext in '' $ac_executable_extensions; do 4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4384 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4386 break 2 4387 fi 4388done 4389 done 4390IFS=$as_save_IFS 4391 4392 ;; 4393esac 4394fi 4395PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4396if test -n "$PKG_CONFIG"; then 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4398$as_echo "$PKG_CONFIG" >&6; } 4399else 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4401$as_echo "no" >&6; } 4402fi 4403 4404 4405fi 4406if test -z "$ac_cv_path_PKG_CONFIG"; then 4407 ac_pt_PKG_CONFIG=$PKG_CONFIG 4408 # Extract the first word of "pkg-config", so it can be a program name with args. 4409set dummy pkg-config; ac_word=$2 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4411$as_echo_n "checking for $ac_word... " >&6; } 4412if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4413 $as_echo_n "(cached) " >&6 4414else 4415 case $ac_pt_PKG_CONFIG in 4416 [\\/]* | ?:[\\/]*) 4417 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4418 ;; 4419 *) 4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421for as_dir in $PATH 4422do 4423 IFS=$as_save_IFS 4424 test -z "$as_dir" && as_dir=. 4425 for ac_exec_ext in '' $ac_executable_extensions; do 4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4427 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4429 break 2 4430 fi 4431done 4432 done 4433IFS=$as_save_IFS 4434 4435 ;; 4436esac 4437fi 4438ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4439if test -n "$ac_pt_PKG_CONFIG"; then 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4441$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4442else 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4444$as_echo "no" >&6; } 4445fi 4446 4447 if test "x$ac_pt_PKG_CONFIG" = x; then 4448 PKG_CONFIG="" 4449 else 4450 case $cross_compiling:$ac_tool_warned in 4451yes:) 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4454ac_tool_warned=yes ;; 4455esac 4456 PKG_CONFIG=$ac_pt_PKG_CONFIG 4457 fi 4458else 4459 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4460fi 4461 4462fi 4463if test -n "$PKG_CONFIG"; then 4464 _pkg_min_version=0.9.0 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4466$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4467 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4469$as_echo "yes" >&6; } 4470 else 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4472$as_echo "no" >&6; } 4473 PKG_CONFIG="" 4474 fi 4475 4476fi 4477# Make sure we can run config.sub. 4478$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4479 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4480 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4482$as_echo_n "checking build system type... " >&6; } 4483if ${ac_cv_build+:} false; then : 4484 $as_echo_n "(cached) " >&6 4485else 4486 ac_build_alias=$build_alias 4487test "x$ac_build_alias" = x && 4488 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4489test "x$ac_build_alias" = x && 4490 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4491ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4492 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4493 4494fi 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4496$as_echo "$ac_cv_build" >&6; } 4497case $ac_cv_build in 4498*-*-*) ;; 4499*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4500esac 4501build=$ac_cv_build 4502ac_save_IFS=$IFS; IFS='-' 4503set x $ac_cv_build 4504shift 4505build_cpu=$1 4506build_vendor=$2 4507shift; shift 4508# Remember, the first character of IFS is used to create $*, 4509# except with old shells: 4510build_os=$* 4511IFS=$ac_save_IFS 4512case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4513 4514 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4516$as_echo_n "checking host system type... " >&6; } 4517if ${ac_cv_host+:} false; then : 4518 $as_echo_n "(cached) " >&6 4519else 4520 if test "x$host_alias" = x; then 4521 ac_cv_host=$ac_cv_build 4522else 4523 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4524 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4525fi 4526 4527fi 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4529$as_echo "$ac_cv_host" >&6; } 4530case $ac_cv_host in 4531*-*-*) ;; 4532*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4533esac 4534host=$ac_cv_host 4535ac_save_IFS=$IFS; IFS='-' 4536set x $ac_cv_host 4537shift 4538host_cpu=$1 4539host_vendor=$2 4540shift; shift 4541# Remember, the first character of IFS is used to create $*, 4542# except with old shells: 4543host_os=$* 4544IFS=$ac_save_IFS 4545case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4546 4547 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4549$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4550if ${ac_cv_path_SED+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4554 for ac_i in 1 2 3 4 5 6 7; do 4555 ac_script="$ac_script$as_nl$ac_script" 4556 done 4557 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4558 { ac_script=; unset ac_script;} 4559 if test -z "$SED"; then 4560 ac_path_SED_found=false 4561 # Loop through the user's path and test for each of PROGNAME-LIST 4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563for as_dir in $PATH 4564do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_prog in sed gsed; do 4568 for ac_exec_ext in '' $ac_executable_extensions; do 4569 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4570 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4571# Check for GNU ac_path_SED and select it if it is found. 4572 # Check for GNU $ac_path_SED 4573case `"$ac_path_SED" --version 2>&1` in 4574*GNU*) 4575 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4576*) 4577 ac_count=0 4578 $as_echo_n 0123456789 >"conftest.in" 4579 while : 4580 do 4581 cat "conftest.in" "conftest.in" >"conftest.tmp" 4582 mv "conftest.tmp" "conftest.in" 4583 cp "conftest.in" "conftest.nl" 4584 $as_echo '' >> "conftest.nl" 4585 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4587 as_fn_arith $ac_count + 1 && ac_count=$as_val 4588 if test $ac_count -gt ${ac_path_SED_max-0}; then 4589 # Best one so far, save it but keep looking for a better one 4590 ac_cv_path_SED="$ac_path_SED" 4591 ac_path_SED_max=$ac_count 4592 fi 4593 # 10*(2^10) chars as input seems more than enough 4594 test $ac_count -gt 10 && break 4595 done 4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4597esac 4598 4599 $ac_path_SED_found && break 3 4600 done 4601 done 4602 done 4603IFS=$as_save_IFS 4604 if test -z "$ac_cv_path_SED"; then 4605 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4606 fi 4607else 4608 ac_cv_path_SED=$SED 4609fi 4610 4611fi 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4613$as_echo "$ac_cv_path_SED" >&6; } 4614 SED="$ac_cv_path_SED" 4615 rm -f conftest.sed 4616 4617 4618 4619 4620 4621 4622# Check whether --enable-selective-werror was given. 4623if test "${enable_selective_werror+set}" = set; then : 4624 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4625else 4626 SELECTIVE_WERROR=yes 4627fi 4628 4629 4630 4631 4632 4633# -v is too short to test reliably with XORG_TESTSET_CFLAG 4634if test "x$SUNCC" = "xyes"; then 4635 BASE_CFLAGS="-v" 4636else 4637 BASE_CFLAGS="" 4638fi 4639 4640# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654xorg_testset_save_CFLAGS="$CFLAGS" 4655 4656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4664/* end confdefs.h. */ 4665int i; 4666_ACEOF 4667if ac_fn_c_try_compile "$LINENO"; then : 4668 xorg_cv_cc_flag_unknown_warning_option=yes 4669else 4670 xorg_cv_cc_flag_unknown_warning_option=no 4671fi 4672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4673fi 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4677 CFLAGS="$xorg_testset_save_CFLAGS" 4678fi 4679 4680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4683 fi 4684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4688 $as_echo_n "(cached) " >&6 4689else 4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4691/* end confdefs.h. */ 4692int i; 4693_ACEOF 4694if ac_fn_c_try_compile "$LINENO"; then : 4695 xorg_cv_cc_flag_unused_command_line_argument=yes 4696else 4697 xorg_cv_cc_flag_unused_command_line_argument=no 4698fi 4699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4700fi 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4704 CFLAGS="$xorg_testset_save_CFLAGS" 4705fi 4706 4707found="no" 4708 4709 if test $found = "no" ; then 4710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4712 fi 4713 4714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4716 fi 4717 4718 CFLAGS="$CFLAGS -Wall" 4719 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4721$as_echo_n "checking if $CC supports -Wall... " >&6; } 4722 cacheid=xorg_cv_cc_flag__Wall 4723 if eval \${$cacheid+:} false; then : 4724 $as_echo_n "(cached) " >&6 4725else 4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4727/* end confdefs.h. */ 4728int i; 4729int 4730main () 4731{ 4732 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737if ac_fn_c_try_link "$LINENO"; then : 4738 eval $cacheid=yes 4739else 4740 eval $cacheid=no 4741fi 4742rm -f core conftest.err conftest.$ac_objext \ 4743 conftest$ac_exeext conftest.$ac_ext 4744fi 4745 4746 4747 CFLAGS="$xorg_testset_save_CFLAGS" 4748 4749 eval supported=\$$cacheid 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4751$as_echo "$supported" >&6; } 4752 if test "$supported" = "yes" ; then 4753 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4754 found="yes" 4755 fi 4756 fi 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772xorg_testset_save_CFLAGS="$CFLAGS" 4773 4774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4779 $as_echo_n "(cached) " >&6 4780else 4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4782/* end confdefs.h. */ 4783int i; 4784_ACEOF 4785if ac_fn_c_try_compile "$LINENO"; then : 4786 xorg_cv_cc_flag_unknown_warning_option=yes 4787else 4788 xorg_cv_cc_flag_unknown_warning_option=no 4789fi 4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4791fi 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4795 CFLAGS="$xorg_testset_save_CFLAGS" 4796fi 4797 4798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4801 fi 4802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4806 $as_echo_n "(cached) " >&6 4807else 4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4809/* end confdefs.h. */ 4810int i; 4811_ACEOF 4812if ac_fn_c_try_compile "$LINENO"; then : 4813 xorg_cv_cc_flag_unused_command_line_argument=yes 4814else 4815 xorg_cv_cc_flag_unused_command_line_argument=no 4816fi 4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4818fi 4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4822 CFLAGS="$xorg_testset_save_CFLAGS" 4823fi 4824 4825found="no" 4826 4827 if test $found = "no" ; then 4828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4830 fi 4831 4832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4834 fi 4835 4836 CFLAGS="$CFLAGS -Wpointer-arith" 4837 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4839$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4840 cacheid=xorg_cv_cc_flag__Wpointer_arith 4841 if eval \${$cacheid+:} false; then : 4842 $as_echo_n "(cached) " >&6 4843else 4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4845/* end confdefs.h. */ 4846int i; 4847int 4848main () 4849{ 4850 4851 ; 4852 return 0; 4853} 4854_ACEOF 4855if ac_fn_c_try_link "$LINENO"; then : 4856 eval $cacheid=yes 4857else 4858 eval $cacheid=no 4859fi 4860rm -f core conftest.err conftest.$ac_objext \ 4861 conftest$ac_exeext conftest.$ac_ext 4862fi 4863 4864 4865 CFLAGS="$xorg_testset_save_CFLAGS" 4866 4867 eval supported=\$$cacheid 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4869$as_echo "$supported" >&6; } 4870 if test "$supported" = "yes" ; then 4871 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4872 found="yes" 4873 fi 4874 fi 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890xorg_testset_save_CFLAGS="$CFLAGS" 4891 4892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4897 $as_echo_n "(cached) " >&6 4898else 4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4900/* end confdefs.h. */ 4901int i; 4902_ACEOF 4903if ac_fn_c_try_compile "$LINENO"; then : 4904 xorg_cv_cc_flag_unknown_warning_option=yes 4905else 4906 xorg_cv_cc_flag_unknown_warning_option=no 4907fi 4908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4909fi 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4913 CFLAGS="$xorg_testset_save_CFLAGS" 4914fi 4915 4916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4919 fi 4920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928int i; 4929_ACEOF 4930if ac_fn_c_try_compile "$LINENO"; then : 4931 xorg_cv_cc_flag_unused_command_line_argument=yes 4932else 4933 xorg_cv_cc_flag_unused_command_line_argument=no 4934fi 4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4936fi 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4940 CFLAGS="$xorg_testset_save_CFLAGS" 4941fi 4942 4943found="no" 4944 4945 if test $found = "no" ; then 4946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4948 fi 4949 4950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4952 fi 4953 4954 CFLAGS="$CFLAGS -Wmissing-declarations" 4955 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4957$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4958 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4959 if eval \${$cacheid+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4963/* end confdefs.h. */ 4964int i; 4965int 4966main () 4967{ 4968 4969 ; 4970 return 0; 4971} 4972_ACEOF 4973if ac_fn_c_try_link "$LINENO"; then : 4974 eval $cacheid=yes 4975else 4976 eval $cacheid=no 4977fi 4978rm -f core conftest.err conftest.$ac_objext \ 4979 conftest$ac_exeext conftest.$ac_ext 4980fi 4981 4982 4983 CFLAGS="$xorg_testset_save_CFLAGS" 4984 4985 eval supported=\$$cacheid 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4987$as_echo "$supported" >&6; } 4988 if test "$supported" = "yes" ; then 4989 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4990 found="yes" 4991 fi 4992 fi 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008xorg_testset_save_CFLAGS="$CFLAGS" 5009 5010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5015 $as_echo_n "(cached) " >&6 5016else 5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5018/* end confdefs.h. */ 5019int i; 5020_ACEOF 5021if ac_fn_c_try_compile "$LINENO"; then : 5022 xorg_cv_cc_flag_unknown_warning_option=yes 5023else 5024 xorg_cv_cc_flag_unknown_warning_option=no 5025fi 5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5027fi 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5031 CFLAGS="$xorg_testset_save_CFLAGS" 5032fi 5033 5034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5037 fi 5038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5045/* end confdefs.h. */ 5046int i; 5047_ACEOF 5048if ac_fn_c_try_compile "$LINENO"; then : 5049 xorg_cv_cc_flag_unused_command_line_argument=yes 5050else 5051 xorg_cv_cc_flag_unused_command_line_argument=no 5052fi 5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5054fi 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5058 CFLAGS="$xorg_testset_save_CFLAGS" 5059fi 5060 5061found="no" 5062 5063 if test $found = "no" ; then 5064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5066 fi 5067 5068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5070 fi 5071 5072 CFLAGS="$CFLAGS -Wformat=2" 5073 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5075$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5076 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5077 if eval \${$cacheid+:} false; then : 5078 $as_echo_n "(cached) " >&6 5079else 5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5081/* end confdefs.h. */ 5082int i; 5083int 5084main () 5085{ 5086 5087 ; 5088 return 0; 5089} 5090_ACEOF 5091if ac_fn_c_try_link "$LINENO"; then : 5092 eval $cacheid=yes 5093else 5094 eval $cacheid=no 5095fi 5096rm -f core conftest.err conftest.$ac_objext \ 5097 conftest$ac_exeext conftest.$ac_ext 5098fi 5099 5100 5101 CFLAGS="$xorg_testset_save_CFLAGS" 5102 5103 eval supported=\$$cacheid 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5105$as_echo "$supported" >&6; } 5106 if test "$supported" = "yes" ; then 5107 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5108 found="yes" 5109 fi 5110 fi 5111 5112 if test $found = "no" ; then 5113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5115 fi 5116 5117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5119 fi 5120 5121 CFLAGS="$CFLAGS -Wformat" 5122 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5124$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5125 cacheid=xorg_cv_cc_flag__Wformat 5126 if eval \${$cacheid+:} false; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5130/* end confdefs.h. */ 5131int i; 5132int 5133main () 5134{ 5135 5136 ; 5137 return 0; 5138} 5139_ACEOF 5140if ac_fn_c_try_link "$LINENO"; then : 5141 eval $cacheid=yes 5142else 5143 eval $cacheid=no 5144fi 5145rm -f core conftest.err conftest.$ac_objext \ 5146 conftest$ac_exeext conftest.$ac_ext 5147fi 5148 5149 5150 CFLAGS="$xorg_testset_save_CFLAGS" 5151 5152 eval supported=\$$cacheid 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5154$as_echo "$supported" >&6; } 5155 if test "$supported" = "yes" ; then 5156 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5157 found="yes" 5158 fi 5159 fi 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177xorg_testset_save_CFLAGS="$CFLAGS" 5178 5179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5184 $as_echo_n "(cached) " >&6 5185else 5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5187/* end confdefs.h. */ 5188int i; 5189_ACEOF 5190if ac_fn_c_try_compile "$LINENO"; then : 5191 xorg_cv_cc_flag_unknown_warning_option=yes 5192else 5193 xorg_cv_cc_flag_unknown_warning_option=no 5194fi 5195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5196fi 5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5200 CFLAGS="$xorg_testset_save_CFLAGS" 5201fi 5202 5203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5206 fi 5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5211 $as_echo_n "(cached) " >&6 5212else 5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5214/* end confdefs.h. */ 5215int i; 5216_ACEOF 5217if ac_fn_c_try_compile "$LINENO"; then : 5218 xorg_cv_cc_flag_unused_command_line_argument=yes 5219else 5220 xorg_cv_cc_flag_unused_command_line_argument=no 5221fi 5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5223fi 5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5227 CFLAGS="$xorg_testset_save_CFLAGS" 5228fi 5229 5230found="no" 5231 5232 if test $found = "no" ; then 5233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5235 fi 5236 5237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5239 fi 5240 5241 CFLAGS="$CFLAGS -Wstrict-prototypes" 5242 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5244$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5245 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5246 if eval \${$cacheid+:} false; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5250/* end confdefs.h. */ 5251int i; 5252int 5253main () 5254{ 5255 5256 ; 5257 return 0; 5258} 5259_ACEOF 5260if ac_fn_c_try_link "$LINENO"; then : 5261 eval $cacheid=yes 5262else 5263 eval $cacheid=no 5264fi 5265rm -f core conftest.err conftest.$ac_objext \ 5266 conftest$ac_exeext conftest.$ac_ext 5267fi 5268 5269 5270 CFLAGS="$xorg_testset_save_CFLAGS" 5271 5272 eval supported=\$$cacheid 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5274$as_echo "$supported" >&6; } 5275 if test "$supported" = "yes" ; then 5276 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5277 found="yes" 5278 fi 5279 fi 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295xorg_testset_save_CFLAGS="$CFLAGS" 5296 5297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306int i; 5307_ACEOF 5308if ac_fn_c_try_compile "$LINENO"; then : 5309 xorg_cv_cc_flag_unknown_warning_option=yes 5310else 5311 xorg_cv_cc_flag_unknown_warning_option=no 5312fi 5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5314fi 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5318 CFLAGS="$xorg_testset_save_CFLAGS" 5319fi 5320 5321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5324 fi 5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5329 $as_echo_n "(cached) " >&6 5330else 5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5332/* end confdefs.h. */ 5333int i; 5334_ACEOF 5335if ac_fn_c_try_compile "$LINENO"; then : 5336 xorg_cv_cc_flag_unused_command_line_argument=yes 5337else 5338 xorg_cv_cc_flag_unused_command_line_argument=no 5339fi 5340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5341fi 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5345 CFLAGS="$xorg_testset_save_CFLAGS" 5346fi 5347 5348found="no" 5349 5350 if test $found = "no" ; then 5351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5353 fi 5354 5355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5357 fi 5358 5359 CFLAGS="$CFLAGS -Wmissing-prototypes" 5360 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5362$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5363 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5364 if eval \${$cacheid+:} false; then : 5365 $as_echo_n "(cached) " >&6 5366else 5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5368/* end confdefs.h. */ 5369int i; 5370int 5371main () 5372{ 5373 5374 ; 5375 return 0; 5376} 5377_ACEOF 5378if ac_fn_c_try_link "$LINENO"; then : 5379 eval $cacheid=yes 5380else 5381 eval $cacheid=no 5382fi 5383rm -f core conftest.err conftest.$ac_objext \ 5384 conftest$ac_exeext conftest.$ac_ext 5385fi 5386 5387 5388 CFLAGS="$xorg_testset_save_CFLAGS" 5389 5390 eval supported=\$$cacheid 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5392$as_echo "$supported" >&6; } 5393 if test "$supported" = "yes" ; then 5394 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5395 found="yes" 5396 fi 5397 fi 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413xorg_testset_save_CFLAGS="$CFLAGS" 5414 5415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5420 $as_echo_n "(cached) " >&6 5421else 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423/* end confdefs.h. */ 5424int i; 5425_ACEOF 5426if ac_fn_c_try_compile "$LINENO"; then : 5427 xorg_cv_cc_flag_unknown_warning_option=yes 5428else 5429 xorg_cv_cc_flag_unknown_warning_option=no 5430fi 5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5432fi 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5436 CFLAGS="$xorg_testset_save_CFLAGS" 5437fi 5438 5439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5442 fi 5443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448else 5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5450/* end confdefs.h. */ 5451int i; 5452_ACEOF 5453if ac_fn_c_try_compile "$LINENO"; then : 5454 xorg_cv_cc_flag_unused_command_line_argument=yes 5455else 5456 xorg_cv_cc_flag_unused_command_line_argument=no 5457fi 5458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5459fi 5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5463 CFLAGS="$xorg_testset_save_CFLAGS" 5464fi 5465 5466found="no" 5467 5468 if test $found = "no" ; then 5469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5471 fi 5472 5473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5475 fi 5476 5477 CFLAGS="$CFLAGS -Wnested-externs" 5478 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5480$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5481 cacheid=xorg_cv_cc_flag__Wnested_externs 5482 if eval \${$cacheid+:} false; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486/* end confdefs.h. */ 5487int i; 5488int 5489main () 5490{ 5491 5492 ; 5493 return 0; 5494} 5495_ACEOF 5496if ac_fn_c_try_link "$LINENO"; then : 5497 eval $cacheid=yes 5498else 5499 eval $cacheid=no 5500fi 5501rm -f core conftest.err conftest.$ac_objext \ 5502 conftest$ac_exeext conftest.$ac_ext 5503fi 5504 5505 5506 CFLAGS="$xorg_testset_save_CFLAGS" 5507 5508 eval supported=\$$cacheid 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5510$as_echo "$supported" >&6; } 5511 if test "$supported" = "yes" ; then 5512 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5513 found="yes" 5514 fi 5515 fi 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531xorg_testset_save_CFLAGS="$CFLAGS" 5532 5533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5541/* end confdefs.h. */ 5542int i; 5543_ACEOF 5544if ac_fn_c_try_compile "$LINENO"; then : 5545 xorg_cv_cc_flag_unknown_warning_option=yes 5546else 5547 xorg_cv_cc_flag_unknown_warning_option=no 5548fi 5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5550fi 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5554 CFLAGS="$xorg_testset_save_CFLAGS" 5555fi 5556 5557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5560 fi 5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5565 $as_echo_n "(cached) " >&6 5566else 5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5568/* end confdefs.h. */ 5569int i; 5570_ACEOF 5571if ac_fn_c_try_compile "$LINENO"; then : 5572 xorg_cv_cc_flag_unused_command_line_argument=yes 5573else 5574 xorg_cv_cc_flag_unused_command_line_argument=no 5575fi 5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5577fi 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5581 CFLAGS="$xorg_testset_save_CFLAGS" 5582fi 5583 5584found="no" 5585 5586 if test $found = "no" ; then 5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5589 fi 5590 5591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5593 fi 5594 5595 CFLAGS="$CFLAGS -Wbad-function-cast" 5596 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5598$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5599 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5600 if eval \${$cacheid+:} false; then : 5601 $as_echo_n "(cached) " >&6 5602else 5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5604/* end confdefs.h. */ 5605int i; 5606int 5607main () 5608{ 5609 5610 ; 5611 return 0; 5612} 5613_ACEOF 5614if ac_fn_c_try_link "$LINENO"; then : 5615 eval $cacheid=yes 5616else 5617 eval $cacheid=no 5618fi 5619rm -f core conftest.err conftest.$ac_objext \ 5620 conftest$ac_exeext conftest.$ac_ext 5621fi 5622 5623 5624 CFLAGS="$xorg_testset_save_CFLAGS" 5625 5626 eval supported=\$$cacheid 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5628$as_echo "$supported" >&6; } 5629 if test "$supported" = "yes" ; then 5630 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5631 found="yes" 5632 fi 5633 fi 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649xorg_testset_save_CFLAGS="$CFLAGS" 5650 5651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5656 $as_echo_n "(cached) " >&6 5657else 5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5659/* end confdefs.h. */ 5660int i; 5661_ACEOF 5662if ac_fn_c_try_compile "$LINENO"; then : 5663 xorg_cv_cc_flag_unknown_warning_option=yes 5664else 5665 xorg_cv_cc_flag_unknown_warning_option=no 5666fi 5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5668fi 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5672 CFLAGS="$xorg_testset_save_CFLAGS" 5673fi 5674 5675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5678 fi 5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5683 $as_echo_n "(cached) " >&6 5684else 5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5686/* end confdefs.h. */ 5687int i; 5688_ACEOF 5689if ac_fn_c_try_compile "$LINENO"; then : 5690 xorg_cv_cc_flag_unused_command_line_argument=yes 5691else 5692 xorg_cv_cc_flag_unused_command_line_argument=no 5693fi 5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5695fi 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5699 CFLAGS="$xorg_testset_save_CFLAGS" 5700fi 5701 5702found="no" 5703 5704 if test $found = "no" ; then 5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5707 fi 5708 5709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5711 fi 5712 5713 CFLAGS="$CFLAGS -Wold-style-definition" 5714 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5716$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5717 cacheid=xorg_cv_cc_flag__Wold_style_definition 5718 if eval \${$cacheid+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5722/* end confdefs.h. */ 5723int i; 5724int 5725main () 5726{ 5727 5728 ; 5729 return 0; 5730} 5731_ACEOF 5732if ac_fn_c_try_link "$LINENO"; then : 5733 eval $cacheid=yes 5734else 5735 eval $cacheid=no 5736fi 5737rm -f core conftest.err conftest.$ac_objext \ 5738 conftest$ac_exeext conftest.$ac_ext 5739fi 5740 5741 5742 CFLAGS="$xorg_testset_save_CFLAGS" 5743 5744 eval supported=\$$cacheid 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5746$as_echo "$supported" >&6; } 5747 if test "$supported" = "yes" ; then 5748 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5749 found="yes" 5750 fi 5751 fi 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767xorg_testset_save_CFLAGS="$CFLAGS" 5768 5769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5774 $as_echo_n "(cached) " >&6 5775else 5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777/* end confdefs.h. */ 5778int i; 5779_ACEOF 5780if ac_fn_c_try_compile "$LINENO"; then : 5781 xorg_cv_cc_flag_unknown_warning_option=yes 5782else 5783 xorg_cv_cc_flag_unknown_warning_option=no 5784fi 5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5786fi 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5790 CFLAGS="$xorg_testset_save_CFLAGS" 5791fi 5792 5793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5796 fi 5797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5801 $as_echo_n "(cached) " >&6 5802else 5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5804/* end confdefs.h. */ 5805int i; 5806_ACEOF 5807if ac_fn_c_try_compile "$LINENO"; then : 5808 xorg_cv_cc_flag_unused_command_line_argument=yes 5809else 5810 xorg_cv_cc_flag_unused_command_line_argument=no 5811fi 5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5813fi 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5817 CFLAGS="$xorg_testset_save_CFLAGS" 5818fi 5819 5820found="no" 5821 5822 if test $found = "no" ; then 5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5825 fi 5826 5827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5829 fi 5830 5831 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5832 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5834$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5835 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5836 if eval \${$cacheid+:} false; then : 5837 $as_echo_n "(cached) " >&6 5838else 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841int i; 5842int 5843main () 5844{ 5845 5846 ; 5847 return 0; 5848} 5849_ACEOF 5850if ac_fn_c_try_link "$LINENO"; then : 5851 eval $cacheid=yes 5852else 5853 eval $cacheid=no 5854fi 5855rm -f core conftest.err conftest.$ac_objext \ 5856 conftest$ac_exeext conftest.$ac_ext 5857fi 5858 5859 5860 CFLAGS="$xorg_testset_save_CFLAGS" 5861 5862 eval supported=\$$cacheid 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5864$as_echo "$supported" >&6; } 5865 if test "$supported" = "yes" ; then 5866 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5867 found="yes" 5868 fi 5869 fi 5870 5871 5872 5873 5874 5875# This chunk adds additional warnings that could catch undesired effects. 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889xorg_testset_save_CFLAGS="$CFLAGS" 5890 5891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899/* end confdefs.h. */ 5900int i; 5901_ACEOF 5902if ac_fn_c_try_compile "$LINENO"; then : 5903 xorg_cv_cc_flag_unknown_warning_option=yes 5904else 5905 xorg_cv_cc_flag_unknown_warning_option=no 5906fi 5907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5908fi 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5912 CFLAGS="$xorg_testset_save_CFLAGS" 5913fi 5914 5915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5918 fi 5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5923 $as_echo_n "(cached) " >&6 5924else 5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5926/* end confdefs.h. */ 5927int i; 5928_ACEOF 5929if ac_fn_c_try_compile "$LINENO"; then : 5930 xorg_cv_cc_flag_unused_command_line_argument=yes 5931else 5932 xorg_cv_cc_flag_unused_command_line_argument=no 5933fi 5934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5935fi 5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5939 CFLAGS="$xorg_testset_save_CFLAGS" 5940fi 5941 5942found="no" 5943 5944 if test $found = "no" ; then 5945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5947 fi 5948 5949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5951 fi 5952 5953 CFLAGS="$CFLAGS -Wunused" 5954 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5956$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5957 cacheid=xorg_cv_cc_flag__Wunused 5958 if eval \${$cacheid+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963int i; 5964int 5965main () 5966{ 5967 5968 ; 5969 return 0; 5970} 5971_ACEOF 5972if ac_fn_c_try_link "$LINENO"; then : 5973 eval $cacheid=yes 5974else 5975 eval $cacheid=no 5976fi 5977rm -f core conftest.err conftest.$ac_objext \ 5978 conftest$ac_exeext conftest.$ac_ext 5979fi 5980 5981 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983 5984 eval supported=\$$cacheid 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5986$as_echo "$supported" >&6; } 5987 if test "$supported" = "yes" ; then 5988 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5989 found="yes" 5990 fi 5991 fi 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007xorg_testset_save_CFLAGS="$CFLAGS" 6008 6009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6014 $as_echo_n "(cached) " >&6 6015else 6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017/* end confdefs.h. */ 6018int i; 6019_ACEOF 6020if ac_fn_c_try_compile "$LINENO"; then : 6021 xorg_cv_cc_flag_unknown_warning_option=yes 6022else 6023 xorg_cv_cc_flag_unknown_warning_option=no 6024fi 6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6026fi 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6030 CFLAGS="$xorg_testset_save_CFLAGS" 6031fi 6032 6033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6036 fi 6037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6041 $as_echo_n "(cached) " >&6 6042else 6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6044/* end confdefs.h. */ 6045int i; 6046_ACEOF 6047if ac_fn_c_try_compile "$LINENO"; then : 6048 xorg_cv_cc_flag_unused_command_line_argument=yes 6049else 6050 xorg_cv_cc_flag_unused_command_line_argument=no 6051fi 6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6053fi 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6057 CFLAGS="$xorg_testset_save_CFLAGS" 6058fi 6059 6060found="no" 6061 6062 if test $found = "no" ; then 6063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6065 fi 6066 6067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6069 fi 6070 6071 CFLAGS="$CFLAGS -Wuninitialized" 6072 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6074$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6075 cacheid=xorg_cv_cc_flag__Wuninitialized 6076 if eval \${$cacheid+:} false; then : 6077 $as_echo_n "(cached) " >&6 6078else 6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6080/* end confdefs.h. */ 6081int i; 6082int 6083main () 6084{ 6085 6086 ; 6087 return 0; 6088} 6089_ACEOF 6090if ac_fn_c_try_link "$LINENO"; then : 6091 eval $cacheid=yes 6092else 6093 eval $cacheid=no 6094fi 6095rm -f core conftest.err conftest.$ac_objext \ 6096 conftest$ac_exeext conftest.$ac_ext 6097fi 6098 6099 6100 CFLAGS="$xorg_testset_save_CFLAGS" 6101 6102 eval supported=\$$cacheid 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6104$as_echo "$supported" >&6; } 6105 if test "$supported" = "yes" ; then 6106 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6107 found="yes" 6108 fi 6109 fi 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125xorg_testset_save_CFLAGS="$CFLAGS" 6126 6127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6135/* end confdefs.h. */ 6136int i; 6137_ACEOF 6138if ac_fn_c_try_compile "$LINENO"; then : 6139 xorg_cv_cc_flag_unknown_warning_option=yes 6140else 6141 xorg_cv_cc_flag_unknown_warning_option=no 6142fi 6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6144fi 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6148 CFLAGS="$xorg_testset_save_CFLAGS" 6149fi 6150 6151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6154 fi 6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6159 $as_echo_n "(cached) " >&6 6160else 6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6162/* end confdefs.h. */ 6163int i; 6164_ACEOF 6165if ac_fn_c_try_compile "$LINENO"; then : 6166 xorg_cv_cc_flag_unused_command_line_argument=yes 6167else 6168 xorg_cv_cc_flag_unused_command_line_argument=no 6169fi 6170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6171fi 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6175 CFLAGS="$xorg_testset_save_CFLAGS" 6176fi 6177 6178found="no" 6179 6180 if test $found = "no" ; then 6181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6183 fi 6184 6185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6187 fi 6188 6189 CFLAGS="$CFLAGS -Wshadow" 6190 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6192$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6193 cacheid=xorg_cv_cc_flag__Wshadow 6194 if eval \${$cacheid+:} false; then : 6195 $as_echo_n "(cached) " >&6 6196else 6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6198/* end confdefs.h. */ 6199int i; 6200int 6201main () 6202{ 6203 6204 ; 6205 return 0; 6206} 6207_ACEOF 6208if ac_fn_c_try_link "$LINENO"; then : 6209 eval $cacheid=yes 6210else 6211 eval $cacheid=no 6212fi 6213rm -f core conftest.err conftest.$ac_objext \ 6214 conftest$ac_exeext conftest.$ac_ext 6215fi 6216 6217 6218 CFLAGS="$xorg_testset_save_CFLAGS" 6219 6220 eval supported=\$$cacheid 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6222$as_echo "$supported" >&6; } 6223 if test "$supported" = "yes" ; then 6224 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6225 found="yes" 6226 fi 6227 fi 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243xorg_testset_save_CFLAGS="$CFLAGS" 6244 6245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6250 $as_echo_n "(cached) " >&6 6251else 6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6253/* end confdefs.h. */ 6254int i; 6255_ACEOF 6256if ac_fn_c_try_compile "$LINENO"; then : 6257 xorg_cv_cc_flag_unknown_warning_option=yes 6258else 6259 xorg_cv_cc_flag_unknown_warning_option=no 6260fi 6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6262fi 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6266 CFLAGS="$xorg_testset_save_CFLAGS" 6267fi 6268 6269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6272 fi 6273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6277 $as_echo_n "(cached) " >&6 6278else 6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6280/* end confdefs.h. */ 6281int i; 6282_ACEOF 6283if ac_fn_c_try_compile "$LINENO"; then : 6284 xorg_cv_cc_flag_unused_command_line_argument=yes 6285else 6286 xorg_cv_cc_flag_unused_command_line_argument=no 6287fi 6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6289fi 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6293 CFLAGS="$xorg_testset_save_CFLAGS" 6294fi 6295 6296found="no" 6297 6298 if test $found = "no" ; then 6299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6301 fi 6302 6303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6305 fi 6306 6307 CFLAGS="$CFLAGS -Wcast-qual" 6308 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6310$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6311 cacheid=xorg_cv_cc_flag__Wcast_qual 6312 if eval \${$cacheid+:} false; then : 6313 $as_echo_n "(cached) " >&6 6314else 6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6316/* end confdefs.h. */ 6317int i; 6318int 6319main () 6320{ 6321 6322 ; 6323 return 0; 6324} 6325_ACEOF 6326if ac_fn_c_try_link "$LINENO"; then : 6327 eval $cacheid=yes 6328else 6329 eval $cacheid=no 6330fi 6331rm -f core conftest.err conftest.$ac_objext \ 6332 conftest$ac_exeext conftest.$ac_ext 6333fi 6334 6335 6336 CFLAGS="$xorg_testset_save_CFLAGS" 6337 6338 eval supported=\$$cacheid 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6340$as_echo "$supported" >&6; } 6341 if test "$supported" = "yes" ; then 6342 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6343 found="yes" 6344 fi 6345 fi 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361xorg_testset_save_CFLAGS="$CFLAGS" 6362 6363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6368 $as_echo_n "(cached) " >&6 6369else 6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6371/* end confdefs.h. */ 6372int i; 6373_ACEOF 6374if ac_fn_c_try_compile "$LINENO"; then : 6375 xorg_cv_cc_flag_unknown_warning_option=yes 6376else 6377 xorg_cv_cc_flag_unknown_warning_option=no 6378fi 6379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6380fi 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6384 CFLAGS="$xorg_testset_save_CFLAGS" 6385fi 6386 6387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6390 fi 6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6395 $as_echo_n "(cached) " >&6 6396else 6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6398/* end confdefs.h. */ 6399int i; 6400_ACEOF 6401if ac_fn_c_try_compile "$LINENO"; then : 6402 xorg_cv_cc_flag_unused_command_line_argument=yes 6403else 6404 xorg_cv_cc_flag_unused_command_line_argument=no 6405fi 6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6407fi 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6411 CFLAGS="$xorg_testset_save_CFLAGS" 6412fi 6413 6414found="no" 6415 6416 if test $found = "no" ; then 6417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6419 fi 6420 6421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6423 fi 6424 6425 CFLAGS="$CFLAGS -Wmissing-noreturn" 6426 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6428$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6429 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6430 if eval \${$cacheid+:} false; then : 6431 $as_echo_n "(cached) " >&6 6432else 6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6434/* end confdefs.h. */ 6435int i; 6436int 6437main () 6438{ 6439 6440 ; 6441 return 0; 6442} 6443_ACEOF 6444if ac_fn_c_try_link "$LINENO"; then : 6445 eval $cacheid=yes 6446else 6447 eval $cacheid=no 6448fi 6449rm -f core conftest.err conftest.$ac_objext \ 6450 conftest$ac_exeext conftest.$ac_ext 6451fi 6452 6453 6454 CFLAGS="$xorg_testset_save_CFLAGS" 6455 6456 eval supported=\$$cacheid 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6458$as_echo "$supported" >&6; } 6459 if test "$supported" = "yes" ; then 6460 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6461 found="yes" 6462 fi 6463 fi 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479xorg_testset_save_CFLAGS="$CFLAGS" 6480 6481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6489/* end confdefs.h. */ 6490int i; 6491_ACEOF 6492if ac_fn_c_try_compile "$LINENO"; then : 6493 xorg_cv_cc_flag_unknown_warning_option=yes 6494else 6495 xorg_cv_cc_flag_unknown_warning_option=no 6496fi 6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6498fi 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6502 CFLAGS="$xorg_testset_save_CFLAGS" 6503fi 6504 6505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6508 fi 6509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514else 6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6516/* end confdefs.h. */ 6517int i; 6518_ACEOF 6519if ac_fn_c_try_compile "$LINENO"; then : 6520 xorg_cv_cc_flag_unused_command_line_argument=yes 6521else 6522 xorg_cv_cc_flag_unused_command_line_argument=no 6523fi 6524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6525fi 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6529 CFLAGS="$xorg_testset_save_CFLAGS" 6530fi 6531 6532found="no" 6533 6534 if test $found = "no" ; then 6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6537 fi 6538 6539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6541 fi 6542 6543 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6544 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6546$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6547 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6548 if eval \${$cacheid+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550else 6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6552/* end confdefs.h. */ 6553int i; 6554int 6555main () 6556{ 6557 6558 ; 6559 return 0; 6560} 6561_ACEOF 6562if ac_fn_c_try_link "$LINENO"; then : 6563 eval $cacheid=yes 6564else 6565 eval $cacheid=no 6566fi 6567rm -f core conftest.err conftest.$ac_objext \ 6568 conftest$ac_exeext conftest.$ac_ext 6569fi 6570 6571 6572 CFLAGS="$xorg_testset_save_CFLAGS" 6573 6574 eval supported=\$$cacheid 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6576$as_echo "$supported" >&6; } 6577 if test "$supported" = "yes" ; then 6578 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6579 found="yes" 6580 fi 6581 fi 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597xorg_testset_save_CFLAGS="$CFLAGS" 6598 6599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6604 $as_echo_n "(cached) " >&6 6605else 6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6607/* end confdefs.h. */ 6608int i; 6609_ACEOF 6610if ac_fn_c_try_compile "$LINENO"; then : 6611 xorg_cv_cc_flag_unknown_warning_option=yes 6612else 6613 xorg_cv_cc_flag_unknown_warning_option=no 6614fi 6615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6616fi 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6620 CFLAGS="$xorg_testset_save_CFLAGS" 6621fi 6622 6623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6626 fi 6627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6631 $as_echo_n "(cached) " >&6 6632else 6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6634/* end confdefs.h. */ 6635int i; 6636_ACEOF 6637if ac_fn_c_try_compile "$LINENO"; then : 6638 xorg_cv_cc_flag_unused_command_line_argument=yes 6639else 6640 xorg_cv_cc_flag_unused_command_line_argument=no 6641fi 6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6643fi 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6647 CFLAGS="$xorg_testset_save_CFLAGS" 6648fi 6649 6650found="no" 6651 6652 if test $found = "no" ; then 6653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6655 fi 6656 6657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6659 fi 6660 6661 CFLAGS="$CFLAGS -Wredundant-decls" 6662 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6664$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6665 cacheid=xorg_cv_cc_flag__Wredundant_decls 6666 if eval \${$cacheid+:} false; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670/* end confdefs.h. */ 6671int i; 6672int 6673main () 6674{ 6675 6676 ; 6677 return 0; 6678} 6679_ACEOF 6680if ac_fn_c_try_link "$LINENO"; then : 6681 eval $cacheid=yes 6682else 6683 eval $cacheid=no 6684fi 6685rm -f core conftest.err conftest.$ac_objext \ 6686 conftest$ac_exeext conftest.$ac_ext 6687fi 6688 6689 6690 CFLAGS="$xorg_testset_save_CFLAGS" 6691 6692 eval supported=\$$cacheid 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6694$as_echo "$supported" >&6; } 6695 if test "$supported" = "yes" ; then 6696 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6697 found="yes" 6698 fi 6699 fi 6700 6701 6702 6703# These are currently disabled because they are noisy. They will be enabled 6704# in the future once the codebase is sufficiently modernized to silence 6705# them. For now, I don't want them to drown out the other warnings. 6706# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6707# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6708# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6709 6710# Turn some warnings into errors, so we don't accidently get successful builds 6711# when there are problems that should be fixed. 6712 6713if test "x$SELECTIVE_WERROR" = "xyes" ; then 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727xorg_testset_save_CFLAGS="$CFLAGS" 6728 6729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6734 $as_echo_n "(cached) " >&6 6735else 6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6737/* end confdefs.h. */ 6738int i; 6739_ACEOF 6740if ac_fn_c_try_compile "$LINENO"; then : 6741 xorg_cv_cc_flag_unknown_warning_option=yes 6742else 6743 xorg_cv_cc_flag_unknown_warning_option=no 6744fi 6745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6746fi 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6750 CFLAGS="$xorg_testset_save_CFLAGS" 6751fi 6752 6753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6756 fi 6757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6761 $as_echo_n "(cached) " >&6 6762else 6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764/* end confdefs.h. */ 6765int i; 6766_ACEOF 6767if ac_fn_c_try_compile "$LINENO"; then : 6768 xorg_cv_cc_flag_unused_command_line_argument=yes 6769else 6770 xorg_cv_cc_flag_unused_command_line_argument=no 6771fi 6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6773fi 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6777 CFLAGS="$xorg_testset_save_CFLAGS" 6778fi 6779 6780found="no" 6781 6782 if test $found = "no" ; then 6783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6785 fi 6786 6787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6789 fi 6790 6791 CFLAGS="$CFLAGS -Werror=implicit" 6792 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6794$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6795 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6796 if eval \${$cacheid+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6800/* end confdefs.h. */ 6801int i; 6802int 6803main () 6804{ 6805 6806 ; 6807 return 0; 6808} 6809_ACEOF 6810if ac_fn_c_try_link "$LINENO"; then : 6811 eval $cacheid=yes 6812else 6813 eval $cacheid=no 6814fi 6815rm -f core conftest.err conftest.$ac_objext \ 6816 conftest$ac_exeext conftest.$ac_ext 6817fi 6818 6819 6820 CFLAGS="$xorg_testset_save_CFLAGS" 6821 6822 eval supported=\$$cacheid 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6824$as_echo "$supported" >&6; } 6825 if test "$supported" = "yes" ; then 6826 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6827 found="yes" 6828 fi 6829 fi 6830 6831 if test $found = "no" ; then 6832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6834 fi 6835 6836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6838 fi 6839 6840 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6841 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6843$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6844 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6845 if eval \${$cacheid+:} false; then : 6846 $as_echo_n "(cached) " >&6 6847else 6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6849/* end confdefs.h. */ 6850int i; 6851int 6852main () 6853{ 6854 6855 ; 6856 return 0; 6857} 6858_ACEOF 6859if ac_fn_c_try_link "$LINENO"; then : 6860 eval $cacheid=yes 6861else 6862 eval $cacheid=no 6863fi 6864rm -f core conftest.err conftest.$ac_objext \ 6865 conftest$ac_exeext conftest.$ac_ext 6866fi 6867 6868 6869 CFLAGS="$xorg_testset_save_CFLAGS" 6870 6871 eval supported=\$$cacheid 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6873$as_echo "$supported" >&6; } 6874 if test "$supported" = "yes" ; then 6875 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6876 found="yes" 6877 fi 6878 fi 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894xorg_testset_save_CFLAGS="$CFLAGS" 6895 6896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6901 $as_echo_n "(cached) " >&6 6902else 6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6904/* end confdefs.h. */ 6905int i; 6906_ACEOF 6907if ac_fn_c_try_compile "$LINENO"; then : 6908 xorg_cv_cc_flag_unknown_warning_option=yes 6909else 6910 xorg_cv_cc_flag_unknown_warning_option=no 6911fi 6912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6913fi 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6917 CFLAGS="$xorg_testset_save_CFLAGS" 6918fi 6919 6920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6923 fi 6924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6931/* end confdefs.h. */ 6932int i; 6933_ACEOF 6934if ac_fn_c_try_compile "$LINENO"; then : 6935 xorg_cv_cc_flag_unused_command_line_argument=yes 6936else 6937 xorg_cv_cc_flag_unused_command_line_argument=no 6938fi 6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6940fi 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6944 CFLAGS="$xorg_testset_save_CFLAGS" 6945fi 6946 6947found="no" 6948 6949 if test $found = "no" ; then 6950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6952 fi 6953 6954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6956 fi 6957 6958 CFLAGS="$CFLAGS -Werror=nonnull" 6959 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6961$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6962 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6963 if eval \${$cacheid+:} false; then : 6964 $as_echo_n "(cached) " >&6 6965else 6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968int i; 6969int 6970main () 6971{ 6972 6973 ; 6974 return 0; 6975} 6976_ACEOF 6977if ac_fn_c_try_link "$LINENO"; then : 6978 eval $cacheid=yes 6979else 6980 eval $cacheid=no 6981fi 6982rm -f core conftest.err conftest.$ac_objext \ 6983 conftest$ac_exeext conftest.$ac_ext 6984fi 6985 6986 6987 CFLAGS="$xorg_testset_save_CFLAGS" 6988 6989 eval supported=\$$cacheid 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6991$as_echo "$supported" >&6; } 6992 if test "$supported" = "yes" ; then 6993 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6994 found="yes" 6995 fi 6996 fi 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012xorg_testset_save_CFLAGS="$CFLAGS" 7013 7014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7019 $as_echo_n "(cached) " >&6 7020else 7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7022/* end confdefs.h. */ 7023int i; 7024_ACEOF 7025if ac_fn_c_try_compile "$LINENO"; then : 7026 xorg_cv_cc_flag_unknown_warning_option=yes 7027else 7028 xorg_cv_cc_flag_unknown_warning_option=no 7029fi 7030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7031fi 7032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7035 CFLAGS="$xorg_testset_save_CFLAGS" 7036fi 7037 7038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7041 fi 7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047else 7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7049/* end confdefs.h. */ 7050int i; 7051_ACEOF 7052if ac_fn_c_try_compile "$LINENO"; then : 7053 xorg_cv_cc_flag_unused_command_line_argument=yes 7054else 7055 xorg_cv_cc_flag_unused_command_line_argument=no 7056fi 7057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7058fi 7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7062 CFLAGS="$xorg_testset_save_CFLAGS" 7063fi 7064 7065found="no" 7066 7067 if test $found = "no" ; then 7068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7070 fi 7071 7072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7074 fi 7075 7076 CFLAGS="$CFLAGS -Werror=init-self" 7077 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7079$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7080 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7081 if eval \${$cacheid+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7085/* end confdefs.h. */ 7086int i; 7087int 7088main () 7089{ 7090 7091 ; 7092 return 0; 7093} 7094_ACEOF 7095if ac_fn_c_try_link "$LINENO"; then : 7096 eval $cacheid=yes 7097else 7098 eval $cacheid=no 7099fi 7100rm -f core conftest.err conftest.$ac_objext \ 7101 conftest$ac_exeext conftest.$ac_ext 7102fi 7103 7104 7105 CFLAGS="$xorg_testset_save_CFLAGS" 7106 7107 eval supported=\$$cacheid 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7109$as_echo "$supported" >&6; } 7110 if test "$supported" = "yes" ; then 7111 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7112 found="yes" 7113 fi 7114 fi 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130xorg_testset_save_CFLAGS="$CFLAGS" 7131 7132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7137 $as_echo_n "(cached) " >&6 7138else 7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7140/* end confdefs.h. */ 7141int i; 7142_ACEOF 7143if ac_fn_c_try_compile "$LINENO"; then : 7144 xorg_cv_cc_flag_unknown_warning_option=yes 7145else 7146 xorg_cv_cc_flag_unknown_warning_option=no 7147fi 7148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7149fi 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7153 CFLAGS="$xorg_testset_save_CFLAGS" 7154fi 7155 7156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7159 fi 7160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7164 $as_echo_n "(cached) " >&6 7165else 7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7167/* end confdefs.h. */ 7168int i; 7169_ACEOF 7170if ac_fn_c_try_compile "$LINENO"; then : 7171 xorg_cv_cc_flag_unused_command_line_argument=yes 7172else 7173 xorg_cv_cc_flag_unused_command_line_argument=no 7174fi 7175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7176fi 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7180 CFLAGS="$xorg_testset_save_CFLAGS" 7181fi 7182 7183found="no" 7184 7185 if test $found = "no" ; then 7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7188 fi 7189 7190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7192 fi 7193 7194 CFLAGS="$CFLAGS -Werror=main" 7195 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7197$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7198 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7199 if eval \${$cacheid+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204int i; 7205int 7206main () 7207{ 7208 7209 ; 7210 return 0; 7211} 7212_ACEOF 7213if ac_fn_c_try_link "$LINENO"; then : 7214 eval $cacheid=yes 7215else 7216 eval $cacheid=no 7217fi 7218rm -f core conftest.err conftest.$ac_objext \ 7219 conftest$ac_exeext conftest.$ac_ext 7220fi 7221 7222 7223 CFLAGS="$xorg_testset_save_CFLAGS" 7224 7225 eval supported=\$$cacheid 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7227$as_echo "$supported" >&6; } 7228 if test "$supported" = "yes" ; then 7229 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7230 found="yes" 7231 fi 7232 fi 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248xorg_testset_save_CFLAGS="$CFLAGS" 7249 7250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7258/* end confdefs.h. */ 7259int i; 7260_ACEOF 7261if ac_fn_c_try_compile "$LINENO"; then : 7262 xorg_cv_cc_flag_unknown_warning_option=yes 7263else 7264 xorg_cv_cc_flag_unknown_warning_option=no 7265fi 7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7267fi 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7271 CFLAGS="$xorg_testset_save_CFLAGS" 7272fi 7273 7274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7277 fi 7278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7282 $as_echo_n "(cached) " >&6 7283else 7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7285/* end confdefs.h. */ 7286int i; 7287_ACEOF 7288if ac_fn_c_try_compile "$LINENO"; then : 7289 xorg_cv_cc_flag_unused_command_line_argument=yes 7290else 7291 xorg_cv_cc_flag_unused_command_line_argument=no 7292fi 7293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7294fi 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7298 CFLAGS="$xorg_testset_save_CFLAGS" 7299fi 7300 7301found="no" 7302 7303 if test $found = "no" ; then 7304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7306 fi 7307 7308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7310 fi 7311 7312 CFLAGS="$CFLAGS -Werror=missing-braces" 7313 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7315$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7316 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7317 if eval \${$cacheid+:} false; then : 7318 $as_echo_n "(cached) " >&6 7319else 7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7321/* end confdefs.h. */ 7322int i; 7323int 7324main () 7325{ 7326 7327 ; 7328 return 0; 7329} 7330_ACEOF 7331if ac_fn_c_try_link "$LINENO"; then : 7332 eval $cacheid=yes 7333else 7334 eval $cacheid=no 7335fi 7336rm -f core conftest.err conftest.$ac_objext \ 7337 conftest$ac_exeext conftest.$ac_ext 7338fi 7339 7340 7341 CFLAGS="$xorg_testset_save_CFLAGS" 7342 7343 eval supported=\$$cacheid 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7345$as_echo "$supported" >&6; } 7346 if test "$supported" = "yes" ; then 7347 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7348 found="yes" 7349 fi 7350 fi 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366xorg_testset_save_CFLAGS="$CFLAGS" 7367 7368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7373 $as_echo_n "(cached) " >&6 7374else 7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7376/* end confdefs.h. */ 7377int i; 7378_ACEOF 7379if ac_fn_c_try_compile "$LINENO"; then : 7380 xorg_cv_cc_flag_unknown_warning_option=yes 7381else 7382 xorg_cv_cc_flag_unknown_warning_option=no 7383fi 7384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7385fi 7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7389 CFLAGS="$xorg_testset_save_CFLAGS" 7390fi 7391 7392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7395 fi 7396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404int i; 7405_ACEOF 7406if ac_fn_c_try_compile "$LINENO"; then : 7407 xorg_cv_cc_flag_unused_command_line_argument=yes 7408else 7409 xorg_cv_cc_flag_unused_command_line_argument=no 7410fi 7411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7412fi 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7416 CFLAGS="$xorg_testset_save_CFLAGS" 7417fi 7418 7419found="no" 7420 7421 if test $found = "no" ; then 7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7424 fi 7425 7426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7428 fi 7429 7430 CFLAGS="$CFLAGS -Werror=sequence-point" 7431 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7433$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7434 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7435 if eval \${$cacheid+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7439/* end confdefs.h. */ 7440int i; 7441int 7442main () 7443{ 7444 7445 ; 7446 return 0; 7447} 7448_ACEOF 7449if ac_fn_c_try_link "$LINENO"; then : 7450 eval $cacheid=yes 7451else 7452 eval $cacheid=no 7453fi 7454rm -f core conftest.err conftest.$ac_objext \ 7455 conftest$ac_exeext conftest.$ac_ext 7456fi 7457 7458 7459 CFLAGS="$xorg_testset_save_CFLAGS" 7460 7461 eval supported=\$$cacheid 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7463$as_echo "$supported" >&6; } 7464 if test "$supported" = "yes" ; then 7465 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7466 found="yes" 7467 fi 7468 fi 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484xorg_testset_save_CFLAGS="$CFLAGS" 7485 7486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7494/* end confdefs.h. */ 7495int i; 7496_ACEOF 7497if ac_fn_c_try_compile "$LINENO"; then : 7498 xorg_cv_cc_flag_unknown_warning_option=yes 7499else 7500 xorg_cv_cc_flag_unknown_warning_option=no 7501fi 7502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7503fi 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7507 CFLAGS="$xorg_testset_save_CFLAGS" 7508fi 7509 7510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7513 fi 7514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7521/* end confdefs.h. */ 7522int i; 7523_ACEOF 7524if ac_fn_c_try_compile "$LINENO"; then : 7525 xorg_cv_cc_flag_unused_command_line_argument=yes 7526else 7527 xorg_cv_cc_flag_unused_command_line_argument=no 7528fi 7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7530fi 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7534 CFLAGS="$xorg_testset_save_CFLAGS" 7535fi 7536 7537found="no" 7538 7539 if test $found = "no" ; then 7540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7542 fi 7543 7544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7546 fi 7547 7548 CFLAGS="$CFLAGS -Werror=return-type" 7549 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7551$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7552 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7553 if eval \${$cacheid+:} false; then : 7554 $as_echo_n "(cached) " >&6 7555else 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557/* end confdefs.h. */ 7558int i; 7559int 7560main () 7561{ 7562 7563 ; 7564 return 0; 7565} 7566_ACEOF 7567if ac_fn_c_try_link "$LINENO"; then : 7568 eval $cacheid=yes 7569else 7570 eval $cacheid=no 7571fi 7572rm -f core conftest.err conftest.$ac_objext \ 7573 conftest$ac_exeext conftest.$ac_ext 7574fi 7575 7576 7577 CFLAGS="$xorg_testset_save_CFLAGS" 7578 7579 eval supported=\$$cacheid 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7581$as_echo "$supported" >&6; } 7582 if test "$supported" = "yes" ; then 7583 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7584 found="yes" 7585 fi 7586 fi 7587 7588 if test $found = "no" ; then 7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7591 fi 7592 7593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7595 fi 7596 7597 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7598 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7600$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7601 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7602 if eval \${$cacheid+:} false; then : 7603 $as_echo_n "(cached) " >&6 7604else 7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7606/* end confdefs.h. */ 7607int i; 7608int 7609main () 7610{ 7611 7612 ; 7613 return 0; 7614} 7615_ACEOF 7616if ac_fn_c_try_link "$LINENO"; then : 7617 eval $cacheid=yes 7618else 7619 eval $cacheid=no 7620fi 7621rm -f core conftest.err conftest.$ac_objext \ 7622 conftest$ac_exeext conftest.$ac_ext 7623fi 7624 7625 7626 CFLAGS="$xorg_testset_save_CFLAGS" 7627 7628 eval supported=\$$cacheid 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7630$as_echo "$supported" >&6; } 7631 if test "$supported" = "yes" ; then 7632 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7633 found="yes" 7634 fi 7635 fi 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651xorg_testset_save_CFLAGS="$CFLAGS" 7652 7653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7661/* end confdefs.h. */ 7662int i; 7663_ACEOF 7664if ac_fn_c_try_compile "$LINENO"; then : 7665 xorg_cv_cc_flag_unknown_warning_option=yes 7666else 7667 xorg_cv_cc_flag_unknown_warning_option=no 7668fi 7669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7670fi 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7674 CFLAGS="$xorg_testset_save_CFLAGS" 7675fi 7676 7677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7680 fi 7681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7685 $as_echo_n "(cached) " >&6 7686else 7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7688/* end confdefs.h. */ 7689int i; 7690_ACEOF 7691if ac_fn_c_try_compile "$LINENO"; then : 7692 xorg_cv_cc_flag_unused_command_line_argument=yes 7693else 7694 xorg_cv_cc_flag_unused_command_line_argument=no 7695fi 7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7697fi 7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7701 CFLAGS="$xorg_testset_save_CFLAGS" 7702fi 7703 7704found="no" 7705 7706 if test $found = "no" ; then 7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7709 fi 7710 7711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7713 fi 7714 7715 CFLAGS="$CFLAGS -Werror=trigraphs" 7716 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7718$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7719 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7720 if eval \${$cacheid+:} false; then : 7721 $as_echo_n "(cached) " >&6 7722else 7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725int i; 7726int 7727main () 7728{ 7729 7730 ; 7731 return 0; 7732} 7733_ACEOF 7734if ac_fn_c_try_link "$LINENO"; then : 7735 eval $cacheid=yes 7736else 7737 eval $cacheid=no 7738fi 7739rm -f core conftest.err conftest.$ac_objext \ 7740 conftest$ac_exeext conftest.$ac_ext 7741fi 7742 7743 7744 CFLAGS="$xorg_testset_save_CFLAGS" 7745 7746 eval supported=\$$cacheid 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7748$as_echo "$supported" >&6; } 7749 if test "$supported" = "yes" ; then 7750 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7751 found="yes" 7752 fi 7753 fi 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769xorg_testset_save_CFLAGS="$CFLAGS" 7770 7771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7774$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7775if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779/* end confdefs.h. */ 7780int i; 7781_ACEOF 7782if ac_fn_c_try_compile "$LINENO"; then : 7783 xorg_cv_cc_flag_unknown_warning_option=yes 7784else 7785 xorg_cv_cc_flag_unknown_warning_option=no 7786fi 7787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7788fi 7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7790$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7792 CFLAGS="$xorg_testset_save_CFLAGS" 7793fi 7794 7795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7798 fi 7799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7801$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7802if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7803 $as_echo_n "(cached) " >&6 7804else 7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7806/* end confdefs.h. */ 7807int i; 7808_ACEOF 7809if ac_fn_c_try_compile "$LINENO"; then : 7810 xorg_cv_cc_flag_unused_command_line_argument=yes 7811else 7812 xorg_cv_cc_flag_unused_command_line_argument=no 7813fi 7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7815fi 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7817$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7819 CFLAGS="$xorg_testset_save_CFLAGS" 7820fi 7821 7822found="no" 7823 7824 if test $found = "no" ; then 7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7827 fi 7828 7829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7831 fi 7832 7833 CFLAGS="$CFLAGS -Werror=array-bounds" 7834 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7836$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7837 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7838 if eval \${$cacheid+:} false; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7842/* end confdefs.h. */ 7843int i; 7844int 7845main () 7846{ 7847 7848 ; 7849 return 0; 7850} 7851_ACEOF 7852if ac_fn_c_try_link "$LINENO"; then : 7853 eval $cacheid=yes 7854else 7855 eval $cacheid=no 7856fi 7857rm -f core conftest.err conftest.$ac_objext \ 7858 conftest$ac_exeext conftest.$ac_ext 7859fi 7860 7861 7862 CFLAGS="$xorg_testset_save_CFLAGS" 7863 7864 eval supported=\$$cacheid 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7866$as_echo "$supported" >&6; } 7867 if test "$supported" = "yes" ; then 7868 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7869 found="yes" 7870 fi 7871 fi 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887xorg_testset_save_CFLAGS="$CFLAGS" 7888 7889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7892$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7893if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7894 $as_echo_n "(cached) " >&6 7895else 7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7897/* end confdefs.h. */ 7898int i; 7899_ACEOF 7900if ac_fn_c_try_compile "$LINENO"; then : 7901 xorg_cv_cc_flag_unknown_warning_option=yes 7902else 7903 xorg_cv_cc_flag_unknown_warning_option=no 7904fi 7905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7906fi 7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7908$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7910 CFLAGS="$xorg_testset_save_CFLAGS" 7911fi 7912 7913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7916 fi 7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7919$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7920if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7924/* end confdefs.h. */ 7925int i; 7926_ACEOF 7927if ac_fn_c_try_compile "$LINENO"; then : 7928 xorg_cv_cc_flag_unused_command_line_argument=yes 7929else 7930 xorg_cv_cc_flag_unused_command_line_argument=no 7931fi 7932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7933fi 7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7935$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7937 CFLAGS="$xorg_testset_save_CFLAGS" 7938fi 7939 7940found="no" 7941 7942 if test $found = "no" ; then 7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7945 fi 7946 7947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7949 fi 7950 7951 CFLAGS="$CFLAGS -Werror=write-strings" 7952 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7954$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7955 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7956 if eval \${$cacheid+:} false; then : 7957 $as_echo_n "(cached) " >&6 7958else 7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960/* end confdefs.h. */ 7961int i; 7962int 7963main () 7964{ 7965 7966 ; 7967 return 0; 7968} 7969_ACEOF 7970if ac_fn_c_try_link "$LINENO"; then : 7971 eval $cacheid=yes 7972else 7973 eval $cacheid=no 7974fi 7975rm -f core conftest.err conftest.$ac_objext \ 7976 conftest$ac_exeext conftest.$ac_ext 7977fi 7978 7979 7980 CFLAGS="$xorg_testset_save_CFLAGS" 7981 7982 eval supported=\$$cacheid 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7984$as_echo "$supported" >&6; } 7985 if test "$supported" = "yes" ; then 7986 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7987 found="yes" 7988 fi 7989 fi 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005xorg_testset_save_CFLAGS="$CFLAGS" 8006 8007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8010$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8011if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8015/* end confdefs.h. */ 8016int i; 8017_ACEOF 8018if ac_fn_c_try_compile "$LINENO"; then : 8019 xorg_cv_cc_flag_unknown_warning_option=yes 8020else 8021 xorg_cv_cc_flag_unknown_warning_option=no 8022fi 8023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8024fi 8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8026$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8028 CFLAGS="$xorg_testset_save_CFLAGS" 8029fi 8030 8031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8034 fi 8035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8037$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8038if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8039 $as_echo_n "(cached) " >&6 8040else 8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8042/* end confdefs.h. */ 8043int i; 8044_ACEOF 8045if ac_fn_c_try_compile "$LINENO"; then : 8046 xorg_cv_cc_flag_unused_command_line_argument=yes 8047else 8048 xorg_cv_cc_flag_unused_command_line_argument=no 8049fi 8050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8051fi 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8053$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8055 CFLAGS="$xorg_testset_save_CFLAGS" 8056fi 8057 8058found="no" 8059 8060 if test $found = "no" ; then 8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8063 fi 8064 8065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8067 fi 8068 8069 CFLAGS="$CFLAGS -Werror=address" 8070 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8072$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8073 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8074 if eval \${$cacheid+:} false; then : 8075 $as_echo_n "(cached) " >&6 8076else 8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079int i; 8080int 8081main () 8082{ 8083 8084 ; 8085 return 0; 8086} 8087_ACEOF 8088if ac_fn_c_try_link "$LINENO"; then : 8089 eval $cacheid=yes 8090else 8091 eval $cacheid=no 8092fi 8093rm -f core conftest.err conftest.$ac_objext \ 8094 conftest$ac_exeext conftest.$ac_ext 8095fi 8096 8097 8098 CFLAGS="$xorg_testset_save_CFLAGS" 8099 8100 eval supported=\$$cacheid 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8102$as_echo "$supported" >&6; } 8103 if test "$supported" = "yes" ; then 8104 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8105 found="yes" 8106 fi 8107 fi 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123xorg_testset_save_CFLAGS="$CFLAGS" 8124 8125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8130 $as_echo_n "(cached) " >&6 8131else 8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8133/* end confdefs.h. */ 8134int i; 8135_ACEOF 8136if ac_fn_c_try_compile "$LINENO"; then : 8137 xorg_cv_cc_flag_unknown_warning_option=yes 8138else 8139 xorg_cv_cc_flag_unknown_warning_option=no 8140fi 8141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8142fi 8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8146 CFLAGS="$xorg_testset_save_CFLAGS" 8147fi 8148 8149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8152 fi 8153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8157 $as_echo_n "(cached) " >&6 8158else 8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8160/* end confdefs.h. */ 8161int i; 8162_ACEOF 8163if ac_fn_c_try_compile "$LINENO"; then : 8164 xorg_cv_cc_flag_unused_command_line_argument=yes 8165else 8166 xorg_cv_cc_flag_unused_command_line_argument=no 8167fi 8168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8169fi 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8172 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8173 CFLAGS="$xorg_testset_save_CFLAGS" 8174fi 8175 8176found="no" 8177 8178 if test $found = "no" ; then 8179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8181 fi 8182 8183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8185 fi 8186 8187 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8188 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8190$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8191 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8192 if eval \${$cacheid+:} false; then : 8193 $as_echo_n "(cached) " >&6 8194else 8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8196/* end confdefs.h. */ 8197int i; 8198int 8199main () 8200{ 8201 8202 ; 8203 return 0; 8204} 8205_ACEOF 8206if ac_fn_c_try_link "$LINENO"; then : 8207 eval $cacheid=yes 8208else 8209 eval $cacheid=no 8210fi 8211rm -f core conftest.err conftest.$ac_objext \ 8212 conftest$ac_exeext conftest.$ac_ext 8213fi 8214 8215 8216 CFLAGS="$xorg_testset_save_CFLAGS" 8217 8218 eval supported=\$$cacheid 8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8220$as_echo "$supported" >&6; } 8221 if test "$supported" = "yes" ; then 8222 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8223 found="yes" 8224 fi 8225 fi 8226 8227 if test $found = "no" ; then 8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8230 fi 8231 8232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8234 fi 8235 8236 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8237 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8239$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8240 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8241 if eval \${$cacheid+:} false; then : 8242 $as_echo_n "(cached) " >&6 8243else 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246int i; 8247int 8248main () 8249{ 8250 8251 ; 8252 return 0; 8253} 8254_ACEOF 8255if ac_fn_c_try_link "$LINENO"; then : 8256 eval $cacheid=yes 8257else 8258 eval $cacheid=no 8259fi 8260rm -f core conftest.err conftest.$ac_objext \ 8261 conftest$ac_exeext conftest.$ac_ext 8262fi 8263 8264 8265 CFLAGS="$xorg_testset_save_CFLAGS" 8266 8267 eval supported=\$$cacheid 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8269$as_echo "$supported" >&6; } 8270 if test "$supported" = "yes" ; then 8271 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8272 found="yes" 8273 fi 8274 fi 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290xorg_testset_save_CFLAGS="$CFLAGS" 8291 8292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8297 $as_echo_n "(cached) " >&6 8298else 8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8300/* end confdefs.h. */ 8301int i; 8302_ACEOF 8303if ac_fn_c_try_compile "$LINENO"; then : 8304 xorg_cv_cc_flag_unknown_warning_option=yes 8305else 8306 xorg_cv_cc_flag_unknown_warning_option=no 8307fi 8308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8309fi 8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314fi 8315 8316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8319 fi 8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8324 $as_echo_n "(cached) " >&6 8325else 8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8327/* end confdefs.h. */ 8328int i; 8329_ACEOF 8330if ac_fn_c_try_compile "$LINENO"; then : 8331 xorg_cv_cc_flag_unused_command_line_argument=yes 8332else 8333 xorg_cv_cc_flag_unused_command_line_argument=no 8334fi 8335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8336fi 8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8340 CFLAGS="$xorg_testset_save_CFLAGS" 8341fi 8342 8343found="no" 8344 8345 if test $found = "no" ; then 8346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8348 fi 8349 8350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8352 fi 8353 8354 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8355 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8357$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8358 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8359 if eval \${$cacheid+:} false; then : 8360 $as_echo_n "(cached) " >&6 8361else 8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363/* end confdefs.h. */ 8364int i; 8365int 8366main () 8367{ 8368 8369 ; 8370 return 0; 8371} 8372_ACEOF 8373if ac_fn_c_try_link "$LINENO"; then : 8374 eval $cacheid=yes 8375else 8376 eval $cacheid=no 8377fi 8378rm -f core conftest.err conftest.$ac_objext \ 8379 conftest$ac_exeext conftest.$ac_ext 8380fi 8381 8382 8383 CFLAGS="$xorg_testset_save_CFLAGS" 8384 8385 eval supported=\$$cacheid 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8387$as_echo "$supported" >&6; } 8388 if test "$supported" = "yes" ; then 8389 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8390 found="yes" 8391 fi 8392 fi 8393 8394 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8395else 8396{ $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 8397$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;} 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411xorg_testset_save_CFLAGS="$CFLAGS" 8412 8413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421/* end confdefs.h. */ 8422int i; 8423_ACEOF 8424if ac_fn_c_try_compile "$LINENO"; then : 8425 xorg_cv_cc_flag_unknown_warning_option=yes 8426else 8427 xorg_cv_cc_flag_unknown_warning_option=no 8428fi 8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8430fi 8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8434 CFLAGS="$xorg_testset_save_CFLAGS" 8435fi 8436 8437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8440 fi 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448/* end confdefs.h. */ 8449int i; 8450_ACEOF 8451if ac_fn_c_try_compile "$LINENO"; then : 8452 xorg_cv_cc_flag_unused_command_line_argument=yes 8453else 8454 xorg_cv_cc_flag_unused_command_line_argument=no 8455fi 8456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8457fi 8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8461 CFLAGS="$xorg_testset_save_CFLAGS" 8462fi 8463 8464found="no" 8465 8466 if test $found = "no" ; then 8467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8469 fi 8470 8471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8473 fi 8474 8475 CFLAGS="$CFLAGS -Wimplicit" 8476 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8478$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8479 cacheid=xorg_cv_cc_flag__Wimplicit 8480 if eval \${$cacheid+:} false; then : 8481 $as_echo_n "(cached) " >&6 8482else 8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485int i; 8486int 8487main () 8488{ 8489 8490 ; 8491 return 0; 8492} 8493_ACEOF 8494if ac_fn_c_try_link "$LINENO"; then : 8495 eval $cacheid=yes 8496else 8497 eval $cacheid=no 8498fi 8499rm -f core conftest.err conftest.$ac_objext \ 8500 conftest$ac_exeext conftest.$ac_ext 8501fi 8502 8503 8504 CFLAGS="$xorg_testset_save_CFLAGS" 8505 8506 eval supported=\$$cacheid 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8508$as_echo "$supported" >&6; } 8509 if test "$supported" = "yes" ; then 8510 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8511 found="yes" 8512 fi 8513 fi 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529xorg_testset_save_CFLAGS="$CFLAGS" 8530 8531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8536 $as_echo_n "(cached) " >&6 8537else 8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8539/* end confdefs.h. */ 8540int i; 8541_ACEOF 8542if ac_fn_c_try_compile "$LINENO"; then : 8543 xorg_cv_cc_flag_unknown_warning_option=yes 8544else 8545 xorg_cv_cc_flag_unknown_warning_option=no 8546fi 8547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8548fi 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8552 CFLAGS="$xorg_testset_save_CFLAGS" 8553fi 8554 8555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8558 fi 8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8563 $as_echo_n "(cached) " >&6 8564else 8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8566/* end confdefs.h. */ 8567int i; 8568_ACEOF 8569if ac_fn_c_try_compile "$LINENO"; then : 8570 xorg_cv_cc_flag_unused_command_line_argument=yes 8571else 8572 xorg_cv_cc_flag_unused_command_line_argument=no 8573fi 8574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8575fi 8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8579 CFLAGS="$xorg_testset_save_CFLAGS" 8580fi 8581 8582found="no" 8583 8584 if test $found = "no" ; then 8585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8587 fi 8588 8589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8591 fi 8592 8593 CFLAGS="$CFLAGS -Wnonnull" 8594 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8596$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8597 cacheid=xorg_cv_cc_flag__Wnonnull 8598 if eval \${$cacheid+:} false; then : 8599 $as_echo_n "(cached) " >&6 8600else 8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8602/* end confdefs.h. */ 8603int i; 8604int 8605main () 8606{ 8607 8608 ; 8609 return 0; 8610} 8611_ACEOF 8612if ac_fn_c_try_link "$LINENO"; then : 8613 eval $cacheid=yes 8614else 8615 eval $cacheid=no 8616fi 8617rm -f core conftest.err conftest.$ac_objext \ 8618 conftest$ac_exeext conftest.$ac_ext 8619fi 8620 8621 8622 CFLAGS="$xorg_testset_save_CFLAGS" 8623 8624 eval supported=\$$cacheid 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8626$as_echo "$supported" >&6; } 8627 if test "$supported" = "yes" ; then 8628 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8629 found="yes" 8630 fi 8631 fi 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647xorg_testset_save_CFLAGS="$CFLAGS" 8648 8649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8654 $as_echo_n "(cached) " >&6 8655else 8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8657/* end confdefs.h. */ 8658int i; 8659_ACEOF 8660if ac_fn_c_try_compile "$LINENO"; then : 8661 xorg_cv_cc_flag_unknown_warning_option=yes 8662else 8663 xorg_cv_cc_flag_unknown_warning_option=no 8664fi 8665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8666fi 8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8670 CFLAGS="$xorg_testset_save_CFLAGS" 8671fi 8672 8673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8676 fi 8677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8681 $as_echo_n "(cached) " >&6 8682else 8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684/* end confdefs.h. */ 8685int i; 8686_ACEOF 8687if ac_fn_c_try_compile "$LINENO"; then : 8688 xorg_cv_cc_flag_unused_command_line_argument=yes 8689else 8690 xorg_cv_cc_flag_unused_command_line_argument=no 8691fi 8692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8693fi 8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8697 CFLAGS="$xorg_testset_save_CFLAGS" 8698fi 8699 8700found="no" 8701 8702 if test $found = "no" ; then 8703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8705 fi 8706 8707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8709 fi 8710 8711 CFLAGS="$CFLAGS -Winit-self" 8712 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8714$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8715 cacheid=xorg_cv_cc_flag__Winit_self 8716 if eval \${$cacheid+:} false; then : 8717 $as_echo_n "(cached) " >&6 8718else 8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8720/* end confdefs.h. */ 8721int i; 8722int 8723main () 8724{ 8725 8726 ; 8727 return 0; 8728} 8729_ACEOF 8730if ac_fn_c_try_link "$LINENO"; then : 8731 eval $cacheid=yes 8732else 8733 eval $cacheid=no 8734fi 8735rm -f core conftest.err conftest.$ac_objext \ 8736 conftest$ac_exeext conftest.$ac_ext 8737fi 8738 8739 8740 CFLAGS="$xorg_testset_save_CFLAGS" 8741 8742 eval supported=\$$cacheid 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8744$as_echo "$supported" >&6; } 8745 if test "$supported" = "yes" ; then 8746 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8747 found="yes" 8748 fi 8749 fi 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765xorg_testset_save_CFLAGS="$CFLAGS" 8766 8767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775/* end confdefs.h. */ 8776int i; 8777_ACEOF 8778if ac_fn_c_try_compile "$LINENO"; then : 8779 xorg_cv_cc_flag_unknown_warning_option=yes 8780else 8781 xorg_cv_cc_flag_unknown_warning_option=no 8782fi 8783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8784fi 8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8788 CFLAGS="$xorg_testset_save_CFLAGS" 8789fi 8790 8791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8794 fi 8795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8799 $as_echo_n "(cached) " >&6 8800else 8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8802/* end confdefs.h. */ 8803int i; 8804_ACEOF 8805if ac_fn_c_try_compile "$LINENO"; then : 8806 xorg_cv_cc_flag_unused_command_line_argument=yes 8807else 8808 xorg_cv_cc_flag_unused_command_line_argument=no 8809fi 8810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8811fi 8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8815 CFLAGS="$xorg_testset_save_CFLAGS" 8816fi 8817 8818found="no" 8819 8820 if test $found = "no" ; then 8821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8823 fi 8824 8825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8827 fi 8828 8829 CFLAGS="$CFLAGS -Wmain" 8830 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8832$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8833 cacheid=xorg_cv_cc_flag__Wmain 8834 if eval \${$cacheid+:} false; then : 8835 $as_echo_n "(cached) " >&6 8836else 8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8838/* end confdefs.h. */ 8839int i; 8840int 8841main () 8842{ 8843 8844 ; 8845 return 0; 8846} 8847_ACEOF 8848if ac_fn_c_try_link "$LINENO"; then : 8849 eval $cacheid=yes 8850else 8851 eval $cacheid=no 8852fi 8853rm -f core conftest.err conftest.$ac_objext \ 8854 conftest$ac_exeext conftest.$ac_ext 8855fi 8856 8857 8858 CFLAGS="$xorg_testset_save_CFLAGS" 8859 8860 eval supported=\$$cacheid 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8862$as_echo "$supported" >&6; } 8863 if test "$supported" = "yes" ; then 8864 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8865 found="yes" 8866 fi 8867 fi 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883xorg_testset_save_CFLAGS="$CFLAGS" 8884 8885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8890 $as_echo_n "(cached) " >&6 8891else 8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8893/* end confdefs.h. */ 8894int i; 8895_ACEOF 8896if ac_fn_c_try_compile "$LINENO"; then : 8897 xorg_cv_cc_flag_unknown_warning_option=yes 8898else 8899 xorg_cv_cc_flag_unknown_warning_option=no 8900fi 8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8902fi 8903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8906 CFLAGS="$xorg_testset_save_CFLAGS" 8907fi 8908 8909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8912 fi 8913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8917 $as_echo_n "(cached) " >&6 8918else 8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920/* end confdefs.h. */ 8921int i; 8922_ACEOF 8923if ac_fn_c_try_compile "$LINENO"; then : 8924 xorg_cv_cc_flag_unused_command_line_argument=yes 8925else 8926 xorg_cv_cc_flag_unused_command_line_argument=no 8927fi 8928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8929fi 8930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8933 CFLAGS="$xorg_testset_save_CFLAGS" 8934fi 8935 8936found="no" 8937 8938 if test $found = "no" ; then 8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8941 fi 8942 8943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8945 fi 8946 8947 CFLAGS="$CFLAGS -Wmissing-braces" 8948 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8950$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8951 cacheid=xorg_cv_cc_flag__Wmissing_braces 8952 if eval \${$cacheid+:} false; then : 8953 $as_echo_n "(cached) " >&6 8954else 8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8956/* end confdefs.h. */ 8957int i; 8958int 8959main () 8960{ 8961 8962 ; 8963 return 0; 8964} 8965_ACEOF 8966if ac_fn_c_try_link "$LINENO"; then : 8967 eval $cacheid=yes 8968else 8969 eval $cacheid=no 8970fi 8971rm -f core conftest.err conftest.$ac_objext \ 8972 conftest$ac_exeext conftest.$ac_ext 8973fi 8974 8975 8976 CFLAGS="$xorg_testset_save_CFLAGS" 8977 8978 eval supported=\$$cacheid 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8980$as_echo "$supported" >&6; } 8981 if test "$supported" = "yes" ; then 8982 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8983 found="yes" 8984 fi 8985 fi 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001xorg_testset_save_CFLAGS="$CFLAGS" 9002 9003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9008 $as_echo_n "(cached) " >&6 9009else 9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9011/* end confdefs.h. */ 9012int i; 9013_ACEOF 9014if ac_fn_c_try_compile "$LINENO"; then : 9015 xorg_cv_cc_flag_unknown_warning_option=yes 9016else 9017 xorg_cv_cc_flag_unknown_warning_option=no 9018fi 9019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9020fi 9021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9024 CFLAGS="$xorg_testset_save_CFLAGS" 9025fi 9026 9027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9030 fi 9031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9035 $as_echo_n "(cached) " >&6 9036else 9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9038/* end confdefs.h. */ 9039int i; 9040_ACEOF 9041if ac_fn_c_try_compile "$LINENO"; then : 9042 xorg_cv_cc_flag_unused_command_line_argument=yes 9043else 9044 xorg_cv_cc_flag_unused_command_line_argument=no 9045fi 9046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9047fi 9048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9051 CFLAGS="$xorg_testset_save_CFLAGS" 9052fi 9053 9054found="no" 9055 9056 if test $found = "no" ; then 9057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9059 fi 9060 9061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9063 fi 9064 9065 CFLAGS="$CFLAGS -Wsequence-point" 9066 9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9068$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9069 cacheid=xorg_cv_cc_flag__Wsequence_point 9070 if eval \${$cacheid+:} false; then : 9071 $as_echo_n "(cached) " >&6 9072else 9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9074/* end confdefs.h. */ 9075int i; 9076int 9077main () 9078{ 9079 9080 ; 9081 return 0; 9082} 9083_ACEOF 9084if ac_fn_c_try_link "$LINENO"; then : 9085 eval $cacheid=yes 9086else 9087 eval $cacheid=no 9088fi 9089rm -f core conftest.err conftest.$ac_objext \ 9090 conftest$ac_exeext conftest.$ac_ext 9091fi 9092 9093 9094 CFLAGS="$xorg_testset_save_CFLAGS" 9095 9096 eval supported=\$$cacheid 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9098$as_echo "$supported" >&6; } 9099 if test "$supported" = "yes" ; then 9100 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9101 found="yes" 9102 fi 9103 fi 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119xorg_testset_save_CFLAGS="$CFLAGS" 9120 9121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9129/* end confdefs.h. */ 9130int i; 9131_ACEOF 9132if ac_fn_c_try_compile "$LINENO"; then : 9133 xorg_cv_cc_flag_unknown_warning_option=yes 9134else 9135 xorg_cv_cc_flag_unknown_warning_option=no 9136fi 9137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9138fi 9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9142 CFLAGS="$xorg_testset_save_CFLAGS" 9143fi 9144 9145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9148 fi 9149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9153 $as_echo_n "(cached) " >&6 9154else 9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9156/* end confdefs.h. */ 9157int i; 9158_ACEOF 9159if ac_fn_c_try_compile "$LINENO"; then : 9160 xorg_cv_cc_flag_unused_command_line_argument=yes 9161else 9162 xorg_cv_cc_flag_unused_command_line_argument=no 9163fi 9164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9165fi 9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9169 CFLAGS="$xorg_testset_save_CFLAGS" 9170fi 9171 9172found="no" 9173 9174 if test $found = "no" ; then 9175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9177 fi 9178 9179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9181 fi 9182 9183 CFLAGS="$CFLAGS -Wreturn-type" 9184 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9186$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9187 cacheid=xorg_cv_cc_flag__Wreturn_type 9188 if eval \${$cacheid+:} false; then : 9189 $as_echo_n "(cached) " >&6 9190else 9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9192/* end confdefs.h. */ 9193int i; 9194int 9195main () 9196{ 9197 9198 ; 9199 return 0; 9200} 9201_ACEOF 9202if ac_fn_c_try_link "$LINENO"; then : 9203 eval $cacheid=yes 9204else 9205 eval $cacheid=no 9206fi 9207rm -f core conftest.err conftest.$ac_objext \ 9208 conftest$ac_exeext conftest.$ac_ext 9209fi 9210 9211 9212 CFLAGS="$xorg_testset_save_CFLAGS" 9213 9214 eval supported=\$$cacheid 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9216$as_echo "$supported" >&6; } 9217 if test "$supported" = "yes" ; then 9218 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9219 found="yes" 9220 fi 9221 fi 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237xorg_testset_save_CFLAGS="$CFLAGS" 9238 9239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9244 $as_echo_n "(cached) " >&6 9245else 9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247/* end confdefs.h. */ 9248int i; 9249_ACEOF 9250if ac_fn_c_try_compile "$LINENO"; then : 9251 xorg_cv_cc_flag_unknown_warning_option=yes 9252else 9253 xorg_cv_cc_flag_unknown_warning_option=no 9254fi 9255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9256fi 9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9260 CFLAGS="$xorg_testset_save_CFLAGS" 9261fi 9262 9263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9266 fi 9267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9271 $as_echo_n "(cached) " >&6 9272else 9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274/* end confdefs.h. */ 9275int i; 9276_ACEOF 9277if ac_fn_c_try_compile "$LINENO"; then : 9278 xorg_cv_cc_flag_unused_command_line_argument=yes 9279else 9280 xorg_cv_cc_flag_unused_command_line_argument=no 9281fi 9282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9283fi 9284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9287 CFLAGS="$xorg_testset_save_CFLAGS" 9288fi 9289 9290found="no" 9291 9292 if test $found = "no" ; then 9293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9295 fi 9296 9297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9299 fi 9300 9301 CFLAGS="$CFLAGS -Wtrigraphs" 9302 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9304$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9305 cacheid=xorg_cv_cc_flag__Wtrigraphs 9306 if eval \${$cacheid+:} false; then : 9307 $as_echo_n "(cached) " >&6 9308else 9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9310/* end confdefs.h. */ 9311int i; 9312int 9313main () 9314{ 9315 9316 ; 9317 return 0; 9318} 9319_ACEOF 9320if ac_fn_c_try_link "$LINENO"; then : 9321 eval $cacheid=yes 9322else 9323 eval $cacheid=no 9324fi 9325rm -f core conftest.err conftest.$ac_objext \ 9326 conftest$ac_exeext conftest.$ac_ext 9327fi 9328 9329 9330 CFLAGS="$xorg_testset_save_CFLAGS" 9331 9332 eval supported=\$$cacheid 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9334$as_echo "$supported" >&6; } 9335 if test "$supported" = "yes" ; then 9336 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9337 found="yes" 9338 fi 9339 fi 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355xorg_testset_save_CFLAGS="$CFLAGS" 9356 9357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9361if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9362 $as_echo_n "(cached) " >&6 9363else 9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9365/* end confdefs.h. */ 9366int i; 9367_ACEOF 9368if ac_fn_c_try_compile "$LINENO"; then : 9369 xorg_cv_cc_flag_unknown_warning_option=yes 9370else 9371 xorg_cv_cc_flag_unknown_warning_option=no 9372fi 9373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9374fi 9375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9378 CFLAGS="$xorg_testset_save_CFLAGS" 9379fi 9380 9381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9384 fi 9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9389 $as_echo_n "(cached) " >&6 9390else 9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9392/* end confdefs.h. */ 9393int i; 9394_ACEOF 9395if ac_fn_c_try_compile "$LINENO"; then : 9396 xorg_cv_cc_flag_unused_command_line_argument=yes 9397else 9398 xorg_cv_cc_flag_unused_command_line_argument=no 9399fi 9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9401fi 9402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9405 CFLAGS="$xorg_testset_save_CFLAGS" 9406fi 9407 9408found="no" 9409 9410 if test $found = "no" ; then 9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9413 fi 9414 9415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9417 fi 9418 9419 CFLAGS="$CFLAGS -Warray-bounds" 9420 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9422$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9423 cacheid=xorg_cv_cc_flag__Warray_bounds 9424 if eval \${$cacheid+:} false; then : 9425 $as_echo_n "(cached) " >&6 9426else 9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9428/* end confdefs.h. */ 9429int i; 9430int 9431main () 9432{ 9433 9434 ; 9435 return 0; 9436} 9437_ACEOF 9438if ac_fn_c_try_link "$LINENO"; then : 9439 eval $cacheid=yes 9440else 9441 eval $cacheid=no 9442fi 9443rm -f core conftest.err conftest.$ac_objext \ 9444 conftest$ac_exeext conftest.$ac_ext 9445fi 9446 9447 9448 CFLAGS="$xorg_testset_save_CFLAGS" 9449 9450 eval supported=\$$cacheid 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9452$as_echo "$supported" >&6; } 9453 if test "$supported" = "yes" ; then 9454 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9455 found="yes" 9456 fi 9457 fi 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473xorg_testset_save_CFLAGS="$CFLAGS" 9474 9475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9480 $as_echo_n "(cached) " >&6 9481else 9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9483/* end confdefs.h. */ 9484int i; 9485_ACEOF 9486if ac_fn_c_try_compile "$LINENO"; then : 9487 xorg_cv_cc_flag_unknown_warning_option=yes 9488else 9489 xorg_cv_cc_flag_unknown_warning_option=no 9490fi 9491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9492fi 9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9496 CFLAGS="$xorg_testset_save_CFLAGS" 9497fi 9498 9499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9502 fi 9503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9507 $as_echo_n "(cached) " >&6 9508else 9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510/* end confdefs.h. */ 9511int i; 9512_ACEOF 9513if ac_fn_c_try_compile "$LINENO"; then : 9514 xorg_cv_cc_flag_unused_command_line_argument=yes 9515else 9516 xorg_cv_cc_flag_unused_command_line_argument=no 9517fi 9518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9519fi 9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9523 CFLAGS="$xorg_testset_save_CFLAGS" 9524fi 9525 9526found="no" 9527 9528 if test $found = "no" ; then 9529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9531 fi 9532 9533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9535 fi 9536 9537 CFLAGS="$CFLAGS -Wwrite-strings" 9538 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9540$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9541 cacheid=xorg_cv_cc_flag__Wwrite_strings 9542 if eval \${$cacheid+:} false; then : 9543 $as_echo_n "(cached) " >&6 9544else 9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9546/* end confdefs.h. */ 9547int i; 9548int 9549main () 9550{ 9551 9552 ; 9553 return 0; 9554} 9555_ACEOF 9556if ac_fn_c_try_link "$LINENO"; then : 9557 eval $cacheid=yes 9558else 9559 eval $cacheid=no 9560fi 9561rm -f core conftest.err conftest.$ac_objext \ 9562 conftest$ac_exeext conftest.$ac_ext 9563fi 9564 9565 9566 CFLAGS="$xorg_testset_save_CFLAGS" 9567 9568 eval supported=\$$cacheid 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9570$as_echo "$supported" >&6; } 9571 if test "$supported" = "yes" ; then 9572 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9573 found="yes" 9574 fi 9575 fi 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591xorg_testset_save_CFLAGS="$CFLAGS" 9592 9593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9598 $as_echo_n "(cached) " >&6 9599else 9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9601/* end confdefs.h. */ 9602int i; 9603_ACEOF 9604if ac_fn_c_try_compile "$LINENO"; then : 9605 xorg_cv_cc_flag_unknown_warning_option=yes 9606else 9607 xorg_cv_cc_flag_unknown_warning_option=no 9608fi 9609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9610fi 9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9614 CFLAGS="$xorg_testset_save_CFLAGS" 9615fi 9616 9617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9620 fi 9621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9625 $as_echo_n "(cached) " >&6 9626else 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628/* end confdefs.h. */ 9629int i; 9630_ACEOF 9631if ac_fn_c_try_compile "$LINENO"; then : 9632 xorg_cv_cc_flag_unused_command_line_argument=yes 9633else 9634 xorg_cv_cc_flag_unused_command_line_argument=no 9635fi 9636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9637fi 9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9641 CFLAGS="$xorg_testset_save_CFLAGS" 9642fi 9643 9644found="no" 9645 9646 if test $found = "no" ; then 9647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9649 fi 9650 9651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9653 fi 9654 9655 CFLAGS="$CFLAGS -Waddress" 9656 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9658$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9659 cacheid=xorg_cv_cc_flag__Waddress 9660 if eval \${$cacheid+:} false; then : 9661 $as_echo_n "(cached) " >&6 9662else 9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9664/* end confdefs.h. */ 9665int i; 9666int 9667main () 9668{ 9669 9670 ; 9671 return 0; 9672} 9673_ACEOF 9674if ac_fn_c_try_link "$LINENO"; then : 9675 eval $cacheid=yes 9676else 9677 eval $cacheid=no 9678fi 9679rm -f core conftest.err conftest.$ac_objext \ 9680 conftest$ac_exeext conftest.$ac_ext 9681fi 9682 9683 9684 CFLAGS="$xorg_testset_save_CFLAGS" 9685 9686 eval supported=\$$cacheid 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9688$as_echo "$supported" >&6; } 9689 if test "$supported" = "yes" ; then 9690 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9691 found="yes" 9692 fi 9693 fi 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709xorg_testset_save_CFLAGS="$CFLAGS" 9710 9711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719/* end confdefs.h. */ 9720int i; 9721_ACEOF 9722if ac_fn_c_try_compile "$LINENO"; then : 9723 xorg_cv_cc_flag_unknown_warning_option=yes 9724else 9725 xorg_cv_cc_flag_unknown_warning_option=no 9726fi 9727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9728fi 9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9732 CFLAGS="$xorg_testset_save_CFLAGS" 9733fi 9734 9735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9738 fi 9739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9743 $as_echo_n "(cached) " >&6 9744else 9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9746/* end confdefs.h. */ 9747int i; 9748_ACEOF 9749if ac_fn_c_try_compile "$LINENO"; then : 9750 xorg_cv_cc_flag_unused_command_line_argument=yes 9751else 9752 xorg_cv_cc_flag_unused_command_line_argument=no 9753fi 9754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9755fi 9756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9759 CFLAGS="$xorg_testset_save_CFLAGS" 9760fi 9761 9762found="no" 9763 9764 if test $found = "no" ; then 9765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9767 fi 9768 9769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9771 fi 9772 9773 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9774 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9776$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9777 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9778 if eval \${$cacheid+:} false; then : 9779 $as_echo_n "(cached) " >&6 9780else 9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9782/* end confdefs.h. */ 9783int i; 9784int 9785main () 9786{ 9787 9788 ; 9789 return 0; 9790} 9791_ACEOF 9792if ac_fn_c_try_link "$LINENO"; then : 9793 eval $cacheid=yes 9794else 9795 eval $cacheid=no 9796fi 9797rm -f core conftest.err conftest.$ac_objext \ 9798 conftest$ac_exeext conftest.$ac_ext 9799fi 9800 9801 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803 9804 eval supported=\$$cacheid 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9806$as_echo "$supported" >&6; } 9807 if test "$supported" = "yes" ; then 9808 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9809 found="yes" 9810 fi 9811 fi 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827xorg_testset_save_CFLAGS="$CFLAGS" 9828 9829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9834 $as_echo_n "(cached) " >&6 9835else 9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837/* end confdefs.h. */ 9838int i; 9839_ACEOF 9840if ac_fn_c_try_compile "$LINENO"; then : 9841 xorg_cv_cc_flag_unknown_warning_option=yes 9842else 9843 xorg_cv_cc_flag_unknown_warning_option=no 9844fi 9845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9846fi 9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9850 CFLAGS="$xorg_testset_save_CFLAGS" 9851fi 9852 9853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9856 fi 9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9861 $as_echo_n "(cached) " >&6 9862else 9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9864/* end confdefs.h. */ 9865int i; 9866_ACEOF 9867if ac_fn_c_try_compile "$LINENO"; then : 9868 xorg_cv_cc_flag_unused_command_line_argument=yes 9869else 9870 xorg_cv_cc_flag_unused_command_line_argument=no 9871fi 9872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9873fi 9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9877 CFLAGS="$xorg_testset_save_CFLAGS" 9878fi 9879 9880found="no" 9881 9882 if test $found = "no" ; then 9883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9885 fi 9886 9887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9889 fi 9890 9891 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9892 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9894$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9895 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9896 if eval \${$cacheid+:} false; then : 9897 $as_echo_n "(cached) " >&6 9898else 9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9900/* end confdefs.h. */ 9901int i; 9902int 9903main () 9904{ 9905 9906 ; 9907 return 0; 9908} 9909_ACEOF 9910if ac_fn_c_try_link "$LINENO"; then : 9911 eval $cacheid=yes 9912else 9913 eval $cacheid=no 9914fi 9915rm -f core conftest.err conftest.$ac_objext \ 9916 conftest$ac_exeext conftest.$ac_ext 9917fi 9918 9919 9920 CFLAGS="$xorg_testset_save_CFLAGS" 9921 9922 eval supported=\$$cacheid 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9924$as_echo "$supported" >&6; } 9925 if test "$supported" = "yes" ; then 9926 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9927 found="yes" 9928 fi 9929 fi 9930 9931 9932fi 9933 9934 9935 9936 9937 9938 9939 9940 CWARNFLAGS="$BASE_CFLAGS" 9941 if test "x$GCC" = xyes ; then 9942 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9943 fi 9944 9945 9946 9947 9948 9949 9950 9951 9952# Check whether --enable-strict-compilation was given. 9953if test "${enable_strict_compilation+set}" = set; then : 9954 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9955else 9956 STRICT_COMPILE=no 9957fi 9958 9959 9960 9961 9962 9963 9964STRICT_CFLAGS="" 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978xorg_testset_save_CFLAGS="$CFLAGS" 9979 9980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9985 $as_echo_n "(cached) " >&6 9986else 9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9988/* end confdefs.h. */ 9989int i; 9990_ACEOF 9991if ac_fn_c_try_compile "$LINENO"; then : 9992 xorg_cv_cc_flag_unknown_warning_option=yes 9993else 9994 xorg_cv_cc_flag_unknown_warning_option=no 9995fi 9996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9997fi 9998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10001 CFLAGS="$xorg_testset_save_CFLAGS" 10002fi 10003 10004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10007 fi 10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10012 $as_echo_n "(cached) " >&6 10013else 10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10015/* end confdefs.h. */ 10016int i; 10017_ACEOF 10018if ac_fn_c_try_compile "$LINENO"; then : 10019 xorg_cv_cc_flag_unused_command_line_argument=yes 10020else 10021 xorg_cv_cc_flag_unused_command_line_argument=no 10022fi 10023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10024fi 10025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10028 CFLAGS="$xorg_testset_save_CFLAGS" 10029fi 10030 10031found="no" 10032 10033 if test $found = "no" ; then 10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10036 fi 10037 10038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10040 fi 10041 10042 CFLAGS="$CFLAGS -pedantic" 10043 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10045$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10046 cacheid=xorg_cv_cc_flag__pedantic 10047 if eval \${$cacheid+:} false; then : 10048 $as_echo_n "(cached) " >&6 10049else 10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10051/* end confdefs.h. */ 10052int i; 10053int 10054main () 10055{ 10056 10057 ; 10058 return 0; 10059} 10060_ACEOF 10061if ac_fn_c_try_link "$LINENO"; then : 10062 eval $cacheid=yes 10063else 10064 eval $cacheid=no 10065fi 10066rm -f core conftest.err conftest.$ac_objext \ 10067 conftest$ac_exeext conftest.$ac_ext 10068fi 10069 10070 10071 CFLAGS="$xorg_testset_save_CFLAGS" 10072 10073 eval supported=\$$cacheid 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10075$as_echo "$supported" >&6; } 10076 if test "$supported" = "yes" ; then 10077 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10078 found="yes" 10079 fi 10080 fi 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096xorg_testset_save_CFLAGS="$CFLAGS" 10097 10098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10103 $as_echo_n "(cached) " >&6 10104else 10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10106/* end confdefs.h. */ 10107int i; 10108_ACEOF 10109if ac_fn_c_try_compile "$LINENO"; then : 10110 xorg_cv_cc_flag_unknown_warning_option=yes 10111else 10112 xorg_cv_cc_flag_unknown_warning_option=no 10113fi 10114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10115fi 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10119 CFLAGS="$xorg_testset_save_CFLAGS" 10120fi 10121 10122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10125 fi 10126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10130 $as_echo_n "(cached) " >&6 10131else 10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10133/* end confdefs.h. */ 10134int i; 10135_ACEOF 10136if ac_fn_c_try_compile "$LINENO"; then : 10137 xorg_cv_cc_flag_unused_command_line_argument=yes 10138else 10139 xorg_cv_cc_flag_unused_command_line_argument=no 10140fi 10141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10142fi 10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10146 CFLAGS="$xorg_testset_save_CFLAGS" 10147fi 10148 10149found="no" 10150 10151 if test $found = "no" ; then 10152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10154 fi 10155 10156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10158 fi 10159 10160 CFLAGS="$CFLAGS -Werror" 10161 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10163$as_echo_n "checking if $CC supports -Werror... " >&6; } 10164 cacheid=xorg_cv_cc_flag__Werror 10165 if eval \${$cacheid+:} false; then : 10166 $as_echo_n "(cached) " >&6 10167else 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169/* end confdefs.h. */ 10170int i; 10171int 10172main () 10173{ 10174 10175 ; 10176 return 0; 10177} 10178_ACEOF 10179if ac_fn_c_try_link "$LINENO"; then : 10180 eval $cacheid=yes 10181else 10182 eval $cacheid=no 10183fi 10184rm -f core conftest.err conftest.$ac_objext \ 10185 conftest$ac_exeext conftest.$ac_ext 10186fi 10187 10188 10189 CFLAGS="$xorg_testset_save_CFLAGS" 10190 10191 eval supported=\$$cacheid 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10193$as_echo "$supported" >&6; } 10194 if test "$supported" = "yes" ; then 10195 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10196 found="yes" 10197 fi 10198 fi 10199 10200 if test $found = "no" ; then 10201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10203 fi 10204 10205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10207 fi 10208 10209 CFLAGS="$CFLAGS -errwarn" 10210 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10212$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10213 cacheid=xorg_cv_cc_flag__errwarn 10214 if eval \${$cacheid+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216else 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219int i; 10220int 10221main () 10222{ 10223 10224 ; 10225 return 0; 10226} 10227_ACEOF 10228if ac_fn_c_try_link "$LINENO"; then : 10229 eval $cacheid=yes 10230else 10231 eval $cacheid=no 10232fi 10233rm -f core conftest.err conftest.$ac_objext \ 10234 conftest$ac_exeext conftest.$ac_ext 10235fi 10236 10237 10238 CFLAGS="$xorg_testset_save_CFLAGS" 10239 10240 eval supported=\$$cacheid 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10242$as_echo "$supported" >&6; } 10243 if test "$supported" = "yes" ; then 10244 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10245 found="yes" 10246 fi 10247 fi 10248 10249 10250 10251# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10252# activate it with -Werror, so we add it here explicitly. 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266xorg_testset_save_CFLAGS="$CFLAGS" 10267 10268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10273 $as_echo_n "(cached) " >&6 10274else 10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10276/* end confdefs.h. */ 10277int i; 10278_ACEOF 10279if ac_fn_c_try_compile "$LINENO"; then : 10280 xorg_cv_cc_flag_unknown_warning_option=yes 10281else 10282 xorg_cv_cc_flag_unknown_warning_option=no 10283fi 10284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10285fi 10286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10289 CFLAGS="$xorg_testset_save_CFLAGS" 10290fi 10291 10292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10295 fi 10296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10300 $as_echo_n "(cached) " >&6 10301else 10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10303/* end confdefs.h. */ 10304int i; 10305_ACEOF 10306if ac_fn_c_try_compile "$LINENO"; then : 10307 xorg_cv_cc_flag_unused_command_line_argument=yes 10308else 10309 xorg_cv_cc_flag_unused_command_line_argument=no 10310fi 10311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10312fi 10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10316 CFLAGS="$xorg_testset_save_CFLAGS" 10317fi 10318 10319found="no" 10320 10321 if test $found = "no" ; then 10322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10324 fi 10325 10326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10328 fi 10329 10330 CFLAGS="$CFLAGS -Werror=attributes" 10331 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10333$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10334 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10335 if eval \${$cacheid+:} false; then : 10336 $as_echo_n "(cached) " >&6 10337else 10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10339/* end confdefs.h. */ 10340int i; 10341int 10342main () 10343{ 10344 10345 ; 10346 return 0; 10347} 10348_ACEOF 10349if ac_fn_c_try_link "$LINENO"; then : 10350 eval $cacheid=yes 10351else 10352 eval $cacheid=no 10353fi 10354rm -f core conftest.err conftest.$ac_objext \ 10355 conftest$ac_exeext conftest.$ac_ext 10356fi 10357 10358 10359 CFLAGS="$xorg_testset_save_CFLAGS" 10360 10361 eval supported=\$$cacheid 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10363$as_echo "$supported" >&6; } 10364 if test "$supported" = "yes" ; then 10365 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10366 found="yes" 10367 fi 10368 fi 10369 10370 10371 10372if test "x$STRICT_COMPILE" = "xyes"; then 10373 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10374 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10375fi 10376 10377 10378 10379 10380 10381 10382cat >>confdefs.h <<_ACEOF 10383#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10384_ACEOF 10385 10386 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10387 if test "x$PVM" = "x"; then 10388 PVM="0" 10389 fi 10390 10391cat >>confdefs.h <<_ACEOF 10392#define PACKAGE_VERSION_MINOR $PVM 10393_ACEOF 10394 10395 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10396 if test "x$PVP" = "x"; then 10397 PVP="0" 10398 fi 10399 10400cat >>confdefs.h <<_ACEOF 10401#define PACKAGE_VERSION_PATCHLEVEL $PVP 10402_ACEOF 10403 10404 10405 10406CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10407mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10408|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10409echo 'git directory not found: installing possibly empty changelog.' >&2)" 10410 10411 10412 10413 10414macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10415INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10416mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10417|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10418echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10419 10420 10421 10422 10423 10424 10425if test x$APP_MAN_SUFFIX = x ; then 10426 APP_MAN_SUFFIX=1 10427fi 10428if test x$APP_MAN_DIR = x ; then 10429 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10430fi 10431 10432if test x$LIB_MAN_SUFFIX = x ; then 10433 LIB_MAN_SUFFIX=3 10434fi 10435if test x$LIB_MAN_DIR = x ; then 10436 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10437fi 10438 10439if test x$FILE_MAN_SUFFIX = x ; then 10440 case $host_os in 10441 solaris*) FILE_MAN_SUFFIX=4 ;; 10442 *) FILE_MAN_SUFFIX=5 ;; 10443 esac 10444fi 10445if test x$FILE_MAN_DIR = x ; then 10446 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10447fi 10448 10449if test x$MISC_MAN_SUFFIX = x ; then 10450 case $host_os in 10451 solaris*) MISC_MAN_SUFFIX=5 ;; 10452 *) MISC_MAN_SUFFIX=7 ;; 10453 esac 10454fi 10455if test x$MISC_MAN_DIR = x ; then 10456 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10457fi 10458 10459if test x$DRIVER_MAN_SUFFIX = x ; then 10460 case $host_os in 10461 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10462 *) DRIVER_MAN_SUFFIX=4 ;; 10463 esac 10464fi 10465if test x$DRIVER_MAN_DIR = x ; then 10466 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10467fi 10468 10469if test x$ADMIN_MAN_SUFFIX = x ; then 10470 case $host_os in 10471 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10472 *) ADMIN_MAN_SUFFIX=8 ;; 10473 esac 10474fi 10475if test x$ADMIN_MAN_DIR = x ; then 10476 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10477fi 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493XORG_MAN_PAGE="X Version 11" 10494 10495MAN_SUBSTS="\ 10496 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10497 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10498 -e 's|__xservername__|Xorg|g' \ 10499 -e 's|__xconfigfile__|xorg.conf|g' \ 10500 -e 's|__projectroot__|\$(prefix)|g' \ 10501 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10502 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10503 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10504 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10505 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10506 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10507 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10508 10509 10510 10511# Check whether --enable-silent-rules was given. 10512if test "${enable_silent_rules+set}" = set; then : 10513 enableval=$enable_silent_rules; 10514fi 10515 10516case $enable_silent_rules in # ((( 10517 yes) AM_DEFAULT_VERBOSITY=0;; 10518 no) AM_DEFAULT_VERBOSITY=1;; 10519 *) AM_DEFAULT_VERBOSITY=0;; 10520esac 10521am_make=${MAKE-make} 10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10523$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10524if ${am_cv_make_support_nested_variables+:} false; then : 10525 $as_echo_n "(cached) " >&6 10526else 10527 if $as_echo 'TRUE=$(BAR$(V)) 10528BAR0=false 10529BAR1=true 10530V=1 10531am__doit: 10532 @$(TRUE) 10533.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10534 am_cv_make_support_nested_variables=yes 10535else 10536 am_cv_make_support_nested_variables=no 10537fi 10538fi 10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10540$as_echo "$am_cv_make_support_nested_variables" >&6; } 10541if test $am_cv_make_support_nested_variables = yes; then 10542 AM_V='$(V)' 10543 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10544else 10545 AM_V=$AM_DEFAULT_VERBOSITY 10546 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10547fi 10548AM_BACKSLASH='\' 10549 10550 10551 10552# Checks for pkg-config packages 10553 10554pkg_failed=no 10555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFINDPROXY" >&5 10556$as_echo_n "checking for XFINDPROXY... " >&6; } 10557 10558if test -n "$XFINDPROXY_CFLAGS"; then 10559 pkg_cv_XFINDPROXY_CFLAGS="$XFINDPROXY_CFLAGS" 10560 elif test -n "$PKG_CONFIG"; then 10561 if test -n "$PKG_CONFIG" && \ 10562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto ice xt xproxymngproto\""; } >&5 10563 ($PKG_CONFIG --exists --print-errors "xproto ice xt xproxymngproto") 2>&5 10564 ac_status=$? 10565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10566 test $ac_status = 0; }; then 10567 pkg_cv_XFINDPROXY_CFLAGS=`$PKG_CONFIG --cflags "xproto ice xt xproxymngproto" 2>/dev/null` 10568else 10569 pkg_failed=yes 10570fi 10571 else 10572 pkg_failed=untried 10573fi 10574if test -n "$XFINDPROXY_LIBS"; then 10575 pkg_cv_XFINDPROXY_LIBS="$XFINDPROXY_LIBS" 10576 elif test -n "$PKG_CONFIG"; then 10577 if test -n "$PKG_CONFIG" && \ 10578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto ice xt xproxymngproto\""; } >&5 10579 ($PKG_CONFIG --exists --print-errors "xproto ice xt xproxymngproto") 2>&5 10580 ac_status=$? 10581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10582 test $ac_status = 0; }; then 10583 pkg_cv_XFINDPROXY_LIBS=`$PKG_CONFIG --libs "xproto ice xt xproxymngproto" 2>/dev/null` 10584else 10585 pkg_failed=yes 10586fi 10587 else 10588 pkg_failed=untried 10589fi 10590 10591 10592 10593if test $pkg_failed = yes; then 10594 10595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10596 _pkg_short_errors_supported=yes 10597else 10598 _pkg_short_errors_supported=no 10599fi 10600 if test $_pkg_short_errors_supported = yes; then 10601 XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto ice xt xproxymngproto" 2>&1` 10602 else 10603 XFINDPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto ice xt xproxymngproto" 2>&1` 10604 fi 10605 # Put the nasty error message in config.log where it belongs 10606 echo "$XFINDPROXY_PKG_ERRORS" >&5 10607 10608 as_fn_error $? "Package requirements (xproto ice xt xproxymngproto) were not met: 10609 10610$XFINDPROXY_PKG_ERRORS 10611 10612Consider adjusting the PKG_CONFIG_PATH environment variable if you 10613installed software in a non-standard prefix. 10614 10615Alternatively, you may set the environment variables XFINDPROXY_CFLAGS 10616and XFINDPROXY_LIBS to avoid the need to call pkg-config. 10617See the pkg-config man page for more details. 10618" "$LINENO" 5 10619elif test $pkg_failed = untried; then 10620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10622as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10623is in your PATH or set the PKG_CONFIG environment variable to the full 10624path to pkg-config. 10625 10626Alternatively, you may set the environment variables XFINDPROXY_CFLAGS 10627and XFINDPROXY_LIBS to avoid the need to call pkg-config. 10628See the pkg-config man page for more details. 10629 10630To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10631See \`config.log' for more details" "$LINENO" 5; } 10632else 10633 XFINDPROXY_CFLAGS=$pkg_cv_XFINDPROXY_CFLAGS 10634 XFINDPROXY_LIBS=$pkg_cv_XFINDPROXY_LIBS 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10636$as_echo "yes" >&6; } 10637 : 10638fi 10639 10640ac_config_files="$ac_config_files Makefile" 10641 10642cat >confcache <<\_ACEOF 10643# This file is a shell script that caches the results of configure 10644# tests run on this system so they can be shared between configure 10645# scripts and configure runs, see configure's option --config-cache. 10646# It is not useful on other systems. If it contains results you don't 10647# want to keep, you may remove or edit it. 10648# 10649# config.status only pays attention to the cache file if you give it 10650# the --recheck option to rerun configure. 10651# 10652# `ac_cv_env_foo' variables (set or unset) will be overridden when 10653# loading this file, other *unset* `ac_cv_foo' will be assigned the 10654# following values. 10655 10656_ACEOF 10657 10658# The following way of writing the cache mishandles newlines in values, 10659# but we know of no workaround that is simple, portable, and efficient. 10660# So, we kill variables containing newlines. 10661# Ultrix sh set writes to stderr and can't be redirected directly, 10662# and sets the high bit in the cache file unless we assign to the vars. 10663( 10664 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10665 eval ac_val=\$$ac_var 10666 case $ac_val in #( 10667 *${as_nl}*) 10668 case $ac_var in #( 10669 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10670$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10671 esac 10672 case $ac_var in #( 10673 _ | IFS | as_nl) ;; #( 10674 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10675 *) { eval $ac_var=; unset $ac_var;} ;; 10676 esac ;; 10677 esac 10678 done 10679 10680 (set) 2>&1 | 10681 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10682 *${as_nl}ac_space=\ *) 10683 # `set' does not quote correctly, so add quotes: double-quote 10684 # substitution turns \\\\ into \\, and sed turns \\ into \. 10685 sed -n \ 10686 "s/'/'\\\\''/g; 10687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10688 ;; #( 10689 *) 10690 # `set' quotes correctly as required by POSIX, so do not add quotes. 10691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10692 ;; 10693 esac | 10694 sort 10695) | 10696 sed ' 10697 /^ac_cv_env_/b end 10698 t clear 10699 :clear 10700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10701 t end 10702 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10703 :end' >>confcache 10704if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10705 if test -w "$cache_file"; then 10706 if test "x$cache_file" != "x/dev/null"; then 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10708$as_echo "$as_me: updating cache $cache_file" >&6;} 10709 if test ! -f "$cache_file" || test -h "$cache_file"; then 10710 cat confcache >"$cache_file" 10711 else 10712 case $cache_file in #( 10713 */* | ?:*) 10714 mv -f confcache "$cache_file"$$ && 10715 mv -f "$cache_file"$$ "$cache_file" ;; #( 10716 *) 10717 mv -f confcache "$cache_file" ;; 10718 esac 10719 fi 10720 fi 10721 else 10722 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10723$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10724 fi 10725fi 10726rm -f confcache 10727 10728test "x$prefix" = xNONE && prefix=$ac_default_prefix 10729# Let make expand exec_prefix. 10730test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10731 10732DEFS=-DHAVE_CONFIG_H 10733 10734ac_libobjs= 10735ac_ltlibobjs= 10736U= 10737for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10738 # 1. Remove the extension, and $U if already installed. 10739 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10740 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10741 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10742 # will be set to the directory where LIBOBJS objects are built. 10743 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10744 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10745done 10746LIBOBJS=$ac_libobjs 10747 10748LTLIBOBJS=$ac_ltlibobjs 10749 10750 10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10752$as_echo_n "checking that generated files are newer than configure... " >&6; } 10753 if test -n "$am_sleep_pid"; then 10754 # Hide warnings about reused PIDs. 10755 wait $am_sleep_pid 2>/dev/null 10756 fi 10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10758$as_echo "done" >&6; } 10759 if test -n "$EXEEXT"; then 10760 am__EXEEXT_TRUE= 10761 am__EXEEXT_FALSE='#' 10762else 10763 am__EXEEXT_TRUE='#' 10764 am__EXEEXT_FALSE= 10765fi 10766 10767if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10768 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10769Usually this means the macro was only invoked conditionally." "$LINENO" 5 10770fi 10771if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10772 as_fn_error $? "conditional \"AMDEP\" was never defined. 10773Usually this means the macro was only invoked conditionally." "$LINENO" 5 10774fi 10775if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10776 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10777Usually this means the macro was only invoked conditionally." "$LINENO" 5 10778fi 10779 10780: "${CONFIG_STATUS=./config.status}" 10781ac_write_fail=0 10782ac_clean_files_save=$ac_clean_files 10783ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10785$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10786as_write_fail=0 10787cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10788#! $SHELL 10789# Generated by $as_me. 10790# Run this file to recreate the current configuration. 10791# Compiler output produced by configure, useful for debugging 10792# configure, is in config.log if it exists. 10793 10794debug=false 10795ac_cs_recheck=false 10796ac_cs_silent=false 10797 10798SHELL=\${CONFIG_SHELL-$SHELL} 10799export SHELL 10800_ASEOF 10801cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10802## -------------------- ## 10803## M4sh Initialization. ## 10804## -------------------- ## 10805 10806# Be more Bourne compatible 10807DUALCASE=1; export DUALCASE # for MKS sh 10808if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10809 emulate sh 10810 NULLCMD=: 10811 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10812 # is contrary to our usage. Disable this feature. 10813 alias -g '${1+"$@"}'='"$@"' 10814 setopt NO_GLOB_SUBST 10815else 10816 case `(set -o) 2>/dev/null` in #( 10817 *posix*) : 10818 set -o posix ;; #( 10819 *) : 10820 ;; 10821esac 10822fi 10823 10824 10825as_nl=' 10826' 10827export as_nl 10828# Printing a long string crashes Solaris 7 /usr/bin/printf. 10829as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10830as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10831as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10832# Prefer a ksh shell builtin over an external printf program on Solaris, 10833# but without wasting forks for bash or zsh. 10834if test -z "$BASH_VERSION$ZSH_VERSION" \ 10835 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10836 as_echo='print -r --' 10837 as_echo_n='print -rn --' 10838elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10839 as_echo='printf %s\n' 10840 as_echo_n='printf %s' 10841else 10842 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10843 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10844 as_echo_n='/usr/ucb/echo -n' 10845 else 10846 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10847 as_echo_n_body='eval 10848 arg=$1; 10849 case $arg in #( 10850 *"$as_nl"*) 10851 expr "X$arg" : "X\\(.*\\)$as_nl"; 10852 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10853 esac; 10854 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10855 ' 10856 export as_echo_n_body 10857 as_echo_n='sh -c $as_echo_n_body as_echo' 10858 fi 10859 export as_echo_body 10860 as_echo='sh -c $as_echo_body as_echo' 10861fi 10862 10863# The user is always right. 10864if test "${PATH_SEPARATOR+set}" != set; then 10865 PATH_SEPARATOR=: 10866 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10867 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10868 PATH_SEPARATOR=';' 10869 } 10870fi 10871 10872 10873# IFS 10874# We need space, tab and new line, in precisely that order. Quoting is 10875# there to prevent editors from complaining about space-tab. 10876# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10877# splitting by setting IFS to empty value.) 10878IFS=" "" $as_nl" 10879 10880# Find who we are. Look in the path if we contain no directory separator. 10881as_myself= 10882case $0 in #(( 10883 *[\\/]* ) as_myself=$0 ;; 10884 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10885for as_dir in $PATH 10886do 10887 IFS=$as_save_IFS 10888 test -z "$as_dir" && as_dir=. 10889 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10890 done 10891IFS=$as_save_IFS 10892 10893 ;; 10894esac 10895# We did not find ourselves, most probably we were run as `sh COMMAND' 10896# in which case we are not to be found in the path. 10897if test "x$as_myself" = x; then 10898 as_myself=$0 10899fi 10900if test ! -f "$as_myself"; then 10901 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10902 exit 1 10903fi 10904 10905# Unset variables that we do not need and which cause bugs (e.g. in 10906# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10907# suppresses any "Segmentation fault" message there. '((' could 10908# trigger a bug in pdksh 5.2.14. 10909for as_var in BASH_ENV ENV MAIL MAILPATH 10910do eval test x\${$as_var+set} = xset \ 10911 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10912done 10913PS1='$ ' 10914PS2='> ' 10915PS4='+ ' 10916 10917# NLS nuisances. 10918LC_ALL=C 10919export LC_ALL 10920LANGUAGE=C 10921export LANGUAGE 10922 10923# CDPATH. 10924(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10925 10926 10927# as_fn_error STATUS ERROR [LINENO LOG_FD] 10928# ---------------------------------------- 10929# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10930# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10931# script with STATUS, using 1 if that was 0. 10932as_fn_error () 10933{ 10934 as_status=$1; test $as_status -eq 0 && as_status=1 10935 if test "$4"; then 10936 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10937 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10938 fi 10939 $as_echo "$as_me: error: $2" >&2 10940 as_fn_exit $as_status 10941} # as_fn_error 10942 10943 10944# as_fn_set_status STATUS 10945# ----------------------- 10946# Set $? to STATUS, without forking. 10947as_fn_set_status () 10948{ 10949 return $1 10950} # as_fn_set_status 10951 10952# as_fn_exit STATUS 10953# ----------------- 10954# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10955as_fn_exit () 10956{ 10957 set +e 10958 as_fn_set_status $1 10959 exit $1 10960} # as_fn_exit 10961 10962# as_fn_unset VAR 10963# --------------- 10964# Portably unset VAR. 10965as_fn_unset () 10966{ 10967 { eval $1=; unset $1;} 10968} 10969as_unset=as_fn_unset 10970# as_fn_append VAR VALUE 10971# ---------------------- 10972# Append the text in VALUE to the end of the definition contained in VAR. Take 10973# advantage of any shell optimizations that allow amortized linear growth over 10974# repeated appends, instead of the typical quadratic growth present in naive 10975# implementations. 10976if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10977 eval 'as_fn_append () 10978 { 10979 eval $1+=\$2 10980 }' 10981else 10982 as_fn_append () 10983 { 10984 eval $1=\$$1\$2 10985 } 10986fi # as_fn_append 10987 10988# as_fn_arith ARG... 10989# ------------------ 10990# Perform arithmetic evaluation on the ARGs, and store the result in the 10991# global $as_val. Take advantage of shells that can avoid forks. The arguments 10992# must be portable across $(()) and expr. 10993if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10994 eval 'as_fn_arith () 10995 { 10996 as_val=$(( $* )) 10997 }' 10998else 10999 as_fn_arith () 11000 { 11001 as_val=`expr "$@" || test $? -eq 1` 11002 } 11003fi # as_fn_arith 11004 11005 11006if expr a : '\(a\)' >/dev/null 2>&1 && 11007 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11008 as_expr=expr 11009else 11010 as_expr=false 11011fi 11012 11013if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11014 as_basename=basename 11015else 11016 as_basename=false 11017fi 11018 11019if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11020 as_dirname=dirname 11021else 11022 as_dirname=false 11023fi 11024 11025as_me=`$as_basename -- "$0" || 11026$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11027 X"$0" : 'X\(//\)$' \| \ 11028 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11029$as_echo X/"$0" | 11030 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11031 s//\1/ 11032 q 11033 } 11034 /^X\/\(\/\/\)$/{ 11035 s//\1/ 11036 q 11037 } 11038 /^X\/\(\/\).*/{ 11039 s//\1/ 11040 q 11041 } 11042 s/.*/./; q'` 11043 11044# Avoid depending upon Character Ranges. 11045as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11046as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11047as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11048as_cr_digits='0123456789' 11049as_cr_alnum=$as_cr_Letters$as_cr_digits 11050 11051ECHO_C= ECHO_N= ECHO_T= 11052case `echo -n x` in #((((( 11053-n*) 11054 case `echo 'xy\c'` in 11055 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11056 xy) ECHO_C='\c';; 11057 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11058 ECHO_T=' ';; 11059 esac;; 11060*) 11061 ECHO_N='-n';; 11062esac 11063 11064rm -f conf$$ conf$$.exe conf$$.file 11065if test -d conf$$.dir; then 11066 rm -f conf$$.dir/conf$$.file 11067else 11068 rm -f conf$$.dir 11069 mkdir conf$$.dir 2>/dev/null 11070fi 11071if (echo >conf$$.file) 2>/dev/null; then 11072 if ln -s conf$$.file conf$$ 2>/dev/null; then 11073 as_ln_s='ln -s' 11074 # ... but there are two gotchas: 11075 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11076 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11077 # In both cases, we have to default to `cp -p'. 11078 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11079 as_ln_s='cp -p' 11080 elif ln conf$$.file conf$$ 2>/dev/null; then 11081 as_ln_s=ln 11082 else 11083 as_ln_s='cp -p' 11084 fi 11085else 11086 as_ln_s='cp -p' 11087fi 11088rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11089rmdir conf$$.dir 2>/dev/null 11090 11091 11092# as_fn_mkdir_p 11093# ------------- 11094# Create "$as_dir" as a directory, including parents if necessary. 11095as_fn_mkdir_p () 11096{ 11097 11098 case $as_dir in #( 11099 -*) as_dir=./$as_dir;; 11100 esac 11101 test -d "$as_dir" || eval $as_mkdir_p || { 11102 as_dirs= 11103 while :; do 11104 case $as_dir in #( 11105 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11106 *) as_qdir=$as_dir;; 11107 esac 11108 as_dirs="'$as_qdir' $as_dirs" 11109 as_dir=`$as_dirname -- "$as_dir" || 11110$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11111 X"$as_dir" : 'X\(//\)[^/]' \| \ 11112 X"$as_dir" : 'X\(//\)$' \| \ 11113 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11114$as_echo X"$as_dir" | 11115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11116 s//\1/ 11117 q 11118 } 11119 /^X\(\/\/\)[^/].*/{ 11120 s//\1/ 11121 q 11122 } 11123 /^X\(\/\/\)$/{ 11124 s//\1/ 11125 q 11126 } 11127 /^X\(\/\).*/{ 11128 s//\1/ 11129 q 11130 } 11131 s/.*/./; q'` 11132 test -d "$as_dir" && break 11133 done 11134 test -z "$as_dirs" || eval "mkdir $as_dirs" 11135 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11136 11137 11138} # as_fn_mkdir_p 11139if mkdir -p . 2>/dev/null; then 11140 as_mkdir_p='mkdir -p "$as_dir"' 11141else 11142 test -d ./-p && rmdir ./-p 11143 as_mkdir_p=false 11144fi 11145 11146if test -x / >/dev/null 2>&1; then 11147 as_test_x='test -x' 11148else 11149 if ls -dL / >/dev/null 2>&1; then 11150 as_ls_L_option=L 11151 else 11152 as_ls_L_option= 11153 fi 11154 as_test_x=' 11155 eval sh -c '\'' 11156 if test -d "$1"; then 11157 test -d "$1/."; 11158 else 11159 case $1 in #( 11160 -*)set "./$1";; 11161 esac; 11162 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11163 ???[sx]*):;;*)false;;esac;fi 11164 '\'' sh 11165 ' 11166fi 11167as_executable_p=$as_test_x 11168 11169# Sed expression to map a string onto a valid CPP name. 11170as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11171 11172# Sed expression to map a string onto a valid variable name. 11173as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11174 11175 11176exec 6>&1 11177## ----------------------------------- ## 11178## Main body of $CONFIG_STATUS script. ## 11179## ----------------------------------- ## 11180_ASEOF 11181test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11182 11183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11184# Save the log message, to keep $0 and so on meaningful, and to 11185# report actual input values of CONFIG_FILES etc. instead of their 11186# values after options handling. 11187ac_log=" 11188This file was extended by xfindproxy $as_me 1.0.3, which was 11189generated by GNU Autoconf 2.68. Invocation command line was 11190 11191 CONFIG_FILES = $CONFIG_FILES 11192 CONFIG_HEADERS = $CONFIG_HEADERS 11193 CONFIG_LINKS = $CONFIG_LINKS 11194 CONFIG_COMMANDS = $CONFIG_COMMANDS 11195 $ $0 $@ 11196 11197on `(hostname || uname -n) 2>/dev/null | sed 1q` 11198" 11199 11200_ACEOF 11201 11202case $ac_config_files in *" 11203"*) set x $ac_config_files; shift; ac_config_files=$*;; 11204esac 11205 11206case $ac_config_headers in *" 11207"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11208esac 11209 11210 11211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11212# Files that config.status was made for. 11213config_files="$ac_config_files" 11214config_headers="$ac_config_headers" 11215config_commands="$ac_config_commands" 11216 11217_ACEOF 11218 11219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11220ac_cs_usage="\ 11221\`$as_me' instantiates files and other configuration actions 11222from templates according to the current configuration. Unless the files 11223and actions are specified as TAGs, all are instantiated by default. 11224 11225Usage: $0 [OPTION]... [TAG]... 11226 11227 -h, --help print this help, then exit 11228 -V, --version print version number and configuration settings, then exit 11229 --config print configuration, then exit 11230 -q, --quiet, --silent 11231 do not print progress messages 11232 -d, --debug don't remove temporary files 11233 --recheck update $as_me by reconfiguring in the same conditions 11234 --file=FILE[:TEMPLATE] 11235 instantiate the configuration file FILE 11236 --header=FILE[:TEMPLATE] 11237 instantiate the configuration header FILE 11238 11239Configuration files: 11240$config_files 11241 11242Configuration headers: 11243$config_headers 11244 11245Configuration commands: 11246$config_commands 11247 11248Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11249 11250_ACEOF 11251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11252ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11253ac_cs_version="\\ 11254xfindproxy config.status 1.0.3 11255configured by $0, generated by GNU Autoconf 2.68, 11256 with options \\"\$ac_cs_config\\" 11257 11258Copyright (C) 2010 Free Software Foundation, Inc. 11259This config.status script is free software; the Free Software Foundation 11260gives unlimited permission to copy, distribute and modify it." 11261 11262ac_pwd='$ac_pwd' 11263srcdir='$srcdir' 11264INSTALL='$INSTALL' 11265MKDIR_P='$MKDIR_P' 11266AWK='$AWK' 11267test -n "\$AWK" || AWK=awk 11268_ACEOF 11269 11270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11271# The default lists apply if the user does not specify any file. 11272ac_need_defaults=: 11273while test $# != 0 11274do 11275 case $1 in 11276 --*=?*) 11277 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11279 ac_shift=: 11280 ;; 11281 --*=) 11282 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11283 ac_optarg= 11284 ac_shift=: 11285 ;; 11286 *) 11287 ac_option=$1 11288 ac_optarg=$2 11289 ac_shift=shift 11290 ;; 11291 esac 11292 11293 case $ac_option in 11294 # Handling of the options. 11295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11296 ac_cs_recheck=: ;; 11297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11298 $as_echo "$ac_cs_version"; exit ;; 11299 --config | --confi | --conf | --con | --co | --c ) 11300 $as_echo "$ac_cs_config"; exit ;; 11301 --debug | --debu | --deb | --de | --d | -d ) 11302 debug=: ;; 11303 --file | --fil | --fi | --f ) 11304 $ac_shift 11305 case $ac_optarg in 11306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11307 '') as_fn_error $? "missing file argument" ;; 11308 esac 11309 as_fn_append CONFIG_FILES " '$ac_optarg'" 11310 ac_need_defaults=false;; 11311 --header | --heade | --head | --hea ) 11312 $ac_shift 11313 case $ac_optarg in 11314 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11315 esac 11316 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11317 ac_need_defaults=false;; 11318 --he | --h) 11319 # Conflict between --help and --header 11320 as_fn_error $? "ambiguous option: \`$1' 11321Try \`$0 --help' for more information.";; 11322 --help | --hel | -h ) 11323 $as_echo "$ac_cs_usage"; exit ;; 11324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11325 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11326 ac_cs_silent=: ;; 11327 11328 # This is an error. 11329 -*) as_fn_error $? "unrecognized option: \`$1' 11330Try \`$0 --help' for more information." ;; 11331 11332 *) as_fn_append ac_config_targets " $1" 11333 ac_need_defaults=false ;; 11334 11335 esac 11336 shift 11337done 11338 11339ac_configure_extra_args= 11340 11341if $ac_cs_silent; then 11342 exec 6>/dev/null 11343 ac_configure_extra_args="$ac_configure_extra_args --silent" 11344fi 11345 11346_ACEOF 11347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11348if \$ac_cs_recheck; then 11349 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11350 shift 11351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11352 CONFIG_SHELL='$SHELL' 11353 export CONFIG_SHELL 11354 exec "\$@" 11355fi 11356 11357_ACEOF 11358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11359exec 5>>config.log 11360{ 11361 echo 11362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11363## Running $as_me. ## 11364_ASBOX 11365 $as_echo "$ac_log" 11366} >&5 11367 11368_ACEOF 11369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11370# 11371# INIT-COMMANDS 11372# 11373AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11374 11375_ACEOF 11376 11377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11378 11379# Handling of arguments. 11380for ac_config_target in $ac_config_targets 11381do 11382 case $ac_config_target in 11383 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11384 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11386 11387 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11388 esac 11389done 11390 11391 11392# If the user did not use the arguments to specify the items to instantiate, 11393# then the envvar interface is used. Set only those that are not. 11394# We use the long form for the default assignment because of an extremely 11395# bizarre bug on SunOS 4.1.3. 11396if $ac_need_defaults; then 11397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11400fi 11401 11402# Have a temporary directory for convenience. Make it in the build tree 11403# simply because there is no reason against having it here, and in addition, 11404# creating and moving files from /tmp can sometimes cause problems. 11405# Hook for its removal unless debugging. 11406# Note that there is a small window in which the directory will not be cleaned: 11407# after its creation but before its name has been assigned to `$tmp'. 11408$debug || 11409{ 11410 tmp= ac_tmp= 11411 trap 'exit_status=$? 11412 : "${ac_tmp:=$tmp}" 11413 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11414' 0 11415 trap 'as_fn_exit 1' 1 2 13 15 11416} 11417# Create a (secure) tmp directory for tmp files. 11418 11419{ 11420 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11421 test -d "$tmp" 11422} || 11423{ 11424 tmp=./conf$$-$RANDOM 11425 (umask 077 && mkdir "$tmp") 11426} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11427ac_tmp=$tmp 11428 11429# Set up the scripts for CONFIG_FILES section. 11430# No need to generate them if there are no CONFIG_FILES. 11431# This happens for instance with `./config.status config.h'. 11432if test -n "$CONFIG_FILES"; then 11433 11434 11435ac_cr=`echo X | tr X '\015'` 11436# On cygwin, bash can eat \r inside `` if the user requested igncr. 11437# But we know of no other shell where ac_cr would be empty at this 11438# point, so we can use a bashism as a fallback. 11439if test "x$ac_cr" = x; then 11440 eval ac_cr=\$\'\\r\' 11441fi 11442ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11443if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11444 ac_cs_awk_cr='\\r' 11445else 11446 ac_cs_awk_cr=$ac_cr 11447fi 11448 11449echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11450_ACEOF 11451 11452 11453{ 11454 echo "cat >conf$$subs.awk <<_ACEOF" && 11455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11456 echo "_ACEOF" 11457} >conf$$subs.sh || 11458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11459ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11460ac_delim='%!_!# ' 11461for ac_last_try in false false false false false :; do 11462 . ./conf$$subs.sh || 11463 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11464 11465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11466 if test $ac_delim_n = $ac_delim_num; then 11467 break 11468 elif $ac_last_try; then 11469 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11470 else 11471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11472 fi 11473done 11474rm -f conf$$subs.sh 11475 11476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11477cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11478_ACEOF 11479sed -n ' 11480h 11481s/^/S["/; s/!.*/"]=/ 11482p 11483g 11484s/^[^!]*!// 11485:repl 11486t repl 11487s/'"$ac_delim"'$// 11488t delim 11489:nl 11490h 11491s/\(.\{148\}\)..*/\1/ 11492t more1 11493s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11494p 11495n 11496b repl 11497:more1 11498s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11499p 11500g 11501s/.\{148\}// 11502t nl 11503:delim 11504h 11505s/\(.\{148\}\)..*/\1/ 11506t more2 11507s/["\\]/\\&/g; s/^/"/; s/$/"/ 11508p 11509b 11510:more2 11511s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11512p 11513g 11514s/.\{148\}// 11515t delim 11516' <conf$$subs.awk | sed ' 11517/^[^""]/{ 11518 N 11519 s/\n// 11520} 11521' >>$CONFIG_STATUS || ac_write_fail=1 11522rm -f conf$$subs.awk 11523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11524_ACAWK 11525cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11526 for (key in S) S_is_set[key] = 1 11527 FS = "" 11528 11529} 11530{ 11531 line = $ 0 11532 nfields = split(line, field, "@") 11533 substed = 0 11534 len = length(field[1]) 11535 for (i = 2; i < nfields; i++) { 11536 key = field[i] 11537 keylen = length(key) 11538 if (S_is_set[key]) { 11539 value = S[key] 11540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11541 len += length(value) + length(field[++i]) 11542 substed = 1 11543 } else 11544 len += 1 + keylen 11545 } 11546 11547 print line 11548} 11549 11550_ACAWK 11551_ACEOF 11552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11553if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11554 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11555else 11556 cat 11557fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11558 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11559_ACEOF 11560 11561# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11562# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11563# trailing colons and then remove the whole line if VPATH becomes empty 11564# (actually we leave an empty line to preserve line numbers). 11565if test "x$srcdir" = x.; then 11566 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11567h 11568s/// 11569s/^/:/ 11570s/[ ]*$/:/ 11571s/:\$(srcdir):/:/g 11572s/:\${srcdir}:/:/g 11573s/:@srcdir@:/:/g 11574s/^:*// 11575s/:*$// 11576x 11577s/\(=[ ]*\).*/\1/ 11578G 11579s/\n// 11580s/^[^=]*=[ ]*$// 11581}' 11582fi 11583 11584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11585fi # test -n "$CONFIG_FILES" 11586 11587# Set up the scripts for CONFIG_HEADERS section. 11588# No need to generate them if there are no CONFIG_HEADERS. 11589# This happens for instance with `./config.status Makefile'. 11590if test -n "$CONFIG_HEADERS"; then 11591cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11592BEGIN { 11593_ACEOF 11594 11595# Transform confdefs.h into an awk script `defines.awk', embedded as 11596# here-document in config.status, that substitutes the proper values into 11597# config.h.in to produce config.h. 11598 11599# Create a delimiter string that does not exist in confdefs.h, to ease 11600# handling of long lines. 11601ac_delim='%!_!# ' 11602for ac_last_try in false false :; do 11603 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11604 if test -z "$ac_tt"; then 11605 break 11606 elif $ac_last_try; then 11607 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11608 else 11609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11610 fi 11611done 11612 11613# For the awk script, D is an array of macro values keyed by name, 11614# likewise P contains macro parameters if any. Preserve backslash 11615# newline sequences. 11616 11617ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11618sed -n ' 11619s/.\{148\}/&'"$ac_delim"'/g 11620t rset 11621:rset 11622s/^[ ]*#[ ]*define[ ][ ]*/ / 11623t def 11624d 11625:def 11626s/\\$// 11627t bsnl 11628s/["\\]/\\&/g 11629s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11630D["\1"]=" \3"/p 11631s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11632d 11633:bsnl 11634s/["\\]/\\&/g 11635s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11636D["\1"]=" \3\\\\\\n"\\/p 11637t cont 11638s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11639t cont 11640d 11641:cont 11642n 11643s/.\{148\}/&'"$ac_delim"'/g 11644t clear 11645:clear 11646s/\\$// 11647t bsnlc 11648s/["\\]/\\&/g; s/^/"/; s/$/"/p 11649d 11650:bsnlc 11651s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11652b cont 11653' <confdefs.h | sed ' 11654s/'"$ac_delim"'/"\\\ 11655"/g' >>$CONFIG_STATUS || ac_write_fail=1 11656 11657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11658 for (key in D) D_is_set[key] = 1 11659 FS = "" 11660} 11661/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11662 line = \$ 0 11663 split(line, arg, " ") 11664 if (arg[1] == "#") { 11665 defundef = arg[2] 11666 mac1 = arg[3] 11667 } else { 11668 defundef = substr(arg[1], 2) 11669 mac1 = arg[2] 11670 } 11671 split(mac1, mac2, "(") #) 11672 macro = mac2[1] 11673 prefix = substr(line, 1, index(line, defundef) - 1) 11674 if (D_is_set[macro]) { 11675 # Preserve the white space surrounding the "#". 11676 print prefix "define", macro P[macro] D[macro] 11677 next 11678 } else { 11679 # Replace #undef with comments. This is necessary, for example, 11680 # in the case of _POSIX_SOURCE, which is predefined and required 11681 # on some systems where configure will not decide to define it. 11682 if (defundef == "undef") { 11683 print "/*", prefix defundef, macro, "*/" 11684 next 11685 } 11686 } 11687} 11688{ print } 11689_ACAWK 11690_ACEOF 11691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11692 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11693fi # test -n "$CONFIG_HEADERS" 11694 11695 11696eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11697shift 11698for ac_tag 11699do 11700 case $ac_tag in 11701 :[FHLC]) ac_mode=$ac_tag; continue;; 11702 esac 11703 case $ac_mode$ac_tag in 11704 :[FHL]*:*);; 11705 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11706 :[FH]-) ac_tag=-:-;; 11707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11708 esac 11709 ac_save_IFS=$IFS 11710 IFS=: 11711 set x $ac_tag 11712 IFS=$ac_save_IFS 11713 shift 11714 ac_file=$1 11715 shift 11716 11717 case $ac_mode in 11718 :L) ac_source=$1;; 11719 :[FH]) 11720 ac_file_inputs= 11721 for ac_f 11722 do 11723 case $ac_f in 11724 -) ac_f="$ac_tmp/stdin";; 11725 *) # Look for the file first in the build tree, then in the source tree 11726 # (if the path is not absolute). The absolute path cannot be DOS-style, 11727 # because $ac_f cannot contain `:'. 11728 test -f "$ac_f" || 11729 case $ac_f in 11730 [\\/$]*) false;; 11731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11732 esac || 11733 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11734 esac 11735 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11736 as_fn_append ac_file_inputs " '$ac_f'" 11737 done 11738 11739 # Let's still pretend it is `configure' which instantiates (i.e., don't 11740 # use $as_me), people would be surprised to read: 11741 # /* config.h. Generated by config.status. */ 11742 configure_input='Generated from '` 11743 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11744 `' by configure.' 11745 if test x"$ac_file" != x-; then 11746 configure_input="$ac_file. $configure_input" 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11748$as_echo "$as_me: creating $ac_file" >&6;} 11749 fi 11750 # Neutralize special characters interpreted by sed in replacement strings. 11751 case $configure_input in #( 11752 *\&* | *\|* | *\\* ) 11753 ac_sed_conf_input=`$as_echo "$configure_input" | 11754 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11755 *) ac_sed_conf_input=$configure_input;; 11756 esac 11757 11758 case $ac_tag in 11759 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11761 esac 11762 ;; 11763 esac 11764 11765 ac_dir=`$as_dirname -- "$ac_file" || 11766$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11767 X"$ac_file" : 'X\(//\)[^/]' \| \ 11768 X"$ac_file" : 'X\(//\)$' \| \ 11769 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11770$as_echo X"$ac_file" | 11771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11772 s//\1/ 11773 q 11774 } 11775 /^X\(\/\/\)[^/].*/{ 11776 s//\1/ 11777 q 11778 } 11779 /^X\(\/\/\)$/{ 11780 s//\1/ 11781 q 11782 } 11783 /^X\(\/\).*/{ 11784 s//\1/ 11785 q 11786 } 11787 s/.*/./; q'` 11788 as_dir="$ac_dir"; as_fn_mkdir_p 11789 ac_builddir=. 11790 11791case "$ac_dir" in 11792.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11793*) 11794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11795 # A ".." for each directory in $ac_dir_suffix. 11796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11797 case $ac_top_builddir_sub in 11798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11800 esac ;; 11801esac 11802ac_abs_top_builddir=$ac_pwd 11803ac_abs_builddir=$ac_pwd$ac_dir_suffix 11804# for backward compatibility: 11805ac_top_builddir=$ac_top_build_prefix 11806 11807case $srcdir in 11808 .) # We are building in place. 11809 ac_srcdir=. 11810 ac_top_srcdir=$ac_top_builddir_sub 11811 ac_abs_top_srcdir=$ac_pwd ;; 11812 [\\/]* | ?:[\\/]* ) # Absolute name. 11813 ac_srcdir=$srcdir$ac_dir_suffix; 11814 ac_top_srcdir=$srcdir 11815 ac_abs_top_srcdir=$srcdir ;; 11816 *) # Relative name. 11817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11818 ac_top_srcdir=$ac_top_build_prefix$srcdir 11819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11820esac 11821ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11822 11823 11824 case $ac_mode in 11825 :F) 11826 # 11827 # CONFIG_FILE 11828 # 11829 11830 case $INSTALL in 11831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11832 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11833 esac 11834 ac_MKDIR_P=$MKDIR_P 11835 case $MKDIR_P in 11836 [\\/$]* | ?:[\\/]* ) ;; 11837 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11838 esac 11839_ACEOF 11840 11841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11842# If the template does not know about datarootdir, expand it. 11843# FIXME: This hack should be removed a few years after 2.60. 11844ac_datarootdir_hack=; ac_datarootdir_seen= 11845ac_sed_dataroot=' 11846/datarootdir/ { 11847 p 11848 q 11849} 11850/@datadir@/p 11851/@docdir@/p 11852/@infodir@/p 11853/@localedir@/p 11854/@mandir@/p' 11855case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11856*datarootdir*) ac_datarootdir_seen=yes;; 11857*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11859$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11860_ACEOF 11861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11862 ac_datarootdir_hack=' 11863 s&@datadir@&$datadir&g 11864 s&@docdir@&$docdir&g 11865 s&@infodir@&$infodir&g 11866 s&@localedir@&$localedir&g 11867 s&@mandir@&$mandir&g 11868 s&\\\${datarootdir}&$datarootdir&g' ;; 11869esac 11870_ACEOF 11871 11872# Neutralize VPATH when `$srcdir' = `.'. 11873# Shell code in configure.ac might set extrasub. 11874# FIXME: do we really want to maintain this feature? 11875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11876ac_sed_extra="$ac_vpsub 11877$extrasub 11878_ACEOF 11879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11880:t 11881/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11882s|@configure_input@|$ac_sed_conf_input|;t t 11883s&@top_builddir@&$ac_top_builddir_sub&;t t 11884s&@top_build_prefix@&$ac_top_build_prefix&;t t 11885s&@srcdir@&$ac_srcdir&;t t 11886s&@abs_srcdir@&$ac_abs_srcdir&;t t 11887s&@top_srcdir@&$ac_top_srcdir&;t t 11888s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11889s&@builddir@&$ac_builddir&;t t 11890s&@abs_builddir@&$ac_abs_builddir&;t t 11891s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11892s&@INSTALL@&$ac_INSTALL&;t t 11893s&@MKDIR_P@&$ac_MKDIR_P&;t t 11894$ac_datarootdir_hack 11895" 11896eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11897 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11898 11899test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11900 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11901 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11902 "$ac_tmp/out"`; test -z "$ac_out"; } && 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11904which seems to be undefined. Please make sure it is defined" >&5 11905$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11906which seems to be undefined. Please make sure it is defined" >&2;} 11907 11908 rm -f "$ac_tmp/stdin" 11909 case $ac_file in 11910 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11911 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11912 esac \ 11913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11914 ;; 11915 :H) 11916 # 11917 # CONFIG_HEADER 11918 # 11919 if test x"$ac_file" != x-; then 11920 { 11921 $as_echo "/* $configure_input */" \ 11922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11923 } >"$ac_tmp/config.h" \ 11924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11925 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11927$as_echo "$as_me: $ac_file is unchanged" >&6;} 11928 else 11929 rm -f "$ac_file" 11930 mv "$ac_tmp/config.h" "$ac_file" \ 11931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11932 fi 11933 else 11934 $as_echo "/* $configure_input */" \ 11935 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11936 || as_fn_error $? "could not create -" "$LINENO" 5 11937 fi 11938# Compute "$ac_file"'s index in $config_headers. 11939_am_arg="$ac_file" 11940_am_stamp_count=1 11941for _am_header in $config_headers :; do 11942 case $_am_header in 11943 $_am_arg | $_am_arg:* ) 11944 break ;; 11945 * ) 11946 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11947 esac 11948done 11949echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11950$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11951 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11952 X"$_am_arg" : 'X\(//\)$' \| \ 11953 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11954$as_echo X"$_am_arg" | 11955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11956 s//\1/ 11957 q 11958 } 11959 /^X\(\/\/\)[^/].*/{ 11960 s//\1/ 11961 q 11962 } 11963 /^X\(\/\/\)$/{ 11964 s//\1/ 11965 q 11966 } 11967 /^X\(\/\).*/{ 11968 s//\1/ 11969 q 11970 } 11971 s/.*/./; q'`/stamp-h$_am_stamp_count 11972 ;; 11973 11974 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11975$as_echo "$as_me: executing $ac_file commands" >&6;} 11976 ;; 11977 esac 11978 11979 11980 case $ac_file$ac_mode in 11981 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11982 # Older Autoconf quotes --file arguments for eval, but not when files 11983 # are listed without --file. Let's play safe and only enable the eval 11984 # if we detect the quoting. 11985 case $CONFIG_FILES in 11986 *\'*) eval set x "$CONFIG_FILES" ;; 11987 *) set x $CONFIG_FILES ;; 11988 esac 11989 shift 11990 for mf 11991 do 11992 # Strip MF so we end up with the name of the file. 11993 mf=`echo "$mf" | sed -e 's/:.*$//'` 11994 # Check whether this is an Automake generated Makefile or not. 11995 # We used to match only the files named 'Makefile.in', but 11996 # some people rename them; so instead we look at the file content. 11997 # Grep'ing the first line is not enough: some people post-process 11998 # each Makefile.in and add a new line on top of each file to say so. 11999 # Grep'ing the whole file is not good either: AIX grep has a line 12000 # limit of 2048, but all sed's we know have understand at least 4000. 12001 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12002 dirpart=`$as_dirname -- "$mf" || 12003$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12004 X"$mf" : 'X\(//\)[^/]' \| \ 12005 X"$mf" : 'X\(//\)$' \| \ 12006 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12007$as_echo X"$mf" | 12008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12009 s//\1/ 12010 q 12011 } 12012 /^X\(\/\/\)[^/].*/{ 12013 s//\1/ 12014 q 12015 } 12016 /^X\(\/\/\)$/{ 12017 s//\1/ 12018 q 12019 } 12020 /^X\(\/\).*/{ 12021 s//\1/ 12022 q 12023 } 12024 s/.*/./; q'` 12025 else 12026 continue 12027 fi 12028 # Extract the definition of DEPDIR, am__include, and am__quote 12029 # from the Makefile without running 'make'. 12030 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12031 test -z "$DEPDIR" && continue 12032 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12033 test -z "$am__include" && continue 12034 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12035 # Find all dependency output files, they are included files with 12036 # $(DEPDIR) in their names. We invoke sed twice because it is the 12037 # simplest approach to changing $(DEPDIR) to its actual value in the 12038 # expansion. 12039 for file in `sed -n " 12040 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12041 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12042 # Make sure the directory exists. 12043 test -f "$dirpart/$file" && continue 12044 fdir=`$as_dirname -- "$file" || 12045$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12046 X"$file" : 'X\(//\)[^/]' \| \ 12047 X"$file" : 'X\(//\)$' \| \ 12048 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12049$as_echo X"$file" | 12050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12051 s//\1/ 12052 q 12053 } 12054 /^X\(\/\/\)[^/].*/{ 12055 s//\1/ 12056 q 12057 } 12058 /^X\(\/\/\)$/{ 12059 s//\1/ 12060 q 12061 } 12062 /^X\(\/\).*/{ 12063 s//\1/ 12064 q 12065 } 12066 s/.*/./; q'` 12067 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12068 # echo "creating $dirpart/$file" 12069 echo '# dummy' > "$dirpart/$file" 12070 done 12071 done 12072} 12073 ;; 12074 12075 esac 12076done # for ac_tag 12077 12078 12079as_fn_exit 0 12080_ACEOF 12081ac_clean_files=$ac_clean_files_save 12082 12083test $ac_write_fail = 0 || 12084 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12085 12086 12087# configure is writing to config.log, and then calls config.status. 12088# config.status does its own redirection, appending to config.log. 12089# Unfortunately, on DOS this fails, as config.log is still kept open 12090# by configure, so config.status won't be able to write to it; its 12091# output is simply discarded. So we exec the FD to /dev/null, 12092# effectively closing config.log, so it can be properly (re)opened and 12093# appended to by config.status. When coming back to configure, we 12094# need to make the FD available again. 12095if test "$no_create" != yes; then 12096 ac_cs_success=: 12097 ac_config_status_args= 12098 test "$silent" = yes && 12099 ac_config_status_args="$ac_config_status_args --quiet" 12100 exec 5>/dev/null 12101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12102 exec 5>>config.log 12103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12104 # would make configure fail if this is the last instruction. 12105 $ac_cs_success || as_fn_exit 1 12106fi 12107if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12109$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12110fi 12111 12112