configure revision 079e7944
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for makedepend 1.0.5. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='makedepend' 563PACKAGE_TARNAME='makedepend' 564PACKAGE_VERSION='1.0.5' 565PACKAGE_STRING='makedepend 1.0.5' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610X_LIBS 611X_CFLAGS 612LINT_FALSE 613LINT_TRUE 614LINT_FLAGS 615LINT 616MAN_SUBSTS 617XORG_MAN_PAGE 618ADMIN_MAN_DIR 619DRIVER_MAN_DIR 620MISC_MAN_DIR 621FILE_MAN_DIR 622LIB_MAN_DIR 623APP_MAN_DIR 624ADMIN_MAN_SUFFIX 625DRIVER_MAN_SUFFIX 626MISC_MAN_SUFFIX 627FILE_MAN_SUFFIX 628LIB_MAN_SUFFIX 629APP_MAN_SUFFIX 630SED 631host_os 632host_vendor 633host_cpu 634host 635build_os 636build_vendor 637build_cpu 638build 639INSTALL_CMD 640PKG_CONFIG 641CHANGELOG_CMD 642STRICT_CFLAGS 643CWARNFLAGS 644BASE_CFLAGS 645EGREP 646GREP 647CPP 648am__fastdepCC_FALSE 649am__fastdepCC_TRUE 650CCDEPMODE 651am__nodep 652AMDEPBACKSLASH 653AMDEP_FALSE 654AMDEP_TRUE 655am__quote 656am__include 657DEPDIR 658OBJEXT 659EXEEXT 660ac_ct_CC 661CPPFLAGS 662LDFLAGS 663CFLAGS 664CC 665AM_BACKSLASH 666AM_DEFAULT_VERBOSITY 667AM_DEFAULT_V 668AM_V 669am__untar 670am__tar 671AMTAR 672am__leading_dot 673SET_MAKE 674AWK 675mkdir_p 676MKDIR_P 677INSTALL_STRIP_PROGRAM 678STRIP 679install_sh 680MAKEINFO 681AUTOHEADER 682AUTOMAKE 683AUTOCONF 684ACLOCAL 685VERSION 686PACKAGE 687CYGPATH_W 688am__isrc 689INSTALL_DATA 690INSTALL_SCRIPT 691INSTALL_PROGRAM 692target_alias 693host_alias 694build_alias 695LIBS 696ECHO_T 697ECHO_N 698ECHO_C 699DEFS 700mandir 701localedir 702libdir 703psdir 704pdfdir 705dvidir 706htmldir 707infodir 708docdir 709oldincludedir 710includedir 711localstatedir 712sharedstatedir 713sysconfdir 714datadir 715datarootdir 716libexecdir 717sbindir 718bindir 719program_transform_name 720prefix 721exec_prefix 722PACKAGE_URL 723PACKAGE_BUGREPORT 724PACKAGE_STRING 725PACKAGE_VERSION 726PACKAGE_TARNAME 727PACKAGE_NAME 728PATH_SEPARATOR 729SHELL' 730ac_subst_files='' 731ac_user_opts=' 732enable_option_checking 733enable_silent_rules 734enable_dependency_tracking 735enable_selective_werror 736enable_strict_compilation 737with_lint 738enable_largefile 739' 740 ac_precious_vars='build_alias 741host_alias 742target_alias 743CC 744CFLAGS 745LDFLAGS 746LIBS 747CPPFLAGS 748CPP 749PKG_CONFIG 750LINT 751LINT_FLAGS 752X_CFLAGS 753X_LIBS' 754 755 756# Initialize some variables set by options. 757ac_init_help= 758ac_init_version=false 759ac_unrecognized_opts= 760ac_unrecognized_sep= 761# The variables have the same names as the options, with 762# dashes changed to underlines. 763cache_file=/dev/null 764exec_prefix=NONE 765no_create= 766no_recursion= 767prefix=NONE 768program_prefix=NONE 769program_suffix=NONE 770program_transform_name=s,x,x, 771silent= 772site= 773srcdir= 774verbose= 775x_includes=NONE 776x_libraries=NONE 777 778# Installation directory options. 779# These are left unexpanded so users can "make install exec_prefix=/foo" 780# and all the variables that are supposed to be based on exec_prefix 781# by default will actually change. 782# Use braces instead of parens because sh, perl, etc. also accept them. 783# (The list follows the same order as the GNU Coding Standards.) 784bindir='${exec_prefix}/bin' 785sbindir='${exec_prefix}/sbin' 786libexecdir='${exec_prefix}/libexec' 787datarootdir='${prefix}/share' 788datadir='${datarootdir}' 789sysconfdir='${prefix}/etc' 790sharedstatedir='${prefix}/com' 791localstatedir='${prefix}/var' 792includedir='${prefix}/include' 793oldincludedir='/usr/include' 794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 795infodir='${datarootdir}/info' 796htmldir='${docdir}' 797dvidir='${docdir}' 798pdfdir='${docdir}' 799psdir='${docdir}' 800libdir='${exec_prefix}/lib' 801localedir='${datarootdir}/locale' 802mandir='${datarootdir}/man' 803 804ac_prev= 805ac_dashdash= 806for ac_option 807do 808 # If the previous option needs an argument, assign it. 809 if test -n "$ac_prev"; then 810 eval $ac_prev=\$ac_option 811 ac_prev= 812 continue 813 fi 814 815 case $ac_option in 816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 817 *=) ac_optarg= ;; 818 *) ac_optarg=yes ;; 819 esac 820 821 # Accept the important Cygnus configure options, so we can diagnose typos. 822 823 case $ac_dashdash$ac_option in 824 --) 825 ac_dashdash=yes ;; 826 827 -bindir | --bindir | --bindi | --bind | --bin | --bi) 828 ac_prev=bindir ;; 829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 830 bindir=$ac_optarg ;; 831 832 -build | --build | --buil | --bui | --bu) 833 ac_prev=build_alias ;; 834 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 835 build_alias=$ac_optarg ;; 836 837 -cache-file | --cache-file | --cache-fil | --cache-fi \ 838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 839 ac_prev=cache_file ;; 840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 842 cache_file=$ac_optarg ;; 843 844 --config-cache | -C) 845 cache_file=config.cache ;; 846 847 -datadir | --datadir | --datadi | --datad) 848 ac_prev=datadir ;; 849 -datadir=* | --datadir=* | --datadi=* | --datad=*) 850 datadir=$ac_optarg ;; 851 852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 853 | --dataroo | --dataro | --datar) 854 ac_prev=datarootdir ;; 855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 857 datarootdir=$ac_optarg ;; 858 859 -disable-* | --disable-*) 860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 861 # Reject names that are not valid shell variable names. 862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 863 as_fn_error $? "invalid feature name: $ac_useropt" 864 ac_useropt_orig=$ac_useropt 865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 866 case $ac_user_opts in 867 *" 868"enable_$ac_useropt" 869"*) ;; 870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 871 ac_unrecognized_sep=', ';; 872 esac 873 eval enable_$ac_useropt=no ;; 874 875 -docdir | --docdir | --docdi | --doc | --do) 876 ac_prev=docdir ;; 877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 878 docdir=$ac_optarg ;; 879 880 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 881 ac_prev=dvidir ;; 882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 883 dvidir=$ac_optarg ;; 884 885 -enable-* | --enable-*) 886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 887 # Reject names that are not valid shell variable names. 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 889 as_fn_error $? "invalid feature name: $ac_useropt" 890 ac_useropt_orig=$ac_useropt 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 892 case $ac_user_opts in 893 *" 894"enable_$ac_useropt" 895"*) ;; 896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 897 ac_unrecognized_sep=', ';; 898 esac 899 eval enable_$ac_useropt=\$ac_optarg ;; 900 901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 903 | --exec | --exe | --ex) 904 ac_prev=exec_prefix ;; 905 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 906 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 907 | --exec=* | --exe=* | --ex=*) 908 exec_prefix=$ac_optarg ;; 909 910 -gas | --gas | --ga | --g) 911 # Obsolete; use --with-gas. 912 with_gas=yes ;; 913 914 -help | --help | --hel | --he | -h) 915 ac_init_help=long ;; 916 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 917 ac_init_help=recursive ;; 918 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 919 ac_init_help=short ;; 920 921 -host | --host | --hos | --ho) 922 ac_prev=host_alias ;; 923 -host=* | --host=* | --hos=* | --ho=*) 924 host_alias=$ac_optarg ;; 925 926 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 927 ac_prev=htmldir ;; 928 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 929 | --ht=*) 930 htmldir=$ac_optarg ;; 931 932 -includedir | --includedir | --includedi | --included | --include \ 933 | --includ | --inclu | --incl | --inc) 934 ac_prev=includedir ;; 935 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 936 | --includ=* | --inclu=* | --incl=* | --inc=*) 937 includedir=$ac_optarg ;; 938 939 -infodir | --infodir | --infodi | --infod | --info | --inf) 940 ac_prev=infodir ;; 941 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 942 infodir=$ac_optarg ;; 943 944 -libdir | --libdir | --libdi | --libd) 945 ac_prev=libdir ;; 946 -libdir=* | --libdir=* | --libdi=* | --libd=*) 947 libdir=$ac_optarg ;; 948 949 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 950 | --libexe | --libex | --libe) 951 ac_prev=libexecdir ;; 952 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 953 | --libexe=* | --libex=* | --libe=*) 954 libexecdir=$ac_optarg ;; 955 956 -localedir | --localedir | --localedi | --localed | --locale) 957 ac_prev=localedir ;; 958 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 959 localedir=$ac_optarg ;; 960 961 -localstatedir | --localstatedir | --localstatedi | --localstated \ 962 | --localstate | --localstat | --localsta | --localst | --locals) 963 ac_prev=localstatedir ;; 964 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 965 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 966 localstatedir=$ac_optarg ;; 967 968 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 969 ac_prev=mandir ;; 970 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 971 mandir=$ac_optarg ;; 972 973 -nfp | --nfp | --nf) 974 # Obsolete; use --without-fp. 975 with_fp=no ;; 976 977 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 978 | --no-cr | --no-c | -n) 979 no_create=yes ;; 980 981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 983 no_recursion=yes ;; 984 985 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 986 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 987 | --oldin | --oldi | --old | --ol | --o) 988 ac_prev=oldincludedir ;; 989 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 990 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 991 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 992 oldincludedir=$ac_optarg ;; 993 994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 995 ac_prev=prefix ;; 996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 997 prefix=$ac_optarg ;; 998 999 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1000 | --program-pre | --program-pr | --program-p) 1001 ac_prev=program_prefix ;; 1002 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1003 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1004 program_prefix=$ac_optarg ;; 1005 1006 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1007 | --program-suf | --program-su | --program-s) 1008 ac_prev=program_suffix ;; 1009 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1010 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1011 program_suffix=$ac_optarg ;; 1012 1013 -program-transform-name | --program-transform-name \ 1014 | --program-transform-nam | --program-transform-na \ 1015 | --program-transform-n | --program-transform- \ 1016 | --program-transform | --program-transfor \ 1017 | --program-transfo | --program-transf \ 1018 | --program-trans | --program-tran \ 1019 | --progr-tra | --program-tr | --program-t) 1020 ac_prev=program_transform_name ;; 1021 -program-transform-name=* | --program-transform-name=* \ 1022 | --program-transform-nam=* | --program-transform-na=* \ 1023 | --program-transform-n=* | --program-transform-=* \ 1024 | --program-transform=* | --program-transfor=* \ 1025 | --program-transfo=* | --program-transf=* \ 1026 | --program-trans=* | --program-tran=* \ 1027 | --progr-tra=* | --program-tr=* | --program-t=*) 1028 program_transform_name=$ac_optarg ;; 1029 1030 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1031 ac_prev=pdfdir ;; 1032 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1033 pdfdir=$ac_optarg ;; 1034 1035 -psdir | --psdir | --psdi | --psd | --ps) 1036 ac_prev=psdir ;; 1037 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1038 psdir=$ac_optarg ;; 1039 1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1041 | -silent | --silent | --silen | --sile | --sil) 1042 silent=yes ;; 1043 1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1045 ac_prev=sbindir ;; 1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1047 | --sbi=* | --sb=*) 1048 sbindir=$ac_optarg ;; 1049 1050 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1052 | --sharedst | --shareds | --shared | --share | --shar \ 1053 | --sha | --sh) 1054 ac_prev=sharedstatedir ;; 1055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1058 | --sha=* | --sh=*) 1059 sharedstatedir=$ac_optarg ;; 1060 1061 -site | --site | --sit) 1062 ac_prev=site ;; 1063 -site=* | --site=* | --sit=*) 1064 site=$ac_optarg ;; 1065 1066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1067 ac_prev=srcdir ;; 1068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1069 srcdir=$ac_optarg ;; 1070 1071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1072 | --syscon | --sysco | --sysc | --sys | --sy) 1073 ac_prev=sysconfdir ;; 1074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1076 sysconfdir=$ac_optarg ;; 1077 1078 -target | --target | --targe | --targ | --tar | --ta | --t) 1079 ac_prev=target_alias ;; 1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1081 target_alias=$ac_optarg ;; 1082 1083 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1084 verbose=yes ;; 1085 1086 -version | --version | --versio | --versi | --vers | -V) 1087 ac_init_version=: ;; 1088 1089 -with-* | --with-*) 1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1091 # Reject names that are not valid shell variable names. 1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1093 as_fn_error $? "invalid package name: $ac_useropt" 1094 ac_useropt_orig=$ac_useropt 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1096 case $ac_user_opts in 1097 *" 1098"with_$ac_useropt" 1099"*) ;; 1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1101 ac_unrecognized_sep=', ';; 1102 esac 1103 eval with_$ac_useropt=\$ac_optarg ;; 1104 1105 -without-* | --without-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"with_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=no ;; 1120 1121 --x) 1122 # Obsolete; use --with-x. 1123 with_x=yes ;; 1124 1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1126 | --x-incl | --x-inc | --x-in | --x-i) 1127 ac_prev=x_includes ;; 1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1130 x_includes=$ac_optarg ;; 1131 1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1134 ac_prev=x_libraries ;; 1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1137 x_libraries=$ac_optarg ;; 1138 1139 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1140Try \`$0 --help' for more information" 1141 ;; 1142 1143 *=*) 1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1145 # Reject names that are not valid shell variable names. 1146 case $ac_envvar in #( 1147 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1149 esac 1150 eval $ac_envvar=\$ac_optarg 1151 export $ac_envvar ;; 1152 1153 *) 1154 # FIXME: should be removed in autoconf 3.0. 1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1159 ;; 1160 1161 esac 1162done 1163 1164if test -n "$ac_prev"; then 1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1166 as_fn_error $? "missing argument to $ac_option" 1167fi 1168 1169if test -n "$ac_unrecognized_opts"; then 1170 case $enable_option_checking in 1171 no) ;; 1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1174 esac 1175fi 1176 1177# Check all directory arguments for consistency. 1178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1179 datadir sysconfdir sharedstatedir localstatedir includedir \ 1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1181 libdir localedir mandir 1182do 1183 eval ac_val=\$$ac_var 1184 # Remove trailing slashes. 1185 case $ac_val in 1186 */ ) 1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1188 eval $ac_var=\$ac_val;; 1189 esac 1190 # Be sure to have absolute directory names. 1191 case $ac_val in 1192 [\\/$]* | ?:[\\/]* ) continue;; 1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1194 esac 1195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1196done 1197 1198# There might be people who depend on the old broken behavior: `$host' 1199# used to hold the argument of --host etc. 1200# FIXME: To remove some day. 1201build=$build_alias 1202host=$host_alias 1203target=$target_alias 1204 1205# FIXME: To remove some day. 1206if test "x$host_alias" != x; then 1207 if test "x$build_alias" = x; then 1208 cross_compiling=maybe 1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1210 If a cross compiler is detected then cross compile mode will be used" >&2 1211 elif test "x$build_alias" != "x$host_alias"; then 1212 cross_compiling=yes 1213 fi 1214fi 1215 1216ac_tool_prefix= 1217test -n "$host_alias" && ac_tool_prefix=$host_alias- 1218 1219test "$silent" = yes && exec 6>/dev/null 1220 1221 1222ac_pwd=`pwd` && test -n "$ac_pwd" && 1223ac_ls_di=`ls -di .` && 1224ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1225 as_fn_error $? "working directory cannot be determined" 1226test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1227 as_fn_error $? "pwd does not report name of working directory" 1228 1229 1230# Find the source files, if location was not specified. 1231if test -z "$srcdir"; then 1232 ac_srcdir_defaulted=yes 1233 # Try the directory containing this script, then the parent directory. 1234 ac_confdir=`$as_dirname -- "$as_myself" || 1235$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1236 X"$as_myself" : 'X\(//\)[^/]' \| \ 1237 X"$as_myself" : 'X\(//\)$' \| \ 1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1239$as_echo X"$as_myself" | 1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\/\)[^/].*/{ 1245 s//\1/ 1246 q 1247 } 1248 /^X\(\/\/\)$/{ 1249 s//\1/ 1250 q 1251 } 1252 /^X\(\/\).*/{ 1253 s//\1/ 1254 q 1255 } 1256 s/.*/./; q'` 1257 srcdir=$ac_confdir 1258 if test ! -r "$srcdir/$ac_unique_file"; then 1259 srcdir=.. 1260 fi 1261else 1262 ac_srcdir_defaulted=no 1263fi 1264if test ! -r "$srcdir/$ac_unique_file"; then 1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1266 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1267fi 1268ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1269ac_abs_confdir=`( 1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1271 pwd)` 1272# When building in place, set srcdir=. 1273if test "$ac_abs_confdir" = "$ac_pwd"; then 1274 srcdir=. 1275fi 1276# Remove unnecessary trailing slashes from srcdir. 1277# Double slashes in file names in object file debugging info 1278# mess up M-x gdb in Emacs. 1279case $srcdir in 1280*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1281esac 1282for ac_var in $ac_precious_vars; do 1283 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1284 eval ac_env_${ac_var}_value=\$${ac_var} 1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1286 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1287done 1288 1289# 1290# Report the --help message. 1291# 1292if test "$ac_init_help" = "long"; then 1293 # Omit some internal or obsolete options to make the list less imposing. 1294 # This message is too long to be a string in the A/UX 3.1 sh. 1295 cat <<_ACEOF 1296\`configure' configures makedepend 1.0.5 to adapt to many kinds of systems. 1297 1298Usage: $0 [OPTION]... [VAR=VALUE]... 1299 1300To assign environment variables (e.g., CC, CFLAGS...), specify them as 1301VAR=VALUE. See below for descriptions of some of the useful variables. 1302 1303Defaults for the options are specified in brackets. 1304 1305Configuration: 1306 -h, --help display this help and exit 1307 --help=short display options specific to this package 1308 --help=recursive display the short help of all the included packages 1309 -V, --version display version information and exit 1310 -q, --quiet, --silent do not print \`checking ...' messages 1311 --cache-file=FILE cache test results in FILE [disabled] 1312 -C, --config-cache alias for \`--cache-file=config.cache' 1313 -n, --no-create do not create output files 1314 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1315 1316Installation directories: 1317 --prefix=PREFIX install architecture-independent files in PREFIX 1318 [$ac_default_prefix] 1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1320 [PREFIX] 1321 1322By default, \`make install' will install all the files in 1323\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1324an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1325for instance \`--prefix=\$HOME'. 1326 1327For better control, use the options below. 1328 1329Fine tuning of the installation directories: 1330 --bindir=DIR user executables [EPREFIX/bin] 1331 --sbindir=DIR system admin executables [EPREFIX/sbin] 1332 --libexecdir=DIR program executables [EPREFIX/libexec] 1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1336 --libdir=DIR object code libraries [EPREFIX/lib] 1337 --includedir=DIR C header files [PREFIX/include] 1338 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1341 --infodir=DIR info documentation [DATAROOTDIR/info] 1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1343 --mandir=DIR man documentation [DATAROOTDIR/man] 1344 --docdir=DIR documentation root [DATAROOTDIR/doc/makedepend] 1345 --htmldir=DIR html documentation [DOCDIR] 1346 --dvidir=DIR dvi documentation [DOCDIR] 1347 --pdfdir=DIR pdf documentation [DOCDIR] 1348 --psdir=DIR ps documentation [DOCDIR] 1349_ACEOF 1350 1351 cat <<\_ACEOF 1352 1353Program names: 1354 --program-prefix=PREFIX prepend PREFIX to installed program names 1355 --program-suffix=SUFFIX append SUFFIX to installed program names 1356 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1357 1358System types: 1359 --build=BUILD configure for building on BUILD [guessed] 1360 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1361_ACEOF 1362fi 1363 1364if test -n "$ac_init_help"; then 1365 case $ac_init_help in 1366 short | recursive ) echo "Configuration of makedepend 1.0.5:";; 1367 esac 1368 cat <<\_ACEOF 1369 1370Optional Features: 1371 --disable-option-checking ignore unrecognized --enable/--with options 1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1374 --enable-silent-rules less verbose build output (undo: "make V=1") 1375 --disable-silent-rules verbose build output (undo: "make V=0") 1376 --enable-dependency-tracking 1377 do not reject slow dependency extractors 1378 --disable-dependency-tracking 1379 speeds up one-time build 1380 --disable-selective-werror 1381 Turn off selective compiler errors. (default: 1382 enabled) 1383 --enable-strict-compilation 1384 Enable all warnings from compiler and make them 1385 errors (default: disabled) 1386 --disable-largefile omit support for large files 1387 1388Optional Packages: 1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1391 --with-lint Use a lint-style source code checker (default: 1392 disabled) 1393 1394Some influential environment variables: 1395 CC C compiler command 1396 CFLAGS C compiler flags 1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1398 nonstandard directory <lib dir> 1399 LIBS libraries to pass to the linker, e.g. -l<library> 1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1401 you have headers in a nonstandard directory <include dir> 1402 CPP C preprocessor 1403 PKG_CONFIG path to pkg-config utility 1404 LINT Path to a lint-style command 1405 LINT_FLAGS Flags for the lint-style command 1406 X_CFLAGS C compiler flags for X, overriding pkg-config 1407 X_LIBS linker flags for X, overriding pkg-config 1408 1409Use these variables to override the choices made by `configure' or to help 1410it to find libraries and programs with nonstandard names/locations. 1411 1412Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1413_ACEOF 1414ac_status=$? 1415fi 1416 1417if test "$ac_init_help" = "recursive"; then 1418 # If there are subdirs, report their specific --help. 1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1420 test -d "$ac_dir" || 1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1422 continue 1423 ac_builddir=. 1424 1425case "$ac_dir" in 1426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1427*) 1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1429 # A ".." for each directory in $ac_dir_suffix. 1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1431 case $ac_top_builddir_sub in 1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1434 esac ;; 1435esac 1436ac_abs_top_builddir=$ac_pwd 1437ac_abs_builddir=$ac_pwd$ac_dir_suffix 1438# for backward compatibility: 1439ac_top_builddir=$ac_top_build_prefix 1440 1441case $srcdir in 1442 .) # We are building in place. 1443 ac_srcdir=. 1444 ac_top_srcdir=$ac_top_builddir_sub 1445 ac_abs_top_srcdir=$ac_pwd ;; 1446 [\\/]* | ?:[\\/]* ) # Absolute name. 1447 ac_srcdir=$srcdir$ac_dir_suffix; 1448 ac_top_srcdir=$srcdir 1449 ac_abs_top_srcdir=$srcdir ;; 1450 *) # Relative name. 1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1452 ac_top_srcdir=$ac_top_build_prefix$srcdir 1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1454esac 1455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1456 1457 cd "$ac_dir" || { ac_status=$?; continue; } 1458 # Check for guested configure. 1459 if test -f "$ac_srcdir/configure.gnu"; then 1460 echo && 1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1462 elif test -f "$ac_srcdir/configure"; then 1463 echo && 1464 $SHELL "$ac_srcdir/configure" --help=recursive 1465 else 1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1467 fi || ac_status=$? 1468 cd "$ac_pwd" || { ac_status=$?; break; } 1469 done 1470fi 1471 1472test -n "$ac_init_help" && exit $ac_status 1473if $ac_init_version; then 1474 cat <<\_ACEOF 1475makedepend configure 1.0.5 1476generated by GNU Autoconf 2.68 1477 1478Copyright (C) 2010 Free Software Foundation, Inc. 1479This configure script is free software; the Free Software Foundation 1480gives unlimited permission to copy, distribute and modify it. 1481_ACEOF 1482 exit 1483fi 1484 1485## ------------------------ ## 1486## Autoconf initialization. ## 1487## ------------------------ ## 1488 1489# ac_fn_c_try_compile LINENO 1490# -------------------------- 1491# Try to compile conftest.$ac_ext, and return whether this succeeded. 1492ac_fn_c_try_compile () 1493{ 1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1495 rm -f conftest.$ac_objext 1496 if { { ac_try="$ac_compile" 1497case "(($ac_try" in 1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1499 *) ac_try_echo=$ac_try;; 1500esac 1501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1502$as_echo "$ac_try_echo"; } >&5 1503 (eval "$ac_compile") 2>conftest.err 1504 ac_status=$? 1505 if test -s conftest.err; then 1506 grep -v '^ *+' conftest.err >conftest.er1 1507 cat conftest.er1 >&5 1508 mv -f conftest.er1 conftest.err 1509 fi 1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1511 test $ac_status = 0; } && { 1512 test -z "$ac_c_werror_flag" || 1513 test ! -s conftest.err 1514 } && test -s conftest.$ac_objext; then : 1515 ac_retval=0 1516else 1517 $as_echo "$as_me: failed program was:" >&5 1518sed 's/^/| /' conftest.$ac_ext >&5 1519 1520 ac_retval=1 1521fi 1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1523 as_fn_set_status $ac_retval 1524 1525} # ac_fn_c_try_compile 1526 1527# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1528# --------------------------------------------- 1529# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1530# accordingly. 1531ac_fn_c_check_decl () 1532{ 1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1534 as_decl_name=`echo $2|sed 's/ *(.*//'` 1535 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1537$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1538if eval \${$3+:} false; then : 1539 $as_echo_n "(cached) " >&6 1540else 1541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1542/* end confdefs.h. */ 1543$4 1544int 1545main () 1546{ 1547#ifndef $as_decl_name 1548#ifdef __cplusplus 1549 (void) $as_decl_use; 1550#else 1551 (void) $as_decl_name; 1552#endif 1553#endif 1554 1555 ; 1556 return 0; 1557} 1558_ACEOF 1559if ac_fn_c_try_compile "$LINENO"; then : 1560 eval "$3=yes" 1561else 1562 eval "$3=no" 1563fi 1564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1565fi 1566eval ac_res=\$$3 1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1568$as_echo "$ac_res" >&6; } 1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1570 1571} # ac_fn_c_check_decl 1572 1573# ac_fn_c_try_cpp LINENO 1574# ---------------------- 1575# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1576ac_fn_c_try_cpp () 1577{ 1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1579 if { { ac_try="$ac_cpp conftest.$ac_ext" 1580case "(($ac_try" in 1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1582 *) ac_try_echo=$ac_try;; 1583esac 1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1585$as_echo "$ac_try_echo"; } >&5 1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1587 ac_status=$? 1588 if test -s conftest.err; then 1589 grep -v '^ *+' conftest.err >conftest.er1 1590 cat conftest.er1 >&5 1591 mv -f conftest.er1 conftest.err 1592 fi 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594 test $ac_status = 0; } > conftest.i && { 1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1596 test ! -s conftest.err 1597 }; then : 1598 ac_retval=0 1599else 1600 $as_echo "$as_me: failed program was:" >&5 1601sed 's/^/| /' conftest.$ac_ext >&5 1602 1603 ac_retval=1 1604fi 1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1606 as_fn_set_status $ac_retval 1607 1608} # ac_fn_c_try_cpp 1609 1610# ac_fn_c_try_run LINENO 1611# ---------------------- 1612# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1613# that executables *can* be run. 1614ac_fn_c_try_run () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 if { { ac_try="$ac_link" 1618case "(($ac_try" in 1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1620 *) ac_try_echo=$ac_try;; 1621esac 1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1623$as_echo "$ac_try_echo"; } >&5 1624 (eval "$ac_link") 2>&5 1625 ac_status=$? 1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1627 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1628 { { case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_try") 2>&5 1635 ac_status=$? 1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; }; }; then : 1638 ac_retval=0 1639else 1640 $as_echo "$as_me: program exited with status $ac_status" >&5 1641 $as_echo "$as_me: failed program was:" >&5 1642sed 's/^/| /' conftest.$ac_ext >&5 1643 1644 ac_retval=$ac_status 1645fi 1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_run 1651 1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1653# ------------------------------------------------------- 1654# Tests whether HEADER exists and can be compiled using the include files in 1655# INCLUDES, setting the cache variable VAR accordingly. 1656ac_fn_c_check_header_compile () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1660$as_echo_n "checking for $2... " >&6; } 1661if eval \${$3+:} false; then : 1662 $as_echo_n "(cached) " >&6 1663else 1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1665/* end confdefs.h. */ 1666$4 1667#include <$2> 1668_ACEOF 1669if ac_fn_c_try_compile "$LINENO"; then : 1670 eval "$3=yes" 1671else 1672 eval "$3=no" 1673fi 1674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1675fi 1676eval ac_res=\$$3 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1678$as_echo "$ac_res" >&6; } 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 1681} # ac_fn_c_check_header_compile 1682 1683# ac_fn_c_try_link LINENO 1684# ----------------------- 1685# Try to link conftest.$ac_ext, and return whether this succeeded. 1686ac_fn_c_try_link () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 rm -f conftest.$ac_objext conftest$ac_exeext 1690 if { { ac_try="$ac_link" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_link") 2>conftest.err 1698 ac_status=$? 1699 if test -s conftest.err; then 1700 grep -v '^ *+' conftest.err >conftest.er1 1701 cat conftest.er1 >&5 1702 mv -f conftest.er1 conftest.err 1703 fi 1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; } && { 1706 test -z "$ac_c_werror_flag" || 1707 test ! -s conftest.err 1708 } && test -s conftest$ac_exeext && { 1709 test "$cross_compiling" = yes || 1710 $as_test_x conftest$ac_exeext 1711 }; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 1718fi 1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1721 # interfere with the next link command; also delete a directory that is 1722 # left behind by Apple's compiler. We do this before executing the actions. 1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1725 as_fn_set_status $ac_retval 1726 1727} # ac_fn_c_try_link 1728 1729# ac_fn_c_check_func LINENO FUNC VAR 1730# ---------------------------------- 1731# Tests whether FUNC exists, setting the cache variable VAR accordingly 1732ac_fn_c_check_func () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1736$as_echo_n "checking for $2... " >&6; } 1737if eval \${$3+:} false; then : 1738 $as_echo_n "(cached) " >&6 1739else 1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741/* end confdefs.h. */ 1742/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1744#define $2 innocuous_$2 1745 1746/* System header to define __stub macros and hopefully few prototypes, 1747 which can conflict with char $2 (); below. 1748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1749 <limits.h> exists even on freestanding compilers. */ 1750 1751#ifdef __STDC__ 1752# include <limits.h> 1753#else 1754# include <assert.h> 1755#endif 1756 1757#undef $2 1758 1759/* Override any GCC internal prototype to avoid an error. 1760 Use char because int might match the return type of a GCC 1761 builtin and then its argument prototype would still apply. */ 1762#ifdef __cplusplus 1763extern "C" 1764#endif 1765char $2 (); 1766/* The GNU C library defines this for functions which it implements 1767 to always fail with ENOSYS. Some functions are actually named 1768 something starting with __ and the normal name is an alias. */ 1769#if defined __stub_$2 || defined __stub___$2 1770choke me 1771#endif 1772 1773int 1774main () 1775{ 1776return $2 (); 1777 ; 1778 return 0; 1779} 1780_ACEOF 1781if ac_fn_c_try_link "$LINENO"; then : 1782 eval "$3=yes" 1783else 1784 eval "$3=no" 1785fi 1786rm -f core conftest.err conftest.$ac_objext \ 1787 conftest$ac_exeext conftest.$ac_ext 1788fi 1789eval ac_res=\$$3 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1791$as_echo "$ac_res" >&6; } 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 1794} # ac_fn_c_check_func 1795cat >config.log <<_ACEOF 1796This file contains any messages produced by compilers while 1797running configure, to aid debugging if configure makes a mistake. 1798 1799It was created by makedepend $as_me 1.0.5, which was 1800generated by GNU Autoconf 2.68. Invocation command line was 1801 1802 $ $0 $@ 1803 1804_ACEOF 1805exec 5>>config.log 1806{ 1807cat <<_ASUNAME 1808## --------- ## 1809## Platform. ## 1810## --------- ## 1811 1812hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1813uname -m = `(uname -m) 2>/dev/null || echo unknown` 1814uname -r = `(uname -r) 2>/dev/null || echo unknown` 1815uname -s = `(uname -s) 2>/dev/null || echo unknown` 1816uname -v = `(uname -v) 2>/dev/null || echo unknown` 1817 1818/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1819/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1820 1821/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1822/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1823/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1824/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1825/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1826/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1827/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1828 1829_ASUNAME 1830 1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1832for as_dir in $PATH 1833do 1834 IFS=$as_save_IFS 1835 test -z "$as_dir" && as_dir=. 1836 $as_echo "PATH: $as_dir" 1837 done 1838IFS=$as_save_IFS 1839 1840} >&5 1841 1842cat >&5 <<_ACEOF 1843 1844 1845## ----------- ## 1846## Core tests. ## 1847## ----------- ## 1848 1849_ACEOF 1850 1851 1852# Keep a trace of the command line. 1853# Strip out --no-create and --no-recursion so they do not pile up. 1854# Strip out --silent because we don't want to record it for future runs. 1855# Also quote any args containing shell meta-characters. 1856# Make two passes to allow for proper duplicate-argument suppression. 1857ac_configure_args= 1858ac_configure_args0= 1859ac_configure_args1= 1860ac_must_keep_next=false 1861for ac_pass in 1 2 1862do 1863 for ac_arg 1864 do 1865 case $ac_arg in 1866 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1868 | -silent | --silent | --silen | --sile | --sil) 1869 continue ;; 1870 *\'*) 1871 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1872 esac 1873 case $ac_pass in 1874 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1875 2) 1876 as_fn_append ac_configure_args1 " '$ac_arg'" 1877 if test $ac_must_keep_next = true; then 1878 ac_must_keep_next=false # Got value, back to normal. 1879 else 1880 case $ac_arg in 1881 *=* | --config-cache | -C | -disable-* | --disable-* \ 1882 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1883 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1884 | -with-* | --with-* | -without-* | --without-* | --x) 1885 case "$ac_configure_args0 " in 1886 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1887 esac 1888 ;; 1889 -* ) ac_must_keep_next=true ;; 1890 esac 1891 fi 1892 as_fn_append ac_configure_args " '$ac_arg'" 1893 ;; 1894 esac 1895 done 1896done 1897{ ac_configure_args0=; unset ac_configure_args0;} 1898{ ac_configure_args1=; unset ac_configure_args1;} 1899 1900# When interrupted or exit'd, cleanup temporary files, and complete 1901# config.log. We remove comments because anyway the quotes in there 1902# would cause problems or look ugly. 1903# WARNING: Use '\'' to represent an apostrophe within the trap. 1904# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1905trap 'exit_status=$? 1906 # Save into config.log some information that might help in debugging. 1907 { 1908 echo 1909 1910 $as_echo "## ---------------- ## 1911## Cache variables. ## 1912## ---------------- ##" 1913 echo 1914 # The following way of writing the cache mishandles newlines in values, 1915( 1916 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1917 eval ac_val=\$$ac_var 1918 case $ac_val in #( 1919 *${as_nl}*) 1920 case $ac_var in #( 1921 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1922$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1923 esac 1924 case $ac_var in #( 1925 _ | IFS | as_nl) ;; #( 1926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1927 *) { eval $ac_var=; unset $ac_var;} ;; 1928 esac ;; 1929 esac 1930 done 1931 (set) 2>&1 | 1932 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1933 *${as_nl}ac_space=\ *) 1934 sed -n \ 1935 "s/'\''/'\''\\\\'\'''\''/g; 1936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1937 ;; #( 1938 *) 1939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1940 ;; 1941 esac | 1942 sort 1943) 1944 echo 1945 1946 $as_echo "## ----------------- ## 1947## Output variables. ## 1948## ----------------- ##" 1949 echo 1950 for ac_var in $ac_subst_vars 1951 do 1952 eval ac_val=\$$ac_var 1953 case $ac_val in 1954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1955 esac 1956 $as_echo "$ac_var='\''$ac_val'\''" 1957 done | sort 1958 echo 1959 1960 if test -n "$ac_subst_files"; then 1961 $as_echo "## ------------------- ## 1962## File substitutions. ## 1963## ------------------- ##" 1964 echo 1965 for ac_var in $ac_subst_files 1966 do 1967 eval ac_val=\$$ac_var 1968 case $ac_val in 1969 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1970 esac 1971 $as_echo "$ac_var='\''$ac_val'\''" 1972 done | sort 1973 echo 1974 fi 1975 1976 if test -s confdefs.h; then 1977 $as_echo "## ----------- ## 1978## confdefs.h. ## 1979## ----------- ##" 1980 echo 1981 cat confdefs.h 1982 echo 1983 fi 1984 test "$ac_signal" != 0 && 1985 $as_echo "$as_me: caught signal $ac_signal" 1986 $as_echo "$as_me: exit $exit_status" 1987 } >&5 1988 rm -f core *.core core.conftest.* && 1989 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1990 exit $exit_status 1991' 0 1992for ac_signal in 1 2 13 15; do 1993 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1994done 1995ac_signal=0 1996 1997# confdefs.h avoids OS command line length limits that DEFS can exceed. 1998rm -f -r conftest* confdefs.h 1999 2000$as_echo "/* confdefs.h */" > confdefs.h 2001 2002# Predefined preprocessor variables. 2003 2004cat >>confdefs.h <<_ACEOF 2005#define PACKAGE_NAME "$PACKAGE_NAME" 2006_ACEOF 2007 2008cat >>confdefs.h <<_ACEOF 2009#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2010_ACEOF 2011 2012cat >>confdefs.h <<_ACEOF 2013#define PACKAGE_VERSION "$PACKAGE_VERSION" 2014_ACEOF 2015 2016cat >>confdefs.h <<_ACEOF 2017#define PACKAGE_STRING "$PACKAGE_STRING" 2018_ACEOF 2019 2020cat >>confdefs.h <<_ACEOF 2021#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2022_ACEOF 2023 2024cat >>confdefs.h <<_ACEOF 2025#define PACKAGE_URL "$PACKAGE_URL" 2026_ACEOF 2027 2028 2029# Let the site file select an alternate cache file if it wants to. 2030# Prefer an explicitly selected file to automatically selected ones. 2031ac_site_file1=NONE 2032ac_site_file2=NONE 2033if test -n "$CONFIG_SITE"; then 2034 # We do not want a PATH search for config.site. 2035 case $CONFIG_SITE in #(( 2036 -*) ac_site_file1=./$CONFIG_SITE;; 2037 */*) ac_site_file1=$CONFIG_SITE;; 2038 *) ac_site_file1=./$CONFIG_SITE;; 2039 esac 2040elif test "x$prefix" != xNONE; then 2041 ac_site_file1=$prefix/share/config.site 2042 ac_site_file2=$prefix/etc/config.site 2043else 2044 ac_site_file1=$ac_default_prefix/share/config.site 2045 ac_site_file2=$ac_default_prefix/etc/config.site 2046fi 2047for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2048do 2049 test "x$ac_site_file" = xNONE && continue 2050 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2052$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2053 sed 's/^/| /' "$ac_site_file" >&5 2054 . "$ac_site_file" \ 2055 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2057as_fn_error $? "failed to load site script $ac_site_file 2058See \`config.log' for more details" "$LINENO" 5; } 2059 fi 2060done 2061 2062if test -r "$cache_file"; then 2063 # Some versions of bash will fail to source /dev/null (special files 2064 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2065 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2067$as_echo "$as_me: loading cache $cache_file" >&6;} 2068 case $cache_file in 2069 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2070 *) . "./$cache_file";; 2071 esac 2072 fi 2073else 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2075$as_echo "$as_me: creating cache $cache_file" >&6;} 2076 >$cache_file 2077fi 2078 2079# Check that the precious variables saved in the cache have kept the same 2080# value. 2081ac_cache_corrupted=false 2082for ac_var in $ac_precious_vars; do 2083 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2084 eval ac_new_set=\$ac_env_${ac_var}_set 2085 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2086 eval ac_new_val=\$ac_env_${ac_var}_value 2087 case $ac_old_set,$ac_new_set in 2088 set,) 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2090$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2091 ac_cache_corrupted=: ;; 2092 ,set) 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2094$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2095 ac_cache_corrupted=: ;; 2096 ,);; 2097 *) 2098 if test "x$ac_old_val" != "x$ac_new_val"; then 2099 # differences in whitespace do not lead to failure. 2100 ac_old_val_w=`echo x $ac_old_val` 2101 ac_new_val_w=`echo x $ac_new_val` 2102 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2104$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2105 ac_cache_corrupted=: 2106 else 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2108$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2109 eval $ac_var=\$ac_old_val 2110 fi 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2112$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2114$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2115 fi;; 2116 esac 2117 # Pass precious variables to config.status. 2118 if test "$ac_new_set" = set; then 2119 case $ac_new_val in 2120 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2121 *) ac_arg=$ac_var=$ac_new_val ;; 2122 esac 2123 case " $ac_configure_args " in 2124 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2125 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2126 esac 2127 fi 2128done 2129if $ac_cache_corrupted; then 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2133$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2134 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2135fi 2136## -------------------- ## 2137## Main body of script. ## 2138## -------------------- ## 2139 2140ac_ext=c 2141ac_cpp='$CPP $CPPFLAGS' 2142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2144ac_compiler_gnu=$ac_cv_c_compiler_gnu 2145 2146 2147 2148ac_config_headers="$ac_config_headers makedepend-config.h" 2149 2150 2151# Initialize Automake 2152am__api_version='1.14' 2153 2154ac_aux_dir= 2155for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2156 if test -f "$ac_dir/install-sh"; then 2157 ac_aux_dir=$ac_dir 2158 ac_install_sh="$ac_aux_dir/install-sh -c" 2159 break 2160 elif test -f "$ac_dir/install.sh"; then 2161 ac_aux_dir=$ac_dir 2162 ac_install_sh="$ac_aux_dir/install.sh -c" 2163 break 2164 elif test -f "$ac_dir/shtool"; then 2165 ac_aux_dir=$ac_dir 2166 ac_install_sh="$ac_aux_dir/shtool install -c" 2167 break 2168 fi 2169done 2170if test -z "$ac_aux_dir"; then 2171 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2172fi 2173 2174# These three variables are undocumented and unsupported, 2175# and are intended to be withdrawn in a future Autoconf release. 2176# They can cause serious problems if a builder's source tree is in a directory 2177# whose full name contains unusual characters. 2178ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2179ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2180ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2181 2182 2183# Find a good install program. We prefer a C program (faster), 2184# so one script is as good as another. But avoid the broken or 2185# incompatible versions: 2186# SysV /etc/install, /usr/sbin/install 2187# SunOS /usr/etc/install 2188# IRIX /sbin/install 2189# AIX /bin/install 2190# AmigaOS /C/install, which installs bootblocks on floppy discs 2191# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2192# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2193# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2194# OS/2's system install, which has a completely different semantic 2195# ./install, which can be erroneously created by make from ./install.sh. 2196# Reject install programs that cannot install multiple files. 2197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2198$as_echo_n "checking for a BSD-compatible install... " >&6; } 2199if test -z "$INSTALL"; then 2200if ${ac_cv_path_install+:} false; then : 2201 $as_echo_n "(cached) " >&6 2202else 2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2204for as_dir in $PATH 2205do 2206 IFS=$as_save_IFS 2207 test -z "$as_dir" && as_dir=. 2208 # Account for people who put trailing slashes in PATH elements. 2209case $as_dir/ in #(( 2210 ./ | .// | /[cC]/* | \ 2211 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2212 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2213 /usr/ucb/* ) ;; 2214 *) 2215 # OSF1 and SCO ODT 3.0 have their own names for install. 2216 # Don't use installbsd from OSF since it installs stuff as root 2217 # by default. 2218 for ac_prog in ginstall scoinst install; do 2219 for ac_exec_ext in '' $ac_executable_extensions; do 2220 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2221 if test $ac_prog = install && 2222 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2223 # AIX install. It has an incompatible calling convention. 2224 : 2225 elif test $ac_prog = install && 2226 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2227 # program-specific install script used by HP pwplus--don't use. 2228 : 2229 else 2230 rm -rf conftest.one conftest.two conftest.dir 2231 echo one > conftest.one 2232 echo two > conftest.two 2233 mkdir conftest.dir 2234 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2235 test -s conftest.one && test -s conftest.two && 2236 test -s conftest.dir/conftest.one && 2237 test -s conftest.dir/conftest.two 2238 then 2239 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2240 break 3 2241 fi 2242 fi 2243 fi 2244 done 2245 done 2246 ;; 2247esac 2248 2249 done 2250IFS=$as_save_IFS 2251 2252rm -rf conftest.one conftest.two conftest.dir 2253 2254fi 2255 if test "${ac_cv_path_install+set}" = set; then 2256 INSTALL=$ac_cv_path_install 2257 else 2258 # As a last resort, use the slow shell script. Don't cache a 2259 # value for INSTALL within a source directory, because that will 2260 # break other packages using the cache if that directory is 2261 # removed, or if the value is a relative name. 2262 INSTALL=$ac_install_sh 2263 fi 2264fi 2265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2266$as_echo "$INSTALL" >&6; } 2267 2268# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2269# It thinks the first close brace ends the variable substitution. 2270test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2271 2272test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2273 2274test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2275 2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2277$as_echo_n "checking whether build environment is sane... " >&6; } 2278# Reject unsafe characters in $srcdir or the absolute working directory 2279# name. Accept space and tab only in the latter. 2280am_lf=' 2281' 2282case `pwd` in 2283 *[\\\"\#\$\&\'\`$am_lf]*) 2284 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2285esac 2286case $srcdir in 2287 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2288 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2289esac 2290 2291# Do 'set' in a subshell so we don't clobber the current shell's 2292# arguments. Must try -L first in case configure is actually a 2293# symlink; some systems play weird games with the mod time of symlinks 2294# (eg FreeBSD returns the mod time of the symlink's containing 2295# directory). 2296if ( 2297 am_has_slept=no 2298 for am_try in 1 2; do 2299 echo "timestamp, slept: $am_has_slept" > conftest.file 2300 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2301 if test "$*" = "X"; then 2302 # -L didn't work. 2303 set X `ls -t "$srcdir/configure" conftest.file` 2304 fi 2305 if test "$*" != "X $srcdir/configure conftest.file" \ 2306 && test "$*" != "X conftest.file $srcdir/configure"; then 2307 2308 # If neither matched, then we have a broken ls. This can happen 2309 # if, for instance, CONFIG_SHELL is bash and it inherits a 2310 # broken ls alias from the environment. This has actually 2311 # happened. Such a system could not be considered "sane". 2312 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2313 alias in your environment" "$LINENO" 5 2314 fi 2315 if test "$2" = conftest.file || test $am_try -eq 2; then 2316 break 2317 fi 2318 # Just in case. 2319 sleep 1 2320 am_has_slept=yes 2321 done 2322 test "$2" = conftest.file 2323 ) 2324then 2325 # Ok. 2326 : 2327else 2328 as_fn_error $? "newly created file is older than distributed files! 2329Check your system clock" "$LINENO" 5 2330fi 2331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2332$as_echo "yes" >&6; } 2333# If we didn't sleep, we still need to ensure time stamps of config.status and 2334# generated files are strictly newer. 2335am_sleep_pid= 2336if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2337 ( sleep 1 ) & 2338 am_sleep_pid=$! 2339fi 2340 2341rm -f conftest.file 2342 2343test "$program_prefix" != NONE && 2344 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2345# Use a double $ so make ignores it. 2346test "$program_suffix" != NONE && 2347 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2348# Double any \ or $. 2349# By default was `s,x,x', remove it if useless. 2350ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2351program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2352 2353# expand $ac_aux_dir to an absolute path 2354am_aux_dir=`cd $ac_aux_dir && pwd` 2355 2356if test x"${MISSING+set}" != xset; then 2357 case $am_aux_dir in 2358 *\ * | *\ *) 2359 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2360 *) 2361 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2362 esac 2363fi 2364# Use eval to expand $SHELL 2365if eval "$MISSING --is-lightweight"; then 2366 am_missing_run="$MISSING " 2367else 2368 am_missing_run= 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2370$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2371fi 2372 2373if test x"${install_sh}" != xset; then 2374 case $am_aux_dir in 2375 *\ * | *\ *) 2376 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2377 *) 2378 install_sh="\${SHELL} $am_aux_dir/install-sh" 2379 esac 2380fi 2381 2382# Installed binaries are usually stripped using 'strip' when the user 2383# run "make install-strip". However 'strip' might not be the right 2384# tool to use in cross-compilation environments, therefore Automake 2385# will honor the 'STRIP' environment variable to overrule this program. 2386if test "$cross_compiling" != no; then 2387 if test -n "$ac_tool_prefix"; then 2388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2389set dummy ${ac_tool_prefix}strip; ac_word=$2 2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2391$as_echo_n "checking for $ac_word... " >&6; } 2392if ${ac_cv_prog_STRIP+:} false; then : 2393 $as_echo_n "(cached) " >&6 2394else 2395 if test -n "$STRIP"; then 2396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2397else 2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2399for as_dir in $PATH 2400do 2401 IFS=$as_save_IFS 2402 test -z "$as_dir" && as_dir=. 2403 for ac_exec_ext in '' $ac_executable_extensions; do 2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2405 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2407 break 2 2408 fi 2409done 2410 done 2411IFS=$as_save_IFS 2412 2413fi 2414fi 2415STRIP=$ac_cv_prog_STRIP 2416if test -n "$STRIP"; then 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2418$as_echo "$STRIP" >&6; } 2419else 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2421$as_echo "no" >&6; } 2422fi 2423 2424 2425fi 2426if test -z "$ac_cv_prog_STRIP"; then 2427 ac_ct_STRIP=$STRIP 2428 # Extract the first word of "strip", so it can be a program name with args. 2429set dummy strip; ac_word=$2 2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2431$as_echo_n "checking for $ac_word... " >&6; } 2432if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2433 $as_echo_n "(cached) " >&6 2434else 2435 if test -n "$ac_ct_STRIP"; then 2436 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2437else 2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2439for as_dir in $PATH 2440do 2441 IFS=$as_save_IFS 2442 test -z "$as_dir" && as_dir=. 2443 for ac_exec_ext in '' $ac_executable_extensions; do 2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2445 ac_cv_prog_ac_ct_STRIP="strip" 2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2447 break 2 2448 fi 2449done 2450 done 2451IFS=$as_save_IFS 2452 2453fi 2454fi 2455ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2456if test -n "$ac_ct_STRIP"; then 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2458$as_echo "$ac_ct_STRIP" >&6; } 2459else 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2461$as_echo "no" >&6; } 2462fi 2463 2464 if test "x$ac_ct_STRIP" = x; then 2465 STRIP=":" 2466 else 2467 case $cross_compiling:$ac_tool_warned in 2468yes:) 2469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2471ac_tool_warned=yes ;; 2472esac 2473 STRIP=$ac_ct_STRIP 2474 fi 2475else 2476 STRIP="$ac_cv_prog_STRIP" 2477fi 2478 2479fi 2480INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2481 2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2483$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2484if test -z "$MKDIR_P"; then 2485 if ${ac_cv_path_mkdir+:} false; then : 2486 $as_echo_n "(cached) " >&6 2487else 2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2489for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2490do 2491 IFS=$as_save_IFS 2492 test -z "$as_dir" && as_dir=. 2493 for ac_prog in mkdir gmkdir; do 2494 for ac_exec_ext in '' $ac_executable_extensions; do 2495 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2496 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2497 'mkdir (GNU coreutils) '* | \ 2498 'mkdir (coreutils) '* | \ 2499 'mkdir (fileutils) '4.1*) 2500 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2501 break 3;; 2502 esac 2503 done 2504 done 2505 done 2506IFS=$as_save_IFS 2507 2508fi 2509 2510 test -d ./--version && rmdir ./--version 2511 if test "${ac_cv_path_mkdir+set}" = set; then 2512 MKDIR_P="$ac_cv_path_mkdir -p" 2513 else 2514 # As a last resort, use the slow shell script. Don't cache a 2515 # value for MKDIR_P within a source directory, because that will 2516 # break other packages using the cache if that directory is 2517 # removed, or if the value is a relative name. 2518 MKDIR_P="$ac_install_sh -d" 2519 fi 2520fi 2521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2522$as_echo "$MKDIR_P" >&6; } 2523 2524for ac_prog in gawk mawk nawk awk 2525do 2526 # Extract the first word of "$ac_prog", so it can be a program name with args. 2527set dummy $ac_prog; ac_word=$2 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2529$as_echo_n "checking for $ac_word... " >&6; } 2530if ${ac_cv_prog_AWK+:} false; then : 2531 $as_echo_n "(cached) " >&6 2532else 2533 if test -n "$AWK"; then 2534 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2535else 2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2537for as_dir in $PATH 2538do 2539 IFS=$as_save_IFS 2540 test -z "$as_dir" && as_dir=. 2541 for ac_exec_ext in '' $ac_executable_extensions; do 2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2543 ac_cv_prog_AWK="$ac_prog" 2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2545 break 2 2546 fi 2547done 2548 done 2549IFS=$as_save_IFS 2550 2551fi 2552fi 2553AWK=$ac_cv_prog_AWK 2554if test -n "$AWK"; then 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2556$as_echo "$AWK" >&6; } 2557else 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2559$as_echo "no" >&6; } 2560fi 2561 2562 2563 test -n "$AWK" && break 2564done 2565 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2567$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2568set x ${MAKE-make} 2569ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2570if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 cat >conftest.make <<\_ACEOF 2574SHELL = /bin/sh 2575all: 2576 @echo '@@@%%%=$(MAKE)=@@@%%%' 2577_ACEOF 2578# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2579case `${MAKE-make} -f conftest.make 2>/dev/null` in 2580 *@@@%%%=?*=@@@%%%*) 2581 eval ac_cv_prog_make_${ac_make}_set=yes;; 2582 *) 2583 eval ac_cv_prog_make_${ac_make}_set=no;; 2584esac 2585rm -f conftest.make 2586fi 2587if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2589$as_echo "yes" >&6; } 2590 SET_MAKE= 2591else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2593$as_echo "no" >&6; } 2594 SET_MAKE="MAKE=${MAKE-make}" 2595fi 2596 2597rm -rf .tst 2>/dev/null 2598mkdir .tst 2>/dev/null 2599if test -d .tst; then 2600 am__leading_dot=. 2601else 2602 am__leading_dot=_ 2603fi 2604rmdir .tst 2>/dev/null 2605 2606# Check whether --enable-silent-rules was given. 2607if test "${enable_silent_rules+set}" = set; then : 2608 enableval=$enable_silent_rules; 2609fi 2610 2611case $enable_silent_rules in # ((( 2612 yes) AM_DEFAULT_VERBOSITY=0;; 2613 no) AM_DEFAULT_VERBOSITY=1;; 2614 *) AM_DEFAULT_VERBOSITY=1;; 2615esac 2616am_make=${MAKE-make} 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2618$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2619if ${am_cv_make_support_nested_variables+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 if $as_echo 'TRUE=$(BAR$(V)) 2623BAR0=false 2624BAR1=true 2625V=1 2626am__doit: 2627 @$(TRUE) 2628.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2629 am_cv_make_support_nested_variables=yes 2630else 2631 am_cv_make_support_nested_variables=no 2632fi 2633fi 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2635$as_echo "$am_cv_make_support_nested_variables" >&6; } 2636if test $am_cv_make_support_nested_variables = yes; then 2637 AM_V='$(V)' 2638 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2639else 2640 AM_V=$AM_DEFAULT_VERBOSITY 2641 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2642fi 2643AM_BACKSLASH='\' 2644 2645if test "`cd $srcdir && pwd`" != "`pwd`"; then 2646 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2647 # is not polluted with repeated "-I." 2648 am__isrc=' -I$(srcdir)' 2649 # test to see if srcdir already configured 2650 if test -f $srcdir/config.status; then 2651 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2652 fi 2653fi 2654 2655# test whether we have cygpath 2656if test -z "$CYGPATH_W"; then 2657 if (cygpath --version) >/dev/null 2>/dev/null; then 2658 CYGPATH_W='cygpath -w' 2659 else 2660 CYGPATH_W=echo 2661 fi 2662fi 2663 2664 2665# Define the identity of the package. 2666 PACKAGE='makedepend' 2667 VERSION='1.0.5' 2668 2669 2670cat >>confdefs.h <<_ACEOF 2671#define PACKAGE "$PACKAGE" 2672_ACEOF 2673 2674 2675cat >>confdefs.h <<_ACEOF 2676#define VERSION "$VERSION" 2677_ACEOF 2678 2679# Some tools Automake needs. 2680 2681ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2682 2683 2684AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2685 2686 2687AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2688 2689 2690AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2691 2692 2693MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2694 2695# For better backward compatibility. To be removed once Automake 1.9.x 2696# dies out for good. For more background, see: 2697# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2698# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2699mkdir_p='$(MKDIR_P)' 2700 2701# We need awk for the "check" target. The system "awk" is bad on 2702# some platforms. 2703# Always define AMTAR for backward compatibility. Yes, it's still used 2704# in the wild :-( We should find a proper way to deprecate it ... 2705AMTAR='$${TAR-tar}' 2706 2707 2708# We'll loop over all known methods to create a tar archive until one works. 2709_am_tools='gnutar pax cpio none' 2710 2711am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2712 2713 2714 2715 2716 2717 2718# POSIX will say in a future version that running "rm -f" with no argument 2719# is OK; and we want to be able to make that assumption in our Makefile 2720# recipes. So use an aggressive probe to check that the usage we want is 2721# actually supported "in the wild" to an acceptable degree. 2722# See automake bug#10828. 2723# To make any issue more visible, cause the running configure to be aborted 2724# by default if the 'rm' program in use doesn't match our expectations; the 2725# user can still override this though. 2726if rm -f && rm -fr && rm -rf; then : OK; else 2727 cat >&2 <<'END' 2728Oops! 2729 2730Your 'rm' program seems unable to run without file operands specified 2731on the command line, even when the '-f' option is present. This is contrary 2732to the behaviour of most rm programs out there, and not conforming with 2733the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2734 2735Please tell bug-automake@gnu.org about your system, including the value 2736of your $PATH and any error possibly output before this message. This 2737can help us improve future automake versions. 2738 2739END 2740 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2741 echo 'Configuration will proceed anyway, since you have set the' >&2 2742 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2743 echo >&2 2744 else 2745 cat >&2 <<'END' 2746Aborting the configuration process, to ensure you take notice of the issue. 2747 2748You can download and install GNU coreutils to get an 'rm' implementation 2749that behaves properly: <http://www.gnu.org/software/coreutils/>. 2750 2751If you want to complete the configuration process using your problematic 2752'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2753to "yes", and re-run configure. 2754 2755END 2756 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2757 fi 2758fi 2759 2760# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773DEPDIR="${am__leading_dot}deps" 2774 2775ac_config_commands="$ac_config_commands depfiles" 2776 2777 2778am_make=${MAKE-make} 2779cat > confinc << 'END' 2780am__doit: 2781 @echo this is the am__doit target 2782.PHONY: am__doit 2783END 2784# If we don't find an include directive, just comment out the code. 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2786$as_echo_n "checking for style of include used by $am_make... " >&6; } 2787am__include="#" 2788am__quote= 2789_am_result=none 2790# First try GNU make style include. 2791echo "include confinc" > confmf 2792# Ignore all kinds of additional output from 'make'. 2793case `$am_make -s -f confmf 2> /dev/null` in #( 2794*the\ am__doit\ target*) 2795 am__include=include 2796 am__quote= 2797 _am_result=GNU 2798 ;; 2799esac 2800# Now try BSD make style include. 2801if test "$am__include" = "#"; then 2802 echo '.include "confinc"' > confmf 2803 case `$am_make -s -f confmf 2> /dev/null` in #( 2804 *the\ am__doit\ target*) 2805 am__include=.include 2806 am__quote="\"" 2807 _am_result=BSD 2808 ;; 2809 esac 2810fi 2811 2812 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2814$as_echo "$_am_result" >&6; } 2815rm -f confinc confmf 2816 2817# Check whether --enable-dependency-tracking was given. 2818if test "${enable_dependency_tracking+set}" = set; then : 2819 enableval=$enable_dependency_tracking; 2820fi 2821 2822if test "x$enable_dependency_tracking" != xno; then 2823 am_depcomp="$ac_aux_dir/depcomp" 2824 AMDEPBACKSLASH='\' 2825 am__nodep='_no' 2826fi 2827 if test "x$enable_dependency_tracking" != xno; then 2828 AMDEP_TRUE= 2829 AMDEP_FALSE='#' 2830else 2831 AMDEP_TRUE='#' 2832 AMDEP_FALSE= 2833fi 2834 2835 2836ac_ext=c 2837ac_cpp='$CPP $CPPFLAGS' 2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2840ac_compiler_gnu=$ac_cv_c_compiler_gnu 2841if test -n "$ac_tool_prefix"; then 2842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2843set dummy ${ac_tool_prefix}gcc; ac_word=$2 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2845$as_echo_n "checking for $ac_word... " >&6; } 2846if ${ac_cv_prog_CC+:} false; then : 2847 $as_echo_n "(cached) " >&6 2848else 2849 if test -n "$CC"; then 2850 ac_cv_prog_CC="$CC" # Let the user override the test. 2851else 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853for as_dir in $PATH 2854do 2855 IFS=$as_save_IFS 2856 test -z "$as_dir" && as_dir=. 2857 for ac_exec_ext in '' $ac_executable_extensions; do 2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2859 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2861 break 2 2862 fi 2863done 2864 done 2865IFS=$as_save_IFS 2866 2867fi 2868fi 2869CC=$ac_cv_prog_CC 2870if test -n "$CC"; then 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2872$as_echo "$CC" >&6; } 2873else 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2875$as_echo "no" >&6; } 2876fi 2877 2878 2879fi 2880if test -z "$ac_cv_prog_CC"; then 2881 ac_ct_CC=$CC 2882 # Extract the first word of "gcc", so it can be a program name with args. 2883set dummy gcc; ac_word=$2 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2885$as_echo_n "checking for $ac_word... " >&6; } 2886if ${ac_cv_prog_ac_ct_CC+:} false; then : 2887 $as_echo_n "(cached) " >&6 2888else 2889 if test -n "$ac_ct_CC"; then 2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2891else 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 test -z "$as_dir" && as_dir=. 2897 for ac_exec_ext in '' $ac_executable_extensions; do 2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2899 ac_cv_prog_ac_ct_CC="gcc" 2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2901 break 2 2902 fi 2903done 2904 done 2905IFS=$as_save_IFS 2906 2907fi 2908fi 2909ac_ct_CC=$ac_cv_prog_ac_ct_CC 2910if test -n "$ac_ct_CC"; then 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2912$as_echo "$ac_ct_CC" >&6; } 2913else 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2915$as_echo "no" >&6; } 2916fi 2917 2918 if test "x$ac_ct_CC" = x; then 2919 CC="" 2920 else 2921 case $cross_compiling:$ac_tool_warned in 2922yes:) 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2925ac_tool_warned=yes ;; 2926esac 2927 CC=$ac_ct_CC 2928 fi 2929else 2930 CC="$ac_cv_prog_CC" 2931fi 2932 2933if test -z "$CC"; then 2934 if test -n "$ac_tool_prefix"; then 2935 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2936set dummy ${ac_tool_prefix}cc; ac_word=$2 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2938$as_echo_n "checking for $ac_word... " >&6; } 2939if ${ac_cv_prog_CC+:} false; then : 2940 $as_echo_n "(cached) " >&6 2941else 2942 if test -n "$CC"; then 2943 ac_cv_prog_CC="$CC" # Let the user override the test. 2944else 2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946for as_dir in $PATH 2947do 2948 IFS=$as_save_IFS 2949 test -z "$as_dir" && as_dir=. 2950 for ac_exec_ext in '' $ac_executable_extensions; do 2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2952 ac_cv_prog_CC="${ac_tool_prefix}cc" 2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2954 break 2 2955 fi 2956done 2957 done 2958IFS=$as_save_IFS 2959 2960fi 2961fi 2962CC=$ac_cv_prog_CC 2963if test -n "$CC"; then 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2965$as_echo "$CC" >&6; } 2966else 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2968$as_echo "no" >&6; } 2969fi 2970 2971 2972 fi 2973fi 2974if test -z "$CC"; then 2975 # Extract the first word of "cc", so it can be a program name with args. 2976set dummy cc; ac_word=$2 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978$as_echo_n "checking for $ac_word... " >&6; } 2979if ${ac_cv_prog_CC+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if test -n "$CC"; then 2983 ac_cv_prog_CC="$CC" # Let the user override the test. 2984else 2985 ac_prog_rejected=no 2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2987for as_dir in $PATH 2988do 2989 IFS=$as_save_IFS 2990 test -z "$as_dir" && as_dir=. 2991 for ac_exec_ext in '' $ac_executable_extensions; do 2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2994 ac_prog_rejected=yes 2995 continue 2996 fi 2997 ac_cv_prog_CC="cc" 2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2999 break 2 3000 fi 3001done 3002 done 3003IFS=$as_save_IFS 3004 3005if test $ac_prog_rejected = yes; then 3006 # We found a bogon in the path, so make sure we never use it. 3007 set dummy $ac_cv_prog_CC 3008 shift 3009 if test $# != 0; then 3010 # We chose a different compiler from the bogus one. 3011 # However, it has the same basename, so the bogon will be chosen 3012 # first if we set CC to just the basename; use the full file name. 3013 shift 3014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3015 fi 3016fi 3017fi 3018fi 3019CC=$ac_cv_prog_CC 3020if test -n "$CC"; then 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3022$as_echo "$CC" >&6; } 3023else 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025$as_echo "no" >&6; } 3026fi 3027 3028 3029fi 3030if test -z "$CC"; then 3031 if test -n "$ac_tool_prefix"; then 3032 for ac_prog in cl.exe 3033 do 3034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3035set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3037$as_echo_n "checking for $ac_word... " >&6; } 3038if ${ac_cv_prog_CC+:} false; then : 3039 $as_echo_n "(cached) " >&6 3040else 3041 if test -n "$CC"; then 3042 ac_cv_prog_CC="$CC" # Let the user override the test. 3043else 3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3045for as_dir in $PATH 3046do 3047 IFS=$as_save_IFS 3048 test -z "$as_dir" && as_dir=. 3049 for ac_exec_ext in '' $ac_executable_extensions; do 3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3053 break 2 3054 fi 3055done 3056 done 3057IFS=$as_save_IFS 3058 3059fi 3060fi 3061CC=$ac_cv_prog_CC 3062if test -n "$CC"; then 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3064$as_echo "$CC" >&6; } 3065else 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3067$as_echo "no" >&6; } 3068fi 3069 3070 3071 test -n "$CC" && break 3072 done 3073fi 3074if test -z "$CC"; then 3075 ac_ct_CC=$CC 3076 for ac_prog in cl.exe 3077do 3078 # Extract the first word of "$ac_prog", so it can be a program name with args. 3079set dummy $ac_prog; ac_word=$2 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3081$as_echo_n "checking for $ac_word... " >&6; } 3082if ${ac_cv_prog_ac_ct_CC+:} false; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 if test -n "$ac_ct_CC"; then 3086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3087else 3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3089for as_dir in $PATH 3090do 3091 IFS=$as_save_IFS 3092 test -z "$as_dir" && as_dir=. 3093 for ac_exec_ext in '' $ac_executable_extensions; do 3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3095 ac_cv_prog_ac_ct_CC="$ac_prog" 3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3097 break 2 3098 fi 3099done 3100 done 3101IFS=$as_save_IFS 3102 3103fi 3104fi 3105ac_ct_CC=$ac_cv_prog_ac_ct_CC 3106if test -n "$ac_ct_CC"; then 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3108$as_echo "$ac_ct_CC" >&6; } 3109else 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3111$as_echo "no" >&6; } 3112fi 3113 3114 3115 test -n "$ac_ct_CC" && break 3116done 3117 3118 if test "x$ac_ct_CC" = x; then 3119 CC="" 3120 else 3121 case $cross_compiling:$ac_tool_warned in 3122yes:) 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3125ac_tool_warned=yes ;; 3126esac 3127 CC=$ac_ct_CC 3128 fi 3129fi 3130 3131fi 3132 3133 3134test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3136as_fn_error $? "no acceptable C compiler found in \$PATH 3137See \`config.log' for more details" "$LINENO" 5; } 3138 3139# Provide some information about the compiler. 3140$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3141set X $ac_compile 3142ac_compiler=$2 3143for ac_option in --version -v -V -qversion; do 3144 { { ac_try="$ac_compiler $ac_option >&5" 3145case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148esac 3149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3150$as_echo "$ac_try_echo"; } >&5 3151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3152 ac_status=$? 3153 if test -s conftest.err; then 3154 sed '10a\ 3155... rest of stderr output deleted ... 3156 10q' conftest.err >conftest.er1 3157 cat conftest.er1 >&5 3158 fi 3159 rm -f conftest.er1 conftest.err 3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3161 test $ac_status = 0; } 3162done 3163 3164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3165/* end confdefs.h. */ 3166 3167int 3168main () 3169{ 3170 3171 ; 3172 return 0; 3173} 3174_ACEOF 3175ac_clean_files_save=$ac_clean_files 3176ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3177# Try to create an executable without -o first, disregard a.out. 3178# It will help us diagnose broken compilers, and finding out an intuition 3179# of exeext. 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3181$as_echo_n "checking whether the C compiler works... " >&6; } 3182ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3183 3184# The possible output files: 3185ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3186 3187ac_rmfiles= 3188for ac_file in $ac_files 3189do 3190 case $ac_file in 3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3192 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3193 esac 3194done 3195rm -f $ac_rmfiles 3196 3197if { { ac_try="$ac_link_default" 3198case "(($ac_try" in 3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3200 *) ac_try_echo=$ac_try;; 3201esac 3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3203$as_echo "$ac_try_echo"; } >&5 3204 (eval "$ac_link_default") 2>&5 3205 ac_status=$? 3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3207 test $ac_status = 0; }; then : 3208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3209# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3210# in a Makefile. We should not override ac_cv_exeext if it was cached, 3211# so that the user can short-circuit this test for compilers unknown to 3212# Autoconf. 3213for ac_file in $ac_files '' 3214do 3215 test -f "$ac_file" || continue 3216 case $ac_file in 3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3218 ;; 3219 [ab].out ) 3220 # We found the default executable, but exeext='' is most 3221 # certainly right. 3222 break;; 3223 *.* ) 3224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3225 then :; else 3226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3227 fi 3228 # We set ac_cv_exeext here because the later test for it is not 3229 # safe: cross compilers may not add the suffix if given an `-o' 3230 # argument, so we may need to know it at that point already. 3231 # Even if this section looks crufty: it has the advantage of 3232 # actually working. 3233 break;; 3234 * ) 3235 break;; 3236 esac 3237done 3238test "$ac_cv_exeext" = no && ac_cv_exeext= 3239 3240else 3241 ac_file='' 3242fi 3243if test -z "$ac_file"; then : 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3245$as_echo "no" >&6; } 3246$as_echo "$as_me: failed program was:" >&5 3247sed 's/^/| /' conftest.$ac_ext >&5 3248 3249{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3251as_fn_error 77 "C compiler cannot create executables 3252See \`config.log' for more details" "$LINENO" 5; } 3253else 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3255$as_echo "yes" >&6; } 3256fi 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3258$as_echo_n "checking for C compiler default output file name... " >&6; } 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3260$as_echo "$ac_file" >&6; } 3261ac_exeext=$ac_cv_exeext 3262 3263rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3264ac_clean_files=$ac_clean_files_save 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3266$as_echo_n "checking for suffix of executables... " >&6; } 3267if { { ac_try="$ac_link" 3268case "(($ac_try" in 3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3270 *) ac_try_echo=$ac_try;; 3271esac 3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3273$as_echo "$ac_try_echo"; } >&5 3274 (eval "$ac_link") 2>&5 3275 ac_status=$? 3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3277 test $ac_status = 0; }; then : 3278 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3279# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3280# work properly (i.e., refer to `conftest.exe'), while it won't with 3281# `rm'. 3282for ac_file in conftest.exe conftest conftest.*; do 3283 test -f "$ac_file" || continue 3284 case $ac_file in 3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3287 break;; 3288 * ) break;; 3289 esac 3290done 3291else 3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3294as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3295See \`config.log' for more details" "$LINENO" 5; } 3296fi 3297rm -f conftest conftest$ac_cv_exeext 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3299$as_echo "$ac_cv_exeext" >&6; } 3300 3301rm -f conftest.$ac_ext 3302EXEEXT=$ac_cv_exeext 3303ac_exeext=$EXEEXT 3304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305/* end confdefs.h. */ 3306#include <stdio.h> 3307int 3308main () 3309{ 3310FILE *f = fopen ("conftest.out", "w"); 3311 return ferror (f) || fclose (f) != 0; 3312 3313 ; 3314 return 0; 3315} 3316_ACEOF 3317ac_clean_files="$ac_clean_files conftest.out" 3318# Check that the compiler produces executables we can run. If not, either 3319# the compiler is broken, or we cross compile. 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3321$as_echo_n "checking whether we are cross compiling... " >&6; } 3322if test "$cross_compiling" != yes; then 3323 { { ac_try="$ac_link" 3324case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3329$as_echo "$ac_try_echo"; } >&5 3330 (eval "$ac_link") 2>&5 3331 ac_status=$? 3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3333 test $ac_status = 0; } 3334 if { ac_try='./conftest$ac_cv_exeext' 3335 { { case "(($ac_try" in 3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3337 *) ac_try_echo=$ac_try;; 3338esac 3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3340$as_echo "$ac_try_echo"; } >&5 3341 (eval "$ac_try") 2>&5 3342 ac_status=$? 3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3344 test $ac_status = 0; }; }; then 3345 cross_compiling=no 3346 else 3347 if test "$cross_compiling" = maybe; then 3348 cross_compiling=yes 3349 else 3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3352as_fn_error $? "cannot run C compiled programs. 3353If you meant to cross compile, use \`--host'. 3354See \`config.log' for more details" "$LINENO" 5; } 3355 fi 3356 fi 3357fi 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3359$as_echo "$cross_compiling" >&6; } 3360 3361rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3362ac_clean_files=$ac_clean_files_save 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3364$as_echo_n "checking for suffix of object files... " >&6; } 3365if ${ac_cv_objext+:} false; then : 3366 $as_echo_n "(cached) " >&6 3367else 3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3369/* end confdefs.h. */ 3370 3371int 3372main () 3373{ 3374 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379rm -f conftest.o conftest.obj 3380if { { ac_try="$ac_compile" 3381case "(($ac_try" in 3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3383 *) ac_try_echo=$ac_try;; 3384esac 3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3386$as_echo "$ac_try_echo"; } >&5 3387 (eval "$ac_compile") 2>&5 3388 ac_status=$? 3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3390 test $ac_status = 0; }; then : 3391 for ac_file in conftest.o conftest.obj conftest.*; do 3392 test -f "$ac_file" || continue; 3393 case $ac_file in 3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3396 break;; 3397 esac 3398done 3399else 3400 $as_echo "$as_me: failed program was:" >&5 3401sed 's/^/| /' conftest.$ac_ext >&5 3402 3403{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3405as_fn_error $? "cannot compute suffix of object files: cannot compile 3406See \`config.log' for more details" "$LINENO" 5; } 3407fi 3408rm -f conftest.$ac_cv_objext conftest.$ac_ext 3409fi 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3411$as_echo "$ac_cv_objext" >&6; } 3412OBJEXT=$ac_cv_objext 3413ac_objext=$OBJEXT 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3415$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3416if ${ac_cv_c_compiler_gnu+:} false; then : 3417 $as_echo_n "(cached) " >&6 3418else 3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3420/* end confdefs.h. */ 3421 3422int 3423main () 3424{ 3425#ifndef __GNUC__ 3426 choke me 3427#endif 3428 3429 ; 3430 return 0; 3431} 3432_ACEOF 3433if ac_fn_c_try_compile "$LINENO"; then : 3434 ac_compiler_gnu=yes 3435else 3436 ac_compiler_gnu=no 3437fi 3438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3439ac_cv_c_compiler_gnu=$ac_compiler_gnu 3440 3441fi 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3443$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3444if test $ac_compiler_gnu = yes; then 3445 GCC=yes 3446else 3447 GCC= 3448fi 3449ac_test_CFLAGS=${CFLAGS+set} 3450ac_save_CFLAGS=$CFLAGS 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3452$as_echo_n "checking whether $CC accepts -g... " >&6; } 3453if ${ac_cv_prog_cc_g+:} false; then : 3454 $as_echo_n "(cached) " >&6 3455else 3456 ac_save_c_werror_flag=$ac_c_werror_flag 3457 ac_c_werror_flag=yes 3458 ac_cv_prog_cc_g=no 3459 CFLAGS="-g" 3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3461/* end confdefs.h. */ 3462 3463int 3464main () 3465{ 3466 3467 ; 3468 return 0; 3469} 3470_ACEOF 3471if ac_fn_c_try_compile "$LINENO"; then : 3472 ac_cv_prog_cc_g=yes 3473else 3474 CFLAGS="" 3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3476/* end confdefs.h. */ 3477 3478int 3479main () 3480{ 3481 3482 ; 3483 return 0; 3484} 3485_ACEOF 3486if ac_fn_c_try_compile "$LINENO"; then : 3487 3488else 3489 ac_c_werror_flag=$ac_save_c_werror_flag 3490 CFLAGS="-g" 3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492/* end confdefs.h. */ 3493 3494int 3495main () 3496{ 3497 3498 ; 3499 return 0; 3500} 3501_ACEOF 3502if ac_fn_c_try_compile "$LINENO"; then : 3503 ac_cv_prog_cc_g=yes 3504fi 3505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3506fi 3507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3508fi 3509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3510 ac_c_werror_flag=$ac_save_c_werror_flag 3511fi 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3513$as_echo "$ac_cv_prog_cc_g" >&6; } 3514if test "$ac_test_CFLAGS" = set; then 3515 CFLAGS=$ac_save_CFLAGS 3516elif test $ac_cv_prog_cc_g = yes; then 3517 if test "$GCC" = yes; then 3518 CFLAGS="-g -O2" 3519 else 3520 CFLAGS="-g" 3521 fi 3522else 3523 if test "$GCC" = yes; then 3524 CFLAGS="-O2" 3525 else 3526 CFLAGS= 3527 fi 3528fi 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3530$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3531if ${ac_cv_prog_cc_c89+:} false; then : 3532 $as_echo_n "(cached) " >&6 3533else 3534 ac_cv_prog_cc_c89=no 3535ac_save_CC=$CC 3536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3537/* end confdefs.h. */ 3538#include <stdarg.h> 3539#include <stdio.h> 3540#include <sys/types.h> 3541#include <sys/stat.h> 3542/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3543struct buf { int x; }; 3544FILE * (*rcsopen) (struct buf *, struct stat *, int); 3545static char *e (p, i) 3546 char **p; 3547 int i; 3548{ 3549 return p[i]; 3550} 3551static char *f (char * (*g) (char **, int), char **p, ...) 3552{ 3553 char *s; 3554 va_list v; 3555 va_start (v,p); 3556 s = g (p, va_arg (v,int)); 3557 va_end (v); 3558 return s; 3559} 3560 3561/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3562 function prototypes and stuff, but not '\xHH' hex character constants. 3563 These don't provoke an error unfortunately, instead are silently treated 3564 as 'x'. The following induces an error, until -std is added to get 3565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3566 array size at least. It's necessary to write '\x00'==0 to get something 3567 that's true only with -std. */ 3568int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3569 3570/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3571 inside strings and character constants. */ 3572#define FOO(x) 'x' 3573int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3574 3575int test (int i, double x); 3576struct s1 {int (*f) (int a);}; 3577struct s2 {int (*f) (double a);}; 3578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3579int argc; 3580char **argv; 3581int 3582main () 3583{ 3584return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3591do 3592 CC="$ac_save_CC $ac_arg" 3593 if ac_fn_c_try_compile "$LINENO"; then : 3594 ac_cv_prog_cc_c89=$ac_arg 3595fi 3596rm -f core conftest.err conftest.$ac_objext 3597 test "x$ac_cv_prog_cc_c89" != "xno" && break 3598done 3599rm -f conftest.$ac_ext 3600CC=$ac_save_CC 3601 3602fi 3603# AC_CACHE_VAL 3604case "x$ac_cv_prog_cc_c89" in 3605 x) 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3607$as_echo "none needed" >&6; } ;; 3608 xno) 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3610$as_echo "unsupported" >&6; } ;; 3611 *) 3612 CC="$CC $ac_cv_prog_cc_c89" 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3614$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3615esac 3616if test "x$ac_cv_prog_cc_c89" != xno; then : 3617 3618fi 3619 3620ac_ext=c 3621ac_cpp='$CPP $CPPFLAGS' 3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3624ac_compiler_gnu=$ac_cv_c_compiler_gnu 3625 3626ac_ext=c 3627ac_cpp='$CPP $CPPFLAGS' 3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3630ac_compiler_gnu=$ac_cv_c_compiler_gnu 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3632$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3633if ${am_cv_prog_cc_c_o+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3637/* end confdefs.h. */ 3638 3639int 3640main () 3641{ 3642 3643 ; 3644 return 0; 3645} 3646_ACEOF 3647 # Make sure it works both with $CC and with simple cc. 3648 # Following AC_PROG_CC_C_O, we do the test twice because some 3649 # compilers refuse to overwrite an existing .o file with -o, 3650 # though they will create one. 3651 am_cv_prog_cc_c_o=yes 3652 for am_i in 1 2; do 3653 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3654 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3655 ac_status=$? 3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3657 (exit $ac_status); } \ 3658 && test -f conftest2.$ac_objext; then 3659 : OK 3660 else 3661 am_cv_prog_cc_c_o=no 3662 break 3663 fi 3664 done 3665 rm -f core conftest* 3666 unset am_i 3667fi 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3669$as_echo "$am_cv_prog_cc_c_o" >&6; } 3670if test "$am_cv_prog_cc_c_o" != yes; then 3671 # Losing compiler, so override with the script. 3672 # FIXME: It is wrong to rewrite CC. 3673 # But if we don't then we get into trouble of one sort or another. 3674 # A longer-term fix would be to have automake use am__CC in this case, 3675 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3676 CC="$am_aux_dir/compile $CC" 3677fi 3678ac_ext=c 3679ac_cpp='$CPP $CPPFLAGS' 3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3682ac_compiler_gnu=$ac_cv_c_compiler_gnu 3683 3684 3685depcc="$CC" am_compiler_list= 3686 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3688$as_echo_n "checking dependency style of $depcc... " >&6; } 3689if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3690 $as_echo_n "(cached) " >&6 3691else 3692 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3693 # We make a subdir and do the tests there. Otherwise we can end up 3694 # making bogus files that we don't know about and never remove. For 3695 # instance it was reported that on HP-UX the gcc test will end up 3696 # making a dummy file named 'D' -- because '-MD' means "put the output 3697 # in D". 3698 rm -rf conftest.dir 3699 mkdir conftest.dir 3700 # Copy depcomp to subdir because otherwise we won't find it if we're 3701 # using a relative directory. 3702 cp "$am_depcomp" conftest.dir 3703 cd conftest.dir 3704 # We will build objects and dependencies in a subdirectory because 3705 # it helps to detect inapplicable dependency modes. For instance 3706 # both Tru64's cc and ICC support -MD to output dependencies as a 3707 # side effect of compilation, but ICC will put the dependencies in 3708 # the current directory while Tru64 will put them in the object 3709 # directory. 3710 mkdir sub 3711 3712 am_cv_CC_dependencies_compiler_type=none 3713 if test "$am_compiler_list" = ""; then 3714 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3715 fi 3716 am__universal=false 3717 case " $depcc " in #( 3718 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3719 esac 3720 3721 for depmode in $am_compiler_list; do 3722 # Setup a source with many dependencies, because some compilers 3723 # like to wrap large dependency lists on column 80 (with \), and 3724 # we should not choose a depcomp mode which is confused by this. 3725 # 3726 # We need to recreate these files for each test, as the compiler may 3727 # overwrite some of them when testing with obscure command lines. 3728 # This happens at least with the AIX C compiler. 3729 : > sub/conftest.c 3730 for i in 1 2 3 4 5 6; do 3731 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3732 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3733 # Solaris 10 /bin/sh. 3734 echo '/* dummy */' > sub/conftst$i.h 3735 done 3736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3737 3738 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3739 # mode. It turns out that the SunPro C++ compiler does not properly 3740 # handle '-M -o', and we need to detect this. Also, some Intel 3741 # versions had trouble with output in subdirs. 3742 am__obj=sub/conftest.${OBJEXT-o} 3743 am__minus_obj="-o $am__obj" 3744 case $depmode in 3745 gcc) 3746 # This depmode causes a compiler race in universal mode. 3747 test "$am__universal" = false || continue 3748 ;; 3749 nosideeffect) 3750 # After this tag, mechanisms are not by side-effect, so they'll 3751 # only be used when explicitly requested. 3752 if test "x$enable_dependency_tracking" = xyes; then 3753 continue 3754 else 3755 break 3756 fi 3757 ;; 3758 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3759 # This compiler won't grok '-c -o', but also, the minuso test has 3760 # not run yet. These depmodes are late enough in the game, and 3761 # so weak that their functioning should not be impacted. 3762 am__obj=conftest.${OBJEXT-o} 3763 am__minus_obj= 3764 ;; 3765 none) break ;; 3766 esac 3767 if depmode=$depmode \ 3768 source=sub/conftest.c object=$am__obj \ 3769 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3770 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3771 >/dev/null 2>conftest.err && 3772 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3774 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3776 # icc doesn't choke on unknown options, it will just issue warnings 3777 # or remarks (even with -Werror). So we grep stderr for any message 3778 # that says an option was ignored or not supported. 3779 # When given -MP, icc 7.0 and 7.1 complain thusly: 3780 # icc: Command line warning: ignoring option '-M'; no argument required 3781 # The diagnosis changed in icc 8.0: 3782 # icc: Command line remark: option '-MP' not supported 3783 if (grep 'ignoring option' conftest.err || 3784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3785 am_cv_CC_dependencies_compiler_type=$depmode 3786 break 3787 fi 3788 fi 3789 done 3790 3791 cd .. 3792 rm -rf conftest.dir 3793else 3794 am_cv_CC_dependencies_compiler_type=none 3795fi 3796 3797fi 3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3799$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3800CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3801 3802 if 3803 test "x$enable_dependency_tracking" != xno \ 3804 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3805 am__fastdepCC_TRUE= 3806 am__fastdepCC_FALSE='#' 3807else 3808 am__fastdepCC_TRUE='#' 3809 am__fastdepCC_FALSE= 3810fi 3811 3812 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3814$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3815if ${ac_cv_prog_cc_c99+:} false; then : 3816 $as_echo_n "(cached) " >&6 3817else 3818 ac_cv_prog_cc_c99=no 3819ac_save_CC=$CC 3820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3821/* end confdefs.h. */ 3822#include <stdarg.h> 3823#include <stdbool.h> 3824#include <stdlib.h> 3825#include <wchar.h> 3826#include <stdio.h> 3827 3828// Check varargs macros. These examples are taken from C99 6.10.3.5. 3829#define debug(...) fprintf (stderr, __VA_ARGS__) 3830#define showlist(...) puts (#__VA_ARGS__) 3831#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3832static void 3833test_varargs_macros (void) 3834{ 3835 int x = 1234; 3836 int y = 5678; 3837 debug ("Flag"); 3838 debug ("X = %d\n", x); 3839 showlist (The first, second, and third items.); 3840 report (x>y, "x is %d but y is %d", x, y); 3841} 3842 3843// Check long long types. 3844#define BIG64 18446744073709551615ull 3845#define BIG32 4294967295ul 3846#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3847#if !BIG_OK 3848 your preprocessor is broken; 3849#endif 3850#if BIG_OK 3851#else 3852 your preprocessor is broken; 3853#endif 3854static long long int bignum = -9223372036854775807LL; 3855static unsigned long long int ubignum = BIG64; 3856 3857struct incomplete_array 3858{ 3859 int datasize; 3860 double data[]; 3861}; 3862 3863struct named_init { 3864 int number; 3865 const wchar_t *name; 3866 double average; 3867}; 3868 3869typedef const char *ccp; 3870 3871static inline int 3872test_restrict (ccp restrict text) 3873{ 3874 // See if C++-style comments work. 3875 // Iterate through items via the restricted pointer. 3876 // Also check for declarations in for loops. 3877 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3878 continue; 3879 return 0; 3880} 3881 3882// Check varargs and va_copy. 3883static void 3884test_varargs (const char *format, ...) 3885{ 3886 va_list args; 3887 va_start (args, format); 3888 va_list args_copy; 3889 va_copy (args_copy, args); 3890 3891 const char *str; 3892 int number; 3893 float fnumber; 3894 3895 while (*format) 3896 { 3897 switch (*format++) 3898 { 3899 case 's': // string 3900 str = va_arg (args_copy, const char *); 3901 break; 3902 case 'd': // int 3903 number = va_arg (args_copy, int); 3904 break; 3905 case 'f': // float 3906 fnumber = va_arg (args_copy, double); 3907 break; 3908 default: 3909 break; 3910 } 3911 } 3912 va_end (args_copy); 3913 va_end (args); 3914} 3915 3916int 3917main () 3918{ 3919 3920 // Check bool. 3921 _Bool success = false; 3922 3923 // Check restrict. 3924 if (test_restrict ("String literal") == 0) 3925 success = true; 3926 char *restrict newvar = "Another string"; 3927 3928 // Check varargs. 3929 test_varargs ("s, d' f .", "string", 65, 34.234); 3930 test_varargs_macros (); 3931 3932 // Check flexible array members. 3933 struct incomplete_array *ia = 3934 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3935 ia->datasize = 10; 3936 for (int i = 0; i < ia->datasize; ++i) 3937 ia->data[i] = i * 1.234; 3938 3939 // Check named initializers. 3940 struct named_init ni = { 3941 .number = 34, 3942 .name = L"Test wide string", 3943 .average = 543.34343, 3944 }; 3945 3946 ni.number = 58; 3947 3948 int dynamic_array[ni.number]; 3949 dynamic_array[ni.number - 1] = 543; 3950 3951 // work around unused variable warnings 3952 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3953 || dynamic_array[ni.number - 1] != 543); 3954 3955 ; 3956 return 0; 3957} 3958_ACEOF 3959for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3960do 3961 CC="$ac_save_CC $ac_arg" 3962 if ac_fn_c_try_compile "$LINENO"; then : 3963 ac_cv_prog_cc_c99=$ac_arg 3964fi 3965rm -f core conftest.err conftest.$ac_objext 3966 test "x$ac_cv_prog_cc_c99" != "xno" && break 3967done 3968rm -f conftest.$ac_ext 3969CC=$ac_save_CC 3970 3971fi 3972# AC_CACHE_VAL 3973case "x$ac_cv_prog_cc_c99" in 3974 x) 3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3976$as_echo "none needed" >&6; } ;; 3977 xno) 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3979$as_echo "unsupported" >&6; } ;; 3980 *) 3981 CC="$CC $ac_cv_prog_cc_c99" 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3983$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3984esac 3985if test "x$ac_cv_prog_cc_c99" != xno; then : 3986 3987fi 3988 3989 3990 3991ac_ext=c 3992ac_cpp='$CPP $CPPFLAGS' 3993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3995ac_compiler_gnu=$ac_cv_c_compiler_gnu 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3997$as_echo_n "checking how to run the C preprocessor... " >&6; } 3998# On Suns, sometimes $CPP names a directory. 3999if test -n "$CPP" && test -d "$CPP"; then 4000 CPP= 4001fi 4002if test -z "$CPP"; then 4003 if ${ac_cv_prog_CPP+:} false; then : 4004 $as_echo_n "(cached) " >&6 4005else 4006 # Double quotes because CPP needs to be expanded 4007 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4008 do 4009 ac_preproc_ok=false 4010for ac_c_preproc_warn_flag in '' yes 4011do 4012 # Use a header file that comes with gcc, so configuring glibc 4013 # with a fresh cross-compiler works. 4014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4015 # <limits.h> exists even on freestanding compilers. 4016 # On the NeXT, cc -E runs the code through the compiler's parser, 4017 # not just through cpp. "Syntax error" is here to catch this case. 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4019/* end confdefs.h. */ 4020#ifdef __STDC__ 4021# include <limits.h> 4022#else 4023# include <assert.h> 4024#endif 4025 Syntax error 4026_ACEOF 4027if ac_fn_c_try_cpp "$LINENO"; then : 4028 4029else 4030 # Broken: fails on valid input. 4031continue 4032fi 4033rm -f conftest.err conftest.i conftest.$ac_ext 4034 4035 # OK, works on sane cases. Now check whether nonexistent headers 4036 # can be detected and how. 4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038/* end confdefs.h. */ 4039#include <ac_nonexistent.h> 4040_ACEOF 4041if ac_fn_c_try_cpp "$LINENO"; then : 4042 # Broken: success on invalid input. 4043continue 4044else 4045 # Passes both tests. 4046ac_preproc_ok=: 4047break 4048fi 4049rm -f conftest.err conftest.i conftest.$ac_ext 4050 4051done 4052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4053rm -f conftest.i conftest.err conftest.$ac_ext 4054if $ac_preproc_ok; then : 4055 break 4056fi 4057 4058 done 4059 ac_cv_prog_CPP=$CPP 4060 4061fi 4062 CPP=$ac_cv_prog_CPP 4063else 4064 ac_cv_prog_CPP=$CPP 4065fi 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4067$as_echo "$CPP" >&6; } 4068ac_preproc_ok=false 4069for ac_c_preproc_warn_flag in '' yes 4070do 4071 # Use a header file that comes with gcc, so configuring glibc 4072 # with a fresh cross-compiler works. 4073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4074 # <limits.h> exists even on freestanding compilers. 4075 # On the NeXT, cc -E runs the code through the compiler's parser, 4076 # not just through cpp. "Syntax error" is here to catch this case. 4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4078/* end confdefs.h. */ 4079#ifdef __STDC__ 4080# include <limits.h> 4081#else 4082# include <assert.h> 4083#endif 4084 Syntax error 4085_ACEOF 4086if ac_fn_c_try_cpp "$LINENO"; then : 4087 4088else 4089 # Broken: fails on valid input. 4090continue 4091fi 4092rm -f conftest.err conftest.i conftest.$ac_ext 4093 4094 # OK, works on sane cases. Now check whether nonexistent headers 4095 # can be detected and how. 4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4097/* end confdefs.h. */ 4098#include <ac_nonexistent.h> 4099_ACEOF 4100if ac_fn_c_try_cpp "$LINENO"; then : 4101 # Broken: success on invalid input. 4102continue 4103else 4104 # Passes both tests. 4105ac_preproc_ok=: 4106break 4107fi 4108rm -f conftest.err conftest.i conftest.$ac_ext 4109 4110done 4111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4112rm -f conftest.i conftest.err conftest.$ac_ext 4113if $ac_preproc_ok; then : 4114 4115else 4116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4118as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4119See \`config.log' for more details" "$LINENO" 5; } 4120fi 4121 4122ac_ext=c 4123ac_cpp='$CPP $CPPFLAGS' 4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4126ac_compiler_gnu=$ac_cv_c_compiler_gnu 4127 4128 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4130$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4131if ${ac_cv_path_GREP+:} false; then : 4132 $as_echo_n "(cached) " >&6 4133else 4134 if test -z "$GREP"; then 4135 ac_path_GREP_found=false 4136 # Loop through the user's path and test for each of PROGNAME-LIST 4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4139do 4140 IFS=$as_save_IFS 4141 test -z "$as_dir" && as_dir=. 4142 for ac_prog in grep ggrep; do 4143 for ac_exec_ext in '' $ac_executable_extensions; do 4144 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4145 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4146# Check for GNU ac_path_GREP and select it if it is found. 4147 # Check for GNU $ac_path_GREP 4148case `"$ac_path_GREP" --version 2>&1` in 4149*GNU*) 4150 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4151*) 4152 ac_count=0 4153 $as_echo_n 0123456789 >"conftest.in" 4154 while : 4155 do 4156 cat "conftest.in" "conftest.in" >"conftest.tmp" 4157 mv "conftest.tmp" "conftest.in" 4158 cp "conftest.in" "conftest.nl" 4159 $as_echo 'GREP' >> "conftest.nl" 4160 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4162 as_fn_arith $ac_count + 1 && ac_count=$as_val 4163 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4164 # Best one so far, save it but keep looking for a better one 4165 ac_cv_path_GREP="$ac_path_GREP" 4166 ac_path_GREP_max=$ac_count 4167 fi 4168 # 10*(2^10) chars as input seems more than enough 4169 test $ac_count -gt 10 && break 4170 done 4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4172esac 4173 4174 $ac_path_GREP_found && break 3 4175 done 4176 done 4177 done 4178IFS=$as_save_IFS 4179 if test -z "$ac_cv_path_GREP"; then 4180 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4181 fi 4182else 4183 ac_cv_path_GREP=$GREP 4184fi 4185 4186fi 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4188$as_echo "$ac_cv_path_GREP" >&6; } 4189 GREP="$ac_cv_path_GREP" 4190 4191 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4193$as_echo_n "checking for egrep... " >&6; } 4194if ${ac_cv_path_EGREP+:} false; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4198 then ac_cv_path_EGREP="$GREP -E" 4199 else 4200 if test -z "$EGREP"; then 4201 ac_path_EGREP_found=false 4202 # Loop through the user's path and test for each of PROGNAME-LIST 4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4205do 4206 IFS=$as_save_IFS 4207 test -z "$as_dir" && as_dir=. 4208 for ac_prog in egrep; do 4209 for ac_exec_ext in '' $ac_executable_extensions; do 4210 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4211 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4212# Check for GNU ac_path_EGREP and select it if it is found. 4213 # Check for GNU $ac_path_EGREP 4214case `"$ac_path_EGREP" --version 2>&1` in 4215*GNU*) 4216 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4217*) 4218 ac_count=0 4219 $as_echo_n 0123456789 >"conftest.in" 4220 while : 4221 do 4222 cat "conftest.in" "conftest.in" >"conftest.tmp" 4223 mv "conftest.tmp" "conftest.in" 4224 cp "conftest.in" "conftest.nl" 4225 $as_echo 'EGREP' >> "conftest.nl" 4226 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4228 as_fn_arith $ac_count + 1 && ac_count=$as_val 4229 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4230 # Best one so far, save it but keep looking for a better one 4231 ac_cv_path_EGREP="$ac_path_EGREP" 4232 ac_path_EGREP_max=$ac_count 4233 fi 4234 # 10*(2^10) chars as input seems more than enough 4235 test $ac_count -gt 10 && break 4236 done 4237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4238esac 4239 4240 $ac_path_EGREP_found && break 3 4241 done 4242 done 4243 done 4244IFS=$as_save_IFS 4245 if test -z "$ac_cv_path_EGREP"; then 4246 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4247 fi 4248else 4249 ac_cv_path_EGREP=$EGREP 4250fi 4251 4252 fi 4253fi 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4255$as_echo "$ac_cv_path_EGREP" >&6; } 4256 EGREP="$ac_cv_path_EGREP" 4257 4258 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4260$as_echo_n "checking for ANSI C header files... " >&6; } 4261if ${ac_cv_header_stdc+:} false; then : 4262 $as_echo_n "(cached) " >&6 4263else 4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4265/* end confdefs.h. */ 4266#include <stdlib.h> 4267#include <stdarg.h> 4268#include <string.h> 4269#include <float.h> 4270 4271int 4272main () 4273{ 4274 4275 ; 4276 return 0; 4277} 4278_ACEOF 4279if ac_fn_c_try_compile "$LINENO"; then : 4280 ac_cv_header_stdc=yes 4281else 4282 ac_cv_header_stdc=no 4283fi 4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4285 4286if test $ac_cv_header_stdc = yes; then 4287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#include <string.h> 4291 4292_ACEOF 4293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4294 $EGREP "memchr" >/dev/null 2>&1; then : 4295 4296else 4297 ac_cv_header_stdc=no 4298fi 4299rm -f conftest* 4300 4301fi 4302 4303if test $ac_cv_header_stdc = yes; then 4304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4306/* end confdefs.h. */ 4307#include <stdlib.h> 4308 4309_ACEOF 4310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4311 $EGREP "free" >/dev/null 2>&1; then : 4312 4313else 4314 ac_cv_header_stdc=no 4315fi 4316rm -f conftest* 4317 4318fi 4319 4320if test $ac_cv_header_stdc = yes; then 4321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4322 if test "$cross_compiling" = yes; then : 4323 : 4324else 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327#include <ctype.h> 4328#include <stdlib.h> 4329#if ((' ' & 0x0FF) == 0x020) 4330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4332#else 4333# define ISLOWER(c) \ 4334 (('a' <= (c) && (c) <= 'i') \ 4335 || ('j' <= (c) && (c) <= 'r') \ 4336 || ('s' <= (c) && (c) <= 'z')) 4337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4338#endif 4339 4340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4341int 4342main () 4343{ 4344 int i; 4345 for (i = 0; i < 256; i++) 4346 if (XOR (islower (i), ISLOWER (i)) 4347 || toupper (i) != TOUPPER (i)) 4348 return 2; 4349 return 0; 4350} 4351_ACEOF 4352if ac_fn_c_try_run "$LINENO"; then : 4353 4354else 4355 ac_cv_header_stdc=no 4356fi 4357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4358 conftest.$ac_objext conftest.beam conftest.$ac_ext 4359fi 4360 4361fi 4362fi 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4364$as_echo "$ac_cv_header_stdc" >&6; } 4365if test $ac_cv_header_stdc = yes; then 4366 4367$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4368 4369fi 4370 4371# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4372for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4373 inttypes.h stdint.h unistd.h 4374do : 4375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4376ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4377" 4378if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4379 cat >>confdefs.h <<_ACEOF 4380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4381_ACEOF 4382 4383fi 4384 4385done 4386 4387 4388 4389 4390 4391 4392ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4393if test "x$ac_cv_have_decl___clang__" = xyes; then : 4394 CLANGCC="yes" 4395else 4396 CLANGCC="no" 4397fi 4398 4399ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4400if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4401 INTELCC="yes" 4402else 4403 INTELCC="no" 4404fi 4405 4406ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4407if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4408 SUNCC="yes" 4409else 4410 SUNCC="no" 4411fi 4412 4413 4414 4415 4416if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4417 if test -n "$ac_tool_prefix"; then 4418 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4419set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4421$as_echo_n "checking for $ac_word... " >&6; } 4422if ${ac_cv_path_PKG_CONFIG+:} false; then : 4423 $as_echo_n "(cached) " >&6 4424else 4425 case $PKG_CONFIG in 4426 [\\/]* | ?:[\\/]*) 4427 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4428 ;; 4429 *) 4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4431for as_dir in $PATH 4432do 4433 IFS=$as_save_IFS 4434 test -z "$as_dir" && as_dir=. 4435 for ac_exec_ext in '' $ac_executable_extensions; do 4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4437 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4439 break 2 4440 fi 4441done 4442 done 4443IFS=$as_save_IFS 4444 4445 ;; 4446esac 4447fi 4448PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4449if test -n "$PKG_CONFIG"; then 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4451$as_echo "$PKG_CONFIG" >&6; } 4452else 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4454$as_echo "no" >&6; } 4455fi 4456 4457 4458fi 4459if test -z "$ac_cv_path_PKG_CONFIG"; then 4460 ac_pt_PKG_CONFIG=$PKG_CONFIG 4461 # Extract the first word of "pkg-config", so it can be a program name with args. 4462set dummy pkg-config; ac_word=$2 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4464$as_echo_n "checking for $ac_word... " >&6; } 4465if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4466 $as_echo_n "(cached) " >&6 4467else 4468 case $ac_pt_PKG_CONFIG in 4469 [\\/]* | ?:[\\/]*) 4470 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4471 ;; 4472 *) 4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4474for as_dir in $PATH 4475do 4476 IFS=$as_save_IFS 4477 test -z "$as_dir" && as_dir=. 4478 for ac_exec_ext in '' $ac_executable_extensions; do 4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4480 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4482 break 2 4483 fi 4484done 4485 done 4486IFS=$as_save_IFS 4487 4488 ;; 4489esac 4490fi 4491ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4492if test -n "$ac_pt_PKG_CONFIG"; then 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4494$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4495else 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4497$as_echo "no" >&6; } 4498fi 4499 4500 if test "x$ac_pt_PKG_CONFIG" = x; then 4501 PKG_CONFIG="" 4502 else 4503 case $cross_compiling:$ac_tool_warned in 4504yes:) 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4507ac_tool_warned=yes ;; 4508esac 4509 PKG_CONFIG=$ac_pt_PKG_CONFIG 4510 fi 4511else 4512 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4513fi 4514 4515fi 4516if test -n "$PKG_CONFIG"; then 4517 _pkg_min_version=0.9.0 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4519$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4520 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4522$as_echo "yes" >&6; } 4523 else 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4525$as_echo "no" >&6; } 4526 PKG_CONFIG="" 4527 fi 4528 4529fi 4530# Make sure we can run config.sub. 4531$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4532 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4535$as_echo_n "checking build system type... " >&6; } 4536if ${ac_cv_build+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 ac_build_alias=$build_alias 4540test "x$ac_build_alias" = x && 4541 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4542test "x$ac_build_alias" = x && 4543 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4544ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4546 4547fi 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4549$as_echo "$ac_cv_build" >&6; } 4550case $ac_cv_build in 4551*-*-*) ;; 4552*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4553esac 4554build=$ac_cv_build 4555ac_save_IFS=$IFS; IFS='-' 4556set x $ac_cv_build 4557shift 4558build_cpu=$1 4559build_vendor=$2 4560shift; shift 4561# Remember, the first character of IFS is used to create $*, 4562# except with old shells: 4563build_os=$* 4564IFS=$ac_save_IFS 4565case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4566 4567 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4569$as_echo_n "checking host system type... " >&6; } 4570if ${ac_cv_host+:} false; then : 4571 $as_echo_n "(cached) " >&6 4572else 4573 if test "x$host_alias" = x; then 4574 ac_cv_host=$ac_cv_build 4575else 4576 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4577 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4578fi 4579 4580fi 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4582$as_echo "$ac_cv_host" >&6; } 4583case $ac_cv_host in 4584*-*-*) ;; 4585*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4586esac 4587host=$ac_cv_host 4588ac_save_IFS=$IFS; IFS='-' 4589set x $ac_cv_host 4590shift 4591host_cpu=$1 4592host_vendor=$2 4593shift; shift 4594# Remember, the first character of IFS is used to create $*, 4595# except with old shells: 4596host_os=$* 4597IFS=$ac_save_IFS 4598case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4599 4600 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4602$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4603if ${ac_cv_path_SED+:} false; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4607 for ac_i in 1 2 3 4 5 6 7; do 4608 ac_script="$ac_script$as_nl$ac_script" 4609 done 4610 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4611 { ac_script=; unset ac_script;} 4612 if test -z "$SED"; then 4613 ac_path_SED_found=false 4614 # Loop through the user's path and test for each of PROGNAME-LIST 4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4616for as_dir in $PATH 4617do 4618 IFS=$as_save_IFS 4619 test -z "$as_dir" && as_dir=. 4620 for ac_prog in sed gsed; do 4621 for ac_exec_ext in '' $ac_executable_extensions; do 4622 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4623 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4624# Check for GNU ac_path_SED and select it if it is found. 4625 # Check for GNU $ac_path_SED 4626case `"$ac_path_SED" --version 2>&1` in 4627*GNU*) 4628 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4629*) 4630 ac_count=0 4631 $as_echo_n 0123456789 >"conftest.in" 4632 while : 4633 do 4634 cat "conftest.in" "conftest.in" >"conftest.tmp" 4635 mv "conftest.tmp" "conftest.in" 4636 cp "conftest.in" "conftest.nl" 4637 $as_echo '' >> "conftest.nl" 4638 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4640 as_fn_arith $ac_count + 1 && ac_count=$as_val 4641 if test $ac_count -gt ${ac_path_SED_max-0}; then 4642 # Best one so far, save it but keep looking for a better one 4643 ac_cv_path_SED="$ac_path_SED" 4644 ac_path_SED_max=$ac_count 4645 fi 4646 # 10*(2^10) chars as input seems more than enough 4647 test $ac_count -gt 10 && break 4648 done 4649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4650esac 4651 4652 $ac_path_SED_found && break 3 4653 done 4654 done 4655 done 4656IFS=$as_save_IFS 4657 if test -z "$ac_cv_path_SED"; then 4658 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4659 fi 4660else 4661 ac_cv_path_SED=$SED 4662fi 4663 4664fi 4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4666$as_echo "$ac_cv_path_SED" >&6; } 4667 SED="$ac_cv_path_SED" 4668 rm -f conftest.sed 4669 4670 4671 4672 4673 4674 4675# Check whether --enable-selective-werror was given. 4676if test "${enable_selective_werror+set}" = set; then : 4677 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4678else 4679 SELECTIVE_WERROR=yes 4680fi 4681 4682 4683 4684 4685 4686# -v is too short to test reliably with XORG_TESTSET_CFLAG 4687if test "x$SUNCC" = "xyes"; then 4688 BASE_CFLAGS="-v" 4689else 4690 BASE_CFLAGS="" 4691fi 4692 4693# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707xorg_testset_save_CFLAGS="$CFLAGS" 4708 4709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4714 $as_echo_n "(cached) " >&6 4715else 4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4717/* end confdefs.h. */ 4718int i; 4719_ACEOF 4720if ac_fn_c_try_compile "$LINENO"; then : 4721 xorg_cv_cc_flag_unknown_warning_option=yes 4722else 4723 xorg_cv_cc_flag_unknown_warning_option=no 4724fi 4725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4730 CFLAGS="$xorg_testset_save_CFLAGS" 4731fi 4732 4733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4736 fi 4737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4741 $as_echo_n "(cached) " >&6 4742else 4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4744/* end confdefs.h. */ 4745int i; 4746_ACEOF 4747if ac_fn_c_try_compile "$LINENO"; then : 4748 xorg_cv_cc_flag_unused_command_line_argument=yes 4749else 4750 xorg_cv_cc_flag_unused_command_line_argument=no 4751fi 4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4753fi 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4757 CFLAGS="$xorg_testset_save_CFLAGS" 4758fi 4759 4760found="no" 4761 4762 if test $found = "no" ; then 4763 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4765 fi 4766 4767 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4769 fi 4770 4771 CFLAGS="$CFLAGS -Wall" 4772 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4774$as_echo_n "checking if $CC supports -Wall... " >&6; } 4775 cacheid=xorg_cv_cc_flag__Wall 4776 if eval \${$cacheid+:} false; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4780/* end confdefs.h. */ 4781int i; 4782int 4783main () 4784{ 4785 4786 ; 4787 return 0; 4788} 4789_ACEOF 4790if ac_fn_c_try_link "$LINENO"; then : 4791 eval $cacheid=yes 4792else 4793 eval $cacheid=no 4794fi 4795rm -f core conftest.err conftest.$ac_objext \ 4796 conftest$ac_exeext conftest.$ac_ext 4797fi 4798 4799 4800 CFLAGS="$xorg_testset_save_CFLAGS" 4801 4802 eval supported=\$$cacheid 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4804$as_echo "$supported" >&6; } 4805 if test "$supported" = "yes" ; then 4806 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4807 found="yes" 4808 fi 4809 fi 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825xorg_testset_save_CFLAGS="$CFLAGS" 4826 4827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4832 $as_echo_n "(cached) " >&6 4833else 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836int i; 4837_ACEOF 4838if ac_fn_c_try_compile "$LINENO"; then : 4839 xorg_cv_cc_flag_unknown_warning_option=yes 4840else 4841 xorg_cv_cc_flag_unknown_warning_option=no 4842fi 4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4844fi 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4848 CFLAGS="$xorg_testset_save_CFLAGS" 4849fi 4850 4851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4854 fi 4855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4859 $as_echo_n "(cached) " >&6 4860else 4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4862/* end confdefs.h. */ 4863int i; 4864_ACEOF 4865if ac_fn_c_try_compile "$LINENO"; then : 4866 xorg_cv_cc_flag_unused_command_line_argument=yes 4867else 4868 xorg_cv_cc_flag_unused_command_line_argument=no 4869fi 4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4871fi 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4875 CFLAGS="$xorg_testset_save_CFLAGS" 4876fi 4877 4878found="no" 4879 4880 if test $found = "no" ; then 4881 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4883 fi 4884 4885 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4887 fi 4888 4889 CFLAGS="$CFLAGS -Wpointer-arith" 4890 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4892$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4893 cacheid=xorg_cv_cc_flag__Wpointer_arith 4894 if eval \${$cacheid+:} false; then : 4895 $as_echo_n "(cached) " >&6 4896else 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4898/* end confdefs.h. */ 4899int i; 4900int 4901main () 4902{ 4903 4904 ; 4905 return 0; 4906} 4907_ACEOF 4908if ac_fn_c_try_link "$LINENO"; then : 4909 eval $cacheid=yes 4910else 4911 eval $cacheid=no 4912fi 4913rm -f core conftest.err conftest.$ac_objext \ 4914 conftest$ac_exeext conftest.$ac_ext 4915fi 4916 4917 4918 CFLAGS="$xorg_testset_save_CFLAGS" 4919 4920 eval supported=\$$cacheid 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4922$as_echo "$supported" >&6; } 4923 if test "$supported" = "yes" ; then 4924 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4925 found="yes" 4926 fi 4927 fi 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943xorg_testset_save_CFLAGS="$CFLAGS" 4944 4945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4950 $as_echo_n "(cached) " >&6 4951else 4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4953/* end confdefs.h. */ 4954int i; 4955_ACEOF 4956if ac_fn_c_try_compile "$LINENO"; then : 4957 xorg_cv_cc_flag_unknown_warning_option=yes 4958else 4959 xorg_cv_cc_flag_unknown_warning_option=no 4960fi 4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4962fi 4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4966 CFLAGS="$xorg_testset_save_CFLAGS" 4967fi 4968 4969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4972 fi 4973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4980/* end confdefs.h. */ 4981int i; 4982_ACEOF 4983if ac_fn_c_try_compile "$LINENO"; then : 4984 xorg_cv_cc_flag_unused_command_line_argument=yes 4985else 4986 xorg_cv_cc_flag_unused_command_line_argument=no 4987fi 4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4989fi 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4993 CFLAGS="$xorg_testset_save_CFLAGS" 4994fi 4995 4996found="no" 4997 4998 if test $found = "no" ; then 4999 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5001 fi 5002 5003 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5005 fi 5006 5007 CFLAGS="$CFLAGS -Wmissing-declarations" 5008 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5010$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5011 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5012 if eval \${$cacheid+:} false; then : 5013 $as_echo_n "(cached) " >&6 5014else 5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5016/* end confdefs.h. */ 5017int i; 5018int 5019main () 5020{ 5021 5022 ; 5023 return 0; 5024} 5025_ACEOF 5026if ac_fn_c_try_link "$LINENO"; then : 5027 eval $cacheid=yes 5028else 5029 eval $cacheid=no 5030fi 5031rm -f core conftest.err conftest.$ac_objext \ 5032 conftest$ac_exeext conftest.$ac_ext 5033fi 5034 5035 5036 CFLAGS="$xorg_testset_save_CFLAGS" 5037 5038 eval supported=\$$cacheid 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5040$as_echo "$supported" >&6; } 5041 if test "$supported" = "yes" ; then 5042 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5043 found="yes" 5044 fi 5045 fi 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061xorg_testset_save_CFLAGS="$CFLAGS" 5062 5063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5071/* end confdefs.h. */ 5072int i; 5073_ACEOF 5074if ac_fn_c_try_compile "$LINENO"; then : 5075 xorg_cv_cc_flag_unknown_warning_option=yes 5076else 5077 xorg_cv_cc_flag_unknown_warning_option=no 5078fi 5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5080fi 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5084 CFLAGS="$xorg_testset_save_CFLAGS" 5085fi 5086 5087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5090 fi 5091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5095 $as_echo_n "(cached) " >&6 5096else 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098/* end confdefs.h. */ 5099int i; 5100_ACEOF 5101if ac_fn_c_try_compile "$LINENO"; then : 5102 xorg_cv_cc_flag_unused_command_line_argument=yes 5103else 5104 xorg_cv_cc_flag_unused_command_line_argument=no 5105fi 5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5107fi 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5111 CFLAGS="$xorg_testset_save_CFLAGS" 5112fi 5113 5114found="no" 5115 5116 if test $found = "no" ; then 5117 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5119 fi 5120 5121 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5123 fi 5124 5125 CFLAGS="$CFLAGS -Wformat=2" 5126 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5128$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5129 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5130 if eval \${$cacheid+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5134/* end confdefs.h. */ 5135int i; 5136int 5137main () 5138{ 5139 5140 ; 5141 return 0; 5142} 5143_ACEOF 5144if ac_fn_c_try_link "$LINENO"; then : 5145 eval $cacheid=yes 5146else 5147 eval $cacheid=no 5148fi 5149rm -f core conftest.err conftest.$ac_objext \ 5150 conftest$ac_exeext conftest.$ac_ext 5151fi 5152 5153 5154 CFLAGS="$xorg_testset_save_CFLAGS" 5155 5156 eval supported=\$$cacheid 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5158$as_echo "$supported" >&6; } 5159 if test "$supported" = "yes" ; then 5160 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5161 found="yes" 5162 fi 5163 fi 5164 5165 if test $found = "no" ; then 5166 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5168 fi 5169 5170 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5172 fi 5173 5174 CFLAGS="$CFLAGS -Wformat" 5175 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5177$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5178 cacheid=xorg_cv_cc_flag__Wformat 5179 if eval \${$cacheid+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5183/* end confdefs.h. */ 5184int i; 5185int 5186main () 5187{ 5188 5189 ; 5190 return 0; 5191} 5192_ACEOF 5193if ac_fn_c_try_link "$LINENO"; then : 5194 eval $cacheid=yes 5195else 5196 eval $cacheid=no 5197fi 5198rm -f core conftest.err conftest.$ac_objext \ 5199 conftest$ac_exeext conftest.$ac_ext 5200fi 5201 5202 5203 CFLAGS="$xorg_testset_save_CFLAGS" 5204 5205 eval supported=\$$cacheid 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5207$as_echo "$supported" >&6; } 5208 if test "$supported" = "yes" ; then 5209 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5210 found="yes" 5211 fi 5212 fi 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230xorg_testset_save_CFLAGS="$CFLAGS" 5231 5232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5237 $as_echo_n "(cached) " >&6 5238else 5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240/* end confdefs.h. */ 5241int i; 5242_ACEOF 5243if ac_fn_c_try_compile "$LINENO"; then : 5244 xorg_cv_cc_flag_unknown_warning_option=yes 5245else 5246 xorg_cv_cc_flag_unknown_warning_option=no 5247fi 5248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5249fi 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5253 CFLAGS="$xorg_testset_save_CFLAGS" 5254fi 5255 5256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5259 fi 5260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5264 $as_echo_n "(cached) " >&6 5265else 5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5267/* end confdefs.h. */ 5268int i; 5269_ACEOF 5270if ac_fn_c_try_compile "$LINENO"; then : 5271 xorg_cv_cc_flag_unused_command_line_argument=yes 5272else 5273 xorg_cv_cc_flag_unused_command_line_argument=no 5274fi 5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5276fi 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5280 CFLAGS="$xorg_testset_save_CFLAGS" 5281fi 5282 5283found="no" 5284 5285 if test $found = "no" ; then 5286 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5288 fi 5289 5290 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5292 fi 5293 5294 CFLAGS="$CFLAGS -Wstrict-prototypes" 5295 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5297$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5298 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5299 if eval \${$cacheid+:} false; then : 5300 $as_echo_n "(cached) " >&6 5301else 5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5303/* end confdefs.h. */ 5304int i; 5305int 5306main () 5307{ 5308 5309 ; 5310 return 0; 5311} 5312_ACEOF 5313if ac_fn_c_try_link "$LINENO"; then : 5314 eval $cacheid=yes 5315else 5316 eval $cacheid=no 5317fi 5318rm -f core conftest.err conftest.$ac_objext \ 5319 conftest$ac_exeext conftest.$ac_ext 5320fi 5321 5322 5323 CFLAGS="$xorg_testset_save_CFLAGS" 5324 5325 eval supported=\$$cacheid 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5327$as_echo "$supported" >&6; } 5328 if test "$supported" = "yes" ; then 5329 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5330 found="yes" 5331 fi 5332 fi 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348xorg_testset_save_CFLAGS="$CFLAGS" 5349 5350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5355 $as_echo_n "(cached) " >&6 5356else 5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5358/* end confdefs.h. */ 5359int i; 5360_ACEOF 5361if ac_fn_c_try_compile "$LINENO"; then : 5362 xorg_cv_cc_flag_unknown_warning_option=yes 5363else 5364 xorg_cv_cc_flag_unknown_warning_option=no 5365fi 5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5367fi 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5371 CFLAGS="$xorg_testset_save_CFLAGS" 5372fi 5373 5374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5377 fi 5378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5385/* end confdefs.h. */ 5386int i; 5387_ACEOF 5388if ac_fn_c_try_compile "$LINENO"; then : 5389 xorg_cv_cc_flag_unused_command_line_argument=yes 5390else 5391 xorg_cv_cc_flag_unused_command_line_argument=no 5392fi 5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5394fi 5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5398 CFLAGS="$xorg_testset_save_CFLAGS" 5399fi 5400 5401found="no" 5402 5403 if test $found = "no" ; then 5404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5406 fi 5407 5408 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5410 fi 5411 5412 CFLAGS="$CFLAGS -Wmissing-prototypes" 5413 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5415$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5416 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5417 if eval \${$cacheid+:} false; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422int i; 5423int 5424main () 5425{ 5426 5427 ; 5428 return 0; 5429} 5430_ACEOF 5431if ac_fn_c_try_link "$LINENO"; then : 5432 eval $cacheid=yes 5433else 5434 eval $cacheid=no 5435fi 5436rm -f core conftest.err conftest.$ac_objext \ 5437 conftest$ac_exeext conftest.$ac_ext 5438fi 5439 5440 5441 CFLAGS="$xorg_testset_save_CFLAGS" 5442 5443 eval supported=\$$cacheid 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5445$as_echo "$supported" >&6; } 5446 if test "$supported" = "yes" ; then 5447 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5448 found="yes" 5449 fi 5450 fi 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466xorg_testset_save_CFLAGS="$CFLAGS" 5467 5468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477int i; 5478_ACEOF 5479if ac_fn_c_try_compile "$LINENO"; then : 5480 xorg_cv_cc_flag_unknown_warning_option=yes 5481else 5482 xorg_cv_cc_flag_unknown_warning_option=no 5483fi 5484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5485fi 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5489 CFLAGS="$xorg_testset_save_CFLAGS" 5490fi 5491 5492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5495 fi 5496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5500 $as_echo_n "(cached) " >&6 5501else 5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5503/* end confdefs.h. */ 5504int i; 5505_ACEOF 5506if ac_fn_c_try_compile "$LINENO"; then : 5507 xorg_cv_cc_flag_unused_command_line_argument=yes 5508else 5509 xorg_cv_cc_flag_unused_command_line_argument=no 5510fi 5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5512fi 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5516 CFLAGS="$xorg_testset_save_CFLAGS" 5517fi 5518 5519found="no" 5520 5521 if test $found = "no" ; then 5522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5524 fi 5525 5526 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5528 fi 5529 5530 CFLAGS="$CFLAGS -Wnested-externs" 5531 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5533$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5534 cacheid=xorg_cv_cc_flag__Wnested_externs 5535 if eval \${$cacheid+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539/* end confdefs.h. */ 5540int i; 5541int 5542main () 5543{ 5544 5545 ; 5546 return 0; 5547} 5548_ACEOF 5549if ac_fn_c_try_link "$LINENO"; then : 5550 eval $cacheid=yes 5551else 5552 eval $cacheid=no 5553fi 5554rm -f core conftest.err conftest.$ac_objext \ 5555 conftest$ac_exeext conftest.$ac_ext 5556fi 5557 5558 5559 CFLAGS="$xorg_testset_save_CFLAGS" 5560 5561 eval supported=\$$cacheid 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5563$as_echo "$supported" >&6; } 5564 if test "$supported" = "yes" ; then 5565 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5566 found="yes" 5567 fi 5568 fi 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584xorg_testset_save_CFLAGS="$CFLAGS" 5585 5586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5591 $as_echo_n "(cached) " >&6 5592else 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595int i; 5596_ACEOF 5597if ac_fn_c_try_compile "$LINENO"; then : 5598 xorg_cv_cc_flag_unknown_warning_option=yes 5599else 5600 xorg_cv_cc_flag_unknown_warning_option=no 5601fi 5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603fi 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5607 CFLAGS="$xorg_testset_save_CFLAGS" 5608fi 5609 5610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5613 fi 5614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5621/* end confdefs.h. */ 5622int i; 5623_ACEOF 5624if ac_fn_c_try_compile "$LINENO"; then : 5625 xorg_cv_cc_flag_unused_command_line_argument=yes 5626else 5627 xorg_cv_cc_flag_unused_command_line_argument=no 5628fi 5629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5630fi 5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5634 CFLAGS="$xorg_testset_save_CFLAGS" 5635fi 5636 5637found="no" 5638 5639 if test $found = "no" ; then 5640 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5642 fi 5643 5644 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5646 fi 5647 5648 CFLAGS="$CFLAGS -Wbad-function-cast" 5649 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5651$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5652 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5653 if eval \${$cacheid+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655else 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5657/* end confdefs.h. */ 5658int i; 5659int 5660main () 5661{ 5662 5663 ; 5664 return 0; 5665} 5666_ACEOF 5667if ac_fn_c_try_link "$LINENO"; then : 5668 eval $cacheid=yes 5669else 5670 eval $cacheid=no 5671fi 5672rm -f core conftest.err conftest.$ac_objext \ 5673 conftest$ac_exeext conftest.$ac_ext 5674fi 5675 5676 5677 CFLAGS="$xorg_testset_save_CFLAGS" 5678 5679 eval supported=\$$cacheid 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5681$as_echo "$supported" >&6; } 5682 if test "$supported" = "yes" ; then 5683 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5684 found="yes" 5685 fi 5686 fi 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702xorg_testset_save_CFLAGS="$CFLAGS" 5703 5704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5709 $as_echo_n "(cached) " >&6 5710else 5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5712/* end confdefs.h. */ 5713int i; 5714_ACEOF 5715if ac_fn_c_try_compile "$LINENO"; then : 5716 xorg_cv_cc_flag_unknown_warning_option=yes 5717else 5718 xorg_cv_cc_flag_unknown_warning_option=no 5719fi 5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5721fi 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5725 CFLAGS="$xorg_testset_save_CFLAGS" 5726fi 5727 5728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5731 fi 5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737else 5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5739/* end confdefs.h. */ 5740int i; 5741_ACEOF 5742if ac_fn_c_try_compile "$LINENO"; then : 5743 xorg_cv_cc_flag_unused_command_line_argument=yes 5744else 5745 xorg_cv_cc_flag_unused_command_line_argument=no 5746fi 5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5748fi 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5752 CFLAGS="$xorg_testset_save_CFLAGS" 5753fi 5754 5755found="no" 5756 5757 if test $found = "no" ; then 5758 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5760 fi 5761 5762 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5764 fi 5765 5766 CFLAGS="$CFLAGS -Wold-style-definition" 5767 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5769$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5770 cacheid=xorg_cv_cc_flag__Wold_style_definition 5771 if eval \${$cacheid+:} false; then : 5772 $as_echo_n "(cached) " >&6 5773else 5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5775/* end confdefs.h. */ 5776int i; 5777int 5778main () 5779{ 5780 5781 ; 5782 return 0; 5783} 5784_ACEOF 5785if ac_fn_c_try_link "$LINENO"; then : 5786 eval $cacheid=yes 5787else 5788 eval $cacheid=no 5789fi 5790rm -f core conftest.err conftest.$ac_objext \ 5791 conftest$ac_exeext conftest.$ac_ext 5792fi 5793 5794 5795 CFLAGS="$xorg_testset_save_CFLAGS" 5796 5797 eval supported=\$$cacheid 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5799$as_echo "$supported" >&6; } 5800 if test "$supported" = "yes" ; then 5801 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5802 found="yes" 5803 fi 5804 fi 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820xorg_testset_save_CFLAGS="$CFLAGS" 5821 5822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5830/* end confdefs.h. */ 5831int i; 5832_ACEOF 5833if ac_fn_c_try_compile "$LINENO"; then : 5834 xorg_cv_cc_flag_unknown_warning_option=yes 5835else 5836 xorg_cv_cc_flag_unknown_warning_option=no 5837fi 5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5839fi 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5843 CFLAGS="$xorg_testset_save_CFLAGS" 5844fi 5845 5846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5849 fi 5850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5857/* end confdefs.h. */ 5858int i; 5859_ACEOF 5860if ac_fn_c_try_compile "$LINENO"; then : 5861 xorg_cv_cc_flag_unused_command_line_argument=yes 5862else 5863 xorg_cv_cc_flag_unused_command_line_argument=no 5864fi 5865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5866fi 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5870 CFLAGS="$xorg_testset_save_CFLAGS" 5871fi 5872 5873found="no" 5874 5875 if test $found = "no" ; then 5876 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5878 fi 5879 5880 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5882 fi 5883 5884 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5885 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5887$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5888 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5889 if eval \${$cacheid+:} false; then : 5890 $as_echo_n "(cached) " >&6 5891else 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893/* end confdefs.h. */ 5894int i; 5895int 5896main () 5897{ 5898 5899 ; 5900 return 0; 5901} 5902_ACEOF 5903if ac_fn_c_try_link "$LINENO"; then : 5904 eval $cacheid=yes 5905else 5906 eval $cacheid=no 5907fi 5908rm -f core conftest.err conftest.$ac_objext \ 5909 conftest$ac_exeext conftest.$ac_ext 5910fi 5911 5912 5913 CFLAGS="$xorg_testset_save_CFLAGS" 5914 5915 eval supported=\$$cacheid 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5917$as_echo "$supported" >&6; } 5918 if test "$supported" = "yes" ; then 5919 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5920 found="yes" 5921 fi 5922 fi 5923 5924 5925 5926 5927 5928# This chunk adds additional warnings that could catch undesired effects. 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942xorg_testset_save_CFLAGS="$CFLAGS" 5943 5944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952/* end confdefs.h. */ 5953int i; 5954_ACEOF 5955if ac_fn_c_try_compile "$LINENO"; then : 5956 xorg_cv_cc_flag_unknown_warning_option=yes 5957else 5958 xorg_cv_cc_flag_unknown_warning_option=no 5959fi 5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5961fi 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5965 CFLAGS="$xorg_testset_save_CFLAGS" 5966fi 5967 5968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5971 fi 5972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5976 $as_echo_n "(cached) " >&6 5977else 5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5979/* end confdefs.h. */ 5980int i; 5981_ACEOF 5982if ac_fn_c_try_compile "$LINENO"; then : 5983 xorg_cv_cc_flag_unused_command_line_argument=yes 5984else 5985 xorg_cv_cc_flag_unused_command_line_argument=no 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5988fi 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5992 CFLAGS="$xorg_testset_save_CFLAGS" 5993fi 5994 5995found="no" 5996 5997 if test $found = "no" ; then 5998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 fi 6001 6002 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6004 fi 6005 6006 CFLAGS="$CFLAGS -Wunused" 6007 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6009$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6010 cacheid=xorg_cv_cc_flag__Wunused 6011 if eval \${$cacheid+:} false; then : 6012 $as_echo_n "(cached) " >&6 6013else 6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015/* end confdefs.h. */ 6016int i; 6017int 6018main () 6019{ 6020 6021 ; 6022 return 0; 6023} 6024_ACEOF 6025if ac_fn_c_try_link "$LINENO"; then : 6026 eval $cacheid=yes 6027else 6028 eval $cacheid=no 6029fi 6030rm -f core conftest.err conftest.$ac_objext \ 6031 conftest$ac_exeext conftest.$ac_ext 6032fi 6033 6034 6035 CFLAGS="$xorg_testset_save_CFLAGS" 6036 6037 eval supported=\$$cacheid 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6039$as_echo "$supported" >&6; } 6040 if test "$supported" = "yes" ; then 6041 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6042 found="yes" 6043 fi 6044 fi 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060xorg_testset_save_CFLAGS="$CFLAGS" 6061 6062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6067 $as_echo_n "(cached) " >&6 6068else 6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6070/* end confdefs.h. */ 6071int i; 6072_ACEOF 6073if ac_fn_c_try_compile "$LINENO"; then : 6074 xorg_cv_cc_flag_unknown_warning_option=yes 6075else 6076 xorg_cv_cc_flag_unknown_warning_option=no 6077fi 6078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6079fi 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6083 CFLAGS="$xorg_testset_save_CFLAGS" 6084fi 6085 6086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6089 fi 6090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6094 $as_echo_n "(cached) " >&6 6095else 6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097/* end confdefs.h. */ 6098int i; 6099_ACEOF 6100if ac_fn_c_try_compile "$LINENO"; then : 6101 xorg_cv_cc_flag_unused_command_line_argument=yes 6102else 6103 xorg_cv_cc_flag_unused_command_line_argument=no 6104fi 6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6106fi 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6108$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6110 CFLAGS="$xorg_testset_save_CFLAGS" 6111fi 6112 6113found="no" 6114 6115 if test $found = "no" ; then 6116 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6118 fi 6119 6120 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6122 fi 6123 6124 CFLAGS="$CFLAGS -Wuninitialized" 6125 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6127$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6128 cacheid=xorg_cv_cc_flag__Wuninitialized 6129 if eval \${$cacheid+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6133/* end confdefs.h. */ 6134int i; 6135int 6136main () 6137{ 6138 6139 ; 6140 return 0; 6141} 6142_ACEOF 6143if ac_fn_c_try_link "$LINENO"; then : 6144 eval $cacheid=yes 6145else 6146 eval $cacheid=no 6147fi 6148rm -f core conftest.err conftest.$ac_objext \ 6149 conftest$ac_exeext conftest.$ac_ext 6150fi 6151 6152 6153 CFLAGS="$xorg_testset_save_CFLAGS" 6154 6155 eval supported=\$$cacheid 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6157$as_echo "$supported" >&6; } 6158 if test "$supported" = "yes" ; then 6159 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6160 found="yes" 6161 fi 6162 fi 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178xorg_testset_save_CFLAGS="$CFLAGS" 6179 6180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6185 $as_echo_n "(cached) " >&6 6186else 6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6188/* end confdefs.h. */ 6189int i; 6190_ACEOF 6191if ac_fn_c_try_compile "$LINENO"; then : 6192 xorg_cv_cc_flag_unknown_warning_option=yes 6193else 6194 xorg_cv_cc_flag_unknown_warning_option=no 6195fi 6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6197fi 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6201 CFLAGS="$xorg_testset_save_CFLAGS" 6202fi 6203 6204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6207 fi 6208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6212 $as_echo_n "(cached) " >&6 6213else 6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216int i; 6217_ACEOF 6218if ac_fn_c_try_compile "$LINENO"; then : 6219 xorg_cv_cc_flag_unused_command_line_argument=yes 6220else 6221 xorg_cv_cc_flag_unused_command_line_argument=no 6222fi 6223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6224fi 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6228 CFLAGS="$xorg_testset_save_CFLAGS" 6229fi 6230 6231found="no" 6232 6233 if test $found = "no" ; then 6234 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6236 fi 6237 6238 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6240 fi 6241 6242 CFLAGS="$CFLAGS -Wshadow" 6243 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6245$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6246 cacheid=xorg_cv_cc_flag__Wshadow 6247 if eval \${$cacheid+:} false; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6251/* end confdefs.h. */ 6252int i; 6253int 6254main () 6255{ 6256 6257 ; 6258 return 0; 6259} 6260_ACEOF 6261if ac_fn_c_try_link "$LINENO"; then : 6262 eval $cacheid=yes 6263else 6264 eval $cacheid=no 6265fi 6266rm -f core conftest.err conftest.$ac_objext \ 6267 conftest$ac_exeext conftest.$ac_ext 6268fi 6269 6270 6271 CFLAGS="$xorg_testset_save_CFLAGS" 6272 6273 eval supported=\$$cacheid 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6275$as_echo "$supported" >&6; } 6276 if test "$supported" = "yes" ; then 6277 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6278 found="yes" 6279 fi 6280 fi 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296xorg_testset_save_CFLAGS="$CFLAGS" 6297 6298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6303 $as_echo_n "(cached) " >&6 6304else 6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6306/* end confdefs.h. */ 6307int i; 6308_ACEOF 6309if ac_fn_c_try_compile "$LINENO"; then : 6310 xorg_cv_cc_flag_unknown_warning_option=yes 6311else 6312 xorg_cv_cc_flag_unknown_warning_option=no 6313fi 6314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6315fi 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6319 CFLAGS="$xorg_testset_save_CFLAGS" 6320fi 6321 6322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6325 fi 6326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6330 $as_echo_n "(cached) " >&6 6331else 6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6333/* end confdefs.h. */ 6334int i; 6335_ACEOF 6336if ac_fn_c_try_compile "$LINENO"; then : 6337 xorg_cv_cc_flag_unused_command_line_argument=yes 6338else 6339 xorg_cv_cc_flag_unused_command_line_argument=no 6340fi 6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6342fi 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6346 CFLAGS="$xorg_testset_save_CFLAGS" 6347fi 6348 6349found="no" 6350 6351 if test $found = "no" ; then 6352 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6354 fi 6355 6356 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6358 fi 6359 6360 CFLAGS="$CFLAGS -Wcast-qual" 6361 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6363$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6364 cacheid=xorg_cv_cc_flag__Wcast_qual 6365 if eval \${$cacheid+:} false; then : 6366 $as_echo_n "(cached) " >&6 6367else 6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6369/* end confdefs.h. */ 6370int i; 6371int 6372main () 6373{ 6374 6375 ; 6376 return 0; 6377} 6378_ACEOF 6379if ac_fn_c_try_link "$LINENO"; then : 6380 eval $cacheid=yes 6381else 6382 eval $cacheid=no 6383fi 6384rm -f core conftest.err conftest.$ac_objext \ 6385 conftest$ac_exeext conftest.$ac_ext 6386fi 6387 6388 6389 CFLAGS="$xorg_testset_save_CFLAGS" 6390 6391 eval supported=\$$cacheid 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6393$as_echo "$supported" >&6; } 6394 if test "$supported" = "yes" ; then 6395 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6396 found="yes" 6397 fi 6398 fi 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414xorg_testset_save_CFLAGS="$CFLAGS" 6415 6416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6421 $as_echo_n "(cached) " >&6 6422else 6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6424/* end confdefs.h. */ 6425int i; 6426_ACEOF 6427if ac_fn_c_try_compile "$LINENO"; then : 6428 xorg_cv_cc_flag_unknown_warning_option=yes 6429else 6430 xorg_cv_cc_flag_unknown_warning_option=no 6431fi 6432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6433fi 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6437 CFLAGS="$xorg_testset_save_CFLAGS" 6438fi 6439 6440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6443 fi 6444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6448 $as_echo_n "(cached) " >&6 6449else 6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6451/* end confdefs.h. */ 6452int i; 6453_ACEOF 6454if ac_fn_c_try_compile "$LINENO"; then : 6455 xorg_cv_cc_flag_unused_command_line_argument=yes 6456else 6457 xorg_cv_cc_flag_unused_command_line_argument=no 6458fi 6459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6460fi 6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6464 CFLAGS="$xorg_testset_save_CFLAGS" 6465fi 6466 6467found="no" 6468 6469 if test $found = "no" ; then 6470 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6472 fi 6473 6474 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6476 fi 6477 6478 CFLAGS="$CFLAGS -Wmissing-noreturn" 6479 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6481$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6482 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6483 if eval \${$cacheid+:} false; then : 6484 $as_echo_n "(cached) " >&6 6485else 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6487/* end confdefs.h. */ 6488int i; 6489int 6490main () 6491{ 6492 6493 ; 6494 return 0; 6495} 6496_ACEOF 6497if ac_fn_c_try_link "$LINENO"; then : 6498 eval $cacheid=yes 6499else 6500 eval $cacheid=no 6501fi 6502rm -f core conftest.err conftest.$ac_objext \ 6503 conftest$ac_exeext conftest.$ac_ext 6504fi 6505 6506 6507 CFLAGS="$xorg_testset_save_CFLAGS" 6508 6509 eval supported=\$$cacheid 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6511$as_echo "$supported" >&6; } 6512 if test "$supported" = "yes" ; then 6513 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6514 found="yes" 6515 fi 6516 fi 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532xorg_testset_save_CFLAGS="$CFLAGS" 6533 6534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6539 $as_echo_n "(cached) " >&6 6540else 6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6542/* end confdefs.h. */ 6543int i; 6544_ACEOF 6545if ac_fn_c_try_compile "$LINENO"; then : 6546 xorg_cv_cc_flag_unknown_warning_option=yes 6547else 6548 xorg_cv_cc_flag_unknown_warning_option=no 6549fi 6550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6551fi 6552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6555 CFLAGS="$xorg_testset_save_CFLAGS" 6556fi 6557 6558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6561 fi 6562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6569/* end confdefs.h. */ 6570int i; 6571_ACEOF 6572if ac_fn_c_try_compile "$LINENO"; then : 6573 xorg_cv_cc_flag_unused_command_line_argument=yes 6574else 6575 xorg_cv_cc_flag_unused_command_line_argument=no 6576fi 6577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6578fi 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6582 CFLAGS="$xorg_testset_save_CFLAGS" 6583fi 6584 6585found="no" 6586 6587 if test $found = "no" ; then 6588 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6590 fi 6591 6592 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6594 fi 6595 6596 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6597 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6599$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6600 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6601 if eval \${$cacheid+:} false; then : 6602 $as_echo_n "(cached) " >&6 6603else 6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6605/* end confdefs.h. */ 6606int i; 6607int 6608main () 6609{ 6610 6611 ; 6612 return 0; 6613} 6614_ACEOF 6615if ac_fn_c_try_link "$LINENO"; then : 6616 eval $cacheid=yes 6617else 6618 eval $cacheid=no 6619fi 6620rm -f core conftest.err conftest.$ac_objext \ 6621 conftest$ac_exeext conftest.$ac_ext 6622fi 6623 6624 6625 CFLAGS="$xorg_testset_save_CFLAGS" 6626 6627 eval supported=\$$cacheid 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6629$as_echo "$supported" >&6; } 6630 if test "$supported" = "yes" ; then 6631 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6632 found="yes" 6633 fi 6634 fi 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650xorg_testset_save_CFLAGS="$CFLAGS" 6651 6652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6660/* end confdefs.h. */ 6661int i; 6662_ACEOF 6663if ac_fn_c_try_compile "$LINENO"; then : 6664 xorg_cv_cc_flag_unknown_warning_option=yes 6665else 6666 xorg_cv_cc_flag_unknown_warning_option=no 6667fi 6668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6669fi 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6673 CFLAGS="$xorg_testset_save_CFLAGS" 6674fi 6675 6676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6679 fi 6680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6684 $as_echo_n "(cached) " >&6 6685else 6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6687/* end confdefs.h. */ 6688int i; 6689_ACEOF 6690if ac_fn_c_try_compile "$LINENO"; then : 6691 xorg_cv_cc_flag_unused_command_line_argument=yes 6692else 6693 xorg_cv_cc_flag_unused_command_line_argument=no 6694fi 6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6696fi 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6700 CFLAGS="$xorg_testset_save_CFLAGS" 6701fi 6702 6703found="no" 6704 6705 if test $found = "no" ; then 6706 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6708 fi 6709 6710 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6712 fi 6713 6714 CFLAGS="$CFLAGS -Wredundant-decls" 6715 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6717$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6718 cacheid=xorg_cv_cc_flag__Wredundant_decls 6719 if eval \${$cacheid+:} false; then : 6720 $as_echo_n "(cached) " >&6 6721else 6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6723/* end confdefs.h. */ 6724int i; 6725int 6726main () 6727{ 6728 6729 ; 6730 return 0; 6731} 6732_ACEOF 6733if ac_fn_c_try_link "$LINENO"; then : 6734 eval $cacheid=yes 6735else 6736 eval $cacheid=no 6737fi 6738rm -f core conftest.err conftest.$ac_objext \ 6739 conftest$ac_exeext conftest.$ac_ext 6740fi 6741 6742 6743 CFLAGS="$xorg_testset_save_CFLAGS" 6744 6745 eval supported=\$$cacheid 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6747$as_echo "$supported" >&6; } 6748 if test "$supported" = "yes" ; then 6749 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6750 found="yes" 6751 fi 6752 fi 6753 6754 6755 6756# These are currently disabled because they are noisy. They will be enabled 6757# in the future once the codebase is sufficiently modernized to silence 6758# them. For now, I don't want them to drown out the other warnings. 6759# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6760# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6761# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6762 6763# Turn some warnings into errors, so we don't accidently get successful builds 6764# when there are problems that should be fixed. 6765 6766if test "x$SELECTIVE_WERROR" = "xyes" ; then 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780xorg_testset_save_CFLAGS="$CFLAGS" 6781 6782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790/* end confdefs.h. */ 6791int i; 6792_ACEOF 6793if ac_fn_c_try_compile "$LINENO"; then : 6794 xorg_cv_cc_flag_unknown_warning_option=yes 6795else 6796 xorg_cv_cc_flag_unknown_warning_option=no 6797fi 6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6799fi 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6803 CFLAGS="$xorg_testset_save_CFLAGS" 6804fi 6805 6806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6809 fi 6810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6814 $as_echo_n "(cached) " >&6 6815else 6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6817/* end confdefs.h. */ 6818int i; 6819_ACEOF 6820if ac_fn_c_try_compile "$LINENO"; then : 6821 xorg_cv_cc_flag_unused_command_line_argument=yes 6822else 6823 xorg_cv_cc_flag_unused_command_line_argument=no 6824fi 6825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6826fi 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6830 CFLAGS="$xorg_testset_save_CFLAGS" 6831fi 6832 6833found="no" 6834 6835 if test $found = "no" ; then 6836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6838 fi 6839 6840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6842 fi 6843 6844 CFLAGS="$CFLAGS -Werror=implicit" 6845 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6847$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6848 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6849 if eval \${$cacheid+:} false; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6853/* end confdefs.h. */ 6854int i; 6855int 6856main () 6857{ 6858 6859 ; 6860 return 0; 6861} 6862_ACEOF 6863if ac_fn_c_try_link "$LINENO"; then : 6864 eval $cacheid=yes 6865else 6866 eval $cacheid=no 6867fi 6868rm -f core conftest.err conftest.$ac_objext \ 6869 conftest$ac_exeext conftest.$ac_ext 6870fi 6871 6872 6873 CFLAGS="$xorg_testset_save_CFLAGS" 6874 6875 eval supported=\$$cacheid 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6877$as_echo "$supported" >&6; } 6878 if test "$supported" = "yes" ; then 6879 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6880 found="yes" 6881 fi 6882 fi 6883 6884 if test $found = "no" ; then 6885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6887 fi 6888 6889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6891 fi 6892 6893 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6894 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6896$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6897 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6898 if eval \${$cacheid+:} false; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6902/* end confdefs.h. */ 6903int i; 6904int 6905main () 6906{ 6907 6908 ; 6909 return 0; 6910} 6911_ACEOF 6912if ac_fn_c_try_link "$LINENO"; then : 6913 eval $cacheid=yes 6914else 6915 eval $cacheid=no 6916fi 6917rm -f core conftest.err conftest.$ac_objext \ 6918 conftest$ac_exeext conftest.$ac_ext 6919fi 6920 6921 6922 CFLAGS="$xorg_testset_save_CFLAGS" 6923 6924 eval supported=\$$cacheid 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6926$as_echo "$supported" >&6; } 6927 if test "$supported" = "yes" ; then 6928 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6929 found="yes" 6930 fi 6931 fi 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947xorg_testset_save_CFLAGS="$CFLAGS" 6948 6949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6954 $as_echo_n "(cached) " >&6 6955else 6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6957/* end confdefs.h. */ 6958int i; 6959_ACEOF 6960if ac_fn_c_try_compile "$LINENO"; then : 6961 xorg_cv_cc_flag_unknown_warning_option=yes 6962else 6963 xorg_cv_cc_flag_unknown_warning_option=no 6964fi 6965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6966fi 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6970 CFLAGS="$xorg_testset_save_CFLAGS" 6971fi 6972 6973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6976 fi 6977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984/* end confdefs.h. */ 6985int i; 6986_ACEOF 6987if ac_fn_c_try_compile "$LINENO"; then : 6988 xorg_cv_cc_flag_unused_command_line_argument=yes 6989else 6990 xorg_cv_cc_flag_unused_command_line_argument=no 6991fi 6992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6993fi 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6997 CFLAGS="$xorg_testset_save_CFLAGS" 6998fi 6999 7000found="no" 7001 7002 if test $found = "no" ; then 7003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7005 fi 7006 7007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7009 fi 7010 7011 CFLAGS="$CFLAGS -Werror=nonnull" 7012 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7014$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7015 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7016 if eval \${$cacheid+:} false; then : 7017 $as_echo_n "(cached) " >&6 7018else 7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020/* end confdefs.h. */ 7021int i; 7022int 7023main () 7024{ 7025 7026 ; 7027 return 0; 7028} 7029_ACEOF 7030if ac_fn_c_try_link "$LINENO"; then : 7031 eval $cacheid=yes 7032else 7033 eval $cacheid=no 7034fi 7035rm -f core conftest.err conftest.$ac_objext \ 7036 conftest$ac_exeext conftest.$ac_ext 7037fi 7038 7039 7040 CFLAGS="$xorg_testset_save_CFLAGS" 7041 7042 eval supported=\$$cacheid 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7044$as_echo "$supported" >&6; } 7045 if test "$supported" = "yes" ; then 7046 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7047 found="yes" 7048 fi 7049 fi 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065xorg_testset_save_CFLAGS="$CFLAGS" 7066 7067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7072 $as_echo_n "(cached) " >&6 7073else 7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7075/* end confdefs.h. */ 7076int i; 7077_ACEOF 7078if ac_fn_c_try_compile "$LINENO"; then : 7079 xorg_cv_cc_flag_unknown_warning_option=yes 7080else 7081 xorg_cv_cc_flag_unknown_warning_option=no 7082fi 7083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7084fi 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7088 CFLAGS="$xorg_testset_save_CFLAGS" 7089fi 7090 7091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7094 fi 7095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7102/* end confdefs.h. */ 7103int i; 7104_ACEOF 7105if ac_fn_c_try_compile "$LINENO"; then : 7106 xorg_cv_cc_flag_unused_command_line_argument=yes 7107else 7108 xorg_cv_cc_flag_unused_command_line_argument=no 7109fi 7110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7111fi 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7115 CFLAGS="$xorg_testset_save_CFLAGS" 7116fi 7117 7118found="no" 7119 7120 if test $found = "no" ; then 7121 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7123 fi 7124 7125 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7127 fi 7128 7129 CFLAGS="$CFLAGS -Werror=init-self" 7130 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7132$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7133 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7134 if eval \${$cacheid+:} false; then : 7135 $as_echo_n "(cached) " >&6 7136else 7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7138/* end confdefs.h. */ 7139int i; 7140int 7141main () 7142{ 7143 7144 ; 7145 return 0; 7146} 7147_ACEOF 7148if ac_fn_c_try_link "$LINENO"; then : 7149 eval $cacheid=yes 7150else 7151 eval $cacheid=no 7152fi 7153rm -f core conftest.err conftest.$ac_objext \ 7154 conftest$ac_exeext conftest.$ac_ext 7155fi 7156 7157 7158 CFLAGS="$xorg_testset_save_CFLAGS" 7159 7160 eval supported=\$$cacheid 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7162$as_echo "$supported" >&6; } 7163 if test "$supported" = "yes" ; then 7164 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7165 found="yes" 7166 fi 7167 fi 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183xorg_testset_save_CFLAGS="$CFLAGS" 7184 7185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7190 $as_echo_n "(cached) " >&6 7191else 7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193/* end confdefs.h. */ 7194int i; 7195_ACEOF 7196if ac_fn_c_try_compile "$LINENO"; then : 7197 xorg_cv_cc_flag_unknown_warning_option=yes 7198else 7199 xorg_cv_cc_flag_unknown_warning_option=no 7200fi 7201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7202fi 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7206 CFLAGS="$xorg_testset_save_CFLAGS" 7207fi 7208 7209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7212 fi 7213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7217 $as_echo_n "(cached) " >&6 7218else 7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220/* end confdefs.h. */ 7221int i; 7222_ACEOF 7223if ac_fn_c_try_compile "$LINENO"; then : 7224 xorg_cv_cc_flag_unused_command_line_argument=yes 7225else 7226 xorg_cv_cc_flag_unused_command_line_argument=no 7227fi 7228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7229fi 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7233 CFLAGS="$xorg_testset_save_CFLAGS" 7234fi 7235 7236found="no" 7237 7238 if test $found = "no" ; then 7239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7241 fi 7242 7243 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7245 fi 7246 7247 CFLAGS="$CFLAGS -Werror=main" 7248 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7250$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7251 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7252 if eval \${$cacheid+:} false; then : 7253 $as_echo_n "(cached) " >&6 7254else 7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7256/* end confdefs.h. */ 7257int i; 7258int 7259main () 7260{ 7261 7262 ; 7263 return 0; 7264} 7265_ACEOF 7266if ac_fn_c_try_link "$LINENO"; then : 7267 eval $cacheid=yes 7268else 7269 eval $cacheid=no 7270fi 7271rm -f core conftest.err conftest.$ac_objext \ 7272 conftest$ac_exeext conftest.$ac_ext 7273fi 7274 7275 7276 CFLAGS="$xorg_testset_save_CFLAGS" 7277 7278 eval supported=\$$cacheid 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7280$as_echo "$supported" >&6; } 7281 if test "$supported" = "yes" ; then 7282 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7283 found="yes" 7284 fi 7285 fi 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301xorg_testset_save_CFLAGS="$CFLAGS" 7302 7303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7308 $as_echo_n "(cached) " >&6 7309else 7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7311/* end confdefs.h. */ 7312int i; 7313_ACEOF 7314if ac_fn_c_try_compile "$LINENO"; then : 7315 xorg_cv_cc_flag_unknown_warning_option=yes 7316else 7317 xorg_cv_cc_flag_unknown_warning_option=no 7318fi 7319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7320fi 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7324 CFLAGS="$xorg_testset_save_CFLAGS" 7325fi 7326 7327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7330 fi 7331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338/* end confdefs.h. */ 7339int i; 7340_ACEOF 7341if ac_fn_c_try_compile "$LINENO"; then : 7342 xorg_cv_cc_flag_unused_command_line_argument=yes 7343else 7344 xorg_cv_cc_flag_unused_command_line_argument=no 7345fi 7346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7347fi 7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7351 CFLAGS="$xorg_testset_save_CFLAGS" 7352fi 7353 7354found="no" 7355 7356 if test $found = "no" ; then 7357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7359 fi 7360 7361 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7363 fi 7364 7365 CFLAGS="$CFLAGS -Werror=missing-braces" 7366 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7368$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7369 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7370 if eval \${$cacheid+:} false; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7374/* end confdefs.h. */ 7375int i; 7376int 7377main () 7378{ 7379 7380 ; 7381 return 0; 7382} 7383_ACEOF 7384if ac_fn_c_try_link "$LINENO"; then : 7385 eval $cacheid=yes 7386else 7387 eval $cacheid=no 7388fi 7389rm -f core conftest.err conftest.$ac_objext \ 7390 conftest$ac_exeext conftest.$ac_ext 7391fi 7392 7393 7394 CFLAGS="$xorg_testset_save_CFLAGS" 7395 7396 eval supported=\$$cacheid 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7398$as_echo "$supported" >&6; } 7399 if test "$supported" = "yes" ; then 7400 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7401 found="yes" 7402 fi 7403 fi 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419xorg_testset_save_CFLAGS="$CFLAGS" 7420 7421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7426 $as_echo_n "(cached) " >&6 7427else 7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7429/* end confdefs.h. */ 7430int i; 7431_ACEOF 7432if ac_fn_c_try_compile "$LINENO"; then : 7433 xorg_cv_cc_flag_unknown_warning_option=yes 7434else 7435 xorg_cv_cc_flag_unknown_warning_option=no 7436fi 7437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7438fi 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7442 CFLAGS="$xorg_testset_save_CFLAGS" 7443fi 7444 7445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7448 fi 7449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7456/* end confdefs.h. */ 7457int i; 7458_ACEOF 7459if ac_fn_c_try_compile "$LINENO"; then : 7460 xorg_cv_cc_flag_unused_command_line_argument=yes 7461else 7462 xorg_cv_cc_flag_unused_command_line_argument=no 7463fi 7464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7465fi 7466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7469 CFLAGS="$xorg_testset_save_CFLAGS" 7470fi 7471 7472found="no" 7473 7474 if test $found = "no" ; then 7475 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7477 fi 7478 7479 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7481 fi 7482 7483 CFLAGS="$CFLAGS -Werror=sequence-point" 7484 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7486$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7487 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7488 if eval \${$cacheid+:} false; then : 7489 $as_echo_n "(cached) " >&6 7490else 7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7492/* end confdefs.h. */ 7493int i; 7494int 7495main () 7496{ 7497 7498 ; 7499 return 0; 7500} 7501_ACEOF 7502if ac_fn_c_try_link "$LINENO"; then : 7503 eval $cacheid=yes 7504else 7505 eval $cacheid=no 7506fi 7507rm -f core conftest.err conftest.$ac_objext \ 7508 conftest$ac_exeext conftest.$ac_ext 7509fi 7510 7511 7512 CFLAGS="$xorg_testset_save_CFLAGS" 7513 7514 eval supported=\$$cacheid 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7516$as_echo "$supported" >&6; } 7517 if test "$supported" = "yes" ; then 7518 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7519 found="yes" 7520 fi 7521 fi 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537xorg_testset_save_CFLAGS="$CFLAGS" 7538 7539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547/* end confdefs.h. */ 7548int i; 7549_ACEOF 7550if ac_fn_c_try_compile "$LINENO"; then : 7551 xorg_cv_cc_flag_unknown_warning_option=yes 7552else 7553 xorg_cv_cc_flag_unknown_warning_option=no 7554fi 7555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7556fi 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7560 CFLAGS="$xorg_testset_save_CFLAGS" 7561fi 7562 7563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7566 fi 7567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7571 $as_echo_n "(cached) " >&6 7572else 7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7574/* end confdefs.h. */ 7575int i; 7576_ACEOF 7577if ac_fn_c_try_compile "$LINENO"; then : 7578 xorg_cv_cc_flag_unused_command_line_argument=yes 7579else 7580 xorg_cv_cc_flag_unused_command_line_argument=no 7581fi 7582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7583fi 7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7587 CFLAGS="$xorg_testset_save_CFLAGS" 7588fi 7589 7590found="no" 7591 7592 if test $found = "no" ; then 7593 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7595 fi 7596 7597 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7599 fi 7600 7601 CFLAGS="$CFLAGS -Werror=return-type" 7602 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7604$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7605 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7606 if eval \${$cacheid+:} false; then : 7607 $as_echo_n "(cached) " >&6 7608else 7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610/* end confdefs.h. */ 7611int i; 7612int 7613main () 7614{ 7615 7616 ; 7617 return 0; 7618} 7619_ACEOF 7620if ac_fn_c_try_link "$LINENO"; then : 7621 eval $cacheid=yes 7622else 7623 eval $cacheid=no 7624fi 7625rm -f core conftest.err conftest.$ac_objext \ 7626 conftest$ac_exeext conftest.$ac_ext 7627fi 7628 7629 7630 CFLAGS="$xorg_testset_save_CFLAGS" 7631 7632 eval supported=\$$cacheid 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7634$as_echo "$supported" >&6; } 7635 if test "$supported" = "yes" ; then 7636 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7637 found="yes" 7638 fi 7639 fi 7640 7641 if test $found = "no" ; then 7642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7644 fi 7645 7646 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7648 fi 7649 7650 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7651 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7653$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7654 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7655 if eval \${$cacheid+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7659/* end confdefs.h. */ 7660int i; 7661int 7662main () 7663{ 7664 7665 ; 7666 return 0; 7667} 7668_ACEOF 7669if ac_fn_c_try_link "$LINENO"; then : 7670 eval $cacheid=yes 7671else 7672 eval $cacheid=no 7673fi 7674rm -f core conftest.err conftest.$ac_objext \ 7675 conftest$ac_exeext conftest.$ac_ext 7676fi 7677 7678 7679 CFLAGS="$xorg_testset_save_CFLAGS" 7680 7681 eval supported=\$$cacheid 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7683$as_echo "$supported" >&6; } 7684 if test "$supported" = "yes" ; then 7685 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7686 found="yes" 7687 fi 7688 fi 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704xorg_testset_save_CFLAGS="$CFLAGS" 7705 7706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7711 $as_echo_n "(cached) " >&6 7712else 7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7714/* end confdefs.h. */ 7715int i; 7716_ACEOF 7717if ac_fn_c_try_compile "$LINENO"; then : 7718 xorg_cv_cc_flag_unknown_warning_option=yes 7719else 7720 xorg_cv_cc_flag_unknown_warning_option=no 7721fi 7722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7723fi 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7727 CFLAGS="$xorg_testset_save_CFLAGS" 7728fi 7729 7730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7733 fi 7734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7741/* end confdefs.h. */ 7742int i; 7743_ACEOF 7744if ac_fn_c_try_compile "$LINENO"; then : 7745 xorg_cv_cc_flag_unused_command_line_argument=yes 7746else 7747 xorg_cv_cc_flag_unused_command_line_argument=no 7748fi 7749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7750fi 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7754 CFLAGS="$xorg_testset_save_CFLAGS" 7755fi 7756 7757found="no" 7758 7759 if test $found = "no" ; then 7760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762 fi 7763 7764 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7766 fi 7767 7768 CFLAGS="$CFLAGS -Werror=trigraphs" 7769 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7771$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7772 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7773 if eval \${$cacheid+:} false; then : 7774 $as_echo_n "(cached) " >&6 7775else 7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7777/* end confdefs.h. */ 7778int i; 7779int 7780main () 7781{ 7782 7783 ; 7784 return 0; 7785} 7786_ACEOF 7787if ac_fn_c_try_link "$LINENO"; then : 7788 eval $cacheid=yes 7789else 7790 eval $cacheid=no 7791fi 7792rm -f core conftest.err conftest.$ac_objext \ 7793 conftest$ac_exeext conftest.$ac_ext 7794fi 7795 7796 7797 CFLAGS="$xorg_testset_save_CFLAGS" 7798 7799 eval supported=\$$cacheid 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7801$as_echo "$supported" >&6; } 7802 if test "$supported" = "yes" ; then 7803 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7804 found="yes" 7805 fi 7806 fi 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822xorg_testset_save_CFLAGS="$CFLAGS" 7823 7824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7829 $as_echo_n "(cached) " >&6 7830else 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832/* end confdefs.h. */ 7833int i; 7834_ACEOF 7835if ac_fn_c_try_compile "$LINENO"; then : 7836 xorg_cv_cc_flag_unknown_warning_option=yes 7837else 7838 xorg_cv_cc_flag_unknown_warning_option=no 7839fi 7840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7841fi 7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7845 CFLAGS="$xorg_testset_save_CFLAGS" 7846fi 7847 7848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7851 fi 7852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7859/* end confdefs.h. */ 7860int i; 7861_ACEOF 7862if ac_fn_c_try_compile "$LINENO"; then : 7863 xorg_cv_cc_flag_unused_command_line_argument=yes 7864else 7865 xorg_cv_cc_flag_unused_command_line_argument=no 7866fi 7867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7868fi 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7872 CFLAGS="$xorg_testset_save_CFLAGS" 7873fi 7874 7875found="no" 7876 7877 if test $found = "no" ; then 7878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7880 fi 7881 7882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7884 fi 7885 7886 CFLAGS="$CFLAGS -Werror=array-bounds" 7887 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7889$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7890 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7891 if eval \${$cacheid+:} false; then : 7892 $as_echo_n "(cached) " >&6 7893else 7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7895/* end confdefs.h. */ 7896int i; 7897int 7898main () 7899{ 7900 7901 ; 7902 return 0; 7903} 7904_ACEOF 7905if ac_fn_c_try_link "$LINENO"; then : 7906 eval $cacheid=yes 7907else 7908 eval $cacheid=no 7909fi 7910rm -f core conftest.err conftest.$ac_objext \ 7911 conftest$ac_exeext conftest.$ac_ext 7912fi 7913 7914 7915 CFLAGS="$xorg_testset_save_CFLAGS" 7916 7917 eval supported=\$$cacheid 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7919$as_echo "$supported" >&6; } 7920 if test "$supported" = "yes" ; then 7921 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7922 found="yes" 7923 fi 7924 fi 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940xorg_testset_save_CFLAGS="$CFLAGS" 7941 7942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7947 $as_echo_n "(cached) " >&6 7948else 7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7950/* end confdefs.h. */ 7951int i; 7952_ACEOF 7953if ac_fn_c_try_compile "$LINENO"; then : 7954 xorg_cv_cc_flag_unknown_warning_option=yes 7955else 7956 xorg_cv_cc_flag_unknown_warning_option=no 7957fi 7958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7959fi 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7963 CFLAGS="$xorg_testset_save_CFLAGS" 7964fi 7965 7966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7969 fi 7970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977/* end confdefs.h. */ 7978int i; 7979_ACEOF 7980if ac_fn_c_try_compile "$LINENO"; then : 7981 xorg_cv_cc_flag_unused_command_line_argument=yes 7982else 7983 xorg_cv_cc_flag_unused_command_line_argument=no 7984fi 7985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7986fi 7987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7990 CFLAGS="$xorg_testset_save_CFLAGS" 7991fi 7992 7993found="no" 7994 7995 if test $found = "no" ; then 7996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7998 fi 7999 8000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8002 fi 8003 8004 CFLAGS="$CFLAGS -Werror=write-strings" 8005 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8007$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8008 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8009 if eval \${$cacheid+:} false; then : 8010 $as_echo_n "(cached) " >&6 8011else 8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8013/* end confdefs.h. */ 8014int i; 8015int 8016main () 8017{ 8018 8019 ; 8020 return 0; 8021} 8022_ACEOF 8023if ac_fn_c_try_link "$LINENO"; then : 8024 eval $cacheid=yes 8025else 8026 eval $cacheid=no 8027fi 8028rm -f core conftest.err conftest.$ac_objext \ 8029 conftest$ac_exeext conftest.$ac_ext 8030fi 8031 8032 8033 CFLAGS="$xorg_testset_save_CFLAGS" 8034 8035 eval supported=\$$cacheid 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8037$as_echo "$supported" >&6; } 8038 if test "$supported" = "yes" ; then 8039 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8040 found="yes" 8041 fi 8042 fi 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058xorg_testset_save_CFLAGS="$CFLAGS" 8059 8060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8065 $as_echo_n "(cached) " >&6 8066else 8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8068/* end confdefs.h. */ 8069int i; 8070_ACEOF 8071if ac_fn_c_try_compile "$LINENO"; then : 8072 xorg_cv_cc_flag_unknown_warning_option=yes 8073else 8074 xorg_cv_cc_flag_unknown_warning_option=no 8075fi 8076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8077fi 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8081 CFLAGS="$xorg_testset_save_CFLAGS" 8082fi 8083 8084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8087 fi 8088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8092 $as_echo_n "(cached) " >&6 8093else 8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8095/* end confdefs.h. */ 8096int i; 8097_ACEOF 8098if ac_fn_c_try_compile "$LINENO"; then : 8099 xorg_cv_cc_flag_unused_command_line_argument=yes 8100else 8101 xorg_cv_cc_flag_unused_command_line_argument=no 8102fi 8103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8104fi 8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8108 CFLAGS="$xorg_testset_save_CFLAGS" 8109fi 8110 8111found="no" 8112 8113 if test $found = "no" ; then 8114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8116 fi 8117 8118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8120 fi 8121 8122 CFLAGS="$CFLAGS -Werror=address" 8123 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8125$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8126 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8127 if eval \${$cacheid+:} false; then : 8128 $as_echo_n "(cached) " >&6 8129else 8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8131/* end confdefs.h. */ 8132int i; 8133int 8134main () 8135{ 8136 8137 ; 8138 return 0; 8139} 8140_ACEOF 8141if ac_fn_c_try_link "$LINENO"; then : 8142 eval $cacheid=yes 8143else 8144 eval $cacheid=no 8145fi 8146rm -f core conftest.err conftest.$ac_objext \ 8147 conftest$ac_exeext conftest.$ac_ext 8148fi 8149 8150 8151 CFLAGS="$xorg_testset_save_CFLAGS" 8152 8153 eval supported=\$$cacheid 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8155$as_echo "$supported" >&6; } 8156 if test "$supported" = "yes" ; then 8157 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8158 found="yes" 8159 fi 8160 fi 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176xorg_testset_save_CFLAGS="$CFLAGS" 8177 8178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8183 $as_echo_n "(cached) " >&6 8184else 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187int i; 8188_ACEOF 8189if ac_fn_c_try_compile "$LINENO"; then : 8190 xorg_cv_cc_flag_unknown_warning_option=yes 8191else 8192 xorg_cv_cc_flag_unknown_warning_option=no 8193fi 8194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8195fi 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8199 CFLAGS="$xorg_testset_save_CFLAGS" 8200fi 8201 8202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8205 fi 8206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8210 $as_echo_n "(cached) " >&6 8211else 8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8213/* end confdefs.h. */ 8214int i; 8215_ACEOF 8216if ac_fn_c_try_compile "$LINENO"; then : 8217 xorg_cv_cc_flag_unused_command_line_argument=yes 8218else 8219 xorg_cv_cc_flag_unused_command_line_argument=no 8220fi 8221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8222fi 8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8226 CFLAGS="$xorg_testset_save_CFLAGS" 8227fi 8228 8229found="no" 8230 8231 if test $found = "no" ; then 8232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8234 fi 8235 8236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8238 fi 8239 8240 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8241 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8243$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8244 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8245 if eval \${$cacheid+:} false; then : 8246 $as_echo_n "(cached) " >&6 8247else 8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8249/* end confdefs.h. */ 8250int i; 8251int 8252main () 8253{ 8254 8255 ; 8256 return 0; 8257} 8258_ACEOF 8259if ac_fn_c_try_link "$LINENO"; then : 8260 eval $cacheid=yes 8261else 8262 eval $cacheid=no 8263fi 8264rm -f core conftest.err conftest.$ac_objext \ 8265 conftest$ac_exeext conftest.$ac_ext 8266fi 8267 8268 8269 CFLAGS="$xorg_testset_save_CFLAGS" 8270 8271 eval supported=\$$cacheid 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8273$as_echo "$supported" >&6; } 8274 if test "$supported" = "yes" ; then 8275 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8276 found="yes" 8277 fi 8278 fi 8279 8280 if test $found = "no" ; then 8281 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8283 fi 8284 8285 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8287 fi 8288 8289 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8290 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8292$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8293 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8294 if eval \${$cacheid+:} false; then : 8295 $as_echo_n "(cached) " >&6 8296else 8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8298/* end confdefs.h. */ 8299int i; 8300int 8301main () 8302{ 8303 8304 ; 8305 return 0; 8306} 8307_ACEOF 8308if ac_fn_c_try_link "$LINENO"; then : 8309 eval $cacheid=yes 8310else 8311 eval $cacheid=no 8312fi 8313rm -f core conftest.err conftest.$ac_objext \ 8314 conftest$ac_exeext conftest.$ac_ext 8315fi 8316 8317 8318 CFLAGS="$xorg_testset_save_CFLAGS" 8319 8320 eval supported=\$$cacheid 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8322$as_echo "$supported" >&6; } 8323 if test "$supported" = "yes" ; then 8324 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8325 found="yes" 8326 fi 8327 fi 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343xorg_testset_save_CFLAGS="$CFLAGS" 8344 8345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8350 $as_echo_n "(cached) " >&6 8351else 8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8353/* end confdefs.h. */ 8354int i; 8355_ACEOF 8356if ac_fn_c_try_compile "$LINENO"; then : 8357 xorg_cv_cc_flag_unknown_warning_option=yes 8358else 8359 xorg_cv_cc_flag_unknown_warning_option=no 8360fi 8361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8362fi 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8366 CFLAGS="$xorg_testset_save_CFLAGS" 8367fi 8368 8369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8372 fi 8373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8377 $as_echo_n "(cached) " >&6 8378else 8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8380/* end confdefs.h. */ 8381int i; 8382_ACEOF 8383if ac_fn_c_try_compile "$LINENO"; then : 8384 xorg_cv_cc_flag_unused_command_line_argument=yes 8385else 8386 xorg_cv_cc_flag_unused_command_line_argument=no 8387fi 8388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8389fi 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8393 CFLAGS="$xorg_testset_save_CFLAGS" 8394fi 8395 8396found="no" 8397 8398 if test $found = "no" ; then 8399 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401 fi 8402 8403 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8405 fi 8406 8407 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8408 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8410$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8411 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8412 if eval \${$cacheid+:} false; then : 8413 $as_echo_n "(cached) " >&6 8414else 8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8416/* end confdefs.h. */ 8417int i; 8418int 8419main () 8420{ 8421 8422 ; 8423 return 0; 8424} 8425_ACEOF 8426if ac_fn_c_try_link "$LINENO"; then : 8427 eval $cacheid=yes 8428else 8429 eval $cacheid=no 8430fi 8431rm -f core conftest.err conftest.$ac_objext \ 8432 conftest$ac_exeext conftest.$ac_ext 8433fi 8434 8435 8436 CFLAGS="$xorg_testset_save_CFLAGS" 8437 8438 eval supported=\$$cacheid 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8440$as_echo "$supported" >&6; } 8441 if test "$supported" = "yes" ; then 8442 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8443 found="yes" 8444 fi 8445 fi 8446 8447 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8448else 8449{ $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 8450$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;} 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464xorg_testset_save_CFLAGS="$CFLAGS" 8465 8466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8469$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8470if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8471 $as_echo_n "(cached) " >&6 8472else 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475int i; 8476_ACEOF 8477if ac_fn_c_try_compile "$LINENO"; then : 8478 xorg_cv_cc_flag_unknown_warning_option=yes 8479else 8480 xorg_cv_cc_flag_unknown_warning_option=no 8481fi 8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8483fi 8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8485$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8487 CFLAGS="$xorg_testset_save_CFLAGS" 8488fi 8489 8490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8493 fi 8494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8496$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8497if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501/* end confdefs.h. */ 8502int i; 8503_ACEOF 8504if ac_fn_c_try_compile "$LINENO"; then : 8505 xorg_cv_cc_flag_unused_command_line_argument=yes 8506else 8507 xorg_cv_cc_flag_unused_command_line_argument=no 8508fi 8509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8510fi 8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8512$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8514 CFLAGS="$xorg_testset_save_CFLAGS" 8515fi 8516 8517found="no" 8518 8519 if test $found = "no" ; then 8520 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8522 fi 8523 8524 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8526 fi 8527 8528 CFLAGS="$CFLAGS -Wimplicit" 8529 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8531$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8532 cacheid=xorg_cv_cc_flag__Wimplicit 8533 if eval \${$cacheid+:} false; then : 8534 $as_echo_n "(cached) " >&6 8535else 8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8537/* end confdefs.h. */ 8538int i; 8539int 8540main () 8541{ 8542 8543 ; 8544 return 0; 8545} 8546_ACEOF 8547if ac_fn_c_try_link "$LINENO"; then : 8548 eval $cacheid=yes 8549else 8550 eval $cacheid=no 8551fi 8552rm -f core conftest.err conftest.$ac_objext \ 8553 conftest$ac_exeext conftest.$ac_ext 8554fi 8555 8556 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8558 8559 eval supported=\$$cacheid 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8561$as_echo "$supported" >&6; } 8562 if test "$supported" = "yes" ; then 8563 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8564 found="yes" 8565 fi 8566 fi 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582xorg_testset_save_CFLAGS="$CFLAGS" 8583 8584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8587$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8588if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8589 $as_echo_n "(cached) " >&6 8590else 8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8592/* end confdefs.h. */ 8593int i; 8594_ACEOF 8595if ac_fn_c_try_compile "$LINENO"; then : 8596 xorg_cv_cc_flag_unknown_warning_option=yes 8597else 8598 xorg_cv_cc_flag_unknown_warning_option=no 8599fi 8600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8601fi 8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8603$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8605 CFLAGS="$xorg_testset_save_CFLAGS" 8606fi 8607 8608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8611 fi 8612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8614$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8615if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8616 $as_echo_n "(cached) " >&6 8617else 8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8619/* end confdefs.h. */ 8620int i; 8621_ACEOF 8622if ac_fn_c_try_compile "$LINENO"; then : 8623 xorg_cv_cc_flag_unused_command_line_argument=yes 8624else 8625 xorg_cv_cc_flag_unused_command_line_argument=no 8626fi 8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8628fi 8629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8630$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8632 CFLAGS="$xorg_testset_save_CFLAGS" 8633fi 8634 8635found="no" 8636 8637 if test $found = "no" ; then 8638 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8640 fi 8641 8642 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8644 fi 8645 8646 CFLAGS="$CFLAGS -Wnonnull" 8647 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8649$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8650 cacheid=xorg_cv_cc_flag__Wnonnull 8651 if eval \${$cacheid+:} false; then : 8652 $as_echo_n "(cached) " >&6 8653else 8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8655/* end confdefs.h. */ 8656int i; 8657int 8658main () 8659{ 8660 8661 ; 8662 return 0; 8663} 8664_ACEOF 8665if ac_fn_c_try_link "$LINENO"; then : 8666 eval $cacheid=yes 8667else 8668 eval $cacheid=no 8669fi 8670rm -f core conftest.err conftest.$ac_objext \ 8671 conftest$ac_exeext conftest.$ac_ext 8672fi 8673 8674 8675 CFLAGS="$xorg_testset_save_CFLAGS" 8676 8677 eval supported=\$$cacheid 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8679$as_echo "$supported" >&6; } 8680 if test "$supported" = "yes" ; then 8681 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8682 found="yes" 8683 fi 8684 fi 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700xorg_testset_save_CFLAGS="$CFLAGS" 8701 8702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8705$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8706if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8707 $as_echo_n "(cached) " >&6 8708else 8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8710/* end confdefs.h. */ 8711int i; 8712_ACEOF 8713if ac_fn_c_try_compile "$LINENO"; then : 8714 xorg_cv_cc_flag_unknown_warning_option=yes 8715else 8716 xorg_cv_cc_flag_unknown_warning_option=no 8717fi 8718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8719fi 8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8721$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8723 CFLAGS="$xorg_testset_save_CFLAGS" 8724fi 8725 8726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8729 fi 8730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8732$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8733if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8734 $as_echo_n "(cached) " >&6 8735else 8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737/* end confdefs.h. */ 8738int i; 8739_ACEOF 8740if ac_fn_c_try_compile "$LINENO"; then : 8741 xorg_cv_cc_flag_unused_command_line_argument=yes 8742else 8743 xorg_cv_cc_flag_unused_command_line_argument=no 8744fi 8745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8746fi 8747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8748$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8750 CFLAGS="$xorg_testset_save_CFLAGS" 8751fi 8752 8753found="no" 8754 8755 if test $found = "no" ; then 8756 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8758 fi 8759 8760 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8762 fi 8763 8764 CFLAGS="$CFLAGS -Winit-self" 8765 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8767$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8768 cacheid=xorg_cv_cc_flag__Winit_self 8769 if eval \${$cacheid+:} false; then : 8770 $as_echo_n "(cached) " >&6 8771else 8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8773/* end confdefs.h. */ 8774int i; 8775int 8776main () 8777{ 8778 8779 ; 8780 return 0; 8781} 8782_ACEOF 8783if ac_fn_c_try_link "$LINENO"; then : 8784 eval $cacheid=yes 8785else 8786 eval $cacheid=no 8787fi 8788rm -f core conftest.err conftest.$ac_objext \ 8789 conftest$ac_exeext conftest.$ac_ext 8790fi 8791 8792 8793 CFLAGS="$xorg_testset_save_CFLAGS" 8794 8795 eval supported=\$$cacheid 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8797$as_echo "$supported" >&6; } 8798 if test "$supported" = "yes" ; then 8799 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8800 found="yes" 8801 fi 8802 fi 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818xorg_testset_save_CFLAGS="$CFLAGS" 8819 8820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8823$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8824if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8825 $as_echo_n "(cached) " >&6 8826else 8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8828/* end confdefs.h. */ 8829int i; 8830_ACEOF 8831if ac_fn_c_try_compile "$LINENO"; then : 8832 xorg_cv_cc_flag_unknown_warning_option=yes 8833else 8834 xorg_cv_cc_flag_unknown_warning_option=no 8835fi 8836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8837fi 8838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8839$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8841 CFLAGS="$xorg_testset_save_CFLAGS" 8842fi 8843 8844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8847 fi 8848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8850$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8851if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8852 $as_echo_n "(cached) " >&6 8853else 8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8855/* end confdefs.h. */ 8856int i; 8857_ACEOF 8858if ac_fn_c_try_compile "$LINENO"; then : 8859 xorg_cv_cc_flag_unused_command_line_argument=yes 8860else 8861 xorg_cv_cc_flag_unused_command_line_argument=no 8862fi 8863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8864fi 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8866$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8868 CFLAGS="$xorg_testset_save_CFLAGS" 8869fi 8870 8871found="no" 8872 8873 if test $found = "no" ; then 8874 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8876 fi 8877 8878 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8880 fi 8881 8882 CFLAGS="$CFLAGS -Wmain" 8883 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8885$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8886 cacheid=xorg_cv_cc_flag__Wmain 8887 if eval \${$cacheid+:} false; then : 8888 $as_echo_n "(cached) " >&6 8889else 8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8891/* end confdefs.h. */ 8892int i; 8893int 8894main () 8895{ 8896 8897 ; 8898 return 0; 8899} 8900_ACEOF 8901if ac_fn_c_try_link "$LINENO"; then : 8902 eval $cacheid=yes 8903else 8904 eval $cacheid=no 8905fi 8906rm -f core conftest.err conftest.$ac_objext \ 8907 conftest$ac_exeext conftest.$ac_ext 8908fi 8909 8910 8911 CFLAGS="$xorg_testset_save_CFLAGS" 8912 8913 eval supported=\$$cacheid 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8915$as_echo "$supported" >&6; } 8916 if test "$supported" = "yes" ; then 8917 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8918 found="yes" 8919 fi 8920 fi 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936xorg_testset_save_CFLAGS="$CFLAGS" 8937 8938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8943 $as_echo_n "(cached) " >&6 8944else 8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8946/* end confdefs.h. */ 8947int i; 8948_ACEOF 8949if ac_fn_c_try_compile "$LINENO"; then : 8950 xorg_cv_cc_flag_unknown_warning_option=yes 8951else 8952 xorg_cv_cc_flag_unknown_warning_option=no 8953fi 8954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8955fi 8956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8959 CFLAGS="$xorg_testset_save_CFLAGS" 8960fi 8961 8962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8965 fi 8966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8970 $as_echo_n "(cached) " >&6 8971else 8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8973/* end confdefs.h. */ 8974int i; 8975_ACEOF 8976if ac_fn_c_try_compile "$LINENO"; then : 8977 xorg_cv_cc_flag_unused_command_line_argument=yes 8978else 8979 xorg_cv_cc_flag_unused_command_line_argument=no 8980fi 8981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8982fi 8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8986 CFLAGS="$xorg_testset_save_CFLAGS" 8987fi 8988 8989found="no" 8990 8991 if test $found = "no" ; then 8992 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8994 fi 8995 8996 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8998 fi 8999 9000 CFLAGS="$CFLAGS -Wmissing-braces" 9001 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9003$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9004 cacheid=xorg_cv_cc_flag__Wmissing_braces 9005 if eval \${$cacheid+:} false; then : 9006 $as_echo_n "(cached) " >&6 9007else 9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9009/* end confdefs.h. */ 9010int i; 9011int 9012main () 9013{ 9014 9015 ; 9016 return 0; 9017} 9018_ACEOF 9019if ac_fn_c_try_link "$LINENO"; then : 9020 eval $cacheid=yes 9021else 9022 eval $cacheid=no 9023fi 9024rm -f core conftest.err conftest.$ac_objext \ 9025 conftest$ac_exeext conftest.$ac_ext 9026fi 9027 9028 9029 CFLAGS="$xorg_testset_save_CFLAGS" 9030 9031 eval supported=\$$cacheid 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9033$as_echo "$supported" >&6; } 9034 if test "$supported" = "yes" ; then 9035 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9036 found="yes" 9037 fi 9038 fi 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054xorg_testset_save_CFLAGS="$CFLAGS" 9055 9056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9059$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9060if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9061 $as_echo_n "(cached) " >&6 9062else 9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9064/* end confdefs.h. */ 9065int i; 9066_ACEOF 9067if ac_fn_c_try_compile "$LINENO"; then : 9068 xorg_cv_cc_flag_unknown_warning_option=yes 9069else 9070 xorg_cv_cc_flag_unknown_warning_option=no 9071fi 9072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9073fi 9074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9075$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9077 CFLAGS="$xorg_testset_save_CFLAGS" 9078fi 9079 9080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9083 fi 9084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9086$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9087if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9088 $as_echo_n "(cached) " >&6 9089else 9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9091/* end confdefs.h. */ 9092int i; 9093_ACEOF 9094if ac_fn_c_try_compile "$LINENO"; then : 9095 xorg_cv_cc_flag_unused_command_line_argument=yes 9096else 9097 xorg_cv_cc_flag_unused_command_line_argument=no 9098fi 9099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9100fi 9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9102$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9104 CFLAGS="$xorg_testset_save_CFLAGS" 9105fi 9106 9107found="no" 9108 9109 if test $found = "no" ; then 9110 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9112 fi 9113 9114 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9116 fi 9117 9118 CFLAGS="$CFLAGS -Wsequence-point" 9119 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9121$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9122 cacheid=xorg_cv_cc_flag__Wsequence_point 9123 if eval \${$cacheid+:} false; then : 9124 $as_echo_n "(cached) " >&6 9125else 9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9127/* end confdefs.h. */ 9128int i; 9129int 9130main () 9131{ 9132 9133 ; 9134 return 0; 9135} 9136_ACEOF 9137if ac_fn_c_try_link "$LINENO"; then : 9138 eval $cacheid=yes 9139else 9140 eval $cacheid=no 9141fi 9142rm -f core conftest.err conftest.$ac_objext \ 9143 conftest$ac_exeext conftest.$ac_ext 9144fi 9145 9146 9147 CFLAGS="$xorg_testset_save_CFLAGS" 9148 9149 eval supported=\$$cacheid 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9151$as_echo "$supported" >&6; } 9152 if test "$supported" = "yes" ; then 9153 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9154 found="yes" 9155 fi 9156 fi 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172xorg_testset_save_CFLAGS="$CFLAGS" 9173 9174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9179 $as_echo_n "(cached) " >&6 9180else 9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9182/* end confdefs.h. */ 9183int i; 9184_ACEOF 9185if ac_fn_c_try_compile "$LINENO"; then : 9186 xorg_cv_cc_flag_unknown_warning_option=yes 9187else 9188 xorg_cv_cc_flag_unknown_warning_option=no 9189fi 9190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9191fi 9192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9195 CFLAGS="$xorg_testset_save_CFLAGS" 9196fi 9197 9198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9201 fi 9202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9206 $as_echo_n "(cached) " >&6 9207else 9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9209/* end confdefs.h. */ 9210int i; 9211_ACEOF 9212if ac_fn_c_try_compile "$LINENO"; then : 9213 xorg_cv_cc_flag_unused_command_line_argument=yes 9214else 9215 xorg_cv_cc_flag_unused_command_line_argument=no 9216fi 9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9218fi 9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9222 CFLAGS="$xorg_testset_save_CFLAGS" 9223fi 9224 9225found="no" 9226 9227 if test $found = "no" ; then 9228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9230 fi 9231 9232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9234 fi 9235 9236 CFLAGS="$CFLAGS -Wreturn-type" 9237 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9239$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9240 cacheid=xorg_cv_cc_flag__Wreturn_type 9241 if eval \${$cacheid+:} false; then : 9242 $as_echo_n "(cached) " >&6 9243else 9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9245/* end confdefs.h. */ 9246int i; 9247int 9248main () 9249{ 9250 9251 ; 9252 return 0; 9253} 9254_ACEOF 9255if ac_fn_c_try_link "$LINENO"; then : 9256 eval $cacheid=yes 9257else 9258 eval $cacheid=no 9259fi 9260rm -f core conftest.err conftest.$ac_objext \ 9261 conftest$ac_exeext conftest.$ac_ext 9262fi 9263 9264 9265 CFLAGS="$xorg_testset_save_CFLAGS" 9266 9267 eval supported=\$$cacheid 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9269$as_echo "$supported" >&6; } 9270 if test "$supported" = "yes" ; then 9271 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9272 found="yes" 9273 fi 9274 fi 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290xorg_testset_save_CFLAGS="$CFLAGS" 9291 9292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9297 $as_echo_n "(cached) " >&6 9298else 9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9300/* end confdefs.h. */ 9301int i; 9302_ACEOF 9303if ac_fn_c_try_compile "$LINENO"; then : 9304 xorg_cv_cc_flag_unknown_warning_option=yes 9305else 9306 xorg_cv_cc_flag_unknown_warning_option=no 9307fi 9308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9309fi 9310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9313 CFLAGS="$xorg_testset_save_CFLAGS" 9314fi 9315 9316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9319 fi 9320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9324 $as_echo_n "(cached) " >&6 9325else 9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9327/* end confdefs.h. */ 9328int i; 9329_ACEOF 9330if ac_fn_c_try_compile "$LINENO"; then : 9331 xorg_cv_cc_flag_unused_command_line_argument=yes 9332else 9333 xorg_cv_cc_flag_unused_command_line_argument=no 9334fi 9335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9336fi 9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9340 CFLAGS="$xorg_testset_save_CFLAGS" 9341fi 9342 9343found="no" 9344 9345 if test $found = "no" ; then 9346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9348 fi 9349 9350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9352 fi 9353 9354 CFLAGS="$CFLAGS -Wtrigraphs" 9355 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9357$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9358 cacheid=xorg_cv_cc_flag__Wtrigraphs 9359 if eval \${$cacheid+:} false; then : 9360 $as_echo_n "(cached) " >&6 9361else 9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9363/* end confdefs.h. */ 9364int i; 9365int 9366main () 9367{ 9368 9369 ; 9370 return 0; 9371} 9372_ACEOF 9373if ac_fn_c_try_link "$LINENO"; then : 9374 eval $cacheid=yes 9375else 9376 eval $cacheid=no 9377fi 9378rm -f core conftest.err conftest.$ac_objext \ 9379 conftest$ac_exeext conftest.$ac_ext 9380fi 9381 9382 9383 CFLAGS="$xorg_testset_save_CFLAGS" 9384 9385 eval supported=\$$cacheid 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9387$as_echo "$supported" >&6; } 9388 if test "$supported" = "yes" ; then 9389 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9390 found="yes" 9391 fi 9392 fi 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408xorg_testset_save_CFLAGS="$CFLAGS" 9409 9410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9415 $as_echo_n "(cached) " >&6 9416else 9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9418/* end confdefs.h. */ 9419int i; 9420_ACEOF 9421if ac_fn_c_try_compile "$LINENO"; then : 9422 xorg_cv_cc_flag_unknown_warning_option=yes 9423else 9424 xorg_cv_cc_flag_unknown_warning_option=no 9425fi 9426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9427fi 9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9431 CFLAGS="$xorg_testset_save_CFLAGS" 9432fi 9433 9434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9437 fi 9438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9442 $as_echo_n "(cached) " >&6 9443else 9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9445/* end confdefs.h. */ 9446int i; 9447_ACEOF 9448if ac_fn_c_try_compile "$LINENO"; then : 9449 xorg_cv_cc_flag_unused_command_line_argument=yes 9450else 9451 xorg_cv_cc_flag_unused_command_line_argument=no 9452fi 9453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9454fi 9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9458 CFLAGS="$xorg_testset_save_CFLAGS" 9459fi 9460 9461found="no" 9462 9463 if test $found = "no" ; then 9464 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9466 fi 9467 9468 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9470 fi 9471 9472 CFLAGS="$CFLAGS -Warray-bounds" 9473 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9475$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9476 cacheid=xorg_cv_cc_flag__Warray_bounds 9477 if eval \${$cacheid+:} false; then : 9478 $as_echo_n "(cached) " >&6 9479else 9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9481/* end confdefs.h. */ 9482int i; 9483int 9484main () 9485{ 9486 9487 ; 9488 return 0; 9489} 9490_ACEOF 9491if ac_fn_c_try_link "$LINENO"; then : 9492 eval $cacheid=yes 9493else 9494 eval $cacheid=no 9495fi 9496rm -f core conftest.err conftest.$ac_objext \ 9497 conftest$ac_exeext conftest.$ac_ext 9498fi 9499 9500 9501 CFLAGS="$xorg_testset_save_CFLAGS" 9502 9503 eval supported=\$$cacheid 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9505$as_echo "$supported" >&6; } 9506 if test "$supported" = "yes" ; then 9507 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9508 found="yes" 9509 fi 9510 fi 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526xorg_testset_save_CFLAGS="$CFLAGS" 9527 9528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9533 $as_echo_n "(cached) " >&6 9534else 9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9536/* end confdefs.h. */ 9537int i; 9538_ACEOF 9539if ac_fn_c_try_compile "$LINENO"; then : 9540 xorg_cv_cc_flag_unknown_warning_option=yes 9541else 9542 xorg_cv_cc_flag_unknown_warning_option=no 9543fi 9544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9545fi 9546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9549 CFLAGS="$xorg_testset_save_CFLAGS" 9550fi 9551 9552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9555 fi 9556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9560 $as_echo_n "(cached) " >&6 9561else 9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9563/* end confdefs.h. */ 9564int i; 9565_ACEOF 9566if ac_fn_c_try_compile "$LINENO"; then : 9567 xorg_cv_cc_flag_unused_command_line_argument=yes 9568else 9569 xorg_cv_cc_flag_unused_command_line_argument=no 9570fi 9571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9572fi 9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9576 CFLAGS="$xorg_testset_save_CFLAGS" 9577fi 9578 9579found="no" 9580 9581 if test $found = "no" ; then 9582 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9584 fi 9585 9586 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9588 fi 9589 9590 CFLAGS="$CFLAGS -Wwrite-strings" 9591 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9593$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9594 cacheid=xorg_cv_cc_flag__Wwrite_strings 9595 if eval \${$cacheid+:} false; then : 9596 $as_echo_n "(cached) " >&6 9597else 9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9599/* end confdefs.h. */ 9600int i; 9601int 9602main () 9603{ 9604 9605 ; 9606 return 0; 9607} 9608_ACEOF 9609if ac_fn_c_try_link "$LINENO"; then : 9610 eval $cacheid=yes 9611else 9612 eval $cacheid=no 9613fi 9614rm -f core conftest.err conftest.$ac_objext \ 9615 conftest$ac_exeext conftest.$ac_ext 9616fi 9617 9618 9619 CFLAGS="$xorg_testset_save_CFLAGS" 9620 9621 eval supported=\$$cacheid 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9623$as_echo "$supported" >&6; } 9624 if test "$supported" = "yes" ; then 9625 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9626 found="yes" 9627 fi 9628 fi 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644xorg_testset_save_CFLAGS="$CFLAGS" 9645 9646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9651 $as_echo_n "(cached) " >&6 9652else 9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9654/* end confdefs.h. */ 9655int i; 9656_ACEOF 9657if ac_fn_c_try_compile "$LINENO"; then : 9658 xorg_cv_cc_flag_unknown_warning_option=yes 9659else 9660 xorg_cv_cc_flag_unknown_warning_option=no 9661fi 9662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9663fi 9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9667 CFLAGS="$xorg_testset_save_CFLAGS" 9668fi 9669 9670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9673 fi 9674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9678 $as_echo_n "(cached) " >&6 9679else 9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9681/* end confdefs.h. */ 9682int i; 9683_ACEOF 9684if ac_fn_c_try_compile "$LINENO"; then : 9685 xorg_cv_cc_flag_unused_command_line_argument=yes 9686else 9687 xorg_cv_cc_flag_unused_command_line_argument=no 9688fi 9689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9690fi 9691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9694 CFLAGS="$xorg_testset_save_CFLAGS" 9695fi 9696 9697found="no" 9698 9699 if test $found = "no" ; then 9700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9702 fi 9703 9704 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9706 fi 9707 9708 CFLAGS="$CFLAGS -Waddress" 9709 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9711$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9712 cacheid=xorg_cv_cc_flag__Waddress 9713 if eval \${$cacheid+:} false; then : 9714 $as_echo_n "(cached) " >&6 9715else 9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9717/* end confdefs.h. */ 9718int i; 9719int 9720main () 9721{ 9722 9723 ; 9724 return 0; 9725} 9726_ACEOF 9727if ac_fn_c_try_link "$LINENO"; then : 9728 eval $cacheid=yes 9729else 9730 eval $cacheid=no 9731fi 9732rm -f core conftest.err conftest.$ac_objext \ 9733 conftest$ac_exeext conftest.$ac_ext 9734fi 9735 9736 9737 CFLAGS="$xorg_testset_save_CFLAGS" 9738 9739 eval supported=\$$cacheid 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9741$as_echo "$supported" >&6; } 9742 if test "$supported" = "yes" ; then 9743 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9744 found="yes" 9745 fi 9746 fi 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762xorg_testset_save_CFLAGS="$CFLAGS" 9763 9764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9769 $as_echo_n "(cached) " >&6 9770else 9771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9772/* end confdefs.h. */ 9773int i; 9774_ACEOF 9775if ac_fn_c_try_compile "$LINENO"; then : 9776 xorg_cv_cc_flag_unknown_warning_option=yes 9777else 9778 xorg_cv_cc_flag_unknown_warning_option=no 9779fi 9780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9781fi 9782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9785 CFLAGS="$xorg_testset_save_CFLAGS" 9786fi 9787 9788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9791 fi 9792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9796 $as_echo_n "(cached) " >&6 9797else 9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9799/* end confdefs.h. */ 9800int i; 9801_ACEOF 9802if ac_fn_c_try_compile "$LINENO"; then : 9803 xorg_cv_cc_flag_unused_command_line_argument=yes 9804else 9805 xorg_cv_cc_flag_unused_command_line_argument=no 9806fi 9807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9808fi 9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9812 CFLAGS="$xorg_testset_save_CFLAGS" 9813fi 9814 9815found="no" 9816 9817 if test $found = "no" ; then 9818 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9820 fi 9821 9822 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9824 fi 9825 9826 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9827 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9829$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9830 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9831 if eval \${$cacheid+:} false; then : 9832 $as_echo_n "(cached) " >&6 9833else 9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835/* end confdefs.h. */ 9836int i; 9837int 9838main () 9839{ 9840 9841 ; 9842 return 0; 9843} 9844_ACEOF 9845if ac_fn_c_try_link "$LINENO"; then : 9846 eval $cacheid=yes 9847else 9848 eval $cacheid=no 9849fi 9850rm -f core conftest.err conftest.$ac_objext \ 9851 conftest$ac_exeext conftest.$ac_ext 9852fi 9853 9854 9855 CFLAGS="$xorg_testset_save_CFLAGS" 9856 9857 eval supported=\$$cacheid 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9859$as_echo "$supported" >&6; } 9860 if test "$supported" = "yes" ; then 9861 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9862 found="yes" 9863 fi 9864 fi 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880xorg_testset_save_CFLAGS="$CFLAGS" 9881 9882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9887 $as_echo_n "(cached) " >&6 9888else 9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9890/* end confdefs.h. */ 9891int i; 9892_ACEOF 9893if ac_fn_c_try_compile "$LINENO"; then : 9894 xorg_cv_cc_flag_unknown_warning_option=yes 9895else 9896 xorg_cv_cc_flag_unknown_warning_option=no 9897fi 9898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9899fi 9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9903 CFLAGS="$xorg_testset_save_CFLAGS" 9904fi 9905 9906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9909 fi 9910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9914 $as_echo_n "(cached) " >&6 9915else 9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9917/* end confdefs.h. */ 9918int i; 9919_ACEOF 9920if ac_fn_c_try_compile "$LINENO"; then : 9921 xorg_cv_cc_flag_unused_command_line_argument=yes 9922else 9923 xorg_cv_cc_flag_unused_command_line_argument=no 9924fi 9925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9926fi 9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9930 CFLAGS="$xorg_testset_save_CFLAGS" 9931fi 9932 9933found="no" 9934 9935 if test $found = "no" ; then 9936 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9938 fi 9939 9940 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9942 fi 9943 9944 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9945 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9947$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9948 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9949 if eval \${$cacheid+:} false; then : 9950 $as_echo_n "(cached) " >&6 9951else 9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9953/* end confdefs.h. */ 9954int i; 9955int 9956main () 9957{ 9958 9959 ; 9960 return 0; 9961} 9962_ACEOF 9963if ac_fn_c_try_link "$LINENO"; then : 9964 eval $cacheid=yes 9965else 9966 eval $cacheid=no 9967fi 9968rm -f core conftest.err conftest.$ac_objext \ 9969 conftest$ac_exeext conftest.$ac_ext 9970fi 9971 9972 9973 CFLAGS="$xorg_testset_save_CFLAGS" 9974 9975 eval supported=\$$cacheid 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9977$as_echo "$supported" >&6; } 9978 if test "$supported" = "yes" ; then 9979 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9980 found="yes" 9981 fi 9982 fi 9983 9984 9985fi 9986 9987 9988 9989 9990 9991 9992 9993 CWARNFLAGS="$BASE_CFLAGS" 9994 if test "x$GCC" = xyes ; then 9995 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9996 fi 9997 9998 9999 10000 10001 10002 10003 10004 10005# Check whether --enable-strict-compilation was given. 10006if test "${enable_strict_compilation+set}" = set; then : 10007 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10008else 10009 STRICT_COMPILE=no 10010fi 10011 10012 10013 10014 10015 10016 10017STRICT_CFLAGS="" 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031xorg_testset_save_CFLAGS="$CFLAGS" 10032 10033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10038 $as_echo_n "(cached) " >&6 10039else 10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10041/* end confdefs.h. */ 10042int i; 10043_ACEOF 10044if ac_fn_c_try_compile "$LINENO"; then : 10045 xorg_cv_cc_flag_unknown_warning_option=yes 10046else 10047 xorg_cv_cc_flag_unknown_warning_option=no 10048fi 10049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10050fi 10051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10054 CFLAGS="$xorg_testset_save_CFLAGS" 10055fi 10056 10057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10060 fi 10061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10065 $as_echo_n "(cached) " >&6 10066else 10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10068/* end confdefs.h. */ 10069int i; 10070_ACEOF 10071if ac_fn_c_try_compile "$LINENO"; then : 10072 xorg_cv_cc_flag_unused_command_line_argument=yes 10073else 10074 xorg_cv_cc_flag_unused_command_line_argument=no 10075fi 10076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10077fi 10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10081 CFLAGS="$xorg_testset_save_CFLAGS" 10082fi 10083 10084found="no" 10085 10086 if test $found = "no" ; then 10087 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10089 fi 10090 10091 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10093 fi 10094 10095 CFLAGS="$CFLAGS -pedantic" 10096 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10098$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10099 cacheid=xorg_cv_cc_flag__pedantic 10100 if eval \${$cacheid+:} false; then : 10101 $as_echo_n "(cached) " >&6 10102else 10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10104/* end confdefs.h. */ 10105int i; 10106int 10107main () 10108{ 10109 10110 ; 10111 return 0; 10112} 10113_ACEOF 10114if ac_fn_c_try_link "$LINENO"; then : 10115 eval $cacheid=yes 10116else 10117 eval $cacheid=no 10118fi 10119rm -f core conftest.err conftest.$ac_objext \ 10120 conftest$ac_exeext conftest.$ac_ext 10121fi 10122 10123 10124 CFLAGS="$xorg_testset_save_CFLAGS" 10125 10126 eval supported=\$$cacheid 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10128$as_echo "$supported" >&6; } 10129 if test "$supported" = "yes" ; then 10130 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10131 found="yes" 10132 fi 10133 fi 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149xorg_testset_save_CFLAGS="$CFLAGS" 10150 10151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10156 $as_echo_n "(cached) " >&6 10157else 10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159/* end confdefs.h. */ 10160int i; 10161_ACEOF 10162if ac_fn_c_try_compile "$LINENO"; then : 10163 xorg_cv_cc_flag_unknown_warning_option=yes 10164else 10165 xorg_cv_cc_flag_unknown_warning_option=no 10166fi 10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10168fi 10169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10172 CFLAGS="$xorg_testset_save_CFLAGS" 10173fi 10174 10175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10178 fi 10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10183 $as_echo_n "(cached) " >&6 10184else 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187int i; 10188_ACEOF 10189if ac_fn_c_try_compile "$LINENO"; then : 10190 xorg_cv_cc_flag_unused_command_line_argument=yes 10191else 10192 xorg_cv_cc_flag_unused_command_line_argument=no 10193fi 10194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10195fi 10196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10199 CFLAGS="$xorg_testset_save_CFLAGS" 10200fi 10201 10202found="no" 10203 10204 if test $found = "no" ; then 10205 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10207 fi 10208 10209 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10211 fi 10212 10213 CFLAGS="$CFLAGS -Werror" 10214 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10216$as_echo_n "checking if $CC supports -Werror... " >&6; } 10217 cacheid=xorg_cv_cc_flag__Werror 10218 if eval \${$cacheid+:} false; then : 10219 $as_echo_n "(cached) " >&6 10220else 10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10222/* end confdefs.h. */ 10223int i; 10224int 10225main () 10226{ 10227 10228 ; 10229 return 0; 10230} 10231_ACEOF 10232if ac_fn_c_try_link "$LINENO"; then : 10233 eval $cacheid=yes 10234else 10235 eval $cacheid=no 10236fi 10237rm -f core conftest.err conftest.$ac_objext \ 10238 conftest$ac_exeext conftest.$ac_ext 10239fi 10240 10241 10242 CFLAGS="$xorg_testset_save_CFLAGS" 10243 10244 eval supported=\$$cacheid 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10246$as_echo "$supported" >&6; } 10247 if test "$supported" = "yes" ; then 10248 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10249 found="yes" 10250 fi 10251 fi 10252 10253 if test $found = "no" ; then 10254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10256 fi 10257 10258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10260 fi 10261 10262 CFLAGS="$CFLAGS -errwarn" 10263 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10265$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10266 cacheid=xorg_cv_cc_flag__errwarn 10267 if eval \${$cacheid+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10271/* end confdefs.h. */ 10272int i; 10273int 10274main () 10275{ 10276 10277 ; 10278 return 0; 10279} 10280_ACEOF 10281if ac_fn_c_try_link "$LINENO"; then : 10282 eval $cacheid=yes 10283else 10284 eval $cacheid=no 10285fi 10286rm -f core conftest.err conftest.$ac_objext \ 10287 conftest$ac_exeext conftest.$ac_ext 10288fi 10289 10290 10291 CFLAGS="$xorg_testset_save_CFLAGS" 10292 10293 eval supported=\$$cacheid 10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10295$as_echo "$supported" >&6; } 10296 if test "$supported" = "yes" ; then 10297 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10298 found="yes" 10299 fi 10300 fi 10301 10302 10303 10304# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10305# activate it with -Werror, so we add it here explicitly. 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319xorg_testset_save_CFLAGS="$CFLAGS" 10320 10321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10326 $as_echo_n "(cached) " >&6 10327else 10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10329/* end confdefs.h. */ 10330int i; 10331_ACEOF 10332if ac_fn_c_try_compile "$LINENO"; then : 10333 xorg_cv_cc_flag_unknown_warning_option=yes 10334else 10335 xorg_cv_cc_flag_unknown_warning_option=no 10336fi 10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10338fi 10339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10342 CFLAGS="$xorg_testset_save_CFLAGS" 10343fi 10344 10345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10348 fi 10349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10353 $as_echo_n "(cached) " >&6 10354else 10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10356/* end confdefs.h. */ 10357int i; 10358_ACEOF 10359if ac_fn_c_try_compile "$LINENO"; then : 10360 xorg_cv_cc_flag_unused_command_line_argument=yes 10361else 10362 xorg_cv_cc_flag_unused_command_line_argument=no 10363fi 10364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10365fi 10366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10369 CFLAGS="$xorg_testset_save_CFLAGS" 10370fi 10371 10372found="no" 10373 10374 if test $found = "no" ; then 10375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10377 fi 10378 10379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10381 fi 10382 10383 CFLAGS="$CFLAGS -Werror=attributes" 10384 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10386$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10387 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10388 if eval \${$cacheid+:} false; then : 10389 $as_echo_n "(cached) " >&6 10390else 10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10392/* end confdefs.h. */ 10393int i; 10394int 10395main () 10396{ 10397 10398 ; 10399 return 0; 10400} 10401_ACEOF 10402if ac_fn_c_try_link "$LINENO"; then : 10403 eval $cacheid=yes 10404else 10405 eval $cacheid=no 10406fi 10407rm -f core conftest.err conftest.$ac_objext \ 10408 conftest$ac_exeext conftest.$ac_ext 10409fi 10410 10411 10412 CFLAGS="$xorg_testset_save_CFLAGS" 10413 10414 eval supported=\$$cacheid 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10416$as_echo "$supported" >&6; } 10417 if test "$supported" = "yes" ; then 10418 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10419 found="yes" 10420 fi 10421 fi 10422 10423 10424 10425if test "x$STRICT_COMPILE" = "xyes"; then 10426 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10427 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10428fi 10429 10430 10431 10432 10433 10434 10435cat >>confdefs.h <<_ACEOF 10436#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10437_ACEOF 10438 10439 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10440 if test "x$PVM" = "x"; then 10441 PVM="0" 10442 fi 10443 10444cat >>confdefs.h <<_ACEOF 10445#define PACKAGE_VERSION_MINOR $PVM 10446_ACEOF 10447 10448 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10449 if test "x$PVP" = "x"; then 10450 PVP="0" 10451 fi 10452 10453cat >>confdefs.h <<_ACEOF 10454#define PACKAGE_VERSION_PATCHLEVEL $PVP 10455_ACEOF 10456 10457 10458 10459CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10460mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10461|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10462echo 'git directory not found: installing possibly empty changelog.' >&2)" 10463 10464 10465 10466 10467macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10468INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10469mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10470|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10471echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10472 10473 10474 10475 10476 10477 10478if test x$APP_MAN_SUFFIX = x ; then 10479 APP_MAN_SUFFIX=1 10480fi 10481if test x$APP_MAN_DIR = x ; then 10482 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10483fi 10484 10485if test x$LIB_MAN_SUFFIX = x ; then 10486 LIB_MAN_SUFFIX=3 10487fi 10488if test x$LIB_MAN_DIR = x ; then 10489 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10490fi 10491 10492if test x$FILE_MAN_SUFFIX = x ; then 10493 case $host_os in 10494 solaris*) FILE_MAN_SUFFIX=4 ;; 10495 *) FILE_MAN_SUFFIX=5 ;; 10496 esac 10497fi 10498if test x$FILE_MAN_DIR = x ; then 10499 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10500fi 10501 10502if test x$MISC_MAN_SUFFIX = x ; then 10503 case $host_os in 10504 solaris*) MISC_MAN_SUFFIX=5 ;; 10505 *) MISC_MAN_SUFFIX=7 ;; 10506 esac 10507fi 10508if test x$MISC_MAN_DIR = x ; then 10509 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10510fi 10511 10512if test x$DRIVER_MAN_SUFFIX = x ; then 10513 case $host_os in 10514 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10515 *) DRIVER_MAN_SUFFIX=4 ;; 10516 esac 10517fi 10518if test x$DRIVER_MAN_DIR = x ; then 10519 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10520fi 10521 10522if test x$ADMIN_MAN_SUFFIX = x ; then 10523 case $host_os in 10524 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10525 *) ADMIN_MAN_SUFFIX=8 ;; 10526 esac 10527fi 10528if test x$ADMIN_MAN_DIR = x ; then 10529 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10530fi 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546XORG_MAN_PAGE="X Version 11" 10547 10548MAN_SUBSTS="\ 10549 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10550 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10551 -e 's|__xservername__|Xorg|g' \ 10552 -e 's|__xconfigfile__|xorg.conf|g' \ 10553 -e 's|__projectroot__|\$(prefix)|g' \ 10554 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10555 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10556 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10557 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10558 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10559 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10560 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10561 10562 10563 10564# Check whether --enable-silent-rules was given. 10565if test "${enable_silent_rules+set}" = set; then : 10566 enableval=$enable_silent_rules; 10567fi 10568 10569case $enable_silent_rules in # ((( 10570 yes) AM_DEFAULT_VERBOSITY=0;; 10571 no) AM_DEFAULT_VERBOSITY=1;; 10572 *) AM_DEFAULT_VERBOSITY=0;; 10573esac 10574am_make=${MAKE-make} 10575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10576$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10577if ${am_cv_make_support_nested_variables+:} false; then : 10578 $as_echo_n "(cached) " >&6 10579else 10580 if $as_echo 'TRUE=$(BAR$(V)) 10581BAR0=false 10582BAR1=true 10583V=1 10584am__doit: 10585 @$(TRUE) 10586.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10587 am_cv_make_support_nested_variables=yes 10588else 10589 am_cv_make_support_nested_variables=no 10590fi 10591fi 10592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10593$as_echo "$am_cv_make_support_nested_variables" >&6; } 10594if test $am_cv_make_support_nested_variables = yes; then 10595 AM_V='$(V)' 10596 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10597else 10598 AM_V=$AM_DEFAULT_VERBOSITY 10599 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10600fi 10601AM_BACKSLASH='\' 10602 10603 10604 10605 10606 10607 10608 10609# Check whether --with-lint was given. 10610if test "${with_lint+set}" = set; then : 10611 withval=$with_lint; use_lint=$withval 10612else 10613 use_lint=no 10614fi 10615 10616 10617# Obtain platform specific info like program name and options 10618# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10619case $host_os in 10620 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10621 lint_name=splint 10622 lint_options="-badflag" 10623 ;; 10624 *freebsd* | *netbsd*) 10625 lint_name=lint 10626 lint_options="-u -b" 10627 ;; 10628 *solaris*) 10629 lint_name=lint 10630 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10631 ;; 10632esac 10633 10634# Test for the presence of the program (either guessed by the code or spelled out by the user) 10635if test "x$use_lint" = x"yes" ; then 10636 # Extract the first word of "$lint_name", so it can be a program name with args. 10637set dummy $lint_name; ac_word=$2 10638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10639$as_echo_n "checking for $ac_word... " >&6; } 10640if ${ac_cv_path_LINT+:} false; then : 10641 $as_echo_n "(cached) " >&6 10642else 10643 case $LINT in 10644 [\\/]* | ?:[\\/]*) 10645 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10646 ;; 10647 *) 10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10649for as_dir in $PATH 10650do 10651 IFS=$as_save_IFS 10652 test -z "$as_dir" && as_dir=. 10653 for ac_exec_ext in '' $ac_executable_extensions; do 10654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10655 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10657 break 2 10658 fi 10659done 10660 done 10661IFS=$as_save_IFS 10662 10663 ;; 10664esac 10665fi 10666LINT=$ac_cv_path_LINT 10667if test -n "$LINT"; then 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10669$as_echo "$LINT" >&6; } 10670else 10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10672$as_echo "no" >&6; } 10673fi 10674 10675 10676 if test "x$LINT" = "x"; then 10677 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10678 fi 10679elif test "x$use_lint" = x"no" ; then 10680 if test "x$LINT" != "x"; then 10681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10682$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10683 fi 10684else 10685 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10686fi 10687 10688# User supplied flags override default flags 10689if test "x$LINT_FLAGS" != "x"; then 10690 lint_options=$LINT_FLAGS 10691fi 10692 10693LINT_FLAGS=$lint_options 10694 10695 if test "x$LINT" != x; then 10696 LINT_TRUE= 10697 LINT_FALSE='#' 10698else 10699 LINT_TRUE='#' 10700 LINT_FALSE= 10701fi 10702 10703 10704 10705 10706for ac_func in rename fchmod 10707do : 10708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10709ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10710if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10711 cat >>confdefs.h <<_ACEOF 10712#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10713_ACEOF 10714 10715fi 10716done 10717 10718 10719# Check whether --enable-largefile was given. 10720if test "${enable_largefile+set}" = set; then : 10721 enableval=$enable_largefile; 10722fi 10723 10724if test "$enable_largefile" != no; then 10725 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10727$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10728if ${ac_cv_sys_largefile_CC+:} false; then : 10729 $as_echo_n "(cached) " >&6 10730else 10731 ac_cv_sys_largefile_CC=no 10732 if test "$GCC" != yes; then 10733 ac_save_CC=$CC 10734 while :; do 10735 # IRIX 6.2 and later do not support large files by default, 10736 # so use the C compiler's -n32 option if that helps. 10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10738/* end confdefs.h. */ 10739#include <sys/types.h> 10740 /* Check that off_t can represent 2**63 - 1 correctly. 10741 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10742 since some C++ compilers masquerading as C compilers 10743 incorrectly reject 9223372036854775807. */ 10744#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10746 && LARGE_OFF_T % 2147483647 == 1) 10747 ? 1 : -1]; 10748int 10749main () 10750{ 10751 10752 ; 10753 return 0; 10754} 10755_ACEOF 10756 if ac_fn_c_try_compile "$LINENO"; then : 10757 break 10758fi 10759rm -f core conftest.err conftest.$ac_objext 10760 CC="$CC -n32" 10761 if ac_fn_c_try_compile "$LINENO"; then : 10762 ac_cv_sys_largefile_CC=' -n32'; break 10763fi 10764rm -f core conftest.err conftest.$ac_objext 10765 break 10766 done 10767 CC=$ac_save_CC 10768 rm -f conftest.$ac_ext 10769 fi 10770fi 10771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10772$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10773 if test "$ac_cv_sys_largefile_CC" != no; then 10774 CC=$CC$ac_cv_sys_largefile_CC 10775 fi 10776 10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10778$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10779if ${ac_cv_sys_file_offset_bits+:} false; then : 10780 $as_echo_n "(cached) " >&6 10781else 10782 while :; do 10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10784/* end confdefs.h. */ 10785#include <sys/types.h> 10786 /* Check that off_t can represent 2**63 - 1 correctly. 10787 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10788 since some C++ compilers masquerading as C compilers 10789 incorrectly reject 9223372036854775807. */ 10790#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10792 && LARGE_OFF_T % 2147483647 == 1) 10793 ? 1 : -1]; 10794int 10795main () 10796{ 10797 10798 ; 10799 return 0; 10800} 10801_ACEOF 10802if ac_fn_c_try_compile "$LINENO"; then : 10803 ac_cv_sys_file_offset_bits=no; break 10804fi 10805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10807/* end confdefs.h. */ 10808#define _FILE_OFFSET_BITS 64 10809#include <sys/types.h> 10810 /* Check that off_t can represent 2**63 - 1 correctly. 10811 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10812 since some C++ compilers masquerading as C compilers 10813 incorrectly reject 9223372036854775807. */ 10814#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10816 && LARGE_OFF_T % 2147483647 == 1) 10817 ? 1 : -1]; 10818int 10819main () 10820{ 10821 10822 ; 10823 return 0; 10824} 10825_ACEOF 10826if ac_fn_c_try_compile "$LINENO"; then : 10827 ac_cv_sys_file_offset_bits=64; break 10828fi 10829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10830 ac_cv_sys_file_offset_bits=unknown 10831 break 10832done 10833fi 10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10835$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10836case $ac_cv_sys_file_offset_bits in #( 10837 no | unknown) ;; 10838 *) 10839cat >>confdefs.h <<_ACEOF 10840#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10841_ACEOF 10842;; 10843esac 10844rm -rf conftest* 10845 if test $ac_cv_sys_file_offset_bits = unknown; then 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10847$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10848if ${ac_cv_sys_large_files+:} false; then : 10849 $as_echo_n "(cached) " >&6 10850else 10851 while :; do 10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10853/* end confdefs.h. */ 10854#include <sys/types.h> 10855 /* Check that off_t can represent 2**63 - 1 correctly. 10856 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10857 since some C++ compilers masquerading as C compilers 10858 incorrectly reject 9223372036854775807. */ 10859#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10861 && LARGE_OFF_T % 2147483647 == 1) 10862 ? 1 : -1]; 10863int 10864main () 10865{ 10866 10867 ; 10868 return 0; 10869} 10870_ACEOF 10871if ac_fn_c_try_compile "$LINENO"; then : 10872 ac_cv_sys_large_files=no; break 10873fi 10874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10876/* end confdefs.h. */ 10877#define _LARGE_FILES 1 10878#include <sys/types.h> 10879 /* Check that off_t can represent 2**63 - 1 correctly. 10880 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10881 since some C++ compilers masquerading as C compilers 10882 incorrectly reject 9223372036854775807. */ 10883#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10884 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10885 && LARGE_OFF_T % 2147483647 == 1) 10886 ? 1 : -1]; 10887int 10888main () 10889{ 10890 10891 ; 10892 return 0; 10893} 10894_ACEOF 10895if ac_fn_c_try_compile "$LINENO"; then : 10896 ac_cv_sys_large_files=1; break 10897fi 10898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10899 ac_cv_sys_large_files=unknown 10900 break 10901done 10902fi 10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10904$as_echo "$ac_cv_sys_large_files" >&6; } 10905case $ac_cv_sys_large_files in #( 10906 no | unknown) ;; 10907 *) 10908cat >>confdefs.h <<_ACEOF 10909#define _LARGE_FILES $ac_cv_sys_large_files 10910_ACEOF 10911;; 10912esac 10913rm -rf conftest* 10914 fi 10915fi 10916 10917 10918 10919pkg_failed=no 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 10921$as_echo_n "checking for X... " >&6; } 10922 10923if test -n "$X_CFLAGS"; then 10924 pkg_cv_X_CFLAGS="$X_CFLAGS" 10925 elif test -n "$PKG_CONFIG"; then 10926 if test -n "$PKG_CONFIG" && \ 10927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5 10928 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5 10929 ac_status=$? 10930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10931 test $ac_status = 0; }; then 10932 pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null` 10933else 10934 pkg_failed=yes 10935fi 10936 else 10937 pkg_failed=untried 10938fi 10939if test -n "$X_LIBS"; then 10940 pkg_cv_X_LIBS="$X_LIBS" 10941 elif test -n "$PKG_CONFIG"; then 10942 if test -n "$PKG_CONFIG" && \ 10943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5 10944 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5 10945 ac_status=$? 10946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10947 test $ac_status = 0; }; then 10948 pkg_cv_X_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null` 10949else 10950 pkg_failed=yes 10951fi 10952 else 10953 pkg_failed=untried 10954fi 10955 10956 10957 10958if test $pkg_failed = yes; then 10959 10960if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10961 _pkg_short_errors_supported=yes 10962else 10963 _pkg_short_errors_supported=no 10964fi 10965 if test $_pkg_short_errors_supported = yes; then 10966 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17" 2>&1` 10967 else 10968 X_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17" 2>&1` 10969 fi 10970 # Put the nasty error message in config.log where it belongs 10971 echo "$X_PKG_ERRORS" >&5 10972 10973 as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met: 10974 10975$X_PKG_ERRORS 10976 10977Consider adjusting the PKG_CONFIG_PATH environment variable if you 10978installed software in a non-standard prefix. 10979 10980Alternatively, you may set the environment variables X_CFLAGS 10981and X_LIBS to avoid the need to call pkg-config. 10982See the pkg-config man page for more details. 10983" "$LINENO" 5 10984elif test $pkg_failed = untried; then 10985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10987as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10988is in your PATH or set the PKG_CONFIG environment variable to the full 10989path to pkg-config. 10990 10991Alternatively, you may set the environment variables X_CFLAGS 10992and X_LIBS to avoid the need to call pkg-config. 10993See the pkg-config man page for more details. 10994 10995To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10996See \`config.log' for more details" "$LINENO" 5; } 10997else 10998 X_CFLAGS=$pkg_cv_X_CFLAGS 10999 X_LIBS=$pkg_cv_X_LIBS 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11001$as_echo "yes" >&6; } 11002 : 11003fi 11004 11005ac_config_files="$ac_config_files Makefile" 11006 11007cat >confcache <<\_ACEOF 11008# This file is a shell script that caches the results of configure 11009# tests run on this system so they can be shared between configure 11010# scripts and configure runs, see configure's option --config-cache. 11011# It is not useful on other systems. If it contains results you don't 11012# want to keep, you may remove or edit it. 11013# 11014# config.status only pays attention to the cache file if you give it 11015# the --recheck option to rerun configure. 11016# 11017# `ac_cv_env_foo' variables (set or unset) will be overridden when 11018# loading this file, other *unset* `ac_cv_foo' will be assigned the 11019# following values. 11020 11021_ACEOF 11022 11023# The following way of writing the cache mishandles newlines in values, 11024# but we know of no workaround that is simple, portable, and efficient. 11025# So, we kill variables containing newlines. 11026# Ultrix sh set writes to stderr and can't be redirected directly, 11027# and sets the high bit in the cache file unless we assign to the vars. 11028( 11029 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11030 eval ac_val=\$$ac_var 11031 case $ac_val in #( 11032 *${as_nl}*) 11033 case $ac_var in #( 11034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11035$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11036 esac 11037 case $ac_var in #( 11038 _ | IFS | as_nl) ;; #( 11039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11040 *) { eval $ac_var=; unset $ac_var;} ;; 11041 esac ;; 11042 esac 11043 done 11044 11045 (set) 2>&1 | 11046 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11047 *${as_nl}ac_space=\ *) 11048 # `set' does not quote correctly, so add quotes: double-quote 11049 # substitution turns \\\\ into \\, and sed turns \\ into \. 11050 sed -n \ 11051 "s/'/'\\\\''/g; 11052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11053 ;; #( 11054 *) 11055 # `set' quotes correctly as required by POSIX, so do not add quotes. 11056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11057 ;; 11058 esac | 11059 sort 11060) | 11061 sed ' 11062 /^ac_cv_env_/b end 11063 t clear 11064 :clear 11065 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11066 t end 11067 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11068 :end' >>confcache 11069if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11070 if test -w "$cache_file"; then 11071 if test "x$cache_file" != "x/dev/null"; then 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11073$as_echo "$as_me: updating cache $cache_file" >&6;} 11074 if test ! -f "$cache_file" || test -h "$cache_file"; then 11075 cat confcache >"$cache_file" 11076 else 11077 case $cache_file in #( 11078 */* | ?:*) 11079 mv -f confcache "$cache_file"$$ && 11080 mv -f "$cache_file"$$ "$cache_file" ;; #( 11081 *) 11082 mv -f confcache "$cache_file" ;; 11083 esac 11084 fi 11085 fi 11086 else 11087 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11088$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11089 fi 11090fi 11091rm -f confcache 11092 11093test "x$prefix" = xNONE && prefix=$ac_default_prefix 11094# Let make expand exec_prefix. 11095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11096 11097DEFS=-DHAVE_CONFIG_H 11098 11099ac_libobjs= 11100ac_ltlibobjs= 11101U= 11102for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11103 # 1. Remove the extension, and $U if already installed. 11104 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11105 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11106 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11107 # will be set to the directory where LIBOBJS objects are built. 11108 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11109 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11110done 11111LIBOBJS=$ac_libobjs 11112 11113LTLIBOBJS=$ac_ltlibobjs 11114 11115 11116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11117$as_echo_n "checking that generated files are newer than configure... " >&6; } 11118 if test -n "$am_sleep_pid"; then 11119 # Hide warnings about reused PIDs. 11120 wait $am_sleep_pid 2>/dev/null 11121 fi 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11123$as_echo "done" >&6; } 11124 if test -n "$EXEEXT"; then 11125 am__EXEEXT_TRUE= 11126 am__EXEEXT_FALSE='#' 11127else 11128 am__EXEEXT_TRUE='#' 11129 am__EXEEXT_FALSE= 11130fi 11131 11132if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11133 as_fn_error $? "conditional \"AMDEP\" was never defined. 11134Usually this means the macro was only invoked conditionally." "$LINENO" 5 11135fi 11136if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11137 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11138Usually this means the macro was only invoked conditionally." "$LINENO" 5 11139fi 11140if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11141 as_fn_error $? "conditional \"LINT\" was never defined. 11142Usually this means the macro was only invoked conditionally." "$LINENO" 5 11143fi 11144 11145: "${CONFIG_STATUS=./config.status}" 11146ac_write_fail=0 11147ac_clean_files_save=$ac_clean_files 11148ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11149{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11150$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11151as_write_fail=0 11152cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11153#! $SHELL 11154# Generated by $as_me. 11155# Run this file to recreate the current configuration. 11156# Compiler output produced by configure, useful for debugging 11157# configure, is in config.log if it exists. 11158 11159debug=false 11160ac_cs_recheck=false 11161ac_cs_silent=false 11162 11163SHELL=\${CONFIG_SHELL-$SHELL} 11164export SHELL 11165_ASEOF 11166cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11167## -------------------- ## 11168## M4sh Initialization. ## 11169## -------------------- ## 11170 11171# Be more Bourne compatible 11172DUALCASE=1; export DUALCASE # for MKS sh 11173if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11174 emulate sh 11175 NULLCMD=: 11176 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11177 # is contrary to our usage. Disable this feature. 11178 alias -g '${1+"$@"}'='"$@"' 11179 setopt NO_GLOB_SUBST 11180else 11181 case `(set -o) 2>/dev/null` in #( 11182 *posix*) : 11183 set -o posix ;; #( 11184 *) : 11185 ;; 11186esac 11187fi 11188 11189 11190as_nl=' 11191' 11192export as_nl 11193# Printing a long string crashes Solaris 7 /usr/bin/printf. 11194as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11195as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11196as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11197# Prefer a ksh shell builtin over an external printf program on Solaris, 11198# but without wasting forks for bash or zsh. 11199if test -z "$BASH_VERSION$ZSH_VERSION" \ 11200 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11201 as_echo='print -r --' 11202 as_echo_n='print -rn --' 11203elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11204 as_echo='printf %s\n' 11205 as_echo_n='printf %s' 11206else 11207 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11208 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11209 as_echo_n='/usr/ucb/echo -n' 11210 else 11211 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11212 as_echo_n_body='eval 11213 arg=$1; 11214 case $arg in #( 11215 *"$as_nl"*) 11216 expr "X$arg" : "X\\(.*\\)$as_nl"; 11217 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11218 esac; 11219 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11220 ' 11221 export as_echo_n_body 11222 as_echo_n='sh -c $as_echo_n_body as_echo' 11223 fi 11224 export as_echo_body 11225 as_echo='sh -c $as_echo_body as_echo' 11226fi 11227 11228# The user is always right. 11229if test "${PATH_SEPARATOR+set}" != set; then 11230 PATH_SEPARATOR=: 11231 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11232 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11233 PATH_SEPARATOR=';' 11234 } 11235fi 11236 11237 11238# IFS 11239# We need space, tab and new line, in precisely that order. Quoting is 11240# there to prevent editors from complaining about space-tab. 11241# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11242# splitting by setting IFS to empty value.) 11243IFS=" "" $as_nl" 11244 11245# Find who we are. Look in the path if we contain no directory separator. 11246as_myself= 11247case $0 in #(( 11248 *[\\/]* ) as_myself=$0 ;; 11249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11250for as_dir in $PATH 11251do 11252 IFS=$as_save_IFS 11253 test -z "$as_dir" && as_dir=. 11254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11255 done 11256IFS=$as_save_IFS 11257 11258 ;; 11259esac 11260# We did not find ourselves, most probably we were run as `sh COMMAND' 11261# in which case we are not to be found in the path. 11262if test "x$as_myself" = x; then 11263 as_myself=$0 11264fi 11265if test ! -f "$as_myself"; then 11266 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11267 exit 1 11268fi 11269 11270# Unset variables that we do not need and which cause bugs (e.g. in 11271# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11272# suppresses any "Segmentation fault" message there. '((' could 11273# trigger a bug in pdksh 5.2.14. 11274for as_var in BASH_ENV ENV MAIL MAILPATH 11275do eval test x\${$as_var+set} = xset \ 11276 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11277done 11278PS1='$ ' 11279PS2='> ' 11280PS4='+ ' 11281 11282# NLS nuisances. 11283LC_ALL=C 11284export LC_ALL 11285LANGUAGE=C 11286export LANGUAGE 11287 11288# CDPATH. 11289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11290 11291 11292# as_fn_error STATUS ERROR [LINENO LOG_FD] 11293# ---------------------------------------- 11294# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11295# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11296# script with STATUS, using 1 if that was 0. 11297as_fn_error () 11298{ 11299 as_status=$1; test $as_status -eq 0 && as_status=1 11300 if test "$4"; then 11301 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11302 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11303 fi 11304 $as_echo "$as_me: error: $2" >&2 11305 as_fn_exit $as_status 11306} # as_fn_error 11307 11308 11309# as_fn_set_status STATUS 11310# ----------------------- 11311# Set $? to STATUS, without forking. 11312as_fn_set_status () 11313{ 11314 return $1 11315} # as_fn_set_status 11316 11317# as_fn_exit STATUS 11318# ----------------- 11319# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11320as_fn_exit () 11321{ 11322 set +e 11323 as_fn_set_status $1 11324 exit $1 11325} # as_fn_exit 11326 11327# as_fn_unset VAR 11328# --------------- 11329# Portably unset VAR. 11330as_fn_unset () 11331{ 11332 { eval $1=; unset $1;} 11333} 11334as_unset=as_fn_unset 11335# as_fn_append VAR VALUE 11336# ---------------------- 11337# Append the text in VALUE to the end of the definition contained in VAR. Take 11338# advantage of any shell optimizations that allow amortized linear growth over 11339# repeated appends, instead of the typical quadratic growth present in naive 11340# implementations. 11341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11342 eval 'as_fn_append () 11343 { 11344 eval $1+=\$2 11345 }' 11346else 11347 as_fn_append () 11348 { 11349 eval $1=\$$1\$2 11350 } 11351fi # as_fn_append 11352 11353# as_fn_arith ARG... 11354# ------------------ 11355# Perform arithmetic evaluation on the ARGs, and store the result in the 11356# global $as_val. Take advantage of shells that can avoid forks. The arguments 11357# must be portable across $(()) and expr. 11358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11359 eval 'as_fn_arith () 11360 { 11361 as_val=$(( $* )) 11362 }' 11363else 11364 as_fn_arith () 11365 { 11366 as_val=`expr "$@" || test $? -eq 1` 11367 } 11368fi # as_fn_arith 11369 11370 11371if expr a : '\(a\)' >/dev/null 2>&1 && 11372 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11373 as_expr=expr 11374else 11375 as_expr=false 11376fi 11377 11378if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11379 as_basename=basename 11380else 11381 as_basename=false 11382fi 11383 11384if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11385 as_dirname=dirname 11386else 11387 as_dirname=false 11388fi 11389 11390as_me=`$as_basename -- "$0" || 11391$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11392 X"$0" : 'X\(//\)$' \| \ 11393 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11394$as_echo X/"$0" | 11395 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11396 s//\1/ 11397 q 11398 } 11399 /^X\/\(\/\/\)$/{ 11400 s//\1/ 11401 q 11402 } 11403 /^X\/\(\/\).*/{ 11404 s//\1/ 11405 q 11406 } 11407 s/.*/./; q'` 11408 11409# Avoid depending upon Character Ranges. 11410as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11411as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11412as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11413as_cr_digits='0123456789' 11414as_cr_alnum=$as_cr_Letters$as_cr_digits 11415 11416ECHO_C= ECHO_N= ECHO_T= 11417case `echo -n x` in #((((( 11418-n*) 11419 case `echo 'xy\c'` in 11420 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11421 xy) ECHO_C='\c';; 11422 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11423 ECHO_T=' ';; 11424 esac;; 11425*) 11426 ECHO_N='-n';; 11427esac 11428 11429rm -f conf$$ conf$$.exe conf$$.file 11430if test -d conf$$.dir; then 11431 rm -f conf$$.dir/conf$$.file 11432else 11433 rm -f conf$$.dir 11434 mkdir conf$$.dir 2>/dev/null 11435fi 11436if (echo >conf$$.file) 2>/dev/null; then 11437 if ln -s conf$$.file conf$$ 2>/dev/null; then 11438 as_ln_s='ln -s' 11439 # ... but there are two gotchas: 11440 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11441 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11442 # In both cases, we have to default to `cp -p'. 11443 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11444 as_ln_s='cp -p' 11445 elif ln conf$$.file conf$$ 2>/dev/null; then 11446 as_ln_s=ln 11447 else 11448 as_ln_s='cp -p' 11449 fi 11450else 11451 as_ln_s='cp -p' 11452fi 11453rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11454rmdir conf$$.dir 2>/dev/null 11455 11456 11457# as_fn_mkdir_p 11458# ------------- 11459# Create "$as_dir" as a directory, including parents if necessary. 11460as_fn_mkdir_p () 11461{ 11462 11463 case $as_dir in #( 11464 -*) as_dir=./$as_dir;; 11465 esac 11466 test -d "$as_dir" || eval $as_mkdir_p || { 11467 as_dirs= 11468 while :; do 11469 case $as_dir in #( 11470 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11471 *) as_qdir=$as_dir;; 11472 esac 11473 as_dirs="'$as_qdir' $as_dirs" 11474 as_dir=`$as_dirname -- "$as_dir" || 11475$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11476 X"$as_dir" : 'X\(//\)[^/]' \| \ 11477 X"$as_dir" : 'X\(//\)$' \| \ 11478 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11479$as_echo X"$as_dir" | 11480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11481 s//\1/ 11482 q 11483 } 11484 /^X\(\/\/\)[^/].*/{ 11485 s//\1/ 11486 q 11487 } 11488 /^X\(\/\/\)$/{ 11489 s//\1/ 11490 q 11491 } 11492 /^X\(\/\).*/{ 11493 s//\1/ 11494 q 11495 } 11496 s/.*/./; q'` 11497 test -d "$as_dir" && break 11498 done 11499 test -z "$as_dirs" || eval "mkdir $as_dirs" 11500 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11501 11502 11503} # as_fn_mkdir_p 11504if mkdir -p . 2>/dev/null; then 11505 as_mkdir_p='mkdir -p "$as_dir"' 11506else 11507 test -d ./-p && rmdir ./-p 11508 as_mkdir_p=false 11509fi 11510 11511if test -x / >/dev/null 2>&1; then 11512 as_test_x='test -x' 11513else 11514 if ls -dL / >/dev/null 2>&1; then 11515 as_ls_L_option=L 11516 else 11517 as_ls_L_option= 11518 fi 11519 as_test_x=' 11520 eval sh -c '\'' 11521 if test -d "$1"; then 11522 test -d "$1/."; 11523 else 11524 case $1 in #( 11525 -*)set "./$1";; 11526 esac; 11527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11528 ???[sx]*):;;*)false;;esac;fi 11529 '\'' sh 11530 ' 11531fi 11532as_executable_p=$as_test_x 11533 11534# Sed expression to map a string onto a valid CPP name. 11535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11536 11537# Sed expression to map a string onto a valid variable name. 11538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11539 11540 11541exec 6>&1 11542## ----------------------------------- ## 11543## Main body of $CONFIG_STATUS script. ## 11544## ----------------------------------- ## 11545_ASEOF 11546test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11547 11548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11549# Save the log message, to keep $0 and so on meaningful, and to 11550# report actual input values of CONFIG_FILES etc. instead of their 11551# values after options handling. 11552ac_log=" 11553This file was extended by makedepend $as_me 1.0.5, which was 11554generated by GNU Autoconf 2.68. Invocation command line was 11555 11556 CONFIG_FILES = $CONFIG_FILES 11557 CONFIG_HEADERS = $CONFIG_HEADERS 11558 CONFIG_LINKS = $CONFIG_LINKS 11559 CONFIG_COMMANDS = $CONFIG_COMMANDS 11560 $ $0 $@ 11561 11562on `(hostname || uname -n) 2>/dev/null | sed 1q` 11563" 11564 11565_ACEOF 11566 11567case $ac_config_files in *" 11568"*) set x $ac_config_files; shift; ac_config_files=$*;; 11569esac 11570 11571case $ac_config_headers in *" 11572"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11573esac 11574 11575 11576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11577# Files that config.status was made for. 11578config_files="$ac_config_files" 11579config_headers="$ac_config_headers" 11580config_commands="$ac_config_commands" 11581 11582_ACEOF 11583 11584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11585ac_cs_usage="\ 11586\`$as_me' instantiates files and other configuration actions 11587from templates according to the current configuration. Unless the files 11588and actions are specified as TAGs, all are instantiated by default. 11589 11590Usage: $0 [OPTION]... [TAG]... 11591 11592 -h, --help print this help, then exit 11593 -V, --version print version number and configuration settings, then exit 11594 --config print configuration, then exit 11595 -q, --quiet, --silent 11596 do not print progress messages 11597 -d, --debug don't remove temporary files 11598 --recheck update $as_me by reconfiguring in the same conditions 11599 --file=FILE[:TEMPLATE] 11600 instantiate the configuration file FILE 11601 --header=FILE[:TEMPLATE] 11602 instantiate the configuration header FILE 11603 11604Configuration files: 11605$config_files 11606 11607Configuration headers: 11608$config_headers 11609 11610Configuration commands: 11611$config_commands 11612 11613Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11614 11615_ACEOF 11616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11617ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11618ac_cs_version="\\ 11619makedepend config.status 1.0.5 11620configured by $0, generated by GNU Autoconf 2.68, 11621 with options \\"\$ac_cs_config\\" 11622 11623Copyright (C) 2010 Free Software Foundation, Inc. 11624This config.status script is free software; the Free Software Foundation 11625gives unlimited permission to copy, distribute and modify it." 11626 11627ac_pwd='$ac_pwd' 11628srcdir='$srcdir' 11629INSTALL='$INSTALL' 11630MKDIR_P='$MKDIR_P' 11631AWK='$AWK' 11632test -n "\$AWK" || AWK=awk 11633_ACEOF 11634 11635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11636# The default lists apply if the user does not specify any file. 11637ac_need_defaults=: 11638while test $# != 0 11639do 11640 case $1 in 11641 --*=?*) 11642 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11643 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11644 ac_shift=: 11645 ;; 11646 --*=) 11647 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11648 ac_optarg= 11649 ac_shift=: 11650 ;; 11651 *) 11652 ac_option=$1 11653 ac_optarg=$2 11654 ac_shift=shift 11655 ;; 11656 esac 11657 11658 case $ac_option in 11659 # Handling of the options. 11660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11661 ac_cs_recheck=: ;; 11662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11663 $as_echo "$ac_cs_version"; exit ;; 11664 --config | --confi | --conf | --con | --co | --c ) 11665 $as_echo "$ac_cs_config"; exit ;; 11666 --debug | --debu | --deb | --de | --d | -d ) 11667 debug=: ;; 11668 --file | --fil | --fi | --f ) 11669 $ac_shift 11670 case $ac_optarg in 11671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11672 '') as_fn_error $? "missing file argument" ;; 11673 esac 11674 as_fn_append CONFIG_FILES " '$ac_optarg'" 11675 ac_need_defaults=false;; 11676 --header | --heade | --head | --hea ) 11677 $ac_shift 11678 case $ac_optarg in 11679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11680 esac 11681 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11682 ac_need_defaults=false;; 11683 --he | --h) 11684 # Conflict between --help and --header 11685 as_fn_error $? "ambiguous option: \`$1' 11686Try \`$0 --help' for more information.";; 11687 --help | --hel | -h ) 11688 $as_echo "$ac_cs_usage"; exit ;; 11689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11690 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11691 ac_cs_silent=: ;; 11692 11693 # This is an error. 11694 -*) as_fn_error $? "unrecognized option: \`$1' 11695Try \`$0 --help' for more information." ;; 11696 11697 *) as_fn_append ac_config_targets " $1" 11698 ac_need_defaults=false ;; 11699 11700 esac 11701 shift 11702done 11703 11704ac_configure_extra_args= 11705 11706if $ac_cs_silent; then 11707 exec 6>/dev/null 11708 ac_configure_extra_args="$ac_configure_extra_args --silent" 11709fi 11710 11711_ACEOF 11712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11713if \$ac_cs_recheck; then 11714 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11715 shift 11716 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11717 CONFIG_SHELL='$SHELL' 11718 export CONFIG_SHELL 11719 exec "\$@" 11720fi 11721 11722_ACEOF 11723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11724exec 5>>config.log 11725{ 11726 echo 11727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11728## Running $as_me. ## 11729_ASBOX 11730 $as_echo "$ac_log" 11731} >&5 11732 11733_ACEOF 11734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11735# 11736# INIT-COMMANDS 11737# 11738AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11739 11740_ACEOF 11741 11742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11743 11744# Handling of arguments. 11745for ac_config_target in $ac_config_targets 11746do 11747 case $ac_config_target in 11748 "makedepend-config.h") CONFIG_HEADERS="$CONFIG_HEADERS makedepend-config.h" ;; 11749 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11750 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11751 11752 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11753 esac 11754done 11755 11756 11757# If the user did not use the arguments to specify the items to instantiate, 11758# then the envvar interface is used. Set only those that are not. 11759# We use the long form for the default assignment because of an extremely 11760# bizarre bug on SunOS 4.1.3. 11761if $ac_need_defaults; then 11762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11763 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11764 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11765fi 11766 11767# Have a temporary directory for convenience. Make it in the build tree 11768# simply because there is no reason against having it here, and in addition, 11769# creating and moving files from /tmp can sometimes cause problems. 11770# Hook for its removal unless debugging. 11771# Note that there is a small window in which the directory will not be cleaned: 11772# after its creation but before its name has been assigned to `$tmp'. 11773$debug || 11774{ 11775 tmp= ac_tmp= 11776 trap 'exit_status=$? 11777 : "${ac_tmp:=$tmp}" 11778 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11779' 0 11780 trap 'as_fn_exit 1' 1 2 13 15 11781} 11782# Create a (secure) tmp directory for tmp files. 11783 11784{ 11785 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11786 test -d "$tmp" 11787} || 11788{ 11789 tmp=./conf$$-$RANDOM 11790 (umask 077 && mkdir "$tmp") 11791} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11792ac_tmp=$tmp 11793 11794# Set up the scripts for CONFIG_FILES section. 11795# No need to generate them if there are no CONFIG_FILES. 11796# This happens for instance with `./config.status config.h'. 11797if test -n "$CONFIG_FILES"; then 11798 11799 11800ac_cr=`echo X | tr X '\015'` 11801# On cygwin, bash can eat \r inside `` if the user requested igncr. 11802# But we know of no other shell where ac_cr would be empty at this 11803# point, so we can use a bashism as a fallback. 11804if test "x$ac_cr" = x; then 11805 eval ac_cr=\$\'\\r\' 11806fi 11807ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11808if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11809 ac_cs_awk_cr='\\r' 11810else 11811 ac_cs_awk_cr=$ac_cr 11812fi 11813 11814echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11815_ACEOF 11816 11817 11818{ 11819 echo "cat >conf$$subs.awk <<_ACEOF" && 11820 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11821 echo "_ACEOF" 11822} >conf$$subs.sh || 11823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11824ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11825ac_delim='%!_!# ' 11826for ac_last_try in false false false false false :; do 11827 . ./conf$$subs.sh || 11828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11829 11830 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11831 if test $ac_delim_n = $ac_delim_num; then 11832 break 11833 elif $ac_last_try; then 11834 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11835 else 11836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11837 fi 11838done 11839rm -f conf$$subs.sh 11840 11841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11842cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11843_ACEOF 11844sed -n ' 11845h 11846s/^/S["/; s/!.*/"]=/ 11847p 11848g 11849s/^[^!]*!// 11850:repl 11851t repl 11852s/'"$ac_delim"'$// 11853t delim 11854:nl 11855h 11856s/\(.\{148\}\)..*/\1/ 11857t more1 11858s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11859p 11860n 11861b repl 11862:more1 11863s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11864p 11865g 11866s/.\{148\}// 11867t nl 11868:delim 11869h 11870s/\(.\{148\}\)..*/\1/ 11871t more2 11872s/["\\]/\\&/g; s/^/"/; s/$/"/ 11873p 11874b 11875:more2 11876s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11877p 11878g 11879s/.\{148\}// 11880t delim 11881' <conf$$subs.awk | sed ' 11882/^[^""]/{ 11883 N 11884 s/\n// 11885} 11886' >>$CONFIG_STATUS || ac_write_fail=1 11887rm -f conf$$subs.awk 11888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11889_ACAWK 11890cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11891 for (key in S) S_is_set[key] = 1 11892 FS = "" 11893 11894} 11895{ 11896 line = $ 0 11897 nfields = split(line, field, "@") 11898 substed = 0 11899 len = length(field[1]) 11900 for (i = 2; i < nfields; i++) { 11901 key = field[i] 11902 keylen = length(key) 11903 if (S_is_set[key]) { 11904 value = S[key] 11905 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11906 len += length(value) + length(field[++i]) 11907 substed = 1 11908 } else 11909 len += 1 + keylen 11910 } 11911 11912 print line 11913} 11914 11915_ACAWK 11916_ACEOF 11917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11918if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11919 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11920else 11921 cat 11922fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11923 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11924_ACEOF 11925 11926# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11927# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11928# trailing colons and then remove the whole line if VPATH becomes empty 11929# (actually we leave an empty line to preserve line numbers). 11930if test "x$srcdir" = x.; then 11931 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11932h 11933s/// 11934s/^/:/ 11935s/[ ]*$/:/ 11936s/:\$(srcdir):/:/g 11937s/:\${srcdir}:/:/g 11938s/:@srcdir@:/:/g 11939s/^:*// 11940s/:*$// 11941x 11942s/\(=[ ]*\).*/\1/ 11943G 11944s/\n// 11945s/^[^=]*=[ ]*$// 11946}' 11947fi 11948 11949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11950fi # test -n "$CONFIG_FILES" 11951 11952# Set up the scripts for CONFIG_HEADERS section. 11953# No need to generate them if there are no CONFIG_HEADERS. 11954# This happens for instance with `./config.status Makefile'. 11955if test -n "$CONFIG_HEADERS"; then 11956cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11957BEGIN { 11958_ACEOF 11959 11960# Transform confdefs.h into an awk script `defines.awk', embedded as 11961# here-document in config.status, that substitutes the proper values into 11962# config.h.in to produce config.h. 11963 11964# Create a delimiter string that does not exist in confdefs.h, to ease 11965# handling of long lines. 11966ac_delim='%!_!# ' 11967for ac_last_try in false false :; do 11968 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11969 if test -z "$ac_tt"; then 11970 break 11971 elif $ac_last_try; then 11972 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11973 else 11974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11975 fi 11976done 11977 11978# For the awk script, D is an array of macro values keyed by name, 11979# likewise P contains macro parameters if any. Preserve backslash 11980# newline sequences. 11981 11982ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11983sed -n ' 11984s/.\{148\}/&'"$ac_delim"'/g 11985t rset 11986:rset 11987s/^[ ]*#[ ]*define[ ][ ]*/ / 11988t def 11989d 11990:def 11991s/\\$// 11992t bsnl 11993s/["\\]/\\&/g 11994s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11995D["\1"]=" \3"/p 11996s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11997d 11998:bsnl 11999s/["\\]/\\&/g 12000s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12001D["\1"]=" \3\\\\\\n"\\/p 12002t cont 12003s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12004t cont 12005d 12006:cont 12007n 12008s/.\{148\}/&'"$ac_delim"'/g 12009t clear 12010:clear 12011s/\\$// 12012t bsnlc 12013s/["\\]/\\&/g; s/^/"/; s/$/"/p 12014d 12015:bsnlc 12016s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12017b cont 12018' <confdefs.h | sed ' 12019s/'"$ac_delim"'/"\\\ 12020"/g' >>$CONFIG_STATUS || ac_write_fail=1 12021 12022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12023 for (key in D) D_is_set[key] = 1 12024 FS = "" 12025} 12026/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12027 line = \$ 0 12028 split(line, arg, " ") 12029 if (arg[1] == "#") { 12030 defundef = arg[2] 12031 mac1 = arg[3] 12032 } else { 12033 defundef = substr(arg[1], 2) 12034 mac1 = arg[2] 12035 } 12036 split(mac1, mac2, "(") #) 12037 macro = mac2[1] 12038 prefix = substr(line, 1, index(line, defundef) - 1) 12039 if (D_is_set[macro]) { 12040 # Preserve the white space surrounding the "#". 12041 print prefix "define", macro P[macro] D[macro] 12042 next 12043 } else { 12044 # Replace #undef with comments. This is necessary, for example, 12045 # in the case of _POSIX_SOURCE, which is predefined and required 12046 # on some systems where configure will not decide to define it. 12047 if (defundef == "undef") { 12048 print "/*", prefix defundef, macro, "*/" 12049 next 12050 } 12051 } 12052} 12053{ print } 12054_ACAWK 12055_ACEOF 12056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12057 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12058fi # test -n "$CONFIG_HEADERS" 12059 12060 12061eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12062shift 12063for ac_tag 12064do 12065 case $ac_tag in 12066 :[FHLC]) ac_mode=$ac_tag; continue;; 12067 esac 12068 case $ac_mode$ac_tag in 12069 :[FHL]*:*);; 12070 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12071 :[FH]-) ac_tag=-:-;; 12072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12073 esac 12074 ac_save_IFS=$IFS 12075 IFS=: 12076 set x $ac_tag 12077 IFS=$ac_save_IFS 12078 shift 12079 ac_file=$1 12080 shift 12081 12082 case $ac_mode in 12083 :L) ac_source=$1;; 12084 :[FH]) 12085 ac_file_inputs= 12086 for ac_f 12087 do 12088 case $ac_f in 12089 -) ac_f="$ac_tmp/stdin";; 12090 *) # Look for the file first in the build tree, then in the source tree 12091 # (if the path is not absolute). The absolute path cannot be DOS-style, 12092 # because $ac_f cannot contain `:'. 12093 test -f "$ac_f" || 12094 case $ac_f in 12095 [\\/$]*) false;; 12096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12097 esac || 12098 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12099 esac 12100 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12101 as_fn_append ac_file_inputs " '$ac_f'" 12102 done 12103 12104 # Let's still pretend it is `configure' which instantiates (i.e., don't 12105 # use $as_me), people would be surprised to read: 12106 # /* config.h. Generated by config.status. */ 12107 configure_input='Generated from '` 12108 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12109 `' by configure.' 12110 if test x"$ac_file" != x-; then 12111 configure_input="$ac_file. $configure_input" 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12113$as_echo "$as_me: creating $ac_file" >&6;} 12114 fi 12115 # Neutralize special characters interpreted by sed in replacement strings. 12116 case $configure_input in #( 12117 *\&* | *\|* | *\\* ) 12118 ac_sed_conf_input=`$as_echo "$configure_input" | 12119 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12120 *) ac_sed_conf_input=$configure_input;; 12121 esac 12122 12123 case $ac_tag in 12124 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12126 esac 12127 ;; 12128 esac 12129 12130 ac_dir=`$as_dirname -- "$ac_file" || 12131$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12132 X"$ac_file" : 'X\(//\)[^/]' \| \ 12133 X"$ac_file" : 'X\(//\)$' \| \ 12134 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12135$as_echo X"$ac_file" | 12136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12137 s//\1/ 12138 q 12139 } 12140 /^X\(\/\/\)[^/].*/{ 12141 s//\1/ 12142 q 12143 } 12144 /^X\(\/\/\)$/{ 12145 s//\1/ 12146 q 12147 } 12148 /^X\(\/\).*/{ 12149 s//\1/ 12150 q 12151 } 12152 s/.*/./; q'` 12153 as_dir="$ac_dir"; as_fn_mkdir_p 12154 ac_builddir=. 12155 12156case "$ac_dir" in 12157.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12158*) 12159 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12160 # A ".." for each directory in $ac_dir_suffix. 12161 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12162 case $ac_top_builddir_sub in 12163 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12164 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12165 esac ;; 12166esac 12167ac_abs_top_builddir=$ac_pwd 12168ac_abs_builddir=$ac_pwd$ac_dir_suffix 12169# for backward compatibility: 12170ac_top_builddir=$ac_top_build_prefix 12171 12172case $srcdir in 12173 .) # We are building in place. 12174 ac_srcdir=. 12175 ac_top_srcdir=$ac_top_builddir_sub 12176 ac_abs_top_srcdir=$ac_pwd ;; 12177 [\\/]* | ?:[\\/]* ) # Absolute name. 12178 ac_srcdir=$srcdir$ac_dir_suffix; 12179 ac_top_srcdir=$srcdir 12180 ac_abs_top_srcdir=$srcdir ;; 12181 *) # Relative name. 12182 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12183 ac_top_srcdir=$ac_top_build_prefix$srcdir 12184 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12185esac 12186ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12187 12188 12189 case $ac_mode in 12190 :F) 12191 # 12192 # CONFIG_FILE 12193 # 12194 12195 case $INSTALL in 12196 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12197 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12198 esac 12199 ac_MKDIR_P=$MKDIR_P 12200 case $MKDIR_P in 12201 [\\/$]* | ?:[\\/]* ) ;; 12202 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12203 esac 12204_ACEOF 12205 12206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12207# If the template does not know about datarootdir, expand it. 12208# FIXME: This hack should be removed a few years after 2.60. 12209ac_datarootdir_hack=; ac_datarootdir_seen= 12210ac_sed_dataroot=' 12211/datarootdir/ { 12212 p 12213 q 12214} 12215/@datadir@/p 12216/@docdir@/p 12217/@infodir@/p 12218/@localedir@/p 12219/@mandir@/p' 12220case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12221*datarootdir*) ac_datarootdir_seen=yes;; 12222*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12224$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12225_ACEOF 12226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12227 ac_datarootdir_hack=' 12228 s&@datadir@&$datadir&g 12229 s&@docdir@&$docdir&g 12230 s&@infodir@&$infodir&g 12231 s&@localedir@&$localedir&g 12232 s&@mandir@&$mandir&g 12233 s&\\\${datarootdir}&$datarootdir&g' ;; 12234esac 12235_ACEOF 12236 12237# Neutralize VPATH when `$srcdir' = `.'. 12238# Shell code in configure.ac might set extrasub. 12239# FIXME: do we really want to maintain this feature? 12240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12241ac_sed_extra="$ac_vpsub 12242$extrasub 12243_ACEOF 12244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12245:t 12246/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12247s|@configure_input@|$ac_sed_conf_input|;t t 12248s&@top_builddir@&$ac_top_builddir_sub&;t t 12249s&@top_build_prefix@&$ac_top_build_prefix&;t t 12250s&@srcdir@&$ac_srcdir&;t t 12251s&@abs_srcdir@&$ac_abs_srcdir&;t t 12252s&@top_srcdir@&$ac_top_srcdir&;t t 12253s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12254s&@builddir@&$ac_builddir&;t t 12255s&@abs_builddir@&$ac_abs_builddir&;t t 12256s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12257s&@INSTALL@&$ac_INSTALL&;t t 12258s&@MKDIR_P@&$ac_MKDIR_P&;t t 12259$ac_datarootdir_hack 12260" 12261eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12262 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12263 12264test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12265 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12266 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12267 "$ac_tmp/out"`; test -z "$ac_out"; } && 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12269which seems to be undefined. Please make sure it is defined" >&5 12270$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12271which seems to be undefined. Please make sure it is defined" >&2;} 12272 12273 rm -f "$ac_tmp/stdin" 12274 case $ac_file in 12275 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12276 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12277 esac \ 12278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12279 ;; 12280 :H) 12281 # 12282 # CONFIG_HEADER 12283 # 12284 if test x"$ac_file" != x-; then 12285 { 12286 $as_echo "/* $configure_input */" \ 12287 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12288 } >"$ac_tmp/config.h" \ 12289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12290 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12292$as_echo "$as_me: $ac_file is unchanged" >&6;} 12293 else 12294 rm -f "$ac_file" 12295 mv "$ac_tmp/config.h" "$ac_file" \ 12296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12297 fi 12298 else 12299 $as_echo "/* $configure_input */" \ 12300 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12301 || as_fn_error $? "could not create -" "$LINENO" 5 12302 fi 12303# Compute "$ac_file"'s index in $config_headers. 12304_am_arg="$ac_file" 12305_am_stamp_count=1 12306for _am_header in $config_headers :; do 12307 case $_am_header in 12308 $_am_arg | $_am_arg:* ) 12309 break ;; 12310 * ) 12311 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12312 esac 12313done 12314echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12315$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12316 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12317 X"$_am_arg" : 'X\(//\)$' \| \ 12318 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12319$as_echo X"$_am_arg" | 12320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12321 s//\1/ 12322 q 12323 } 12324 /^X\(\/\/\)[^/].*/{ 12325 s//\1/ 12326 q 12327 } 12328 /^X\(\/\/\)$/{ 12329 s//\1/ 12330 q 12331 } 12332 /^X\(\/\).*/{ 12333 s//\1/ 12334 q 12335 } 12336 s/.*/./; q'`/stamp-h$_am_stamp_count 12337 ;; 12338 12339 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12340$as_echo "$as_me: executing $ac_file commands" >&6;} 12341 ;; 12342 esac 12343 12344 12345 case $ac_file$ac_mode in 12346 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12347 # Older Autoconf quotes --file arguments for eval, but not when files 12348 # are listed without --file. Let's play safe and only enable the eval 12349 # if we detect the quoting. 12350 case $CONFIG_FILES in 12351 *\'*) eval set x "$CONFIG_FILES" ;; 12352 *) set x $CONFIG_FILES ;; 12353 esac 12354 shift 12355 for mf 12356 do 12357 # Strip MF so we end up with the name of the file. 12358 mf=`echo "$mf" | sed -e 's/:.*$//'` 12359 # Check whether this is an Automake generated Makefile or not. 12360 # We used to match only the files named 'Makefile.in', but 12361 # some people rename them; so instead we look at the file content. 12362 # Grep'ing the first line is not enough: some people post-process 12363 # each Makefile.in and add a new line on top of each file to say so. 12364 # Grep'ing the whole file is not good either: AIX grep has a line 12365 # limit of 2048, but all sed's we know have understand at least 4000. 12366 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12367 dirpart=`$as_dirname -- "$mf" || 12368$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12369 X"$mf" : 'X\(//\)[^/]' \| \ 12370 X"$mf" : 'X\(//\)$' \| \ 12371 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12372$as_echo X"$mf" | 12373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12374 s//\1/ 12375 q 12376 } 12377 /^X\(\/\/\)[^/].*/{ 12378 s//\1/ 12379 q 12380 } 12381 /^X\(\/\/\)$/{ 12382 s//\1/ 12383 q 12384 } 12385 /^X\(\/\).*/{ 12386 s//\1/ 12387 q 12388 } 12389 s/.*/./; q'` 12390 else 12391 continue 12392 fi 12393 # Extract the definition of DEPDIR, am__include, and am__quote 12394 # from the Makefile without running 'make'. 12395 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12396 test -z "$DEPDIR" && continue 12397 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12398 test -z "$am__include" && continue 12399 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12400 # Find all dependency output files, they are included files with 12401 # $(DEPDIR) in their names. We invoke sed twice because it is the 12402 # simplest approach to changing $(DEPDIR) to its actual value in the 12403 # expansion. 12404 for file in `sed -n " 12405 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12406 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12407 # Make sure the directory exists. 12408 test -f "$dirpart/$file" && continue 12409 fdir=`$as_dirname -- "$file" || 12410$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12411 X"$file" : 'X\(//\)[^/]' \| \ 12412 X"$file" : 'X\(//\)$' \| \ 12413 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12414$as_echo X"$file" | 12415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12416 s//\1/ 12417 q 12418 } 12419 /^X\(\/\/\)[^/].*/{ 12420 s//\1/ 12421 q 12422 } 12423 /^X\(\/\/\)$/{ 12424 s//\1/ 12425 q 12426 } 12427 /^X\(\/\).*/{ 12428 s//\1/ 12429 q 12430 } 12431 s/.*/./; q'` 12432 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12433 # echo "creating $dirpart/$file" 12434 echo '# dummy' > "$dirpart/$file" 12435 done 12436 done 12437} 12438 ;; 12439 12440 esac 12441done # for ac_tag 12442 12443 12444as_fn_exit 0 12445_ACEOF 12446ac_clean_files=$ac_clean_files_save 12447 12448test $ac_write_fail = 0 || 12449 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12450 12451 12452# configure is writing to config.log, and then calls config.status. 12453# config.status does its own redirection, appending to config.log. 12454# Unfortunately, on DOS this fails, as config.log is still kept open 12455# by configure, so config.status won't be able to write to it; its 12456# output is simply discarded. So we exec the FD to /dev/null, 12457# effectively closing config.log, so it can be properly (re)opened and 12458# appended to by config.status. When coming back to configure, we 12459# need to make the FD available again. 12460if test "$no_create" != yes; then 12461 ac_cs_success=: 12462 ac_config_status_args= 12463 test "$silent" = yes && 12464 ac_config_status_args="$ac_config_status_args --quiet" 12465 exec 5>/dev/null 12466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12467 exec 5>>config.log 12468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12469 # would make configure fail if this is the last instruction. 12470 $ac_cs_success || as_fn_exit 1 12471fi 12472if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12474$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12475fi 12476 12477