configure revision a8bb11d0
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xload 1.1.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xload' 563PACKAGE_TARNAME='xload' 564PACKAGE_VERSION='1.1.1' 565PACKAGE_STRING='xload 1.1.1' 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 610appdefaultdir 611APPDEFS_LIBS 612APPDEFS_CFLAGS 613XLOAD_LIBS 614XLOAD_CFLAGS 615USE_GETTEXT_FALSE 616USE_GETTEXT_TRUE 617LOCALEDIR 618AM_BACKSLASH 619AM_DEFAULT_VERBOSITY 620MAN_SUBSTS 621XORG_MAN_PAGE 622ADMIN_MAN_DIR 623DRIVER_MAN_DIR 624MISC_MAN_DIR 625FILE_MAN_DIR 626LIB_MAN_DIR 627APP_MAN_DIR 628ADMIN_MAN_SUFFIX 629DRIVER_MAN_SUFFIX 630MISC_MAN_SUFFIX 631FILE_MAN_SUFFIX 632LIB_MAN_SUFFIX 633APP_MAN_SUFFIX 634SED 635host_os 636host_vendor 637host_cpu 638host 639build_os 640build_vendor 641build_cpu 642build 643INSTALL_CMD 644PKG_CONFIG 645CHANGELOG_CMD 646STRICT_CFLAGS 647CWARNFLAGS 648BASE_CFLAGS 649MAINT 650MAINTAINER_MODE_FALSE 651MAINTAINER_MODE_TRUE 652am__fastdepCC_FALSE 653am__fastdepCC_TRUE 654CCDEPMODE 655AMDEPBACKSLASH 656AMDEP_FALSE 657AMDEP_TRUE 658am__quote 659am__include 660DEPDIR 661am__untar 662am__tar 663AMTAR 664am__leading_dot 665SET_MAKE 666AWK 667mkdir_p 668MKDIR_P 669INSTALL_STRIP_PROGRAM 670STRIP 671install_sh 672MAKEINFO 673AUTOHEADER 674AUTOMAKE 675AUTOCONF 676ACLOCAL 677VERSION 678PACKAGE 679CYGPATH_W 680am__isrc 681INSTALL_DATA 682INSTALL_SCRIPT 683INSTALL_PROGRAM 684EGREP 685GREP 686CPP 687OBJEXT 688EXEEXT 689ac_ct_CC 690CPPFLAGS 691LDFLAGS 692CFLAGS 693CC 694target_alias 695host_alias 696build_alias 697LIBS 698ECHO_T 699ECHO_N 700ECHO_C 701DEFS 702mandir 703localedir 704libdir 705psdir 706pdfdir 707dvidir 708htmldir 709infodir 710docdir 711oldincludedir 712includedir 713localstatedir 714sharedstatedir 715sysconfdir 716datadir 717datarootdir 718libexecdir 719sbindir 720bindir 721program_transform_name 722prefix 723exec_prefix 724PACKAGE_URL 725PACKAGE_BUGREPORT 726PACKAGE_STRING 727PACKAGE_VERSION 728PACKAGE_TARNAME 729PACKAGE_NAME 730PATH_SEPARATOR 731SHELL' 732ac_subst_files='' 733ac_user_opts=' 734enable_option_checking 735enable_dependency_tracking 736enable_maintainer_mode 737enable_selective_werror 738enable_strict_compilation 739enable_silent_rules 740with_localedir 741with_appdefaultdir 742' 743 ac_precious_vars='build_alias 744host_alias 745target_alias 746CC 747CFLAGS 748LDFLAGS 749LIBS 750CPPFLAGS 751CPP 752PKG_CONFIG 753XLOAD_CFLAGS 754XLOAD_LIBS 755APPDEFS_CFLAGS 756APPDEFS_LIBS' 757 758 759# Initialize some variables set by options. 760ac_init_help= 761ac_init_version=false 762ac_unrecognized_opts= 763ac_unrecognized_sep= 764# The variables have the same names as the options, with 765# dashes changed to underlines. 766cache_file=/dev/null 767exec_prefix=NONE 768no_create= 769no_recursion= 770prefix=NONE 771program_prefix=NONE 772program_suffix=NONE 773program_transform_name=s,x,x, 774silent= 775site= 776srcdir= 777verbose= 778x_includes=NONE 779x_libraries=NONE 780 781# Installation directory options. 782# These are left unexpanded so users can "make install exec_prefix=/foo" 783# and all the variables that are supposed to be based on exec_prefix 784# by default will actually change. 785# Use braces instead of parens because sh, perl, etc. also accept them. 786# (The list follows the same order as the GNU Coding Standards.) 787bindir='${exec_prefix}/bin' 788sbindir='${exec_prefix}/sbin' 789libexecdir='${exec_prefix}/libexec' 790datarootdir='${prefix}/share' 791datadir='${datarootdir}' 792sysconfdir='${prefix}/etc' 793sharedstatedir='${prefix}/com' 794localstatedir='${prefix}/var' 795includedir='${prefix}/include' 796oldincludedir='/usr/include' 797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 798infodir='${datarootdir}/info' 799htmldir='${docdir}' 800dvidir='${docdir}' 801pdfdir='${docdir}' 802psdir='${docdir}' 803libdir='${exec_prefix}/lib' 804localedir='${datarootdir}/locale' 805mandir='${datarootdir}/man' 806 807ac_prev= 808ac_dashdash= 809for ac_option 810do 811 # If the previous option needs an argument, assign it. 812 if test -n "$ac_prev"; then 813 eval $ac_prev=\$ac_option 814 ac_prev= 815 continue 816 fi 817 818 case $ac_option in 819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 820 *=) ac_optarg= ;; 821 *) ac_optarg=yes ;; 822 esac 823 824 # Accept the important Cygnus configure options, so we can diagnose typos. 825 826 case $ac_dashdash$ac_option in 827 --) 828 ac_dashdash=yes ;; 829 830 -bindir | --bindir | --bindi | --bind | --bin | --bi) 831 ac_prev=bindir ;; 832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 833 bindir=$ac_optarg ;; 834 835 -build | --build | --buil | --bui | --bu) 836 ac_prev=build_alias ;; 837 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 838 build_alias=$ac_optarg ;; 839 840 -cache-file | --cache-file | --cache-fil | --cache-fi \ 841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 842 ac_prev=cache_file ;; 843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 845 cache_file=$ac_optarg ;; 846 847 --config-cache | -C) 848 cache_file=config.cache ;; 849 850 -datadir | --datadir | --datadi | --datad) 851 ac_prev=datadir ;; 852 -datadir=* | --datadir=* | --datadi=* | --datad=*) 853 datadir=$ac_optarg ;; 854 855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 856 | --dataroo | --dataro | --datar) 857 ac_prev=datarootdir ;; 858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 860 datarootdir=$ac_optarg ;; 861 862 -disable-* | --disable-*) 863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 864 # Reject names that are not valid shell variable names. 865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 866 as_fn_error $? "invalid feature name: $ac_useropt" 867 ac_useropt_orig=$ac_useropt 868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 869 case $ac_user_opts in 870 *" 871"enable_$ac_useropt" 872"*) ;; 873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 874 ac_unrecognized_sep=', ';; 875 esac 876 eval enable_$ac_useropt=no ;; 877 878 -docdir | --docdir | --docdi | --doc | --do) 879 ac_prev=docdir ;; 880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 881 docdir=$ac_optarg ;; 882 883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 884 ac_prev=dvidir ;; 885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 886 dvidir=$ac_optarg ;; 887 888 -enable-* | --enable-*) 889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 890 # Reject names that are not valid shell variable names. 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892 as_fn_error $? "invalid feature name: $ac_useropt" 893 ac_useropt_orig=$ac_useropt 894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895 case $ac_user_opts in 896 *" 897"enable_$ac_useropt" 898"*) ;; 899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=\$ac_optarg ;; 903 904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 906 | --exec | --exe | --ex) 907 ac_prev=exec_prefix ;; 908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 910 | --exec=* | --exe=* | --ex=*) 911 exec_prefix=$ac_optarg ;; 912 913 -gas | --gas | --ga | --g) 914 # Obsolete; use --with-gas. 915 with_gas=yes ;; 916 917 -help | --help | --hel | --he | -h) 918 ac_init_help=long ;; 919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 920 ac_init_help=recursive ;; 921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 922 ac_init_help=short ;; 923 924 -host | --host | --hos | --ho) 925 ac_prev=host_alias ;; 926 -host=* | --host=* | --hos=* | --ho=*) 927 host_alias=$ac_optarg ;; 928 929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 930 ac_prev=htmldir ;; 931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 932 | --ht=*) 933 htmldir=$ac_optarg ;; 934 935 -includedir | --includedir | --includedi | --included | --include \ 936 | --includ | --inclu | --incl | --inc) 937 ac_prev=includedir ;; 938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 939 | --includ=* | --inclu=* | --incl=* | --inc=*) 940 includedir=$ac_optarg ;; 941 942 -infodir | --infodir | --infodi | --infod | --info | --inf) 943 ac_prev=infodir ;; 944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 945 infodir=$ac_optarg ;; 946 947 -libdir | --libdir | --libdi | --libd) 948 ac_prev=libdir ;; 949 -libdir=* | --libdir=* | --libdi=* | --libd=*) 950 libdir=$ac_optarg ;; 951 952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 953 | --libexe | --libex | --libe) 954 ac_prev=libexecdir ;; 955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 956 | --libexe=* | --libex=* | --libe=*) 957 libexecdir=$ac_optarg ;; 958 959 -localedir | --localedir | --localedi | --localed | --locale) 960 ac_prev=localedir ;; 961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 962 localedir=$ac_optarg ;; 963 964 -localstatedir | --localstatedir | --localstatedi | --localstated \ 965 | --localstate | --localstat | --localsta | --localst | --locals) 966 ac_prev=localstatedir ;; 967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 969 localstatedir=$ac_optarg ;; 970 971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 972 ac_prev=mandir ;; 973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 974 mandir=$ac_optarg ;; 975 976 -nfp | --nfp | --nf) 977 # Obsolete; use --without-fp. 978 with_fp=no ;; 979 980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 981 | --no-cr | --no-c | -n) 982 no_create=yes ;; 983 984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 986 no_recursion=yes ;; 987 988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 990 | --oldin | --oldi | --old | --ol | --o) 991 ac_prev=oldincludedir ;; 992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 995 oldincludedir=$ac_optarg ;; 996 997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 998 ac_prev=prefix ;; 999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1000 prefix=$ac_optarg ;; 1001 1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1003 | --program-pre | --program-pr | --program-p) 1004 ac_prev=program_prefix ;; 1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1007 program_prefix=$ac_optarg ;; 1008 1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1010 | --program-suf | --program-su | --program-s) 1011 ac_prev=program_suffix ;; 1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1014 program_suffix=$ac_optarg ;; 1015 1016 -program-transform-name | --program-transform-name \ 1017 | --program-transform-nam | --program-transform-na \ 1018 | --program-transform-n | --program-transform- \ 1019 | --program-transform | --program-transfor \ 1020 | --program-transfo | --program-transf \ 1021 | --program-trans | --program-tran \ 1022 | --progr-tra | --program-tr | --program-t) 1023 ac_prev=program_transform_name ;; 1024 -program-transform-name=* | --program-transform-name=* \ 1025 | --program-transform-nam=* | --program-transform-na=* \ 1026 | --program-transform-n=* | --program-transform-=* \ 1027 | --program-transform=* | --program-transfor=* \ 1028 | --program-transfo=* | --program-transf=* \ 1029 | --program-trans=* | --program-tran=* \ 1030 | --progr-tra=* | --program-tr=* | --program-t=*) 1031 program_transform_name=$ac_optarg ;; 1032 1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1034 ac_prev=pdfdir ;; 1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1036 pdfdir=$ac_optarg ;; 1037 1038 -psdir | --psdir | --psdi | --psd | --ps) 1039 ac_prev=psdir ;; 1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1041 psdir=$ac_optarg ;; 1042 1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1044 | -silent | --silent | --silen | --sile | --sil) 1045 silent=yes ;; 1046 1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1048 ac_prev=sbindir ;; 1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1050 | --sbi=* | --sb=*) 1051 sbindir=$ac_optarg ;; 1052 1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1055 | --sharedst | --shareds | --shared | --share | --shar \ 1056 | --sha | --sh) 1057 ac_prev=sharedstatedir ;; 1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1061 | --sha=* | --sh=*) 1062 sharedstatedir=$ac_optarg ;; 1063 1064 -site | --site | --sit) 1065 ac_prev=site ;; 1066 -site=* | --site=* | --sit=*) 1067 site=$ac_optarg ;; 1068 1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1070 ac_prev=srcdir ;; 1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1072 srcdir=$ac_optarg ;; 1073 1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1075 | --syscon | --sysco | --sysc | --sys | --sy) 1076 ac_prev=sysconfdir ;; 1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1079 sysconfdir=$ac_optarg ;; 1080 1081 -target | --target | --targe | --targ | --tar | --ta | --t) 1082 ac_prev=target_alias ;; 1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1084 target_alias=$ac_optarg ;; 1085 1086 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1087 verbose=yes ;; 1088 1089 -version | --version | --versio | --versi | --vers | -V) 1090 ac_init_version=: ;; 1091 1092 -with-* | --with-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 as_fn_error $? "invalid package name: $ac_useropt" 1097 ac_useropt_orig=$ac_useropt 1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099 case $ac_user_opts in 1100 *" 1101"with_$ac_useropt" 1102"*) ;; 1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1104 ac_unrecognized_sep=', ';; 1105 esac 1106 eval with_$ac_useropt=\$ac_optarg ;; 1107 1108 -without-* | --without-*) 1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1110 # Reject names that are not valid shell variable names. 1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1112 as_fn_error $? "invalid package name: $ac_useropt" 1113 ac_useropt_orig=$ac_useropt 1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1115 case $ac_user_opts in 1116 *" 1117"with_$ac_useropt" 1118"*) ;; 1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1120 ac_unrecognized_sep=', ';; 1121 esac 1122 eval with_$ac_useropt=no ;; 1123 1124 --x) 1125 # Obsolete; use --with-x. 1126 with_x=yes ;; 1127 1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1129 | --x-incl | --x-inc | --x-in | --x-i) 1130 ac_prev=x_includes ;; 1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1133 x_includes=$ac_optarg ;; 1134 1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1137 ac_prev=x_libraries ;; 1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1140 x_libraries=$ac_optarg ;; 1141 1142 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1143Try \`$0 --help' for more information" 1144 ;; 1145 1146 *=*) 1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1148 # Reject names that are not valid shell variable names. 1149 case $ac_envvar in #( 1150 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1151 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1152 esac 1153 eval $ac_envvar=\$ac_optarg 1154 export $ac_envvar ;; 1155 1156 *) 1157 # FIXME: should be removed in autoconf 3.0. 1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1161 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1162 ;; 1163 1164 esac 1165done 1166 1167if test -n "$ac_prev"; then 1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1169 as_fn_error $? "missing argument to $ac_option" 1170fi 1171 1172if test -n "$ac_unrecognized_opts"; then 1173 case $enable_option_checking in 1174 no) ;; 1175 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1177 esac 1178fi 1179 1180# Check all directory arguments for consistency. 1181for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1182 datadir sysconfdir sharedstatedir localstatedir includedir \ 1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1184 libdir localedir mandir 1185do 1186 eval ac_val=\$$ac_var 1187 # Remove trailing slashes. 1188 case $ac_val in 1189 */ ) 1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1191 eval $ac_var=\$ac_val;; 1192 esac 1193 # Be sure to have absolute directory names. 1194 case $ac_val in 1195 [\\/$]* | ?:[\\/]* ) continue;; 1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1197 esac 1198 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1199done 1200 1201# There might be people who depend on the old broken behavior: `$host' 1202# used to hold the argument of --host etc. 1203# FIXME: To remove some day. 1204build=$build_alias 1205host=$host_alias 1206target=$target_alias 1207 1208# FIXME: To remove some day. 1209if test "x$host_alias" != x; then 1210 if test "x$build_alias" = x; then 1211 cross_compiling=maybe 1212 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1213 If a cross compiler is detected then cross compile mode will be used" >&2 1214 elif test "x$build_alias" != "x$host_alias"; then 1215 cross_compiling=yes 1216 fi 1217fi 1218 1219ac_tool_prefix= 1220test -n "$host_alias" && ac_tool_prefix=$host_alias- 1221 1222test "$silent" = yes && exec 6>/dev/null 1223 1224 1225ac_pwd=`pwd` && test -n "$ac_pwd" && 1226ac_ls_di=`ls -di .` && 1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1228 as_fn_error $? "working directory cannot be determined" 1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1230 as_fn_error $? "pwd does not report name of working directory" 1231 1232 1233# Find the source files, if location was not specified. 1234if test -z "$srcdir"; then 1235 ac_srcdir_defaulted=yes 1236 # Try the directory containing this script, then the parent directory. 1237 ac_confdir=`$as_dirname -- "$as_myself" || 1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1239 X"$as_myself" : 'X\(//\)[^/]' \| \ 1240 X"$as_myself" : 'X\(//\)$' \| \ 1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1242$as_echo X"$as_myself" | 1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1244 s//\1/ 1245 q 1246 } 1247 /^X\(\/\/\)[^/].*/{ 1248 s//\1/ 1249 q 1250 } 1251 /^X\(\/\/\)$/{ 1252 s//\1/ 1253 q 1254 } 1255 /^X\(\/\).*/{ 1256 s//\1/ 1257 q 1258 } 1259 s/.*/./; q'` 1260 srcdir=$ac_confdir 1261 if test ! -r "$srcdir/$ac_unique_file"; then 1262 srcdir=.. 1263 fi 1264else 1265 ac_srcdir_defaulted=no 1266fi 1267if test ! -r "$srcdir/$ac_unique_file"; then 1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1269 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1270fi 1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1272ac_abs_confdir=`( 1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1274 pwd)` 1275# When building in place, set srcdir=. 1276if test "$ac_abs_confdir" = "$ac_pwd"; then 1277 srcdir=. 1278fi 1279# Remove unnecessary trailing slashes from srcdir. 1280# Double slashes in file names in object file debugging info 1281# mess up M-x gdb in Emacs. 1282case $srcdir in 1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1284esac 1285for ac_var in $ac_precious_vars; do 1286 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1287 eval ac_env_${ac_var}_value=\$${ac_var} 1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1289 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1290done 1291 1292# 1293# Report the --help message. 1294# 1295if test "$ac_init_help" = "long"; then 1296 # Omit some internal or obsolete options to make the list less imposing. 1297 # This message is too long to be a string in the A/UX 3.1 sh. 1298 cat <<_ACEOF 1299\`configure' configures xload 1.1.1 to adapt to many kinds of systems. 1300 1301Usage: $0 [OPTION]... [VAR=VALUE]... 1302 1303To assign environment variables (e.g., CC, CFLAGS...), specify them as 1304VAR=VALUE. See below for descriptions of some of the useful variables. 1305 1306Defaults for the options are specified in brackets. 1307 1308Configuration: 1309 -h, --help display this help and exit 1310 --help=short display options specific to this package 1311 --help=recursive display the short help of all the included packages 1312 -V, --version display version information and exit 1313 -q, --quiet, --silent do not print \`checking ...' messages 1314 --cache-file=FILE cache test results in FILE [disabled] 1315 -C, --config-cache alias for \`--cache-file=config.cache' 1316 -n, --no-create do not create output files 1317 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1318 1319Installation directories: 1320 --prefix=PREFIX install architecture-independent files in PREFIX 1321 [$ac_default_prefix] 1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1323 [PREFIX] 1324 1325By default, \`make install' will install all the files in 1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1327an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1328for instance \`--prefix=\$HOME'. 1329 1330For better control, use the options below. 1331 1332Fine tuning of the installation directories: 1333 --bindir=DIR user executables [EPREFIX/bin] 1334 --sbindir=DIR system admin executables [EPREFIX/sbin] 1335 --libexecdir=DIR program executables [EPREFIX/libexec] 1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1339 --libdir=DIR object code libraries [EPREFIX/lib] 1340 --includedir=DIR C header files [PREFIX/include] 1341 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1344 --infodir=DIR info documentation [DATAROOTDIR/info] 1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1346 --mandir=DIR man documentation [DATAROOTDIR/man] 1347 --docdir=DIR documentation root [DATAROOTDIR/doc/xload] 1348 --htmldir=DIR html documentation [DOCDIR] 1349 --dvidir=DIR dvi documentation [DOCDIR] 1350 --pdfdir=DIR pdf documentation [DOCDIR] 1351 --psdir=DIR ps documentation [DOCDIR] 1352_ACEOF 1353 1354 cat <<\_ACEOF 1355 1356Program names: 1357 --program-prefix=PREFIX prepend PREFIX to installed program names 1358 --program-suffix=SUFFIX append SUFFIX to installed program names 1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1360 1361System types: 1362 --build=BUILD configure for building on BUILD [guessed] 1363 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1364_ACEOF 1365fi 1366 1367if test -n "$ac_init_help"; then 1368 case $ac_init_help in 1369 short | recursive ) echo "Configuration of xload 1.1.1:";; 1370 esac 1371 cat <<\_ACEOF 1372 1373Optional Features: 1374 --disable-option-checking ignore unrecognized --enable/--with options 1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1377 --disable-dependency-tracking speeds up one-time build 1378 --enable-dependency-tracking do not reject slow dependency extractors 1379 --enable-maintainer-mode enable make rules and dependencies not useful 1380 (and sometimes confusing) to the casual installer 1381 --disable-selective-werror 1382 Turn off selective compiler errors. (default: 1383 enabled) 1384 --enable-strict-compilation 1385 Enable all warnings from compiler and make them 1386 errors (default: disabled) 1387 --enable-silent-rules less verbose build output (undo: `make V=1') 1388 --disable-silent-rules verbose build output (undo: `make V=0') 1389 1390Optional Packages: 1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1393 --with-localedir=<path> Path to install message files in (default: 1394 datadir/locale) 1395 --with-appdefaultdir=<pathname> 1396 specify directory for app-defaults files (default is 1397 autodetected) 1398 1399Some influential environment variables: 1400 CC C compiler command 1401 CFLAGS C compiler flags 1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1403 nonstandard directory <lib dir> 1404 LIBS libraries to pass to the linker, e.g. -l<library> 1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1406 you have headers in a nonstandard directory <include dir> 1407 CPP C preprocessor 1408 PKG_CONFIG path to pkg-config utility 1409 XLOAD_CFLAGS 1410 C compiler flags for XLOAD, overriding pkg-config 1411 XLOAD_LIBS linker flags for XLOAD, overriding pkg-config 1412 APPDEFS_CFLAGS 1413 C compiler flags for APPDEFS, overriding pkg-config 1414 APPDEFS_LIBS 1415 linker flags for APPDEFS, overriding pkg-config 1416 1417Use these variables to override the choices made by `configure' or to help 1418it to find libraries and programs with nonstandard names/locations. 1419 1420Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1421_ACEOF 1422ac_status=$? 1423fi 1424 1425if test "$ac_init_help" = "recursive"; then 1426 # If there are subdirs, report their specific --help. 1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1428 test -d "$ac_dir" || 1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1430 continue 1431 ac_builddir=. 1432 1433case "$ac_dir" in 1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1435*) 1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1437 # A ".." for each directory in $ac_dir_suffix. 1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1439 case $ac_top_builddir_sub in 1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1442 esac ;; 1443esac 1444ac_abs_top_builddir=$ac_pwd 1445ac_abs_builddir=$ac_pwd$ac_dir_suffix 1446# for backward compatibility: 1447ac_top_builddir=$ac_top_build_prefix 1448 1449case $srcdir in 1450 .) # We are building in place. 1451 ac_srcdir=. 1452 ac_top_srcdir=$ac_top_builddir_sub 1453 ac_abs_top_srcdir=$ac_pwd ;; 1454 [\\/]* | ?:[\\/]* ) # Absolute name. 1455 ac_srcdir=$srcdir$ac_dir_suffix; 1456 ac_top_srcdir=$srcdir 1457 ac_abs_top_srcdir=$srcdir ;; 1458 *) # Relative name. 1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1460 ac_top_srcdir=$ac_top_build_prefix$srcdir 1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1462esac 1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1464 1465 cd "$ac_dir" || { ac_status=$?; continue; } 1466 # Check for guested configure. 1467 if test -f "$ac_srcdir/configure.gnu"; then 1468 echo && 1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1470 elif test -f "$ac_srcdir/configure"; then 1471 echo && 1472 $SHELL "$ac_srcdir/configure" --help=recursive 1473 else 1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1475 fi || ac_status=$? 1476 cd "$ac_pwd" || { ac_status=$?; break; } 1477 done 1478fi 1479 1480test -n "$ac_init_help" && exit $ac_status 1481if $ac_init_version; then 1482 cat <<\_ACEOF 1483xload configure 1.1.1 1484generated by GNU Autoconf 2.68 1485 1486Copyright (C) 2010 Free Software Foundation, Inc. 1487This configure script is free software; the Free Software Foundation 1488gives unlimited permission to copy, distribute and modify it. 1489_ACEOF 1490 exit 1491fi 1492 1493## ------------------------ ## 1494## Autoconf initialization. ## 1495## ------------------------ ## 1496 1497# ac_fn_c_try_compile LINENO 1498# -------------------------- 1499# Try to compile conftest.$ac_ext, and return whether this succeeded. 1500ac_fn_c_try_compile () 1501{ 1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1503 rm -f conftest.$ac_objext 1504 if { { ac_try="$ac_compile" 1505case "(($ac_try" in 1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1507 *) ac_try_echo=$ac_try;; 1508esac 1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1510$as_echo "$ac_try_echo"; } >&5 1511 (eval "$ac_compile") 2>conftest.err 1512 ac_status=$? 1513 if test -s conftest.err; then 1514 grep -v '^ *+' conftest.err >conftest.er1 1515 cat conftest.er1 >&5 1516 mv -f conftest.er1 conftest.err 1517 fi 1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1519 test $ac_status = 0; } && { 1520 test -z "$ac_c_werror_flag" || 1521 test ! -s conftest.err 1522 } && test -s conftest.$ac_objext; then : 1523 ac_retval=0 1524else 1525 $as_echo "$as_me: failed program was:" >&5 1526sed 's/^/| /' conftest.$ac_ext >&5 1527 1528 ac_retval=1 1529fi 1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1531 as_fn_set_status $ac_retval 1532 1533} # ac_fn_c_try_compile 1534 1535# ac_fn_c_try_cpp LINENO 1536# ---------------------- 1537# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1538ac_fn_c_try_cpp () 1539{ 1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1541 if { { ac_try="$ac_cpp conftest.$ac_ext" 1542case "(($ac_try" in 1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1544 *) ac_try_echo=$ac_try;; 1545esac 1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1547$as_echo "$ac_try_echo"; } >&5 1548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1549 ac_status=$? 1550 if test -s conftest.err; then 1551 grep -v '^ *+' conftest.err >conftest.er1 1552 cat conftest.er1 >&5 1553 mv -f conftest.er1 conftest.err 1554 fi 1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1556 test $ac_status = 0; } > conftest.i && { 1557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1558 test ! -s conftest.err 1559 }; then : 1560 ac_retval=0 1561else 1562 $as_echo "$as_me: failed program was:" >&5 1563sed 's/^/| /' conftest.$ac_ext >&5 1564 1565 ac_retval=1 1566fi 1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1568 as_fn_set_status $ac_retval 1569 1570} # ac_fn_c_try_cpp 1571 1572# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1573# ------------------------------------------------------- 1574# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1575# the include files in INCLUDES and setting the cache variable VAR 1576# accordingly. 1577ac_fn_c_check_header_mongrel () 1578{ 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1580 if eval \${$3+:} false; then : 1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1582$as_echo_n "checking for $2... " >&6; } 1583if eval \${$3+:} false; then : 1584 $as_echo_n "(cached) " >&6 1585fi 1586eval ac_res=\$$3 1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1588$as_echo "$ac_res" >&6; } 1589else 1590 # Is the header compilable? 1591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1592$as_echo_n "checking $2 usability... " >&6; } 1593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1594/* end confdefs.h. */ 1595$4 1596#include <$2> 1597_ACEOF 1598if ac_fn_c_try_compile "$LINENO"; then : 1599 ac_header_compiler=yes 1600else 1601 ac_header_compiler=no 1602fi 1603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1605$as_echo "$ac_header_compiler" >&6; } 1606 1607# Is the header present? 1608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1609$as_echo_n "checking $2 presence... " >&6; } 1610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1611/* end confdefs.h. */ 1612#include <$2> 1613_ACEOF 1614if ac_fn_c_try_cpp "$LINENO"; then : 1615 ac_header_preproc=yes 1616else 1617 ac_header_preproc=no 1618fi 1619rm -f conftest.err conftest.i conftest.$ac_ext 1620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1621$as_echo "$ac_header_preproc" >&6; } 1622 1623# So? What about this header? 1624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1625 yes:no: ) 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1627$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1629$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1630 ;; 1631 no:yes:* ) 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1633$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1635$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1637$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1639$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1641$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1642( $as_echo "## ---------------------------------------------------------------------- ## 1643## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1644## ---------------------------------------------------------------------- ##" 1645 ) | sed "s/^/$as_me: WARNING: /" >&2 1646 ;; 1647esac 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1649$as_echo_n "checking for $2... " >&6; } 1650if eval \${$3+:} false; then : 1651 $as_echo_n "(cached) " >&6 1652else 1653 eval "$3=\$ac_header_compiler" 1654fi 1655eval ac_res=\$$3 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1657$as_echo "$ac_res" >&6; } 1658fi 1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660 1661} # ac_fn_c_check_header_mongrel 1662 1663# ac_fn_c_try_run LINENO 1664# ---------------------- 1665# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1666# that executables *can* be run. 1667ac_fn_c_try_run () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 if { { ac_try="$ac_link" 1671case "(($ac_try" in 1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1673 *) ac_try_echo=$ac_try;; 1674esac 1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1676$as_echo "$ac_try_echo"; } >&5 1677 (eval "$ac_link") 2>&5 1678 ac_status=$? 1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1681 { { case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686$as_echo "$ac_try_echo"; } >&5 1687 (eval "$ac_try") 2>&5 1688 ac_status=$? 1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; }; }; then : 1691 ac_retval=0 1692else 1693 $as_echo "$as_me: program exited with status $ac_status" >&5 1694 $as_echo "$as_me: failed program was:" >&5 1695sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=$ac_status 1698fi 1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703} # ac_fn_c_try_run 1704 1705# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1706# ------------------------------------------------------- 1707# Tests whether HEADER exists and can be compiled using the include files in 1708# INCLUDES, setting the cache variable VAR accordingly. 1709ac_fn_c_check_header_compile () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1713$as_echo_n "checking for $2... " >&6; } 1714if eval \${$3+:} false; then : 1715 $as_echo_n "(cached) " >&6 1716else 1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1718/* end confdefs.h. */ 1719$4 1720#include <$2> 1721_ACEOF 1722if ac_fn_c_try_compile "$LINENO"; then : 1723 eval "$3=yes" 1724else 1725 eval "$3=no" 1726fi 1727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1728fi 1729eval ac_res=\$$3 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1731$as_echo "$ac_res" >&6; } 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 1734} # ac_fn_c_check_header_compile 1735 1736# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1737# --------------------------------------------- 1738# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1739# accordingly. 1740ac_fn_c_check_decl () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 as_decl_name=`echo $2|sed 's/ *(.*//'` 1744 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1746$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1747if eval \${$3+:} false; then : 1748 $as_echo_n "(cached) " >&6 1749else 1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1751/* end confdefs.h. */ 1752$4 1753int 1754main () 1755{ 1756#ifndef $as_decl_name 1757#ifdef __cplusplus 1758 (void) $as_decl_use; 1759#else 1760 (void) $as_decl_name; 1761#endif 1762#endif 1763 1764 ; 1765 return 0; 1766} 1767_ACEOF 1768if ac_fn_c_try_compile "$LINENO"; then : 1769 eval "$3=yes" 1770else 1771 eval "$3=no" 1772fi 1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1774fi 1775eval ac_res=\$$3 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1777$as_echo "$ac_res" >&6; } 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 1780} # ac_fn_c_check_decl 1781 1782# ac_fn_c_try_link LINENO 1783# ----------------------- 1784# Try to link conftest.$ac_ext, and return whether this succeeded. 1785ac_fn_c_try_link () 1786{ 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 rm -f conftest.$ac_objext conftest$ac_exeext 1789 if { { ac_try="$ac_link" 1790case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_link") 2>conftest.err 1797 ac_status=$? 1798 if test -s conftest.err; then 1799 grep -v '^ *+' conftest.err >conftest.er1 1800 cat conftest.er1 >&5 1801 mv -f conftest.er1 conftest.err 1802 fi 1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1804 test $ac_status = 0; } && { 1805 test -z "$ac_c_werror_flag" || 1806 test ! -s conftest.err 1807 } && test -s conftest$ac_exeext && { 1808 test "$cross_compiling" = yes || 1809 $as_test_x conftest$ac_exeext 1810 }; then : 1811 ac_retval=0 1812else 1813 $as_echo "$as_me: failed program was:" >&5 1814sed 's/^/| /' conftest.$ac_ext >&5 1815 1816 ac_retval=1 1817fi 1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1820 # interfere with the next link command; also delete a directory that is 1821 # left behind by Apple's compiler. We do this before executing the actions. 1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 as_fn_set_status $ac_retval 1825 1826} # ac_fn_c_try_link 1827 1828# ac_fn_c_check_func LINENO FUNC VAR 1829# ---------------------------------- 1830# Tests whether FUNC exists, setting the cache variable VAR accordingly 1831ac_fn_c_check_func () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835$as_echo_n "checking for $2... " >&6; } 1836if eval \${$3+:} false; then : 1837 $as_echo_n "(cached) " >&6 1838else 1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1840/* end confdefs.h. */ 1841/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1843#define $2 innocuous_$2 1844 1845/* System header to define __stub macros and hopefully few prototypes, 1846 which can conflict with char $2 (); below. 1847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1848 <limits.h> exists even on freestanding compilers. */ 1849 1850#ifdef __STDC__ 1851# include <limits.h> 1852#else 1853# include <assert.h> 1854#endif 1855 1856#undef $2 1857 1858/* Override any GCC internal prototype to avoid an error. 1859 Use char because int might match the return type of a GCC 1860 builtin and then its argument prototype would still apply. */ 1861#ifdef __cplusplus 1862extern "C" 1863#endif 1864char $2 (); 1865/* The GNU C library defines this for functions which it implements 1866 to always fail with ENOSYS. Some functions are actually named 1867 something starting with __ and the normal name is an alias. */ 1868#if defined __stub_$2 || defined __stub___$2 1869choke me 1870#endif 1871 1872int 1873main () 1874{ 1875return $2 (); 1876 ; 1877 return 0; 1878} 1879_ACEOF 1880if ac_fn_c_try_link "$LINENO"; then : 1881 eval "$3=yes" 1882else 1883 eval "$3=no" 1884fi 1885rm -f core conftest.err conftest.$ac_objext \ 1886 conftest$ac_exeext conftest.$ac_ext 1887fi 1888eval ac_res=\$$3 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1890$as_echo "$ac_res" >&6; } 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1892 1893} # ac_fn_c_check_func 1894cat >config.log <<_ACEOF 1895This file contains any messages produced by compilers while 1896running configure, to aid debugging if configure makes a mistake. 1897 1898It was created by xload $as_me 1.1.1, which was 1899generated by GNU Autoconf 2.68. Invocation command line was 1900 1901 $ $0 $@ 1902 1903_ACEOF 1904exec 5>>config.log 1905{ 1906cat <<_ASUNAME 1907## --------- ## 1908## Platform. ## 1909## --------- ## 1910 1911hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1912uname -m = `(uname -m) 2>/dev/null || echo unknown` 1913uname -r = `(uname -r) 2>/dev/null || echo unknown` 1914uname -s = `(uname -s) 2>/dev/null || echo unknown` 1915uname -v = `(uname -v) 2>/dev/null || echo unknown` 1916 1917/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1918/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1919 1920/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1921/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1922/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1923/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1924/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1925/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1926/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1927 1928_ASUNAME 1929 1930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1931for as_dir in $PATH 1932do 1933 IFS=$as_save_IFS 1934 test -z "$as_dir" && as_dir=. 1935 $as_echo "PATH: $as_dir" 1936 done 1937IFS=$as_save_IFS 1938 1939} >&5 1940 1941cat >&5 <<_ACEOF 1942 1943 1944## ----------- ## 1945## Core tests. ## 1946## ----------- ## 1947 1948_ACEOF 1949 1950 1951# Keep a trace of the command line. 1952# Strip out --no-create and --no-recursion so they do not pile up. 1953# Strip out --silent because we don't want to record it for future runs. 1954# Also quote any args containing shell meta-characters. 1955# Make two passes to allow for proper duplicate-argument suppression. 1956ac_configure_args= 1957ac_configure_args0= 1958ac_configure_args1= 1959ac_must_keep_next=false 1960for ac_pass in 1 2 1961do 1962 for ac_arg 1963 do 1964 case $ac_arg in 1965 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1966 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1967 | -silent | --silent | --silen | --sile | --sil) 1968 continue ;; 1969 *\'*) 1970 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1971 esac 1972 case $ac_pass in 1973 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1974 2) 1975 as_fn_append ac_configure_args1 " '$ac_arg'" 1976 if test $ac_must_keep_next = true; then 1977 ac_must_keep_next=false # Got value, back to normal. 1978 else 1979 case $ac_arg in 1980 *=* | --config-cache | -C | -disable-* | --disable-* \ 1981 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1982 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1983 | -with-* | --with-* | -without-* | --without-* | --x) 1984 case "$ac_configure_args0 " in 1985 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1986 esac 1987 ;; 1988 -* ) ac_must_keep_next=true ;; 1989 esac 1990 fi 1991 as_fn_append ac_configure_args " '$ac_arg'" 1992 ;; 1993 esac 1994 done 1995done 1996{ ac_configure_args0=; unset ac_configure_args0;} 1997{ ac_configure_args1=; unset ac_configure_args1;} 1998 1999# When interrupted or exit'd, cleanup temporary files, and complete 2000# config.log. We remove comments because anyway the quotes in there 2001# would cause problems or look ugly. 2002# WARNING: Use '\'' to represent an apostrophe within the trap. 2003# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2004trap 'exit_status=$? 2005 # Save into config.log some information that might help in debugging. 2006 { 2007 echo 2008 2009 $as_echo "## ---------------- ## 2010## Cache variables. ## 2011## ---------------- ##" 2012 echo 2013 # The following way of writing the cache mishandles newlines in values, 2014( 2015 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2016 eval ac_val=\$$ac_var 2017 case $ac_val in #( 2018 *${as_nl}*) 2019 case $ac_var in #( 2020 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2021$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2022 esac 2023 case $ac_var in #( 2024 _ | IFS | as_nl) ;; #( 2025 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2026 *) { eval $ac_var=; unset $ac_var;} ;; 2027 esac ;; 2028 esac 2029 done 2030 (set) 2>&1 | 2031 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2032 *${as_nl}ac_space=\ *) 2033 sed -n \ 2034 "s/'\''/'\''\\\\'\'''\''/g; 2035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2036 ;; #( 2037 *) 2038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2039 ;; 2040 esac | 2041 sort 2042) 2043 echo 2044 2045 $as_echo "## ----------------- ## 2046## Output variables. ## 2047## ----------------- ##" 2048 echo 2049 for ac_var in $ac_subst_vars 2050 do 2051 eval ac_val=\$$ac_var 2052 case $ac_val in 2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2054 esac 2055 $as_echo "$ac_var='\''$ac_val'\''" 2056 done | sort 2057 echo 2058 2059 if test -n "$ac_subst_files"; then 2060 $as_echo "## ------------------- ## 2061## File substitutions. ## 2062## ------------------- ##" 2063 echo 2064 for ac_var in $ac_subst_files 2065 do 2066 eval ac_val=\$$ac_var 2067 case $ac_val in 2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2069 esac 2070 $as_echo "$ac_var='\''$ac_val'\''" 2071 done | sort 2072 echo 2073 fi 2074 2075 if test -s confdefs.h; then 2076 $as_echo "## ----------- ## 2077## confdefs.h. ## 2078## ----------- ##" 2079 echo 2080 cat confdefs.h 2081 echo 2082 fi 2083 test "$ac_signal" != 0 && 2084 $as_echo "$as_me: caught signal $ac_signal" 2085 $as_echo "$as_me: exit $exit_status" 2086 } >&5 2087 rm -f core *.core core.conftest.* && 2088 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2089 exit $exit_status 2090' 0 2091for ac_signal in 1 2 13 15; do 2092 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2093done 2094ac_signal=0 2095 2096# confdefs.h avoids OS command line length limits that DEFS can exceed. 2097rm -f -r conftest* confdefs.h 2098 2099$as_echo "/* confdefs.h */" > confdefs.h 2100 2101# Predefined preprocessor variables. 2102 2103cat >>confdefs.h <<_ACEOF 2104#define PACKAGE_NAME "$PACKAGE_NAME" 2105_ACEOF 2106 2107cat >>confdefs.h <<_ACEOF 2108#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2109_ACEOF 2110 2111cat >>confdefs.h <<_ACEOF 2112#define PACKAGE_VERSION "$PACKAGE_VERSION" 2113_ACEOF 2114 2115cat >>confdefs.h <<_ACEOF 2116#define PACKAGE_STRING "$PACKAGE_STRING" 2117_ACEOF 2118 2119cat >>confdefs.h <<_ACEOF 2120#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2121_ACEOF 2122 2123cat >>confdefs.h <<_ACEOF 2124#define PACKAGE_URL "$PACKAGE_URL" 2125_ACEOF 2126 2127 2128# Let the site file select an alternate cache file if it wants to. 2129# Prefer an explicitly selected file to automatically selected ones. 2130ac_site_file1=NONE 2131ac_site_file2=NONE 2132if test -n "$CONFIG_SITE"; then 2133 # We do not want a PATH search for config.site. 2134 case $CONFIG_SITE in #(( 2135 -*) ac_site_file1=./$CONFIG_SITE;; 2136 */*) ac_site_file1=$CONFIG_SITE;; 2137 *) ac_site_file1=./$CONFIG_SITE;; 2138 esac 2139elif test "x$prefix" != xNONE; then 2140 ac_site_file1=$prefix/share/config.site 2141 ac_site_file2=$prefix/etc/config.site 2142else 2143 ac_site_file1=$ac_default_prefix/share/config.site 2144 ac_site_file2=$ac_default_prefix/etc/config.site 2145fi 2146for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2147do 2148 test "x$ac_site_file" = xNONE && continue 2149 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2151$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2152 sed 's/^/| /' "$ac_site_file" >&5 2153 . "$ac_site_file" \ 2154 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2156as_fn_error $? "failed to load site script $ac_site_file 2157See \`config.log' for more details" "$LINENO" 5; } 2158 fi 2159done 2160 2161if test -r "$cache_file"; then 2162 # Some versions of bash will fail to source /dev/null (special files 2163 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2164 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2166$as_echo "$as_me: loading cache $cache_file" >&6;} 2167 case $cache_file in 2168 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2169 *) . "./$cache_file";; 2170 esac 2171 fi 2172else 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2174$as_echo "$as_me: creating cache $cache_file" >&6;} 2175 >$cache_file 2176fi 2177 2178# Check that the precious variables saved in the cache have kept the same 2179# value. 2180ac_cache_corrupted=false 2181for ac_var in $ac_precious_vars; do 2182 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2183 eval ac_new_set=\$ac_env_${ac_var}_set 2184 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2185 eval ac_new_val=\$ac_env_${ac_var}_value 2186 case $ac_old_set,$ac_new_set in 2187 set,) 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2189$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2190 ac_cache_corrupted=: ;; 2191 ,set) 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2193$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2194 ac_cache_corrupted=: ;; 2195 ,);; 2196 *) 2197 if test "x$ac_old_val" != "x$ac_new_val"; then 2198 # differences in whitespace do not lead to failure. 2199 ac_old_val_w=`echo x $ac_old_val` 2200 ac_new_val_w=`echo x $ac_new_val` 2201 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2203$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2204 ac_cache_corrupted=: 2205 else 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2207$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2208 eval $ac_var=\$ac_old_val 2209 fi 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2211$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2213$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2214 fi;; 2215 esac 2216 # Pass precious variables to config.status. 2217 if test "$ac_new_set" = set; then 2218 case $ac_new_val in 2219 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2220 *) ac_arg=$ac_var=$ac_new_val ;; 2221 esac 2222 case " $ac_configure_args " in 2223 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2224 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2225 esac 2226 fi 2227done 2228if $ac_cache_corrupted; then 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2232$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2233 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2234fi 2235## -------------------- ## 2236## Main body of script. ## 2237## -------------------- ## 2238 2239ac_ext=c 2240ac_cpp='$CPP $CPPFLAGS' 2241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2243ac_compiler_gnu=$ac_cv_c_compiler_gnu 2244 2245 2246 2247 2248ac_config_headers="$ac_config_headers config.h" 2249 2250ac_ext=c 2251ac_cpp='$CPP $CPPFLAGS' 2252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2254ac_compiler_gnu=$ac_cv_c_compiler_gnu 2255if test -n "$ac_tool_prefix"; then 2256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2257set dummy ${ac_tool_prefix}gcc; ac_word=$2 2258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2259$as_echo_n "checking for $ac_word... " >&6; } 2260if ${ac_cv_prog_CC+:} false; then : 2261 $as_echo_n "(cached) " >&6 2262else 2263 if test -n "$CC"; then 2264 ac_cv_prog_CC="$CC" # Let the user override the test. 2265else 2266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2267for as_dir in $PATH 2268do 2269 IFS=$as_save_IFS 2270 test -z "$as_dir" && as_dir=. 2271 for ac_exec_ext in '' $ac_executable_extensions; do 2272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2273 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2275 break 2 2276 fi 2277done 2278 done 2279IFS=$as_save_IFS 2280 2281fi 2282fi 2283CC=$ac_cv_prog_CC 2284if test -n "$CC"; then 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2286$as_echo "$CC" >&6; } 2287else 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2289$as_echo "no" >&6; } 2290fi 2291 2292 2293fi 2294if test -z "$ac_cv_prog_CC"; then 2295 ac_ct_CC=$CC 2296 # Extract the first word of "gcc", so it can be a program name with args. 2297set dummy gcc; ac_word=$2 2298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2299$as_echo_n "checking for $ac_word... " >&6; } 2300if ${ac_cv_prog_ac_ct_CC+:} false; then : 2301 $as_echo_n "(cached) " >&6 2302else 2303 if test -n "$ac_ct_CC"; then 2304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2305else 2306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2307for as_dir in $PATH 2308do 2309 IFS=$as_save_IFS 2310 test -z "$as_dir" && as_dir=. 2311 for ac_exec_ext in '' $ac_executable_extensions; do 2312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2313 ac_cv_prog_ac_ct_CC="gcc" 2314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2315 break 2 2316 fi 2317done 2318 done 2319IFS=$as_save_IFS 2320 2321fi 2322fi 2323ac_ct_CC=$ac_cv_prog_ac_ct_CC 2324if test -n "$ac_ct_CC"; then 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2326$as_echo "$ac_ct_CC" >&6; } 2327else 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2329$as_echo "no" >&6; } 2330fi 2331 2332 if test "x$ac_ct_CC" = x; then 2333 CC="" 2334 else 2335 case $cross_compiling:$ac_tool_warned in 2336yes:) 2337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2339ac_tool_warned=yes ;; 2340esac 2341 CC=$ac_ct_CC 2342 fi 2343else 2344 CC="$ac_cv_prog_CC" 2345fi 2346 2347if test -z "$CC"; then 2348 if test -n "$ac_tool_prefix"; then 2349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2350set dummy ${ac_tool_prefix}cc; ac_word=$2 2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2352$as_echo_n "checking for $ac_word... " >&6; } 2353if ${ac_cv_prog_CC+:} false; then : 2354 $as_echo_n "(cached) " >&6 2355else 2356 if test -n "$CC"; then 2357 ac_cv_prog_CC="$CC" # Let the user override the test. 2358else 2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2360for as_dir in $PATH 2361do 2362 IFS=$as_save_IFS 2363 test -z "$as_dir" && as_dir=. 2364 for ac_exec_ext in '' $ac_executable_extensions; do 2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2366 ac_cv_prog_CC="${ac_tool_prefix}cc" 2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2368 break 2 2369 fi 2370done 2371 done 2372IFS=$as_save_IFS 2373 2374fi 2375fi 2376CC=$ac_cv_prog_CC 2377if test -n "$CC"; then 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2379$as_echo "$CC" >&6; } 2380else 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2382$as_echo "no" >&6; } 2383fi 2384 2385 2386 fi 2387fi 2388if test -z "$CC"; then 2389 # Extract the first word of "cc", so it can be a program name with args. 2390set dummy cc; ac_word=$2 2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2392$as_echo_n "checking for $ac_word... " >&6; } 2393if ${ac_cv_prog_CC+:} false; then : 2394 $as_echo_n "(cached) " >&6 2395else 2396 if test -n "$CC"; then 2397 ac_cv_prog_CC="$CC" # Let the user override the test. 2398else 2399 ac_prog_rejected=no 2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2401for as_dir in $PATH 2402do 2403 IFS=$as_save_IFS 2404 test -z "$as_dir" && as_dir=. 2405 for ac_exec_ext in '' $ac_executable_extensions; do 2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2408 ac_prog_rejected=yes 2409 continue 2410 fi 2411 ac_cv_prog_CC="cc" 2412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2413 break 2 2414 fi 2415done 2416 done 2417IFS=$as_save_IFS 2418 2419if test $ac_prog_rejected = yes; then 2420 # We found a bogon in the path, so make sure we never use it. 2421 set dummy $ac_cv_prog_CC 2422 shift 2423 if test $# != 0; then 2424 # We chose a different compiler from the bogus one. 2425 # However, it has the same basename, so the bogon will be chosen 2426 # first if we set CC to just the basename; use the full file name. 2427 shift 2428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2429 fi 2430fi 2431fi 2432fi 2433CC=$ac_cv_prog_CC 2434if test -n "$CC"; then 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2436$as_echo "$CC" >&6; } 2437else 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2439$as_echo "no" >&6; } 2440fi 2441 2442 2443fi 2444if test -z "$CC"; then 2445 if test -n "$ac_tool_prefix"; then 2446 for ac_prog in cl.exe 2447 do 2448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2449set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2451$as_echo_n "checking for $ac_word... " >&6; } 2452if ${ac_cv_prog_CC+:} false; then : 2453 $as_echo_n "(cached) " >&6 2454else 2455 if test -n "$CC"; then 2456 ac_cv_prog_CC="$CC" # Let the user override the test. 2457else 2458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2459for as_dir in $PATH 2460do 2461 IFS=$as_save_IFS 2462 test -z "$as_dir" && as_dir=. 2463 for ac_exec_ext in '' $ac_executable_extensions; do 2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2467 break 2 2468 fi 2469done 2470 done 2471IFS=$as_save_IFS 2472 2473fi 2474fi 2475CC=$ac_cv_prog_CC 2476if test -n "$CC"; then 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2478$as_echo "$CC" >&6; } 2479else 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2481$as_echo "no" >&6; } 2482fi 2483 2484 2485 test -n "$CC" && break 2486 done 2487fi 2488if test -z "$CC"; then 2489 ac_ct_CC=$CC 2490 for ac_prog in cl.exe 2491do 2492 # Extract the first word of "$ac_prog", so it can be a program name with args. 2493set dummy $ac_prog; ac_word=$2 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2495$as_echo_n "checking for $ac_word... " >&6; } 2496if ${ac_cv_prog_ac_ct_CC+:} false; then : 2497 $as_echo_n "(cached) " >&6 2498else 2499 if test -n "$ac_ct_CC"; then 2500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2501else 2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2503for as_dir in $PATH 2504do 2505 IFS=$as_save_IFS 2506 test -z "$as_dir" && as_dir=. 2507 for ac_exec_ext in '' $ac_executable_extensions; do 2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2509 ac_cv_prog_ac_ct_CC="$ac_prog" 2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2511 break 2 2512 fi 2513done 2514 done 2515IFS=$as_save_IFS 2516 2517fi 2518fi 2519ac_ct_CC=$ac_cv_prog_ac_ct_CC 2520if test -n "$ac_ct_CC"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2522$as_echo "$ac_ct_CC" >&6; } 2523else 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2525$as_echo "no" >&6; } 2526fi 2527 2528 2529 test -n "$ac_ct_CC" && break 2530done 2531 2532 if test "x$ac_ct_CC" = x; then 2533 CC="" 2534 else 2535 case $cross_compiling:$ac_tool_warned in 2536yes:) 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2539ac_tool_warned=yes ;; 2540esac 2541 CC=$ac_ct_CC 2542 fi 2543fi 2544 2545fi 2546 2547 2548test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2550as_fn_error $? "no acceptable C compiler found in \$PATH 2551See \`config.log' for more details" "$LINENO" 5; } 2552 2553# Provide some information about the compiler. 2554$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2555set X $ac_compile 2556ac_compiler=$2 2557for ac_option in --version -v -V -qversion; do 2558 { { ac_try="$ac_compiler $ac_option >&5" 2559case "(($ac_try" in 2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2561 *) ac_try_echo=$ac_try;; 2562esac 2563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2564$as_echo "$ac_try_echo"; } >&5 2565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2566 ac_status=$? 2567 if test -s conftest.err; then 2568 sed '10a\ 2569... rest of stderr output deleted ... 2570 10q' conftest.err >conftest.er1 2571 cat conftest.er1 >&5 2572 fi 2573 rm -f conftest.er1 conftest.err 2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2575 test $ac_status = 0; } 2576done 2577 2578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2579/* end confdefs.h. */ 2580 2581int 2582main () 2583{ 2584 2585 ; 2586 return 0; 2587} 2588_ACEOF 2589ac_clean_files_save=$ac_clean_files 2590ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2591# Try to create an executable without -o first, disregard a.out. 2592# It will help us diagnose broken compilers, and finding out an intuition 2593# of exeext. 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2595$as_echo_n "checking whether the C compiler works... " >&6; } 2596ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2597 2598# The possible output files: 2599ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2600 2601ac_rmfiles= 2602for ac_file in $ac_files 2603do 2604 case $ac_file in 2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2606 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2607 esac 2608done 2609rm -f $ac_rmfiles 2610 2611if { { ac_try="$ac_link_default" 2612case "(($ac_try" in 2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2614 *) ac_try_echo=$ac_try;; 2615esac 2616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2617$as_echo "$ac_try_echo"; } >&5 2618 (eval "$ac_link_default") 2>&5 2619 ac_status=$? 2620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2621 test $ac_status = 0; }; then : 2622 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2623# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2624# in a Makefile. We should not override ac_cv_exeext if it was cached, 2625# so that the user can short-circuit this test for compilers unknown to 2626# Autoconf. 2627for ac_file in $ac_files '' 2628do 2629 test -f "$ac_file" || continue 2630 case $ac_file in 2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2632 ;; 2633 [ab].out ) 2634 # We found the default executable, but exeext='' is most 2635 # certainly right. 2636 break;; 2637 *.* ) 2638 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2639 then :; else 2640 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2641 fi 2642 # We set ac_cv_exeext here because the later test for it is not 2643 # safe: cross compilers may not add the suffix if given an `-o' 2644 # argument, so we may need to know it at that point already. 2645 # Even if this section looks crufty: it has the advantage of 2646 # actually working. 2647 break;; 2648 * ) 2649 break;; 2650 esac 2651done 2652test "$ac_cv_exeext" = no && ac_cv_exeext= 2653 2654else 2655 ac_file='' 2656fi 2657if test -z "$ac_file"; then : 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2659$as_echo "no" >&6; } 2660$as_echo "$as_me: failed program was:" >&5 2661sed 's/^/| /' conftest.$ac_ext >&5 2662 2663{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2665as_fn_error 77 "C compiler cannot create executables 2666See \`config.log' for more details" "$LINENO" 5; } 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2669$as_echo "yes" >&6; } 2670fi 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2672$as_echo_n "checking for C compiler default output file name... " >&6; } 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2674$as_echo "$ac_file" >&6; } 2675ac_exeext=$ac_cv_exeext 2676 2677rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2678ac_clean_files=$ac_clean_files_save 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2680$as_echo_n "checking for suffix of executables... " >&6; } 2681if { { ac_try="$ac_link" 2682case "(($ac_try" in 2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2684 *) ac_try_echo=$ac_try;; 2685esac 2686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2687$as_echo "$ac_try_echo"; } >&5 2688 (eval "$ac_link") 2>&5 2689 ac_status=$? 2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2691 test $ac_status = 0; }; then : 2692 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2693# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2694# work properly (i.e., refer to `conftest.exe'), while it won't with 2695# `rm'. 2696for ac_file in conftest.exe conftest conftest.*; do 2697 test -f "$ac_file" || continue 2698 case $ac_file in 2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2701 break;; 2702 * ) break;; 2703 esac 2704done 2705else 2706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2708as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2709See \`config.log' for more details" "$LINENO" 5; } 2710fi 2711rm -f conftest conftest$ac_cv_exeext 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2713$as_echo "$ac_cv_exeext" >&6; } 2714 2715rm -f conftest.$ac_ext 2716EXEEXT=$ac_cv_exeext 2717ac_exeext=$EXEEXT 2718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2719/* end confdefs.h. */ 2720#include <stdio.h> 2721int 2722main () 2723{ 2724FILE *f = fopen ("conftest.out", "w"); 2725 return ferror (f) || fclose (f) != 0; 2726 2727 ; 2728 return 0; 2729} 2730_ACEOF 2731ac_clean_files="$ac_clean_files conftest.out" 2732# Check that the compiler produces executables we can run. If not, either 2733# the compiler is broken, or we cross compile. 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2735$as_echo_n "checking whether we are cross compiling... " >&6; } 2736if test "$cross_compiling" != yes; then 2737 { { ac_try="$ac_link" 2738case "(($ac_try" in 2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2740 *) ac_try_echo=$ac_try;; 2741esac 2742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2743$as_echo "$ac_try_echo"; } >&5 2744 (eval "$ac_link") 2>&5 2745 ac_status=$? 2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2747 test $ac_status = 0; } 2748 if { ac_try='./conftest$ac_cv_exeext' 2749 { { case "(($ac_try" in 2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2751 *) ac_try_echo=$ac_try;; 2752esac 2753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2754$as_echo "$ac_try_echo"; } >&5 2755 (eval "$ac_try") 2>&5 2756 ac_status=$? 2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2758 test $ac_status = 0; }; }; then 2759 cross_compiling=no 2760 else 2761 if test "$cross_compiling" = maybe; then 2762 cross_compiling=yes 2763 else 2764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2766as_fn_error $? "cannot run C compiled programs. 2767If you meant to cross compile, use \`--host'. 2768See \`config.log' for more details" "$LINENO" 5; } 2769 fi 2770 fi 2771fi 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2773$as_echo "$cross_compiling" >&6; } 2774 2775rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2776ac_clean_files=$ac_clean_files_save 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2778$as_echo_n "checking for suffix of object files... " >&6; } 2779if ${ac_cv_objext+:} false; then : 2780 $as_echo_n "(cached) " >&6 2781else 2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2783/* end confdefs.h. */ 2784 2785int 2786main () 2787{ 2788 2789 ; 2790 return 0; 2791} 2792_ACEOF 2793rm -f conftest.o conftest.obj 2794if { { ac_try="$ac_compile" 2795case "(($ac_try" in 2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2797 *) ac_try_echo=$ac_try;; 2798esac 2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2800$as_echo "$ac_try_echo"; } >&5 2801 (eval "$ac_compile") 2>&5 2802 ac_status=$? 2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2804 test $ac_status = 0; }; then : 2805 for ac_file in conftest.o conftest.obj conftest.*; do 2806 test -f "$ac_file" || continue; 2807 case $ac_file in 2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2809 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2810 break;; 2811 esac 2812done 2813else 2814 $as_echo "$as_me: failed program was:" >&5 2815sed 's/^/| /' conftest.$ac_ext >&5 2816 2817{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2819as_fn_error $? "cannot compute suffix of object files: cannot compile 2820See \`config.log' for more details" "$LINENO" 5; } 2821fi 2822rm -f conftest.$ac_cv_objext conftest.$ac_ext 2823fi 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2825$as_echo "$ac_cv_objext" >&6; } 2826OBJEXT=$ac_cv_objext 2827ac_objext=$OBJEXT 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2829$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2830if ${ac_cv_c_compiler_gnu+:} false; then : 2831 $as_echo_n "(cached) " >&6 2832else 2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2834/* end confdefs.h. */ 2835 2836int 2837main () 2838{ 2839#ifndef __GNUC__ 2840 choke me 2841#endif 2842 2843 ; 2844 return 0; 2845} 2846_ACEOF 2847if ac_fn_c_try_compile "$LINENO"; then : 2848 ac_compiler_gnu=yes 2849else 2850 ac_compiler_gnu=no 2851fi 2852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2853ac_cv_c_compiler_gnu=$ac_compiler_gnu 2854 2855fi 2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2857$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2858if test $ac_compiler_gnu = yes; then 2859 GCC=yes 2860else 2861 GCC= 2862fi 2863ac_test_CFLAGS=${CFLAGS+set} 2864ac_save_CFLAGS=$CFLAGS 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2866$as_echo_n "checking whether $CC accepts -g... " >&6; } 2867if ${ac_cv_prog_cc_g+:} false; then : 2868 $as_echo_n "(cached) " >&6 2869else 2870 ac_save_c_werror_flag=$ac_c_werror_flag 2871 ac_c_werror_flag=yes 2872 ac_cv_prog_cc_g=no 2873 CFLAGS="-g" 2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2875/* end confdefs.h. */ 2876 2877int 2878main () 2879{ 2880 2881 ; 2882 return 0; 2883} 2884_ACEOF 2885if ac_fn_c_try_compile "$LINENO"; then : 2886 ac_cv_prog_cc_g=yes 2887else 2888 CFLAGS="" 2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2890/* end confdefs.h. */ 2891 2892int 2893main () 2894{ 2895 2896 ; 2897 return 0; 2898} 2899_ACEOF 2900if ac_fn_c_try_compile "$LINENO"; then : 2901 2902else 2903 ac_c_werror_flag=$ac_save_c_werror_flag 2904 CFLAGS="-g" 2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2906/* end confdefs.h. */ 2907 2908int 2909main () 2910{ 2911 2912 ; 2913 return 0; 2914} 2915_ACEOF 2916if ac_fn_c_try_compile "$LINENO"; then : 2917 ac_cv_prog_cc_g=yes 2918fi 2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2920fi 2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2922fi 2923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2924 ac_c_werror_flag=$ac_save_c_werror_flag 2925fi 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2927$as_echo "$ac_cv_prog_cc_g" >&6; } 2928if test "$ac_test_CFLAGS" = set; then 2929 CFLAGS=$ac_save_CFLAGS 2930elif test $ac_cv_prog_cc_g = yes; then 2931 if test "$GCC" = yes; then 2932 CFLAGS="-g -O2" 2933 else 2934 CFLAGS="-g" 2935 fi 2936else 2937 if test "$GCC" = yes; then 2938 CFLAGS="-O2" 2939 else 2940 CFLAGS= 2941 fi 2942fi 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2944$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2945if ${ac_cv_prog_cc_c89+:} false; then : 2946 $as_echo_n "(cached) " >&6 2947else 2948 ac_cv_prog_cc_c89=no 2949ac_save_CC=$CC 2950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2951/* end confdefs.h. */ 2952#include <stdarg.h> 2953#include <stdio.h> 2954#include <sys/types.h> 2955#include <sys/stat.h> 2956/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2957struct buf { int x; }; 2958FILE * (*rcsopen) (struct buf *, struct stat *, int); 2959static char *e (p, i) 2960 char **p; 2961 int i; 2962{ 2963 return p[i]; 2964} 2965static char *f (char * (*g) (char **, int), char **p, ...) 2966{ 2967 char *s; 2968 va_list v; 2969 va_start (v,p); 2970 s = g (p, va_arg (v,int)); 2971 va_end (v); 2972 return s; 2973} 2974 2975/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2976 function prototypes and stuff, but not '\xHH' hex character constants. 2977 These don't provoke an error unfortunately, instead are silently treated 2978 as 'x'. The following induces an error, until -std is added to get 2979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2980 array size at least. It's necessary to write '\x00'==0 to get something 2981 that's true only with -std. */ 2982int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2983 2984/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2985 inside strings and character constants. */ 2986#define FOO(x) 'x' 2987int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2988 2989int test (int i, double x); 2990struct s1 {int (*f) (int a);}; 2991struct s2 {int (*f) (double a);}; 2992int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2993int argc; 2994char **argv; 2995int 2996main () 2997{ 2998return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2999 ; 3000 return 0; 3001} 3002_ACEOF 3003for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3005do 3006 CC="$ac_save_CC $ac_arg" 3007 if ac_fn_c_try_compile "$LINENO"; then : 3008 ac_cv_prog_cc_c89=$ac_arg 3009fi 3010rm -f core conftest.err conftest.$ac_objext 3011 test "x$ac_cv_prog_cc_c89" != "xno" && break 3012done 3013rm -f conftest.$ac_ext 3014CC=$ac_save_CC 3015 3016fi 3017# AC_CACHE_VAL 3018case "x$ac_cv_prog_cc_c89" in 3019 x) 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3021$as_echo "none needed" >&6; } ;; 3022 xno) 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3024$as_echo "unsupported" >&6; } ;; 3025 *) 3026 CC="$CC $ac_cv_prog_cc_c89" 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3028$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3029esac 3030if test "x$ac_cv_prog_cc_c89" != xno; then : 3031 3032fi 3033 3034ac_ext=c 3035ac_cpp='$CPP $CPPFLAGS' 3036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3038ac_compiler_gnu=$ac_cv_c_compiler_gnu 3039 3040 3041ac_ext=c 3042ac_cpp='$CPP $CPPFLAGS' 3043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3045ac_compiler_gnu=$ac_cv_c_compiler_gnu 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3047$as_echo_n "checking how to run the C preprocessor... " >&6; } 3048# On Suns, sometimes $CPP names a directory. 3049if test -n "$CPP" && test -d "$CPP"; then 3050 CPP= 3051fi 3052if test -z "$CPP"; then 3053 if ${ac_cv_prog_CPP+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 # Double quotes because CPP needs to be expanded 3057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3058 do 3059 ac_preproc_ok=false 3060for ac_c_preproc_warn_flag in '' yes 3061do 3062 # Use a header file that comes with gcc, so configuring glibc 3063 # with a fresh cross-compiler works. 3064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3065 # <limits.h> exists even on freestanding compilers. 3066 # On the NeXT, cc -E runs the code through the compiler's parser, 3067 # not just through cpp. "Syntax error" is here to catch this case. 3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3069/* end confdefs.h. */ 3070#ifdef __STDC__ 3071# include <limits.h> 3072#else 3073# include <assert.h> 3074#endif 3075 Syntax error 3076_ACEOF 3077if ac_fn_c_try_cpp "$LINENO"; then : 3078 3079else 3080 # Broken: fails on valid input. 3081continue 3082fi 3083rm -f conftest.err conftest.i conftest.$ac_ext 3084 3085 # OK, works on sane cases. Now check whether nonexistent headers 3086 # can be detected and how. 3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3088/* end confdefs.h. */ 3089#include <ac_nonexistent.h> 3090_ACEOF 3091if ac_fn_c_try_cpp "$LINENO"; then : 3092 # Broken: success on invalid input. 3093continue 3094else 3095 # Passes both tests. 3096ac_preproc_ok=: 3097break 3098fi 3099rm -f conftest.err conftest.i conftest.$ac_ext 3100 3101done 3102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3103rm -f conftest.i conftest.err conftest.$ac_ext 3104if $ac_preproc_ok; then : 3105 break 3106fi 3107 3108 done 3109 ac_cv_prog_CPP=$CPP 3110 3111fi 3112 CPP=$ac_cv_prog_CPP 3113else 3114 ac_cv_prog_CPP=$CPP 3115fi 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3117$as_echo "$CPP" >&6; } 3118ac_preproc_ok=false 3119for ac_c_preproc_warn_flag in '' yes 3120do 3121 # Use a header file that comes with gcc, so configuring glibc 3122 # with a fresh cross-compiler works. 3123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3124 # <limits.h> exists even on freestanding compilers. 3125 # On the NeXT, cc -E runs the code through the compiler's parser, 3126 # not just through cpp. "Syntax error" is here to catch this case. 3127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3128/* end confdefs.h. */ 3129#ifdef __STDC__ 3130# include <limits.h> 3131#else 3132# include <assert.h> 3133#endif 3134 Syntax error 3135_ACEOF 3136if ac_fn_c_try_cpp "$LINENO"; then : 3137 3138else 3139 # Broken: fails on valid input. 3140continue 3141fi 3142rm -f conftest.err conftest.i conftest.$ac_ext 3143 3144 # OK, works on sane cases. Now check whether nonexistent headers 3145 # can be detected and how. 3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3147/* end confdefs.h. */ 3148#include <ac_nonexistent.h> 3149_ACEOF 3150if ac_fn_c_try_cpp "$LINENO"; then : 3151 # Broken: success on invalid input. 3152continue 3153else 3154 # Passes both tests. 3155ac_preproc_ok=: 3156break 3157fi 3158rm -f conftest.err conftest.i conftest.$ac_ext 3159 3160done 3161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3162rm -f conftest.i conftest.err conftest.$ac_ext 3163if $ac_preproc_ok; then : 3164 3165else 3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3168as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3169See \`config.log' for more details" "$LINENO" 5; } 3170fi 3171 3172ac_ext=c 3173ac_cpp='$CPP $CPPFLAGS' 3174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3176ac_compiler_gnu=$ac_cv_c_compiler_gnu 3177 3178 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3180$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3181if ${ac_cv_path_GREP+:} false; then : 3182 $as_echo_n "(cached) " >&6 3183else 3184 if test -z "$GREP"; then 3185 ac_path_GREP_found=false 3186 # Loop through the user's path and test for each of PROGNAME-LIST 3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3188for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3189do 3190 IFS=$as_save_IFS 3191 test -z "$as_dir" && as_dir=. 3192 for ac_prog in grep ggrep; do 3193 for ac_exec_ext in '' $ac_executable_extensions; do 3194 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3195 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3196# Check for GNU ac_path_GREP and select it if it is found. 3197 # Check for GNU $ac_path_GREP 3198case `"$ac_path_GREP" --version 2>&1` in 3199*GNU*) 3200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3201*) 3202 ac_count=0 3203 $as_echo_n 0123456789 >"conftest.in" 3204 while : 3205 do 3206 cat "conftest.in" "conftest.in" >"conftest.tmp" 3207 mv "conftest.tmp" "conftest.in" 3208 cp "conftest.in" "conftest.nl" 3209 $as_echo 'GREP' >> "conftest.nl" 3210 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3212 as_fn_arith $ac_count + 1 && ac_count=$as_val 3213 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3214 # Best one so far, save it but keep looking for a better one 3215 ac_cv_path_GREP="$ac_path_GREP" 3216 ac_path_GREP_max=$ac_count 3217 fi 3218 # 10*(2^10) chars as input seems more than enough 3219 test $ac_count -gt 10 && break 3220 done 3221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3222esac 3223 3224 $ac_path_GREP_found && break 3 3225 done 3226 done 3227 done 3228IFS=$as_save_IFS 3229 if test -z "$ac_cv_path_GREP"; then 3230 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3231 fi 3232else 3233 ac_cv_path_GREP=$GREP 3234fi 3235 3236fi 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3238$as_echo "$ac_cv_path_GREP" >&6; } 3239 GREP="$ac_cv_path_GREP" 3240 3241 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3243$as_echo_n "checking for egrep... " >&6; } 3244if ${ac_cv_path_EGREP+:} false; then : 3245 $as_echo_n "(cached) " >&6 3246else 3247 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3248 then ac_cv_path_EGREP="$GREP -E" 3249 else 3250 if test -z "$EGREP"; then 3251 ac_path_EGREP_found=false 3252 # Loop through the user's path and test for each of PROGNAME-LIST 3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3254for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3255do 3256 IFS=$as_save_IFS 3257 test -z "$as_dir" && as_dir=. 3258 for ac_prog in egrep; do 3259 for ac_exec_ext in '' $ac_executable_extensions; do 3260 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3261 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3262# Check for GNU ac_path_EGREP and select it if it is found. 3263 # Check for GNU $ac_path_EGREP 3264case `"$ac_path_EGREP" --version 2>&1` in 3265*GNU*) 3266 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3267*) 3268 ac_count=0 3269 $as_echo_n 0123456789 >"conftest.in" 3270 while : 3271 do 3272 cat "conftest.in" "conftest.in" >"conftest.tmp" 3273 mv "conftest.tmp" "conftest.in" 3274 cp "conftest.in" "conftest.nl" 3275 $as_echo 'EGREP' >> "conftest.nl" 3276 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3278 as_fn_arith $ac_count + 1 && ac_count=$as_val 3279 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3280 # Best one so far, save it but keep looking for a better one 3281 ac_cv_path_EGREP="$ac_path_EGREP" 3282 ac_path_EGREP_max=$ac_count 3283 fi 3284 # 10*(2^10) chars as input seems more than enough 3285 test $ac_count -gt 10 && break 3286 done 3287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3288esac 3289 3290 $ac_path_EGREP_found && break 3 3291 done 3292 done 3293 done 3294IFS=$as_save_IFS 3295 if test -z "$ac_cv_path_EGREP"; then 3296 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3297 fi 3298else 3299 ac_cv_path_EGREP=$EGREP 3300fi 3301 3302 fi 3303fi 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3305$as_echo "$ac_cv_path_EGREP" >&6; } 3306 EGREP="$ac_cv_path_EGREP" 3307 3308 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3310$as_echo_n "checking for ANSI C header files... " >&6; } 3311if ${ac_cv_header_stdc+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315/* end confdefs.h. */ 3316#include <stdlib.h> 3317#include <stdarg.h> 3318#include <string.h> 3319#include <float.h> 3320 3321int 3322main () 3323{ 3324 3325 ; 3326 return 0; 3327} 3328_ACEOF 3329if ac_fn_c_try_compile "$LINENO"; then : 3330 ac_cv_header_stdc=yes 3331else 3332 ac_cv_header_stdc=no 3333fi 3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3335 3336if test $ac_cv_header_stdc = yes; then 3337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340#include <string.h> 3341 3342_ACEOF 3343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3344 $EGREP "memchr" >/dev/null 2>&1; then : 3345 3346else 3347 ac_cv_header_stdc=no 3348fi 3349rm -f conftest* 3350 3351fi 3352 3353if test $ac_cv_header_stdc = yes; then 3354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3356/* end confdefs.h. */ 3357#include <stdlib.h> 3358 3359_ACEOF 3360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3361 $EGREP "free" >/dev/null 2>&1; then : 3362 3363else 3364 ac_cv_header_stdc=no 3365fi 3366rm -f conftest* 3367 3368fi 3369 3370if test $ac_cv_header_stdc = yes; then 3371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3372 if test "$cross_compiling" = yes; then : 3373 : 3374else 3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3376/* end confdefs.h. */ 3377#include <ctype.h> 3378#include <stdlib.h> 3379#if ((' ' & 0x0FF) == 0x020) 3380# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3381# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3382#else 3383# define ISLOWER(c) \ 3384 (('a' <= (c) && (c) <= 'i') \ 3385 || ('j' <= (c) && (c) <= 'r') \ 3386 || ('s' <= (c) && (c) <= 'z')) 3387# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3388#endif 3389 3390#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3391int 3392main () 3393{ 3394 int i; 3395 for (i = 0; i < 256; i++) 3396 if (XOR (islower (i), ISLOWER (i)) 3397 || toupper (i) != TOUPPER (i)) 3398 return 2; 3399 return 0; 3400} 3401_ACEOF 3402if ac_fn_c_try_run "$LINENO"; then : 3403 3404else 3405 ac_cv_header_stdc=no 3406fi 3407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3408 conftest.$ac_objext conftest.beam conftest.$ac_ext 3409fi 3410 3411fi 3412fi 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3414$as_echo "$ac_cv_header_stdc" >&6; } 3415if test $ac_cv_header_stdc = yes; then 3416 3417$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3418 3419fi 3420 3421# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3422for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3423 inttypes.h stdint.h unistd.h 3424do : 3425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3426ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3427" 3428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3429 cat >>confdefs.h <<_ACEOF 3430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3431_ACEOF 3432 3433fi 3434 3435done 3436 3437 3438 3439 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3440if test "x$ac_cv_header_minix_config_h" = xyes; then : 3441 MINIX=yes 3442else 3443 MINIX= 3444fi 3445 3446 3447 if test "$MINIX" = yes; then 3448 3449$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3450 3451 3452$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3453 3454 3455$as_echo "#define _MINIX 1" >>confdefs.h 3456 3457 fi 3458 3459 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3461$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3462if ${ac_cv_safe_to_define___extensions__+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466/* end confdefs.h. */ 3467 3468# define __EXTENSIONS__ 1 3469 $ac_includes_default 3470int 3471main () 3472{ 3473 3474 ; 3475 return 0; 3476} 3477_ACEOF 3478if ac_fn_c_try_compile "$LINENO"; then : 3479 ac_cv_safe_to_define___extensions__=yes 3480else 3481 ac_cv_safe_to_define___extensions__=no 3482fi 3483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3484fi 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3486$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3487 test $ac_cv_safe_to_define___extensions__ = yes && 3488 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3489 3490 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3491 3492 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3493 3494 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3495 3496 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3497 3498 3499 3500# Initialize Automake 3501am__api_version='1.11' 3502 3503ac_aux_dir= 3504for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3505 if test -f "$ac_dir/install-sh"; then 3506 ac_aux_dir=$ac_dir 3507 ac_install_sh="$ac_aux_dir/install-sh -c" 3508 break 3509 elif test -f "$ac_dir/install.sh"; then 3510 ac_aux_dir=$ac_dir 3511 ac_install_sh="$ac_aux_dir/install.sh -c" 3512 break 3513 elif test -f "$ac_dir/shtool"; then 3514 ac_aux_dir=$ac_dir 3515 ac_install_sh="$ac_aux_dir/shtool install -c" 3516 break 3517 fi 3518done 3519if test -z "$ac_aux_dir"; then 3520 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3521fi 3522 3523# These three variables are undocumented and unsupported, 3524# and are intended to be withdrawn in a future Autoconf release. 3525# They can cause serious problems if a builder's source tree is in a directory 3526# whose full name contains unusual characters. 3527ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3528ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3529ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3530 3531 3532# Find a good install program. We prefer a C program (faster), 3533# so one script is as good as another. But avoid the broken or 3534# incompatible versions: 3535# SysV /etc/install, /usr/sbin/install 3536# SunOS /usr/etc/install 3537# IRIX /sbin/install 3538# AIX /bin/install 3539# AmigaOS /C/install, which installs bootblocks on floppy discs 3540# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3541# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3542# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3543# OS/2's system install, which has a completely different semantic 3544# ./install, which can be erroneously created by make from ./install.sh. 3545# Reject install programs that cannot install multiple files. 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3547$as_echo_n "checking for a BSD-compatible install... " >&6; } 3548if test -z "$INSTALL"; then 3549if ${ac_cv_path_install+:} false; then : 3550 $as_echo_n "(cached) " >&6 3551else 3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3553for as_dir in $PATH 3554do 3555 IFS=$as_save_IFS 3556 test -z "$as_dir" && as_dir=. 3557 # Account for people who put trailing slashes in PATH elements. 3558case $as_dir/ in #(( 3559 ./ | .// | /[cC]/* | \ 3560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3561 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3562 /usr/ucb/* ) ;; 3563 *) 3564 # OSF1 and SCO ODT 3.0 have their own names for install. 3565 # Don't use installbsd from OSF since it installs stuff as root 3566 # by default. 3567 for ac_prog in ginstall scoinst install; do 3568 for ac_exec_ext in '' $ac_executable_extensions; do 3569 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3570 if test $ac_prog = install && 3571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3572 # AIX install. It has an incompatible calling convention. 3573 : 3574 elif test $ac_prog = install && 3575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3576 # program-specific install script used by HP pwplus--don't use. 3577 : 3578 else 3579 rm -rf conftest.one conftest.two conftest.dir 3580 echo one > conftest.one 3581 echo two > conftest.two 3582 mkdir conftest.dir 3583 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3584 test -s conftest.one && test -s conftest.two && 3585 test -s conftest.dir/conftest.one && 3586 test -s conftest.dir/conftest.two 3587 then 3588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3589 break 3 3590 fi 3591 fi 3592 fi 3593 done 3594 done 3595 ;; 3596esac 3597 3598 done 3599IFS=$as_save_IFS 3600 3601rm -rf conftest.one conftest.two conftest.dir 3602 3603fi 3604 if test "${ac_cv_path_install+set}" = set; then 3605 INSTALL=$ac_cv_path_install 3606 else 3607 # As a last resort, use the slow shell script. Don't cache a 3608 # value for INSTALL within a source directory, because that will 3609 # break other packages using the cache if that directory is 3610 # removed, or if the value is a relative name. 3611 INSTALL=$ac_install_sh 3612 fi 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3615$as_echo "$INSTALL" >&6; } 3616 3617# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3618# It thinks the first close brace ends the variable substitution. 3619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3620 3621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3622 3623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3624 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3626$as_echo_n "checking whether build environment is sane... " >&6; } 3627# Just in case 3628sleep 1 3629echo timestamp > conftest.file 3630# Reject unsafe characters in $srcdir or the absolute working directory 3631# name. Accept space and tab only in the latter. 3632am_lf=' 3633' 3634case `pwd` in 3635 *[\\\"\#\$\&\'\`$am_lf]*) 3636 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3637esac 3638case $srcdir in 3639 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3640 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3641esac 3642 3643# Do `set' in a subshell so we don't clobber the current shell's 3644# arguments. Must try -L first in case configure is actually a 3645# symlink; some systems play weird games with the mod time of symlinks 3646# (eg FreeBSD returns the mod time of the symlink's containing 3647# directory). 3648if ( 3649 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3650 if test "$*" = "X"; then 3651 # -L didn't work. 3652 set X `ls -t "$srcdir/configure" conftest.file` 3653 fi 3654 rm -f conftest.file 3655 if test "$*" != "X $srcdir/configure conftest.file" \ 3656 && test "$*" != "X conftest.file $srcdir/configure"; then 3657 3658 # If neither matched, then we have a broken ls. This can happen 3659 # if, for instance, CONFIG_SHELL is bash and it inherits a 3660 # broken ls alias from the environment. This has actually 3661 # happened. Such a system could not be considered "sane". 3662 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3663alias in your environment" "$LINENO" 5 3664 fi 3665 3666 test "$2" = conftest.file 3667 ) 3668then 3669 # Ok. 3670 : 3671else 3672 as_fn_error $? "newly created file is older than distributed files! 3673Check your system clock" "$LINENO" 5 3674fi 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3676$as_echo "yes" >&6; } 3677test "$program_prefix" != NONE && 3678 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3679# Use a double $ so make ignores it. 3680test "$program_suffix" != NONE && 3681 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3682# Double any \ or $. 3683# By default was `s,x,x', remove it if useless. 3684ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3685program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3686 3687# expand $ac_aux_dir to an absolute path 3688am_aux_dir=`cd $ac_aux_dir && pwd` 3689 3690if test x"${MISSING+set}" != xset; then 3691 case $am_aux_dir in 3692 *\ * | *\ *) 3693 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3694 *) 3695 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3696 esac 3697fi 3698# Use eval to expand $SHELL 3699if eval "$MISSING --run true"; then 3700 am_missing_run="$MISSING --run " 3701else 3702 am_missing_run= 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3704$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3705fi 3706 3707if test x"${install_sh}" != xset; then 3708 case $am_aux_dir in 3709 *\ * | *\ *) 3710 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3711 *) 3712 install_sh="\${SHELL} $am_aux_dir/install-sh" 3713 esac 3714fi 3715 3716# Installed binaries are usually stripped using `strip' when the user 3717# run `make install-strip'. However `strip' might not be the right 3718# tool to use in cross-compilation environments, therefore Automake 3719# will honor the `STRIP' environment variable to overrule this program. 3720if test "$cross_compiling" != no; then 3721 if test -n "$ac_tool_prefix"; then 3722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3723set dummy ${ac_tool_prefix}strip; ac_word=$2 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3725$as_echo_n "checking for $ac_word... " >&6; } 3726if ${ac_cv_prog_STRIP+:} false; then : 3727 $as_echo_n "(cached) " >&6 3728else 3729 if test -n "$STRIP"; then 3730 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3731else 3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3733for as_dir in $PATH 3734do 3735 IFS=$as_save_IFS 3736 test -z "$as_dir" && as_dir=. 3737 for ac_exec_ext in '' $ac_executable_extensions; do 3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3739 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3741 break 2 3742 fi 3743done 3744 done 3745IFS=$as_save_IFS 3746 3747fi 3748fi 3749STRIP=$ac_cv_prog_STRIP 3750if test -n "$STRIP"; then 3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3752$as_echo "$STRIP" >&6; } 3753else 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3755$as_echo "no" >&6; } 3756fi 3757 3758 3759fi 3760if test -z "$ac_cv_prog_STRIP"; then 3761 ac_ct_STRIP=$STRIP 3762 # Extract the first word of "strip", so it can be a program name with args. 3763set dummy strip; ac_word=$2 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3765$as_echo_n "checking for $ac_word... " >&6; } 3766if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3767 $as_echo_n "(cached) " >&6 3768else 3769 if test -n "$ac_ct_STRIP"; then 3770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3771else 3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3773for as_dir in $PATH 3774do 3775 IFS=$as_save_IFS 3776 test -z "$as_dir" && as_dir=. 3777 for ac_exec_ext in '' $ac_executable_extensions; do 3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3779 ac_cv_prog_ac_ct_STRIP="strip" 3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3781 break 2 3782 fi 3783done 3784 done 3785IFS=$as_save_IFS 3786 3787fi 3788fi 3789ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3790if test -n "$ac_ct_STRIP"; then 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3792$as_echo "$ac_ct_STRIP" >&6; } 3793else 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795$as_echo "no" >&6; } 3796fi 3797 3798 if test "x$ac_ct_STRIP" = x; then 3799 STRIP=":" 3800 else 3801 case $cross_compiling:$ac_tool_warned in 3802yes:) 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3805ac_tool_warned=yes ;; 3806esac 3807 STRIP=$ac_ct_STRIP 3808 fi 3809else 3810 STRIP="$ac_cv_prog_STRIP" 3811fi 3812 3813fi 3814INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3815 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3817$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3818if test -z "$MKDIR_P"; then 3819 if ${ac_cv_path_mkdir+:} false; then : 3820 $as_echo_n "(cached) " >&6 3821else 3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3823for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3824do 3825 IFS=$as_save_IFS 3826 test -z "$as_dir" && as_dir=. 3827 for ac_prog in mkdir gmkdir; do 3828 for ac_exec_ext in '' $ac_executable_extensions; do 3829 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3830 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3831 'mkdir (GNU coreutils) '* | \ 3832 'mkdir (coreutils) '* | \ 3833 'mkdir (fileutils) '4.1*) 3834 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3835 break 3;; 3836 esac 3837 done 3838 done 3839 done 3840IFS=$as_save_IFS 3841 3842fi 3843 3844 test -d ./--version && rmdir ./--version 3845 if test "${ac_cv_path_mkdir+set}" = set; then 3846 MKDIR_P="$ac_cv_path_mkdir -p" 3847 else 3848 # As a last resort, use the slow shell script. Don't cache a 3849 # value for MKDIR_P within a source directory, because that will 3850 # break other packages using the cache if that directory is 3851 # removed, or if the value is a relative name. 3852 MKDIR_P="$ac_install_sh -d" 3853 fi 3854fi 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3856$as_echo "$MKDIR_P" >&6; } 3857 3858mkdir_p="$MKDIR_P" 3859case $mkdir_p in 3860 [\\/$]* | ?:[\\/]*) ;; 3861 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3862esac 3863 3864for ac_prog in gawk mawk nawk awk 3865do 3866 # Extract the first word of "$ac_prog", so it can be a program name with args. 3867set dummy $ac_prog; ac_word=$2 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3869$as_echo_n "checking for $ac_word... " >&6; } 3870if ${ac_cv_prog_AWK+:} false; then : 3871 $as_echo_n "(cached) " >&6 3872else 3873 if test -n "$AWK"; then 3874 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3875else 3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3877for as_dir in $PATH 3878do 3879 IFS=$as_save_IFS 3880 test -z "$as_dir" && as_dir=. 3881 for ac_exec_ext in '' $ac_executable_extensions; do 3882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3883 ac_cv_prog_AWK="$ac_prog" 3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3885 break 2 3886 fi 3887done 3888 done 3889IFS=$as_save_IFS 3890 3891fi 3892fi 3893AWK=$ac_cv_prog_AWK 3894if test -n "$AWK"; then 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3896$as_echo "$AWK" >&6; } 3897else 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3899$as_echo "no" >&6; } 3900fi 3901 3902 3903 test -n "$AWK" && break 3904done 3905 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3907$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3908set x ${MAKE-make} 3909ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3910if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3911 $as_echo_n "(cached) " >&6 3912else 3913 cat >conftest.make <<\_ACEOF 3914SHELL = /bin/sh 3915all: 3916 @echo '@@@%%%=$(MAKE)=@@@%%%' 3917_ACEOF 3918# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3919case `${MAKE-make} -f conftest.make 2>/dev/null` in 3920 *@@@%%%=?*=@@@%%%*) 3921 eval ac_cv_prog_make_${ac_make}_set=yes;; 3922 *) 3923 eval ac_cv_prog_make_${ac_make}_set=no;; 3924esac 3925rm -f conftest.make 3926fi 3927if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3929$as_echo "yes" >&6; } 3930 SET_MAKE= 3931else 3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3933$as_echo "no" >&6; } 3934 SET_MAKE="MAKE=${MAKE-make}" 3935fi 3936 3937rm -rf .tst 2>/dev/null 3938mkdir .tst 2>/dev/null 3939if test -d .tst; then 3940 am__leading_dot=. 3941else 3942 am__leading_dot=_ 3943fi 3944rmdir .tst 2>/dev/null 3945 3946DEPDIR="${am__leading_dot}deps" 3947 3948ac_config_commands="$ac_config_commands depfiles" 3949 3950 3951am_make=${MAKE-make} 3952cat > confinc << 'END' 3953am__doit: 3954 @echo this is the am__doit target 3955.PHONY: am__doit 3956END 3957# If we don't find an include directive, just comment out the code. 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3959$as_echo_n "checking for style of include used by $am_make... " >&6; } 3960am__include="#" 3961am__quote= 3962_am_result=none 3963# First try GNU make style include. 3964echo "include confinc" > confmf 3965# Ignore all kinds of additional output from `make'. 3966case `$am_make -s -f confmf 2> /dev/null` in #( 3967*the\ am__doit\ target*) 3968 am__include=include 3969 am__quote= 3970 _am_result=GNU 3971 ;; 3972esac 3973# Now try BSD make style include. 3974if test "$am__include" = "#"; then 3975 echo '.include "confinc"' > confmf 3976 case `$am_make -s -f confmf 2> /dev/null` in #( 3977 *the\ am__doit\ target*) 3978 am__include=.include 3979 am__quote="\"" 3980 _am_result=BSD 3981 ;; 3982 esac 3983fi 3984 3985 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3987$as_echo "$_am_result" >&6; } 3988rm -f confinc confmf 3989 3990# Check whether --enable-dependency-tracking was given. 3991if test "${enable_dependency_tracking+set}" = set; then : 3992 enableval=$enable_dependency_tracking; 3993fi 3994 3995if test "x$enable_dependency_tracking" != xno; then 3996 am_depcomp="$ac_aux_dir/depcomp" 3997 AMDEPBACKSLASH='\' 3998fi 3999 if test "x$enable_dependency_tracking" != xno; then 4000 AMDEP_TRUE= 4001 AMDEP_FALSE='#' 4002else 4003 AMDEP_TRUE='#' 4004 AMDEP_FALSE= 4005fi 4006 4007 4008if test "`cd $srcdir && pwd`" != "`pwd`"; then 4009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4010 # is not polluted with repeated "-I." 4011 am__isrc=' -I$(srcdir)' 4012 # test to see if srcdir already configured 4013 if test -f $srcdir/config.status; then 4014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4015 fi 4016fi 4017 4018# test whether we have cygpath 4019if test -z "$CYGPATH_W"; then 4020 if (cygpath --version) >/dev/null 2>/dev/null; then 4021 CYGPATH_W='cygpath -w' 4022 else 4023 CYGPATH_W=echo 4024 fi 4025fi 4026 4027 4028# Define the identity of the package. 4029 PACKAGE='xload' 4030 VERSION='1.1.1' 4031 4032 4033cat >>confdefs.h <<_ACEOF 4034#define PACKAGE "$PACKAGE" 4035_ACEOF 4036 4037 4038cat >>confdefs.h <<_ACEOF 4039#define VERSION "$VERSION" 4040_ACEOF 4041 4042# Some tools Automake needs. 4043 4044ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4045 4046 4047AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4048 4049 4050AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4051 4052 4053AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4054 4055 4056MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4057 4058# We need awk for the "check" target. The system "awk" is bad on 4059# some platforms. 4060# Always define AMTAR for backward compatibility. 4061 4062AMTAR=${AMTAR-"${am_missing_run}tar"} 4063 4064am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4065 4066 4067 4068 4069depcc="$CC" am_compiler_list= 4070 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4072$as_echo_n "checking dependency style of $depcc... " >&6; } 4073if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4074 $as_echo_n "(cached) " >&6 4075else 4076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4077 # We make a subdir and do the tests there. Otherwise we can end up 4078 # making bogus files that we don't know about and never remove. For 4079 # instance it was reported that on HP-UX the gcc test will end up 4080 # making a dummy file named `D' -- because `-MD' means `put the output 4081 # in D'. 4082 mkdir conftest.dir 4083 # Copy depcomp to subdir because otherwise we won't find it if we're 4084 # using a relative directory. 4085 cp "$am_depcomp" conftest.dir 4086 cd conftest.dir 4087 # We will build objects and dependencies in a subdirectory because 4088 # it helps to detect inapplicable dependency modes. For instance 4089 # both Tru64's cc and ICC support -MD to output dependencies as a 4090 # side effect of compilation, but ICC will put the dependencies in 4091 # the current directory while Tru64 will put them in the object 4092 # directory. 4093 mkdir sub 4094 4095 am_cv_CC_dependencies_compiler_type=none 4096 if test "$am_compiler_list" = ""; then 4097 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4098 fi 4099 am__universal=false 4100 case " $depcc " in #( 4101 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4102 esac 4103 4104 for depmode in $am_compiler_list; do 4105 # Setup a source with many dependencies, because some compilers 4106 # like to wrap large dependency lists on column 80 (with \), and 4107 # we should not choose a depcomp mode which is confused by this. 4108 # 4109 # We need to recreate these files for each test, as the compiler may 4110 # overwrite some of them when testing with obscure command lines. 4111 # This happens at least with the AIX C compiler. 4112 : > sub/conftest.c 4113 for i in 1 2 3 4 5 6; do 4114 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4115 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4116 # Solaris 8's {/usr,}/bin/sh. 4117 touch sub/conftst$i.h 4118 done 4119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4120 4121 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4122 # mode. It turns out that the SunPro C++ compiler does not properly 4123 # handle `-M -o', and we need to detect this. Also, some Intel 4124 # versions had trouble with output in subdirs 4125 am__obj=sub/conftest.${OBJEXT-o} 4126 am__minus_obj="-o $am__obj" 4127 case $depmode in 4128 gcc) 4129 # This depmode causes a compiler race in universal mode. 4130 test "$am__universal" = false || continue 4131 ;; 4132 nosideeffect) 4133 # after this tag, mechanisms are not by side-effect, so they'll 4134 # only be used when explicitly requested 4135 if test "x$enable_dependency_tracking" = xyes; then 4136 continue 4137 else 4138 break 4139 fi 4140 ;; 4141 msvisualcpp | msvcmsys) 4142 # This compiler won't grok `-c -o', but also, the minuso test has 4143 # not run yet. These depmodes are late enough in the game, and 4144 # so weak that their functioning should not be impacted. 4145 am__obj=conftest.${OBJEXT-o} 4146 am__minus_obj= 4147 ;; 4148 none) break ;; 4149 esac 4150 if depmode=$depmode \ 4151 source=sub/conftest.c object=$am__obj \ 4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4154 >/dev/null 2>conftest.err && 4155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4159 # icc doesn't choke on unknown options, it will just issue warnings 4160 # or remarks (even with -Werror). So we grep stderr for any message 4161 # that says an option was ignored or not supported. 4162 # When given -MP, icc 7.0 and 7.1 complain thusly: 4163 # icc: Command line warning: ignoring option '-M'; no argument required 4164 # The diagnosis changed in icc 8.0: 4165 # icc: Command line remark: option '-MP' not supported 4166 if (grep 'ignoring option' conftest.err || 4167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4168 am_cv_CC_dependencies_compiler_type=$depmode 4169 break 4170 fi 4171 fi 4172 done 4173 4174 cd .. 4175 rm -rf conftest.dir 4176else 4177 am_cv_CC_dependencies_compiler_type=none 4178fi 4179 4180fi 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4182$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4183CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4184 4185 if 4186 test "x$enable_dependency_tracking" != xno \ 4187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4188 am__fastdepCC_TRUE= 4189 am__fastdepCC_FALSE='#' 4190else 4191 am__fastdepCC_TRUE='#' 4192 am__fastdepCC_FALSE= 4193fi 4194 4195 4196 4197 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4199$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4200 # Check whether --enable-maintainer-mode was given. 4201if test "${enable_maintainer_mode+set}" = set; then : 4202 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4203else 4204 USE_MAINTAINER_MODE=no 4205fi 4206 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4208$as_echo "$USE_MAINTAINER_MODE" >&6; } 4209 if test $USE_MAINTAINER_MODE = yes; then 4210 MAINTAINER_MODE_TRUE= 4211 MAINTAINER_MODE_FALSE='#' 4212else 4213 MAINTAINER_MODE_TRUE='#' 4214 MAINTAINER_MODE_FALSE= 4215fi 4216 4217 MAINT=$MAINTAINER_MODE_TRUE 4218 4219 4220 4221# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4234$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4235if ${ac_cv_prog_cc_c99+:} false; then : 4236 $as_echo_n "(cached) " >&6 4237else 4238 ac_cv_prog_cc_c99=no 4239ac_save_CC=$CC 4240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241/* end confdefs.h. */ 4242#include <stdarg.h> 4243#include <stdbool.h> 4244#include <stdlib.h> 4245#include <wchar.h> 4246#include <stdio.h> 4247 4248// Check varargs macros. These examples are taken from C99 6.10.3.5. 4249#define debug(...) fprintf (stderr, __VA_ARGS__) 4250#define showlist(...) puts (#__VA_ARGS__) 4251#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4252static void 4253test_varargs_macros (void) 4254{ 4255 int x = 1234; 4256 int y = 5678; 4257 debug ("Flag"); 4258 debug ("X = %d\n", x); 4259 showlist (The first, second, and third items.); 4260 report (x>y, "x is %d but y is %d", x, y); 4261} 4262 4263// Check long long types. 4264#define BIG64 18446744073709551615ull 4265#define BIG32 4294967295ul 4266#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4267#if !BIG_OK 4268 your preprocessor is broken; 4269#endif 4270#if BIG_OK 4271#else 4272 your preprocessor is broken; 4273#endif 4274static long long int bignum = -9223372036854775807LL; 4275static unsigned long long int ubignum = BIG64; 4276 4277struct incomplete_array 4278{ 4279 int datasize; 4280 double data[]; 4281}; 4282 4283struct named_init { 4284 int number; 4285 const wchar_t *name; 4286 double average; 4287}; 4288 4289typedef const char *ccp; 4290 4291static inline int 4292test_restrict (ccp restrict text) 4293{ 4294 // See if C++-style comments work. 4295 // Iterate through items via the restricted pointer. 4296 // Also check for declarations in for loops. 4297 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4298 continue; 4299 return 0; 4300} 4301 4302// Check varargs and va_copy. 4303static void 4304test_varargs (const char *format, ...) 4305{ 4306 va_list args; 4307 va_start (args, format); 4308 va_list args_copy; 4309 va_copy (args_copy, args); 4310 4311 const char *str; 4312 int number; 4313 float fnumber; 4314 4315 while (*format) 4316 { 4317 switch (*format++) 4318 { 4319 case 's': // string 4320 str = va_arg (args_copy, const char *); 4321 break; 4322 case 'd': // int 4323 number = va_arg (args_copy, int); 4324 break; 4325 case 'f': // float 4326 fnumber = va_arg (args_copy, double); 4327 break; 4328 default: 4329 break; 4330 } 4331 } 4332 va_end (args_copy); 4333 va_end (args); 4334} 4335 4336int 4337main () 4338{ 4339 4340 // Check bool. 4341 _Bool success = false; 4342 4343 // Check restrict. 4344 if (test_restrict ("String literal") == 0) 4345 success = true; 4346 char *restrict newvar = "Another string"; 4347 4348 // Check varargs. 4349 test_varargs ("s, d' f .", "string", 65, 34.234); 4350 test_varargs_macros (); 4351 4352 // Check flexible array members. 4353 struct incomplete_array *ia = 4354 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4355 ia->datasize = 10; 4356 for (int i = 0; i < ia->datasize; ++i) 4357 ia->data[i] = i * 1.234; 4358 4359 // Check named initializers. 4360 struct named_init ni = { 4361 .number = 34, 4362 .name = L"Test wide string", 4363 .average = 543.34343, 4364 }; 4365 4366 ni.number = 58; 4367 4368 int dynamic_array[ni.number]; 4369 dynamic_array[ni.number - 1] = 543; 4370 4371 // work around unused variable warnings 4372 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4373 || dynamic_array[ni.number - 1] != 543); 4374 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4380do 4381 CC="$ac_save_CC $ac_arg" 4382 if ac_fn_c_try_compile "$LINENO"; then : 4383 ac_cv_prog_cc_c99=$ac_arg 4384fi 4385rm -f core conftest.err conftest.$ac_objext 4386 test "x$ac_cv_prog_cc_c99" != "xno" && break 4387done 4388rm -f conftest.$ac_ext 4389CC=$ac_save_CC 4390 4391fi 4392# AC_CACHE_VAL 4393case "x$ac_cv_prog_cc_c99" in 4394 x) 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4396$as_echo "none needed" >&6; } ;; 4397 xno) 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4399$as_echo "unsupported" >&6; } ;; 4400 *) 4401 CC="$CC $ac_cv_prog_cc_c99" 4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4403$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4404esac 4405if test "x$ac_cv_prog_cc_c99" != xno; then : 4406 4407fi 4408 4409 4410 4411 4412 4413 4414ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4415if test "x$ac_cv_have_decl___clang__" = xyes; then : 4416 CLANGCC="yes" 4417else 4418 CLANGCC="no" 4419fi 4420 4421ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4422if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4423 INTELCC="yes" 4424else 4425 INTELCC="no" 4426fi 4427 4428ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4429if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4430 SUNCC="yes" 4431else 4432 SUNCC="no" 4433fi 4434 4435 4436 4437 4438if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4439 if test -n "$ac_tool_prefix"; then 4440 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4441set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4443$as_echo_n "checking for $ac_word... " >&6; } 4444if ${ac_cv_path_PKG_CONFIG+:} false; then : 4445 $as_echo_n "(cached) " >&6 4446else 4447 case $PKG_CONFIG in 4448 [\\/]* | ?:[\\/]*) 4449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4450 ;; 4451 *) 4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4453for as_dir in $PATH 4454do 4455 IFS=$as_save_IFS 4456 test -z "$as_dir" && as_dir=. 4457 for ac_exec_ext in '' $ac_executable_extensions; do 4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4461 break 2 4462 fi 4463done 4464 done 4465IFS=$as_save_IFS 4466 4467 ;; 4468esac 4469fi 4470PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4471if test -n "$PKG_CONFIG"; then 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4473$as_echo "$PKG_CONFIG" >&6; } 4474else 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4476$as_echo "no" >&6; } 4477fi 4478 4479 4480fi 4481if test -z "$ac_cv_path_PKG_CONFIG"; then 4482 ac_pt_PKG_CONFIG=$PKG_CONFIG 4483 # Extract the first word of "pkg-config", so it can be a program name with args. 4484set dummy pkg-config; ac_word=$2 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4486$as_echo_n "checking for $ac_word... " >&6; } 4487if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 case $ac_pt_PKG_CONFIG in 4491 [\\/]* | ?:[\\/]*) 4492 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4493 ;; 4494 *) 4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4496for as_dir in $PATH 4497do 4498 IFS=$as_save_IFS 4499 test -z "$as_dir" && as_dir=. 4500 for ac_exec_ext in '' $ac_executable_extensions; do 4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4502 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4504 break 2 4505 fi 4506done 4507 done 4508IFS=$as_save_IFS 4509 4510 ;; 4511esac 4512fi 4513ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4514if test -n "$ac_pt_PKG_CONFIG"; then 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4516$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4517else 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4519$as_echo "no" >&6; } 4520fi 4521 4522 if test "x$ac_pt_PKG_CONFIG" = x; then 4523 PKG_CONFIG="" 4524 else 4525 case $cross_compiling:$ac_tool_warned in 4526yes:) 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4529ac_tool_warned=yes ;; 4530esac 4531 PKG_CONFIG=$ac_pt_PKG_CONFIG 4532 fi 4533else 4534 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4535fi 4536 4537fi 4538if test -n "$PKG_CONFIG"; then 4539 _pkg_min_version=0.9.0 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4541$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4542 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4544$as_echo "yes" >&6; } 4545 else 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4547$as_echo "no" >&6; } 4548 PKG_CONFIG="" 4549 fi 4550 4551fi 4552# Make sure we can run config.sub. 4553$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4554 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4555 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4557$as_echo_n "checking build system type... " >&6; } 4558if ${ac_cv_build+:} false; then : 4559 $as_echo_n "(cached) " >&6 4560else 4561 ac_build_alias=$build_alias 4562test "x$ac_build_alias" = x && 4563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4564test "x$ac_build_alias" = x && 4565 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4566ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4568 4569fi 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4571$as_echo "$ac_cv_build" >&6; } 4572case $ac_cv_build in 4573*-*-*) ;; 4574*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4575esac 4576build=$ac_cv_build 4577ac_save_IFS=$IFS; IFS='-' 4578set x $ac_cv_build 4579shift 4580build_cpu=$1 4581build_vendor=$2 4582shift; shift 4583# Remember, the first character of IFS is used to create $*, 4584# except with old shells: 4585build_os=$* 4586IFS=$ac_save_IFS 4587case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4588 4589 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4591$as_echo_n "checking host system type... " >&6; } 4592if ${ac_cv_host+:} false; then : 4593 $as_echo_n "(cached) " >&6 4594else 4595 if test "x$host_alias" = x; then 4596 ac_cv_host=$ac_cv_build 4597else 4598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4600fi 4601 4602fi 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4604$as_echo "$ac_cv_host" >&6; } 4605case $ac_cv_host in 4606*-*-*) ;; 4607*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4608esac 4609host=$ac_cv_host 4610ac_save_IFS=$IFS; IFS='-' 4611set x $ac_cv_host 4612shift 4613host_cpu=$1 4614host_vendor=$2 4615shift; shift 4616# Remember, the first character of IFS is used to create $*, 4617# except with old shells: 4618host_os=$* 4619IFS=$ac_save_IFS 4620case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4621 4622 4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4624$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4625if ${ac_cv_path_SED+:} false; then : 4626 $as_echo_n "(cached) " >&6 4627else 4628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4629 for ac_i in 1 2 3 4 5 6 7; do 4630 ac_script="$ac_script$as_nl$ac_script" 4631 done 4632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4633 { ac_script=; unset ac_script;} 4634 if test -z "$SED"; then 4635 ac_path_SED_found=false 4636 # Loop through the user's path and test for each of PROGNAME-LIST 4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4638for as_dir in $PATH 4639do 4640 IFS=$as_save_IFS 4641 test -z "$as_dir" && as_dir=. 4642 for ac_prog in sed gsed; do 4643 for ac_exec_ext in '' $ac_executable_extensions; do 4644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4646# Check for GNU ac_path_SED and select it if it is found. 4647 # Check for GNU $ac_path_SED 4648case `"$ac_path_SED" --version 2>&1` in 4649*GNU*) 4650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4651*) 4652 ac_count=0 4653 $as_echo_n 0123456789 >"conftest.in" 4654 while : 4655 do 4656 cat "conftest.in" "conftest.in" >"conftest.tmp" 4657 mv "conftest.tmp" "conftest.in" 4658 cp "conftest.in" "conftest.nl" 4659 $as_echo '' >> "conftest.nl" 4660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4662 as_fn_arith $ac_count + 1 && ac_count=$as_val 4663 if test $ac_count -gt ${ac_path_SED_max-0}; then 4664 # Best one so far, save it but keep looking for a better one 4665 ac_cv_path_SED="$ac_path_SED" 4666 ac_path_SED_max=$ac_count 4667 fi 4668 # 10*(2^10) chars as input seems more than enough 4669 test $ac_count -gt 10 && break 4670 done 4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4672esac 4673 4674 $ac_path_SED_found && break 3 4675 done 4676 done 4677 done 4678IFS=$as_save_IFS 4679 if test -z "$ac_cv_path_SED"; then 4680 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4681 fi 4682else 4683 ac_cv_path_SED=$SED 4684fi 4685 4686fi 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4688$as_echo "$ac_cv_path_SED" >&6; } 4689 SED="$ac_cv_path_SED" 4690 rm -f conftest.sed 4691 4692 4693 4694 4695 4696 4697# Check whether --enable-selective-werror was given. 4698if test "${enable_selective_werror+set}" = set; then : 4699 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4700else 4701 SELECTIVE_WERROR=yes 4702fi 4703 4704 4705 4706 4707 4708# -v is too short to test reliably with XORG_TESTSET_CFLAG 4709if test "x$SUNCC" = "xyes"; then 4710 BASE_CFLAGS="-v" 4711else 4712 BASE_CFLAGS="" 4713fi 4714 4715# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729xorg_testset_save_CFLAGS="$CFLAGS" 4730 4731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4736 $as_echo_n "(cached) " >&6 4737else 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739/* end confdefs.h. */ 4740int i; 4741_ACEOF 4742if ac_fn_c_try_compile "$LINENO"; then : 4743 xorg_cv_cc_flag_unknown_warning_option=yes 4744else 4745 xorg_cv_cc_flag_unknown_warning_option=no 4746fi 4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4748fi 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4752 CFLAGS="$xorg_testset_save_CFLAGS" 4753fi 4754 4755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4758 fi 4759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4763 $as_echo_n "(cached) " >&6 4764else 4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767int i; 4768_ACEOF 4769if ac_fn_c_try_compile "$LINENO"; then : 4770 xorg_cv_cc_flag_unused_command_line_argument=yes 4771else 4772 xorg_cv_cc_flag_unused_command_line_argument=no 4773fi 4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4775fi 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4779 CFLAGS="$xorg_testset_save_CFLAGS" 4780fi 4781 4782found="no" 4783 4784 if test $found = "no" ; then 4785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4787 fi 4788 4789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4791 fi 4792 4793 CFLAGS="$CFLAGS -Wall" 4794 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 4796$as_echo_n "checking if $CC supports-Wall... " >&6; } 4797 cacheid=xorg_cv_cc_flag__Wall 4798 if eval \${$cacheid+:} false; then : 4799 $as_echo_n "(cached) " >&6 4800else 4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4802/* end confdefs.h. */ 4803int i; 4804int 4805main () 4806{ 4807 4808 ; 4809 return 0; 4810} 4811_ACEOF 4812if ac_fn_c_try_link "$LINENO"; then : 4813 eval $cacheid=yes 4814else 4815 eval $cacheid=no 4816fi 4817rm -f core conftest.err conftest.$ac_objext \ 4818 conftest$ac_exeext conftest.$ac_ext 4819fi 4820 4821 4822 CFLAGS="$xorg_testset_save_CFLAGS" 4823 4824 eval supported=\$$cacheid 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4826$as_echo "$supported" >&6; } 4827 if test "$supported" = "yes" ; then 4828 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4829 found="yes" 4830 fi 4831 fi 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847xorg_testset_save_CFLAGS="$CFLAGS" 4848 4849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4857/* end confdefs.h. */ 4858int i; 4859_ACEOF 4860if ac_fn_c_try_compile "$LINENO"; then : 4861 xorg_cv_cc_flag_unknown_warning_option=yes 4862else 4863 xorg_cv_cc_flag_unknown_warning_option=no 4864fi 4865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4866fi 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4870 CFLAGS="$xorg_testset_save_CFLAGS" 4871fi 4872 4873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4876 fi 4877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4884/* end confdefs.h. */ 4885int i; 4886_ACEOF 4887if ac_fn_c_try_compile "$LINENO"; then : 4888 xorg_cv_cc_flag_unused_command_line_argument=yes 4889else 4890 xorg_cv_cc_flag_unused_command_line_argument=no 4891fi 4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4893fi 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4897 CFLAGS="$xorg_testset_save_CFLAGS" 4898fi 4899 4900found="no" 4901 4902 if test $found = "no" ; then 4903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4905 fi 4906 4907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4909 fi 4910 4911 CFLAGS="$CFLAGS -Wpointer-arith" 4912 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 4914$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 4915 cacheid=xorg_cv_cc_flag__Wpointer_arith 4916 if eval \${$cacheid+:} false; then : 4917 $as_echo_n "(cached) " >&6 4918else 4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4920/* end confdefs.h. */ 4921int i; 4922int 4923main () 4924{ 4925 4926 ; 4927 return 0; 4928} 4929_ACEOF 4930if ac_fn_c_try_link "$LINENO"; then : 4931 eval $cacheid=yes 4932else 4933 eval $cacheid=no 4934fi 4935rm -f core conftest.err conftest.$ac_objext \ 4936 conftest$ac_exeext conftest.$ac_ext 4937fi 4938 4939 4940 CFLAGS="$xorg_testset_save_CFLAGS" 4941 4942 eval supported=\$$cacheid 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4944$as_echo "$supported" >&6; } 4945 if test "$supported" = "yes" ; then 4946 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4947 found="yes" 4948 fi 4949 fi 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965xorg_testset_save_CFLAGS="$CFLAGS" 4966 4967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4975/* end confdefs.h. */ 4976int i; 4977_ACEOF 4978if ac_fn_c_try_compile "$LINENO"; then : 4979 xorg_cv_cc_flag_unknown_warning_option=yes 4980else 4981 xorg_cv_cc_flag_unknown_warning_option=no 4982fi 4983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4984fi 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4988 CFLAGS="$xorg_testset_save_CFLAGS" 4989fi 4990 4991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4994 fi 4995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4999 $as_echo_n "(cached) " >&6 5000else 5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5002/* end confdefs.h. */ 5003int i; 5004_ACEOF 5005if ac_fn_c_try_compile "$LINENO"; then : 5006 xorg_cv_cc_flag_unused_command_line_argument=yes 5007else 5008 xorg_cv_cc_flag_unused_command_line_argument=no 5009fi 5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5011fi 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5015 CFLAGS="$xorg_testset_save_CFLAGS" 5016fi 5017 5018found="no" 5019 5020 if test $found = "no" ; then 5021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5023 fi 5024 5025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5027 fi 5028 5029 CFLAGS="$CFLAGS -Wmissing-declarations" 5030 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 5032$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 5033 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5034 if eval \${$cacheid+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5038/* end confdefs.h. */ 5039int i; 5040int 5041main () 5042{ 5043 5044 ; 5045 return 0; 5046} 5047_ACEOF 5048if ac_fn_c_try_link "$LINENO"; then : 5049 eval $cacheid=yes 5050else 5051 eval $cacheid=no 5052fi 5053rm -f core conftest.err conftest.$ac_objext \ 5054 conftest$ac_exeext conftest.$ac_ext 5055fi 5056 5057 5058 CFLAGS="$xorg_testset_save_CFLAGS" 5059 5060 eval supported=\$$cacheid 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5062$as_echo "$supported" >&6; } 5063 if test "$supported" = "yes" ; then 5064 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5065 found="yes" 5066 fi 5067 fi 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083xorg_testset_save_CFLAGS="$CFLAGS" 5084 5085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5090 $as_echo_n "(cached) " >&6 5091else 5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5093/* end confdefs.h. */ 5094int i; 5095_ACEOF 5096if ac_fn_c_try_compile "$LINENO"; then : 5097 xorg_cv_cc_flag_unknown_warning_option=yes 5098else 5099 xorg_cv_cc_flag_unknown_warning_option=no 5100fi 5101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5102fi 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5106 CFLAGS="$xorg_testset_save_CFLAGS" 5107fi 5108 5109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5112 fi 5113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5117 $as_echo_n "(cached) " >&6 5118else 5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5120/* end confdefs.h. */ 5121int i; 5122_ACEOF 5123if ac_fn_c_try_compile "$LINENO"; then : 5124 xorg_cv_cc_flag_unused_command_line_argument=yes 5125else 5126 xorg_cv_cc_flag_unused_command_line_argument=no 5127fi 5128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5129fi 5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5133 CFLAGS="$xorg_testset_save_CFLAGS" 5134fi 5135 5136found="no" 5137 5138 if test $found = "no" ; then 5139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5141 fi 5142 5143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5145 fi 5146 5147 CFLAGS="$CFLAGS -Wformat=2" 5148 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 5150$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 5151 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5152 if eval \${$cacheid+:} false; then : 5153 $as_echo_n "(cached) " >&6 5154else 5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5156/* end confdefs.h. */ 5157int i; 5158int 5159main () 5160{ 5161 5162 ; 5163 return 0; 5164} 5165_ACEOF 5166if ac_fn_c_try_link "$LINENO"; then : 5167 eval $cacheid=yes 5168else 5169 eval $cacheid=no 5170fi 5171rm -f core conftest.err conftest.$ac_objext \ 5172 conftest$ac_exeext conftest.$ac_ext 5173fi 5174 5175 5176 CFLAGS="$xorg_testset_save_CFLAGS" 5177 5178 eval supported=\$$cacheid 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5180$as_echo "$supported" >&6; } 5181 if test "$supported" = "yes" ; then 5182 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5183 found="yes" 5184 fi 5185 fi 5186 5187 if test $found = "no" ; then 5188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5190 fi 5191 5192 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5194 fi 5195 5196 CFLAGS="$CFLAGS -Wformat" 5197 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 5199$as_echo_n "checking if $CC supports-Wformat... " >&6; } 5200 cacheid=xorg_cv_cc_flag__Wformat 5201 if eval \${$cacheid+:} false; then : 5202 $as_echo_n "(cached) " >&6 5203else 5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5205/* end confdefs.h. */ 5206int i; 5207int 5208main () 5209{ 5210 5211 ; 5212 return 0; 5213} 5214_ACEOF 5215if ac_fn_c_try_link "$LINENO"; then : 5216 eval $cacheid=yes 5217else 5218 eval $cacheid=no 5219fi 5220rm -f core conftest.err conftest.$ac_objext \ 5221 conftest$ac_exeext conftest.$ac_ext 5222fi 5223 5224 5225 CFLAGS="$xorg_testset_save_CFLAGS" 5226 5227 eval supported=\$$cacheid 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5229$as_echo "$supported" >&6; } 5230 if test "$supported" = "yes" ; then 5231 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5232 found="yes" 5233 fi 5234 fi 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252xorg_testset_save_CFLAGS="$CFLAGS" 5253 5254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5259 $as_echo_n "(cached) " >&6 5260else 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262/* end confdefs.h. */ 5263int i; 5264_ACEOF 5265if ac_fn_c_try_compile "$LINENO"; then : 5266 xorg_cv_cc_flag_unknown_warning_option=yes 5267else 5268 xorg_cv_cc_flag_unknown_warning_option=no 5269fi 5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5271fi 5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5275 CFLAGS="$xorg_testset_save_CFLAGS" 5276fi 5277 5278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5281 fi 5282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5286 $as_echo_n "(cached) " >&6 5287else 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289/* end confdefs.h. */ 5290int i; 5291_ACEOF 5292if ac_fn_c_try_compile "$LINENO"; then : 5293 xorg_cv_cc_flag_unused_command_line_argument=yes 5294else 5295 xorg_cv_cc_flag_unused_command_line_argument=no 5296fi 5297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5298fi 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5302 CFLAGS="$xorg_testset_save_CFLAGS" 5303fi 5304 5305found="no" 5306 5307 if test $found = "no" ; then 5308 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5310 fi 5311 5312 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314 fi 5315 5316 CFLAGS="$CFLAGS -Wstrict-prototypes" 5317 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 5319$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 5320 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5321 if eval \${$cacheid+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325/* end confdefs.h. */ 5326int i; 5327int 5328main () 5329{ 5330 5331 ; 5332 return 0; 5333} 5334_ACEOF 5335if ac_fn_c_try_link "$LINENO"; then : 5336 eval $cacheid=yes 5337else 5338 eval $cacheid=no 5339fi 5340rm -f core conftest.err conftest.$ac_objext \ 5341 conftest$ac_exeext conftest.$ac_ext 5342fi 5343 5344 5345 CFLAGS="$xorg_testset_save_CFLAGS" 5346 5347 eval supported=\$$cacheid 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5349$as_echo "$supported" >&6; } 5350 if test "$supported" = "yes" ; then 5351 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5352 found="yes" 5353 fi 5354 fi 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370xorg_testset_save_CFLAGS="$CFLAGS" 5371 5372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5377 $as_echo_n "(cached) " >&6 5378else 5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5380/* end confdefs.h. */ 5381int i; 5382_ACEOF 5383if ac_fn_c_try_compile "$LINENO"; then : 5384 xorg_cv_cc_flag_unknown_warning_option=yes 5385else 5386 xorg_cv_cc_flag_unknown_warning_option=no 5387fi 5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5389fi 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5393 CFLAGS="$xorg_testset_save_CFLAGS" 5394fi 5395 5396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5399 fi 5400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5404 $as_echo_n "(cached) " >&6 5405else 5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5407/* end confdefs.h. */ 5408int i; 5409_ACEOF 5410if ac_fn_c_try_compile "$LINENO"; then : 5411 xorg_cv_cc_flag_unused_command_line_argument=yes 5412else 5413 xorg_cv_cc_flag_unused_command_line_argument=no 5414fi 5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5416fi 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5420 CFLAGS="$xorg_testset_save_CFLAGS" 5421fi 5422 5423found="no" 5424 5425 if test $found = "no" ; then 5426 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5428 fi 5429 5430 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5432 fi 5433 5434 CFLAGS="$CFLAGS -Wmissing-prototypes" 5435 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 5437$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 5438 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5439 if eval \${$cacheid+:} false; then : 5440 $as_echo_n "(cached) " >&6 5441else 5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5443/* end confdefs.h. */ 5444int i; 5445int 5446main () 5447{ 5448 5449 ; 5450 return 0; 5451} 5452_ACEOF 5453if ac_fn_c_try_link "$LINENO"; then : 5454 eval $cacheid=yes 5455else 5456 eval $cacheid=no 5457fi 5458rm -f core conftest.err conftest.$ac_objext \ 5459 conftest$ac_exeext conftest.$ac_ext 5460fi 5461 5462 5463 CFLAGS="$xorg_testset_save_CFLAGS" 5464 5465 eval supported=\$$cacheid 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5467$as_echo "$supported" >&6; } 5468 if test "$supported" = "yes" ; then 5469 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5470 found="yes" 5471 fi 5472 fi 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488xorg_testset_save_CFLAGS="$CFLAGS" 5489 5490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5495 $as_echo_n "(cached) " >&6 5496else 5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5498/* end confdefs.h. */ 5499int i; 5500_ACEOF 5501if ac_fn_c_try_compile "$LINENO"; then : 5502 xorg_cv_cc_flag_unknown_warning_option=yes 5503else 5504 xorg_cv_cc_flag_unknown_warning_option=no 5505fi 5506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5507fi 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5511 CFLAGS="$xorg_testset_save_CFLAGS" 5512fi 5513 5514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5517 fi 5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5522 $as_echo_n "(cached) " >&6 5523else 5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5525/* end confdefs.h. */ 5526int i; 5527_ACEOF 5528if ac_fn_c_try_compile "$LINENO"; then : 5529 xorg_cv_cc_flag_unused_command_line_argument=yes 5530else 5531 xorg_cv_cc_flag_unused_command_line_argument=no 5532fi 5533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5534fi 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5538 CFLAGS="$xorg_testset_save_CFLAGS" 5539fi 5540 5541found="no" 5542 5543 if test $found = "no" ; then 5544 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5546 fi 5547 5548 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5550 fi 5551 5552 CFLAGS="$CFLAGS -Wnested-externs" 5553 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 5555$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 5556 cacheid=xorg_cv_cc_flag__Wnested_externs 5557 if eval \${$cacheid+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5561/* end confdefs.h. */ 5562int i; 5563int 5564main () 5565{ 5566 5567 ; 5568 return 0; 5569} 5570_ACEOF 5571if ac_fn_c_try_link "$LINENO"; then : 5572 eval $cacheid=yes 5573else 5574 eval $cacheid=no 5575fi 5576rm -f core conftest.err conftest.$ac_objext \ 5577 conftest$ac_exeext conftest.$ac_ext 5578fi 5579 5580 5581 CFLAGS="$xorg_testset_save_CFLAGS" 5582 5583 eval supported=\$$cacheid 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5585$as_echo "$supported" >&6; } 5586 if test "$supported" = "yes" ; then 5587 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5588 found="yes" 5589 fi 5590 fi 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606xorg_testset_save_CFLAGS="$CFLAGS" 5607 5608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5613 $as_echo_n "(cached) " >&6 5614else 5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5616/* end confdefs.h. */ 5617int i; 5618_ACEOF 5619if ac_fn_c_try_compile "$LINENO"; then : 5620 xorg_cv_cc_flag_unknown_warning_option=yes 5621else 5622 xorg_cv_cc_flag_unknown_warning_option=no 5623fi 5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5625fi 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5629 CFLAGS="$xorg_testset_save_CFLAGS" 5630fi 5631 5632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5635 fi 5636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5640 $as_echo_n "(cached) " >&6 5641else 5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5643/* end confdefs.h. */ 5644int i; 5645_ACEOF 5646if ac_fn_c_try_compile "$LINENO"; then : 5647 xorg_cv_cc_flag_unused_command_line_argument=yes 5648else 5649 xorg_cv_cc_flag_unused_command_line_argument=no 5650fi 5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5652fi 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5656 CFLAGS="$xorg_testset_save_CFLAGS" 5657fi 5658 5659found="no" 5660 5661 if test $found = "no" ; then 5662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5664 fi 5665 5666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5668 fi 5669 5670 CFLAGS="$CFLAGS -Wbad-function-cast" 5671 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 5673$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 5674 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5675 if eval \${$cacheid+:} false; then : 5676 $as_echo_n "(cached) " >&6 5677else 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5679/* end confdefs.h. */ 5680int i; 5681int 5682main () 5683{ 5684 5685 ; 5686 return 0; 5687} 5688_ACEOF 5689if ac_fn_c_try_link "$LINENO"; then : 5690 eval $cacheid=yes 5691else 5692 eval $cacheid=no 5693fi 5694rm -f core conftest.err conftest.$ac_objext \ 5695 conftest$ac_exeext conftest.$ac_ext 5696fi 5697 5698 5699 CFLAGS="$xorg_testset_save_CFLAGS" 5700 5701 eval supported=\$$cacheid 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5703$as_echo "$supported" >&6; } 5704 if test "$supported" = "yes" ; then 5705 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5706 found="yes" 5707 fi 5708 fi 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724xorg_testset_save_CFLAGS="$CFLAGS" 5725 5726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5731 $as_echo_n "(cached) " >&6 5732else 5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5734/* end confdefs.h. */ 5735int i; 5736_ACEOF 5737if ac_fn_c_try_compile "$LINENO"; then : 5738 xorg_cv_cc_flag_unknown_warning_option=yes 5739else 5740 xorg_cv_cc_flag_unknown_warning_option=no 5741fi 5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5743fi 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5747 CFLAGS="$xorg_testset_save_CFLAGS" 5748fi 5749 5750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5753 fi 5754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762int i; 5763_ACEOF 5764if ac_fn_c_try_compile "$LINENO"; then : 5765 xorg_cv_cc_flag_unused_command_line_argument=yes 5766else 5767 xorg_cv_cc_flag_unused_command_line_argument=no 5768fi 5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5770fi 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5774 CFLAGS="$xorg_testset_save_CFLAGS" 5775fi 5776 5777found="no" 5778 5779 if test $found = "no" ; then 5780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5782 fi 5783 5784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5786 fi 5787 5788 CFLAGS="$CFLAGS -Wold-style-definition" 5789 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 5791$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 5792 cacheid=xorg_cv_cc_flag__Wold_style_definition 5793 if eval \${$cacheid+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795else 5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798int i; 5799int 5800main () 5801{ 5802 5803 ; 5804 return 0; 5805} 5806_ACEOF 5807if ac_fn_c_try_link "$LINENO"; then : 5808 eval $cacheid=yes 5809else 5810 eval $cacheid=no 5811fi 5812rm -f core conftest.err conftest.$ac_objext \ 5813 conftest$ac_exeext conftest.$ac_ext 5814fi 5815 5816 5817 CFLAGS="$xorg_testset_save_CFLAGS" 5818 5819 eval supported=\$$cacheid 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5821$as_echo "$supported" >&6; } 5822 if test "$supported" = "yes" ; then 5823 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5824 found="yes" 5825 fi 5826 fi 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842xorg_testset_save_CFLAGS="$CFLAGS" 5843 5844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850else 5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5852/* end confdefs.h. */ 5853int i; 5854_ACEOF 5855if ac_fn_c_try_compile "$LINENO"; then : 5856 xorg_cv_cc_flag_unknown_warning_option=yes 5857else 5858 xorg_cv_cc_flag_unknown_warning_option=no 5859fi 5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5861fi 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5865 CFLAGS="$xorg_testset_save_CFLAGS" 5866fi 5867 5868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5871 fi 5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5876 $as_echo_n "(cached) " >&6 5877else 5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879/* end confdefs.h. */ 5880int i; 5881_ACEOF 5882if ac_fn_c_try_compile "$LINENO"; then : 5883 xorg_cv_cc_flag_unused_command_line_argument=yes 5884else 5885 xorg_cv_cc_flag_unused_command_line_argument=no 5886fi 5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5888fi 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5892 CFLAGS="$xorg_testset_save_CFLAGS" 5893fi 5894 5895found="no" 5896 5897 if test $found = "no" ; then 5898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5900 fi 5901 5902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5904 fi 5905 5906 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5907 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 5909$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 5910 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5911 if eval \${$cacheid+:} false; then : 5912 $as_echo_n "(cached) " >&6 5913else 5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5915/* end confdefs.h. */ 5916int i; 5917int 5918main () 5919{ 5920 5921 ; 5922 return 0; 5923} 5924_ACEOF 5925if ac_fn_c_try_link "$LINENO"; then : 5926 eval $cacheid=yes 5927else 5928 eval $cacheid=no 5929fi 5930rm -f core conftest.err conftest.$ac_objext \ 5931 conftest$ac_exeext conftest.$ac_ext 5932fi 5933 5934 5935 CFLAGS="$xorg_testset_save_CFLAGS" 5936 5937 eval supported=\$$cacheid 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5939$as_echo "$supported" >&6; } 5940 if test "$supported" = "yes" ; then 5941 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5942 found="yes" 5943 fi 5944 fi 5945 5946 5947 5948 5949 5950# This chunk adds additional warnings that could catch undesired effects. 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964xorg_testset_save_CFLAGS="$CFLAGS" 5965 5966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5971 $as_echo_n "(cached) " >&6 5972else 5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5974/* end confdefs.h. */ 5975int i; 5976_ACEOF 5977if ac_fn_c_try_compile "$LINENO"; then : 5978 xorg_cv_cc_flag_unknown_warning_option=yes 5979else 5980 xorg_cv_cc_flag_unknown_warning_option=no 5981fi 5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5983fi 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5987 CFLAGS="$xorg_testset_save_CFLAGS" 5988fi 5989 5990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5993 fi 5994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6001/* end confdefs.h. */ 6002int i; 6003_ACEOF 6004if ac_fn_c_try_compile "$LINENO"; then : 6005 xorg_cv_cc_flag_unused_command_line_argument=yes 6006else 6007 xorg_cv_cc_flag_unused_command_line_argument=no 6008fi 6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6010fi 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6014 CFLAGS="$xorg_testset_save_CFLAGS" 6015fi 6016 6017found="no" 6018 6019 if test $found = "no" ; then 6020 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6022 fi 6023 6024 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6026 fi 6027 6028 CFLAGS="$CFLAGS -Wunused" 6029 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 6031$as_echo_n "checking if $CC supports-Wunused... " >&6; } 6032 cacheid=xorg_cv_cc_flag__Wunused 6033 if eval \${$cacheid+:} false; then : 6034 $as_echo_n "(cached) " >&6 6035else 6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6037/* end confdefs.h. */ 6038int i; 6039int 6040main () 6041{ 6042 6043 ; 6044 return 0; 6045} 6046_ACEOF 6047if ac_fn_c_try_link "$LINENO"; then : 6048 eval $cacheid=yes 6049else 6050 eval $cacheid=no 6051fi 6052rm -f core conftest.err conftest.$ac_objext \ 6053 conftest$ac_exeext conftest.$ac_ext 6054fi 6055 6056 6057 CFLAGS="$xorg_testset_save_CFLAGS" 6058 6059 eval supported=\$$cacheid 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6061$as_echo "$supported" >&6; } 6062 if test "$supported" = "yes" ; then 6063 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6064 found="yes" 6065 fi 6066 fi 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082xorg_testset_save_CFLAGS="$CFLAGS" 6083 6084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093int i; 6094_ACEOF 6095if ac_fn_c_try_compile "$LINENO"; then : 6096 xorg_cv_cc_flag_unknown_warning_option=yes 6097else 6098 xorg_cv_cc_flag_unknown_warning_option=no 6099fi 6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6101fi 6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6105 CFLAGS="$xorg_testset_save_CFLAGS" 6106fi 6107 6108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6111 fi 6112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6116 $as_echo_n "(cached) " >&6 6117else 6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119/* end confdefs.h. */ 6120int i; 6121_ACEOF 6122if ac_fn_c_try_compile "$LINENO"; then : 6123 xorg_cv_cc_flag_unused_command_line_argument=yes 6124else 6125 xorg_cv_cc_flag_unused_command_line_argument=no 6126fi 6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6128fi 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6132 CFLAGS="$xorg_testset_save_CFLAGS" 6133fi 6134 6135found="no" 6136 6137 if test $found = "no" ; then 6138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6140 fi 6141 6142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6144 fi 6145 6146 CFLAGS="$CFLAGS -Wuninitialized" 6147 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 6149$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 6150 cacheid=xorg_cv_cc_flag__Wuninitialized 6151 if eval \${$cacheid+:} false; then : 6152 $as_echo_n "(cached) " >&6 6153else 6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6155/* end confdefs.h. */ 6156int i; 6157int 6158main () 6159{ 6160 6161 ; 6162 return 0; 6163} 6164_ACEOF 6165if ac_fn_c_try_link "$LINENO"; then : 6166 eval $cacheid=yes 6167else 6168 eval $cacheid=no 6169fi 6170rm -f core conftest.err conftest.$ac_objext \ 6171 conftest$ac_exeext conftest.$ac_ext 6172fi 6173 6174 6175 CFLAGS="$xorg_testset_save_CFLAGS" 6176 6177 eval supported=\$$cacheid 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6179$as_echo "$supported" >&6; } 6180 if test "$supported" = "yes" ; then 6181 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6182 found="yes" 6183 fi 6184 fi 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200xorg_testset_save_CFLAGS="$CFLAGS" 6201 6202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210/* end confdefs.h. */ 6211int i; 6212_ACEOF 6213if ac_fn_c_try_compile "$LINENO"; then : 6214 xorg_cv_cc_flag_unknown_warning_option=yes 6215else 6216 xorg_cv_cc_flag_unknown_warning_option=no 6217fi 6218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6219fi 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6223 CFLAGS="$xorg_testset_save_CFLAGS" 6224fi 6225 6226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6229 fi 6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6234 $as_echo_n "(cached) " >&6 6235else 6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6237/* end confdefs.h. */ 6238int i; 6239_ACEOF 6240if ac_fn_c_try_compile "$LINENO"; then : 6241 xorg_cv_cc_flag_unused_command_line_argument=yes 6242else 6243 xorg_cv_cc_flag_unused_command_line_argument=no 6244fi 6245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6246fi 6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6250 CFLAGS="$xorg_testset_save_CFLAGS" 6251fi 6252 6253found="no" 6254 6255 if test $found = "no" ; then 6256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6258 fi 6259 6260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6262 fi 6263 6264 CFLAGS="$CFLAGS -Wshadow" 6265 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 6267$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 6268 cacheid=xorg_cv_cc_flag__Wshadow 6269 if eval \${$cacheid+:} false; then : 6270 $as_echo_n "(cached) " >&6 6271else 6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273/* end confdefs.h. */ 6274int i; 6275int 6276main () 6277{ 6278 6279 ; 6280 return 0; 6281} 6282_ACEOF 6283if ac_fn_c_try_link "$LINENO"; then : 6284 eval $cacheid=yes 6285else 6286 eval $cacheid=no 6287fi 6288rm -f core conftest.err conftest.$ac_objext \ 6289 conftest$ac_exeext conftest.$ac_ext 6290fi 6291 6292 6293 CFLAGS="$xorg_testset_save_CFLAGS" 6294 6295 eval supported=\$$cacheid 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6297$as_echo "$supported" >&6; } 6298 if test "$supported" = "yes" ; then 6299 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6300 found="yes" 6301 fi 6302 fi 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318xorg_testset_save_CFLAGS="$CFLAGS" 6319 6320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6328/* end confdefs.h. */ 6329int i; 6330_ACEOF 6331if ac_fn_c_try_compile "$LINENO"; then : 6332 xorg_cv_cc_flag_unknown_warning_option=yes 6333else 6334 xorg_cv_cc_flag_unknown_warning_option=no 6335fi 6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6337fi 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6341 CFLAGS="$xorg_testset_save_CFLAGS" 6342fi 6343 6344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6347 fi 6348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355/* end confdefs.h. */ 6356int i; 6357_ACEOF 6358if ac_fn_c_try_compile "$LINENO"; then : 6359 xorg_cv_cc_flag_unused_command_line_argument=yes 6360else 6361 xorg_cv_cc_flag_unused_command_line_argument=no 6362fi 6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6364fi 6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6368 CFLAGS="$xorg_testset_save_CFLAGS" 6369fi 6370 6371found="no" 6372 6373 if test $found = "no" ; then 6374 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6376 fi 6377 6378 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6380 fi 6381 6382 CFLAGS="$CFLAGS -Wcast-qual" 6383 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 6385$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 6386 cacheid=xorg_cv_cc_flag__Wcast_qual 6387 if eval \${$cacheid+:} false; then : 6388 $as_echo_n "(cached) " >&6 6389else 6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6391/* end confdefs.h. */ 6392int i; 6393int 6394main () 6395{ 6396 6397 ; 6398 return 0; 6399} 6400_ACEOF 6401if ac_fn_c_try_link "$LINENO"; then : 6402 eval $cacheid=yes 6403else 6404 eval $cacheid=no 6405fi 6406rm -f core conftest.err conftest.$ac_objext \ 6407 conftest$ac_exeext conftest.$ac_ext 6408fi 6409 6410 6411 CFLAGS="$xorg_testset_save_CFLAGS" 6412 6413 eval supported=\$$cacheid 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6415$as_echo "$supported" >&6; } 6416 if test "$supported" = "yes" ; then 6417 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6418 found="yes" 6419 fi 6420 fi 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436xorg_testset_save_CFLAGS="$CFLAGS" 6437 6438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446/* end confdefs.h. */ 6447int i; 6448_ACEOF 6449if ac_fn_c_try_compile "$LINENO"; then : 6450 xorg_cv_cc_flag_unknown_warning_option=yes 6451else 6452 xorg_cv_cc_flag_unknown_warning_option=no 6453fi 6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6455fi 6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6459 CFLAGS="$xorg_testset_save_CFLAGS" 6460fi 6461 6462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6465 fi 6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474int i; 6475_ACEOF 6476if ac_fn_c_try_compile "$LINENO"; then : 6477 xorg_cv_cc_flag_unused_command_line_argument=yes 6478else 6479 xorg_cv_cc_flag_unused_command_line_argument=no 6480fi 6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6482fi 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6486 CFLAGS="$xorg_testset_save_CFLAGS" 6487fi 6488 6489found="no" 6490 6491 if test $found = "no" ; then 6492 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6494 fi 6495 6496 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6498 fi 6499 6500 CFLAGS="$CFLAGS -Wmissing-noreturn" 6501 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 6503$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 6504 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6505 if eval \${$cacheid+:} false; then : 6506 $as_echo_n "(cached) " >&6 6507else 6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509/* end confdefs.h. */ 6510int i; 6511int 6512main () 6513{ 6514 6515 ; 6516 return 0; 6517} 6518_ACEOF 6519if ac_fn_c_try_link "$LINENO"; then : 6520 eval $cacheid=yes 6521else 6522 eval $cacheid=no 6523fi 6524rm -f core conftest.err conftest.$ac_objext \ 6525 conftest$ac_exeext conftest.$ac_ext 6526fi 6527 6528 6529 CFLAGS="$xorg_testset_save_CFLAGS" 6530 6531 eval supported=\$$cacheid 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6533$as_echo "$supported" >&6; } 6534 if test "$supported" = "yes" ; then 6535 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6536 found="yes" 6537 fi 6538 fi 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554xorg_testset_save_CFLAGS="$CFLAGS" 6555 6556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6561 $as_echo_n "(cached) " >&6 6562else 6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6564/* end confdefs.h. */ 6565int i; 6566_ACEOF 6567if ac_fn_c_try_compile "$LINENO"; then : 6568 xorg_cv_cc_flag_unknown_warning_option=yes 6569else 6570 xorg_cv_cc_flag_unknown_warning_option=no 6571fi 6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6573fi 6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6577 CFLAGS="$xorg_testset_save_CFLAGS" 6578fi 6579 6580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6583 fi 6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6588 $as_echo_n "(cached) " >&6 6589else 6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6591/* end confdefs.h. */ 6592int i; 6593_ACEOF 6594if ac_fn_c_try_compile "$LINENO"; then : 6595 xorg_cv_cc_flag_unused_command_line_argument=yes 6596else 6597 xorg_cv_cc_flag_unused_command_line_argument=no 6598fi 6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6600fi 6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6604 CFLAGS="$xorg_testset_save_CFLAGS" 6605fi 6606 6607found="no" 6608 6609 if test $found = "no" ; then 6610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6612 fi 6613 6614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6616 fi 6617 6618 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6619 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 6621$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 6622 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6623 if eval \${$cacheid+:} false; then : 6624 $as_echo_n "(cached) " >&6 6625else 6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6627/* end confdefs.h. */ 6628int i; 6629int 6630main () 6631{ 6632 6633 ; 6634 return 0; 6635} 6636_ACEOF 6637if ac_fn_c_try_link "$LINENO"; then : 6638 eval $cacheid=yes 6639else 6640 eval $cacheid=no 6641fi 6642rm -f core conftest.err conftest.$ac_objext \ 6643 conftest$ac_exeext conftest.$ac_ext 6644fi 6645 6646 6647 CFLAGS="$xorg_testset_save_CFLAGS" 6648 6649 eval supported=\$$cacheid 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6651$as_echo "$supported" >&6; } 6652 if test "$supported" = "yes" ; then 6653 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6654 found="yes" 6655 fi 6656 fi 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672xorg_testset_save_CFLAGS="$CFLAGS" 6673 6674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6679 $as_echo_n "(cached) " >&6 6680else 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683int i; 6684_ACEOF 6685if ac_fn_c_try_compile "$LINENO"; then : 6686 xorg_cv_cc_flag_unknown_warning_option=yes 6687else 6688 xorg_cv_cc_flag_unknown_warning_option=no 6689fi 6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6691fi 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6695 CFLAGS="$xorg_testset_save_CFLAGS" 6696fi 6697 6698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6701 fi 6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6706 $as_echo_n "(cached) " >&6 6707else 6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6709/* end confdefs.h. */ 6710int i; 6711_ACEOF 6712if ac_fn_c_try_compile "$LINENO"; then : 6713 xorg_cv_cc_flag_unused_command_line_argument=yes 6714else 6715 xorg_cv_cc_flag_unused_command_line_argument=no 6716fi 6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6718fi 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6722 CFLAGS="$xorg_testset_save_CFLAGS" 6723fi 6724 6725found="no" 6726 6727 if test $found = "no" ; then 6728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6730 fi 6731 6732 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6734 fi 6735 6736 CFLAGS="$CFLAGS -Wredundant-decls" 6737 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 6739$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 6740 cacheid=xorg_cv_cc_flag__Wredundant_decls 6741 if eval \${$cacheid+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745/* end confdefs.h. */ 6746int i; 6747int 6748main () 6749{ 6750 6751 ; 6752 return 0; 6753} 6754_ACEOF 6755if ac_fn_c_try_link "$LINENO"; then : 6756 eval $cacheid=yes 6757else 6758 eval $cacheid=no 6759fi 6760rm -f core conftest.err conftest.$ac_objext \ 6761 conftest$ac_exeext conftest.$ac_ext 6762fi 6763 6764 6765 CFLAGS="$xorg_testset_save_CFLAGS" 6766 6767 eval supported=\$$cacheid 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6769$as_echo "$supported" >&6; } 6770 if test "$supported" = "yes" ; then 6771 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6772 found="yes" 6773 fi 6774 fi 6775 6776 6777 6778# These are currently disabled because they are noisy. They will be enabled 6779# in the future once the codebase is sufficiently modernized to silence 6780# them. For now, I don't want them to drown out the other warnings. 6781# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6782# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6783# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6784 6785# Turn some warnings into errors, so we don't accidently get successful builds 6786# when there are problems that should be fixed. 6787 6788if test "x$SELECTIVE_WERROR" = "xyes" ; then 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802xorg_testset_save_CFLAGS="$CFLAGS" 6803 6804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6809 $as_echo_n "(cached) " >&6 6810else 6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6812/* end confdefs.h. */ 6813int i; 6814_ACEOF 6815if ac_fn_c_try_compile "$LINENO"; then : 6816 xorg_cv_cc_flag_unknown_warning_option=yes 6817else 6818 xorg_cv_cc_flag_unknown_warning_option=no 6819fi 6820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6821fi 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6825 CFLAGS="$xorg_testset_save_CFLAGS" 6826fi 6827 6828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6831 fi 6832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6839/* end confdefs.h. */ 6840int i; 6841_ACEOF 6842if ac_fn_c_try_compile "$LINENO"; then : 6843 xorg_cv_cc_flag_unused_command_line_argument=yes 6844else 6845 xorg_cv_cc_flag_unused_command_line_argument=no 6846fi 6847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6848fi 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6852 CFLAGS="$xorg_testset_save_CFLAGS" 6853fi 6854 6855found="no" 6856 6857 if test $found = "no" ; then 6858 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6860 fi 6861 6862 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6864 fi 6865 6866 CFLAGS="$CFLAGS -Werror=implicit" 6867 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 6869$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 6870 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6871 if eval \${$cacheid+:} false; then : 6872 $as_echo_n "(cached) " >&6 6873else 6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875/* end confdefs.h. */ 6876int i; 6877int 6878main () 6879{ 6880 6881 ; 6882 return 0; 6883} 6884_ACEOF 6885if ac_fn_c_try_link "$LINENO"; then : 6886 eval $cacheid=yes 6887else 6888 eval $cacheid=no 6889fi 6890rm -f core conftest.err conftest.$ac_objext \ 6891 conftest$ac_exeext conftest.$ac_ext 6892fi 6893 6894 6895 CFLAGS="$xorg_testset_save_CFLAGS" 6896 6897 eval supported=\$$cacheid 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6899$as_echo "$supported" >&6; } 6900 if test "$supported" = "yes" ; then 6901 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6902 found="yes" 6903 fi 6904 fi 6905 6906 if test $found = "no" ; then 6907 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6909 fi 6910 6911 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6913 fi 6914 6915 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6916 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6918$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6919 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6920 if eval \${$cacheid+:} false; then : 6921 $as_echo_n "(cached) " >&6 6922else 6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6924/* end confdefs.h. */ 6925int i; 6926int 6927main () 6928{ 6929 6930 ; 6931 return 0; 6932} 6933_ACEOF 6934if ac_fn_c_try_link "$LINENO"; then : 6935 eval $cacheid=yes 6936else 6937 eval $cacheid=no 6938fi 6939rm -f core conftest.err conftest.$ac_objext \ 6940 conftest$ac_exeext conftest.$ac_ext 6941fi 6942 6943 6944 CFLAGS="$xorg_testset_save_CFLAGS" 6945 6946 eval supported=\$$cacheid 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6948$as_echo "$supported" >&6; } 6949 if test "$supported" = "yes" ; then 6950 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6951 found="yes" 6952 fi 6953 fi 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969xorg_testset_save_CFLAGS="$CFLAGS" 6970 6971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6976 $as_echo_n "(cached) " >&6 6977else 6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6979/* end confdefs.h. */ 6980int i; 6981_ACEOF 6982if ac_fn_c_try_compile "$LINENO"; then : 6983 xorg_cv_cc_flag_unknown_warning_option=yes 6984else 6985 xorg_cv_cc_flag_unknown_warning_option=no 6986fi 6987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6988fi 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6992 CFLAGS="$xorg_testset_save_CFLAGS" 6993fi 6994 6995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6998 fi 6999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004else 7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7006/* end confdefs.h. */ 7007int i; 7008_ACEOF 7009if ac_fn_c_try_compile "$LINENO"; then : 7010 xorg_cv_cc_flag_unused_command_line_argument=yes 7011else 7012 xorg_cv_cc_flag_unused_command_line_argument=no 7013fi 7014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7015fi 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7019 CFLAGS="$xorg_testset_save_CFLAGS" 7020fi 7021 7022found="no" 7023 7024 if test $found = "no" ; then 7025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7027 fi 7028 7029 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7031 fi 7032 7033 CFLAGS="$CFLAGS -Werror=nonnull" 7034 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 7036$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 7037 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7038 if eval \${$cacheid+:} false; then : 7039 $as_echo_n "(cached) " >&6 7040else 7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7042/* end confdefs.h. */ 7043int i; 7044int 7045main () 7046{ 7047 7048 ; 7049 return 0; 7050} 7051_ACEOF 7052if ac_fn_c_try_link "$LINENO"; then : 7053 eval $cacheid=yes 7054else 7055 eval $cacheid=no 7056fi 7057rm -f core conftest.err conftest.$ac_objext \ 7058 conftest$ac_exeext conftest.$ac_ext 7059fi 7060 7061 7062 CFLAGS="$xorg_testset_save_CFLAGS" 7063 7064 eval supported=\$$cacheid 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7066$as_echo "$supported" >&6; } 7067 if test "$supported" = "yes" ; then 7068 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7069 found="yes" 7070 fi 7071 fi 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087xorg_testset_save_CFLAGS="$CFLAGS" 7088 7089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7093if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7097/* end confdefs.h. */ 7098int i; 7099_ACEOF 7100if ac_fn_c_try_compile "$LINENO"; then : 7101 xorg_cv_cc_flag_unknown_warning_option=yes 7102else 7103 xorg_cv_cc_flag_unknown_warning_option=no 7104fi 7105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7106fi 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7110 CFLAGS="$xorg_testset_save_CFLAGS" 7111fi 7112 7113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7116 fi 7117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124/* end confdefs.h. */ 7125int i; 7126_ACEOF 7127if ac_fn_c_try_compile "$LINENO"; then : 7128 xorg_cv_cc_flag_unused_command_line_argument=yes 7129else 7130 xorg_cv_cc_flag_unused_command_line_argument=no 7131fi 7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7133fi 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7137 CFLAGS="$xorg_testset_save_CFLAGS" 7138fi 7139 7140found="no" 7141 7142 if test $found = "no" ; then 7143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7145 fi 7146 7147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7149 fi 7150 7151 CFLAGS="$CFLAGS -Werror=init-self" 7152 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 7154$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 7155 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7156 if eval \${$cacheid+:} false; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7160/* end confdefs.h. */ 7161int i; 7162int 7163main () 7164{ 7165 7166 ; 7167 return 0; 7168} 7169_ACEOF 7170if ac_fn_c_try_link "$LINENO"; then : 7171 eval $cacheid=yes 7172else 7173 eval $cacheid=no 7174fi 7175rm -f core conftest.err conftest.$ac_objext \ 7176 conftest$ac_exeext conftest.$ac_ext 7177fi 7178 7179 7180 CFLAGS="$xorg_testset_save_CFLAGS" 7181 7182 eval supported=\$$cacheid 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7184$as_echo "$supported" >&6; } 7185 if test "$supported" = "yes" ; then 7186 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7187 found="yes" 7188 fi 7189 fi 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205xorg_testset_save_CFLAGS="$CFLAGS" 7206 7207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7212 $as_echo_n "(cached) " >&6 7213else 7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7215/* end confdefs.h. */ 7216int i; 7217_ACEOF 7218if ac_fn_c_try_compile "$LINENO"; then : 7219 xorg_cv_cc_flag_unknown_warning_option=yes 7220else 7221 xorg_cv_cc_flag_unknown_warning_option=no 7222fi 7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7224fi 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7228 CFLAGS="$xorg_testset_save_CFLAGS" 7229fi 7230 7231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7234 fi 7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7239 $as_echo_n "(cached) " >&6 7240else 7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242/* end confdefs.h. */ 7243int i; 7244_ACEOF 7245if ac_fn_c_try_compile "$LINENO"; then : 7246 xorg_cv_cc_flag_unused_command_line_argument=yes 7247else 7248 xorg_cv_cc_flag_unused_command_line_argument=no 7249fi 7250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7251fi 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7255 CFLAGS="$xorg_testset_save_CFLAGS" 7256fi 7257 7258found="no" 7259 7260 if test $found = "no" ; then 7261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7263 fi 7264 7265 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7267 fi 7268 7269 CFLAGS="$CFLAGS -Werror=main" 7270 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 7272$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 7273 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7274 if eval \${$cacheid+:} false; then : 7275 $as_echo_n "(cached) " >&6 7276else 7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7278/* end confdefs.h. */ 7279int i; 7280int 7281main () 7282{ 7283 7284 ; 7285 return 0; 7286} 7287_ACEOF 7288if ac_fn_c_try_link "$LINENO"; then : 7289 eval $cacheid=yes 7290else 7291 eval $cacheid=no 7292fi 7293rm -f core conftest.err conftest.$ac_objext \ 7294 conftest$ac_exeext conftest.$ac_ext 7295fi 7296 7297 7298 CFLAGS="$xorg_testset_save_CFLAGS" 7299 7300 eval supported=\$$cacheid 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7302$as_echo "$supported" >&6; } 7303 if test "$supported" = "yes" ; then 7304 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7305 found="yes" 7306 fi 7307 fi 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323xorg_testset_save_CFLAGS="$CFLAGS" 7324 7325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334int i; 7335_ACEOF 7336if ac_fn_c_try_compile "$LINENO"; then : 7337 xorg_cv_cc_flag_unknown_warning_option=yes 7338else 7339 xorg_cv_cc_flag_unknown_warning_option=no 7340fi 7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7342fi 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7346 CFLAGS="$xorg_testset_save_CFLAGS" 7347fi 7348 7349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7352 fi 7353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360/* end confdefs.h. */ 7361int i; 7362_ACEOF 7363if ac_fn_c_try_compile "$LINENO"; then : 7364 xorg_cv_cc_flag_unused_command_line_argument=yes 7365else 7366 xorg_cv_cc_flag_unused_command_line_argument=no 7367fi 7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7369fi 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7373 CFLAGS="$xorg_testset_save_CFLAGS" 7374fi 7375 7376found="no" 7377 7378 if test $found = "no" ; then 7379 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7381 fi 7382 7383 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7385 fi 7386 7387 CFLAGS="$CFLAGS -Werror=missing-braces" 7388 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 7390$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 7391 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7392 if eval \${$cacheid+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7396/* end confdefs.h. */ 7397int i; 7398int 7399main () 7400{ 7401 7402 ; 7403 return 0; 7404} 7405_ACEOF 7406if ac_fn_c_try_link "$LINENO"; then : 7407 eval $cacheid=yes 7408else 7409 eval $cacheid=no 7410fi 7411rm -f core conftest.err conftest.$ac_objext \ 7412 conftest$ac_exeext conftest.$ac_ext 7413fi 7414 7415 7416 CFLAGS="$xorg_testset_save_CFLAGS" 7417 7418 eval supported=\$$cacheid 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7420$as_echo "$supported" >&6; } 7421 if test "$supported" = "yes" ; then 7422 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7423 found="yes" 7424 fi 7425 fi 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441xorg_testset_save_CFLAGS="$CFLAGS" 7442 7443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452int i; 7453_ACEOF 7454if ac_fn_c_try_compile "$LINENO"; then : 7455 xorg_cv_cc_flag_unknown_warning_option=yes 7456else 7457 xorg_cv_cc_flag_unknown_warning_option=no 7458fi 7459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7460fi 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465fi 7466 7467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 fi 7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7475 $as_echo_n "(cached) " >&6 7476else 7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7478/* end confdefs.h. */ 7479int i; 7480_ACEOF 7481if ac_fn_c_try_compile "$LINENO"; then : 7482 xorg_cv_cc_flag_unused_command_line_argument=yes 7483else 7484 xorg_cv_cc_flag_unused_command_line_argument=no 7485fi 7486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7487fi 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7491 CFLAGS="$xorg_testset_save_CFLAGS" 7492fi 7493 7494found="no" 7495 7496 if test $found = "no" ; then 7497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7499 fi 7500 7501 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7503 fi 7504 7505 CFLAGS="$CFLAGS -Werror=sequence-point" 7506 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 7508$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 7509 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7510 if eval \${$cacheid+:} false; then : 7511 $as_echo_n "(cached) " >&6 7512else 7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7514/* end confdefs.h. */ 7515int i; 7516int 7517main () 7518{ 7519 7520 ; 7521 return 0; 7522} 7523_ACEOF 7524if ac_fn_c_try_link "$LINENO"; then : 7525 eval $cacheid=yes 7526else 7527 eval $cacheid=no 7528fi 7529rm -f core conftest.err conftest.$ac_objext \ 7530 conftest$ac_exeext conftest.$ac_ext 7531fi 7532 7533 7534 CFLAGS="$xorg_testset_save_CFLAGS" 7535 7536 eval supported=\$$cacheid 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7538$as_echo "$supported" >&6; } 7539 if test "$supported" = "yes" ; then 7540 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7541 found="yes" 7542 fi 7543 fi 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559xorg_testset_save_CFLAGS="$CFLAGS" 7560 7561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570int i; 7571_ACEOF 7572if ac_fn_c_try_compile "$LINENO"; then : 7573 xorg_cv_cc_flag_unknown_warning_option=yes 7574else 7575 xorg_cv_cc_flag_unknown_warning_option=no 7576fi 7577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7578fi 7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7582 CFLAGS="$xorg_testset_save_CFLAGS" 7583fi 7584 7585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7588 fi 7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7596/* end confdefs.h. */ 7597int i; 7598_ACEOF 7599if ac_fn_c_try_compile "$LINENO"; then : 7600 xorg_cv_cc_flag_unused_command_line_argument=yes 7601else 7602 xorg_cv_cc_flag_unused_command_line_argument=no 7603fi 7604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7605fi 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7609 CFLAGS="$xorg_testset_save_CFLAGS" 7610fi 7611 7612found="no" 7613 7614 if test $found = "no" ; then 7615 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7617 fi 7618 7619 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7621 fi 7622 7623 CFLAGS="$CFLAGS -Werror=return-type" 7624 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 7626$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 7627 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7628 if eval \${$cacheid+:} false; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633int i; 7634int 7635main () 7636{ 7637 7638 ; 7639 return 0; 7640} 7641_ACEOF 7642if ac_fn_c_try_link "$LINENO"; then : 7643 eval $cacheid=yes 7644else 7645 eval $cacheid=no 7646fi 7647rm -f core conftest.err conftest.$ac_objext \ 7648 conftest$ac_exeext conftest.$ac_ext 7649fi 7650 7651 7652 CFLAGS="$xorg_testset_save_CFLAGS" 7653 7654 eval supported=\$$cacheid 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7656$as_echo "$supported" >&6; } 7657 if test "$supported" = "yes" ; then 7658 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7659 found="yes" 7660 fi 7661 fi 7662 7663 if test $found = "no" ; then 7664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7666 fi 7667 7668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7670 fi 7671 7672 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7673 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7675$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7676 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7677 if eval \${$cacheid+:} false; then : 7678 $as_echo_n "(cached) " >&6 7679else 7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681/* end confdefs.h. */ 7682int i; 7683int 7684main () 7685{ 7686 7687 ; 7688 return 0; 7689} 7690_ACEOF 7691if ac_fn_c_try_link "$LINENO"; then : 7692 eval $cacheid=yes 7693else 7694 eval $cacheid=no 7695fi 7696rm -f core conftest.err conftest.$ac_objext \ 7697 conftest$ac_exeext conftest.$ac_ext 7698fi 7699 7700 7701 CFLAGS="$xorg_testset_save_CFLAGS" 7702 7703 eval supported=\$$cacheid 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7705$as_echo "$supported" >&6; } 7706 if test "$supported" = "yes" ; then 7707 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7708 found="yes" 7709 fi 7710 fi 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726xorg_testset_save_CFLAGS="$CFLAGS" 7727 7728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734else 7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736/* end confdefs.h. */ 7737int i; 7738_ACEOF 7739if ac_fn_c_try_compile "$LINENO"; then : 7740 xorg_cv_cc_flag_unknown_warning_option=yes 7741else 7742 xorg_cv_cc_flag_unknown_warning_option=no 7743fi 7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7745fi 7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7749 CFLAGS="$xorg_testset_save_CFLAGS" 7750fi 7751 7752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7755 fi 7756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763/* end confdefs.h. */ 7764int i; 7765_ACEOF 7766if ac_fn_c_try_compile "$LINENO"; then : 7767 xorg_cv_cc_flag_unused_command_line_argument=yes 7768else 7769 xorg_cv_cc_flag_unused_command_line_argument=no 7770fi 7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7772fi 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7776 CFLAGS="$xorg_testset_save_CFLAGS" 7777fi 7778 7779found="no" 7780 7781 if test $found = "no" ; then 7782 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7784 fi 7785 7786 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7788 fi 7789 7790 CFLAGS="$CFLAGS -Werror=trigraphs" 7791 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 7793$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 7794 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7795 if eval \${$cacheid+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799/* end confdefs.h. */ 7800int i; 7801int 7802main () 7803{ 7804 7805 ; 7806 return 0; 7807} 7808_ACEOF 7809if ac_fn_c_try_link "$LINENO"; then : 7810 eval $cacheid=yes 7811else 7812 eval $cacheid=no 7813fi 7814rm -f core conftest.err conftest.$ac_objext \ 7815 conftest$ac_exeext conftest.$ac_ext 7816fi 7817 7818 7819 CFLAGS="$xorg_testset_save_CFLAGS" 7820 7821 eval supported=\$$cacheid 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7823$as_echo "$supported" >&6; } 7824 if test "$supported" = "yes" ; then 7825 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7826 found="yes" 7827 fi 7828 fi 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844xorg_testset_save_CFLAGS="$CFLAGS" 7845 7846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7851 $as_echo_n "(cached) " >&6 7852else 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855int i; 7856_ACEOF 7857if ac_fn_c_try_compile "$LINENO"; then : 7858 xorg_cv_cc_flag_unknown_warning_option=yes 7859else 7860 xorg_cv_cc_flag_unknown_warning_option=no 7861fi 7862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7863fi 7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7867 CFLAGS="$xorg_testset_save_CFLAGS" 7868fi 7869 7870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7873 fi 7874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882int i; 7883_ACEOF 7884if ac_fn_c_try_compile "$LINENO"; then : 7885 xorg_cv_cc_flag_unused_command_line_argument=yes 7886else 7887 xorg_cv_cc_flag_unused_command_line_argument=no 7888fi 7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7890fi 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7894 CFLAGS="$xorg_testset_save_CFLAGS" 7895fi 7896 7897found="no" 7898 7899 if test $found = "no" ; then 7900 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7902 fi 7903 7904 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7906 fi 7907 7908 CFLAGS="$CFLAGS -Werror=array-bounds" 7909 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 7911$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 7912 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7913 if eval \${$cacheid+:} false; then : 7914 $as_echo_n "(cached) " >&6 7915else 7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7917/* end confdefs.h. */ 7918int i; 7919int 7920main () 7921{ 7922 7923 ; 7924 return 0; 7925} 7926_ACEOF 7927if ac_fn_c_try_link "$LINENO"; then : 7928 eval $cacheid=yes 7929else 7930 eval $cacheid=no 7931fi 7932rm -f core conftest.err conftest.$ac_objext \ 7933 conftest$ac_exeext conftest.$ac_ext 7934fi 7935 7936 7937 CFLAGS="$xorg_testset_save_CFLAGS" 7938 7939 eval supported=\$$cacheid 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7941$as_echo "$supported" >&6; } 7942 if test "$supported" = "yes" ; then 7943 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7944 found="yes" 7945 fi 7946 fi 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962xorg_testset_save_CFLAGS="$CFLAGS" 7963 7964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972/* end confdefs.h. */ 7973int i; 7974_ACEOF 7975if ac_fn_c_try_compile "$LINENO"; then : 7976 xorg_cv_cc_flag_unknown_warning_option=yes 7977else 7978 xorg_cv_cc_flag_unknown_warning_option=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7981fi 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7985 CFLAGS="$xorg_testset_save_CFLAGS" 7986fi 7987 7988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7991 fi 7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999/* end confdefs.h. */ 8000int i; 8001_ACEOF 8002if ac_fn_c_try_compile "$LINENO"; then : 8003 xorg_cv_cc_flag_unused_command_line_argument=yes 8004else 8005 xorg_cv_cc_flag_unused_command_line_argument=no 8006fi 8007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8008fi 8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8012 CFLAGS="$xorg_testset_save_CFLAGS" 8013fi 8014 8015found="no" 8016 8017 if test $found = "no" ; then 8018 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8020 fi 8021 8022 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8024 fi 8025 8026 CFLAGS="$CFLAGS -Werror=write-strings" 8027 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 8029$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 8030 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8031 if eval \${$cacheid+:} false; then : 8032 $as_echo_n "(cached) " >&6 8033else 8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8035/* end confdefs.h. */ 8036int i; 8037int 8038main () 8039{ 8040 8041 ; 8042 return 0; 8043} 8044_ACEOF 8045if ac_fn_c_try_link "$LINENO"; then : 8046 eval $cacheid=yes 8047else 8048 eval $cacheid=no 8049fi 8050rm -f core conftest.err conftest.$ac_objext \ 8051 conftest$ac_exeext conftest.$ac_ext 8052fi 8053 8054 8055 CFLAGS="$xorg_testset_save_CFLAGS" 8056 8057 eval supported=\$$cacheid 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8059$as_echo "$supported" >&6; } 8060 if test "$supported" = "yes" ; then 8061 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8062 found="yes" 8063 fi 8064 fi 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080xorg_testset_save_CFLAGS="$CFLAGS" 8081 8082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8087 $as_echo_n "(cached) " >&6 8088else 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091int i; 8092_ACEOF 8093if ac_fn_c_try_compile "$LINENO"; then : 8094 xorg_cv_cc_flag_unknown_warning_option=yes 8095else 8096 xorg_cv_cc_flag_unknown_warning_option=no 8097fi 8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8099fi 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8103 CFLAGS="$xorg_testset_save_CFLAGS" 8104fi 8105 8106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8109 fi 8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8117/* end confdefs.h. */ 8118int i; 8119_ACEOF 8120if ac_fn_c_try_compile "$LINENO"; then : 8121 xorg_cv_cc_flag_unused_command_line_argument=yes 8122else 8123 xorg_cv_cc_flag_unused_command_line_argument=no 8124fi 8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8126fi 8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8130 CFLAGS="$xorg_testset_save_CFLAGS" 8131fi 8132 8133found="no" 8134 8135 if test $found = "no" ; then 8136 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8138 fi 8139 8140 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8142 fi 8143 8144 CFLAGS="$CFLAGS -Werror=address" 8145 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 8147$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 8148 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8149 if eval \${$cacheid+:} false; then : 8150 $as_echo_n "(cached) " >&6 8151else 8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8153/* end confdefs.h. */ 8154int i; 8155int 8156main () 8157{ 8158 8159 ; 8160 return 0; 8161} 8162_ACEOF 8163if ac_fn_c_try_link "$LINENO"; then : 8164 eval $cacheid=yes 8165else 8166 eval $cacheid=no 8167fi 8168rm -f core conftest.err conftest.$ac_objext \ 8169 conftest$ac_exeext conftest.$ac_ext 8170fi 8171 8172 8173 CFLAGS="$xorg_testset_save_CFLAGS" 8174 8175 eval supported=\$$cacheid 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8177$as_echo "$supported" >&6; } 8178 if test "$supported" = "yes" ; then 8179 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8180 found="yes" 8181 fi 8182 fi 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198xorg_testset_save_CFLAGS="$CFLAGS" 8199 8200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8205 $as_echo_n "(cached) " >&6 8206else 8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8208/* end confdefs.h. */ 8209int i; 8210_ACEOF 8211if ac_fn_c_try_compile "$LINENO"; then : 8212 xorg_cv_cc_flag_unknown_warning_option=yes 8213else 8214 xorg_cv_cc_flag_unknown_warning_option=no 8215fi 8216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8217fi 8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8221 CFLAGS="$xorg_testset_save_CFLAGS" 8222fi 8223 8224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8227 fi 8228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233else 8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8235/* end confdefs.h. */ 8236int i; 8237_ACEOF 8238if ac_fn_c_try_compile "$LINENO"; then : 8239 xorg_cv_cc_flag_unused_command_line_argument=yes 8240else 8241 xorg_cv_cc_flag_unused_command_line_argument=no 8242fi 8243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8244fi 8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8248 CFLAGS="$xorg_testset_save_CFLAGS" 8249fi 8250 8251found="no" 8252 8253 if test $found = "no" ; then 8254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8256 fi 8257 8258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8260 fi 8261 8262 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8263 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 8265$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 8266 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8267 if eval \${$cacheid+:} false; then : 8268 $as_echo_n "(cached) " >&6 8269else 8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8271/* end confdefs.h. */ 8272int i; 8273int 8274main () 8275{ 8276 8277 ; 8278 return 0; 8279} 8280_ACEOF 8281if ac_fn_c_try_link "$LINENO"; then : 8282 eval $cacheid=yes 8283else 8284 eval $cacheid=no 8285fi 8286rm -f core conftest.err conftest.$ac_objext \ 8287 conftest$ac_exeext conftest.$ac_ext 8288fi 8289 8290 8291 CFLAGS="$xorg_testset_save_CFLAGS" 8292 8293 eval supported=\$$cacheid 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8295$as_echo "$supported" >&6; } 8296 if test "$supported" = "yes" ; then 8297 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8298 found="yes" 8299 fi 8300 fi 8301 8302 if test $found = "no" ; then 8303 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8305 fi 8306 8307 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8309 fi 8310 8311 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8312 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8314$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8315 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8316 if eval \${$cacheid+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8320/* end confdefs.h. */ 8321int i; 8322int 8323main () 8324{ 8325 8326 ; 8327 return 0; 8328} 8329_ACEOF 8330if ac_fn_c_try_link "$LINENO"; then : 8331 eval $cacheid=yes 8332else 8333 eval $cacheid=no 8334fi 8335rm -f core conftest.err conftest.$ac_objext \ 8336 conftest$ac_exeext conftest.$ac_ext 8337fi 8338 8339 8340 CFLAGS="$xorg_testset_save_CFLAGS" 8341 8342 eval supported=\$$cacheid 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8344$as_echo "$supported" >&6; } 8345 if test "$supported" = "yes" ; then 8346 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8347 found="yes" 8348 fi 8349 fi 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365xorg_testset_save_CFLAGS="$CFLAGS" 8366 8367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8372 $as_echo_n "(cached) " >&6 8373else 8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8375/* end confdefs.h. */ 8376int i; 8377_ACEOF 8378if ac_fn_c_try_compile "$LINENO"; then : 8379 xorg_cv_cc_flag_unknown_warning_option=yes 8380else 8381 xorg_cv_cc_flag_unknown_warning_option=no 8382fi 8383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8384fi 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8388 CFLAGS="$xorg_testset_save_CFLAGS" 8389fi 8390 8391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8394 fi 8395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400else 8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8402/* end confdefs.h. */ 8403int i; 8404_ACEOF 8405if ac_fn_c_try_compile "$LINENO"; then : 8406 xorg_cv_cc_flag_unused_command_line_argument=yes 8407else 8408 xorg_cv_cc_flag_unused_command_line_argument=no 8409fi 8410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8411fi 8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8415 CFLAGS="$xorg_testset_save_CFLAGS" 8416fi 8417 8418found="no" 8419 8420 if test $found = "no" ; then 8421 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8423 fi 8424 8425 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8427 fi 8428 8429 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8430 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 8432$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 8433 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8434 if eval \${$cacheid+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439int i; 8440int 8441main () 8442{ 8443 8444 ; 8445 return 0; 8446} 8447_ACEOF 8448if ac_fn_c_try_link "$LINENO"; then : 8449 eval $cacheid=yes 8450else 8451 eval $cacheid=no 8452fi 8453rm -f core conftest.err conftest.$ac_objext \ 8454 conftest$ac_exeext conftest.$ac_ext 8455fi 8456 8457 8458 CFLAGS="$xorg_testset_save_CFLAGS" 8459 8460 eval supported=\$$cacheid 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8462$as_echo "$supported" >&6; } 8463 if test "$supported" = "yes" ; then 8464 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8465 found="yes" 8466 fi 8467 fi 8468 8469 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8470else 8471{ $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 8472$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;} 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486xorg_testset_save_CFLAGS="$CFLAGS" 8487 8488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8493 $as_echo_n "(cached) " >&6 8494else 8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8496/* end confdefs.h. */ 8497int i; 8498_ACEOF 8499if ac_fn_c_try_compile "$LINENO"; then : 8500 xorg_cv_cc_flag_unknown_warning_option=yes 8501else 8502 xorg_cv_cc_flag_unknown_warning_option=no 8503fi 8504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8505fi 8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8509 CFLAGS="$xorg_testset_save_CFLAGS" 8510fi 8511 8512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8515 fi 8516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8520 $as_echo_n "(cached) " >&6 8521else 8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8523/* end confdefs.h. */ 8524int i; 8525_ACEOF 8526if ac_fn_c_try_compile "$LINENO"; then : 8527 xorg_cv_cc_flag_unused_command_line_argument=yes 8528else 8529 xorg_cv_cc_flag_unused_command_line_argument=no 8530fi 8531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8532fi 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8536 CFLAGS="$xorg_testset_save_CFLAGS" 8537fi 8538 8539found="no" 8540 8541 if test $found = "no" ; then 8542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8544 fi 8545 8546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8548 fi 8549 8550 CFLAGS="$CFLAGS -Wimplicit" 8551 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 8553$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 8554 cacheid=xorg_cv_cc_flag__Wimplicit 8555 if eval \${$cacheid+:} false; then : 8556 $as_echo_n "(cached) " >&6 8557else 8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8559/* end confdefs.h. */ 8560int i; 8561int 8562main () 8563{ 8564 8565 ; 8566 return 0; 8567} 8568_ACEOF 8569if ac_fn_c_try_link "$LINENO"; then : 8570 eval $cacheid=yes 8571else 8572 eval $cacheid=no 8573fi 8574rm -f core conftest.err conftest.$ac_objext \ 8575 conftest$ac_exeext conftest.$ac_ext 8576fi 8577 8578 8579 CFLAGS="$xorg_testset_save_CFLAGS" 8580 8581 eval supported=\$$cacheid 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8583$as_echo "$supported" >&6; } 8584 if test "$supported" = "yes" ; then 8585 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8586 found="yes" 8587 fi 8588 fi 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604xorg_testset_save_CFLAGS="$CFLAGS" 8605 8606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614/* end confdefs.h. */ 8615int i; 8616_ACEOF 8617if ac_fn_c_try_compile "$LINENO"; then : 8618 xorg_cv_cc_flag_unknown_warning_option=yes 8619else 8620 xorg_cv_cc_flag_unknown_warning_option=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8623fi 8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628fi 8629 8630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8633 fi 8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8638 $as_echo_n "(cached) " >&6 8639else 8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641/* end confdefs.h. */ 8642int i; 8643_ACEOF 8644if ac_fn_c_try_compile "$LINENO"; then : 8645 xorg_cv_cc_flag_unused_command_line_argument=yes 8646else 8647 xorg_cv_cc_flag_unused_command_line_argument=no 8648fi 8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8650fi 8651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8654 CFLAGS="$xorg_testset_save_CFLAGS" 8655fi 8656 8657found="no" 8658 8659 if test $found = "no" ; then 8660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8662 fi 8663 8664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8666 fi 8667 8668 CFLAGS="$CFLAGS -Wnonnull" 8669 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 8671$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 8672 cacheid=xorg_cv_cc_flag__Wnonnull 8673 if eval \${$cacheid+:} false; then : 8674 $as_echo_n "(cached) " >&6 8675else 8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677/* end confdefs.h. */ 8678int i; 8679int 8680main () 8681{ 8682 8683 ; 8684 return 0; 8685} 8686_ACEOF 8687if ac_fn_c_try_link "$LINENO"; then : 8688 eval $cacheid=yes 8689else 8690 eval $cacheid=no 8691fi 8692rm -f core conftest.err conftest.$ac_objext \ 8693 conftest$ac_exeext conftest.$ac_ext 8694fi 8695 8696 8697 CFLAGS="$xorg_testset_save_CFLAGS" 8698 8699 eval supported=\$$cacheid 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8701$as_echo "$supported" >&6; } 8702 if test "$supported" = "yes" ; then 8703 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8704 found="yes" 8705 fi 8706 fi 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722xorg_testset_save_CFLAGS="$CFLAGS" 8723 8724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8729 $as_echo_n "(cached) " >&6 8730else 8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8732/* end confdefs.h. */ 8733int i; 8734_ACEOF 8735if ac_fn_c_try_compile "$LINENO"; then : 8736 xorg_cv_cc_flag_unknown_warning_option=yes 8737else 8738 xorg_cv_cc_flag_unknown_warning_option=no 8739fi 8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8741fi 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8745 CFLAGS="$xorg_testset_save_CFLAGS" 8746fi 8747 8748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8751 fi 8752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8756 $as_echo_n "(cached) " >&6 8757else 8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8759/* end confdefs.h. */ 8760int i; 8761_ACEOF 8762if ac_fn_c_try_compile "$LINENO"; then : 8763 xorg_cv_cc_flag_unused_command_line_argument=yes 8764else 8765 xorg_cv_cc_flag_unused_command_line_argument=no 8766fi 8767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8768fi 8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8772 CFLAGS="$xorg_testset_save_CFLAGS" 8773fi 8774 8775found="no" 8776 8777 if test $found = "no" ; then 8778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8780 fi 8781 8782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8784 fi 8785 8786 CFLAGS="$CFLAGS -Winit-self" 8787 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 8789$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 8790 cacheid=xorg_cv_cc_flag__Winit_self 8791 if eval \${$cacheid+:} false; then : 8792 $as_echo_n "(cached) " >&6 8793else 8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8795/* end confdefs.h. */ 8796int i; 8797int 8798main () 8799{ 8800 8801 ; 8802 return 0; 8803} 8804_ACEOF 8805if ac_fn_c_try_link "$LINENO"; then : 8806 eval $cacheid=yes 8807else 8808 eval $cacheid=no 8809fi 8810rm -f core conftest.err conftest.$ac_objext \ 8811 conftest$ac_exeext conftest.$ac_ext 8812fi 8813 8814 8815 CFLAGS="$xorg_testset_save_CFLAGS" 8816 8817 eval supported=\$$cacheid 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8819$as_echo "$supported" >&6; } 8820 if test "$supported" = "yes" ; then 8821 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8822 found="yes" 8823 fi 8824 fi 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840xorg_testset_save_CFLAGS="$CFLAGS" 8841 8842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8847 $as_echo_n "(cached) " >&6 8848else 8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8850/* end confdefs.h. */ 8851int i; 8852_ACEOF 8853if ac_fn_c_try_compile "$LINENO"; then : 8854 xorg_cv_cc_flag_unknown_warning_option=yes 8855else 8856 xorg_cv_cc_flag_unknown_warning_option=no 8857fi 8858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8859fi 8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8863 CFLAGS="$xorg_testset_save_CFLAGS" 8864fi 8865 8866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8869 fi 8870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875else 8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8877/* end confdefs.h. */ 8878int i; 8879_ACEOF 8880if ac_fn_c_try_compile "$LINENO"; then : 8881 xorg_cv_cc_flag_unused_command_line_argument=yes 8882else 8883 xorg_cv_cc_flag_unused_command_line_argument=no 8884fi 8885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8886fi 8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8890 CFLAGS="$xorg_testset_save_CFLAGS" 8891fi 8892 8893found="no" 8894 8895 if test $found = "no" ; then 8896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8898 fi 8899 8900 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8902 fi 8903 8904 CFLAGS="$CFLAGS -Wmain" 8905 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 8907$as_echo_n "checking if $CC supports-Wmain... " >&6; } 8908 cacheid=xorg_cv_cc_flag__Wmain 8909 if eval \${$cacheid+:} false; then : 8910 $as_echo_n "(cached) " >&6 8911else 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913/* end confdefs.h. */ 8914int i; 8915int 8916main () 8917{ 8918 8919 ; 8920 return 0; 8921} 8922_ACEOF 8923if ac_fn_c_try_link "$LINENO"; then : 8924 eval $cacheid=yes 8925else 8926 eval $cacheid=no 8927fi 8928rm -f core conftest.err conftest.$ac_objext \ 8929 conftest$ac_exeext conftest.$ac_ext 8930fi 8931 8932 8933 CFLAGS="$xorg_testset_save_CFLAGS" 8934 8935 eval supported=\$$cacheid 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8937$as_echo "$supported" >&6; } 8938 if test "$supported" = "yes" ; then 8939 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8940 found="yes" 8941 fi 8942 fi 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958xorg_testset_save_CFLAGS="$CFLAGS" 8959 8960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8965 $as_echo_n "(cached) " >&6 8966else 8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8968/* end confdefs.h. */ 8969int i; 8970_ACEOF 8971if ac_fn_c_try_compile "$LINENO"; then : 8972 xorg_cv_cc_flag_unknown_warning_option=yes 8973else 8974 xorg_cv_cc_flag_unknown_warning_option=no 8975fi 8976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8977fi 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8981 CFLAGS="$xorg_testset_save_CFLAGS" 8982fi 8983 8984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8987 fi 8988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8992 $as_echo_n "(cached) " >&6 8993else 8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8995/* end confdefs.h. */ 8996int i; 8997_ACEOF 8998if ac_fn_c_try_compile "$LINENO"; then : 8999 xorg_cv_cc_flag_unused_command_line_argument=yes 9000else 9001 xorg_cv_cc_flag_unused_command_line_argument=no 9002fi 9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9004fi 9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9008 CFLAGS="$xorg_testset_save_CFLAGS" 9009fi 9010 9011found="no" 9012 9013 if test $found = "no" ; then 9014 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9016 fi 9017 9018 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9020 fi 9021 9022 CFLAGS="$CFLAGS -Wmissing-braces" 9023 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 9025$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 9026 cacheid=xorg_cv_cc_flag__Wmissing_braces 9027 if eval \${$cacheid+:} false; then : 9028 $as_echo_n "(cached) " >&6 9029else 9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031/* end confdefs.h. */ 9032int i; 9033int 9034main () 9035{ 9036 9037 ; 9038 return 0; 9039} 9040_ACEOF 9041if ac_fn_c_try_link "$LINENO"; then : 9042 eval $cacheid=yes 9043else 9044 eval $cacheid=no 9045fi 9046rm -f core conftest.err conftest.$ac_objext \ 9047 conftest$ac_exeext conftest.$ac_ext 9048fi 9049 9050 9051 CFLAGS="$xorg_testset_save_CFLAGS" 9052 9053 eval supported=\$$cacheid 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9055$as_echo "$supported" >&6; } 9056 if test "$supported" = "yes" ; then 9057 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9058 found="yes" 9059 fi 9060 fi 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076xorg_testset_save_CFLAGS="$CFLAGS" 9077 9078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9083 $as_echo_n "(cached) " >&6 9084else 9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9086/* end confdefs.h. */ 9087int i; 9088_ACEOF 9089if ac_fn_c_try_compile "$LINENO"; then : 9090 xorg_cv_cc_flag_unknown_warning_option=yes 9091else 9092 xorg_cv_cc_flag_unknown_warning_option=no 9093fi 9094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9095fi 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9099 CFLAGS="$xorg_testset_save_CFLAGS" 9100fi 9101 9102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9105 fi 9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9110 $as_echo_n "(cached) " >&6 9111else 9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9113/* end confdefs.h. */ 9114int i; 9115_ACEOF 9116if ac_fn_c_try_compile "$LINENO"; then : 9117 xorg_cv_cc_flag_unused_command_line_argument=yes 9118else 9119 xorg_cv_cc_flag_unused_command_line_argument=no 9120fi 9121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9122fi 9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9126 CFLAGS="$xorg_testset_save_CFLAGS" 9127fi 9128 9129found="no" 9130 9131 if test $found = "no" ; then 9132 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9134 fi 9135 9136 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9138 fi 9139 9140 CFLAGS="$CFLAGS -Wsequence-point" 9141 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 9143$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 9144 cacheid=xorg_cv_cc_flag__Wsequence_point 9145 if eval \${$cacheid+:} false; then : 9146 $as_echo_n "(cached) " >&6 9147else 9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9149/* end confdefs.h. */ 9150int i; 9151int 9152main () 9153{ 9154 9155 ; 9156 return 0; 9157} 9158_ACEOF 9159if ac_fn_c_try_link "$LINENO"; then : 9160 eval $cacheid=yes 9161else 9162 eval $cacheid=no 9163fi 9164rm -f core conftest.err conftest.$ac_objext \ 9165 conftest$ac_exeext conftest.$ac_ext 9166fi 9167 9168 9169 CFLAGS="$xorg_testset_save_CFLAGS" 9170 9171 eval supported=\$$cacheid 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9173$as_echo "$supported" >&6; } 9174 if test "$supported" = "yes" ; then 9175 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9176 found="yes" 9177 fi 9178 fi 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194xorg_testset_save_CFLAGS="$CFLAGS" 9195 9196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9201 $as_echo_n "(cached) " >&6 9202else 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205int i; 9206_ACEOF 9207if ac_fn_c_try_compile "$LINENO"; then : 9208 xorg_cv_cc_flag_unknown_warning_option=yes 9209else 9210 xorg_cv_cc_flag_unknown_warning_option=no 9211fi 9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9213fi 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9217 CFLAGS="$xorg_testset_save_CFLAGS" 9218fi 9219 9220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9223 fi 9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9228 $as_echo_n "(cached) " >&6 9229else 9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9231/* end confdefs.h. */ 9232int i; 9233_ACEOF 9234if ac_fn_c_try_compile "$LINENO"; then : 9235 xorg_cv_cc_flag_unused_command_line_argument=yes 9236else 9237 xorg_cv_cc_flag_unused_command_line_argument=no 9238fi 9239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9240fi 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9244 CFLAGS="$xorg_testset_save_CFLAGS" 9245fi 9246 9247found="no" 9248 9249 if test $found = "no" ; then 9250 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9252 fi 9253 9254 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9256 fi 9257 9258 CFLAGS="$CFLAGS -Wreturn-type" 9259 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 9261$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 9262 cacheid=xorg_cv_cc_flag__Wreturn_type 9263 if eval \${$cacheid+:} false; then : 9264 $as_echo_n "(cached) " >&6 9265else 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9267/* end confdefs.h. */ 9268int i; 9269int 9270main () 9271{ 9272 9273 ; 9274 return 0; 9275} 9276_ACEOF 9277if ac_fn_c_try_link "$LINENO"; then : 9278 eval $cacheid=yes 9279else 9280 eval $cacheid=no 9281fi 9282rm -f core conftest.err conftest.$ac_objext \ 9283 conftest$ac_exeext conftest.$ac_ext 9284fi 9285 9286 9287 CFLAGS="$xorg_testset_save_CFLAGS" 9288 9289 eval supported=\$$cacheid 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9291$as_echo "$supported" >&6; } 9292 if test "$supported" = "yes" ; then 9293 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9294 found="yes" 9295 fi 9296 fi 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312xorg_testset_save_CFLAGS="$CFLAGS" 9313 9314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9319 $as_echo_n "(cached) " >&6 9320else 9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9322/* end confdefs.h. */ 9323int i; 9324_ACEOF 9325if ac_fn_c_try_compile "$LINENO"; then : 9326 xorg_cv_cc_flag_unknown_warning_option=yes 9327else 9328 xorg_cv_cc_flag_unknown_warning_option=no 9329fi 9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9331fi 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9335 CFLAGS="$xorg_testset_save_CFLAGS" 9336fi 9337 9338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9341 fi 9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9346 $as_echo_n "(cached) " >&6 9347else 9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349/* end confdefs.h. */ 9350int i; 9351_ACEOF 9352if ac_fn_c_try_compile "$LINENO"; then : 9353 xorg_cv_cc_flag_unused_command_line_argument=yes 9354else 9355 xorg_cv_cc_flag_unused_command_line_argument=no 9356fi 9357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9358fi 9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9362 CFLAGS="$xorg_testset_save_CFLAGS" 9363fi 9364 9365found="no" 9366 9367 if test $found = "no" ; then 9368 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9370 fi 9371 9372 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9374 fi 9375 9376 CFLAGS="$CFLAGS -Wtrigraphs" 9377 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 9379$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 9380 cacheid=xorg_cv_cc_flag__Wtrigraphs 9381 if eval \${$cacheid+:} false; then : 9382 $as_echo_n "(cached) " >&6 9383else 9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9385/* end confdefs.h. */ 9386int i; 9387int 9388main () 9389{ 9390 9391 ; 9392 return 0; 9393} 9394_ACEOF 9395if ac_fn_c_try_link "$LINENO"; then : 9396 eval $cacheid=yes 9397else 9398 eval $cacheid=no 9399fi 9400rm -f core conftest.err conftest.$ac_objext \ 9401 conftest$ac_exeext conftest.$ac_ext 9402fi 9403 9404 9405 CFLAGS="$xorg_testset_save_CFLAGS" 9406 9407 eval supported=\$$cacheid 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9409$as_echo "$supported" >&6; } 9410 if test "$supported" = "yes" ; then 9411 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9412 found="yes" 9413 fi 9414 fi 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430xorg_testset_save_CFLAGS="$CFLAGS" 9431 9432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9437 $as_echo_n "(cached) " >&6 9438else 9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9440/* end confdefs.h. */ 9441int i; 9442_ACEOF 9443if ac_fn_c_try_compile "$LINENO"; then : 9444 xorg_cv_cc_flag_unknown_warning_option=yes 9445else 9446 xorg_cv_cc_flag_unknown_warning_option=no 9447fi 9448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9449fi 9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9453 CFLAGS="$xorg_testset_save_CFLAGS" 9454fi 9455 9456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9459 fi 9460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9464 $as_echo_n "(cached) " >&6 9465else 9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9467/* end confdefs.h. */ 9468int i; 9469_ACEOF 9470if ac_fn_c_try_compile "$LINENO"; then : 9471 xorg_cv_cc_flag_unused_command_line_argument=yes 9472else 9473 xorg_cv_cc_flag_unused_command_line_argument=no 9474fi 9475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9476fi 9477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9480 CFLAGS="$xorg_testset_save_CFLAGS" 9481fi 9482 9483found="no" 9484 9485 if test $found = "no" ; then 9486 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9488 fi 9489 9490 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9492 fi 9493 9494 CFLAGS="$CFLAGS -Warray-bounds" 9495 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 9497$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 9498 cacheid=xorg_cv_cc_flag__Warray_bounds 9499 if eval \${$cacheid+:} false; then : 9500 $as_echo_n "(cached) " >&6 9501else 9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9503/* end confdefs.h. */ 9504int i; 9505int 9506main () 9507{ 9508 9509 ; 9510 return 0; 9511} 9512_ACEOF 9513if ac_fn_c_try_link "$LINENO"; then : 9514 eval $cacheid=yes 9515else 9516 eval $cacheid=no 9517fi 9518rm -f core conftest.err conftest.$ac_objext \ 9519 conftest$ac_exeext conftest.$ac_ext 9520fi 9521 9522 9523 CFLAGS="$xorg_testset_save_CFLAGS" 9524 9525 eval supported=\$$cacheid 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9527$as_echo "$supported" >&6; } 9528 if test "$supported" = "yes" ; then 9529 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9530 found="yes" 9531 fi 9532 fi 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548xorg_testset_save_CFLAGS="$CFLAGS" 9549 9550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556else 9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9558/* end confdefs.h. */ 9559int i; 9560_ACEOF 9561if ac_fn_c_try_compile "$LINENO"; then : 9562 xorg_cv_cc_flag_unknown_warning_option=yes 9563else 9564 xorg_cv_cc_flag_unknown_warning_option=no 9565fi 9566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9567fi 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9571 CFLAGS="$xorg_testset_save_CFLAGS" 9572fi 9573 9574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9577 fi 9578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9582 $as_echo_n "(cached) " >&6 9583else 9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9585/* end confdefs.h. */ 9586int i; 9587_ACEOF 9588if ac_fn_c_try_compile "$LINENO"; then : 9589 xorg_cv_cc_flag_unused_command_line_argument=yes 9590else 9591 xorg_cv_cc_flag_unused_command_line_argument=no 9592fi 9593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9594fi 9595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9598 CFLAGS="$xorg_testset_save_CFLAGS" 9599fi 9600 9601found="no" 9602 9603 if test $found = "no" ; then 9604 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9606 fi 9607 9608 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9610 fi 9611 9612 CFLAGS="$CFLAGS -Wwrite-strings" 9613 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 9615$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 9616 cacheid=xorg_cv_cc_flag__Wwrite_strings 9617 if eval \${$cacheid+:} false; then : 9618 $as_echo_n "(cached) " >&6 9619else 9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9621/* end confdefs.h. */ 9622int i; 9623int 9624main () 9625{ 9626 9627 ; 9628 return 0; 9629} 9630_ACEOF 9631if ac_fn_c_try_link "$LINENO"; then : 9632 eval $cacheid=yes 9633else 9634 eval $cacheid=no 9635fi 9636rm -f core conftest.err conftest.$ac_objext \ 9637 conftest$ac_exeext conftest.$ac_ext 9638fi 9639 9640 9641 CFLAGS="$xorg_testset_save_CFLAGS" 9642 9643 eval supported=\$$cacheid 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9645$as_echo "$supported" >&6; } 9646 if test "$supported" = "yes" ; then 9647 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9648 found="yes" 9649 fi 9650 fi 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666xorg_testset_save_CFLAGS="$CFLAGS" 9667 9668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9673 $as_echo_n "(cached) " >&6 9674else 9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9676/* end confdefs.h. */ 9677int i; 9678_ACEOF 9679if ac_fn_c_try_compile "$LINENO"; then : 9680 xorg_cv_cc_flag_unknown_warning_option=yes 9681else 9682 xorg_cv_cc_flag_unknown_warning_option=no 9683fi 9684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9685fi 9686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9689 CFLAGS="$xorg_testset_save_CFLAGS" 9690fi 9691 9692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695 fi 9696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9700 $as_echo_n "(cached) " >&6 9701else 9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703/* end confdefs.h. */ 9704int i; 9705_ACEOF 9706if ac_fn_c_try_compile "$LINENO"; then : 9707 xorg_cv_cc_flag_unused_command_line_argument=yes 9708else 9709 xorg_cv_cc_flag_unused_command_line_argument=no 9710fi 9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9712fi 9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9716 CFLAGS="$xorg_testset_save_CFLAGS" 9717fi 9718 9719found="no" 9720 9721 if test $found = "no" ; then 9722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9724 fi 9725 9726 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9728 fi 9729 9730 CFLAGS="$CFLAGS -Waddress" 9731 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 9733$as_echo_n "checking if $CC supports-Waddress... " >&6; } 9734 cacheid=xorg_cv_cc_flag__Waddress 9735 if eval \${$cacheid+:} false; then : 9736 $as_echo_n "(cached) " >&6 9737else 9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739/* end confdefs.h. */ 9740int i; 9741int 9742main () 9743{ 9744 9745 ; 9746 return 0; 9747} 9748_ACEOF 9749if ac_fn_c_try_link "$LINENO"; then : 9750 eval $cacheid=yes 9751else 9752 eval $cacheid=no 9753fi 9754rm -f core conftest.err conftest.$ac_objext \ 9755 conftest$ac_exeext conftest.$ac_ext 9756fi 9757 9758 9759 CFLAGS="$xorg_testset_save_CFLAGS" 9760 9761 eval supported=\$$cacheid 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9763$as_echo "$supported" >&6; } 9764 if test "$supported" = "yes" ; then 9765 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9766 found="yes" 9767 fi 9768 fi 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784xorg_testset_save_CFLAGS="$CFLAGS" 9785 9786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792else 9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9794/* end confdefs.h. */ 9795int i; 9796_ACEOF 9797if ac_fn_c_try_compile "$LINENO"; then : 9798 xorg_cv_cc_flag_unknown_warning_option=yes 9799else 9800 xorg_cv_cc_flag_unknown_warning_option=no 9801fi 9802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9803fi 9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9807 CFLAGS="$xorg_testset_save_CFLAGS" 9808fi 9809 9810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9813 fi 9814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9818 $as_echo_n "(cached) " >&6 9819else 9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9821/* end confdefs.h. */ 9822int i; 9823_ACEOF 9824if ac_fn_c_try_compile "$LINENO"; then : 9825 xorg_cv_cc_flag_unused_command_line_argument=yes 9826else 9827 xorg_cv_cc_flag_unused_command_line_argument=no 9828fi 9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9830fi 9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9834 CFLAGS="$xorg_testset_save_CFLAGS" 9835fi 9836 9837found="no" 9838 9839 if test $found = "no" ; then 9840 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9842 fi 9843 9844 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9846 fi 9847 9848 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9849 9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 9851$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 9852 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9853 if eval \${$cacheid+:} false; then : 9854 $as_echo_n "(cached) " >&6 9855else 9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9857/* end confdefs.h. */ 9858int i; 9859int 9860main () 9861{ 9862 9863 ; 9864 return 0; 9865} 9866_ACEOF 9867if ac_fn_c_try_link "$LINENO"; then : 9868 eval $cacheid=yes 9869else 9870 eval $cacheid=no 9871fi 9872rm -f core conftest.err conftest.$ac_objext \ 9873 conftest$ac_exeext conftest.$ac_ext 9874fi 9875 9876 9877 CFLAGS="$xorg_testset_save_CFLAGS" 9878 9879 eval supported=\$$cacheid 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9881$as_echo "$supported" >&6; } 9882 if test "$supported" = "yes" ; then 9883 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9884 found="yes" 9885 fi 9886 fi 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902xorg_testset_save_CFLAGS="$CFLAGS" 9903 9904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9909 $as_echo_n "(cached) " >&6 9910else 9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9912/* end confdefs.h. */ 9913int i; 9914_ACEOF 9915if ac_fn_c_try_compile "$LINENO"; then : 9916 xorg_cv_cc_flag_unknown_warning_option=yes 9917else 9918 xorg_cv_cc_flag_unknown_warning_option=no 9919fi 9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9921fi 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926fi 9927 9928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9931 fi 9932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9936 $as_echo_n "(cached) " >&6 9937else 9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9939/* end confdefs.h. */ 9940int i; 9941_ACEOF 9942if ac_fn_c_try_compile "$LINENO"; then : 9943 xorg_cv_cc_flag_unused_command_line_argument=yes 9944else 9945 xorg_cv_cc_flag_unused_command_line_argument=no 9946fi 9947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9948fi 9949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9952 CFLAGS="$xorg_testset_save_CFLAGS" 9953fi 9954 9955found="no" 9956 9957 if test $found = "no" ; then 9958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9960 fi 9961 9962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9964 fi 9965 9966 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9967 9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 9969$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 9970 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9971 if eval \${$cacheid+:} false; then : 9972 $as_echo_n "(cached) " >&6 9973else 9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9975/* end confdefs.h. */ 9976int i; 9977int 9978main () 9979{ 9980 9981 ; 9982 return 0; 9983} 9984_ACEOF 9985if ac_fn_c_try_link "$LINENO"; then : 9986 eval $cacheid=yes 9987else 9988 eval $cacheid=no 9989fi 9990rm -f core conftest.err conftest.$ac_objext \ 9991 conftest$ac_exeext conftest.$ac_ext 9992fi 9993 9994 9995 CFLAGS="$xorg_testset_save_CFLAGS" 9996 9997 eval supported=\$$cacheid 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9999$as_echo "$supported" >&6; } 10000 if test "$supported" = "yes" ; then 10001 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10002 found="yes" 10003 fi 10004 fi 10005 10006 10007fi 10008 10009 10010 10011 10012 10013 10014 10015 CWARNFLAGS="$BASE_CFLAGS" 10016 if test "x$GCC" = xyes ; then 10017 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10018 fi 10019 10020 10021 10022 10023 10024 10025 10026 10027# Check whether --enable-strict-compilation was given. 10028if test "${enable_strict_compilation+set}" = set; then : 10029 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10030else 10031 STRICT_COMPILE=no 10032fi 10033 10034 10035 10036 10037 10038 10039STRICT_CFLAGS="" 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053xorg_testset_save_CFLAGS="$CFLAGS" 10054 10055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10060 $as_echo_n "(cached) " >&6 10061else 10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10063/* end confdefs.h. */ 10064int i; 10065_ACEOF 10066if ac_fn_c_try_compile "$LINENO"; then : 10067 xorg_cv_cc_flag_unknown_warning_option=yes 10068else 10069 xorg_cv_cc_flag_unknown_warning_option=no 10070fi 10071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10072fi 10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10076 CFLAGS="$xorg_testset_save_CFLAGS" 10077fi 10078 10079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10082 fi 10083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10087 $as_echo_n "(cached) " >&6 10088else 10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10090/* end confdefs.h. */ 10091int i; 10092_ACEOF 10093if ac_fn_c_try_compile "$LINENO"; then : 10094 xorg_cv_cc_flag_unused_command_line_argument=yes 10095else 10096 xorg_cv_cc_flag_unused_command_line_argument=no 10097fi 10098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10099fi 10100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10103 CFLAGS="$xorg_testset_save_CFLAGS" 10104fi 10105 10106found="no" 10107 10108 if test $found = "no" ; then 10109 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10111 fi 10112 10113 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10115 fi 10116 10117 CFLAGS="$CFLAGS -pedantic" 10118 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 10120$as_echo_n "checking if $CC supports-pedantic... " >&6; } 10121 cacheid=xorg_cv_cc_flag__pedantic 10122 if eval \${$cacheid+:} false; then : 10123 $as_echo_n "(cached) " >&6 10124else 10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10126/* end confdefs.h. */ 10127int i; 10128int 10129main () 10130{ 10131 10132 ; 10133 return 0; 10134} 10135_ACEOF 10136if ac_fn_c_try_link "$LINENO"; then : 10137 eval $cacheid=yes 10138else 10139 eval $cacheid=no 10140fi 10141rm -f core conftest.err conftest.$ac_objext \ 10142 conftest$ac_exeext conftest.$ac_ext 10143fi 10144 10145 10146 CFLAGS="$xorg_testset_save_CFLAGS" 10147 10148 eval supported=\$$cacheid 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10150$as_echo "$supported" >&6; } 10151 if test "$supported" = "yes" ; then 10152 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10153 found="yes" 10154 fi 10155 fi 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171xorg_testset_save_CFLAGS="$CFLAGS" 10172 10173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10178 $as_echo_n "(cached) " >&6 10179else 10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10181/* end confdefs.h. */ 10182int i; 10183_ACEOF 10184if ac_fn_c_try_compile "$LINENO"; then : 10185 xorg_cv_cc_flag_unknown_warning_option=yes 10186else 10187 xorg_cv_cc_flag_unknown_warning_option=no 10188fi 10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10190fi 10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10194 CFLAGS="$xorg_testset_save_CFLAGS" 10195fi 10196 10197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10200 fi 10201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10205 $as_echo_n "(cached) " >&6 10206else 10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10208/* end confdefs.h. */ 10209int i; 10210_ACEOF 10211if ac_fn_c_try_compile "$LINENO"; then : 10212 xorg_cv_cc_flag_unused_command_line_argument=yes 10213else 10214 xorg_cv_cc_flag_unused_command_line_argument=no 10215fi 10216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10217fi 10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10221 CFLAGS="$xorg_testset_save_CFLAGS" 10222fi 10223 10224found="no" 10225 10226 if test $found = "no" ; then 10227 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10229 fi 10230 10231 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10233 fi 10234 10235 CFLAGS="$CFLAGS -Werror" 10236 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 10238$as_echo_n "checking if $CC supports-Werror... " >&6; } 10239 cacheid=xorg_cv_cc_flag__Werror 10240 if eval \${$cacheid+:} false; then : 10241 $as_echo_n "(cached) " >&6 10242else 10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10244/* end confdefs.h. */ 10245int i; 10246int 10247main () 10248{ 10249 10250 ; 10251 return 0; 10252} 10253_ACEOF 10254if ac_fn_c_try_link "$LINENO"; then : 10255 eval $cacheid=yes 10256else 10257 eval $cacheid=no 10258fi 10259rm -f core conftest.err conftest.$ac_objext \ 10260 conftest$ac_exeext conftest.$ac_ext 10261fi 10262 10263 10264 CFLAGS="$xorg_testset_save_CFLAGS" 10265 10266 eval supported=\$$cacheid 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10268$as_echo "$supported" >&6; } 10269 if test "$supported" = "yes" ; then 10270 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10271 found="yes" 10272 fi 10273 fi 10274 10275 if test $found = "no" ; then 10276 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10278 fi 10279 10280 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10282 fi 10283 10284 CFLAGS="$CFLAGS -errwarn" 10285 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 10287$as_echo_n "checking if $CC supports-errwarn... " >&6; } 10288 cacheid=xorg_cv_cc_flag__errwarn 10289 if eval \${$cacheid+:} false; then : 10290 $as_echo_n "(cached) " >&6 10291else 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294int i; 10295int 10296main () 10297{ 10298 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303if ac_fn_c_try_link "$LINENO"; then : 10304 eval $cacheid=yes 10305else 10306 eval $cacheid=no 10307fi 10308rm -f core conftest.err conftest.$ac_objext \ 10309 conftest$ac_exeext conftest.$ac_ext 10310fi 10311 10312 10313 CFLAGS="$xorg_testset_save_CFLAGS" 10314 10315 eval supported=\$$cacheid 10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10317$as_echo "$supported" >&6; } 10318 if test "$supported" = "yes" ; then 10319 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10320 found="yes" 10321 fi 10322 fi 10323 10324 10325 10326# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10327# activate it with -Werror, so we add it here explicitly. 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341xorg_testset_save_CFLAGS="$CFLAGS" 10342 10343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10348 $as_echo_n "(cached) " >&6 10349else 10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10351/* end confdefs.h. */ 10352int i; 10353_ACEOF 10354if ac_fn_c_try_compile "$LINENO"; then : 10355 xorg_cv_cc_flag_unknown_warning_option=yes 10356else 10357 xorg_cv_cc_flag_unknown_warning_option=no 10358fi 10359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10360fi 10361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10364 CFLAGS="$xorg_testset_save_CFLAGS" 10365fi 10366 10367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10370 fi 10371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10375 $as_echo_n "(cached) " >&6 10376else 10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10378/* end confdefs.h. */ 10379int i; 10380_ACEOF 10381if ac_fn_c_try_compile "$LINENO"; then : 10382 xorg_cv_cc_flag_unused_command_line_argument=yes 10383else 10384 xorg_cv_cc_flag_unused_command_line_argument=no 10385fi 10386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10387fi 10388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10391 CFLAGS="$xorg_testset_save_CFLAGS" 10392fi 10393 10394found="no" 10395 10396 if test $found = "no" ; then 10397 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10399 fi 10400 10401 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10403 fi 10404 10405 CFLAGS="$CFLAGS -Werror=attributes" 10406 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 10408$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 10409 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10410 if eval \${$cacheid+:} false; then : 10411 $as_echo_n "(cached) " >&6 10412else 10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10414/* end confdefs.h. */ 10415int i; 10416int 10417main () 10418{ 10419 10420 ; 10421 return 0; 10422} 10423_ACEOF 10424if ac_fn_c_try_link "$LINENO"; then : 10425 eval $cacheid=yes 10426else 10427 eval $cacheid=no 10428fi 10429rm -f core conftest.err conftest.$ac_objext \ 10430 conftest$ac_exeext conftest.$ac_ext 10431fi 10432 10433 10434 CFLAGS="$xorg_testset_save_CFLAGS" 10435 10436 eval supported=\$$cacheid 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10438$as_echo "$supported" >&6; } 10439 if test "$supported" = "yes" ; then 10440 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10441 found="yes" 10442 fi 10443 fi 10444 10445 10446 10447if test "x$STRICT_COMPILE" = "xyes"; then 10448 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10449 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10450fi 10451 10452 10453 10454 10455 10456 10457cat >>confdefs.h <<_ACEOF 10458#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10459_ACEOF 10460 10461 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10462 if test "x$PVM" = "x"; then 10463 PVM="0" 10464 fi 10465 10466cat >>confdefs.h <<_ACEOF 10467#define PACKAGE_VERSION_MINOR $PVM 10468_ACEOF 10469 10470 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10471 if test "x$PVP" = "x"; then 10472 PVP="0" 10473 fi 10474 10475cat >>confdefs.h <<_ACEOF 10476#define PACKAGE_VERSION_PATCHLEVEL $PVP 10477_ACEOF 10478 10479 10480 10481CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10482mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10483|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10484echo 'git directory not found: installing possibly empty changelog.' >&2)" 10485 10486 10487 10488 10489macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10490INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10491mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10492|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10493echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10494 10495 10496 10497 10498 10499 10500if test x$APP_MAN_SUFFIX = x ; then 10501 APP_MAN_SUFFIX=1 10502fi 10503if test x$APP_MAN_DIR = x ; then 10504 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10505fi 10506 10507if test x$LIB_MAN_SUFFIX = x ; then 10508 LIB_MAN_SUFFIX=3 10509fi 10510if test x$LIB_MAN_DIR = x ; then 10511 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10512fi 10513 10514if test x$FILE_MAN_SUFFIX = x ; then 10515 case $host_os in 10516 solaris*) FILE_MAN_SUFFIX=4 ;; 10517 *) FILE_MAN_SUFFIX=5 ;; 10518 esac 10519fi 10520if test x$FILE_MAN_DIR = x ; then 10521 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10522fi 10523 10524if test x$MISC_MAN_SUFFIX = x ; then 10525 case $host_os in 10526 solaris*) MISC_MAN_SUFFIX=5 ;; 10527 *) MISC_MAN_SUFFIX=7 ;; 10528 esac 10529fi 10530if test x$MISC_MAN_DIR = x ; then 10531 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10532fi 10533 10534if test x$DRIVER_MAN_SUFFIX = x ; then 10535 case $host_os in 10536 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10537 *) DRIVER_MAN_SUFFIX=4 ;; 10538 esac 10539fi 10540if test x$DRIVER_MAN_DIR = x ; then 10541 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10542fi 10543 10544if test x$ADMIN_MAN_SUFFIX = x ; then 10545 case $host_os in 10546 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10547 *) ADMIN_MAN_SUFFIX=8 ;; 10548 esac 10549fi 10550if test x$ADMIN_MAN_DIR = x ; then 10551 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10552fi 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568XORG_MAN_PAGE="X Version 11" 10569 10570MAN_SUBSTS="\ 10571 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10572 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10573 -e 's|__xservername__|Xorg|g' \ 10574 -e 's|__xconfigfile__|xorg.conf|g' \ 10575 -e 's|__projectroot__|\$(prefix)|g' \ 10576 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10577 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10578 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10579 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10580 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10581 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10582 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10583 10584 10585 10586# Check whether --enable-silent-rules was given. 10587if test "${enable_silent_rules+set}" = set; then : 10588 enableval=$enable_silent_rules; 10589fi 10590 10591case $enable_silent_rules in 10592yes) AM_DEFAULT_VERBOSITY=0;; 10593no) AM_DEFAULT_VERBOSITY=1;; 10594*) AM_DEFAULT_VERBOSITY=0;; 10595esac 10596AM_BACKSLASH='\' 10597 10598 10599 10600# Internationalization & localization support 10601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 10602$as_echo_n "checking for library containing gettext... " >&6; } 10603if ${ac_cv_search_gettext+:} false; then : 10604 $as_echo_n "(cached) " >&6 10605else 10606 ac_func_search_save_LIBS=$LIBS 10607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10608/* end confdefs.h. */ 10609 10610/* Override any GCC internal prototype to avoid an error. 10611 Use char because int might match the return type of a GCC 10612 builtin and then its argument prototype would still apply. */ 10613#ifdef __cplusplus 10614extern "C" 10615#endif 10616char gettext (); 10617int 10618main () 10619{ 10620return gettext (); 10621 ; 10622 return 0; 10623} 10624_ACEOF 10625for ac_lib in '' intl; do 10626 if test -z "$ac_lib"; then 10627 ac_res="none required" 10628 else 10629 ac_res=-l$ac_lib 10630 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10631 fi 10632 if ac_fn_c_try_link "$LINENO"; then : 10633 ac_cv_search_gettext=$ac_res 10634fi 10635rm -f core conftest.err conftest.$ac_objext \ 10636 conftest$ac_exeext 10637 if ${ac_cv_search_gettext+:} false; then : 10638 break 10639fi 10640done 10641if ${ac_cv_search_gettext+:} false; then : 10642 10643else 10644 ac_cv_search_gettext=no 10645fi 10646rm conftest.$ac_ext 10647LIBS=$ac_func_search_save_LIBS 10648fi 10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 10650$as_echo "$ac_cv_search_gettext" >&6; } 10651ac_res=$ac_cv_search_gettext 10652if test "$ac_res" != no; then : 10653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10654 USE_GETTEXT="yes" 10655else 10656 USE_GETTEXT="no" 10657fi 10658 10659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5 10660$as_echo_n "checking where to install localized messages... " >&6; } 10661 10662# Check whether --with-localedir was given. 10663if test "${with_localedir+set}" = set; then : 10664 withval=$with_localedir; LOCALEDIR=${withval} 10665else 10666 LOCALEDIR=${datadir}/locale 10667fi 10668 10669 10670 prefix_NONE= 10671 exec_prefix_NONE= 10672 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 10673 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 10674 eval ax_define_dir="\"$LOCALEDIR\"" 10675 eval ax_define_dir="\"$ax_define_dir\"" 10676 LOCALEDIR="$ax_define_dir" 10677 10678 10679cat >>confdefs.h <<_ACEOF 10680#define LOCALEDIR "$ax_define_dir" 10681_ACEOF 10682 10683 test "$prefix_NONE" && prefix=NONE 10684 test "$exec_prefix_NONE" && exec_prefix=NONE 10685 10686if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5 10688$as_echo "nowhere" >&6; } 10689 USE_GETTEXT="no" 10690else 10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5 10692$as_echo "$LOCALEDIR" >&6; } 10693fi 10694 10695if test "x$USE_GETTEXT" = "xyes" ; then 10696 10697$as_echo "#define USE_GETTEXT 1" >>confdefs.h 10698 10699fi 10700 if test "x$USE_GETTEXT" = "xyes"; then 10701 USE_GETTEXT_TRUE= 10702 USE_GETTEXT_FALSE='#' 10703else 10704 USE_GETTEXT_TRUE='#' 10705 USE_GETTEXT_FALSE= 10706fi 10707 10708 10709 10710### How to check load average on various OS'es: 10711 10712# getloadavg: 4.3BSD-Reno & later, glibc 2.2 & later, Solaris 7 & later 10713# BSD & GNU libc use <stdlib.h>, Solaris requires <sys/loadavg.h> 10714for ac_func in getloadavg 10715do : 10716 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 10717if test "x$ac_cv_func_getloadavg" = xyes; then : 10718 cat >>confdefs.h <<_ACEOF 10719#define HAVE_GETLOADAVG 1 10720_ACEOF 10721 for ac_header in sys/loadavg.h 10722do : 10723 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" 10724if test "x$ac_cv_header_sys_loadavg_h" = xyes; then : 10725 cat >>confdefs.h <<_ACEOF 10726#define HAVE_SYS_LOADAVG_H 1 10727_ACEOF 10728 10729fi 10730 10731done 10732 10733fi 10734done 10735 10736 10737# Checks for pkg-config packages 10738 10739pkg_failed=no 10740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLOAD" >&5 10741$as_echo_n "checking for XLOAD... " >&6; } 10742 10743if test -n "$XLOAD_CFLAGS"; then 10744 pkg_cv_XLOAD_CFLAGS="$XLOAD_CFLAGS" 10745 elif test -n "$PKG_CONFIG"; then 10746 if test -n "$PKG_CONFIG" && \ 10747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5 10748 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5 10749 ac_status=$? 10750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10751 test $ac_status = 0; }; then 10752 pkg_cv_XLOAD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null` 10753else 10754 pkg_failed=yes 10755fi 10756 else 10757 pkg_failed=untried 10758fi 10759if test -n "$XLOAD_LIBS"; then 10760 pkg_cv_XLOAD_LIBS="$XLOAD_LIBS" 10761 elif test -n "$PKG_CONFIG"; then 10762 if test -n "$PKG_CONFIG" && \ 10763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5 10764 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5 10765 ac_status=$? 10766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10767 test $ac_status = 0; }; then 10768 pkg_cv_XLOAD_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null` 10769else 10770 pkg_failed=yes 10771fi 10772 else 10773 pkg_failed=untried 10774fi 10775 10776 10777 10778if test $pkg_failed = yes; then 10779 10780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10781 _pkg_short_errors_supported=yes 10782else 10783 _pkg_short_errors_supported=no 10784fi 10785 if test $_pkg_short_errors_supported = yes; then 10786 XLOAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1` 10787 else 10788 XLOAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1` 10789 fi 10790 # Put the nasty error message in config.log where it belongs 10791 echo "$XLOAD_PKG_ERRORS" >&5 10792 10793 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.17) were not met: 10794 10795$XLOAD_PKG_ERRORS 10796 10797Consider adjusting the PKG_CONFIG_PATH environment variable if you 10798installed software in a non-standard prefix. 10799 10800Alternatively, you may set the environment variables XLOAD_CFLAGS 10801and XLOAD_LIBS to avoid the need to call pkg-config. 10802See the pkg-config man page for more details. 10803" "$LINENO" 5 10804elif test $pkg_failed = untried; then 10805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10807as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10808is in your PATH or set the PKG_CONFIG environment variable to the full 10809path to pkg-config. 10810 10811Alternatively, you may set the environment variables XLOAD_CFLAGS 10812and XLOAD_LIBS to avoid the need to call pkg-config. 10813See the pkg-config man page for more details. 10814 10815To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10816See \`config.log' for more details" "$LINENO" 5; } 10817else 10818 XLOAD_CFLAGS=$pkg_cv_XLOAD_CFLAGS 10819 XLOAD_LIBS=$pkg_cv_XLOAD_LIBS 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10821$as_echo "yes" >&6; } 10822 : 10823fi 10824 10825 10826pkg_failed=no 10827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 10828$as_echo_n "checking for APPDEFS... " >&6; } 10829 10830if test -n "$APPDEFS_CFLAGS"; then 10831 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 10832 elif test -n "$PKG_CONFIG"; then 10833 if test -n "$PKG_CONFIG" && \ 10834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10835 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10836 ac_status=$? 10837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10838 test $ac_status = 0; }; then 10839 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 10840else 10841 pkg_failed=yes 10842fi 10843 else 10844 pkg_failed=untried 10845fi 10846if test -n "$APPDEFS_LIBS"; then 10847 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 10848 elif test -n "$PKG_CONFIG"; then 10849 if test -n "$PKG_CONFIG" && \ 10850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10851 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10852 ac_status=$? 10853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10854 test $ac_status = 0; }; then 10855 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 10856else 10857 pkg_failed=yes 10858fi 10859 else 10860 pkg_failed=untried 10861fi 10862 10863 10864 10865if test $pkg_failed = yes; then 10866 10867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10868 _pkg_short_errors_supported=yes 10869else 10870 _pkg_short_errors_supported=no 10871fi 10872 if test $_pkg_short_errors_supported = yes; then 10873 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 10874 else 10875 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 10876 fi 10877 # Put the nasty error message in config.log where it belongs 10878 echo "$APPDEFS_PKG_ERRORS" >&5 10879 10880 as_fn_error $? "Package requirements (xt) were not met: 10881 10882$APPDEFS_PKG_ERRORS 10883 10884Consider adjusting the PKG_CONFIG_PATH environment variable if you 10885installed software in a non-standard prefix. 10886 10887Alternatively, you may set the environment variables APPDEFS_CFLAGS 10888and APPDEFS_LIBS to avoid the need to call pkg-config. 10889See the pkg-config man page for more details. 10890" "$LINENO" 5 10891elif test $pkg_failed = untried; then 10892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10894as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10895is in your PATH or set the PKG_CONFIG environment variable to the full 10896path to pkg-config. 10897 10898Alternatively, you may set the environment variables APPDEFS_CFLAGS 10899and APPDEFS_LIBS to avoid the need to call pkg-config. 10900See the pkg-config man page for more details. 10901 10902To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10903See \`config.log' for more details" "$LINENO" 5; } 10904else 10905 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 10906 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10908$as_echo "yes" >&6; } 10909 : 10910fi 10911xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10912 10913# Check whether --with-appdefaultdir was given. 10914if test "${with_appdefaultdir+set}" = set; then : 10915 withval=$with_appdefaultdir; appdefaultdir="$withval" 10916else 10917 appdefaultdir="${xt_appdefaultdir}" 10918fi 10919 10920 10921 10922 10923ac_config_files="$ac_config_files Makefile man/Makefile" 10924 10925cat >confcache <<\_ACEOF 10926# This file is a shell script that caches the results of configure 10927# tests run on this system so they can be shared between configure 10928# scripts and configure runs, see configure's option --config-cache. 10929# It is not useful on other systems. If it contains results you don't 10930# want to keep, you may remove or edit it. 10931# 10932# config.status only pays attention to the cache file if you give it 10933# the --recheck option to rerun configure. 10934# 10935# `ac_cv_env_foo' variables (set or unset) will be overridden when 10936# loading this file, other *unset* `ac_cv_foo' will be assigned the 10937# following values. 10938 10939_ACEOF 10940 10941# The following way of writing the cache mishandles newlines in values, 10942# but we know of no workaround that is simple, portable, and efficient. 10943# So, we kill variables containing newlines. 10944# Ultrix sh set writes to stderr and can't be redirected directly, 10945# and sets the high bit in the cache file unless we assign to the vars. 10946( 10947 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10948 eval ac_val=\$$ac_var 10949 case $ac_val in #( 10950 *${as_nl}*) 10951 case $ac_var in #( 10952 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10953$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10954 esac 10955 case $ac_var in #( 10956 _ | IFS | as_nl) ;; #( 10957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10958 *) { eval $ac_var=; unset $ac_var;} ;; 10959 esac ;; 10960 esac 10961 done 10962 10963 (set) 2>&1 | 10964 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10965 *${as_nl}ac_space=\ *) 10966 # `set' does not quote correctly, so add quotes: double-quote 10967 # substitution turns \\\\ into \\, and sed turns \\ into \. 10968 sed -n \ 10969 "s/'/'\\\\''/g; 10970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10971 ;; #( 10972 *) 10973 # `set' quotes correctly as required by POSIX, so do not add quotes. 10974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10975 ;; 10976 esac | 10977 sort 10978) | 10979 sed ' 10980 /^ac_cv_env_/b end 10981 t clear 10982 :clear 10983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10984 t end 10985 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10986 :end' >>confcache 10987if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10988 if test -w "$cache_file"; then 10989 if test "x$cache_file" != "x/dev/null"; then 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10991$as_echo "$as_me: updating cache $cache_file" >&6;} 10992 if test ! -f "$cache_file" || test -h "$cache_file"; then 10993 cat confcache >"$cache_file" 10994 else 10995 case $cache_file in #( 10996 */* | ?:*) 10997 mv -f confcache "$cache_file"$$ && 10998 mv -f "$cache_file"$$ "$cache_file" ;; #( 10999 *) 11000 mv -f confcache "$cache_file" ;; 11001 esac 11002 fi 11003 fi 11004 else 11005 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11006$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11007 fi 11008fi 11009rm -f confcache 11010 11011test "x$prefix" = xNONE && prefix=$ac_default_prefix 11012# Let make expand exec_prefix. 11013test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11014 11015DEFS=-DHAVE_CONFIG_H 11016 11017ac_libobjs= 11018ac_ltlibobjs= 11019U= 11020for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11021 # 1. Remove the extension, and $U if already installed. 11022 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11023 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11024 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11025 # will be set to the directory where LIBOBJS objects are built. 11026 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11027 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11028done 11029LIBOBJS=$ac_libobjs 11030 11031LTLIBOBJS=$ac_ltlibobjs 11032 11033 11034if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11035 as_fn_error $? "conditional \"AMDEP\" was never defined. 11036Usually this means the macro was only invoked conditionally." "$LINENO" 5 11037fi 11038if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11039 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11040Usually this means the macro was only invoked conditionally." "$LINENO" 5 11041fi 11042 if test -n "$EXEEXT"; then 11043 am__EXEEXT_TRUE= 11044 am__EXEEXT_FALSE='#' 11045else 11046 am__EXEEXT_TRUE='#' 11047 am__EXEEXT_FALSE= 11048fi 11049 11050if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11051 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11052Usually this means the macro was only invoked conditionally." "$LINENO" 5 11053fi 11054if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then 11055 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined. 11056Usually this means the macro was only invoked conditionally." "$LINENO" 5 11057fi 11058 11059: "${CONFIG_STATUS=./config.status}" 11060ac_write_fail=0 11061ac_clean_files_save=$ac_clean_files 11062ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11063{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11064$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11065as_write_fail=0 11066cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11067#! $SHELL 11068# Generated by $as_me. 11069# Run this file to recreate the current configuration. 11070# Compiler output produced by configure, useful for debugging 11071# configure, is in config.log if it exists. 11072 11073debug=false 11074ac_cs_recheck=false 11075ac_cs_silent=false 11076 11077SHELL=\${CONFIG_SHELL-$SHELL} 11078export SHELL 11079_ASEOF 11080cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11081## -------------------- ## 11082## M4sh Initialization. ## 11083## -------------------- ## 11084 11085# Be more Bourne compatible 11086DUALCASE=1; export DUALCASE # for MKS sh 11087if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11088 emulate sh 11089 NULLCMD=: 11090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11091 # is contrary to our usage. Disable this feature. 11092 alias -g '${1+"$@"}'='"$@"' 11093 setopt NO_GLOB_SUBST 11094else 11095 case `(set -o) 2>/dev/null` in #( 11096 *posix*) : 11097 set -o posix ;; #( 11098 *) : 11099 ;; 11100esac 11101fi 11102 11103 11104as_nl=' 11105' 11106export as_nl 11107# Printing a long string crashes Solaris 7 /usr/bin/printf. 11108as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11109as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11110as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11111# Prefer a ksh shell builtin over an external printf program on Solaris, 11112# but without wasting forks for bash or zsh. 11113if test -z "$BASH_VERSION$ZSH_VERSION" \ 11114 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11115 as_echo='print -r --' 11116 as_echo_n='print -rn --' 11117elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11118 as_echo='printf %s\n' 11119 as_echo_n='printf %s' 11120else 11121 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11122 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11123 as_echo_n='/usr/ucb/echo -n' 11124 else 11125 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11126 as_echo_n_body='eval 11127 arg=$1; 11128 case $arg in #( 11129 *"$as_nl"*) 11130 expr "X$arg" : "X\\(.*\\)$as_nl"; 11131 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11132 esac; 11133 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11134 ' 11135 export as_echo_n_body 11136 as_echo_n='sh -c $as_echo_n_body as_echo' 11137 fi 11138 export as_echo_body 11139 as_echo='sh -c $as_echo_body as_echo' 11140fi 11141 11142# The user is always right. 11143if test "${PATH_SEPARATOR+set}" != set; then 11144 PATH_SEPARATOR=: 11145 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11146 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11147 PATH_SEPARATOR=';' 11148 } 11149fi 11150 11151 11152# IFS 11153# We need space, tab and new line, in precisely that order. Quoting is 11154# there to prevent editors from complaining about space-tab. 11155# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11156# splitting by setting IFS to empty value.) 11157IFS=" "" $as_nl" 11158 11159# Find who we are. Look in the path if we contain no directory separator. 11160as_myself= 11161case $0 in #(( 11162 *[\\/]* ) as_myself=$0 ;; 11163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11164for as_dir in $PATH 11165do 11166 IFS=$as_save_IFS 11167 test -z "$as_dir" && as_dir=. 11168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11169 done 11170IFS=$as_save_IFS 11171 11172 ;; 11173esac 11174# We did not find ourselves, most probably we were run as `sh COMMAND' 11175# in which case we are not to be found in the path. 11176if test "x$as_myself" = x; then 11177 as_myself=$0 11178fi 11179if test ! -f "$as_myself"; then 11180 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11181 exit 1 11182fi 11183 11184# Unset variables that we do not need and which cause bugs (e.g. in 11185# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11186# suppresses any "Segmentation fault" message there. '((' could 11187# trigger a bug in pdksh 5.2.14. 11188for as_var in BASH_ENV ENV MAIL MAILPATH 11189do eval test x\${$as_var+set} = xset \ 11190 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11191done 11192PS1='$ ' 11193PS2='> ' 11194PS4='+ ' 11195 11196# NLS nuisances. 11197LC_ALL=C 11198export LC_ALL 11199LANGUAGE=C 11200export LANGUAGE 11201 11202# CDPATH. 11203(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11204 11205 11206# as_fn_error STATUS ERROR [LINENO LOG_FD] 11207# ---------------------------------------- 11208# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11209# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11210# script with STATUS, using 1 if that was 0. 11211as_fn_error () 11212{ 11213 as_status=$1; test $as_status -eq 0 && as_status=1 11214 if test "$4"; then 11215 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11216 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11217 fi 11218 $as_echo "$as_me: error: $2" >&2 11219 as_fn_exit $as_status 11220} # as_fn_error 11221 11222 11223# as_fn_set_status STATUS 11224# ----------------------- 11225# Set $? to STATUS, without forking. 11226as_fn_set_status () 11227{ 11228 return $1 11229} # as_fn_set_status 11230 11231# as_fn_exit STATUS 11232# ----------------- 11233# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11234as_fn_exit () 11235{ 11236 set +e 11237 as_fn_set_status $1 11238 exit $1 11239} # as_fn_exit 11240 11241# as_fn_unset VAR 11242# --------------- 11243# Portably unset VAR. 11244as_fn_unset () 11245{ 11246 { eval $1=; unset $1;} 11247} 11248as_unset=as_fn_unset 11249# as_fn_append VAR VALUE 11250# ---------------------- 11251# Append the text in VALUE to the end of the definition contained in VAR. Take 11252# advantage of any shell optimizations that allow amortized linear growth over 11253# repeated appends, instead of the typical quadratic growth present in naive 11254# implementations. 11255if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11256 eval 'as_fn_append () 11257 { 11258 eval $1+=\$2 11259 }' 11260else 11261 as_fn_append () 11262 { 11263 eval $1=\$$1\$2 11264 } 11265fi # as_fn_append 11266 11267# as_fn_arith ARG... 11268# ------------------ 11269# Perform arithmetic evaluation on the ARGs, and store the result in the 11270# global $as_val. Take advantage of shells that can avoid forks. The arguments 11271# must be portable across $(()) and expr. 11272if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11273 eval 'as_fn_arith () 11274 { 11275 as_val=$(( $* )) 11276 }' 11277else 11278 as_fn_arith () 11279 { 11280 as_val=`expr "$@" || test $? -eq 1` 11281 } 11282fi # as_fn_arith 11283 11284 11285if expr a : '\(a\)' >/dev/null 2>&1 && 11286 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11287 as_expr=expr 11288else 11289 as_expr=false 11290fi 11291 11292if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11293 as_basename=basename 11294else 11295 as_basename=false 11296fi 11297 11298if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11299 as_dirname=dirname 11300else 11301 as_dirname=false 11302fi 11303 11304as_me=`$as_basename -- "$0" || 11305$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11306 X"$0" : 'X\(//\)$' \| \ 11307 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11308$as_echo X/"$0" | 11309 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11310 s//\1/ 11311 q 11312 } 11313 /^X\/\(\/\/\)$/{ 11314 s//\1/ 11315 q 11316 } 11317 /^X\/\(\/\).*/{ 11318 s//\1/ 11319 q 11320 } 11321 s/.*/./; q'` 11322 11323# Avoid depending upon Character Ranges. 11324as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11325as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11326as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11327as_cr_digits='0123456789' 11328as_cr_alnum=$as_cr_Letters$as_cr_digits 11329 11330ECHO_C= ECHO_N= ECHO_T= 11331case `echo -n x` in #((((( 11332-n*) 11333 case `echo 'xy\c'` in 11334 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11335 xy) ECHO_C='\c';; 11336 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11337 ECHO_T=' ';; 11338 esac;; 11339*) 11340 ECHO_N='-n';; 11341esac 11342 11343rm -f conf$$ conf$$.exe conf$$.file 11344if test -d conf$$.dir; then 11345 rm -f conf$$.dir/conf$$.file 11346else 11347 rm -f conf$$.dir 11348 mkdir conf$$.dir 2>/dev/null 11349fi 11350if (echo >conf$$.file) 2>/dev/null; then 11351 if ln -s conf$$.file conf$$ 2>/dev/null; then 11352 as_ln_s='ln -s' 11353 # ... but there are two gotchas: 11354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11356 # In both cases, we have to default to `cp -p'. 11357 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11358 as_ln_s='cp -p' 11359 elif ln conf$$.file conf$$ 2>/dev/null; then 11360 as_ln_s=ln 11361 else 11362 as_ln_s='cp -p' 11363 fi 11364else 11365 as_ln_s='cp -p' 11366fi 11367rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11368rmdir conf$$.dir 2>/dev/null 11369 11370 11371# as_fn_mkdir_p 11372# ------------- 11373# Create "$as_dir" as a directory, including parents if necessary. 11374as_fn_mkdir_p () 11375{ 11376 11377 case $as_dir in #( 11378 -*) as_dir=./$as_dir;; 11379 esac 11380 test -d "$as_dir" || eval $as_mkdir_p || { 11381 as_dirs= 11382 while :; do 11383 case $as_dir in #( 11384 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11385 *) as_qdir=$as_dir;; 11386 esac 11387 as_dirs="'$as_qdir' $as_dirs" 11388 as_dir=`$as_dirname -- "$as_dir" || 11389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11390 X"$as_dir" : 'X\(//\)[^/]' \| \ 11391 X"$as_dir" : 'X\(//\)$' \| \ 11392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11393$as_echo X"$as_dir" | 11394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11395 s//\1/ 11396 q 11397 } 11398 /^X\(\/\/\)[^/].*/{ 11399 s//\1/ 11400 q 11401 } 11402 /^X\(\/\/\)$/{ 11403 s//\1/ 11404 q 11405 } 11406 /^X\(\/\).*/{ 11407 s//\1/ 11408 q 11409 } 11410 s/.*/./; q'` 11411 test -d "$as_dir" && break 11412 done 11413 test -z "$as_dirs" || eval "mkdir $as_dirs" 11414 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11415 11416 11417} # as_fn_mkdir_p 11418if mkdir -p . 2>/dev/null; then 11419 as_mkdir_p='mkdir -p "$as_dir"' 11420else 11421 test -d ./-p && rmdir ./-p 11422 as_mkdir_p=false 11423fi 11424 11425if test -x / >/dev/null 2>&1; then 11426 as_test_x='test -x' 11427else 11428 if ls -dL / >/dev/null 2>&1; then 11429 as_ls_L_option=L 11430 else 11431 as_ls_L_option= 11432 fi 11433 as_test_x=' 11434 eval sh -c '\'' 11435 if test -d "$1"; then 11436 test -d "$1/."; 11437 else 11438 case $1 in #( 11439 -*)set "./$1";; 11440 esac; 11441 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11442 ???[sx]*):;;*)false;;esac;fi 11443 '\'' sh 11444 ' 11445fi 11446as_executable_p=$as_test_x 11447 11448# Sed expression to map a string onto a valid CPP name. 11449as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11450 11451# Sed expression to map a string onto a valid variable name. 11452as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11453 11454 11455exec 6>&1 11456## ----------------------------------- ## 11457## Main body of $CONFIG_STATUS script. ## 11458## ----------------------------------- ## 11459_ASEOF 11460test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11461 11462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11463# Save the log message, to keep $0 and so on meaningful, and to 11464# report actual input values of CONFIG_FILES etc. instead of their 11465# values after options handling. 11466ac_log=" 11467This file was extended by xload $as_me 1.1.1, which was 11468generated by GNU Autoconf 2.68. Invocation command line was 11469 11470 CONFIG_FILES = $CONFIG_FILES 11471 CONFIG_HEADERS = $CONFIG_HEADERS 11472 CONFIG_LINKS = $CONFIG_LINKS 11473 CONFIG_COMMANDS = $CONFIG_COMMANDS 11474 $ $0 $@ 11475 11476on `(hostname || uname -n) 2>/dev/null | sed 1q` 11477" 11478 11479_ACEOF 11480 11481case $ac_config_files in *" 11482"*) set x $ac_config_files; shift; ac_config_files=$*;; 11483esac 11484 11485case $ac_config_headers in *" 11486"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11487esac 11488 11489 11490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11491# Files that config.status was made for. 11492config_files="$ac_config_files" 11493config_headers="$ac_config_headers" 11494config_commands="$ac_config_commands" 11495 11496_ACEOF 11497 11498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11499ac_cs_usage="\ 11500\`$as_me' instantiates files and other configuration actions 11501from templates according to the current configuration. Unless the files 11502and actions are specified as TAGs, all are instantiated by default. 11503 11504Usage: $0 [OPTION]... [TAG]... 11505 11506 -h, --help print this help, then exit 11507 -V, --version print version number and configuration settings, then exit 11508 --config print configuration, then exit 11509 -q, --quiet, --silent 11510 do not print progress messages 11511 -d, --debug don't remove temporary files 11512 --recheck update $as_me by reconfiguring in the same conditions 11513 --file=FILE[:TEMPLATE] 11514 instantiate the configuration file FILE 11515 --header=FILE[:TEMPLATE] 11516 instantiate the configuration header FILE 11517 11518Configuration files: 11519$config_files 11520 11521Configuration headers: 11522$config_headers 11523 11524Configuration commands: 11525$config_commands 11526 11527Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11528 11529_ACEOF 11530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11531ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11532ac_cs_version="\\ 11533xload config.status 1.1.1 11534configured by $0, generated by GNU Autoconf 2.68, 11535 with options \\"\$ac_cs_config\\" 11536 11537Copyright (C) 2010 Free Software Foundation, Inc. 11538This config.status script is free software; the Free Software Foundation 11539gives unlimited permission to copy, distribute and modify it." 11540 11541ac_pwd='$ac_pwd' 11542srcdir='$srcdir' 11543INSTALL='$INSTALL' 11544MKDIR_P='$MKDIR_P' 11545AWK='$AWK' 11546test -n "\$AWK" || AWK=awk 11547_ACEOF 11548 11549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11550# The default lists apply if the user does not specify any file. 11551ac_need_defaults=: 11552while test $# != 0 11553do 11554 case $1 in 11555 --*=?*) 11556 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11558 ac_shift=: 11559 ;; 11560 --*=) 11561 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11562 ac_optarg= 11563 ac_shift=: 11564 ;; 11565 *) 11566 ac_option=$1 11567 ac_optarg=$2 11568 ac_shift=shift 11569 ;; 11570 esac 11571 11572 case $ac_option in 11573 # Handling of the options. 11574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11575 ac_cs_recheck=: ;; 11576 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11577 $as_echo "$ac_cs_version"; exit ;; 11578 --config | --confi | --conf | --con | --co | --c ) 11579 $as_echo "$ac_cs_config"; exit ;; 11580 --debug | --debu | --deb | --de | --d | -d ) 11581 debug=: ;; 11582 --file | --fil | --fi | --f ) 11583 $ac_shift 11584 case $ac_optarg in 11585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11586 '') as_fn_error $? "missing file argument" ;; 11587 esac 11588 as_fn_append CONFIG_FILES " '$ac_optarg'" 11589 ac_need_defaults=false;; 11590 --header | --heade | --head | --hea ) 11591 $ac_shift 11592 case $ac_optarg in 11593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11594 esac 11595 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11596 ac_need_defaults=false;; 11597 --he | --h) 11598 # Conflict between --help and --header 11599 as_fn_error $? "ambiguous option: \`$1' 11600Try \`$0 --help' for more information.";; 11601 --help | --hel | -h ) 11602 $as_echo "$ac_cs_usage"; exit ;; 11603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11604 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11605 ac_cs_silent=: ;; 11606 11607 # This is an error. 11608 -*) as_fn_error $? "unrecognized option: \`$1' 11609Try \`$0 --help' for more information." ;; 11610 11611 *) as_fn_append ac_config_targets " $1" 11612 ac_need_defaults=false ;; 11613 11614 esac 11615 shift 11616done 11617 11618ac_configure_extra_args= 11619 11620if $ac_cs_silent; then 11621 exec 6>/dev/null 11622 ac_configure_extra_args="$ac_configure_extra_args --silent" 11623fi 11624 11625_ACEOF 11626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11627if \$ac_cs_recheck; then 11628 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11629 shift 11630 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11631 CONFIG_SHELL='$SHELL' 11632 export CONFIG_SHELL 11633 exec "\$@" 11634fi 11635 11636_ACEOF 11637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11638exec 5>>config.log 11639{ 11640 echo 11641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11642## Running $as_me. ## 11643_ASBOX 11644 $as_echo "$ac_log" 11645} >&5 11646 11647_ACEOF 11648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11649# 11650# INIT-COMMANDS 11651# 11652AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11653 11654_ACEOF 11655 11656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11657 11658# Handling of arguments. 11659for ac_config_target in $ac_config_targets 11660do 11661 case $ac_config_target in 11662 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11663 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11665 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11666 11667 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11668 esac 11669done 11670 11671 11672# If the user did not use the arguments to specify the items to instantiate, 11673# then the envvar interface is used. Set only those that are not. 11674# We use the long form for the default assignment because of an extremely 11675# bizarre bug on SunOS 4.1.3. 11676if $ac_need_defaults; then 11677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11678 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11679 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11680fi 11681 11682# Have a temporary directory for convenience. Make it in the build tree 11683# simply because there is no reason against having it here, and in addition, 11684# creating and moving files from /tmp can sometimes cause problems. 11685# Hook for its removal unless debugging. 11686# Note that there is a small window in which the directory will not be cleaned: 11687# after its creation but before its name has been assigned to `$tmp'. 11688$debug || 11689{ 11690 tmp= ac_tmp= 11691 trap 'exit_status=$? 11692 : "${ac_tmp:=$tmp}" 11693 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11694' 0 11695 trap 'as_fn_exit 1' 1 2 13 15 11696} 11697# Create a (secure) tmp directory for tmp files. 11698 11699{ 11700 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11701 test -d "$tmp" 11702} || 11703{ 11704 tmp=./conf$$-$RANDOM 11705 (umask 077 && mkdir "$tmp") 11706} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11707ac_tmp=$tmp 11708 11709# Set up the scripts for CONFIG_FILES section. 11710# No need to generate them if there are no CONFIG_FILES. 11711# This happens for instance with `./config.status config.h'. 11712if test -n "$CONFIG_FILES"; then 11713 11714 11715ac_cr=`echo X | tr X '\015'` 11716# On cygwin, bash can eat \r inside `` if the user requested igncr. 11717# But we know of no other shell where ac_cr would be empty at this 11718# point, so we can use a bashism as a fallback. 11719if test "x$ac_cr" = x; then 11720 eval ac_cr=\$\'\\r\' 11721fi 11722ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11723if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11724 ac_cs_awk_cr='\\r' 11725else 11726 ac_cs_awk_cr=$ac_cr 11727fi 11728 11729echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11730_ACEOF 11731 11732 11733{ 11734 echo "cat >conf$$subs.awk <<_ACEOF" && 11735 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11736 echo "_ACEOF" 11737} >conf$$subs.sh || 11738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11739ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11740ac_delim='%!_!# ' 11741for ac_last_try in false false false false false :; do 11742 . ./conf$$subs.sh || 11743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11744 11745 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11746 if test $ac_delim_n = $ac_delim_num; then 11747 break 11748 elif $ac_last_try; then 11749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11750 else 11751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11752 fi 11753done 11754rm -f conf$$subs.sh 11755 11756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11757cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11758_ACEOF 11759sed -n ' 11760h 11761s/^/S["/; s/!.*/"]=/ 11762p 11763g 11764s/^[^!]*!// 11765:repl 11766t repl 11767s/'"$ac_delim"'$// 11768t delim 11769:nl 11770h 11771s/\(.\{148\}\)..*/\1/ 11772t more1 11773s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11774p 11775n 11776b repl 11777:more1 11778s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11779p 11780g 11781s/.\{148\}// 11782t nl 11783:delim 11784h 11785s/\(.\{148\}\)..*/\1/ 11786t more2 11787s/["\\]/\\&/g; s/^/"/; s/$/"/ 11788p 11789b 11790:more2 11791s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11792p 11793g 11794s/.\{148\}// 11795t delim 11796' <conf$$subs.awk | sed ' 11797/^[^""]/{ 11798 N 11799 s/\n// 11800} 11801' >>$CONFIG_STATUS || ac_write_fail=1 11802rm -f conf$$subs.awk 11803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11804_ACAWK 11805cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11806 for (key in S) S_is_set[key] = 1 11807 FS = "" 11808 11809} 11810{ 11811 line = $ 0 11812 nfields = split(line, field, "@") 11813 substed = 0 11814 len = length(field[1]) 11815 for (i = 2; i < nfields; i++) { 11816 key = field[i] 11817 keylen = length(key) 11818 if (S_is_set[key]) { 11819 value = S[key] 11820 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11821 len += length(value) + length(field[++i]) 11822 substed = 1 11823 } else 11824 len += 1 + keylen 11825 } 11826 11827 print line 11828} 11829 11830_ACAWK 11831_ACEOF 11832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11833if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11834 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11835else 11836 cat 11837fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11838 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11839_ACEOF 11840 11841# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11842# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11843# trailing colons and then remove the whole line if VPATH becomes empty 11844# (actually we leave an empty line to preserve line numbers). 11845if test "x$srcdir" = x.; then 11846 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11847h 11848s/// 11849s/^/:/ 11850s/[ ]*$/:/ 11851s/:\$(srcdir):/:/g 11852s/:\${srcdir}:/:/g 11853s/:@srcdir@:/:/g 11854s/^:*// 11855s/:*$// 11856x 11857s/\(=[ ]*\).*/\1/ 11858G 11859s/\n// 11860s/^[^=]*=[ ]*$// 11861}' 11862fi 11863 11864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11865fi # test -n "$CONFIG_FILES" 11866 11867# Set up the scripts for CONFIG_HEADERS section. 11868# No need to generate them if there are no CONFIG_HEADERS. 11869# This happens for instance with `./config.status Makefile'. 11870if test -n "$CONFIG_HEADERS"; then 11871cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11872BEGIN { 11873_ACEOF 11874 11875# Transform confdefs.h into an awk script `defines.awk', embedded as 11876# here-document in config.status, that substitutes the proper values into 11877# config.h.in to produce config.h. 11878 11879# Create a delimiter string that does not exist in confdefs.h, to ease 11880# handling of long lines. 11881ac_delim='%!_!# ' 11882for ac_last_try in false false :; do 11883 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11884 if test -z "$ac_tt"; then 11885 break 11886 elif $ac_last_try; then 11887 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11888 else 11889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11890 fi 11891done 11892 11893# For the awk script, D is an array of macro values keyed by name, 11894# likewise P contains macro parameters if any. Preserve backslash 11895# newline sequences. 11896 11897ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11898sed -n ' 11899s/.\{148\}/&'"$ac_delim"'/g 11900t rset 11901:rset 11902s/^[ ]*#[ ]*define[ ][ ]*/ / 11903t def 11904d 11905:def 11906s/\\$// 11907t bsnl 11908s/["\\]/\\&/g 11909s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11910D["\1"]=" \3"/p 11911s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11912d 11913:bsnl 11914s/["\\]/\\&/g 11915s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11916D["\1"]=" \3\\\\\\n"\\/p 11917t cont 11918s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11919t cont 11920d 11921:cont 11922n 11923s/.\{148\}/&'"$ac_delim"'/g 11924t clear 11925:clear 11926s/\\$// 11927t bsnlc 11928s/["\\]/\\&/g; s/^/"/; s/$/"/p 11929d 11930:bsnlc 11931s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11932b cont 11933' <confdefs.h | sed ' 11934s/'"$ac_delim"'/"\\\ 11935"/g' >>$CONFIG_STATUS || ac_write_fail=1 11936 11937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11938 for (key in D) D_is_set[key] = 1 11939 FS = "" 11940} 11941/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11942 line = \$ 0 11943 split(line, arg, " ") 11944 if (arg[1] == "#") { 11945 defundef = arg[2] 11946 mac1 = arg[3] 11947 } else { 11948 defundef = substr(arg[1], 2) 11949 mac1 = arg[2] 11950 } 11951 split(mac1, mac2, "(") #) 11952 macro = mac2[1] 11953 prefix = substr(line, 1, index(line, defundef) - 1) 11954 if (D_is_set[macro]) { 11955 # Preserve the white space surrounding the "#". 11956 print prefix "define", macro P[macro] D[macro] 11957 next 11958 } else { 11959 # Replace #undef with comments. This is necessary, for example, 11960 # in the case of _POSIX_SOURCE, which is predefined and required 11961 # on some systems where configure will not decide to define it. 11962 if (defundef == "undef") { 11963 print "/*", prefix defundef, macro, "*/" 11964 next 11965 } 11966 } 11967} 11968{ print } 11969_ACAWK 11970_ACEOF 11971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11972 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11973fi # test -n "$CONFIG_HEADERS" 11974 11975 11976eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11977shift 11978for ac_tag 11979do 11980 case $ac_tag in 11981 :[FHLC]) ac_mode=$ac_tag; continue;; 11982 esac 11983 case $ac_mode$ac_tag in 11984 :[FHL]*:*);; 11985 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11986 :[FH]-) ac_tag=-:-;; 11987 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11988 esac 11989 ac_save_IFS=$IFS 11990 IFS=: 11991 set x $ac_tag 11992 IFS=$ac_save_IFS 11993 shift 11994 ac_file=$1 11995 shift 11996 11997 case $ac_mode in 11998 :L) ac_source=$1;; 11999 :[FH]) 12000 ac_file_inputs= 12001 for ac_f 12002 do 12003 case $ac_f in 12004 -) ac_f="$ac_tmp/stdin";; 12005 *) # Look for the file first in the build tree, then in the source tree 12006 # (if the path is not absolute). The absolute path cannot be DOS-style, 12007 # because $ac_f cannot contain `:'. 12008 test -f "$ac_f" || 12009 case $ac_f in 12010 [\\/$]*) false;; 12011 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12012 esac || 12013 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12014 esac 12015 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12016 as_fn_append ac_file_inputs " '$ac_f'" 12017 done 12018 12019 # Let's still pretend it is `configure' which instantiates (i.e., don't 12020 # use $as_me), people would be surprised to read: 12021 # /* config.h. Generated by config.status. */ 12022 configure_input='Generated from '` 12023 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12024 `' by configure.' 12025 if test x"$ac_file" != x-; then 12026 configure_input="$ac_file. $configure_input" 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12028$as_echo "$as_me: creating $ac_file" >&6;} 12029 fi 12030 # Neutralize special characters interpreted by sed in replacement strings. 12031 case $configure_input in #( 12032 *\&* | *\|* | *\\* ) 12033 ac_sed_conf_input=`$as_echo "$configure_input" | 12034 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12035 *) ac_sed_conf_input=$configure_input;; 12036 esac 12037 12038 case $ac_tag in 12039 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12041 esac 12042 ;; 12043 esac 12044 12045 ac_dir=`$as_dirname -- "$ac_file" || 12046$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12047 X"$ac_file" : 'X\(//\)[^/]' \| \ 12048 X"$ac_file" : 'X\(//\)$' \| \ 12049 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12050$as_echo X"$ac_file" | 12051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12052 s//\1/ 12053 q 12054 } 12055 /^X\(\/\/\)[^/].*/{ 12056 s//\1/ 12057 q 12058 } 12059 /^X\(\/\/\)$/{ 12060 s//\1/ 12061 q 12062 } 12063 /^X\(\/\).*/{ 12064 s//\1/ 12065 q 12066 } 12067 s/.*/./; q'` 12068 as_dir="$ac_dir"; as_fn_mkdir_p 12069 ac_builddir=. 12070 12071case "$ac_dir" in 12072.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12073*) 12074 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12075 # A ".." for each directory in $ac_dir_suffix. 12076 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12077 case $ac_top_builddir_sub in 12078 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12079 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12080 esac ;; 12081esac 12082ac_abs_top_builddir=$ac_pwd 12083ac_abs_builddir=$ac_pwd$ac_dir_suffix 12084# for backward compatibility: 12085ac_top_builddir=$ac_top_build_prefix 12086 12087case $srcdir in 12088 .) # We are building in place. 12089 ac_srcdir=. 12090 ac_top_srcdir=$ac_top_builddir_sub 12091 ac_abs_top_srcdir=$ac_pwd ;; 12092 [\\/]* | ?:[\\/]* ) # Absolute name. 12093 ac_srcdir=$srcdir$ac_dir_suffix; 12094 ac_top_srcdir=$srcdir 12095 ac_abs_top_srcdir=$srcdir ;; 12096 *) # Relative name. 12097 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12098 ac_top_srcdir=$ac_top_build_prefix$srcdir 12099 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12100esac 12101ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12102 12103 12104 case $ac_mode in 12105 :F) 12106 # 12107 # CONFIG_FILE 12108 # 12109 12110 case $INSTALL in 12111 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12112 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12113 esac 12114 ac_MKDIR_P=$MKDIR_P 12115 case $MKDIR_P in 12116 [\\/$]* | ?:[\\/]* ) ;; 12117 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12118 esac 12119_ACEOF 12120 12121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12122# If the template does not know about datarootdir, expand it. 12123# FIXME: This hack should be removed a few years after 2.60. 12124ac_datarootdir_hack=; ac_datarootdir_seen= 12125ac_sed_dataroot=' 12126/datarootdir/ { 12127 p 12128 q 12129} 12130/@datadir@/p 12131/@docdir@/p 12132/@infodir@/p 12133/@localedir@/p 12134/@mandir@/p' 12135case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12136*datarootdir*) ac_datarootdir_seen=yes;; 12137*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12139$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12140_ACEOF 12141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12142 ac_datarootdir_hack=' 12143 s&@datadir@&$datadir&g 12144 s&@docdir@&$docdir&g 12145 s&@infodir@&$infodir&g 12146 s&@localedir@&$localedir&g 12147 s&@mandir@&$mandir&g 12148 s&\\\${datarootdir}&$datarootdir&g' ;; 12149esac 12150_ACEOF 12151 12152# Neutralize VPATH when `$srcdir' = `.'. 12153# Shell code in configure.ac might set extrasub. 12154# FIXME: do we really want to maintain this feature? 12155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12156ac_sed_extra="$ac_vpsub 12157$extrasub 12158_ACEOF 12159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12160:t 12161/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12162s|@configure_input@|$ac_sed_conf_input|;t t 12163s&@top_builddir@&$ac_top_builddir_sub&;t t 12164s&@top_build_prefix@&$ac_top_build_prefix&;t t 12165s&@srcdir@&$ac_srcdir&;t t 12166s&@abs_srcdir@&$ac_abs_srcdir&;t t 12167s&@top_srcdir@&$ac_top_srcdir&;t t 12168s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12169s&@builddir@&$ac_builddir&;t t 12170s&@abs_builddir@&$ac_abs_builddir&;t t 12171s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12172s&@INSTALL@&$ac_INSTALL&;t t 12173s&@MKDIR_P@&$ac_MKDIR_P&;t t 12174$ac_datarootdir_hack 12175" 12176eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12177 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12178 12179test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12180 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12182 "$ac_tmp/out"`; test -z "$ac_out"; } && 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12184which seems to be undefined. Please make sure it is defined" >&5 12185$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12186which seems to be undefined. Please make sure it is defined" >&2;} 12187 12188 rm -f "$ac_tmp/stdin" 12189 case $ac_file in 12190 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12191 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12192 esac \ 12193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12194 ;; 12195 :H) 12196 # 12197 # CONFIG_HEADER 12198 # 12199 if test x"$ac_file" != x-; then 12200 { 12201 $as_echo "/* $configure_input */" \ 12202 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12203 } >"$ac_tmp/config.h" \ 12204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12205 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12207$as_echo "$as_me: $ac_file is unchanged" >&6;} 12208 else 12209 rm -f "$ac_file" 12210 mv "$ac_tmp/config.h" "$ac_file" \ 12211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12212 fi 12213 else 12214 $as_echo "/* $configure_input */" \ 12215 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12216 || as_fn_error $? "could not create -" "$LINENO" 5 12217 fi 12218# Compute "$ac_file"'s index in $config_headers. 12219_am_arg="$ac_file" 12220_am_stamp_count=1 12221for _am_header in $config_headers :; do 12222 case $_am_header in 12223 $_am_arg | $_am_arg:* ) 12224 break ;; 12225 * ) 12226 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12227 esac 12228done 12229echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12230$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12231 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12232 X"$_am_arg" : 'X\(//\)$' \| \ 12233 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12234$as_echo X"$_am_arg" | 12235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12236 s//\1/ 12237 q 12238 } 12239 /^X\(\/\/\)[^/].*/{ 12240 s//\1/ 12241 q 12242 } 12243 /^X\(\/\/\)$/{ 12244 s//\1/ 12245 q 12246 } 12247 /^X\(\/\).*/{ 12248 s//\1/ 12249 q 12250 } 12251 s/.*/./; q'`/stamp-h$_am_stamp_count 12252 ;; 12253 12254 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12255$as_echo "$as_me: executing $ac_file commands" >&6;} 12256 ;; 12257 esac 12258 12259 12260 case $ac_file$ac_mode in 12261 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12262 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12263 # are listed without --file. Let's play safe and only enable the eval 12264 # if we detect the quoting. 12265 case $CONFIG_FILES in 12266 *\'*) eval set x "$CONFIG_FILES" ;; 12267 *) set x $CONFIG_FILES ;; 12268 esac 12269 shift 12270 for mf 12271 do 12272 # Strip MF so we end up with the name of the file. 12273 mf=`echo "$mf" | sed -e 's/:.*$//'` 12274 # Check whether this is an Automake generated Makefile or not. 12275 # We used to match only the files named `Makefile.in', but 12276 # some people rename them; so instead we look at the file content. 12277 # Grep'ing the first line is not enough: some people post-process 12278 # each Makefile.in and add a new line on top of each file to say so. 12279 # Grep'ing the whole file is not good either: AIX grep has a line 12280 # limit of 2048, but all sed's we know have understand at least 4000. 12281 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12282 dirpart=`$as_dirname -- "$mf" || 12283$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12284 X"$mf" : 'X\(//\)[^/]' \| \ 12285 X"$mf" : 'X\(//\)$' \| \ 12286 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12287$as_echo X"$mf" | 12288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12289 s//\1/ 12290 q 12291 } 12292 /^X\(\/\/\)[^/].*/{ 12293 s//\1/ 12294 q 12295 } 12296 /^X\(\/\/\)$/{ 12297 s//\1/ 12298 q 12299 } 12300 /^X\(\/\).*/{ 12301 s//\1/ 12302 q 12303 } 12304 s/.*/./; q'` 12305 else 12306 continue 12307 fi 12308 # Extract the definition of DEPDIR, am__include, and am__quote 12309 # from the Makefile without running `make'. 12310 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12311 test -z "$DEPDIR" && continue 12312 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12313 test -z "am__include" && continue 12314 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12315 # When using ansi2knr, U may be empty or an underscore; expand it 12316 U=`sed -n 's/^U = //p' < "$mf"` 12317 # Find all dependency output files, they are included files with 12318 # $(DEPDIR) in their names. We invoke sed twice because it is the 12319 # simplest approach to changing $(DEPDIR) to its actual value in the 12320 # expansion. 12321 for file in `sed -n " 12322 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12323 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12324 # Make sure the directory exists. 12325 test -f "$dirpart/$file" && continue 12326 fdir=`$as_dirname -- "$file" || 12327$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12328 X"$file" : 'X\(//\)[^/]' \| \ 12329 X"$file" : 'X\(//\)$' \| \ 12330 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12331$as_echo X"$file" | 12332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12333 s//\1/ 12334 q 12335 } 12336 /^X\(\/\/\)[^/].*/{ 12337 s//\1/ 12338 q 12339 } 12340 /^X\(\/\/\)$/{ 12341 s//\1/ 12342 q 12343 } 12344 /^X\(\/\).*/{ 12345 s//\1/ 12346 q 12347 } 12348 s/.*/./; q'` 12349 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12350 # echo "creating $dirpart/$file" 12351 echo '# dummy' > "$dirpart/$file" 12352 done 12353 done 12354} 12355 ;; 12356 12357 esac 12358done # for ac_tag 12359 12360 12361as_fn_exit 0 12362_ACEOF 12363ac_clean_files=$ac_clean_files_save 12364 12365test $ac_write_fail = 0 || 12366 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12367 12368 12369# configure is writing to config.log, and then calls config.status. 12370# config.status does its own redirection, appending to config.log. 12371# Unfortunately, on DOS this fails, as config.log is still kept open 12372# by configure, so config.status won't be able to write to it; its 12373# output is simply discarded. So we exec the FD to /dev/null, 12374# effectively closing config.log, so it can be properly (re)opened and 12375# appended to by config.status. When coming back to configure, we 12376# need to make the FD available again. 12377if test "$no_create" != yes; then 12378 ac_cs_success=: 12379 ac_config_status_args= 12380 test "$silent" = yes && 12381 ac_config_status_args="$ac_config_status_args --quiet" 12382 exec 5>/dev/null 12383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12384 exec 5>>config.log 12385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12386 # would make configure fail if this is the last instruction. 12387 $ac_cs_success || as_fn_exit 1 12388fi 12389if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12391$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12392fi 12393 12394