configure revision 16d7e2f1
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xcmsdb 1.0.4. 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='xcmsdb' 563PACKAGE_TARNAME='xcmsdb' 564PACKAGE_VERSION='1.0.4' 565PACKAGE_STRING='xcmsdb 1.0.4' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#ifdef HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#ifdef HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#ifdef STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# ifdef HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#ifdef HAVE_STRING_H 587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#ifdef HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#ifdef HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#ifdef HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#ifdef HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='am__EXEEXT_FALSE 606am__EXEEXT_TRUE 607LTLIBOBJS 608LIBOBJS 609XCMSDB_LIBS 610XCMSDB_CFLAGS 611AM_BACKSLASH 612AM_DEFAULT_VERBOSITY 613MAN_SUBSTS 614XORG_MAN_PAGE 615ADMIN_MAN_DIR 616DRIVER_MAN_DIR 617MISC_MAN_DIR 618FILE_MAN_DIR 619LIB_MAN_DIR 620APP_MAN_DIR 621ADMIN_MAN_SUFFIX 622DRIVER_MAN_SUFFIX 623MISC_MAN_SUFFIX 624FILE_MAN_SUFFIX 625LIB_MAN_SUFFIX 626APP_MAN_SUFFIX 627SED 628host_os 629host_vendor 630host_cpu 631host 632build_os 633build_vendor 634build_cpu 635build 636INSTALL_CMD 637PKG_CONFIG 638CHANGELOG_CMD 639STRICT_CFLAGS 640CWARNFLAGS 641BASE_CFLAGS 642EGREP 643GREP 644CPP 645am__fastdepCC_FALSE 646am__fastdepCC_TRUE 647CCDEPMODE 648AMDEPBACKSLASH 649AMDEP_FALSE 650AMDEP_TRUE 651am__quote 652am__include 653DEPDIR 654OBJEXT 655EXEEXT 656ac_ct_CC 657CPPFLAGS 658LDFLAGS 659CFLAGS 660CC 661MAINT 662MAINTAINER_MODE_FALSE 663MAINTAINER_MODE_TRUE 664am__untar 665am__tar 666AMTAR 667am__leading_dot 668SET_MAKE 669AWK 670mkdir_p 671MKDIR_P 672INSTALL_STRIP_PROGRAM 673STRIP 674install_sh 675MAKEINFO 676AUTOHEADER 677AUTOMAKE 678AUTOCONF 679ACLOCAL 680VERSION 681PACKAGE 682CYGPATH_W 683am__isrc 684INSTALL_DATA 685INSTALL_SCRIPT 686INSTALL_PROGRAM 687target_alias 688host_alias 689build_alias 690LIBS 691ECHO_T 692ECHO_N 693ECHO_C 694DEFS 695mandir 696localedir 697libdir 698psdir 699pdfdir 700dvidir 701htmldir 702infodir 703docdir 704oldincludedir 705includedir 706localstatedir 707sharedstatedir 708sysconfdir 709datadir 710datarootdir 711libexecdir 712sbindir 713bindir 714program_transform_name 715prefix 716exec_prefix 717PACKAGE_URL 718PACKAGE_BUGREPORT 719PACKAGE_STRING 720PACKAGE_VERSION 721PACKAGE_TARNAME 722PACKAGE_NAME 723PATH_SEPARATOR 724SHELL' 725ac_subst_files='' 726ac_user_opts=' 727enable_option_checking 728enable_maintainer_mode 729enable_dependency_tracking 730enable_selective_werror 731enable_strict_compilation 732enable_silent_rules 733' 734 ac_precious_vars='build_alias 735host_alias 736target_alias 737CC 738CFLAGS 739LDFLAGS 740LIBS 741CPPFLAGS 742CPP 743PKG_CONFIG 744XCMSDB_CFLAGS 745XCMSDB_LIBS' 746 747 748# Initialize some variables set by options. 749ac_init_help= 750ac_init_version=false 751ac_unrecognized_opts= 752ac_unrecognized_sep= 753# The variables have the same names as the options, with 754# dashes changed to underlines. 755cache_file=/dev/null 756exec_prefix=NONE 757no_create= 758no_recursion= 759prefix=NONE 760program_prefix=NONE 761program_suffix=NONE 762program_transform_name=s,x,x, 763silent= 764site= 765srcdir= 766verbose= 767x_includes=NONE 768x_libraries=NONE 769 770# Installation directory options. 771# These are left unexpanded so users can "make install exec_prefix=/foo" 772# and all the variables that are supposed to be based on exec_prefix 773# by default will actually change. 774# Use braces instead of parens because sh, perl, etc. also accept them. 775# (The list follows the same order as the GNU Coding Standards.) 776bindir='${exec_prefix}/bin' 777sbindir='${exec_prefix}/sbin' 778libexecdir='${exec_prefix}/libexec' 779datarootdir='${prefix}/share' 780datadir='${datarootdir}' 781sysconfdir='${prefix}/etc' 782sharedstatedir='${prefix}/com' 783localstatedir='${prefix}/var' 784includedir='${prefix}/include' 785oldincludedir='/usr/include' 786docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 787infodir='${datarootdir}/info' 788htmldir='${docdir}' 789dvidir='${docdir}' 790pdfdir='${docdir}' 791psdir='${docdir}' 792libdir='${exec_prefix}/lib' 793localedir='${datarootdir}/locale' 794mandir='${datarootdir}/man' 795 796ac_prev= 797ac_dashdash= 798for ac_option 799do 800 # If the previous option needs an argument, assign it. 801 if test -n "$ac_prev"; then 802 eval $ac_prev=\$ac_option 803 ac_prev= 804 continue 805 fi 806 807 case $ac_option in 808 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 809 *=) ac_optarg= ;; 810 *) ac_optarg=yes ;; 811 esac 812 813 # Accept the important Cygnus configure options, so we can diagnose typos. 814 815 case $ac_dashdash$ac_option in 816 --) 817 ac_dashdash=yes ;; 818 819 -bindir | --bindir | --bindi | --bind | --bin | --bi) 820 ac_prev=bindir ;; 821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 822 bindir=$ac_optarg ;; 823 824 -build | --build | --buil | --bui | --bu) 825 ac_prev=build_alias ;; 826 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 827 build_alias=$ac_optarg ;; 828 829 -cache-file | --cache-file | --cache-fil | --cache-fi \ 830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 831 ac_prev=cache_file ;; 832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 834 cache_file=$ac_optarg ;; 835 836 --config-cache | -C) 837 cache_file=config.cache ;; 838 839 -datadir | --datadir | --datadi | --datad) 840 ac_prev=datadir ;; 841 -datadir=* | --datadir=* | --datadi=* | --datad=*) 842 datadir=$ac_optarg ;; 843 844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 845 | --dataroo | --dataro | --datar) 846 ac_prev=datarootdir ;; 847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 849 datarootdir=$ac_optarg ;; 850 851 -disable-* | --disable-*) 852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 853 # Reject names that are not valid shell variable names. 854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 855 as_fn_error $? "invalid feature name: $ac_useropt" 856 ac_useropt_orig=$ac_useropt 857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 858 case $ac_user_opts in 859 *" 860"enable_$ac_useropt" 861"*) ;; 862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 863 ac_unrecognized_sep=', ';; 864 esac 865 eval enable_$ac_useropt=no ;; 866 867 -docdir | --docdir | --docdi | --doc | --do) 868 ac_prev=docdir ;; 869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 870 docdir=$ac_optarg ;; 871 872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 873 ac_prev=dvidir ;; 874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 875 dvidir=$ac_optarg ;; 876 877 -enable-* | --enable-*) 878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 879 # Reject names that are not valid shell variable names. 880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 881 as_fn_error $? "invalid feature name: $ac_useropt" 882 ac_useropt_orig=$ac_useropt 883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 884 case $ac_user_opts in 885 *" 886"enable_$ac_useropt" 887"*) ;; 888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 889 ac_unrecognized_sep=', ';; 890 esac 891 eval enable_$ac_useropt=\$ac_optarg ;; 892 893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 895 | --exec | --exe | --ex) 896 ac_prev=exec_prefix ;; 897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 899 | --exec=* | --exe=* | --ex=*) 900 exec_prefix=$ac_optarg ;; 901 902 -gas | --gas | --ga | --g) 903 # Obsolete; use --with-gas. 904 with_gas=yes ;; 905 906 -help | --help | --hel | --he | -h) 907 ac_init_help=long ;; 908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 909 ac_init_help=recursive ;; 910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 911 ac_init_help=short ;; 912 913 -host | --host | --hos | --ho) 914 ac_prev=host_alias ;; 915 -host=* | --host=* | --hos=* | --ho=*) 916 host_alias=$ac_optarg ;; 917 918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 919 ac_prev=htmldir ;; 920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 921 | --ht=*) 922 htmldir=$ac_optarg ;; 923 924 -includedir | --includedir | --includedi | --included | --include \ 925 | --includ | --inclu | --incl | --inc) 926 ac_prev=includedir ;; 927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 928 | --includ=* | --inclu=* | --incl=* | --inc=*) 929 includedir=$ac_optarg ;; 930 931 -infodir | --infodir | --infodi | --infod | --info | --inf) 932 ac_prev=infodir ;; 933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 934 infodir=$ac_optarg ;; 935 936 -libdir | --libdir | --libdi | --libd) 937 ac_prev=libdir ;; 938 -libdir=* | --libdir=* | --libdi=* | --libd=*) 939 libdir=$ac_optarg ;; 940 941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 942 | --libexe | --libex | --libe) 943 ac_prev=libexecdir ;; 944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 945 | --libexe=* | --libex=* | --libe=*) 946 libexecdir=$ac_optarg ;; 947 948 -localedir | --localedir | --localedi | --localed | --locale) 949 ac_prev=localedir ;; 950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 951 localedir=$ac_optarg ;; 952 953 -localstatedir | --localstatedir | --localstatedi | --localstated \ 954 | --localstate | --localstat | --localsta | --localst | --locals) 955 ac_prev=localstatedir ;; 956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 958 localstatedir=$ac_optarg ;; 959 960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 961 ac_prev=mandir ;; 962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 963 mandir=$ac_optarg ;; 964 965 -nfp | --nfp | --nf) 966 # Obsolete; use --without-fp. 967 with_fp=no ;; 968 969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 970 | --no-cr | --no-c | -n) 971 no_create=yes ;; 972 973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 975 no_recursion=yes ;; 976 977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 979 | --oldin | --oldi | --old | --ol | --o) 980 ac_prev=oldincludedir ;; 981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 984 oldincludedir=$ac_optarg ;; 985 986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 987 ac_prev=prefix ;; 988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 989 prefix=$ac_optarg ;; 990 991 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 992 | --program-pre | --program-pr | --program-p) 993 ac_prev=program_prefix ;; 994 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 996 program_prefix=$ac_optarg ;; 997 998 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 999 | --program-suf | --program-su | --program-s) 1000 ac_prev=program_suffix ;; 1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1003 program_suffix=$ac_optarg ;; 1004 1005 -program-transform-name | --program-transform-name \ 1006 | --program-transform-nam | --program-transform-na \ 1007 | --program-transform-n | --program-transform- \ 1008 | --program-transform | --program-transfor \ 1009 | --program-transfo | --program-transf \ 1010 | --program-trans | --program-tran \ 1011 | --progr-tra | --program-tr | --program-t) 1012 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1021 1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1023 ac_prev=pdfdir ;; 1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1025 pdfdir=$ac_optarg ;; 1026 1027 -psdir | --psdir | --psdi | --psd | --ps) 1028 ac_prev=psdir ;; 1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1030 psdir=$ac_optarg ;; 1031 1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1033 | -silent | --silent | --silen | --sile | --sil) 1034 silent=yes ;; 1035 1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1037 ac_prev=sbindir ;; 1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1039 | --sbi=* | --sb=*) 1040 sbindir=$ac_optarg ;; 1041 1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1044 | --sharedst | --shareds | --shared | --share | --shar \ 1045 | --sha | --sh) 1046 ac_prev=sharedstatedir ;; 1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1050 | --sha=* | --sh=*) 1051 sharedstatedir=$ac_optarg ;; 1052 1053 -site | --site | --sit) 1054 ac_prev=site ;; 1055 -site=* | --site=* | --sit=*) 1056 site=$ac_optarg ;; 1057 1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1059 ac_prev=srcdir ;; 1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1061 srcdir=$ac_optarg ;; 1062 1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1064 | --syscon | --sysco | --sysc | --sys | --sy) 1065 ac_prev=sysconfdir ;; 1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1068 sysconfdir=$ac_optarg ;; 1069 1070 -target | --target | --targe | --targ | --tar | --ta | --t) 1071 ac_prev=target_alias ;; 1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1073 target_alias=$ac_optarg ;; 1074 1075 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1076 verbose=yes ;; 1077 1078 -version | --version | --versio | --versi | --vers | -V) 1079 ac_init_version=: ;; 1080 1081 -with-* | --with-*) 1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1083 # Reject names that are not valid shell variable names. 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1085 as_fn_error $? "invalid package name: $ac_useropt" 1086 ac_useropt_orig=$ac_useropt 1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1088 case $ac_user_opts in 1089 *" 1090"with_$ac_useropt" 1091"*) ;; 1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1093 ac_unrecognized_sep=', ';; 1094 esac 1095 eval with_$ac_useropt=\$ac_optarg ;; 1096 1097 -without-* | --without-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error $? "invalid package name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"with_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval with_$ac_useropt=no ;; 1112 1113 --x) 1114 # Obsolete; use --with-x. 1115 with_x=yes ;; 1116 1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1118 | --x-incl | --x-inc | --x-in | --x-i) 1119 ac_prev=x_includes ;; 1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1122 x_includes=$ac_optarg ;; 1123 1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1126 ac_prev=x_libraries ;; 1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1129 x_libraries=$ac_optarg ;; 1130 1131 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1132Try \`$0 --help' for more information" 1133 ;; 1134 1135 *=*) 1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1137 # Reject names that are not valid shell variable names. 1138 case $ac_envvar in #( 1139 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1140 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1141 esac 1142 eval $ac_envvar=\$ac_optarg 1143 export $ac_envvar ;; 1144 1145 *) 1146 # FIXME: should be removed in autoconf 3.0. 1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1150 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1151 ;; 1152 1153 esac 1154done 1155 1156if test -n "$ac_prev"; then 1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1158 as_fn_error $? "missing argument to $ac_option" 1159fi 1160 1161if test -n "$ac_unrecognized_opts"; then 1162 case $enable_option_checking in 1163 no) ;; 1164 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1166 esac 1167fi 1168 1169# Check all directory arguments for consistency. 1170for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1171 datadir sysconfdir sharedstatedir localstatedir includedir \ 1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1173 libdir localedir mandir 1174do 1175 eval ac_val=\$$ac_var 1176 # Remove trailing slashes. 1177 case $ac_val in 1178 */ ) 1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1180 eval $ac_var=\$ac_val;; 1181 esac 1182 # Be sure to have absolute directory names. 1183 case $ac_val in 1184 [\\/$]* | ?:[\\/]* ) continue;; 1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1186 esac 1187 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1188done 1189 1190# There might be people who depend on the old broken behavior: `$host' 1191# used to hold the argument of --host etc. 1192# FIXME: To remove some day. 1193build=$build_alias 1194host=$host_alias 1195target=$target_alias 1196 1197# FIXME: To remove some day. 1198if test "x$host_alias" != x; then 1199 if test "x$build_alias" = x; then 1200 cross_compiling=maybe 1201 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1202 If a cross compiler is detected then cross compile mode will be used" >&2 1203 elif test "x$build_alias" != "x$host_alias"; then 1204 cross_compiling=yes 1205 fi 1206fi 1207 1208ac_tool_prefix= 1209test -n "$host_alias" && ac_tool_prefix=$host_alias- 1210 1211test "$silent" = yes && exec 6>/dev/null 1212 1213 1214ac_pwd=`pwd` && test -n "$ac_pwd" && 1215ac_ls_di=`ls -di .` && 1216ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1217 as_fn_error $? "working directory cannot be determined" 1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1219 as_fn_error $? "pwd does not report name of working directory" 1220 1221 1222# Find the source files, if location was not specified. 1223if test -z "$srcdir"; then 1224 ac_srcdir_defaulted=yes 1225 # Try the directory containing this script, then the parent directory. 1226 ac_confdir=`$as_dirname -- "$as_myself" || 1227$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1228 X"$as_myself" : 'X\(//\)[^/]' \| \ 1229 X"$as_myself" : 'X\(//\)$' \| \ 1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1231$as_echo X"$as_myself" | 1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1233 s//\1/ 1234 q 1235 } 1236 /^X\(\/\/\)[^/].*/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)$/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\).*/{ 1245 s//\1/ 1246 q 1247 } 1248 s/.*/./; q'` 1249 srcdir=$ac_confdir 1250 if test ! -r "$srcdir/$ac_unique_file"; then 1251 srcdir=.. 1252 fi 1253else 1254 ac_srcdir_defaulted=no 1255fi 1256if test ! -r "$srcdir/$ac_unique_file"; then 1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1258 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1259fi 1260ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1261ac_abs_confdir=`( 1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1263 pwd)` 1264# When building in place, set srcdir=. 1265if test "$ac_abs_confdir" = "$ac_pwd"; then 1266 srcdir=. 1267fi 1268# Remove unnecessary trailing slashes from srcdir. 1269# Double slashes in file names in object file debugging info 1270# mess up M-x gdb in Emacs. 1271case $srcdir in 1272*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1273esac 1274for ac_var in $ac_precious_vars; do 1275 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1276 eval ac_env_${ac_var}_value=\$${ac_var} 1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1278 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1279done 1280 1281# 1282# Report the --help message. 1283# 1284if test "$ac_init_help" = "long"; then 1285 # Omit some internal or obsolete options to make the list less imposing. 1286 # This message is too long to be a string in the A/UX 3.1 sh. 1287 cat <<_ACEOF 1288\`configure' configures xcmsdb 1.0.4 to adapt to many kinds of systems. 1289 1290Usage: $0 [OPTION]... [VAR=VALUE]... 1291 1292To assign environment variables (e.g., CC, CFLAGS...), specify them as 1293VAR=VALUE. See below for descriptions of some of the useful variables. 1294 1295Defaults for the options are specified in brackets. 1296 1297Configuration: 1298 -h, --help display this help and exit 1299 --help=short display options specific to this package 1300 --help=recursive display the short help of all the included packages 1301 -V, --version display version information and exit 1302 -q, --quiet, --silent do not print \`checking ...' messages 1303 --cache-file=FILE cache test results in FILE [disabled] 1304 -C, --config-cache alias for \`--cache-file=config.cache' 1305 -n, --no-create do not create output files 1306 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1307 1308Installation directories: 1309 --prefix=PREFIX install architecture-independent files in PREFIX 1310 [$ac_default_prefix] 1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1312 [PREFIX] 1313 1314By default, \`make install' will install all the files in 1315\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1316an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1317for instance \`--prefix=\$HOME'. 1318 1319For better control, use the options below. 1320 1321Fine tuning of the installation directories: 1322 --bindir=DIR user executables [EPREFIX/bin] 1323 --sbindir=DIR system admin executables [EPREFIX/sbin] 1324 --libexecdir=DIR program executables [EPREFIX/libexec] 1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1328 --libdir=DIR object code libraries [EPREFIX/lib] 1329 --includedir=DIR C header files [PREFIX/include] 1330 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1333 --infodir=DIR info documentation [DATAROOTDIR/info] 1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1335 --mandir=DIR man documentation [DATAROOTDIR/man] 1336 --docdir=DIR documentation root [DATAROOTDIR/doc/xcmsdb] 1337 --htmldir=DIR html documentation [DOCDIR] 1338 --dvidir=DIR dvi documentation [DOCDIR] 1339 --pdfdir=DIR pdf documentation [DOCDIR] 1340 --psdir=DIR ps documentation [DOCDIR] 1341_ACEOF 1342 1343 cat <<\_ACEOF 1344 1345Program names: 1346 --program-prefix=PREFIX prepend PREFIX to installed program names 1347 --program-suffix=SUFFIX append SUFFIX to installed program names 1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1349 1350System types: 1351 --build=BUILD configure for building on BUILD [guessed] 1352 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1353_ACEOF 1354fi 1355 1356if test -n "$ac_init_help"; then 1357 case $ac_init_help in 1358 short | recursive ) echo "Configuration of xcmsdb 1.0.4:";; 1359 esac 1360 cat <<\_ACEOF 1361 1362Optional Features: 1363 --disable-option-checking ignore unrecognized --enable/--with options 1364 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1365 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1366 --enable-maintainer-mode enable make rules and dependencies not useful 1367 (and sometimes confusing) to the casual installer 1368 --disable-dependency-tracking speeds up one-time build 1369 --enable-dependency-tracking do not reject slow dependency extractors 1370 --disable-selective-werror 1371 Turn off selective compiler errors. (default: 1372 enabled) 1373 --enable-strict-compilation 1374 Enable all warnings from compiler and make them 1375 errors (default: disabled) 1376 --enable-silent-rules less verbose build output (undo: `make V=1') 1377 --disable-silent-rules verbose build output (undo: `make V=0') 1378 1379Some influential environment variables: 1380 CC C compiler command 1381 CFLAGS C compiler flags 1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1383 nonstandard directory <lib dir> 1384 LIBS libraries to pass to the linker, e.g. -l<library> 1385 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1386 you have headers in a nonstandard directory <include dir> 1387 CPP C preprocessor 1388 PKG_CONFIG path to pkg-config utility 1389 XCMSDB_CFLAGS 1390 C compiler flags for XCMSDB, overriding pkg-config 1391 XCMSDB_LIBS linker flags for XCMSDB, overriding pkg-config 1392 1393Use these variables to override the choices made by `configure' or to help 1394it to find libraries and programs with nonstandard names/locations. 1395 1396Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1397_ACEOF 1398ac_status=$? 1399fi 1400 1401if test "$ac_init_help" = "recursive"; then 1402 # If there are subdirs, report their specific --help. 1403 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1404 test -d "$ac_dir" || 1405 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1406 continue 1407 ac_builddir=. 1408 1409case "$ac_dir" in 1410.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1411*) 1412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1413 # A ".." for each directory in $ac_dir_suffix. 1414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1415 case $ac_top_builddir_sub in 1416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1418 esac ;; 1419esac 1420ac_abs_top_builddir=$ac_pwd 1421ac_abs_builddir=$ac_pwd$ac_dir_suffix 1422# for backward compatibility: 1423ac_top_builddir=$ac_top_build_prefix 1424 1425case $srcdir in 1426 .) # We are building in place. 1427 ac_srcdir=. 1428 ac_top_srcdir=$ac_top_builddir_sub 1429 ac_abs_top_srcdir=$ac_pwd ;; 1430 [\\/]* | ?:[\\/]* ) # Absolute name. 1431 ac_srcdir=$srcdir$ac_dir_suffix; 1432 ac_top_srcdir=$srcdir 1433 ac_abs_top_srcdir=$srcdir ;; 1434 *) # Relative name. 1435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1436 ac_top_srcdir=$ac_top_build_prefix$srcdir 1437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1438esac 1439ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1440 1441 cd "$ac_dir" || { ac_status=$?; continue; } 1442 # Check for guested configure. 1443 if test -f "$ac_srcdir/configure.gnu"; then 1444 echo && 1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1446 elif test -f "$ac_srcdir/configure"; then 1447 echo && 1448 $SHELL "$ac_srcdir/configure" --help=recursive 1449 else 1450 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1451 fi || ac_status=$? 1452 cd "$ac_pwd" || { ac_status=$?; break; } 1453 done 1454fi 1455 1456test -n "$ac_init_help" && exit $ac_status 1457if $ac_init_version; then 1458 cat <<\_ACEOF 1459xcmsdb configure 1.0.4 1460generated by GNU Autoconf 2.68 1461 1462Copyright (C) 2010 Free Software Foundation, Inc. 1463This configure script is free software; the Free Software Foundation 1464gives unlimited permission to copy, distribute and modify it. 1465_ACEOF 1466 exit 1467fi 1468 1469## ------------------------ ## 1470## Autoconf initialization. ## 1471## ------------------------ ## 1472 1473# ac_fn_c_try_compile LINENO 1474# -------------------------- 1475# Try to compile conftest.$ac_ext, and return whether this succeeded. 1476ac_fn_c_try_compile () 1477{ 1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1479 rm -f conftest.$ac_objext 1480 if { { ac_try="$ac_compile" 1481case "(($ac_try" in 1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1483 *) ac_try_echo=$ac_try;; 1484esac 1485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1486$as_echo "$ac_try_echo"; } >&5 1487 (eval "$ac_compile") 2>conftest.err 1488 ac_status=$? 1489 if test -s conftest.err; then 1490 grep -v '^ *+' conftest.err >conftest.er1 1491 cat conftest.er1 >&5 1492 mv -f conftest.er1 conftest.err 1493 fi 1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1495 test $ac_status = 0; } && { 1496 test -z "$ac_c_werror_flag" || 1497 test ! -s conftest.err 1498 } && test -s conftest.$ac_objext; then : 1499 ac_retval=0 1500else 1501 $as_echo "$as_me: failed program was:" >&5 1502sed 's/^/| /' conftest.$ac_ext >&5 1503 1504 ac_retval=1 1505fi 1506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1507 as_fn_set_status $ac_retval 1508 1509} # ac_fn_c_try_compile 1510 1511# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1512# --------------------------------------------- 1513# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1514# accordingly. 1515ac_fn_c_check_decl () 1516{ 1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1518 as_decl_name=`echo $2|sed 's/ *(.*//'` 1519 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1521$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1522if eval \${$3+:} false; then : 1523 $as_echo_n "(cached) " >&6 1524else 1525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1526/* end confdefs.h. */ 1527$4 1528int 1529main () 1530{ 1531#ifndef $as_decl_name 1532#ifdef __cplusplus 1533 (void) $as_decl_use; 1534#else 1535 (void) $as_decl_name; 1536#endif 1537#endif 1538 1539 ; 1540 return 0; 1541} 1542_ACEOF 1543if ac_fn_c_try_compile "$LINENO"; then : 1544 eval "$3=yes" 1545else 1546 eval "$3=no" 1547fi 1548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1549fi 1550eval ac_res=\$$3 1551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1552$as_echo "$ac_res" >&6; } 1553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1554 1555} # ac_fn_c_check_decl 1556 1557# ac_fn_c_try_cpp LINENO 1558# ---------------------- 1559# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1560ac_fn_c_try_cpp () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 if { { ac_try="$ac_cpp conftest.$ac_ext" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } > conftest.i && { 1579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 }; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592} # ac_fn_c_try_cpp 1593 1594# ac_fn_c_try_run LINENO 1595# ---------------------- 1596# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1597# that executables *can* be run. 1598ac_fn_c_try_run () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 if { { ac_try="$ac_link" 1602case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605esac 1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607$as_echo "$ac_try_echo"; } >&5 1608 (eval "$ac_link") 2>&5 1609 ac_status=$? 1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1611 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1612 { { case "(($ac_try" in 1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1614 *) ac_try_echo=$ac_try;; 1615esac 1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1617$as_echo "$ac_try_echo"; } >&5 1618 (eval "$ac_try") 2>&5 1619 ac_status=$? 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; }; }; then : 1622 ac_retval=0 1623else 1624 $as_echo "$as_me: program exited with status $ac_status" >&5 1625 $as_echo "$as_me: failed program was:" >&5 1626sed 's/^/| /' conftest.$ac_ext >&5 1627 1628 ac_retval=$ac_status 1629fi 1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1632 as_fn_set_status $ac_retval 1633 1634} # ac_fn_c_try_run 1635 1636# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1637# ------------------------------------------------------- 1638# Tests whether HEADER exists and can be compiled using the include files in 1639# INCLUDES, setting the cache variable VAR accordingly. 1640ac_fn_c_check_header_compile () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1644$as_echo_n "checking for $2... " >&6; } 1645if eval \${$3+:} false; then : 1646 $as_echo_n "(cached) " >&6 1647else 1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1649/* end confdefs.h. */ 1650$4 1651#include <$2> 1652_ACEOF 1653if ac_fn_c_try_compile "$LINENO"; then : 1654 eval "$3=yes" 1655else 1656 eval "$3=no" 1657fi 1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1659fi 1660eval ac_res=\$$3 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1662$as_echo "$ac_res" >&6; } 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 1665} # ac_fn_c_check_header_compile 1666 1667# ac_fn_c_try_link LINENO 1668# ----------------------- 1669# Try to link conftest.$ac_ext, and return whether this succeeded. 1670ac_fn_c_try_link () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 rm -f conftest.$ac_objext conftest$ac_exeext 1674 if { { ac_try="$ac_link" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680$as_echo "$ac_try_echo"; } >&5 1681 (eval "$ac_link") 2>conftest.err 1682 ac_status=$? 1683 if test -s conftest.err; then 1684 grep -v '^ *+' conftest.err >conftest.er1 1685 cat conftest.er1 >&5 1686 mv -f conftest.er1 conftest.err 1687 fi 1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } && { 1690 test -z "$ac_c_werror_flag" || 1691 test ! -s conftest.err 1692 } && test -s conftest$ac_exeext && { 1693 test "$cross_compiling" = yes || 1694 $as_test_x conftest$ac_exeext 1695 }; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702fi 1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1705 # interfere with the next link command; also delete a directory that is 1706 # left behind by Apple's compiler. We do this before executing the actions. 1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_link 1712cat >config.log <<_ACEOF 1713This file contains any messages produced by compilers while 1714running configure, to aid debugging if configure makes a mistake. 1715 1716It was created by xcmsdb $as_me 1.0.4, which was 1717generated by GNU Autoconf 2.68. Invocation command line was 1718 1719 $ $0 $@ 1720 1721_ACEOF 1722exec 5>>config.log 1723{ 1724cat <<_ASUNAME 1725## --------- ## 1726## Platform. ## 1727## --------- ## 1728 1729hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1730uname -m = `(uname -m) 2>/dev/null || echo unknown` 1731uname -r = `(uname -r) 2>/dev/null || echo unknown` 1732uname -s = `(uname -s) 2>/dev/null || echo unknown` 1733uname -v = `(uname -v) 2>/dev/null || echo unknown` 1734 1735/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1736/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1737 1738/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1739/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1740/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1741/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1742/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1743/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1744/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1745 1746_ASUNAME 1747 1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1749for as_dir in $PATH 1750do 1751 IFS=$as_save_IFS 1752 test -z "$as_dir" && as_dir=. 1753 $as_echo "PATH: $as_dir" 1754 done 1755IFS=$as_save_IFS 1756 1757} >&5 1758 1759cat >&5 <<_ACEOF 1760 1761 1762## ----------- ## 1763## Core tests. ## 1764## ----------- ## 1765 1766_ACEOF 1767 1768 1769# Keep a trace of the command line. 1770# Strip out --no-create and --no-recursion so they do not pile up. 1771# Strip out --silent because we don't want to record it for future runs. 1772# Also quote any args containing shell meta-characters. 1773# Make two passes to allow for proper duplicate-argument suppression. 1774ac_configure_args= 1775ac_configure_args0= 1776ac_configure_args1= 1777ac_must_keep_next=false 1778for ac_pass in 1 2 1779do 1780 for ac_arg 1781 do 1782 case $ac_arg in 1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1785 | -silent | --silent | --silen | --sile | --sil) 1786 continue ;; 1787 *\'*) 1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1789 esac 1790 case $ac_pass in 1791 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1792 2) 1793 as_fn_append ac_configure_args1 " '$ac_arg'" 1794 if test $ac_must_keep_next = true; then 1795 ac_must_keep_next=false # Got value, back to normal. 1796 else 1797 case $ac_arg in 1798 *=* | --config-cache | -C | -disable-* | --disable-* \ 1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1801 | -with-* | --with-* | -without-* | --without-* | --x) 1802 case "$ac_configure_args0 " in 1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1804 esac 1805 ;; 1806 -* ) ac_must_keep_next=true ;; 1807 esac 1808 fi 1809 as_fn_append ac_configure_args " '$ac_arg'" 1810 ;; 1811 esac 1812 done 1813done 1814{ ac_configure_args0=; unset ac_configure_args0;} 1815{ ac_configure_args1=; unset ac_configure_args1;} 1816 1817# When interrupted or exit'd, cleanup temporary files, and complete 1818# config.log. We remove comments because anyway the quotes in there 1819# would cause problems or look ugly. 1820# WARNING: Use '\'' to represent an apostrophe within the trap. 1821# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1822trap 'exit_status=$? 1823 # Save into config.log some information that might help in debugging. 1824 { 1825 echo 1826 1827 $as_echo "## ---------------- ## 1828## Cache variables. ## 1829## ---------------- ##" 1830 echo 1831 # The following way of writing the cache mishandles newlines in values, 1832( 1833 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1834 eval ac_val=\$$ac_var 1835 case $ac_val in #( 1836 *${as_nl}*) 1837 case $ac_var in #( 1838 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1839$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1840 esac 1841 case $ac_var in #( 1842 _ | IFS | as_nl) ;; #( 1843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1844 *) { eval $ac_var=; unset $ac_var;} ;; 1845 esac ;; 1846 esac 1847 done 1848 (set) 2>&1 | 1849 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1850 *${as_nl}ac_space=\ *) 1851 sed -n \ 1852 "s/'\''/'\''\\\\'\'''\''/g; 1853 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1854 ;; #( 1855 *) 1856 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1857 ;; 1858 esac | 1859 sort 1860) 1861 echo 1862 1863 $as_echo "## ----------------- ## 1864## Output variables. ## 1865## ----------------- ##" 1866 echo 1867 for ac_var in $ac_subst_vars 1868 do 1869 eval ac_val=\$$ac_var 1870 case $ac_val in 1871 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1872 esac 1873 $as_echo "$ac_var='\''$ac_val'\''" 1874 done | sort 1875 echo 1876 1877 if test -n "$ac_subst_files"; then 1878 $as_echo "## ------------------- ## 1879## File substitutions. ## 1880## ------------------- ##" 1881 echo 1882 for ac_var in $ac_subst_files 1883 do 1884 eval ac_val=\$$ac_var 1885 case $ac_val in 1886 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1887 esac 1888 $as_echo "$ac_var='\''$ac_val'\''" 1889 done | sort 1890 echo 1891 fi 1892 1893 if test -s confdefs.h; then 1894 $as_echo "## ----------- ## 1895## confdefs.h. ## 1896## ----------- ##" 1897 echo 1898 cat confdefs.h 1899 echo 1900 fi 1901 test "$ac_signal" != 0 && 1902 $as_echo "$as_me: caught signal $ac_signal" 1903 $as_echo "$as_me: exit $exit_status" 1904 } >&5 1905 rm -f core *.core core.conftest.* && 1906 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1907 exit $exit_status 1908' 0 1909for ac_signal in 1 2 13 15; do 1910 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1911done 1912ac_signal=0 1913 1914# confdefs.h avoids OS command line length limits that DEFS can exceed. 1915rm -f -r conftest* confdefs.h 1916 1917$as_echo "/* confdefs.h */" > confdefs.h 1918 1919# Predefined preprocessor variables. 1920 1921cat >>confdefs.h <<_ACEOF 1922#define PACKAGE_NAME "$PACKAGE_NAME" 1923_ACEOF 1924 1925cat >>confdefs.h <<_ACEOF 1926#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1927_ACEOF 1928 1929cat >>confdefs.h <<_ACEOF 1930#define PACKAGE_VERSION "$PACKAGE_VERSION" 1931_ACEOF 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_STRING "$PACKAGE_STRING" 1935_ACEOF 1936 1937cat >>confdefs.h <<_ACEOF 1938#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1939_ACEOF 1940 1941cat >>confdefs.h <<_ACEOF 1942#define PACKAGE_URL "$PACKAGE_URL" 1943_ACEOF 1944 1945 1946# Let the site file select an alternate cache file if it wants to. 1947# Prefer an explicitly selected file to automatically selected ones. 1948ac_site_file1=NONE 1949ac_site_file2=NONE 1950if test -n "$CONFIG_SITE"; then 1951 # We do not want a PATH search for config.site. 1952 case $CONFIG_SITE in #(( 1953 -*) ac_site_file1=./$CONFIG_SITE;; 1954 */*) ac_site_file1=$CONFIG_SITE;; 1955 *) ac_site_file1=./$CONFIG_SITE;; 1956 esac 1957elif test "x$prefix" != xNONE; then 1958 ac_site_file1=$prefix/share/config.site 1959 ac_site_file2=$prefix/etc/config.site 1960else 1961 ac_site_file1=$ac_default_prefix/share/config.site 1962 ac_site_file2=$ac_default_prefix/etc/config.site 1963fi 1964for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1965do 1966 test "x$ac_site_file" = xNONE && continue 1967 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1969$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1970 sed 's/^/| /' "$ac_site_file" >&5 1971 . "$ac_site_file" \ 1972 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1974as_fn_error $? "failed to load site script $ac_site_file 1975See \`config.log' for more details" "$LINENO" 5; } 1976 fi 1977done 1978 1979if test -r "$cache_file"; then 1980 # Some versions of bash will fail to source /dev/null (special files 1981 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1982 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1984$as_echo "$as_me: loading cache $cache_file" >&6;} 1985 case $cache_file in 1986 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1987 *) . "./$cache_file";; 1988 esac 1989 fi 1990else 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1992$as_echo "$as_me: creating cache $cache_file" >&6;} 1993 >$cache_file 1994fi 1995 1996# Check that the precious variables saved in the cache have kept the same 1997# value. 1998ac_cache_corrupted=false 1999for ac_var in $ac_precious_vars; do 2000 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2001 eval ac_new_set=\$ac_env_${ac_var}_set 2002 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2003 eval ac_new_val=\$ac_env_${ac_var}_value 2004 case $ac_old_set,$ac_new_set in 2005 set,) 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2007$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2008 ac_cache_corrupted=: ;; 2009 ,set) 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2011$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2012 ac_cache_corrupted=: ;; 2013 ,);; 2014 *) 2015 if test "x$ac_old_val" != "x$ac_new_val"; then 2016 # differences in whitespace do not lead to failure. 2017 ac_old_val_w=`echo x $ac_old_val` 2018 ac_new_val_w=`echo x $ac_new_val` 2019 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2021$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2022 ac_cache_corrupted=: 2023 else 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2025$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2026 eval $ac_var=\$ac_old_val 2027 fi 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2029$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2031$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2032 fi;; 2033 esac 2034 # Pass precious variables to config.status. 2035 if test "$ac_new_set" = set; then 2036 case $ac_new_val in 2037 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2038 *) ac_arg=$ac_var=$ac_new_val ;; 2039 esac 2040 case " $ac_configure_args " in 2041 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2042 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2043 esac 2044 fi 2045done 2046if $ac_cache_corrupted; then 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2050$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2051 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2052fi 2053## -------------------- ## 2054## Main body of script. ## 2055## -------------------- ## 2056 2057ac_ext=c 2058ac_cpp='$CPP $CPPFLAGS' 2059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2061ac_compiler_gnu=$ac_cv_c_compiler_gnu 2062 2063 2064am__api_version='1.11' 2065 2066ac_aux_dir= 2067for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2068 if test -f "$ac_dir/install-sh"; then 2069 ac_aux_dir=$ac_dir 2070 ac_install_sh="$ac_aux_dir/install-sh -c" 2071 break 2072 elif test -f "$ac_dir/install.sh"; then 2073 ac_aux_dir=$ac_dir 2074 ac_install_sh="$ac_aux_dir/install.sh -c" 2075 break 2076 elif test -f "$ac_dir/shtool"; then 2077 ac_aux_dir=$ac_dir 2078 ac_install_sh="$ac_aux_dir/shtool install -c" 2079 break 2080 fi 2081done 2082if test -z "$ac_aux_dir"; then 2083 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2084fi 2085 2086# These three variables are undocumented and unsupported, 2087# and are intended to be withdrawn in a future Autoconf release. 2088# They can cause serious problems if a builder's source tree is in a directory 2089# whose full name contains unusual characters. 2090ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2091ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2092ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2093 2094 2095# Find a good install program. We prefer a C program (faster), 2096# so one script is as good as another. But avoid the broken or 2097# incompatible versions: 2098# SysV /etc/install, /usr/sbin/install 2099# SunOS /usr/etc/install 2100# IRIX /sbin/install 2101# AIX /bin/install 2102# AmigaOS /C/install, which installs bootblocks on floppy discs 2103# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2104# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2105# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2106# OS/2's system install, which has a completely different semantic 2107# ./install, which can be erroneously created by make from ./install.sh. 2108# Reject install programs that cannot install multiple files. 2109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2110$as_echo_n "checking for a BSD-compatible install... " >&6; } 2111if test -z "$INSTALL"; then 2112if ${ac_cv_path_install+:} false; then : 2113 $as_echo_n "(cached) " >&6 2114else 2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2116for as_dir in $PATH 2117do 2118 IFS=$as_save_IFS 2119 test -z "$as_dir" && as_dir=. 2120 # Account for people who put trailing slashes in PATH elements. 2121case $as_dir/ in #(( 2122 ./ | .// | /[cC]/* | \ 2123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2124 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2125 /usr/ucb/* ) ;; 2126 *) 2127 # OSF1 and SCO ODT 3.0 have their own names for install. 2128 # Don't use installbsd from OSF since it installs stuff as root 2129 # by default. 2130 for ac_prog in ginstall scoinst install; do 2131 for ac_exec_ext in '' $ac_executable_extensions; do 2132 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2133 if test $ac_prog = install && 2134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2135 # AIX install. It has an incompatible calling convention. 2136 : 2137 elif test $ac_prog = install && 2138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2139 # program-specific install script used by HP pwplus--don't use. 2140 : 2141 else 2142 rm -rf conftest.one conftest.two conftest.dir 2143 echo one > conftest.one 2144 echo two > conftest.two 2145 mkdir conftest.dir 2146 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2147 test -s conftest.one && test -s conftest.two && 2148 test -s conftest.dir/conftest.one && 2149 test -s conftest.dir/conftest.two 2150 then 2151 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2152 break 3 2153 fi 2154 fi 2155 fi 2156 done 2157 done 2158 ;; 2159esac 2160 2161 done 2162IFS=$as_save_IFS 2163 2164rm -rf conftest.one conftest.two conftest.dir 2165 2166fi 2167 if test "${ac_cv_path_install+set}" = set; then 2168 INSTALL=$ac_cv_path_install 2169 else 2170 # As a last resort, use the slow shell script. Don't cache a 2171 # value for INSTALL within a source directory, because that will 2172 # break other packages using the cache if that directory is 2173 # removed, or if the value is a relative name. 2174 INSTALL=$ac_install_sh 2175 fi 2176fi 2177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2178$as_echo "$INSTALL" >&6; } 2179 2180# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2181# It thinks the first close brace ends the variable substitution. 2182test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2183 2184test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2185 2186test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2187 2188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2189$as_echo_n "checking whether build environment is sane... " >&6; } 2190# Just in case 2191sleep 1 2192echo timestamp > conftest.file 2193# Reject unsafe characters in $srcdir or the absolute working directory 2194# name. Accept space and tab only in the latter. 2195am_lf=' 2196' 2197case `pwd` in 2198 *[\\\"\#\$\&\'\`$am_lf]*) 2199 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2200esac 2201case $srcdir in 2202 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2203 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2204esac 2205 2206# Do `set' in a subshell so we don't clobber the current shell's 2207# arguments. Must try -L first in case configure is actually a 2208# symlink; some systems play weird games with the mod time of symlinks 2209# (eg FreeBSD returns the mod time of the symlink's containing 2210# directory). 2211if ( 2212 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2213 if test "$*" = "X"; then 2214 # -L didn't work. 2215 set X `ls -t "$srcdir/configure" conftest.file` 2216 fi 2217 rm -f conftest.file 2218 if test "$*" != "X $srcdir/configure conftest.file" \ 2219 && test "$*" != "X conftest.file $srcdir/configure"; then 2220 2221 # If neither matched, then we have a broken ls. This can happen 2222 # if, for instance, CONFIG_SHELL is bash and it inherits a 2223 # broken ls alias from the environment. This has actually 2224 # happened. Such a system could not be considered "sane". 2225 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2226alias in your environment" "$LINENO" 5 2227 fi 2228 2229 test "$2" = conftest.file 2230 ) 2231then 2232 # Ok. 2233 : 2234else 2235 as_fn_error $? "newly created file is older than distributed files! 2236Check your system clock" "$LINENO" 5 2237fi 2238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2239$as_echo "yes" >&6; } 2240test "$program_prefix" != NONE && 2241 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2242# Use a double $ so make ignores it. 2243test "$program_suffix" != NONE && 2244 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2245# Double any \ or $. 2246# By default was `s,x,x', remove it if useless. 2247ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2248program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2249 2250# expand $ac_aux_dir to an absolute path 2251am_aux_dir=`cd $ac_aux_dir && pwd` 2252 2253if test x"${MISSING+set}" != xset; then 2254 case $am_aux_dir in 2255 *\ * | *\ *) 2256 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2257 *) 2258 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2259 esac 2260fi 2261# Use eval to expand $SHELL 2262if eval "$MISSING --run true"; then 2263 am_missing_run="$MISSING --run " 2264else 2265 am_missing_run= 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2267$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2268fi 2269 2270if test x"${install_sh}" != xset; then 2271 case $am_aux_dir in 2272 *\ * | *\ *) 2273 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2274 *) 2275 install_sh="\${SHELL} $am_aux_dir/install-sh" 2276 esac 2277fi 2278 2279# Installed binaries are usually stripped using `strip' when the user 2280# run `make install-strip'. However `strip' might not be the right 2281# tool to use in cross-compilation environments, therefore Automake 2282# will honor the `STRIP' environment variable to overrule this program. 2283if test "$cross_compiling" != no; then 2284 if test -n "$ac_tool_prefix"; then 2285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2286set dummy ${ac_tool_prefix}strip; ac_word=$2 2287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2288$as_echo_n "checking for $ac_word... " >&6; } 2289if ${ac_cv_prog_STRIP+:} false; then : 2290 $as_echo_n "(cached) " >&6 2291else 2292 if test -n "$STRIP"; then 2293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2294else 2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2296for as_dir in $PATH 2297do 2298 IFS=$as_save_IFS 2299 test -z "$as_dir" && as_dir=. 2300 for ac_exec_ext in '' $ac_executable_extensions; do 2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2302 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2304 break 2 2305 fi 2306done 2307 done 2308IFS=$as_save_IFS 2309 2310fi 2311fi 2312STRIP=$ac_cv_prog_STRIP 2313if test -n "$STRIP"; then 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2315$as_echo "$STRIP" >&6; } 2316else 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2318$as_echo "no" >&6; } 2319fi 2320 2321 2322fi 2323if test -z "$ac_cv_prog_STRIP"; then 2324 ac_ct_STRIP=$STRIP 2325 # Extract the first word of "strip", so it can be a program name with args. 2326set dummy strip; ac_word=$2 2327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2328$as_echo_n "checking for $ac_word... " >&6; } 2329if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2330 $as_echo_n "(cached) " >&6 2331else 2332 if test -n "$ac_ct_STRIP"; then 2333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2334else 2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2336for as_dir in $PATH 2337do 2338 IFS=$as_save_IFS 2339 test -z "$as_dir" && as_dir=. 2340 for ac_exec_ext in '' $ac_executable_extensions; do 2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2342 ac_cv_prog_ac_ct_STRIP="strip" 2343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2344 break 2 2345 fi 2346done 2347 done 2348IFS=$as_save_IFS 2349 2350fi 2351fi 2352ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2353if test -n "$ac_ct_STRIP"; then 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2355$as_echo "$ac_ct_STRIP" >&6; } 2356else 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2358$as_echo "no" >&6; } 2359fi 2360 2361 if test "x$ac_ct_STRIP" = x; then 2362 STRIP=":" 2363 else 2364 case $cross_compiling:$ac_tool_warned in 2365yes:) 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2368ac_tool_warned=yes ;; 2369esac 2370 STRIP=$ac_ct_STRIP 2371 fi 2372else 2373 STRIP="$ac_cv_prog_STRIP" 2374fi 2375 2376fi 2377INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2378 2379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2380$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2381if test -z "$MKDIR_P"; then 2382 if ${ac_cv_path_mkdir+:} false; then : 2383 $as_echo_n "(cached) " >&6 2384else 2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2386for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2387do 2388 IFS=$as_save_IFS 2389 test -z "$as_dir" && as_dir=. 2390 for ac_prog in mkdir gmkdir; do 2391 for ac_exec_ext in '' $ac_executable_extensions; do 2392 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2393 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2394 'mkdir (GNU coreutils) '* | \ 2395 'mkdir (coreutils) '* | \ 2396 'mkdir (fileutils) '4.1*) 2397 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2398 break 3;; 2399 esac 2400 done 2401 done 2402 done 2403IFS=$as_save_IFS 2404 2405fi 2406 2407 test -d ./--version && rmdir ./--version 2408 if test "${ac_cv_path_mkdir+set}" = set; then 2409 MKDIR_P="$ac_cv_path_mkdir -p" 2410 else 2411 # As a last resort, use the slow shell script. Don't cache a 2412 # value for MKDIR_P within a source directory, because that will 2413 # break other packages using the cache if that directory is 2414 # removed, or if the value is a relative name. 2415 MKDIR_P="$ac_install_sh -d" 2416 fi 2417fi 2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2419$as_echo "$MKDIR_P" >&6; } 2420 2421mkdir_p="$MKDIR_P" 2422case $mkdir_p in 2423 [\\/$]* | ?:[\\/]*) ;; 2424 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2425esac 2426 2427for ac_prog in gawk mawk nawk awk 2428do 2429 # Extract the first word of "$ac_prog", so it can be a program name with args. 2430set dummy $ac_prog; ac_word=$2 2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2432$as_echo_n "checking for $ac_word... " >&6; } 2433if ${ac_cv_prog_AWK+:} false; then : 2434 $as_echo_n "(cached) " >&6 2435else 2436 if test -n "$AWK"; then 2437 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2438else 2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440for as_dir in $PATH 2441do 2442 IFS=$as_save_IFS 2443 test -z "$as_dir" && as_dir=. 2444 for ac_exec_ext in '' $ac_executable_extensions; do 2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2446 ac_cv_prog_AWK="$ac_prog" 2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2448 break 2 2449 fi 2450done 2451 done 2452IFS=$as_save_IFS 2453 2454fi 2455fi 2456AWK=$ac_cv_prog_AWK 2457if test -n "$AWK"; then 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2459$as_echo "$AWK" >&6; } 2460else 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2462$as_echo "no" >&6; } 2463fi 2464 2465 2466 test -n "$AWK" && break 2467done 2468 2469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2470$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2471set x ${MAKE-make} 2472ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2473if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2474 $as_echo_n "(cached) " >&6 2475else 2476 cat >conftest.make <<\_ACEOF 2477SHELL = /bin/sh 2478all: 2479 @echo '@@@%%%=$(MAKE)=@@@%%%' 2480_ACEOF 2481# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2482case `${MAKE-make} -f conftest.make 2>/dev/null` in 2483 *@@@%%%=?*=@@@%%%*) 2484 eval ac_cv_prog_make_${ac_make}_set=yes;; 2485 *) 2486 eval ac_cv_prog_make_${ac_make}_set=no;; 2487esac 2488rm -f conftest.make 2489fi 2490if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2492$as_echo "yes" >&6; } 2493 SET_MAKE= 2494else 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2496$as_echo "no" >&6; } 2497 SET_MAKE="MAKE=${MAKE-make}" 2498fi 2499 2500rm -rf .tst 2>/dev/null 2501mkdir .tst 2>/dev/null 2502if test -d .tst; then 2503 am__leading_dot=. 2504else 2505 am__leading_dot=_ 2506fi 2507rmdir .tst 2>/dev/null 2508 2509if test "`cd $srcdir && pwd`" != "`pwd`"; then 2510 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2511 # is not polluted with repeated "-I." 2512 am__isrc=' -I$(srcdir)' 2513 # test to see if srcdir already configured 2514 if test -f $srcdir/config.status; then 2515 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2516 fi 2517fi 2518 2519# test whether we have cygpath 2520if test -z "$CYGPATH_W"; then 2521 if (cygpath --version) >/dev/null 2>/dev/null; then 2522 CYGPATH_W='cygpath -w' 2523 else 2524 CYGPATH_W=echo 2525 fi 2526fi 2527 2528 2529# Define the identity of the package. 2530 PACKAGE='xcmsdb' 2531 VERSION='1.0.4' 2532 2533 2534cat >>confdefs.h <<_ACEOF 2535#define PACKAGE "$PACKAGE" 2536_ACEOF 2537 2538 2539cat >>confdefs.h <<_ACEOF 2540#define VERSION "$VERSION" 2541_ACEOF 2542 2543# Some tools Automake needs. 2544 2545ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2546 2547 2548AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2549 2550 2551AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2552 2553 2554AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2555 2556 2557MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2558 2559# We need awk for the "check" target. The system "awk" is bad on 2560# some platforms. 2561# Always define AMTAR for backward compatibility. 2562 2563AMTAR=${AMTAR-"${am_missing_run}tar"} 2564 2565am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2566 2567 2568 2569 2570 2571 2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2573$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2574 # Check whether --enable-maintainer-mode was given. 2575if test "${enable_maintainer_mode+set}" = set; then : 2576 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2577else 2578 USE_MAINTAINER_MODE=no 2579fi 2580 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2582$as_echo "$USE_MAINTAINER_MODE" >&6; } 2583 if test $USE_MAINTAINER_MODE = yes; then 2584 MAINTAINER_MODE_TRUE= 2585 MAINTAINER_MODE_FALSE='#' 2586else 2587 MAINTAINER_MODE_TRUE='#' 2588 MAINTAINER_MODE_FALSE= 2589fi 2590 2591 MAINT=$MAINTAINER_MODE_TRUE 2592 2593 2594 2595# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608ac_config_headers="$ac_config_headers config.h" 2609 2610 2611DEPDIR="${am__leading_dot}deps" 2612 2613ac_config_commands="$ac_config_commands depfiles" 2614 2615 2616am_make=${MAKE-make} 2617cat > confinc << 'END' 2618am__doit: 2619 @echo this is the am__doit target 2620.PHONY: am__doit 2621END 2622# If we don't find an include directive, just comment out the code. 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2624$as_echo_n "checking for style of include used by $am_make... " >&6; } 2625am__include="#" 2626am__quote= 2627_am_result=none 2628# First try GNU make style include. 2629echo "include confinc" > confmf 2630# Ignore all kinds of additional output from `make'. 2631case `$am_make -s -f confmf 2> /dev/null` in #( 2632*the\ am__doit\ target*) 2633 am__include=include 2634 am__quote= 2635 _am_result=GNU 2636 ;; 2637esac 2638# Now try BSD make style include. 2639if test "$am__include" = "#"; then 2640 echo '.include "confinc"' > confmf 2641 case `$am_make -s -f confmf 2> /dev/null` in #( 2642 *the\ am__doit\ target*) 2643 am__include=.include 2644 am__quote="\"" 2645 _am_result=BSD 2646 ;; 2647 esac 2648fi 2649 2650 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2652$as_echo "$_am_result" >&6; } 2653rm -f confinc confmf 2654 2655# Check whether --enable-dependency-tracking was given. 2656if test "${enable_dependency_tracking+set}" = set; then : 2657 enableval=$enable_dependency_tracking; 2658fi 2659 2660if test "x$enable_dependency_tracking" != xno; then 2661 am_depcomp="$ac_aux_dir/depcomp" 2662 AMDEPBACKSLASH='\' 2663fi 2664 if test "x$enable_dependency_tracking" != xno; then 2665 AMDEP_TRUE= 2666 AMDEP_FALSE='#' 2667else 2668 AMDEP_TRUE='#' 2669 AMDEP_FALSE= 2670fi 2671 2672 2673ac_ext=c 2674ac_cpp='$CPP $CPPFLAGS' 2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2677ac_compiler_gnu=$ac_cv_c_compiler_gnu 2678if test -n "$ac_tool_prefix"; then 2679 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2680set dummy ${ac_tool_prefix}gcc; ac_word=$2 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2682$as_echo_n "checking for $ac_word... " >&6; } 2683if ${ac_cv_prog_CC+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 if test -n "$CC"; then 2687 ac_cv_prog_CC="$CC" # Let the user override the test. 2688else 2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2690for as_dir in $PATH 2691do 2692 IFS=$as_save_IFS 2693 test -z "$as_dir" && as_dir=. 2694 for ac_exec_ext in '' $ac_executable_extensions; do 2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2696 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2698 break 2 2699 fi 2700done 2701 done 2702IFS=$as_save_IFS 2703 2704fi 2705fi 2706CC=$ac_cv_prog_CC 2707if test -n "$CC"; then 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2709$as_echo "$CC" >&6; } 2710else 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2712$as_echo "no" >&6; } 2713fi 2714 2715 2716fi 2717if test -z "$ac_cv_prog_CC"; then 2718 ac_ct_CC=$CC 2719 # Extract the first word of "gcc", so it can be a program name with args. 2720set dummy gcc; ac_word=$2 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2722$as_echo_n "checking for $ac_word... " >&6; } 2723if ${ac_cv_prog_ac_ct_CC+:} false; then : 2724 $as_echo_n "(cached) " >&6 2725else 2726 if test -n "$ac_ct_CC"; then 2727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2728else 2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2730for as_dir in $PATH 2731do 2732 IFS=$as_save_IFS 2733 test -z "$as_dir" && as_dir=. 2734 for ac_exec_ext in '' $ac_executable_extensions; do 2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2736 ac_cv_prog_ac_ct_CC="gcc" 2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2738 break 2 2739 fi 2740done 2741 done 2742IFS=$as_save_IFS 2743 2744fi 2745fi 2746ac_ct_CC=$ac_cv_prog_ac_ct_CC 2747if test -n "$ac_ct_CC"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2749$as_echo "$ac_ct_CC" >&6; } 2750else 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2752$as_echo "no" >&6; } 2753fi 2754 2755 if test "x$ac_ct_CC" = x; then 2756 CC="" 2757 else 2758 case $cross_compiling:$ac_tool_warned in 2759yes:) 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2762ac_tool_warned=yes ;; 2763esac 2764 CC=$ac_ct_CC 2765 fi 2766else 2767 CC="$ac_cv_prog_CC" 2768fi 2769 2770if test -z "$CC"; then 2771 if test -n "$ac_tool_prefix"; then 2772 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2773set dummy ${ac_tool_prefix}cc; ac_word=$2 2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2775$as_echo_n "checking for $ac_word... " >&6; } 2776if ${ac_cv_prog_CC+:} false; then : 2777 $as_echo_n "(cached) " >&6 2778else 2779 if test -n "$CC"; then 2780 ac_cv_prog_CC="$CC" # Let the user override the test. 2781else 2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2783for as_dir in $PATH 2784do 2785 IFS=$as_save_IFS 2786 test -z "$as_dir" && as_dir=. 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2789 ac_cv_prog_CC="${ac_tool_prefix}cc" 2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2791 break 2 2792 fi 2793done 2794 done 2795IFS=$as_save_IFS 2796 2797fi 2798fi 2799CC=$ac_cv_prog_CC 2800if test -n "$CC"; then 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2802$as_echo "$CC" >&6; } 2803else 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2805$as_echo "no" >&6; } 2806fi 2807 2808 2809 fi 2810fi 2811if test -z "$CC"; then 2812 # Extract the first word of "cc", so it can be a program name with args. 2813set dummy cc; ac_word=$2 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2815$as_echo_n "checking for $ac_word... " >&6; } 2816if ${ac_cv_prog_CC+:} false; then : 2817 $as_echo_n "(cached) " >&6 2818else 2819 if test -n "$CC"; then 2820 ac_cv_prog_CC="$CC" # Let the user override the test. 2821else 2822 ac_prog_rejected=no 2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824for as_dir in $PATH 2825do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2830 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2831 ac_prog_rejected=yes 2832 continue 2833 fi 2834 ac_cv_prog_CC="cc" 2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2836 break 2 2837 fi 2838done 2839 done 2840IFS=$as_save_IFS 2841 2842if test $ac_prog_rejected = yes; then 2843 # We found a bogon in the path, so make sure we never use it. 2844 set dummy $ac_cv_prog_CC 2845 shift 2846 if test $# != 0; then 2847 # We chose a different compiler from the bogus one. 2848 # However, it has the same basename, so the bogon will be chosen 2849 # first if we set CC to just the basename; use the full file name. 2850 shift 2851 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2852 fi 2853fi 2854fi 2855fi 2856CC=$ac_cv_prog_CC 2857if test -n "$CC"; then 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2859$as_echo "$CC" >&6; } 2860else 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2862$as_echo "no" >&6; } 2863fi 2864 2865 2866fi 2867if test -z "$CC"; then 2868 if test -n "$ac_tool_prefix"; then 2869 for ac_prog in cl.exe 2870 do 2871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2872set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874$as_echo_n "checking for $ac_word... " >&6; } 2875if ${ac_cv_prog_CC+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if test -n "$CC"; then 2879 ac_cv_prog_CC="$CC" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2888 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893 done 2894IFS=$as_save_IFS 2895 2896fi 2897fi 2898CC=$ac_cv_prog_CC 2899if test -n "$CC"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2901$as_echo "$CC" >&6; } 2902else 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904$as_echo "no" >&6; } 2905fi 2906 2907 2908 test -n "$CC" && break 2909 done 2910fi 2911if test -z "$CC"; then 2912 ac_ct_CC=$CC 2913 for ac_prog in cl.exe 2914do 2915 # Extract the first word of "$ac_prog", so it can be a program name with args. 2916set dummy $ac_prog; ac_word=$2 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2918$as_echo_n "checking for $ac_word... " >&6; } 2919if ${ac_cv_prog_ac_ct_CC+:} false; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test -n "$ac_ct_CC"; then 2923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2924else 2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2926for as_dir in $PATH 2927do 2928 IFS=$as_save_IFS 2929 test -z "$as_dir" && as_dir=. 2930 for ac_exec_ext in '' $ac_executable_extensions; do 2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2932 ac_cv_prog_ac_ct_CC="$ac_prog" 2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2934 break 2 2935 fi 2936done 2937 done 2938IFS=$as_save_IFS 2939 2940fi 2941fi 2942ac_ct_CC=$ac_cv_prog_ac_ct_CC 2943if test -n "$ac_ct_CC"; then 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2945$as_echo "$ac_ct_CC" >&6; } 2946else 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2948$as_echo "no" >&6; } 2949fi 2950 2951 2952 test -n "$ac_ct_CC" && break 2953done 2954 2955 if test "x$ac_ct_CC" = x; then 2956 CC="" 2957 else 2958 case $cross_compiling:$ac_tool_warned in 2959yes:) 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2962ac_tool_warned=yes ;; 2963esac 2964 CC=$ac_ct_CC 2965 fi 2966fi 2967 2968fi 2969 2970 2971test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2973as_fn_error $? "no acceptable C compiler found in \$PATH 2974See \`config.log' for more details" "$LINENO" 5; } 2975 2976# Provide some information about the compiler. 2977$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2978set X $ac_compile 2979ac_compiler=$2 2980for ac_option in --version -v -V -qversion; do 2981 { { ac_try="$ac_compiler $ac_option >&5" 2982case "(($ac_try" in 2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2984 *) ac_try_echo=$ac_try;; 2985esac 2986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2987$as_echo "$ac_try_echo"; } >&5 2988 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2989 ac_status=$? 2990 if test -s conftest.err; then 2991 sed '10a\ 2992... rest of stderr output deleted ... 2993 10q' conftest.err >conftest.er1 2994 cat conftest.er1 >&5 2995 fi 2996 rm -f conftest.er1 conftest.err 2997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2998 test $ac_status = 0; } 2999done 3000 3001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3002/* end confdefs.h. */ 3003 3004int 3005main () 3006{ 3007 3008 ; 3009 return 0; 3010} 3011_ACEOF 3012ac_clean_files_save=$ac_clean_files 3013ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3014# Try to create an executable without -o first, disregard a.out. 3015# It will help us diagnose broken compilers, and finding out an intuition 3016# of exeext. 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3018$as_echo_n "checking whether the C compiler works... " >&6; } 3019ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3020 3021# The possible output files: 3022ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3023 3024ac_rmfiles= 3025for ac_file in $ac_files 3026do 3027 case $ac_file in 3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3029 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3030 esac 3031done 3032rm -f $ac_rmfiles 3033 3034if { { ac_try="$ac_link_default" 3035case "(($ac_try" in 3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3037 *) ac_try_echo=$ac_try;; 3038esac 3039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3040$as_echo "$ac_try_echo"; } >&5 3041 (eval "$ac_link_default") 2>&5 3042 ac_status=$? 3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3044 test $ac_status = 0; }; then : 3045 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3046# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3047# in a Makefile. We should not override ac_cv_exeext if it was cached, 3048# so that the user can short-circuit this test for compilers unknown to 3049# Autoconf. 3050for ac_file in $ac_files '' 3051do 3052 test -f "$ac_file" || continue 3053 case $ac_file in 3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3055 ;; 3056 [ab].out ) 3057 # We found the default executable, but exeext='' is most 3058 # certainly right. 3059 break;; 3060 *.* ) 3061 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3062 then :; else 3063 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3064 fi 3065 # We set ac_cv_exeext here because the later test for it is not 3066 # safe: cross compilers may not add the suffix if given an `-o' 3067 # argument, so we may need to know it at that point already. 3068 # Even if this section looks crufty: it has the advantage of 3069 # actually working. 3070 break;; 3071 * ) 3072 break;; 3073 esac 3074done 3075test "$ac_cv_exeext" = no && ac_cv_exeext= 3076 3077else 3078 ac_file='' 3079fi 3080if test -z "$ac_file"; then : 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082$as_echo "no" >&6; } 3083$as_echo "$as_me: failed program was:" >&5 3084sed 's/^/| /' conftest.$ac_ext >&5 3085 3086{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3088as_fn_error 77 "C compiler cannot create executables 3089See \`config.log' for more details" "$LINENO" 5; } 3090else 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3092$as_echo "yes" >&6; } 3093fi 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3095$as_echo_n "checking for C compiler default output file name... " >&6; } 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3097$as_echo "$ac_file" >&6; } 3098ac_exeext=$ac_cv_exeext 3099 3100rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3101ac_clean_files=$ac_clean_files_save 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3103$as_echo_n "checking for suffix of executables... " >&6; } 3104if { { ac_try="$ac_link" 3105case "(($ac_try" in 3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3107 *) ac_try_echo=$ac_try;; 3108esac 3109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3110$as_echo "$ac_try_echo"; } >&5 3111 (eval "$ac_link") 2>&5 3112 ac_status=$? 3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3114 test $ac_status = 0; }; then : 3115 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3116# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3117# work properly (i.e., refer to `conftest.exe'), while it won't with 3118# `rm'. 3119for ac_file in conftest.exe conftest conftest.*; do 3120 test -f "$ac_file" || continue 3121 case $ac_file in 3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3123 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3124 break;; 3125 * ) break;; 3126 esac 3127done 3128else 3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3131as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3132See \`config.log' for more details" "$LINENO" 5; } 3133fi 3134rm -f conftest conftest$ac_cv_exeext 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3136$as_echo "$ac_cv_exeext" >&6; } 3137 3138rm -f conftest.$ac_ext 3139EXEEXT=$ac_cv_exeext 3140ac_exeext=$EXEEXT 3141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3142/* end confdefs.h. */ 3143#include <stdio.h> 3144int 3145main () 3146{ 3147FILE *f = fopen ("conftest.out", "w"); 3148 return ferror (f) || fclose (f) != 0; 3149 3150 ; 3151 return 0; 3152} 3153_ACEOF 3154ac_clean_files="$ac_clean_files conftest.out" 3155# Check that the compiler produces executables we can run. If not, either 3156# the compiler is broken, or we cross compile. 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3158$as_echo_n "checking whether we are cross compiling... " >&6; } 3159if test "$cross_compiling" != yes; then 3160 { { ac_try="$ac_link" 3161case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3166$as_echo "$ac_try_echo"; } >&5 3167 (eval "$ac_link") 2>&5 3168 ac_status=$? 3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3170 test $ac_status = 0; } 3171 if { ac_try='./conftest$ac_cv_exeext' 3172 { { case "(($ac_try" in 3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174 *) ac_try_echo=$ac_try;; 3175esac 3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3177$as_echo "$ac_try_echo"; } >&5 3178 (eval "$ac_try") 2>&5 3179 ac_status=$? 3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3181 test $ac_status = 0; }; }; then 3182 cross_compiling=no 3183 else 3184 if test "$cross_compiling" = maybe; then 3185 cross_compiling=yes 3186 else 3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3189as_fn_error $? "cannot run C compiled programs. 3190If you meant to cross compile, use \`--host'. 3191See \`config.log' for more details" "$LINENO" 5; } 3192 fi 3193 fi 3194fi 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3196$as_echo "$cross_compiling" >&6; } 3197 3198rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3199ac_clean_files=$ac_clean_files_save 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3201$as_echo_n "checking for suffix of object files... " >&6; } 3202if ${ac_cv_objext+:} false; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3206/* end confdefs.h. */ 3207 3208int 3209main () 3210{ 3211 3212 ; 3213 return 0; 3214} 3215_ACEOF 3216rm -f conftest.o conftest.obj 3217if { { ac_try="$ac_compile" 3218case "(($ac_try" in 3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3220 *) ac_try_echo=$ac_try;; 3221esac 3222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3223$as_echo "$ac_try_echo"; } >&5 3224 (eval "$ac_compile") 2>&5 3225 ac_status=$? 3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3227 test $ac_status = 0; }; then : 3228 for ac_file in conftest.o conftest.obj conftest.*; do 3229 test -f "$ac_file" || continue; 3230 case $ac_file in 3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3232 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3233 break;; 3234 esac 3235done 3236else 3237 $as_echo "$as_me: failed program was:" >&5 3238sed 's/^/| /' conftest.$ac_ext >&5 3239 3240{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3242as_fn_error $? "cannot compute suffix of object files: cannot compile 3243See \`config.log' for more details" "$LINENO" 5; } 3244fi 3245rm -f conftest.$ac_cv_objext conftest.$ac_ext 3246fi 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3248$as_echo "$ac_cv_objext" >&6; } 3249OBJEXT=$ac_cv_objext 3250ac_objext=$OBJEXT 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3252$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3253if ${ac_cv_c_compiler_gnu+:} false; then : 3254 $as_echo_n "(cached) " >&6 3255else 3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3257/* end confdefs.h. */ 3258 3259int 3260main () 3261{ 3262#ifndef __GNUC__ 3263 choke me 3264#endif 3265 3266 ; 3267 return 0; 3268} 3269_ACEOF 3270if ac_fn_c_try_compile "$LINENO"; then : 3271 ac_compiler_gnu=yes 3272else 3273 ac_compiler_gnu=no 3274fi 3275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3276ac_cv_c_compiler_gnu=$ac_compiler_gnu 3277 3278fi 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3280$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3281if test $ac_compiler_gnu = yes; then 3282 GCC=yes 3283else 3284 GCC= 3285fi 3286ac_test_CFLAGS=${CFLAGS+set} 3287ac_save_CFLAGS=$CFLAGS 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3289$as_echo_n "checking whether $CC accepts -g... " >&6; } 3290if ${ac_cv_prog_cc_g+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292else 3293 ac_save_c_werror_flag=$ac_c_werror_flag 3294 ac_c_werror_flag=yes 3295 ac_cv_prog_cc_g=no 3296 CFLAGS="-g" 3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299 3300int 3301main () 3302{ 3303 3304 ; 3305 return 0; 3306} 3307_ACEOF 3308if ac_fn_c_try_compile "$LINENO"; then : 3309 ac_cv_prog_cc_g=yes 3310else 3311 CFLAGS="" 3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3313/* end confdefs.h. */ 3314 3315int 3316main () 3317{ 3318 3319 ; 3320 return 0; 3321} 3322_ACEOF 3323if ac_fn_c_try_compile "$LINENO"; then : 3324 3325else 3326 ac_c_werror_flag=$ac_save_c_werror_flag 3327 CFLAGS="-g" 3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3329/* end confdefs.h. */ 3330 3331int 3332main () 3333{ 3334 3335 ; 3336 return 0; 3337} 3338_ACEOF 3339if ac_fn_c_try_compile "$LINENO"; then : 3340 ac_cv_prog_cc_g=yes 3341fi 3342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3343fi 3344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3345fi 3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3347 ac_c_werror_flag=$ac_save_c_werror_flag 3348fi 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3350$as_echo "$ac_cv_prog_cc_g" >&6; } 3351if test "$ac_test_CFLAGS" = set; then 3352 CFLAGS=$ac_save_CFLAGS 3353elif test $ac_cv_prog_cc_g = yes; then 3354 if test "$GCC" = yes; then 3355 CFLAGS="-g -O2" 3356 else 3357 CFLAGS="-g" 3358 fi 3359else 3360 if test "$GCC" = yes; then 3361 CFLAGS="-O2" 3362 else 3363 CFLAGS= 3364 fi 3365fi 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3367$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3368if ${ac_cv_prog_cc_c89+:} false; then : 3369 $as_echo_n "(cached) " >&6 3370else 3371 ac_cv_prog_cc_c89=no 3372ac_save_CC=$CC 3373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3374/* end confdefs.h. */ 3375#include <stdarg.h> 3376#include <stdio.h> 3377#include <sys/types.h> 3378#include <sys/stat.h> 3379/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3380struct buf { int x; }; 3381FILE * (*rcsopen) (struct buf *, struct stat *, int); 3382static char *e (p, i) 3383 char **p; 3384 int i; 3385{ 3386 return p[i]; 3387} 3388static char *f (char * (*g) (char **, int), char **p, ...) 3389{ 3390 char *s; 3391 va_list v; 3392 va_start (v,p); 3393 s = g (p, va_arg (v,int)); 3394 va_end (v); 3395 return s; 3396} 3397 3398/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3399 function prototypes and stuff, but not '\xHH' hex character constants. 3400 These don't provoke an error unfortunately, instead are silently treated 3401 as 'x'. The following induces an error, until -std is added to get 3402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3403 array size at least. It's necessary to write '\x00'==0 to get something 3404 that's true only with -std. */ 3405int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3406 3407/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3408 inside strings and character constants. */ 3409#define FOO(x) 'x' 3410int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3411 3412int test (int i, double x); 3413struct s1 {int (*f) (int a);}; 3414struct s2 {int (*f) (double a);}; 3415int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3416int argc; 3417char **argv; 3418int 3419main () 3420{ 3421return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3427 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3428do 3429 CC="$ac_save_CC $ac_arg" 3430 if ac_fn_c_try_compile "$LINENO"; then : 3431 ac_cv_prog_cc_c89=$ac_arg 3432fi 3433rm -f core conftest.err conftest.$ac_objext 3434 test "x$ac_cv_prog_cc_c89" != "xno" && break 3435done 3436rm -f conftest.$ac_ext 3437CC=$ac_save_CC 3438 3439fi 3440# AC_CACHE_VAL 3441case "x$ac_cv_prog_cc_c89" in 3442 x) 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3444$as_echo "none needed" >&6; } ;; 3445 xno) 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3447$as_echo "unsupported" >&6; } ;; 3448 *) 3449 CC="$CC $ac_cv_prog_cc_c89" 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3451$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3452esac 3453if test "x$ac_cv_prog_cc_c89" != xno; then : 3454 3455fi 3456 3457ac_ext=c 3458ac_cpp='$CPP $CPPFLAGS' 3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3461ac_compiler_gnu=$ac_cv_c_compiler_gnu 3462 3463depcc="$CC" am_compiler_list= 3464 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3466$as_echo_n "checking dependency style of $depcc... " >&6; } 3467if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3468 $as_echo_n "(cached) " >&6 3469else 3470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3471 # We make a subdir and do the tests there. Otherwise we can end up 3472 # making bogus files that we don't know about and never remove. For 3473 # instance it was reported that on HP-UX the gcc test will end up 3474 # making a dummy file named `D' -- because `-MD' means `put the output 3475 # in D'. 3476 mkdir conftest.dir 3477 # Copy depcomp to subdir because otherwise we won't find it if we're 3478 # using a relative directory. 3479 cp "$am_depcomp" conftest.dir 3480 cd conftest.dir 3481 # We will build objects and dependencies in a subdirectory because 3482 # it helps to detect inapplicable dependency modes. For instance 3483 # both Tru64's cc and ICC support -MD to output dependencies as a 3484 # side effect of compilation, but ICC will put the dependencies in 3485 # the current directory while Tru64 will put them in the object 3486 # directory. 3487 mkdir sub 3488 3489 am_cv_CC_dependencies_compiler_type=none 3490 if test "$am_compiler_list" = ""; then 3491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3492 fi 3493 am__universal=false 3494 case " $depcc " in #( 3495 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3496 esac 3497 3498 for depmode in $am_compiler_list; do 3499 # Setup a source with many dependencies, because some compilers 3500 # like to wrap large dependency lists on column 80 (with \), and 3501 # we should not choose a depcomp mode which is confused by this. 3502 # 3503 # We need to recreate these files for each test, as the compiler may 3504 # overwrite some of them when testing with obscure command lines. 3505 # This happens at least with the AIX C compiler. 3506 : > sub/conftest.c 3507 for i in 1 2 3 4 5 6; do 3508 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3509 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3510 # Solaris 8's {/usr,}/bin/sh. 3511 touch sub/conftst$i.h 3512 done 3513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3514 3515 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3516 # mode. It turns out that the SunPro C++ compiler does not properly 3517 # handle `-M -o', and we need to detect this. Also, some Intel 3518 # versions had trouble with output in subdirs 3519 am__obj=sub/conftest.${OBJEXT-o} 3520 am__minus_obj="-o $am__obj" 3521 case $depmode in 3522 gcc) 3523 # This depmode causes a compiler race in universal mode. 3524 test "$am__universal" = false || continue 3525 ;; 3526 nosideeffect) 3527 # after this tag, mechanisms are not by side-effect, so they'll 3528 # only be used when explicitly requested 3529 if test "x$enable_dependency_tracking" = xyes; then 3530 continue 3531 else 3532 break 3533 fi 3534 ;; 3535 msvisualcpp | msvcmsys) 3536 # This compiler won't grok `-c -o', but also, the minuso test has 3537 # not run yet. These depmodes are late enough in the game, and 3538 # so weak that their functioning should not be impacted. 3539 am__obj=conftest.${OBJEXT-o} 3540 am__minus_obj= 3541 ;; 3542 none) break ;; 3543 esac 3544 if depmode=$depmode \ 3545 source=sub/conftest.c object=$am__obj \ 3546 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3547 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3548 >/dev/null 2>conftest.err && 3549 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3551 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3553 # icc doesn't choke on unknown options, it will just issue warnings 3554 # or remarks (even with -Werror). So we grep stderr for any message 3555 # that says an option was ignored or not supported. 3556 # When given -MP, icc 7.0 and 7.1 complain thusly: 3557 # icc: Command line warning: ignoring option '-M'; no argument required 3558 # The diagnosis changed in icc 8.0: 3559 # icc: Command line remark: option '-MP' not supported 3560 if (grep 'ignoring option' conftest.err || 3561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3562 am_cv_CC_dependencies_compiler_type=$depmode 3563 break 3564 fi 3565 fi 3566 done 3567 3568 cd .. 3569 rm -rf conftest.dir 3570else 3571 am_cv_CC_dependencies_compiler_type=none 3572fi 3573 3574fi 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3576$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3577CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3578 3579 if 3580 test "x$enable_dependency_tracking" != xno \ 3581 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3582 am__fastdepCC_TRUE= 3583 am__fastdepCC_FALSE='#' 3584else 3585 am__fastdepCC_TRUE='#' 3586 am__fastdepCC_FALSE= 3587fi 3588 3589 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3591$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3592if ${ac_cv_prog_cc_c99+:} false; then : 3593 $as_echo_n "(cached) " >&6 3594else 3595 ac_cv_prog_cc_c99=no 3596ac_save_CC=$CC 3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599#include <stdarg.h> 3600#include <stdbool.h> 3601#include <stdlib.h> 3602#include <wchar.h> 3603#include <stdio.h> 3604 3605// Check varargs macros. These examples are taken from C99 6.10.3.5. 3606#define debug(...) fprintf (stderr, __VA_ARGS__) 3607#define showlist(...) puts (#__VA_ARGS__) 3608#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3609static void 3610test_varargs_macros (void) 3611{ 3612 int x = 1234; 3613 int y = 5678; 3614 debug ("Flag"); 3615 debug ("X = %d\n", x); 3616 showlist (The first, second, and third items.); 3617 report (x>y, "x is %d but y is %d", x, y); 3618} 3619 3620// Check long long types. 3621#define BIG64 18446744073709551615ull 3622#define BIG32 4294967295ul 3623#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3624#if !BIG_OK 3625 your preprocessor is broken; 3626#endif 3627#if BIG_OK 3628#else 3629 your preprocessor is broken; 3630#endif 3631static long long int bignum = -9223372036854775807LL; 3632static unsigned long long int ubignum = BIG64; 3633 3634struct incomplete_array 3635{ 3636 int datasize; 3637 double data[]; 3638}; 3639 3640struct named_init { 3641 int number; 3642 const wchar_t *name; 3643 double average; 3644}; 3645 3646typedef const char *ccp; 3647 3648static inline int 3649test_restrict (ccp restrict text) 3650{ 3651 // See if C++-style comments work. 3652 // Iterate through items via the restricted pointer. 3653 // Also check for declarations in for loops. 3654 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3655 continue; 3656 return 0; 3657} 3658 3659// Check varargs and va_copy. 3660static void 3661test_varargs (const char *format, ...) 3662{ 3663 va_list args; 3664 va_start (args, format); 3665 va_list args_copy; 3666 va_copy (args_copy, args); 3667 3668 const char *str; 3669 int number; 3670 float fnumber; 3671 3672 while (*format) 3673 { 3674 switch (*format++) 3675 { 3676 case 's': // string 3677 str = va_arg (args_copy, const char *); 3678 break; 3679 case 'd': // int 3680 number = va_arg (args_copy, int); 3681 break; 3682 case 'f': // float 3683 fnumber = va_arg (args_copy, double); 3684 break; 3685 default: 3686 break; 3687 } 3688 } 3689 va_end (args_copy); 3690 va_end (args); 3691} 3692 3693int 3694main () 3695{ 3696 3697 // Check bool. 3698 _Bool success = false; 3699 3700 // Check restrict. 3701 if (test_restrict ("String literal") == 0) 3702 success = true; 3703 char *restrict newvar = "Another string"; 3704 3705 // Check varargs. 3706 test_varargs ("s, d' f .", "string", 65, 34.234); 3707 test_varargs_macros (); 3708 3709 // Check flexible array members. 3710 struct incomplete_array *ia = 3711 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3712 ia->datasize = 10; 3713 for (int i = 0; i < ia->datasize; ++i) 3714 ia->data[i] = i * 1.234; 3715 3716 // Check named initializers. 3717 struct named_init ni = { 3718 .number = 34, 3719 .name = L"Test wide string", 3720 .average = 543.34343, 3721 }; 3722 3723 ni.number = 58; 3724 3725 int dynamic_array[ni.number]; 3726 dynamic_array[ni.number - 1] = 543; 3727 3728 // work around unused variable warnings 3729 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3730 || dynamic_array[ni.number - 1] != 543); 3731 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3737do 3738 CC="$ac_save_CC $ac_arg" 3739 if ac_fn_c_try_compile "$LINENO"; then : 3740 ac_cv_prog_cc_c99=$ac_arg 3741fi 3742rm -f core conftest.err conftest.$ac_objext 3743 test "x$ac_cv_prog_cc_c99" != "xno" && break 3744done 3745rm -f conftest.$ac_ext 3746CC=$ac_save_CC 3747 3748fi 3749# AC_CACHE_VAL 3750case "x$ac_cv_prog_cc_c99" in 3751 x) 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3753$as_echo "none needed" >&6; } ;; 3754 xno) 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3756$as_echo "unsupported" >&6; } ;; 3757 *) 3758 CC="$CC $ac_cv_prog_cc_c99" 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3760$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3761esac 3762if test "x$ac_cv_prog_cc_c99" != xno; then : 3763 3764fi 3765 3766 3767 3768ac_ext=c 3769ac_cpp='$CPP $CPPFLAGS' 3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3772ac_compiler_gnu=$ac_cv_c_compiler_gnu 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3774$as_echo_n "checking how to run the C preprocessor... " >&6; } 3775# On Suns, sometimes $CPP names a directory. 3776if test -n "$CPP" && test -d "$CPP"; then 3777 CPP= 3778fi 3779if test -z "$CPP"; then 3780 if ${ac_cv_prog_CPP+:} false; then : 3781 $as_echo_n "(cached) " >&6 3782else 3783 # Double quotes because CPP needs to be expanded 3784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3785 do 3786 ac_preproc_ok=false 3787for ac_c_preproc_warn_flag in '' yes 3788do 3789 # Use a header file that comes with gcc, so configuring glibc 3790 # with a fresh cross-compiler works. 3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3792 # <limits.h> exists even on freestanding compilers. 3793 # On the NeXT, cc -E runs the code through the compiler's parser, 3794 # not just through cpp. "Syntax error" is here to catch this case. 3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3796/* end confdefs.h. */ 3797#ifdef __STDC__ 3798# include <limits.h> 3799#else 3800# include <assert.h> 3801#endif 3802 Syntax error 3803_ACEOF 3804if ac_fn_c_try_cpp "$LINENO"; then : 3805 3806else 3807 # Broken: fails on valid input. 3808continue 3809fi 3810rm -f conftest.err conftest.i conftest.$ac_ext 3811 3812 # OK, works on sane cases. Now check whether nonexistent headers 3813 # can be detected and how. 3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3815/* end confdefs.h. */ 3816#include <ac_nonexistent.h> 3817_ACEOF 3818if ac_fn_c_try_cpp "$LINENO"; then : 3819 # Broken: success on invalid input. 3820continue 3821else 3822 # Passes both tests. 3823ac_preproc_ok=: 3824break 3825fi 3826rm -f conftest.err conftest.i conftest.$ac_ext 3827 3828done 3829# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3830rm -f conftest.i conftest.err conftest.$ac_ext 3831if $ac_preproc_ok; then : 3832 break 3833fi 3834 3835 done 3836 ac_cv_prog_CPP=$CPP 3837 3838fi 3839 CPP=$ac_cv_prog_CPP 3840else 3841 ac_cv_prog_CPP=$CPP 3842fi 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3844$as_echo "$CPP" >&6; } 3845ac_preproc_ok=false 3846for ac_c_preproc_warn_flag in '' yes 3847do 3848 # Use a header file that comes with gcc, so configuring glibc 3849 # with a fresh cross-compiler works. 3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3851 # <limits.h> exists even on freestanding compilers. 3852 # On the NeXT, cc -E runs the code through the compiler's parser, 3853 # not just through cpp. "Syntax error" is here to catch this case. 3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3855/* end confdefs.h. */ 3856#ifdef __STDC__ 3857# include <limits.h> 3858#else 3859# include <assert.h> 3860#endif 3861 Syntax error 3862_ACEOF 3863if ac_fn_c_try_cpp "$LINENO"; then : 3864 3865else 3866 # Broken: fails on valid input. 3867continue 3868fi 3869rm -f conftest.err conftest.i conftest.$ac_ext 3870 3871 # OK, works on sane cases. Now check whether nonexistent headers 3872 # can be detected and how. 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3874/* end confdefs.h. */ 3875#include <ac_nonexistent.h> 3876_ACEOF 3877if ac_fn_c_try_cpp "$LINENO"; then : 3878 # Broken: success on invalid input. 3879continue 3880else 3881 # Passes both tests. 3882ac_preproc_ok=: 3883break 3884fi 3885rm -f conftest.err conftest.i conftest.$ac_ext 3886 3887done 3888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3889rm -f conftest.i conftest.err conftest.$ac_ext 3890if $ac_preproc_ok; then : 3891 3892else 3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3895as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3896See \`config.log' for more details" "$LINENO" 5; } 3897fi 3898 3899ac_ext=c 3900ac_cpp='$CPP $CPPFLAGS' 3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3903ac_compiler_gnu=$ac_cv_c_compiler_gnu 3904 3905 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3907$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3908if ${ac_cv_path_GREP+:} false; then : 3909 $as_echo_n "(cached) " >&6 3910else 3911 if test -z "$GREP"; then 3912 ac_path_GREP_found=false 3913 # Loop through the user's path and test for each of PROGNAME-LIST 3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3915for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3916do 3917 IFS=$as_save_IFS 3918 test -z "$as_dir" && as_dir=. 3919 for ac_prog in grep ggrep; do 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3922 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3923# Check for GNU ac_path_GREP and select it if it is found. 3924 # Check for GNU $ac_path_GREP 3925case `"$ac_path_GREP" --version 2>&1` in 3926*GNU*) 3927 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3928*) 3929 ac_count=0 3930 $as_echo_n 0123456789 >"conftest.in" 3931 while : 3932 do 3933 cat "conftest.in" "conftest.in" >"conftest.tmp" 3934 mv "conftest.tmp" "conftest.in" 3935 cp "conftest.in" "conftest.nl" 3936 $as_echo 'GREP' >> "conftest.nl" 3937 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3939 as_fn_arith $ac_count + 1 && ac_count=$as_val 3940 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3941 # Best one so far, save it but keep looking for a better one 3942 ac_cv_path_GREP="$ac_path_GREP" 3943 ac_path_GREP_max=$ac_count 3944 fi 3945 # 10*(2^10) chars as input seems more than enough 3946 test $ac_count -gt 10 && break 3947 done 3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3949esac 3950 3951 $ac_path_GREP_found && break 3 3952 done 3953 done 3954 done 3955IFS=$as_save_IFS 3956 if test -z "$ac_cv_path_GREP"; then 3957 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3958 fi 3959else 3960 ac_cv_path_GREP=$GREP 3961fi 3962 3963fi 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3965$as_echo "$ac_cv_path_GREP" >&6; } 3966 GREP="$ac_cv_path_GREP" 3967 3968 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3970$as_echo_n "checking for egrep... " >&6; } 3971if ${ac_cv_path_EGREP+:} false; then : 3972 $as_echo_n "(cached) " >&6 3973else 3974 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3975 then ac_cv_path_EGREP="$GREP -E" 3976 else 3977 if test -z "$EGREP"; then 3978 ac_path_EGREP_found=false 3979 # Loop through the user's path and test for each of PROGNAME-LIST 3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3981for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3982do 3983 IFS=$as_save_IFS 3984 test -z "$as_dir" && as_dir=. 3985 for ac_prog in egrep; do 3986 for ac_exec_ext in '' $ac_executable_extensions; do 3987 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3988 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3989# Check for GNU ac_path_EGREP and select it if it is found. 3990 # Check for GNU $ac_path_EGREP 3991case `"$ac_path_EGREP" --version 2>&1` in 3992*GNU*) 3993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3994*) 3995 ac_count=0 3996 $as_echo_n 0123456789 >"conftest.in" 3997 while : 3998 do 3999 cat "conftest.in" "conftest.in" >"conftest.tmp" 4000 mv "conftest.tmp" "conftest.in" 4001 cp "conftest.in" "conftest.nl" 4002 $as_echo 'EGREP' >> "conftest.nl" 4003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4005 as_fn_arith $ac_count + 1 && ac_count=$as_val 4006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4007 # Best one so far, save it but keep looking for a better one 4008 ac_cv_path_EGREP="$ac_path_EGREP" 4009 ac_path_EGREP_max=$ac_count 4010 fi 4011 # 10*(2^10) chars as input seems more than enough 4012 test $ac_count -gt 10 && break 4013 done 4014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4015esac 4016 4017 $ac_path_EGREP_found && break 3 4018 done 4019 done 4020 done 4021IFS=$as_save_IFS 4022 if test -z "$ac_cv_path_EGREP"; then 4023 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4024 fi 4025else 4026 ac_cv_path_EGREP=$EGREP 4027fi 4028 4029 fi 4030fi 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4032$as_echo "$ac_cv_path_EGREP" >&6; } 4033 EGREP="$ac_cv_path_EGREP" 4034 4035 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4037$as_echo_n "checking for ANSI C header files... " >&6; } 4038if ${ac_cv_header_stdc+:} false; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4042/* end confdefs.h. */ 4043#include <stdlib.h> 4044#include <stdarg.h> 4045#include <string.h> 4046#include <float.h> 4047 4048int 4049main () 4050{ 4051 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056if ac_fn_c_try_compile "$LINENO"; then : 4057 ac_cv_header_stdc=yes 4058else 4059 ac_cv_header_stdc=no 4060fi 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062 4063if test $ac_cv_header_stdc = yes; then 4064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4066/* end confdefs.h. */ 4067#include <string.h> 4068 4069_ACEOF 4070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4071 $EGREP "memchr" >/dev/null 2>&1; then : 4072 4073else 4074 ac_cv_header_stdc=no 4075fi 4076rm -f conftest* 4077 4078fi 4079 4080if test $ac_cv_header_stdc = yes; then 4081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4083/* end confdefs.h. */ 4084#include <stdlib.h> 4085 4086_ACEOF 4087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4088 $EGREP "free" >/dev/null 2>&1; then : 4089 4090else 4091 ac_cv_header_stdc=no 4092fi 4093rm -f conftest* 4094 4095fi 4096 4097if test $ac_cv_header_stdc = yes; then 4098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4099 if test "$cross_compiling" = yes; then : 4100 : 4101else 4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4103/* end confdefs.h. */ 4104#include <ctype.h> 4105#include <stdlib.h> 4106#if ((' ' & 0x0FF) == 0x020) 4107# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4108# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4109#else 4110# define ISLOWER(c) \ 4111 (('a' <= (c) && (c) <= 'i') \ 4112 || ('j' <= (c) && (c) <= 'r') \ 4113 || ('s' <= (c) && (c) <= 'z')) 4114# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4115#endif 4116 4117#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4118int 4119main () 4120{ 4121 int i; 4122 for (i = 0; i < 256; i++) 4123 if (XOR (islower (i), ISLOWER (i)) 4124 || toupper (i) != TOUPPER (i)) 4125 return 2; 4126 return 0; 4127} 4128_ACEOF 4129if ac_fn_c_try_run "$LINENO"; then : 4130 4131else 4132 ac_cv_header_stdc=no 4133fi 4134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4135 conftest.$ac_objext conftest.beam conftest.$ac_ext 4136fi 4137 4138fi 4139fi 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4141$as_echo "$ac_cv_header_stdc" >&6; } 4142if test $ac_cv_header_stdc = yes; then 4143 4144$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4145 4146fi 4147 4148# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4149for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4150 inttypes.h stdint.h unistd.h 4151do : 4152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4153ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4154" 4155if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4156 cat >>confdefs.h <<_ACEOF 4157#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4158_ACEOF 4159 4160fi 4161 4162done 4163 4164 4165 4166 4167ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4168if test "x$ac_cv_have_decl___clang__" = xyes; then : 4169 CLANGCC="yes" 4170else 4171 CLANGCC="no" 4172fi 4173 4174ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4175if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4176 INTELCC="yes" 4177else 4178 INTELCC="no" 4179fi 4180 4181ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4182if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4183 SUNCC="yes" 4184else 4185 SUNCC="no" 4186fi 4187 4188 4189 4190 4191if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4192 if test -n "$ac_tool_prefix"; then 4193 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4194set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4196$as_echo_n "checking for $ac_word... " >&6; } 4197if ${ac_cv_path_PKG_CONFIG+:} false; then : 4198 $as_echo_n "(cached) " >&6 4199else 4200 case $PKG_CONFIG in 4201 [\\/]* | ?:[\\/]*) 4202 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4203 ;; 4204 *) 4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4206for as_dir in $PATH 4207do 4208 IFS=$as_save_IFS 4209 test -z "$as_dir" && as_dir=. 4210 for ac_exec_ext in '' $ac_executable_extensions; do 4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4212 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4214 break 2 4215 fi 4216done 4217 done 4218IFS=$as_save_IFS 4219 4220 ;; 4221esac 4222fi 4223PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4224if test -n "$PKG_CONFIG"; then 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4226$as_echo "$PKG_CONFIG" >&6; } 4227else 4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4229$as_echo "no" >&6; } 4230fi 4231 4232 4233fi 4234if test -z "$ac_cv_path_PKG_CONFIG"; then 4235 ac_pt_PKG_CONFIG=$PKG_CONFIG 4236 # Extract the first word of "pkg-config", so it can be a program name with args. 4237set dummy pkg-config; ac_word=$2 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4239$as_echo_n "checking for $ac_word... " >&6; } 4240if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4241 $as_echo_n "(cached) " >&6 4242else 4243 case $ac_pt_PKG_CONFIG in 4244 [\\/]* | ?:[\\/]*) 4245 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4246 ;; 4247 *) 4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4249for as_dir in $PATH 4250do 4251 IFS=$as_save_IFS 4252 test -z "$as_dir" && as_dir=. 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4255 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4257 break 2 4258 fi 4259done 4260 done 4261IFS=$as_save_IFS 4262 4263 ;; 4264esac 4265fi 4266ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4267if test -n "$ac_pt_PKG_CONFIG"; then 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4269$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4270else 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4272$as_echo "no" >&6; } 4273fi 4274 4275 if test "x$ac_pt_PKG_CONFIG" = x; then 4276 PKG_CONFIG="" 4277 else 4278 case $cross_compiling:$ac_tool_warned in 4279yes:) 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4282ac_tool_warned=yes ;; 4283esac 4284 PKG_CONFIG=$ac_pt_PKG_CONFIG 4285 fi 4286else 4287 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4288fi 4289 4290fi 4291if test -n "$PKG_CONFIG"; then 4292 _pkg_min_version=0.9.0 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4294$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4295 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4297$as_echo "yes" >&6; } 4298 else 4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4300$as_echo "no" >&6; } 4301 PKG_CONFIG="" 4302 fi 4303 4304fi 4305# Make sure we can run config.sub. 4306$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4307 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4308 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4310$as_echo_n "checking build system type... " >&6; } 4311if ${ac_cv_build+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 ac_build_alias=$build_alias 4315test "x$ac_build_alias" = x && 4316 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4317test "x$ac_build_alias" = x && 4318 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4319ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4320 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4321 4322fi 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4324$as_echo "$ac_cv_build" >&6; } 4325case $ac_cv_build in 4326*-*-*) ;; 4327*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4328esac 4329build=$ac_cv_build 4330ac_save_IFS=$IFS; IFS='-' 4331set x $ac_cv_build 4332shift 4333build_cpu=$1 4334build_vendor=$2 4335shift; shift 4336# Remember, the first character of IFS is used to create $*, 4337# except with old shells: 4338build_os=$* 4339IFS=$ac_save_IFS 4340case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4341 4342 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4344$as_echo_n "checking host system type... " >&6; } 4345if ${ac_cv_host+:} false; then : 4346 $as_echo_n "(cached) " >&6 4347else 4348 if test "x$host_alias" = x; then 4349 ac_cv_host=$ac_cv_build 4350else 4351 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4352 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4353fi 4354 4355fi 4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4357$as_echo "$ac_cv_host" >&6; } 4358case $ac_cv_host in 4359*-*-*) ;; 4360*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4361esac 4362host=$ac_cv_host 4363ac_save_IFS=$IFS; IFS='-' 4364set x $ac_cv_host 4365shift 4366host_cpu=$1 4367host_vendor=$2 4368shift; shift 4369# Remember, the first character of IFS is used to create $*, 4370# except with old shells: 4371host_os=$* 4372IFS=$ac_save_IFS 4373case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4374 4375 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4377$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4378if ${ac_cv_path_SED+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4382 for ac_i in 1 2 3 4 5 6 7; do 4383 ac_script="$ac_script$as_nl$ac_script" 4384 done 4385 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4386 { ac_script=; unset ac_script;} 4387 if test -z "$SED"; then 4388 ac_path_SED_found=false 4389 # Loop through the user's path and test for each of PROGNAME-LIST 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4391for as_dir in $PATH 4392do 4393 IFS=$as_save_IFS 4394 test -z "$as_dir" && as_dir=. 4395 for ac_prog in sed gsed; do 4396 for ac_exec_ext in '' $ac_executable_extensions; do 4397 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4398 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4399# Check for GNU ac_path_SED and select it if it is found. 4400 # Check for GNU $ac_path_SED 4401case `"$ac_path_SED" --version 2>&1` in 4402*GNU*) 4403 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4404*) 4405 ac_count=0 4406 $as_echo_n 0123456789 >"conftest.in" 4407 while : 4408 do 4409 cat "conftest.in" "conftest.in" >"conftest.tmp" 4410 mv "conftest.tmp" "conftest.in" 4411 cp "conftest.in" "conftest.nl" 4412 $as_echo '' >> "conftest.nl" 4413 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4415 as_fn_arith $ac_count + 1 && ac_count=$as_val 4416 if test $ac_count -gt ${ac_path_SED_max-0}; then 4417 # Best one so far, save it but keep looking for a better one 4418 ac_cv_path_SED="$ac_path_SED" 4419 ac_path_SED_max=$ac_count 4420 fi 4421 # 10*(2^10) chars as input seems more than enough 4422 test $ac_count -gt 10 && break 4423 done 4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4425esac 4426 4427 $ac_path_SED_found && break 3 4428 done 4429 done 4430 done 4431IFS=$as_save_IFS 4432 if test -z "$ac_cv_path_SED"; then 4433 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4434 fi 4435else 4436 ac_cv_path_SED=$SED 4437fi 4438 4439fi 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4441$as_echo "$ac_cv_path_SED" >&6; } 4442 SED="$ac_cv_path_SED" 4443 rm -f conftest.sed 4444 4445 4446 4447 4448 4449 4450# Check whether --enable-selective-werror was given. 4451if test "${enable_selective_werror+set}" = set; then : 4452 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4453else 4454 SELECTIVE_WERROR=yes 4455fi 4456 4457 4458# -v is too short to test reliably with XORG_TESTSET_CFLAG 4459if test "x$SUNCC" = "xyes"; then 4460 BASE_CFLAGS="-v" 4461else 4462 BASE_CFLAGS="" 4463fi 4464 4465# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4466 4467 4468 4469 4470 4471xorg_testset_save_CFLAGS="$CFLAGS" 4472 4473if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4478 $as_echo_n "(cached) " >&6 4479else 4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4481/* end confdefs.h. */ 4482int i; 4483_ACEOF 4484if ac_fn_c_try_compile "$LINENO"; then : 4485 xorg_cv_cc_flag_unknown_warning_option=yes 4486else 4487 xorg_cv_cc_flag_unknown_warning_option=no 4488fi 4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4490fi 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4493 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4494 CFLAGS="$xorg_testset_save_CFLAGS" 4495fi 4496 4497if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4500 fi 4501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4505 $as_echo_n "(cached) " >&6 4506else 4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4508/* end confdefs.h. */ 4509int i; 4510_ACEOF 4511if ac_fn_c_try_compile "$LINENO"; then : 4512 xorg_cv_cc_flag_unused_command_line_argument=yes 4513else 4514 xorg_cv_cc_flag_unused_command_line_argument=no 4515fi 4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4517fi 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4520 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4521 CFLAGS="$xorg_testset_save_CFLAGS" 4522fi 4523 4524found="no" 4525 4526 if test $found = "no" ; then 4527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4529 fi 4530 4531 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4533 fi 4534 4535 CFLAGS="$CFLAGS -Wall" 4536 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4538$as_echo_n "checking if $CC supports -Wall... " >&6; } 4539 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall` 4540 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4544/* end confdefs.h. */ 4545int i; 4546int 4547main () 4548{ 4549 4550 ; 4551 return 0; 4552} 4553_ACEOF 4554if ac_fn_c_try_link "$LINENO"; then : 4555 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4556else 4557 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4558fi 4559rm -f core conftest.err conftest.$ac_objext \ 4560 conftest$ac_exeext conftest.$ac_ext 4561fi 4562 4563 4564 CFLAGS="$xorg_testset_save_CFLAGS" 4565 4566 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4568$as_echo "$supported" >&6; } 4569 if test "$supported" = "yes" ; then 4570 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4571 found="yes" 4572 fi 4573 fi 4574 4575 4576 4577 4578 4579 4580 4581xorg_testset_save_CFLAGS="$CFLAGS" 4582 4583if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4591/* end confdefs.h. */ 4592int i; 4593_ACEOF 4594if ac_fn_c_try_compile "$LINENO"; then : 4595 xorg_cv_cc_flag_unknown_warning_option=yes 4596else 4597 xorg_cv_cc_flag_unknown_warning_option=no 4598fi 4599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4600fi 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4603 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4604 CFLAGS="$xorg_testset_save_CFLAGS" 4605fi 4606 4607if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4608 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4610 fi 4611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4615 $as_echo_n "(cached) " >&6 4616else 4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4618/* end confdefs.h. */ 4619int i; 4620_ACEOF 4621if ac_fn_c_try_compile "$LINENO"; then : 4622 xorg_cv_cc_flag_unused_command_line_argument=yes 4623else 4624 xorg_cv_cc_flag_unused_command_line_argument=no 4625fi 4626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4627fi 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4630 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4631 CFLAGS="$xorg_testset_save_CFLAGS" 4632fi 4633 4634found="no" 4635 4636 if test $found = "no" ; then 4637 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4639 fi 4640 4641 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4643 fi 4644 4645 CFLAGS="$CFLAGS -Wpointer-arith" 4646 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4648$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4649 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith` 4650 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4651 $as_echo_n "(cached) " >&6 4652else 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4654/* end confdefs.h. */ 4655int i; 4656int 4657main () 4658{ 4659 4660 ; 4661 return 0; 4662} 4663_ACEOF 4664if ac_fn_c_try_link "$LINENO"; then : 4665 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4666else 4667 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4668fi 4669rm -f core conftest.err conftest.$ac_objext \ 4670 conftest$ac_exeext conftest.$ac_ext 4671fi 4672 4673 4674 CFLAGS="$xorg_testset_save_CFLAGS" 4675 4676 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4678$as_echo "$supported" >&6; } 4679 if test "$supported" = "yes" ; then 4680 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4681 found="yes" 4682 fi 4683 fi 4684 4685 4686 4687 4688 4689 4690 4691xorg_testset_save_CFLAGS="$CFLAGS" 4692 4693if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4696$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4697if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4698 $as_echo_n "(cached) " >&6 4699else 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702int i; 4703_ACEOF 4704if ac_fn_c_try_compile "$LINENO"; then : 4705 xorg_cv_cc_flag_unknown_warning_option=yes 4706else 4707 xorg_cv_cc_flag_unknown_warning_option=no 4708fi 4709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4710fi 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4712$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4713 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4714 CFLAGS="$xorg_testset_save_CFLAGS" 4715fi 4716 4717if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4720 fi 4721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4723$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4724if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4725 $as_echo_n "(cached) " >&6 4726else 4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4728/* end confdefs.h. */ 4729int i; 4730_ACEOF 4731if ac_fn_c_try_compile "$LINENO"; then : 4732 xorg_cv_cc_flag_unused_command_line_argument=yes 4733else 4734 xorg_cv_cc_flag_unused_command_line_argument=no 4735fi 4736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4737fi 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4739$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4740 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4741 CFLAGS="$xorg_testset_save_CFLAGS" 4742fi 4743 4744found="no" 4745 4746 if test $found = "no" ; then 4747 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4749 fi 4750 4751 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4753 fi 4754 4755 CFLAGS="$CFLAGS -Wstrict-prototypes" 4756 4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4758$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 4759 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes` 4760 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4761 $as_echo_n "(cached) " >&6 4762else 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4764/* end confdefs.h. */ 4765int i; 4766int 4767main () 4768{ 4769 4770 ; 4771 return 0; 4772} 4773_ACEOF 4774if ac_fn_c_try_link "$LINENO"; then : 4775 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4776else 4777 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4778fi 4779rm -f core conftest.err conftest.$ac_objext \ 4780 conftest$ac_exeext conftest.$ac_ext 4781fi 4782 4783 4784 CFLAGS="$xorg_testset_save_CFLAGS" 4785 4786 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4788$as_echo "$supported" >&6; } 4789 if test "$supported" = "yes" ; then 4790 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4791 found="yes" 4792 fi 4793 fi 4794 4795 4796 4797 4798 4799 4800 4801xorg_testset_save_CFLAGS="$CFLAGS" 4802 4803if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4808 $as_echo_n "(cached) " >&6 4809else 4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4811/* end confdefs.h. */ 4812int i; 4813_ACEOF 4814if ac_fn_c_try_compile "$LINENO"; then : 4815 xorg_cv_cc_flag_unknown_warning_option=yes 4816else 4817 xorg_cv_cc_flag_unknown_warning_option=no 4818fi 4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4820fi 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4823 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4824 CFLAGS="$xorg_testset_save_CFLAGS" 4825fi 4826 4827if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4830 fi 4831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4835 $as_echo_n "(cached) " >&6 4836else 4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4838/* end confdefs.h. */ 4839int i; 4840_ACEOF 4841if ac_fn_c_try_compile "$LINENO"; then : 4842 xorg_cv_cc_flag_unused_command_line_argument=yes 4843else 4844 xorg_cv_cc_flag_unused_command_line_argument=no 4845fi 4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4847fi 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4850 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4851 CFLAGS="$xorg_testset_save_CFLAGS" 4852fi 4853 4854found="no" 4855 4856 if test $found = "no" ; then 4857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4859 fi 4860 4861 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4863 fi 4864 4865 CFLAGS="$CFLAGS -Wmissing-prototypes" 4866 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 4868$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 4869 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes` 4870 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4871 $as_echo_n "(cached) " >&6 4872else 4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4874/* end confdefs.h. */ 4875int i; 4876int 4877main () 4878{ 4879 4880 ; 4881 return 0; 4882} 4883_ACEOF 4884if ac_fn_c_try_link "$LINENO"; then : 4885 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4886else 4887 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4888fi 4889rm -f core conftest.err conftest.$ac_objext \ 4890 conftest$ac_exeext conftest.$ac_ext 4891fi 4892 4893 4894 CFLAGS="$xorg_testset_save_CFLAGS" 4895 4896 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4898$as_echo "$supported" >&6; } 4899 if test "$supported" = "yes" ; then 4900 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 4901 found="yes" 4902 fi 4903 fi 4904 4905 4906 4907 4908 4909 4910 4911xorg_testset_save_CFLAGS="$CFLAGS" 4912 4913if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4921/* end confdefs.h. */ 4922int i; 4923_ACEOF 4924if ac_fn_c_try_compile "$LINENO"; then : 4925 xorg_cv_cc_flag_unknown_warning_option=yes 4926else 4927 xorg_cv_cc_flag_unknown_warning_option=no 4928fi 4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4930fi 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4933 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4934 CFLAGS="$xorg_testset_save_CFLAGS" 4935fi 4936 4937if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4938 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4940 fi 4941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4945 $as_echo_n "(cached) " >&6 4946else 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948/* end confdefs.h. */ 4949int i; 4950_ACEOF 4951if ac_fn_c_try_compile "$LINENO"; then : 4952 xorg_cv_cc_flag_unused_command_line_argument=yes 4953else 4954 xorg_cv_cc_flag_unused_command_line_argument=no 4955fi 4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4957fi 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4960 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4961 CFLAGS="$xorg_testset_save_CFLAGS" 4962fi 4963 4964found="no" 4965 4966 if test $found = "no" ; then 4967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4969 fi 4970 4971 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4973 fi 4974 4975 CFLAGS="$CFLAGS -Wmissing-declarations" 4976 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4978$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4979 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations` 4980 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4981 $as_echo_n "(cached) " >&6 4982else 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985int i; 4986int 4987main () 4988{ 4989 4990 ; 4991 return 0; 4992} 4993_ACEOF 4994if ac_fn_c_try_link "$LINENO"; then : 4995 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4996else 4997 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4998fi 4999rm -f core conftest.err conftest.$ac_objext \ 5000 conftest$ac_exeext conftest.$ac_ext 5001fi 5002 5003 5004 CFLAGS="$xorg_testset_save_CFLAGS" 5005 5006 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5008$as_echo "$supported" >&6; } 5009 if test "$supported" = "yes" ; then 5010 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5011 found="yes" 5012 fi 5013 fi 5014 5015 5016 5017 5018 5019 5020 5021xorg_testset_save_CFLAGS="$CFLAGS" 5022 5023if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5028 $as_echo_n "(cached) " >&6 5029else 5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5031/* end confdefs.h. */ 5032int i; 5033_ACEOF 5034if ac_fn_c_try_compile "$LINENO"; then : 5035 xorg_cv_cc_flag_unknown_warning_option=yes 5036else 5037 xorg_cv_cc_flag_unknown_warning_option=no 5038fi 5039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5040fi 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5043 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5044 CFLAGS="$xorg_testset_save_CFLAGS" 5045fi 5046 5047if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5050 fi 5051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5058/* end confdefs.h. */ 5059int i; 5060_ACEOF 5061if ac_fn_c_try_compile "$LINENO"; then : 5062 xorg_cv_cc_flag_unused_command_line_argument=yes 5063else 5064 xorg_cv_cc_flag_unused_command_line_argument=no 5065fi 5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5067fi 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5070 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5071 CFLAGS="$xorg_testset_save_CFLAGS" 5072fi 5073 5074found="no" 5075 5076 if test $found = "no" ; then 5077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5079 fi 5080 5081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5083 fi 5084 5085 CFLAGS="$CFLAGS -Wnested-externs" 5086 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5088$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5089 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs` 5090 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5094/* end confdefs.h. */ 5095int i; 5096int 5097main () 5098{ 5099 5100 ; 5101 return 0; 5102} 5103_ACEOF 5104if ac_fn_c_try_link "$LINENO"; then : 5105 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5106else 5107 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5108fi 5109rm -f core conftest.err conftest.$ac_objext \ 5110 conftest$ac_exeext conftest.$ac_ext 5111fi 5112 5113 5114 CFLAGS="$xorg_testset_save_CFLAGS" 5115 5116 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5118$as_echo "$supported" >&6; } 5119 if test "$supported" = "yes" ; then 5120 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5121 found="yes" 5122 fi 5123 fi 5124 5125 5126 5127 5128 5129 5130 5131xorg_testset_save_CFLAGS="$CFLAGS" 5132 5133if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139else 5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141/* end confdefs.h. */ 5142int i; 5143_ACEOF 5144if ac_fn_c_try_compile "$LINENO"; then : 5145 xorg_cv_cc_flag_unknown_warning_option=yes 5146else 5147 xorg_cv_cc_flag_unknown_warning_option=no 5148fi 5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5150fi 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5153 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5154 CFLAGS="$xorg_testset_save_CFLAGS" 5155fi 5156 5157if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5158 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5160 fi 5161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5168/* end confdefs.h. */ 5169int i; 5170_ACEOF 5171if ac_fn_c_try_compile "$LINENO"; then : 5172 xorg_cv_cc_flag_unused_command_line_argument=yes 5173else 5174 xorg_cv_cc_flag_unused_command_line_argument=no 5175fi 5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5177fi 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5180 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5181 CFLAGS="$xorg_testset_save_CFLAGS" 5182fi 5183 5184found="no" 5185 5186 if test $found = "no" ; then 5187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5189 fi 5190 5191 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5193 fi 5194 5195 CFLAGS="$CFLAGS -Wbad-function-cast" 5196 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5198$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5199 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast` 5200 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5201 $as_echo_n "(cached) " >&6 5202else 5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204/* end confdefs.h. */ 5205int i; 5206int 5207main () 5208{ 5209 5210 ; 5211 return 0; 5212} 5213_ACEOF 5214if ac_fn_c_try_link "$LINENO"; then : 5215 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5216else 5217 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5218fi 5219rm -f core conftest.err conftest.$ac_objext \ 5220 conftest$ac_exeext conftest.$ac_ext 5221fi 5222 5223 5224 CFLAGS="$xorg_testset_save_CFLAGS" 5225 5226 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5228$as_echo "$supported" >&6; } 5229 if test "$supported" = "yes" ; then 5230 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5231 found="yes" 5232 fi 5233 fi 5234 5235 5236 5237 5238 5239 5240 5241xorg_testset_save_CFLAGS="$CFLAGS" 5242 5243if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5248 $as_echo_n "(cached) " >&6 5249else 5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5251/* end confdefs.h. */ 5252int i; 5253_ACEOF 5254if ac_fn_c_try_compile "$LINENO"; then : 5255 xorg_cv_cc_flag_unknown_warning_option=yes 5256else 5257 xorg_cv_cc_flag_unknown_warning_option=no 5258fi 5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5260fi 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5263 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5264 CFLAGS="$xorg_testset_save_CFLAGS" 5265fi 5266 5267if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5268 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5270 fi 5271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5275 $as_echo_n "(cached) " >&6 5276else 5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278/* end confdefs.h. */ 5279int i; 5280_ACEOF 5281if ac_fn_c_try_compile "$LINENO"; then : 5282 xorg_cv_cc_flag_unused_command_line_argument=yes 5283else 5284 xorg_cv_cc_flag_unused_command_line_argument=no 5285fi 5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5287fi 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5290 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5291 CFLAGS="$xorg_testset_save_CFLAGS" 5292fi 5293 5294found="no" 5295 5296 if test $found = "no" ; then 5297 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5299 fi 5300 5301 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5303 fi 5304 5305 CFLAGS="$CFLAGS -Wformat=2" 5306 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5308$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5309 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2` 5310 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315int i; 5316int 5317main () 5318{ 5319 5320 ; 5321 return 0; 5322} 5323_ACEOF 5324if ac_fn_c_try_link "$LINENO"; then : 5325 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5326else 5327 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5328fi 5329rm -f core conftest.err conftest.$ac_objext \ 5330 conftest$ac_exeext conftest.$ac_ext 5331fi 5332 5333 5334 CFLAGS="$xorg_testset_save_CFLAGS" 5335 5336 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5338$as_echo "$supported" >&6; } 5339 if test "$supported" = "yes" ; then 5340 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5341 found="yes" 5342 fi 5343 fi 5344 5345 if test $found = "no" ; then 5346 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5348 fi 5349 5350 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5352 fi 5353 5354 CFLAGS="$CFLAGS -Wformat" 5355 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5357$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5358 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat` 5359 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5360 $as_echo_n "(cached) " >&6 5361else 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5363/* end confdefs.h. */ 5364int i; 5365int 5366main () 5367{ 5368 5369 ; 5370 return 0; 5371} 5372_ACEOF 5373if ac_fn_c_try_link "$LINENO"; then : 5374 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5375else 5376 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5377fi 5378rm -f core conftest.err conftest.$ac_objext \ 5379 conftest$ac_exeext conftest.$ac_ext 5380fi 5381 5382 5383 CFLAGS="$xorg_testset_save_CFLAGS" 5384 5385 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5387$as_echo "$supported" >&6; } 5388 if test "$supported" = "yes" ; then 5389 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5390 found="yes" 5391 fi 5392 fi 5393 5394 5395 5396 5397 5398 5399 5400xorg_testset_save_CFLAGS="$CFLAGS" 5401 5402if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5410/* end confdefs.h. */ 5411int i; 5412_ACEOF 5413if ac_fn_c_try_compile "$LINENO"; then : 5414 xorg_cv_cc_flag_unknown_warning_option=yes 5415else 5416 xorg_cv_cc_flag_unknown_warning_option=no 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5419fi 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5422 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5423 CFLAGS="$xorg_testset_save_CFLAGS" 5424fi 5425 5426if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5427 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5429 fi 5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437/* end confdefs.h. */ 5438int i; 5439_ACEOF 5440if ac_fn_c_try_compile "$LINENO"; then : 5441 xorg_cv_cc_flag_unused_command_line_argument=yes 5442else 5443 xorg_cv_cc_flag_unused_command_line_argument=no 5444fi 5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5446fi 5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5449 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5450 CFLAGS="$xorg_testset_save_CFLAGS" 5451fi 5452 5453found="no" 5454 5455 if test $found = "no" ; then 5456 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5458 fi 5459 5460 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5462 fi 5463 5464 CFLAGS="$CFLAGS -Wold-style-definition" 5465 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5467$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5468 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition` 5469 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5473/* end confdefs.h. */ 5474int i; 5475int 5476main () 5477{ 5478 5479 ; 5480 return 0; 5481} 5482_ACEOF 5483if ac_fn_c_try_link "$LINENO"; then : 5484 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5485else 5486 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5487fi 5488rm -f core conftest.err conftest.$ac_objext \ 5489 conftest$ac_exeext conftest.$ac_ext 5490fi 5491 5492 5493 CFLAGS="$xorg_testset_save_CFLAGS" 5494 5495 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5497$as_echo "$supported" >&6; } 5498 if test "$supported" = "yes" ; then 5499 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5500 found="yes" 5501 fi 5502 fi 5503 5504 5505 5506 5507 5508 5509 5510xorg_testset_save_CFLAGS="$CFLAGS" 5511 5512if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5515$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5516if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518else 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520/* end confdefs.h. */ 5521int i; 5522_ACEOF 5523if ac_fn_c_try_compile "$LINENO"; then : 5524 xorg_cv_cc_flag_unknown_warning_option=yes 5525else 5526 xorg_cv_cc_flag_unknown_warning_option=no 5527fi 5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5529fi 5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5531$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5532 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5533 CFLAGS="$xorg_testset_save_CFLAGS" 5534fi 5535 5536if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5539 fi 5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5542$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5543if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5547/* end confdefs.h. */ 5548int i; 5549_ACEOF 5550if ac_fn_c_try_compile "$LINENO"; then : 5551 xorg_cv_cc_flag_unused_command_line_argument=yes 5552else 5553 xorg_cv_cc_flag_unused_command_line_argument=no 5554fi 5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5556fi 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5558$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5559 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5560 CFLAGS="$xorg_testset_save_CFLAGS" 5561fi 5562 5563found="no" 5564 5565 if test $found = "no" ; then 5566 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5568 fi 5569 5570 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5572 fi 5573 5574 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5575 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5577$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5578 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement` 5579 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5580 $as_echo_n "(cached) " >&6 5581else 5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5583/* end confdefs.h. */ 5584int i; 5585int 5586main () 5587{ 5588 5589 ; 5590 return 0; 5591} 5592_ACEOF 5593if ac_fn_c_try_link "$LINENO"; then : 5594 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5595else 5596 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5597fi 5598rm -f core conftest.err conftest.$ac_objext \ 5599 conftest$ac_exeext conftest.$ac_ext 5600fi 5601 5602 5603 CFLAGS="$xorg_testset_save_CFLAGS" 5604 5605 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5607$as_echo "$supported" >&6; } 5608 if test "$supported" = "yes" ; then 5609 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5610 found="yes" 5611 fi 5612 fi 5613 5614 5615 5616# This chunk adds additional warnings that could catch undesired effects. 5617 5618 5619 5620 5621 5622xorg_testset_save_CFLAGS="$CFLAGS" 5623 5624if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5632/* end confdefs.h. */ 5633int i; 5634_ACEOF 5635if ac_fn_c_try_compile "$LINENO"; then : 5636 xorg_cv_cc_flag_unknown_warning_option=yes 5637else 5638 xorg_cv_cc_flag_unknown_warning_option=no 5639fi 5640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5641fi 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5644 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5645 CFLAGS="$xorg_testset_save_CFLAGS" 5646fi 5647 5648if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5649 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5651 fi 5652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5656 $as_echo_n "(cached) " >&6 5657else 5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5659/* end confdefs.h. */ 5660int i; 5661_ACEOF 5662if ac_fn_c_try_compile "$LINENO"; then : 5663 xorg_cv_cc_flag_unused_command_line_argument=yes 5664else 5665 xorg_cv_cc_flag_unused_command_line_argument=no 5666fi 5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5668fi 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5671 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5672 CFLAGS="$xorg_testset_save_CFLAGS" 5673fi 5674 5675found="no" 5676 5677 if test $found = "no" ; then 5678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5680 fi 5681 5682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5684 fi 5685 5686 CFLAGS="$CFLAGS -Wunused" 5687 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5689$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5690 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused` 5691 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695/* end confdefs.h. */ 5696int i; 5697int 5698main () 5699{ 5700 5701 ; 5702 return 0; 5703} 5704_ACEOF 5705if ac_fn_c_try_link "$LINENO"; then : 5706 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5707else 5708 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5709fi 5710rm -f core conftest.err conftest.$ac_objext \ 5711 conftest$ac_exeext conftest.$ac_ext 5712fi 5713 5714 5715 CFLAGS="$xorg_testset_save_CFLAGS" 5716 5717 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5719$as_echo "$supported" >&6; } 5720 if test "$supported" = "yes" ; then 5721 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5722 found="yes" 5723 fi 5724 fi 5725 5726 5727 5728 5729 5730 5731 5732xorg_testset_save_CFLAGS="$CFLAGS" 5733 5734if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5739 $as_echo_n "(cached) " >&6 5740else 5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5742/* end confdefs.h. */ 5743int i; 5744_ACEOF 5745if ac_fn_c_try_compile "$LINENO"; then : 5746 xorg_cv_cc_flag_unknown_warning_option=yes 5747else 5748 xorg_cv_cc_flag_unknown_warning_option=no 5749fi 5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5751fi 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5754 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5755 CFLAGS="$xorg_testset_save_CFLAGS" 5756fi 5757 5758if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5759 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5761 fi 5762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5769/* end confdefs.h. */ 5770int i; 5771_ACEOF 5772if ac_fn_c_try_compile "$LINENO"; then : 5773 xorg_cv_cc_flag_unused_command_line_argument=yes 5774else 5775 xorg_cv_cc_flag_unused_command_line_argument=no 5776fi 5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5778fi 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5781 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5782 CFLAGS="$xorg_testset_save_CFLAGS" 5783fi 5784 5785found="no" 5786 5787 if test $found = "no" ; then 5788 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5790 fi 5791 5792 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5794 fi 5795 5796 CFLAGS="$CFLAGS -Wuninitialized" 5797 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5799$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5800 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized` 5801 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5805/* end confdefs.h. */ 5806int i; 5807int 5808main () 5809{ 5810 5811 ; 5812 return 0; 5813} 5814_ACEOF 5815if ac_fn_c_try_link "$LINENO"; then : 5816 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5817else 5818 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5819fi 5820rm -f core conftest.err conftest.$ac_objext \ 5821 conftest$ac_exeext conftest.$ac_ext 5822fi 5823 5824 5825 CFLAGS="$xorg_testset_save_CFLAGS" 5826 5827 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5829$as_echo "$supported" >&6; } 5830 if test "$supported" = "yes" ; then 5831 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5832 found="yes" 5833 fi 5834 fi 5835 5836 5837 5838 5839 5840 5841 5842xorg_testset_save_CFLAGS="$CFLAGS" 5843 5844if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850else 5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5852/* end confdefs.h. */ 5853int i; 5854_ACEOF 5855if ac_fn_c_try_compile "$LINENO"; then : 5856 xorg_cv_cc_flag_unknown_warning_option=yes 5857else 5858 xorg_cv_cc_flag_unknown_warning_option=no 5859fi 5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5861fi 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5864 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5865 CFLAGS="$xorg_testset_save_CFLAGS" 5866fi 5867 5868if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5869 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5871 fi 5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5876 $as_echo_n "(cached) " >&6 5877else 5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879/* end confdefs.h. */ 5880int i; 5881_ACEOF 5882if ac_fn_c_try_compile "$LINENO"; then : 5883 xorg_cv_cc_flag_unused_command_line_argument=yes 5884else 5885 xorg_cv_cc_flag_unused_command_line_argument=no 5886fi 5887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5888fi 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5891 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5892 CFLAGS="$xorg_testset_save_CFLAGS" 5893fi 5894 5895found="no" 5896 5897 if test $found = "no" ; then 5898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5900 fi 5901 5902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5904 fi 5905 5906 CFLAGS="$CFLAGS -Wshadow" 5907 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5909$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 5910 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow` 5911 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5912 $as_echo_n "(cached) " >&6 5913else 5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5915/* end confdefs.h. */ 5916int i; 5917int 5918main () 5919{ 5920 5921 ; 5922 return 0; 5923} 5924_ACEOF 5925if ac_fn_c_try_link "$LINENO"; then : 5926 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5927else 5928 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5929fi 5930rm -f core conftest.err conftest.$ac_objext \ 5931 conftest$ac_exeext conftest.$ac_ext 5932fi 5933 5934 5935 CFLAGS="$xorg_testset_save_CFLAGS" 5936 5937 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5939$as_echo "$supported" >&6; } 5940 if test "$supported" = "yes" ; then 5941 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 5942 found="yes" 5943 fi 5944 fi 5945 5946 5947 5948 5949 5950 5951 5952xorg_testset_save_CFLAGS="$CFLAGS" 5953 5954if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963int i; 5964_ACEOF 5965if ac_fn_c_try_compile "$LINENO"; then : 5966 xorg_cv_cc_flag_unknown_warning_option=yes 5967else 5968 xorg_cv_cc_flag_unknown_warning_option=no 5969fi 5970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5971fi 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5974 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5975 CFLAGS="$xorg_testset_save_CFLAGS" 5976fi 5977 5978if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5981 fi 5982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5989/* end confdefs.h. */ 5990int i; 5991_ACEOF 5992if ac_fn_c_try_compile "$LINENO"; then : 5993 xorg_cv_cc_flag_unused_command_line_argument=yes 5994else 5995 xorg_cv_cc_flag_unused_command_line_argument=no 5996fi 5997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5998fi 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6001 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6002 CFLAGS="$xorg_testset_save_CFLAGS" 6003fi 6004 6005found="no" 6006 6007 if test $found = "no" ; then 6008 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6010 fi 6011 6012 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6014 fi 6015 6016 CFLAGS="$CFLAGS -Wcast-qual" 6017 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6019$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6020 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual` 6021 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6022 $as_echo_n "(cached) " >&6 6023else 6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6025/* end confdefs.h. */ 6026int i; 6027int 6028main () 6029{ 6030 6031 ; 6032 return 0; 6033} 6034_ACEOF 6035if ac_fn_c_try_link "$LINENO"; then : 6036 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6037else 6038 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6039fi 6040rm -f core conftest.err conftest.$ac_objext \ 6041 conftest$ac_exeext conftest.$ac_ext 6042fi 6043 6044 6045 CFLAGS="$xorg_testset_save_CFLAGS" 6046 6047 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6049$as_echo "$supported" >&6; } 6050 if test "$supported" = "yes" ; then 6051 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6052 found="yes" 6053 fi 6054 fi 6055 6056 6057 6058 6059 6060 6061 6062xorg_testset_save_CFLAGS="$CFLAGS" 6063 6064if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6069 $as_echo_n "(cached) " >&6 6070else 6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072/* end confdefs.h. */ 6073int i; 6074_ACEOF 6075if ac_fn_c_try_compile "$LINENO"; then : 6076 xorg_cv_cc_flag_unknown_warning_option=yes 6077else 6078 xorg_cv_cc_flag_unknown_warning_option=no 6079fi 6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6081fi 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6084 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6085 CFLAGS="$xorg_testset_save_CFLAGS" 6086fi 6087 6088if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6089 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6091 fi 6092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6096 $as_echo_n "(cached) " >&6 6097else 6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6099/* end confdefs.h. */ 6100int i; 6101_ACEOF 6102if ac_fn_c_try_compile "$LINENO"; then : 6103 xorg_cv_cc_flag_unused_command_line_argument=yes 6104else 6105 xorg_cv_cc_flag_unused_command_line_argument=no 6106fi 6107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6108fi 6109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6111 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6112 CFLAGS="$xorg_testset_save_CFLAGS" 6113fi 6114 6115found="no" 6116 6117 if test $found = "no" ; then 6118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6120 fi 6121 6122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6124 fi 6125 6126 CFLAGS="$CFLAGS -Wmissing-noreturn" 6127 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6129$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6130 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn` 6131 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6135/* end confdefs.h. */ 6136int i; 6137int 6138main () 6139{ 6140 6141 ; 6142 return 0; 6143} 6144_ACEOF 6145if ac_fn_c_try_link "$LINENO"; then : 6146 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6147else 6148 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6149fi 6150rm -f core conftest.err conftest.$ac_objext \ 6151 conftest$ac_exeext conftest.$ac_ext 6152fi 6153 6154 6155 CFLAGS="$xorg_testset_save_CFLAGS" 6156 6157 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6159$as_echo "$supported" >&6; } 6160 if test "$supported" = "yes" ; then 6161 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6162 found="yes" 6163 fi 6164 fi 6165 6166 6167 6168 6169 6170 6171 6172xorg_testset_save_CFLAGS="$CFLAGS" 6173 6174if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6182/* end confdefs.h. */ 6183int i; 6184_ACEOF 6185if ac_fn_c_try_compile "$LINENO"; then : 6186 xorg_cv_cc_flag_unknown_warning_option=yes 6187else 6188 xorg_cv_cc_flag_unknown_warning_option=no 6189fi 6190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6191fi 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6194 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6195 CFLAGS="$xorg_testset_save_CFLAGS" 6196fi 6197 6198if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6201 fi 6202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6206 $as_echo_n "(cached) " >&6 6207else 6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6209/* end confdefs.h. */ 6210int i; 6211_ACEOF 6212if ac_fn_c_try_compile "$LINENO"; then : 6213 xorg_cv_cc_flag_unused_command_line_argument=yes 6214else 6215 xorg_cv_cc_flag_unused_command_line_argument=no 6216fi 6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6218fi 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6221 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6222 CFLAGS="$xorg_testset_save_CFLAGS" 6223fi 6224 6225found="no" 6226 6227 if test $found = "no" ; then 6228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6230 fi 6231 6232 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6234 fi 6235 6236 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6237 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6239$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6240 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute` 6241 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6245/* end confdefs.h. */ 6246int i; 6247int 6248main () 6249{ 6250 6251 ; 6252 return 0; 6253} 6254_ACEOF 6255if ac_fn_c_try_link "$LINENO"; then : 6256 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6257else 6258 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6259fi 6260rm -f core conftest.err conftest.$ac_objext \ 6261 conftest$ac_exeext conftest.$ac_ext 6262fi 6263 6264 6265 CFLAGS="$xorg_testset_save_CFLAGS" 6266 6267 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6269$as_echo "$supported" >&6; } 6270 if test "$supported" = "yes" ; then 6271 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6272 found="yes" 6273 fi 6274 fi 6275 6276 6277 6278 6279 6280 6281 6282xorg_testset_save_CFLAGS="$CFLAGS" 6283 6284if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290else 6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292/* end confdefs.h. */ 6293int i; 6294_ACEOF 6295if ac_fn_c_try_compile "$LINENO"; then : 6296 xorg_cv_cc_flag_unknown_warning_option=yes 6297else 6298 xorg_cv_cc_flag_unknown_warning_option=no 6299fi 6300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6301fi 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6304 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6305 CFLAGS="$xorg_testset_save_CFLAGS" 6306fi 6307 6308if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6309 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6311 fi 6312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317else 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319/* end confdefs.h. */ 6320int i; 6321_ACEOF 6322if ac_fn_c_try_compile "$LINENO"; then : 6323 xorg_cv_cc_flag_unused_command_line_argument=yes 6324else 6325 xorg_cv_cc_flag_unused_command_line_argument=no 6326fi 6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6328fi 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6331 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6332 CFLAGS="$xorg_testset_save_CFLAGS" 6333fi 6334 6335found="no" 6336 6337 if test $found = "no" ; then 6338 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6340 fi 6341 6342 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6344 fi 6345 6346 CFLAGS="$CFLAGS -Wredundant-decls" 6347 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6349$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6350 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls` 6351 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355/* end confdefs.h. */ 6356int i; 6357int 6358main () 6359{ 6360 6361 ; 6362 return 0; 6363} 6364_ACEOF 6365if ac_fn_c_try_link "$LINENO"; then : 6366 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6367else 6368 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6369fi 6370rm -f core conftest.err conftest.$ac_objext \ 6371 conftest$ac_exeext conftest.$ac_ext 6372fi 6373 6374 6375 CFLAGS="$xorg_testset_save_CFLAGS" 6376 6377 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6379$as_echo "$supported" >&6; } 6380 if test "$supported" = "yes" ; then 6381 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6382 found="yes" 6383 fi 6384 fi 6385 6386 6387 6388# These are currently disabled because they are noisy. They will be enabled 6389# in the future once the codebase is sufficiently modernized to silence 6390# them. For now, I don't want them to drown out the other warnings. 6391# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op]) 6392# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses]) 6393# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align]) 6394 6395# Turn some warnings into errors, so we don't accidently get successful builds 6396# when there are problems that should be fixed. 6397 6398if test "x$SELECTIVE_WERROR" = "xyes" ; then 6399 6400 6401 6402 6403 6404xorg_testset_save_CFLAGS="$CFLAGS" 6405 6406if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6414/* end confdefs.h. */ 6415int i; 6416_ACEOF 6417if ac_fn_c_try_compile "$LINENO"; then : 6418 xorg_cv_cc_flag_unknown_warning_option=yes 6419else 6420 xorg_cv_cc_flag_unknown_warning_option=no 6421fi 6422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6423fi 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6426 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6427 CFLAGS="$xorg_testset_save_CFLAGS" 6428fi 6429 6430if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6433 fi 6434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442int i; 6443_ACEOF 6444if ac_fn_c_try_compile "$LINENO"; then : 6445 xorg_cv_cc_flag_unused_command_line_argument=yes 6446else 6447 xorg_cv_cc_flag_unused_command_line_argument=no 6448fi 6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6450fi 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6453 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6454 CFLAGS="$xorg_testset_save_CFLAGS" 6455fi 6456 6457found="no" 6458 6459 if test $found = "no" ; then 6460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6462 fi 6463 6464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6466 fi 6467 6468 CFLAGS="$CFLAGS -Werror=implicit" 6469 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6471$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6472 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit` 6473 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6477/* end confdefs.h. */ 6478int i; 6479int 6480main () 6481{ 6482 6483 ; 6484 return 0; 6485} 6486_ACEOF 6487if ac_fn_c_try_link "$LINENO"; then : 6488 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6489else 6490 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6491fi 6492rm -f core conftest.err conftest.$ac_objext \ 6493 conftest$ac_exeext conftest.$ac_ext 6494fi 6495 6496 6497 CFLAGS="$xorg_testset_save_CFLAGS" 6498 6499 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6501$as_echo "$supported" >&6; } 6502 if test "$supported" = "yes" ; then 6503 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6504 found="yes" 6505 fi 6506 fi 6507 6508 if test $found = "no" ; then 6509 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6511 fi 6512 6513 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6515 fi 6516 6517 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6518 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6520$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6521 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` 6522 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6526/* end confdefs.h. */ 6527int i; 6528int 6529main () 6530{ 6531 6532 ; 6533 return 0; 6534} 6535_ACEOF 6536if ac_fn_c_try_link "$LINENO"; then : 6537 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6538else 6539 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6540fi 6541rm -f core conftest.err conftest.$ac_objext \ 6542 conftest$ac_exeext conftest.$ac_ext 6543fi 6544 6545 6546 CFLAGS="$xorg_testset_save_CFLAGS" 6547 6548 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6550$as_echo "$supported" >&6; } 6551 if test "$supported" = "yes" ; then 6552 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6553 found="yes" 6554 fi 6555 fi 6556 6557 6558 6559 6560 6561 6562 6563xorg_testset_save_CFLAGS="$CFLAGS" 6564 6565if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6570 $as_echo_n "(cached) " >&6 6571else 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574int i; 6575_ACEOF 6576if ac_fn_c_try_compile "$LINENO"; then : 6577 xorg_cv_cc_flag_unknown_warning_option=yes 6578else 6579 xorg_cv_cc_flag_unknown_warning_option=no 6580fi 6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6582fi 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6585 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6586 CFLAGS="$xorg_testset_save_CFLAGS" 6587fi 6588 6589if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6592 fi 6593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600/* end confdefs.h. */ 6601int i; 6602_ACEOF 6603if ac_fn_c_try_compile "$LINENO"; then : 6604 xorg_cv_cc_flag_unused_command_line_argument=yes 6605else 6606 xorg_cv_cc_flag_unused_command_line_argument=no 6607fi 6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6609fi 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6612 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6613 CFLAGS="$xorg_testset_save_CFLAGS" 6614fi 6615 6616found="no" 6617 6618 if test $found = "no" ; then 6619 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6621 fi 6622 6623 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6625 fi 6626 6627 CFLAGS="$CFLAGS -Werror=nonnull" 6628 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6630$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6631 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull` 6632 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6633 $as_echo_n "(cached) " >&6 6634else 6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6636/* end confdefs.h. */ 6637int i; 6638int 6639main () 6640{ 6641 6642 ; 6643 return 0; 6644} 6645_ACEOF 6646if ac_fn_c_try_link "$LINENO"; then : 6647 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6648else 6649 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6650fi 6651rm -f core conftest.err conftest.$ac_objext \ 6652 conftest$ac_exeext conftest.$ac_ext 6653fi 6654 6655 6656 CFLAGS="$xorg_testset_save_CFLAGS" 6657 6658 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6660$as_echo "$supported" >&6; } 6661 if test "$supported" = "yes" ; then 6662 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6663 found="yes" 6664 fi 6665 fi 6666 6667 6668 6669 6670 6671 6672 6673xorg_testset_save_CFLAGS="$CFLAGS" 6674 6675if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6680 $as_echo_n "(cached) " >&6 6681else 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684int i; 6685_ACEOF 6686if ac_fn_c_try_compile "$LINENO"; then : 6687 xorg_cv_cc_flag_unknown_warning_option=yes 6688else 6689 xorg_cv_cc_flag_unknown_warning_option=no 6690fi 6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6692fi 6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6695 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6696 CFLAGS="$xorg_testset_save_CFLAGS" 6697fi 6698 6699if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6702 fi 6703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6707 $as_echo_n "(cached) " >&6 6708else 6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6710/* end confdefs.h. */ 6711int i; 6712_ACEOF 6713if ac_fn_c_try_compile "$LINENO"; then : 6714 xorg_cv_cc_flag_unused_command_line_argument=yes 6715else 6716 xorg_cv_cc_flag_unused_command_line_argument=no 6717fi 6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6719fi 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6722 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6723 CFLAGS="$xorg_testset_save_CFLAGS" 6724fi 6725 6726found="no" 6727 6728 if test $found = "no" ; then 6729 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6731 fi 6732 6733 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6735 fi 6736 6737 CFLAGS="$CFLAGS -Werror=init-self" 6738 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6740$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6741 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self` 6742 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6743 $as_echo_n "(cached) " >&6 6744else 6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6746/* end confdefs.h. */ 6747int i; 6748int 6749main () 6750{ 6751 6752 ; 6753 return 0; 6754} 6755_ACEOF 6756if ac_fn_c_try_link "$LINENO"; then : 6757 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6758else 6759 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6760fi 6761rm -f core conftest.err conftest.$ac_objext \ 6762 conftest$ac_exeext conftest.$ac_ext 6763fi 6764 6765 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767 6768 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6770$as_echo "$supported" >&6; } 6771 if test "$supported" = "yes" ; then 6772 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6773 found="yes" 6774 fi 6775 fi 6776 6777 6778 6779 6780 6781 6782 6783xorg_testset_save_CFLAGS="$CFLAGS" 6784 6785if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6788$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6789if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6793/* end confdefs.h. */ 6794int i; 6795_ACEOF 6796if ac_fn_c_try_compile "$LINENO"; then : 6797 xorg_cv_cc_flag_unknown_warning_option=yes 6798else 6799 xorg_cv_cc_flag_unknown_warning_option=no 6800fi 6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6802fi 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6804$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6805 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6806 CFLAGS="$xorg_testset_save_CFLAGS" 6807fi 6808 6809if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6812 fi 6813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6815$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6816if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818else 6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820/* end confdefs.h. */ 6821int i; 6822_ACEOF 6823if ac_fn_c_try_compile "$LINENO"; then : 6824 xorg_cv_cc_flag_unused_command_line_argument=yes 6825else 6826 xorg_cv_cc_flag_unused_command_line_argument=no 6827fi 6828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6829fi 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6831$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6832 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6833 CFLAGS="$xorg_testset_save_CFLAGS" 6834fi 6835 6836found="no" 6837 6838 if test $found = "no" ; then 6839 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6841 fi 6842 6843 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6845 fi 6846 6847 CFLAGS="$CFLAGS -Werror=main" 6848 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6850$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 6851 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main` 6852 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6853 $as_echo_n "(cached) " >&6 6854else 6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6856/* end confdefs.h. */ 6857int i; 6858int 6859main () 6860{ 6861 6862 ; 6863 return 0; 6864} 6865_ACEOF 6866if ac_fn_c_try_link "$LINENO"; then : 6867 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6868else 6869 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6870fi 6871rm -f core conftest.err conftest.$ac_objext \ 6872 conftest$ac_exeext conftest.$ac_ext 6873fi 6874 6875 6876 CFLAGS="$xorg_testset_save_CFLAGS" 6877 6878 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6880$as_echo "$supported" >&6; } 6881 if test "$supported" = "yes" ; then 6882 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 6883 found="yes" 6884 fi 6885 fi 6886 6887 6888 6889 6890 6891 6892 6893xorg_testset_save_CFLAGS="$CFLAGS" 6894 6895if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6900 $as_echo_n "(cached) " >&6 6901else 6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904int i; 6905_ACEOF 6906if ac_fn_c_try_compile "$LINENO"; then : 6907 xorg_cv_cc_flag_unknown_warning_option=yes 6908else 6909 xorg_cv_cc_flag_unknown_warning_option=no 6910fi 6911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6912fi 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6915 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6916 CFLAGS="$xorg_testset_save_CFLAGS" 6917fi 6918 6919if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6922 fi 6923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930/* end confdefs.h. */ 6931int i; 6932_ACEOF 6933if ac_fn_c_try_compile "$LINENO"; then : 6934 xorg_cv_cc_flag_unused_command_line_argument=yes 6935else 6936 xorg_cv_cc_flag_unused_command_line_argument=no 6937fi 6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6939fi 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6942 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6943 CFLAGS="$xorg_testset_save_CFLAGS" 6944fi 6945 6946found="no" 6947 6948 if test $found = "no" ; then 6949 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951 fi 6952 6953 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6955 fi 6956 6957 CFLAGS="$CFLAGS -Werror=missing-braces" 6958 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 6960$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 6961 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces` 6962 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6963 $as_echo_n "(cached) " >&6 6964else 6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6966/* end confdefs.h. */ 6967int i; 6968int 6969main () 6970{ 6971 6972 ; 6973 return 0; 6974} 6975_ACEOF 6976if ac_fn_c_try_link "$LINENO"; then : 6977 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6978else 6979 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6980fi 6981rm -f core conftest.err conftest.$ac_objext \ 6982 conftest$ac_exeext conftest.$ac_ext 6983fi 6984 6985 6986 CFLAGS="$xorg_testset_save_CFLAGS" 6987 6988 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6990$as_echo "$supported" >&6; } 6991 if test "$supported" = "yes" ; then 6992 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 6993 found="yes" 6994 fi 6995 fi 6996 6997 6998 6999 7000 7001 7002 7003xorg_testset_save_CFLAGS="$CFLAGS" 7004 7005if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011else 7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7013/* end confdefs.h. */ 7014int i; 7015_ACEOF 7016if ac_fn_c_try_compile "$LINENO"; then : 7017 xorg_cv_cc_flag_unknown_warning_option=yes 7018else 7019 xorg_cv_cc_flag_unknown_warning_option=no 7020fi 7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7022fi 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7025 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7026 CFLAGS="$xorg_testset_save_CFLAGS" 7027fi 7028 7029if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7032 fi 7033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038else 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041int i; 7042_ACEOF 7043if ac_fn_c_try_compile "$LINENO"; then : 7044 xorg_cv_cc_flag_unused_command_line_argument=yes 7045else 7046 xorg_cv_cc_flag_unused_command_line_argument=no 7047fi 7048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7049fi 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7052 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7053 CFLAGS="$xorg_testset_save_CFLAGS" 7054fi 7055 7056found="no" 7057 7058 if test $found = "no" ; then 7059 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7061 fi 7062 7063 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7065 fi 7066 7067 CFLAGS="$CFLAGS -Werror=sequence-point" 7068 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7070$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7071 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point` 7072 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7073 $as_echo_n "(cached) " >&6 7074else 7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7076/* end confdefs.h. */ 7077int i; 7078int 7079main () 7080{ 7081 7082 ; 7083 return 0; 7084} 7085_ACEOF 7086if ac_fn_c_try_link "$LINENO"; then : 7087 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7088else 7089 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7090fi 7091rm -f core conftest.err conftest.$ac_objext \ 7092 conftest$ac_exeext conftest.$ac_ext 7093fi 7094 7095 7096 CFLAGS="$xorg_testset_save_CFLAGS" 7097 7098 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7100$as_echo "$supported" >&6; } 7101 if test "$supported" = "yes" ; then 7102 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7103 found="yes" 7104 fi 7105 fi 7106 7107 7108 7109 7110 7111 7112 7113xorg_testset_save_CFLAGS="$CFLAGS" 7114 7115if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121else 7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123/* end confdefs.h. */ 7124int i; 7125_ACEOF 7126if ac_fn_c_try_compile "$LINENO"; then : 7127 xorg_cv_cc_flag_unknown_warning_option=yes 7128else 7129 xorg_cv_cc_flag_unknown_warning_option=no 7130fi 7131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7132fi 7133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7135 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7136 CFLAGS="$xorg_testset_save_CFLAGS" 7137fi 7138 7139if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 fi 7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7147 $as_echo_n "(cached) " >&6 7148else 7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151int i; 7152_ACEOF 7153if ac_fn_c_try_compile "$LINENO"; then : 7154 xorg_cv_cc_flag_unused_command_line_argument=yes 7155else 7156 xorg_cv_cc_flag_unused_command_line_argument=no 7157fi 7158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7159fi 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7162 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7163 CFLAGS="$xorg_testset_save_CFLAGS" 7164fi 7165 7166found="no" 7167 7168 if test $found = "no" ; then 7169 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 fi 7172 7173 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7175 fi 7176 7177 CFLAGS="$CFLAGS -Werror=return-type" 7178 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7180$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7181 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type` 7182 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7183 $as_echo_n "(cached) " >&6 7184else 7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186/* end confdefs.h. */ 7187int i; 7188int 7189main () 7190{ 7191 7192 ; 7193 return 0; 7194} 7195_ACEOF 7196if ac_fn_c_try_link "$LINENO"; then : 7197 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7198else 7199 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7200fi 7201rm -f core conftest.err conftest.$ac_objext \ 7202 conftest$ac_exeext conftest.$ac_ext 7203fi 7204 7205 7206 CFLAGS="$xorg_testset_save_CFLAGS" 7207 7208 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7210$as_echo "$supported" >&6; } 7211 if test "$supported" = "yes" ; then 7212 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7213 found="yes" 7214 fi 7215 fi 7216 7217 if test $found = "no" ; then 7218 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7220 fi 7221 7222 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7224 fi 7225 7226 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7227 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7229$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7230 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` 7231 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7232 $as_echo_n "(cached) " >&6 7233else 7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7235/* end confdefs.h. */ 7236int i; 7237int 7238main () 7239{ 7240 7241 ; 7242 return 0; 7243} 7244_ACEOF 7245if ac_fn_c_try_link "$LINENO"; then : 7246 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7247else 7248 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7249fi 7250rm -f core conftest.err conftest.$ac_objext \ 7251 conftest$ac_exeext conftest.$ac_ext 7252fi 7253 7254 7255 CFLAGS="$xorg_testset_save_CFLAGS" 7256 7257 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7259$as_echo "$supported" >&6; } 7260 if test "$supported" = "yes" ; then 7261 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7262 found="yes" 7263 fi 7264 fi 7265 7266 7267 7268 7269 7270 7271 7272xorg_testset_save_CFLAGS="$CFLAGS" 7273 7274if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7278if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282/* end confdefs.h. */ 7283int i; 7284_ACEOF 7285if ac_fn_c_try_compile "$LINENO"; then : 7286 xorg_cv_cc_flag_unknown_warning_option=yes 7287else 7288 xorg_cv_cc_flag_unknown_warning_option=no 7289fi 7290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7291fi 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7293$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7294 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7295 CFLAGS="$xorg_testset_save_CFLAGS" 7296fi 7297 7298if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7301 fi 7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7304$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7305if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307else 7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309/* end confdefs.h. */ 7310int i; 7311_ACEOF 7312if ac_fn_c_try_compile "$LINENO"; then : 7313 xorg_cv_cc_flag_unused_command_line_argument=yes 7314else 7315 xorg_cv_cc_flag_unused_command_line_argument=no 7316fi 7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7318fi 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7320$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7321 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7322 CFLAGS="$xorg_testset_save_CFLAGS" 7323fi 7324 7325found="no" 7326 7327 if test $found = "no" ; then 7328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7330 fi 7331 7332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7334 fi 7335 7336 CFLAGS="$CFLAGS -Werror=trigraphs" 7337 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7339$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7340 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs` 7341 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7345/* end confdefs.h. */ 7346int i; 7347int 7348main () 7349{ 7350 7351 ; 7352 return 0; 7353} 7354_ACEOF 7355if ac_fn_c_try_link "$LINENO"; then : 7356 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7357else 7358 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7359fi 7360rm -f core conftest.err conftest.$ac_objext \ 7361 conftest$ac_exeext conftest.$ac_ext 7362fi 7363 7364 7365 CFLAGS="$xorg_testset_save_CFLAGS" 7366 7367 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7369$as_echo "$supported" >&6; } 7370 if test "$supported" = "yes" ; then 7371 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7372 found="yes" 7373 fi 7374 fi 7375 7376 7377 7378 7379 7380 7381 7382xorg_testset_save_CFLAGS="$CFLAGS" 7383 7384if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7389 $as_echo_n "(cached) " >&6 7390else 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392/* end confdefs.h. */ 7393int i; 7394_ACEOF 7395if ac_fn_c_try_compile "$LINENO"; then : 7396 xorg_cv_cc_flag_unknown_warning_option=yes 7397else 7398 xorg_cv_cc_flag_unknown_warning_option=no 7399fi 7400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7401fi 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7404 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7405 CFLAGS="$xorg_testset_save_CFLAGS" 7406fi 7407 7408if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7411 fi 7412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7416 $as_echo_n "(cached) " >&6 7417else 7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7419/* end confdefs.h. */ 7420int i; 7421_ACEOF 7422if ac_fn_c_try_compile "$LINENO"; then : 7423 xorg_cv_cc_flag_unused_command_line_argument=yes 7424else 7425 xorg_cv_cc_flag_unused_command_line_argument=no 7426fi 7427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7428fi 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7431 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7432 CFLAGS="$xorg_testset_save_CFLAGS" 7433fi 7434 7435found="no" 7436 7437 if test $found = "no" ; then 7438 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7440 fi 7441 7442 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7444 fi 7445 7446 CFLAGS="$CFLAGS -Werror=array-bounds" 7447 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7449$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7450 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds` 7451 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7452 $as_echo_n "(cached) " >&6 7453else 7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7455/* end confdefs.h. */ 7456int i; 7457int 7458main () 7459{ 7460 7461 ; 7462 return 0; 7463} 7464_ACEOF 7465if ac_fn_c_try_link "$LINENO"; then : 7466 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7467else 7468 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7469fi 7470rm -f core conftest.err conftest.$ac_objext \ 7471 conftest$ac_exeext conftest.$ac_ext 7472fi 7473 7474 7475 CFLAGS="$xorg_testset_save_CFLAGS" 7476 7477 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7479$as_echo "$supported" >&6; } 7480 if test "$supported" = "yes" ; then 7481 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7482 found="yes" 7483 fi 7484 fi 7485 7486 7487 7488 7489 7490 7491 7492xorg_testset_save_CFLAGS="$CFLAGS" 7493 7494if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7499 $as_echo_n "(cached) " >&6 7500else 7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7502/* end confdefs.h. */ 7503int i; 7504_ACEOF 7505if ac_fn_c_try_compile "$LINENO"; then : 7506 xorg_cv_cc_flag_unknown_warning_option=yes 7507else 7508 xorg_cv_cc_flag_unknown_warning_option=no 7509fi 7510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7511fi 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7514 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516fi 7517 7518if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7519 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7521 fi 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529/* end confdefs.h. */ 7530int i; 7531_ACEOF 7532if ac_fn_c_try_compile "$LINENO"; then : 7533 xorg_cv_cc_flag_unused_command_line_argument=yes 7534else 7535 xorg_cv_cc_flag_unused_command_line_argument=no 7536fi 7537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7538fi 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7541 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7542 CFLAGS="$xorg_testset_save_CFLAGS" 7543fi 7544 7545found="no" 7546 7547 if test $found = "no" ; then 7548 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7550 fi 7551 7552 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7554 fi 7555 7556 CFLAGS="$CFLAGS -Werror=write-strings" 7557 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7559$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7560 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings` 7561 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7562 $as_echo_n "(cached) " >&6 7563else 7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7565/* end confdefs.h. */ 7566int i; 7567int 7568main () 7569{ 7570 7571 ; 7572 return 0; 7573} 7574_ACEOF 7575if ac_fn_c_try_link "$LINENO"; then : 7576 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7577else 7578 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7579fi 7580rm -f core conftest.err conftest.$ac_objext \ 7581 conftest$ac_exeext conftest.$ac_ext 7582fi 7583 7584 7585 CFLAGS="$xorg_testset_save_CFLAGS" 7586 7587 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7589$as_echo "$supported" >&6; } 7590 if test "$supported" = "yes" ; then 7591 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7592 found="yes" 7593 fi 7594 fi 7595 7596 7597 7598 7599 7600 7601 7602xorg_testset_save_CFLAGS="$CFLAGS" 7603 7604if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7609 $as_echo_n "(cached) " >&6 7610else 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613int i; 7614_ACEOF 7615if ac_fn_c_try_compile "$LINENO"; then : 7616 xorg_cv_cc_flag_unknown_warning_option=yes 7617else 7618 xorg_cv_cc_flag_unknown_warning_option=no 7619fi 7620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7621fi 7622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7624 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7625 CFLAGS="$xorg_testset_save_CFLAGS" 7626fi 7627 7628if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7629 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7631 fi 7632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7636 $as_echo_n "(cached) " >&6 7637else 7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7639/* end confdefs.h. */ 7640int i; 7641_ACEOF 7642if ac_fn_c_try_compile "$LINENO"; then : 7643 xorg_cv_cc_flag_unused_command_line_argument=yes 7644else 7645 xorg_cv_cc_flag_unused_command_line_argument=no 7646fi 7647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7648fi 7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7651 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7652 CFLAGS="$xorg_testset_save_CFLAGS" 7653fi 7654 7655found="no" 7656 7657 if test $found = "no" ; then 7658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7660 fi 7661 7662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7664 fi 7665 7666 CFLAGS="$CFLAGS -Werror=address" 7667 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7669$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7670 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address` 7671 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675/* end confdefs.h. */ 7676int i; 7677int 7678main () 7679{ 7680 7681 ; 7682 return 0; 7683} 7684_ACEOF 7685if ac_fn_c_try_link "$LINENO"; then : 7686 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7687else 7688 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7689fi 7690rm -f core conftest.err conftest.$ac_objext \ 7691 conftest$ac_exeext conftest.$ac_ext 7692fi 7693 7694 7695 CFLAGS="$xorg_testset_save_CFLAGS" 7696 7697 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7699$as_echo "$supported" >&6; } 7700 if test "$supported" = "yes" ; then 7701 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7702 found="yes" 7703 fi 7704 fi 7705 7706 7707 7708 7709 7710 7711 7712xorg_testset_save_CFLAGS="$CFLAGS" 7713 7714if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7717$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7718if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723int i; 7724_ACEOF 7725if ac_fn_c_try_compile "$LINENO"; then : 7726 xorg_cv_cc_flag_unknown_warning_option=yes 7727else 7728 xorg_cv_cc_flag_unknown_warning_option=no 7729fi 7730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7731fi 7732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7733$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7734 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7735 CFLAGS="$xorg_testset_save_CFLAGS" 7736fi 7737 7738if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7741 fi 7742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7744$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7745if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7746 $as_echo_n "(cached) " >&6 7747else 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749/* end confdefs.h. */ 7750int i; 7751_ACEOF 7752if ac_fn_c_try_compile "$LINENO"; then : 7753 xorg_cv_cc_flag_unused_command_line_argument=yes 7754else 7755 xorg_cv_cc_flag_unused_command_line_argument=no 7756fi 7757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7758fi 7759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7760$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7761 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7762 CFLAGS="$xorg_testset_save_CFLAGS" 7763fi 7764 7765found="no" 7766 7767 if test $found = "no" ; then 7768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7770 fi 7771 7772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7774 fi 7775 7776 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 7777 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 7779$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 7780 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast` 7781 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7785/* end confdefs.h. */ 7786int i; 7787int 7788main () 7789{ 7790 7791 ; 7792 return 0; 7793} 7794_ACEOF 7795if ac_fn_c_try_link "$LINENO"; then : 7796 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7797else 7798 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7799fi 7800rm -f core conftest.err conftest.$ac_objext \ 7801 conftest$ac_exeext conftest.$ac_ext 7802fi 7803 7804 7805 CFLAGS="$xorg_testset_save_CFLAGS" 7806 7807 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7809$as_echo "$supported" >&6; } 7810 if test "$supported" = "yes" ; then 7811 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 7812 found="yes" 7813 fi 7814 fi 7815 7816 if test $found = "no" ; then 7817 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7819 fi 7820 7821 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7823 fi 7824 7825 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7826 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 7828$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 7829 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` 7830 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7831 $as_echo_n "(cached) " >&6 7832else 7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834/* end confdefs.h. */ 7835int i; 7836int 7837main () 7838{ 7839 7840 ; 7841 return 0; 7842} 7843_ACEOF 7844if ac_fn_c_try_link "$LINENO"; then : 7845 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7846else 7847 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7848fi 7849rm -f core conftest.err conftest.$ac_objext \ 7850 conftest$ac_exeext conftest.$ac_ext 7851fi 7852 7853 7854 CFLAGS="$xorg_testset_save_CFLAGS" 7855 7856 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7858$as_echo "$supported" >&6; } 7859 if test "$supported" = "yes" ; then 7860 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 7861 found="yes" 7862 fi 7863 fi 7864 7865 7866 7867 7868 7869 7870 7871xorg_testset_save_CFLAGS="$CFLAGS" 7872 7873if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882int i; 7883_ACEOF 7884if ac_fn_c_try_compile "$LINENO"; then : 7885 xorg_cv_cc_flag_unknown_warning_option=yes 7886else 7887 xorg_cv_cc_flag_unknown_warning_option=no 7888fi 7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7890fi 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7893 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7894 CFLAGS="$xorg_testset_save_CFLAGS" 7895fi 7896 7897if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7900 fi 7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909int i; 7910_ACEOF 7911if ac_fn_c_try_compile "$LINENO"; then : 7912 xorg_cv_cc_flag_unused_command_line_argument=yes 7913else 7914 xorg_cv_cc_flag_unused_command_line_argument=no 7915fi 7916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7917fi 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7920 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7921 CFLAGS="$xorg_testset_save_CFLAGS" 7922fi 7923 7924found="no" 7925 7926 if test $found = "no" ; then 7927 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7929 fi 7930 7931 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7933 fi 7934 7935 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 7936 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 7938$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 7939 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast` 7940 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7941 $as_echo_n "(cached) " >&6 7942else 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945int i; 7946int 7947main () 7948{ 7949 7950 ; 7951 return 0; 7952} 7953_ACEOF 7954if ac_fn_c_try_link "$LINENO"; then : 7955 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7956else 7957 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7958fi 7959rm -f core conftest.err conftest.$ac_objext \ 7960 conftest$ac_exeext conftest.$ac_ext 7961fi 7962 7963 7964 CFLAGS="$xorg_testset_save_CFLAGS" 7965 7966 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7968$as_echo "$supported" >&6; } 7969 if test "$supported" = "yes" ; then 7970 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 7971 found="yes" 7972 fi 7973 fi 7974 7975 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 7976else 7977{ $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 7978$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;} 7979 7980 7981 7982 7983 7984xorg_testset_save_CFLAGS="$CFLAGS" 7985 7986if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992else 7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994/* end confdefs.h. */ 7995int i; 7996_ACEOF 7997if ac_fn_c_try_compile "$LINENO"; then : 7998 xorg_cv_cc_flag_unknown_warning_option=yes 7999else 8000 xorg_cv_cc_flag_unknown_warning_option=no 8001fi 8002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8003fi 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8006 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8007 CFLAGS="$xorg_testset_save_CFLAGS" 8008fi 8009 8010if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8013 fi 8014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8021/* end confdefs.h. */ 8022int i; 8023_ACEOF 8024if ac_fn_c_try_compile "$LINENO"; then : 8025 xorg_cv_cc_flag_unused_command_line_argument=yes 8026else 8027 xorg_cv_cc_flag_unused_command_line_argument=no 8028fi 8029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8030fi 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8033 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8034 CFLAGS="$xorg_testset_save_CFLAGS" 8035fi 8036 8037found="no" 8038 8039 if test $found = "no" ; then 8040 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8042 fi 8043 8044 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8046 fi 8047 8048 CFLAGS="$CFLAGS -Wimplicit" 8049 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8051$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8052 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit` 8053 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8054 $as_echo_n "(cached) " >&6 8055else 8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8057/* end confdefs.h. */ 8058int i; 8059int 8060main () 8061{ 8062 8063 ; 8064 return 0; 8065} 8066_ACEOF 8067if ac_fn_c_try_link "$LINENO"; then : 8068 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8069else 8070 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8071fi 8072rm -f core conftest.err conftest.$ac_objext \ 8073 conftest$ac_exeext conftest.$ac_ext 8074fi 8075 8076 8077 CFLAGS="$xorg_testset_save_CFLAGS" 8078 8079 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8081$as_echo "$supported" >&6; } 8082 if test "$supported" = "yes" ; then 8083 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8084 found="yes" 8085 fi 8086 fi 8087 8088 8089 8090 8091 8092 8093 8094xorg_testset_save_CFLAGS="$CFLAGS" 8095 8096if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8101 $as_echo_n "(cached) " >&6 8102else 8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8104/* end confdefs.h. */ 8105int i; 8106_ACEOF 8107if ac_fn_c_try_compile "$LINENO"; then : 8108 xorg_cv_cc_flag_unknown_warning_option=yes 8109else 8110 xorg_cv_cc_flag_unknown_warning_option=no 8111fi 8112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8113fi 8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8116 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8117 CFLAGS="$xorg_testset_save_CFLAGS" 8118fi 8119 8120if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8121 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8123 fi 8124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8128 $as_echo_n "(cached) " >&6 8129else 8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8131/* end confdefs.h. */ 8132int i; 8133_ACEOF 8134if ac_fn_c_try_compile "$LINENO"; then : 8135 xorg_cv_cc_flag_unused_command_line_argument=yes 8136else 8137 xorg_cv_cc_flag_unused_command_line_argument=no 8138fi 8139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8140fi 8141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8143 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8144 CFLAGS="$xorg_testset_save_CFLAGS" 8145fi 8146 8147found="no" 8148 8149 if test $found = "no" ; then 8150 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8152 fi 8153 8154 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8156 fi 8157 8158 CFLAGS="$CFLAGS -Wnonnull" 8159 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8161$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8162 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull` 8163 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167/* end confdefs.h. */ 8168int i; 8169int 8170main () 8171{ 8172 8173 ; 8174 return 0; 8175} 8176_ACEOF 8177if ac_fn_c_try_link "$LINENO"; then : 8178 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8179else 8180 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8181fi 8182rm -f core conftest.err conftest.$ac_objext \ 8183 conftest$ac_exeext conftest.$ac_ext 8184fi 8185 8186 8187 CFLAGS="$xorg_testset_save_CFLAGS" 8188 8189 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8191$as_echo "$supported" >&6; } 8192 if test "$supported" = "yes" ; then 8193 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8194 found="yes" 8195 fi 8196 fi 8197 8198 8199 8200 8201 8202 8203 8204xorg_testset_save_CFLAGS="$CFLAGS" 8205 8206if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8209$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8210if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214/* end confdefs.h. */ 8215int i; 8216_ACEOF 8217if ac_fn_c_try_compile "$LINENO"; then : 8218 xorg_cv_cc_flag_unknown_warning_option=yes 8219else 8220 xorg_cv_cc_flag_unknown_warning_option=no 8221fi 8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8223fi 8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8225$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8226 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8227 CFLAGS="$xorg_testset_save_CFLAGS" 8228fi 8229 8230if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8231 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8233 fi 8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8236$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8237if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8241/* end confdefs.h. */ 8242int i; 8243_ACEOF 8244if ac_fn_c_try_compile "$LINENO"; then : 8245 xorg_cv_cc_flag_unused_command_line_argument=yes 8246else 8247 xorg_cv_cc_flag_unused_command_line_argument=no 8248fi 8249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8250fi 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8252$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8253 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8254 CFLAGS="$xorg_testset_save_CFLAGS" 8255fi 8256 8257found="no" 8258 8259 if test $found = "no" ; then 8260 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8262 fi 8263 8264 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8266 fi 8267 8268 CFLAGS="$CFLAGS -Winit-self" 8269 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8271$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8272 cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self` 8273 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8277/* end confdefs.h. */ 8278int i; 8279int 8280main () 8281{ 8282 8283 ; 8284 return 0; 8285} 8286_ACEOF 8287if ac_fn_c_try_link "$LINENO"; then : 8288 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8289else 8290 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8291fi 8292rm -f core conftest.err conftest.$ac_objext \ 8293 conftest$ac_exeext conftest.$ac_ext 8294fi 8295 8296 8297 CFLAGS="$xorg_testset_save_CFLAGS" 8298 8299 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8301$as_echo "$supported" >&6; } 8302 if test "$supported" = "yes" ; then 8303 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8304 found="yes" 8305 fi 8306 fi 8307 8308 8309 8310 8311 8312 8313 8314xorg_testset_save_CFLAGS="$CFLAGS" 8315 8316if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8321 $as_echo_n "(cached) " >&6 8322else 8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8324/* end confdefs.h. */ 8325int i; 8326_ACEOF 8327if ac_fn_c_try_compile "$LINENO"; then : 8328 xorg_cv_cc_flag_unknown_warning_option=yes 8329else 8330 xorg_cv_cc_flag_unknown_warning_option=no 8331fi 8332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8333fi 8334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8336 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8337 CFLAGS="$xorg_testset_save_CFLAGS" 8338fi 8339 8340if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8341 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8343 fi 8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8348 $as_echo_n "(cached) " >&6 8349else 8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351/* end confdefs.h. */ 8352int i; 8353_ACEOF 8354if ac_fn_c_try_compile "$LINENO"; then : 8355 xorg_cv_cc_flag_unused_command_line_argument=yes 8356else 8357 xorg_cv_cc_flag_unused_command_line_argument=no 8358fi 8359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8360fi 8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8363 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8364 CFLAGS="$xorg_testset_save_CFLAGS" 8365fi 8366 8367found="no" 8368 8369 if test $found = "no" ; then 8370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8372 fi 8373 8374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8376 fi 8377 8378 CFLAGS="$CFLAGS -Wmain" 8379 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8381$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8382 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain` 8383 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8384 $as_echo_n "(cached) " >&6 8385else 8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8387/* end confdefs.h. */ 8388int i; 8389int 8390main () 8391{ 8392 8393 ; 8394 return 0; 8395} 8396_ACEOF 8397if ac_fn_c_try_link "$LINENO"; then : 8398 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8399else 8400 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8401fi 8402rm -f core conftest.err conftest.$ac_objext \ 8403 conftest$ac_exeext conftest.$ac_ext 8404fi 8405 8406 8407 CFLAGS="$xorg_testset_save_CFLAGS" 8408 8409 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8411$as_echo "$supported" >&6; } 8412 if test "$supported" = "yes" ; then 8413 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8414 found="yes" 8415 fi 8416 fi 8417 8418 8419 8420 8421 8422 8423 8424xorg_testset_save_CFLAGS="$CFLAGS" 8425 8426if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8431 $as_echo_n "(cached) " >&6 8432else 8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434/* end confdefs.h. */ 8435int i; 8436_ACEOF 8437if ac_fn_c_try_compile "$LINENO"; then : 8438 xorg_cv_cc_flag_unknown_warning_option=yes 8439else 8440 xorg_cv_cc_flag_unknown_warning_option=no 8441fi 8442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8443fi 8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8446 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8447 CFLAGS="$xorg_testset_save_CFLAGS" 8448fi 8449 8450if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8453 fi 8454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8458 $as_echo_n "(cached) " >&6 8459else 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462int i; 8463_ACEOF 8464if ac_fn_c_try_compile "$LINENO"; then : 8465 xorg_cv_cc_flag_unused_command_line_argument=yes 8466else 8467 xorg_cv_cc_flag_unused_command_line_argument=no 8468fi 8469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8470fi 8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8473 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8474 CFLAGS="$xorg_testset_save_CFLAGS" 8475fi 8476 8477found="no" 8478 8479 if test $found = "no" ; then 8480 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8482 fi 8483 8484 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8486 fi 8487 8488 CFLAGS="$CFLAGS -Wmissing-braces" 8489 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8491$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8492 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces` 8493 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8494 $as_echo_n "(cached) " >&6 8495else 8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8497/* end confdefs.h. */ 8498int i; 8499int 8500main () 8501{ 8502 8503 ; 8504 return 0; 8505} 8506_ACEOF 8507if ac_fn_c_try_link "$LINENO"; then : 8508 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8509else 8510 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8511fi 8512rm -f core conftest.err conftest.$ac_objext \ 8513 conftest$ac_exeext conftest.$ac_ext 8514fi 8515 8516 8517 CFLAGS="$xorg_testset_save_CFLAGS" 8518 8519 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8521$as_echo "$supported" >&6; } 8522 if test "$supported" = "yes" ; then 8523 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8524 found="yes" 8525 fi 8526 fi 8527 8528 8529 8530 8531 8532 8533 8534xorg_testset_save_CFLAGS="$CFLAGS" 8535 8536if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8541 $as_echo_n "(cached) " >&6 8542else 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545int i; 8546_ACEOF 8547if ac_fn_c_try_compile "$LINENO"; then : 8548 xorg_cv_cc_flag_unknown_warning_option=yes 8549else 8550 xorg_cv_cc_flag_unknown_warning_option=no 8551fi 8552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8553fi 8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8556 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8558fi 8559 8560if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8561 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8563 fi 8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8568 $as_echo_n "(cached) " >&6 8569else 8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8571/* end confdefs.h. */ 8572int i; 8573_ACEOF 8574if ac_fn_c_try_compile "$LINENO"; then : 8575 xorg_cv_cc_flag_unused_command_line_argument=yes 8576else 8577 xorg_cv_cc_flag_unused_command_line_argument=no 8578fi 8579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8580fi 8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8583 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8584 CFLAGS="$xorg_testset_save_CFLAGS" 8585fi 8586 8587found="no" 8588 8589 if test $found = "no" ; then 8590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8592 fi 8593 8594 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8596 fi 8597 8598 CFLAGS="$CFLAGS -Wsequence-point" 8599 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8601$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8602 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point` 8603 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607/* end confdefs.h. */ 8608int i; 8609int 8610main () 8611{ 8612 8613 ; 8614 return 0; 8615} 8616_ACEOF 8617if ac_fn_c_try_link "$LINENO"; then : 8618 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8619else 8620 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext \ 8623 conftest$ac_exeext conftest.$ac_ext 8624fi 8625 8626 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628 8629 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8631$as_echo "$supported" >&6; } 8632 if test "$supported" = "yes" ; then 8633 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8634 found="yes" 8635 fi 8636 fi 8637 8638 8639 8640 8641 8642 8643 8644xorg_testset_save_CFLAGS="$CFLAGS" 8645 8646if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8651 $as_echo_n "(cached) " >&6 8652else 8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8654/* end confdefs.h. */ 8655int i; 8656_ACEOF 8657if ac_fn_c_try_compile "$LINENO"; then : 8658 xorg_cv_cc_flag_unknown_warning_option=yes 8659else 8660 xorg_cv_cc_flag_unknown_warning_option=no 8661fi 8662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8663fi 8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8666 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8667 CFLAGS="$xorg_testset_save_CFLAGS" 8668fi 8669 8670if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8673 fi 8674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679else 8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8681/* end confdefs.h. */ 8682int i; 8683_ACEOF 8684if ac_fn_c_try_compile "$LINENO"; then : 8685 xorg_cv_cc_flag_unused_command_line_argument=yes 8686else 8687 xorg_cv_cc_flag_unused_command_line_argument=no 8688fi 8689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8690fi 8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8693 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8694 CFLAGS="$xorg_testset_save_CFLAGS" 8695fi 8696 8697found="no" 8698 8699 if test $found = "no" ; then 8700 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8702 fi 8703 8704 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8706 fi 8707 8708 CFLAGS="$CFLAGS -Wreturn-type" 8709 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 8711$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 8712 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type` 8713 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8714 $as_echo_n "(cached) " >&6 8715else 8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8717/* end confdefs.h. */ 8718int i; 8719int 8720main () 8721{ 8722 8723 ; 8724 return 0; 8725} 8726_ACEOF 8727if ac_fn_c_try_link "$LINENO"; then : 8728 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8729else 8730 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8731fi 8732rm -f core conftest.err conftest.$ac_objext \ 8733 conftest$ac_exeext conftest.$ac_ext 8734fi 8735 8736 8737 CFLAGS="$xorg_testset_save_CFLAGS" 8738 8739 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8741$as_echo "$supported" >&6; } 8742 if test "$supported" = "yes" ; then 8743 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 8744 found="yes" 8745 fi 8746 fi 8747 8748 8749 8750 8751 8752 8753 8754xorg_testset_save_CFLAGS="$CFLAGS" 8755 8756if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8761 $as_echo_n "(cached) " >&6 8762else 8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8764/* end confdefs.h. */ 8765int i; 8766_ACEOF 8767if ac_fn_c_try_compile "$LINENO"; then : 8768 xorg_cv_cc_flag_unknown_warning_option=yes 8769else 8770 xorg_cv_cc_flag_unknown_warning_option=no 8771fi 8772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8773fi 8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8776 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8777 CFLAGS="$xorg_testset_save_CFLAGS" 8778fi 8779 8780if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8783 fi 8784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8788 $as_echo_n "(cached) " >&6 8789else 8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8791/* end confdefs.h. */ 8792int i; 8793_ACEOF 8794if ac_fn_c_try_compile "$LINENO"; then : 8795 xorg_cv_cc_flag_unused_command_line_argument=yes 8796else 8797 xorg_cv_cc_flag_unused_command_line_argument=no 8798fi 8799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8800fi 8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8803 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8804 CFLAGS="$xorg_testset_save_CFLAGS" 8805fi 8806 8807found="no" 8808 8809 if test $found = "no" ; then 8810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8812 fi 8813 8814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8816 fi 8817 8818 CFLAGS="$CFLAGS -Wtrigraphs" 8819 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 8821$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 8822 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs` 8823 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8824 $as_echo_n "(cached) " >&6 8825else 8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8827/* end confdefs.h. */ 8828int i; 8829int 8830main () 8831{ 8832 8833 ; 8834 return 0; 8835} 8836_ACEOF 8837if ac_fn_c_try_link "$LINENO"; then : 8838 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8839else 8840 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8841fi 8842rm -f core conftest.err conftest.$ac_objext \ 8843 conftest$ac_exeext conftest.$ac_ext 8844fi 8845 8846 8847 CFLAGS="$xorg_testset_save_CFLAGS" 8848 8849 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8851$as_echo "$supported" >&6; } 8852 if test "$supported" = "yes" ; then 8853 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 8854 found="yes" 8855 fi 8856 fi 8857 8858 8859 8860 8861 8862 8863 8864xorg_testset_save_CFLAGS="$CFLAGS" 8865 8866if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8869$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8870if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8871 $as_echo_n "(cached) " >&6 8872else 8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8874/* end confdefs.h. */ 8875int i; 8876_ACEOF 8877if ac_fn_c_try_compile "$LINENO"; then : 8878 xorg_cv_cc_flag_unknown_warning_option=yes 8879else 8880 xorg_cv_cc_flag_unknown_warning_option=no 8881fi 8882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8883fi 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8885$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8886 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8887 CFLAGS="$xorg_testset_save_CFLAGS" 8888fi 8889 8890if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8893 fi 8894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8896$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8897if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8898 $as_echo_n "(cached) " >&6 8899else 8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8901/* end confdefs.h. */ 8902int i; 8903_ACEOF 8904if ac_fn_c_try_compile "$LINENO"; then : 8905 xorg_cv_cc_flag_unused_command_line_argument=yes 8906else 8907 xorg_cv_cc_flag_unused_command_line_argument=no 8908fi 8909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8910fi 8911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8912$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8913 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8914 CFLAGS="$xorg_testset_save_CFLAGS" 8915fi 8916 8917found="no" 8918 8919 if test $found = "no" ; then 8920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8922 fi 8923 8924 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8926 fi 8927 8928 CFLAGS="$CFLAGS -Warray-bounds" 8929 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 8931$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 8932 cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds` 8933 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8934 $as_echo_n "(cached) " >&6 8935else 8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8937/* end confdefs.h. */ 8938int i; 8939int 8940main () 8941{ 8942 8943 ; 8944 return 0; 8945} 8946_ACEOF 8947if ac_fn_c_try_link "$LINENO"; then : 8948 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8949else 8950 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8951fi 8952rm -f core conftest.err conftest.$ac_objext \ 8953 conftest$ac_exeext conftest.$ac_ext 8954fi 8955 8956 8957 CFLAGS="$xorg_testset_save_CFLAGS" 8958 8959 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8961$as_echo "$supported" >&6; } 8962 if test "$supported" = "yes" ; then 8963 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 8964 found="yes" 8965 fi 8966 fi 8967 8968 8969 8970 8971 8972 8973 8974xorg_testset_save_CFLAGS="$CFLAGS" 8975 8976if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8981 $as_echo_n "(cached) " >&6 8982else 8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984/* end confdefs.h. */ 8985int i; 8986_ACEOF 8987if ac_fn_c_try_compile "$LINENO"; then : 8988 xorg_cv_cc_flag_unknown_warning_option=yes 8989else 8990 xorg_cv_cc_flag_unknown_warning_option=no 8991fi 8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8993fi 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8996 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8997 CFLAGS="$xorg_testset_save_CFLAGS" 8998fi 8999 9000if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9001 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9003 fi 9004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9008 $as_echo_n "(cached) " >&6 9009else 9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9011/* end confdefs.h. */ 9012int i; 9013_ACEOF 9014if ac_fn_c_try_compile "$LINENO"; then : 9015 xorg_cv_cc_flag_unused_command_line_argument=yes 9016else 9017 xorg_cv_cc_flag_unused_command_line_argument=no 9018fi 9019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9020fi 9021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9023 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9024 CFLAGS="$xorg_testset_save_CFLAGS" 9025fi 9026 9027found="no" 9028 9029 if test $found = "no" ; then 9030 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9032 fi 9033 9034 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9036 fi 9037 9038 CFLAGS="$CFLAGS -Wwrite-strings" 9039 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9041$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9042 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings` 9043 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9044 $as_echo_n "(cached) " >&6 9045else 9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047/* end confdefs.h. */ 9048int i; 9049int 9050main () 9051{ 9052 9053 ; 9054 return 0; 9055} 9056_ACEOF 9057if ac_fn_c_try_link "$LINENO"; then : 9058 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9059else 9060 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9061fi 9062rm -f core conftest.err conftest.$ac_objext \ 9063 conftest$ac_exeext conftest.$ac_ext 9064fi 9065 9066 9067 CFLAGS="$xorg_testset_save_CFLAGS" 9068 9069 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9071$as_echo "$supported" >&6; } 9072 if test "$supported" = "yes" ; then 9073 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9074 found="yes" 9075 fi 9076 fi 9077 9078 9079 9080 9081 9082 9083 9084xorg_testset_save_CFLAGS="$CFLAGS" 9085 9086if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9091 $as_echo_n "(cached) " >&6 9092else 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094/* end confdefs.h. */ 9095int i; 9096_ACEOF 9097if ac_fn_c_try_compile "$LINENO"; then : 9098 xorg_cv_cc_flag_unknown_warning_option=yes 9099else 9100 xorg_cv_cc_flag_unknown_warning_option=no 9101fi 9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9103fi 9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9106 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9107 CFLAGS="$xorg_testset_save_CFLAGS" 9108fi 9109 9110if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9113 fi 9114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9118 $as_echo_n "(cached) " >&6 9119else 9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9121/* end confdefs.h. */ 9122int i; 9123_ACEOF 9124if ac_fn_c_try_compile "$LINENO"; then : 9125 xorg_cv_cc_flag_unused_command_line_argument=yes 9126else 9127 xorg_cv_cc_flag_unused_command_line_argument=no 9128fi 9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9130fi 9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9133 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9134 CFLAGS="$xorg_testset_save_CFLAGS" 9135fi 9136 9137found="no" 9138 9139 if test $found = "no" ; then 9140 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9142 fi 9143 9144 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9146 fi 9147 9148 CFLAGS="$CFLAGS -Waddress" 9149 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9151$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9152 cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress` 9153 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9154 $as_echo_n "(cached) " >&6 9155else 9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9157/* end confdefs.h. */ 9158int i; 9159int 9160main () 9161{ 9162 9163 ; 9164 return 0; 9165} 9166_ACEOF 9167if ac_fn_c_try_link "$LINENO"; then : 9168 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9169else 9170 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9171fi 9172rm -f core conftest.err conftest.$ac_objext \ 9173 conftest$ac_exeext conftest.$ac_ext 9174fi 9175 9176 9177 CFLAGS="$xorg_testset_save_CFLAGS" 9178 9179 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9181$as_echo "$supported" >&6; } 9182 if test "$supported" = "yes" ; then 9183 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9184 found="yes" 9185 fi 9186 fi 9187 9188 9189 9190 9191 9192 9193 9194xorg_testset_save_CFLAGS="$CFLAGS" 9195 9196if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9201 $as_echo_n "(cached) " >&6 9202else 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205int i; 9206_ACEOF 9207if ac_fn_c_try_compile "$LINENO"; then : 9208 xorg_cv_cc_flag_unknown_warning_option=yes 9209else 9210 xorg_cv_cc_flag_unknown_warning_option=no 9211fi 9212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9213fi 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9216 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9217 CFLAGS="$xorg_testset_save_CFLAGS" 9218fi 9219 9220if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9223 fi 9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9228 $as_echo_n "(cached) " >&6 9229else 9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9231/* end confdefs.h. */ 9232int i; 9233_ACEOF 9234if ac_fn_c_try_compile "$LINENO"; then : 9235 xorg_cv_cc_flag_unused_command_line_argument=yes 9236else 9237 xorg_cv_cc_flag_unused_command_line_argument=no 9238fi 9239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9240fi 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9243 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9244 CFLAGS="$xorg_testset_save_CFLAGS" 9245fi 9246 9247found="no" 9248 9249 if test $found = "no" ; then 9250 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9252 fi 9253 9254 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9256 fi 9257 9258 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9259 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9261$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9262 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast` 9263 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9264 $as_echo_n "(cached) " >&6 9265else 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9267/* end confdefs.h. */ 9268int i; 9269int 9270main () 9271{ 9272 9273 ; 9274 return 0; 9275} 9276_ACEOF 9277if ac_fn_c_try_link "$LINENO"; then : 9278 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9279else 9280 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9281fi 9282rm -f core conftest.err conftest.$ac_objext \ 9283 conftest$ac_exeext conftest.$ac_ext 9284fi 9285 9286 9287 CFLAGS="$xorg_testset_save_CFLAGS" 9288 9289 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9291$as_echo "$supported" >&6; } 9292 if test "$supported" = "yes" ; then 9293 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9294 found="yes" 9295 fi 9296 fi 9297 9298 9299 9300 9301 9302 9303 9304xorg_testset_save_CFLAGS="$CFLAGS" 9305 9306if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9314/* end confdefs.h. */ 9315int i; 9316_ACEOF 9317if ac_fn_c_try_compile "$LINENO"; then : 9318 xorg_cv_cc_flag_unknown_warning_option=yes 9319else 9320 xorg_cv_cc_flag_unknown_warning_option=no 9321fi 9322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9323fi 9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9326 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9327 CFLAGS="$xorg_testset_save_CFLAGS" 9328fi 9329 9330if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9333 fi 9334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9338 $as_echo_n "(cached) " >&6 9339else 9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9341/* end confdefs.h. */ 9342int i; 9343_ACEOF 9344if ac_fn_c_try_compile "$LINENO"; then : 9345 xorg_cv_cc_flag_unused_command_line_argument=yes 9346else 9347 xorg_cv_cc_flag_unused_command_line_argument=no 9348fi 9349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9350fi 9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9353 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9354 CFLAGS="$xorg_testset_save_CFLAGS" 9355fi 9356 9357found="no" 9358 9359 if test $found = "no" ; then 9360 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 fi 9363 9364 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9366 fi 9367 9368 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9369 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9371$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9372 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast` 9373 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9374 $as_echo_n "(cached) " >&6 9375else 9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9377/* end confdefs.h. */ 9378int i; 9379int 9380main () 9381{ 9382 9383 ; 9384 return 0; 9385} 9386_ACEOF 9387if ac_fn_c_try_link "$LINENO"; then : 9388 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9389else 9390 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9391fi 9392rm -f core conftest.err conftest.$ac_objext \ 9393 conftest$ac_exeext conftest.$ac_ext 9394fi 9395 9396 9397 CFLAGS="$xorg_testset_save_CFLAGS" 9398 9399 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9401$as_echo "$supported" >&6; } 9402 if test "$supported" = "yes" ; then 9403 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9404 found="yes" 9405 fi 9406 fi 9407 9408 9409fi 9410 9411 9412 9413 9414 9415 9416CWARNFLAGS="$BASE_CFLAGS" 9417if test "x$GCC" = xyes ; then 9418 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9419fi 9420 9421 9422 9423 9424 9425 9426# Check whether --enable-strict-compilation was given. 9427if test "${enable_strict_compilation+set}" = set; then : 9428 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9429else 9430 STRICT_COMPILE=no 9431fi 9432 9433 9434STRICT_CFLAGS="" 9435 9436 9437 9438 9439 9440xorg_testset_save_CFLAGS="$CFLAGS" 9441 9442if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9447 $as_echo_n "(cached) " >&6 9448else 9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9450/* end confdefs.h. */ 9451int i; 9452_ACEOF 9453if ac_fn_c_try_compile "$LINENO"; then : 9454 xorg_cv_cc_flag_unknown_warning_option=yes 9455else 9456 xorg_cv_cc_flag_unknown_warning_option=no 9457fi 9458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9459fi 9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9462 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9463 CFLAGS="$xorg_testset_save_CFLAGS" 9464fi 9465 9466if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9467 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9469 fi 9470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9474 $as_echo_n "(cached) " >&6 9475else 9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9477/* end confdefs.h. */ 9478int i; 9479_ACEOF 9480if ac_fn_c_try_compile "$LINENO"; then : 9481 xorg_cv_cc_flag_unused_command_line_argument=yes 9482else 9483 xorg_cv_cc_flag_unused_command_line_argument=no 9484fi 9485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9486fi 9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9489 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9490 CFLAGS="$xorg_testset_save_CFLAGS" 9491fi 9492 9493found="no" 9494 9495 if test $found = "no" ; then 9496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9498 fi 9499 9500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9502 fi 9503 9504 CFLAGS="$CFLAGS -pedantic" 9505 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9507$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9508 cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic` 9509 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9510 $as_echo_n "(cached) " >&6 9511else 9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9513/* end confdefs.h. */ 9514int i; 9515int 9516main () 9517{ 9518 9519 ; 9520 return 0; 9521} 9522_ACEOF 9523if ac_fn_c_try_link "$LINENO"; then : 9524 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9525else 9526 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9527fi 9528rm -f core conftest.err conftest.$ac_objext \ 9529 conftest$ac_exeext conftest.$ac_ext 9530fi 9531 9532 9533 CFLAGS="$xorg_testset_save_CFLAGS" 9534 9535 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9537$as_echo "$supported" >&6; } 9538 if test "$supported" = "yes" ; then 9539 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9540 found="yes" 9541 fi 9542 fi 9543 9544 9545 9546 9547 9548 9549 9550xorg_testset_save_CFLAGS="$CFLAGS" 9551 9552if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558else 9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9560/* end confdefs.h. */ 9561int i; 9562_ACEOF 9563if ac_fn_c_try_compile "$LINENO"; then : 9564 xorg_cv_cc_flag_unknown_warning_option=yes 9565else 9566 xorg_cv_cc_flag_unknown_warning_option=no 9567fi 9568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9569fi 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9572 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574fi 9575 9576if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9577 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9579 fi 9580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9584 $as_echo_n "(cached) " >&6 9585else 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587/* end confdefs.h. */ 9588int i; 9589_ACEOF 9590if ac_fn_c_try_compile "$LINENO"; then : 9591 xorg_cv_cc_flag_unused_command_line_argument=yes 9592else 9593 xorg_cv_cc_flag_unused_command_line_argument=no 9594fi 9595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9596fi 9597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9599 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9600 CFLAGS="$xorg_testset_save_CFLAGS" 9601fi 9602 9603found="no" 9604 9605 if test $found = "no" ; then 9606 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9608 fi 9609 9610 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9612 fi 9613 9614 CFLAGS="$CFLAGS -Werror" 9615 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 9617$as_echo_n "checking if $CC supports -Werror... " >&6; } 9618 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror` 9619 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9620 $as_echo_n "(cached) " >&6 9621else 9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9623/* end confdefs.h. */ 9624int i; 9625int 9626main () 9627{ 9628 9629 ; 9630 return 0; 9631} 9632_ACEOF 9633if ac_fn_c_try_link "$LINENO"; then : 9634 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9635else 9636 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9637fi 9638rm -f core conftest.err conftest.$ac_objext \ 9639 conftest$ac_exeext conftest.$ac_ext 9640fi 9641 9642 9643 CFLAGS="$xorg_testset_save_CFLAGS" 9644 9645 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9647$as_echo "$supported" >&6; } 9648 if test "$supported" = "yes" ; then 9649 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 9650 found="yes" 9651 fi 9652 fi 9653 9654 if test $found = "no" ; then 9655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9657 fi 9658 9659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9661 fi 9662 9663 CFLAGS="$CFLAGS -errwarn" 9664 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 9666$as_echo_n "checking if $CC supports -errwarn... " >&6; } 9667 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn` 9668 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9669 $as_echo_n "(cached) " >&6 9670else 9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9672/* end confdefs.h. */ 9673int i; 9674int 9675main () 9676{ 9677 9678 ; 9679 return 0; 9680} 9681_ACEOF 9682if ac_fn_c_try_link "$LINENO"; then : 9683 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9684else 9685 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9686fi 9687rm -f core conftest.err conftest.$ac_objext \ 9688 conftest$ac_exeext conftest.$ac_ext 9689fi 9690 9691 9692 CFLAGS="$xorg_testset_save_CFLAGS" 9693 9694 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9696$as_echo "$supported" >&6; } 9697 if test "$supported" = "yes" ; then 9698 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 9699 found="yes" 9700 fi 9701 fi 9702 9703 9704 9705# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 9706# activate it with -Werror, so we add it here explicitly. 9707 9708 9709 9710 9711 9712xorg_testset_save_CFLAGS="$CFLAGS" 9713 9714if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9717$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9718if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723int i; 9724_ACEOF 9725if ac_fn_c_try_compile "$LINENO"; then : 9726 xorg_cv_cc_flag_unknown_warning_option=yes 9727else 9728 xorg_cv_cc_flag_unknown_warning_option=no 9729fi 9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9731fi 9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9733$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9734 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9735 CFLAGS="$xorg_testset_save_CFLAGS" 9736fi 9737 9738if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9741 fi 9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9744$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9745if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9749/* end confdefs.h. */ 9750int i; 9751_ACEOF 9752if ac_fn_c_try_compile "$LINENO"; then : 9753 xorg_cv_cc_flag_unused_command_line_argument=yes 9754else 9755 xorg_cv_cc_flag_unused_command_line_argument=no 9756fi 9757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9758fi 9759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9760$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9761 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9762 CFLAGS="$xorg_testset_save_CFLAGS" 9763fi 9764 9765found="no" 9766 9767 if test $found = "no" ; then 9768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9770 fi 9771 9772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9774 fi 9775 9776 CFLAGS="$CFLAGS -Werror=attributes" 9777 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 9779$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 9780 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes` 9781 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9782 $as_echo_n "(cached) " >&6 9783else 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785/* end confdefs.h. */ 9786int i; 9787int 9788main () 9789{ 9790 9791 ; 9792 return 0; 9793} 9794_ACEOF 9795if ac_fn_c_try_link "$LINENO"; then : 9796 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9797else 9798 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9799fi 9800rm -f core conftest.err conftest.$ac_objext \ 9801 conftest$ac_exeext conftest.$ac_ext 9802fi 9803 9804 9805 CFLAGS="$xorg_testset_save_CFLAGS" 9806 9807 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9809$as_echo "$supported" >&6; } 9810 if test "$supported" = "yes" ; then 9811 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 9812 found="yes" 9813 fi 9814 fi 9815 9816 9817 9818if test "x$STRICT_COMPILE" = "xyes"; then 9819 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 9820 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 9821fi 9822 9823 9824 9825 9826 9827 9828cat >>confdefs.h <<_ACEOF 9829#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 9830_ACEOF 9831 9832 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 9833 if test "x$PVM" = "x"; then 9834 PVM="0" 9835 fi 9836 9837cat >>confdefs.h <<_ACEOF 9838#define PACKAGE_VERSION_MINOR $PVM 9839_ACEOF 9840 9841 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 9842 if test "x$PVP" = "x"; then 9843 PVP="0" 9844 fi 9845 9846cat >>confdefs.h <<_ACEOF 9847#define PACKAGE_VERSION_PATCHLEVEL $PVP 9848_ACEOF 9849 9850 9851 9852CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 9853mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 9854|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 9855echo 'git directory not found: installing possibly empty changelog.' >&2)" 9856 9857 9858 9859 9860macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 9861INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 9862mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 9863|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 9864echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 9865 9866 9867 9868 9869 9870 9871if test x$APP_MAN_SUFFIX = x ; then 9872 APP_MAN_SUFFIX=1 9873fi 9874if test x$APP_MAN_DIR = x ; then 9875 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 9876fi 9877 9878if test x$LIB_MAN_SUFFIX = x ; then 9879 LIB_MAN_SUFFIX=3 9880fi 9881if test x$LIB_MAN_DIR = x ; then 9882 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 9883fi 9884 9885if test x$FILE_MAN_SUFFIX = x ; then 9886 case $host_os in 9887 solaris*) FILE_MAN_SUFFIX=4 ;; 9888 *) FILE_MAN_SUFFIX=5 ;; 9889 esac 9890fi 9891if test x$FILE_MAN_DIR = x ; then 9892 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 9893fi 9894 9895if test x$MISC_MAN_SUFFIX = x ; then 9896 case $host_os in 9897 solaris*) MISC_MAN_SUFFIX=5 ;; 9898 *) MISC_MAN_SUFFIX=7 ;; 9899 esac 9900fi 9901if test x$MISC_MAN_DIR = x ; then 9902 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 9903fi 9904 9905if test x$DRIVER_MAN_SUFFIX = x ; then 9906 case $host_os in 9907 solaris*) DRIVER_MAN_SUFFIX=7 ;; 9908 *) DRIVER_MAN_SUFFIX=4 ;; 9909 esac 9910fi 9911if test x$DRIVER_MAN_DIR = x ; then 9912 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 9913fi 9914 9915if test x$ADMIN_MAN_SUFFIX = x ; then 9916 case $host_os in 9917 solaris*) ADMIN_MAN_SUFFIX=1m ;; 9918 *) ADMIN_MAN_SUFFIX=8 ;; 9919 esac 9920fi 9921if test x$ADMIN_MAN_DIR = x ; then 9922 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 9923fi 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939XORG_MAN_PAGE="X Version 11" 9940 9941MAN_SUBSTS="\ 9942 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 9943 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 9944 -e 's|__xservername__|Xorg|g' \ 9945 -e 's|__xconfigfile__|xorg.conf|g' \ 9946 -e 's|__projectroot__|\$(prefix)|g' \ 9947 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 9948 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 9949 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 9950 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 9951 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 9952 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 9953 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 9954 9955 9956 9957# Check whether --enable-silent-rules was given. 9958if test "${enable_silent_rules+set}" = set; then : 9959 enableval=$enable_silent_rules; 9960fi 9961 9962case $enable_silent_rules in 9963yes) AM_DEFAULT_VERBOSITY=0;; 9964no) AM_DEFAULT_VERBOSITY=1;; 9965*) AM_DEFAULT_VERBOSITY=0;; 9966esac 9967AM_BACKSLASH='\' 9968 9969 9970 9971# Checks for pkg-config packages 9972 9973pkg_failed=no 9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCMSDB" >&5 9975$as_echo_n "checking for XCMSDB... " >&6; } 9976 9977if test -n "$XCMSDB_CFLAGS"; then 9978 pkg_cv_XCMSDB_CFLAGS="$XCMSDB_CFLAGS" 9979 elif test -n "$PKG_CONFIG"; then 9980 if test -n "$PKG_CONFIG" && \ 9981 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 9982 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 9983 ac_status=$? 9984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9985 test $ac_status = 0; }; then 9986 pkg_cv_XCMSDB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 9987else 9988 pkg_failed=yes 9989fi 9990 else 9991 pkg_failed=untried 9992fi 9993if test -n "$XCMSDB_LIBS"; then 9994 pkg_cv_XCMSDB_LIBS="$XCMSDB_LIBS" 9995 elif test -n "$PKG_CONFIG"; then 9996 if test -n "$PKG_CONFIG" && \ 9997 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 9998 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 9999 ac_status=$? 10000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10001 test $ac_status = 0; }; then 10002 pkg_cv_XCMSDB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 10003else 10004 pkg_failed=yes 10005fi 10006 else 10007 pkg_failed=untried 10008fi 10009 10010 10011 10012if test $pkg_failed = yes; then 10013 10014if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10015 _pkg_short_errors_supported=yes 10016else 10017 _pkg_short_errors_supported=no 10018fi 10019 if test $_pkg_short_errors_supported = yes; then 10020 XCMSDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` 10021 else 10022 XCMSDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` 10023 fi 10024 # Put the nasty error message in config.log where it belongs 10025 echo "$XCMSDB_PKG_ERRORS" >&5 10026 10027 as_fn_error $? "Package requirements (x11) were not met: 10028 10029$XCMSDB_PKG_ERRORS 10030 10031Consider adjusting the PKG_CONFIG_PATH environment variable if you 10032installed software in a non-standard prefix. 10033 10034Alternatively, you may set the environment variables XCMSDB_CFLAGS 10035and XCMSDB_LIBS to avoid the need to call pkg-config. 10036See the pkg-config man page for more details. 10037" "$LINENO" 5 10038elif test $pkg_failed = untried; then 10039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10041as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10042is in your PATH or set the PKG_CONFIG environment variable to the full 10043path to pkg-config. 10044 10045Alternatively, you may set the environment variables XCMSDB_CFLAGS 10046and XCMSDB_LIBS to avoid the need to call pkg-config. 10047See the pkg-config man page for more details. 10048 10049To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10050See \`config.log' for more details" "$LINENO" 5; } 10051else 10052 XCMSDB_CFLAGS=$pkg_cv_XCMSDB_CFLAGS 10053 XCMSDB_LIBS=$pkg_cv_XCMSDB_LIBS 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10055$as_echo "yes" >&6; } 10056 : 10057fi 10058 10059ac_config_files="$ac_config_files Makefile man/Makefile" 10060 10061cat >confcache <<\_ACEOF 10062# This file is a shell script that caches the results of configure 10063# tests run on this system so they can be shared between configure 10064# scripts and configure runs, see configure's option --config-cache. 10065# It is not useful on other systems. If it contains results you don't 10066# want to keep, you may remove or edit it. 10067# 10068# config.status only pays attention to the cache file if you give it 10069# the --recheck option to rerun configure. 10070# 10071# `ac_cv_env_foo' variables (set or unset) will be overridden when 10072# loading this file, other *unset* `ac_cv_foo' will be assigned the 10073# following values. 10074 10075_ACEOF 10076 10077# The following way of writing the cache mishandles newlines in values, 10078# but we know of no workaround that is simple, portable, and efficient. 10079# So, we kill variables containing newlines. 10080# Ultrix sh set writes to stderr and can't be redirected directly, 10081# and sets the high bit in the cache file unless we assign to the vars. 10082( 10083 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10084 eval ac_val=\$$ac_var 10085 case $ac_val in #( 10086 *${as_nl}*) 10087 case $ac_var in #( 10088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10090 esac 10091 case $ac_var in #( 10092 _ | IFS | as_nl) ;; #( 10093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10094 *) { eval $ac_var=; unset $ac_var;} ;; 10095 esac ;; 10096 esac 10097 done 10098 10099 (set) 2>&1 | 10100 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10101 *${as_nl}ac_space=\ *) 10102 # `set' does not quote correctly, so add quotes: double-quote 10103 # substitution turns \\\\ into \\, and sed turns \\ into \. 10104 sed -n \ 10105 "s/'/'\\\\''/g; 10106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10107 ;; #( 10108 *) 10109 # `set' quotes correctly as required by POSIX, so do not add quotes. 10110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10111 ;; 10112 esac | 10113 sort 10114) | 10115 sed ' 10116 /^ac_cv_env_/b end 10117 t clear 10118 :clear 10119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10120 t end 10121 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10122 :end' >>confcache 10123if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10124 if test -w "$cache_file"; then 10125 if test "x$cache_file" != "x/dev/null"; then 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10127$as_echo "$as_me: updating cache $cache_file" >&6;} 10128 if test ! -f "$cache_file" || test -h "$cache_file"; then 10129 cat confcache >"$cache_file" 10130 else 10131 case $cache_file in #( 10132 */* | ?:*) 10133 mv -f confcache "$cache_file"$$ && 10134 mv -f "$cache_file"$$ "$cache_file" ;; #( 10135 *) 10136 mv -f confcache "$cache_file" ;; 10137 esac 10138 fi 10139 fi 10140 else 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10142$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10143 fi 10144fi 10145rm -f confcache 10146 10147test "x$prefix" = xNONE && prefix=$ac_default_prefix 10148# Let make expand exec_prefix. 10149test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10150 10151DEFS=-DHAVE_CONFIG_H 10152 10153ac_libobjs= 10154ac_ltlibobjs= 10155U= 10156for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10157 # 1. Remove the extension, and $U if already installed. 10158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10159 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10161 # will be set to the directory where LIBOBJS objects are built. 10162 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10163 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10164done 10165LIBOBJS=$ac_libobjs 10166 10167LTLIBOBJS=$ac_ltlibobjs 10168 10169 10170 if test -n "$EXEEXT"; then 10171 am__EXEEXT_TRUE= 10172 am__EXEEXT_FALSE='#' 10173else 10174 am__EXEEXT_TRUE='#' 10175 am__EXEEXT_FALSE= 10176fi 10177 10178if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10179 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10180Usually this means the macro was only invoked conditionally." "$LINENO" 5 10181fi 10182if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10183 as_fn_error $? "conditional \"AMDEP\" was never defined. 10184Usually this means the macro was only invoked conditionally." "$LINENO" 5 10185fi 10186if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10187 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10188Usually this means the macro was only invoked conditionally." "$LINENO" 5 10189fi 10190 10191: "${CONFIG_STATUS=./config.status}" 10192ac_write_fail=0 10193ac_clean_files_save=$ac_clean_files 10194ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10195{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10196$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10197as_write_fail=0 10198cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10199#! $SHELL 10200# Generated by $as_me. 10201# Run this file to recreate the current configuration. 10202# Compiler output produced by configure, useful for debugging 10203# configure, is in config.log if it exists. 10204 10205debug=false 10206ac_cs_recheck=false 10207ac_cs_silent=false 10208 10209SHELL=\${CONFIG_SHELL-$SHELL} 10210export SHELL 10211_ASEOF 10212cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10213## -------------------- ## 10214## M4sh Initialization. ## 10215## -------------------- ## 10216 10217# Be more Bourne compatible 10218DUALCASE=1; export DUALCASE # for MKS sh 10219if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10220 emulate sh 10221 NULLCMD=: 10222 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10223 # is contrary to our usage. Disable this feature. 10224 alias -g '${1+"$@"}'='"$@"' 10225 setopt NO_GLOB_SUBST 10226else 10227 case `(set -o) 2>/dev/null` in #( 10228 *posix*) : 10229 set -o posix ;; #( 10230 *) : 10231 ;; 10232esac 10233fi 10234 10235 10236as_nl=' 10237' 10238export as_nl 10239# Printing a long string crashes Solaris 7 /usr/bin/printf. 10240as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10241as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10242as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10243# Prefer a ksh shell builtin over an external printf program on Solaris, 10244# but without wasting forks for bash or zsh. 10245if test -z "$BASH_VERSION$ZSH_VERSION" \ 10246 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10247 as_echo='print -r --' 10248 as_echo_n='print -rn --' 10249elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10250 as_echo='printf %s\n' 10251 as_echo_n='printf %s' 10252else 10253 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10254 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10255 as_echo_n='/usr/ucb/echo -n' 10256 else 10257 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10258 as_echo_n_body='eval 10259 arg=$1; 10260 case $arg in #( 10261 *"$as_nl"*) 10262 expr "X$arg" : "X\\(.*\\)$as_nl"; 10263 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10264 esac; 10265 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10266 ' 10267 export as_echo_n_body 10268 as_echo_n='sh -c $as_echo_n_body as_echo' 10269 fi 10270 export as_echo_body 10271 as_echo='sh -c $as_echo_body as_echo' 10272fi 10273 10274# The user is always right. 10275if test "${PATH_SEPARATOR+set}" != set; then 10276 PATH_SEPARATOR=: 10277 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10278 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10279 PATH_SEPARATOR=';' 10280 } 10281fi 10282 10283 10284# IFS 10285# We need space, tab and new line, in precisely that order. Quoting is 10286# there to prevent editors from complaining about space-tab. 10287# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10288# splitting by setting IFS to empty value.) 10289IFS=" "" $as_nl" 10290 10291# Find who we are. Look in the path if we contain no directory separator. 10292as_myself= 10293case $0 in #(( 10294 *[\\/]* ) as_myself=$0 ;; 10295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10296for as_dir in $PATH 10297do 10298 IFS=$as_save_IFS 10299 test -z "$as_dir" && as_dir=. 10300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10301 done 10302IFS=$as_save_IFS 10303 10304 ;; 10305esac 10306# We did not find ourselves, most probably we were run as `sh COMMAND' 10307# in which case we are not to be found in the path. 10308if test "x$as_myself" = x; then 10309 as_myself=$0 10310fi 10311if test ! -f "$as_myself"; then 10312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10313 exit 1 10314fi 10315 10316# Unset variables that we do not need and which cause bugs (e.g. in 10317# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10318# suppresses any "Segmentation fault" message there. '((' could 10319# trigger a bug in pdksh 5.2.14. 10320for as_var in BASH_ENV ENV MAIL MAILPATH 10321do eval test x\${$as_var+set} = xset \ 10322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10323done 10324PS1='$ ' 10325PS2='> ' 10326PS4='+ ' 10327 10328# NLS nuisances. 10329LC_ALL=C 10330export LC_ALL 10331LANGUAGE=C 10332export LANGUAGE 10333 10334# CDPATH. 10335(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10336 10337 10338# as_fn_error STATUS ERROR [LINENO LOG_FD] 10339# ---------------------------------------- 10340# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10341# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10342# script with STATUS, using 1 if that was 0. 10343as_fn_error () 10344{ 10345 as_status=$1; test $as_status -eq 0 && as_status=1 10346 if test "$4"; then 10347 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10349 fi 10350 $as_echo "$as_me: error: $2" >&2 10351 as_fn_exit $as_status 10352} # as_fn_error 10353 10354 10355# as_fn_set_status STATUS 10356# ----------------------- 10357# Set $? to STATUS, without forking. 10358as_fn_set_status () 10359{ 10360 return $1 10361} # as_fn_set_status 10362 10363# as_fn_exit STATUS 10364# ----------------- 10365# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10366as_fn_exit () 10367{ 10368 set +e 10369 as_fn_set_status $1 10370 exit $1 10371} # as_fn_exit 10372 10373# as_fn_unset VAR 10374# --------------- 10375# Portably unset VAR. 10376as_fn_unset () 10377{ 10378 { eval $1=; unset $1;} 10379} 10380as_unset=as_fn_unset 10381# as_fn_append VAR VALUE 10382# ---------------------- 10383# Append the text in VALUE to the end of the definition contained in VAR. Take 10384# advantage of any shell optimizations that allow amortized linear growth over 10385# repeated appends, instead of the typical quadratic growth present in naive 10386# implementations. 10387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10388 eval 'as_fn_append () 10389 { 10390 eval $1+=\$2 10391 }' 10392else 10393 as_fn_append () 10394 { 10395 eval $1=\$$1\$2 10396 } 10397fi # as_fn_append 10398 10399# as_fn_arith ARG... 10400# ------------------ 10401# Perform arithmetic evaluation on the ARGs, and store the result in the 10402# global $as_val. Take advantage of shells that can avoid forks. The arguments 10403# must be portable across $(()) and expr. 10404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10405 eval 'as_fn_arith () 10406 { 10407 as_val=$(( $* )) 10408 }' 10409else 10410 as_fn_arith () 10411 { 10412 as_val=`expr "$@" || test $? -eq 1` 10413 } 10414fi # as_fn_arith 10415 10416 10417if expr a : '\(a\)' >/dev/null 2>&1 && 10418 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10419 as_expr=expr 10420else 10421 as_expr=false 10422fi 10423 10424if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10425 as_basename=basename 10426else 10427 as_basename=false 10428fi 10429 10430if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10431 as_dirname=dirname 10432else 10433 as_dirname=false 10434fi 10435 10436as_me=`$as_basename -- "$0" || 10437$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10438 X"$0" : 'X\(//\)$' \| \ 10439 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10440$as_echo X/"$0" | 10441 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10442 s//\1/ 10443 q 10444 } 10445 /^X\/\(\/\/\)$/{ 10446 s//\1/ 10447 q 10448 } 10449 /^X\/\(\/\).*/{ 10450 s//\1/ 10451 q 10452 } 10453 s/.*/./; q'` 10454 10455# Avoid depending upon Character Ranges. 10456as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10457as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10458as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10459as_cr_digits='0123456789' 10460as_cr_alnum=$as_cr_Letters$as_cr_digits 10461 10462ECHO_C= ECHO_N= ECHO_T= 10463case `echo -n x` in #((((( 10464-n*) 10465 case `echo 'xy\c'` in 10466 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10467 xy) ECHO_C='\c';; 10468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10469 ECHO_T=' ';; 10470 esac;; 10471*) 10472 ECHO_N='-n';; 10473esac 10474 10475rm -f conf$$ conf$$.exe conf$$.file 10476if test -d conf$$.dir; then 10477 rm -f conf$$.dir/conf$$.file 10478else 10479 rm -f conf$$.dir 10480 mkdir conf$$.dir 2>/dev/null 10481fi 10482if (echo >conf$$.file) 2>/dev/null; then 10483 if ln -s conf$$.file conf$$ 2>/dev/null; then 10484 as_ln_s='ln -s' 10485 # ... but there are two gotchas: 10486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10488 # In both cases, we have to default to `cp -p'. 10489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10490 as_ln_s='cp -p' 10491 elif ln conf$$.file conf$$ 2>/dev/null; then 10492 as_ln_s=ln 10493 else 10494 as_ln_s='cp -p' 10495 fi 10496else 10497 as_ln_s='cp -p' 10498fi 10499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10500rmdir conf$$.dir 2>/dev/null 10501 10502 10503# as_fn_mkdir_p 10504# ------------- 10505# Create "$as_dir" as a directory, including parents if necessary. 10506as_fn_mkdir_p () 10507{ 10508 10509 case $as_dir in #( 10510 -*) as_dir=./$as_dir;; 10511 esac 10512 test -d "$as_dir" || eval $as_mkdir_p || { 10513 as_dirs= 10514 while :; do 10515 case $as_dir in #( 10516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10517 *) as_qdir=$as_dir;; 10518 esac 10519 as_dirs="'$as_qdir' $as_dirs" 10520 as_dir=`$as_dirname -- "$as_dir" || 10521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10522 X"$as_dir" : 'X\(//\)[^/]' \| \ 10523 X"$as_dir" : 'X\(//\)$' \| \ 10524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10525$as_echo X"$as_dir" | 10526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10527 s//\1/ 10528 q 10529 } 10530 /^X\(\/\/\)[^/].*/{ 10531 s//\1/ 10532 q 10533 } 10534 /^X\(\/\/\)$/{ 10535 s//\1/ 10536 q 10537 } 10538 /^X\(\/\).*/{ 10539 s//\1/ 10540 q 10541 } 10542 s/.*/./; q'` 10543 test -d "$as_dir" && break 10544 done 10545 test -z "$as_dirs" || eval "mkdir $as_dirs" 10546 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10547 10548 10549} # as_fn_mkdir_p 10550if mkdir -p . 2>/dev/null; then 10551 as_mkdir_p='mkdir -p "$as_dir"' 10552else 10553 test -d ./-p && rmdir ./-p 10554 as_mkdir_p=false 10555fi 10556 10557if test -x / >/dev/null 2>&1; then 10558 as_test_x='test -x' 10559else 10560 if ls -dL / >/dev/null 2>&1; then 10561 as_ls_L_option=L 10562 else 10563 as_ls_L_option= 10564 fi 10565 as_test_x=' 10566 eval sh -c '\'' 10567 if test -d "$1"; then 10568 test -d "$1/."; 10569 else 10570 case $1 in #( 10571 -*)set "./$1";; 10572 esac; 10573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 10574 ???[sx]*):;;*)false;;esac;fi 10575 '\'' sh 10576 ' 10577fi 10578as_executable_p=$as_test_x 10579 10580# Sed expression to map a string onto a valid CPP name. 10581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10582 10583# Sed expression to map a string onto a valid variable name. 10584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10585 10586 10587exec 6>&1 10588## ----------------------------------- ## 10589## Main body of $CONFIG_STATUS script. ## 10590## ----------------------------------- ## 10591_ASEOF 10592test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10593 10594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10595# Save the log message, to keep $0 and so on meaningful, and to 10596# report actual input values of CONFIG_FILES etc. instead of their 10597# values after options handling. 10598ac_log=" 10599This file was extended by xcmsdb $as_me 1.0.4, which was 10600generated by GNU Autoconf 2.68. Invocation command line was 10601 10602 CONFIG_FILES = $CONFIG_FILES 10603 CONFIG_HEADERS = $CONFIG_HEADERS 10604 CONFIG_LINKS = $CONFIG_LINKS 10605 CONFIG_COMMANDS = $CONFIG_COMMANDS 10606 $ $0 $@ 10607 10608on `(hostname || uname -n) 2>/dev/null | sed 1q` 10609" 10610 10611_ACEOF 10612 10613case $ac_config_files in *" 10614"*) set x $ac_config_files; shift; ac_config_files=$*;; 10615esac 10616 10617case $ac_config_headers in *" 10618"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10619esac 10620 10621 10622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10623# Files that config.status was made for. 10624config_files="$ac_config_files" 10625config_headers="$ac_config_headers" 10626config_commands="$ac_config_commands" 10627 10628_ACEOF 10629 10630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10631ac_cs_usage="\ 10632\`$as_me' instantiates files and other configuration actions 10633from templates according to the current configuration. Unless the files 10634and actions are specified as TAGs, all are instantiated by default. 10635 10636Usage: $0 [OPTION]... [TAG]... 10637 10638 -h, --help print this help, then exit 10639 -V, --version print version number and configuration settings, then exit 10640 --config print configuration, then exit 10641 -q, --quiet, --silent 10642 do not print progress messages 10643 -d, --debug don't remove temporary files 10644 --recheck update $as_me by reconfiguring in the same conditions 10645 --file=FILE[:TEMPLATE] 10646 instantiate the configuration file FILE 10647 --header=FILE[:TEMPLATE] 10648 instantiate the configuration header FILE 10649 10650Configuration files: 10651$config_files 10652 10653Configuration headers: 10654$config_headers 10655 10656Configuration commands: 10657$config_commands 10658 10659Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 10660 10661_ACEOF 10662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10663ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10664ac_cs_version="\\ 10665xcmsdb config.status 1.0.4 10666configured by $0, generated by GNU Autoconf 2.68, 10667 with options \\"\$ac_cs_config\\" 10668 10669Copyright (C) 2010 Free Software Foundation, Inc. 10670This config.status script is free software; the Free Software Foundation 10671gives unlimited permission to copy, distribute and modify it." 10672 10673ac_pwd='$ac_pwd' 10674srcdir='$srcdir' 10675INSTALL='$INSTALL' 10676MKDIR_P='$MKDIR_P' 10677AWK='$AWK' 10678test -n "\$AWK" || AWK=awk 10679_ACEOF 10680 10681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10682# The default lists apply if the user does not specify any file. 10683ac_need_defaults=: 10684while test $# != 0 10685do 10686 case $1 in 10687 --*=?*) 10688 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10690 ac_shift=: 10691 ;; 10692 --*=) 10693 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10694 ac_optarg= 10695 ac_shift=: 10696 ;; 10697 *) 10698 ac_option=$1 10699 ac_optarg=$2 10700 ac_shift=shift 10701 ;; 10702 esac 10703 10704 case $ac_option in 10705 # Handling of the options. 10706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10707 ac_cs_recheck=: ;; 10708 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10709 $as_echo "$ac_cs_version"; exit ;; 10710 --config | --confi | --conf | --con | --co | --c ) 10711 $as_echo "$ac_cs_config"; exit ;; 10712 --debug | --debu | --deb | --de | --d | -d ) 10713 debug=: ;; 10714 --file | --fil | --fi | --f ) 10715 $ac_shift 10716 case $ac_optarg in 10717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10718 '') as_fn_error $? "missing file argument" ;; 10719 esac 10720 as_fn_append CONFIG_FILES " '$ac_optarg'" 10721 ac_need_defaults=false;; 10722 --header | --heade | --head | --hea ) 10723 $ac_shift 10724 case $ac_optarg in 10725 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10726 esac 10727 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10728 ac_need_defaults=false;; 10729 --he | --h) 10730 # Conflict between --help and --header 10731 as_fn_error $? "ambiguous option: \`$1' 10732Try \`$0 --help' for more information.";; 10733 --help | --hel | -h ) 10734 $as_echo "$ac_cs_usage"; exit ;; 10735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10736 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10737 ac_cs_silent=: ;; 10738 10739 # This is an error. 10740 -*) as_fn_error $? "unrecognized option: \`$1' 10741Try \`$0 --help' for more information." ;; 10742 10743 *) as_fn_append ac_config_targets " $1" 10744 ac_need_defaults=false ;; 10745 10746 esac 10747 shift 10748done 10749 10750ac_configure_extra_args= 10751 10752if $ac_cs_silent; then 10753 exec 6>/dev/null 10754 ac_configure_extra_args="$ac_configure_extra_args --silent" 10755fi 10756 10757_ACEOF 10758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10759if \$ac_cs_recheck; then 10760 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10761 shift 10762 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10763 CONFIG_SHELL='$SHELL' 10764 export CONFIG_SHELL 10765 exec "\$@" 10766fi 10767 10768_ACEOF 10769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10770exec 5>>config.log 10771{ 10772 echo 10773 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10774## Running $as_me. ## 10775_ASBOX 10776 $as_echo "$ac_log" 10777} >&5 10778 10779_ACEOF 10780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10781# 10782# INIT-COMMANDS 10783# 10784AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 10785 10786_ACEOF 10787 10788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10789 10790# Handling of arguments. 10791for ac_config_target in $ac_config_targets 10792do 10793 case $ac_config_target in 10794 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10795 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 10796 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10797 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 10798 10799 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10800 esac 10801done 10802 10803 10804# If the user did not use the arguments to specify the items to instantiate, 10805# then the envvar interface is used. Set only those that are not. 10806# We use the long form for the default assignment because of an extremely 10807# bizarre bug on SunOS 4.1.3. 10808if $ac_need_defaults; then 10809 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10810 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10811 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10812fi 10813 10814# Have a temporary directory for convenience. Make it in the build tree 10815# simply because there is no reason against having it here, and in addition, 10816# creating and moving files from /tmp can sometimes cause problems. 10817# Hook for its removal unless debugging. 10818# Note that there is a small window in which the directory will not be cleaned: 10819# after its creation but before its name has been assigned to `$tmp'. 10820$debug || 10821{ 10822 tmp= ac_tmp= 10823 trap 'exit_status=$? 10824 : "${ac_tmp:=$tmp}" 10825 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10826' 0 10827 trap 'as_fn_exit 1' 1 2 13 15 10828} 10829# Create a (secure) tmp directory for tmp files. 10830 10831{ 10832 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10833 test -d "$tmp" 10834} || 10835{ 10836 tmp=./conf$$-$RANDOM 10837 (umask 077 && mkdir "$tmp") 10838} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10839ac_tmp=$tmp 10840 10841# Set up the scripts for CONFIG_FILES section. 10842# No need to generate them if there are no CONFIG_FILES. 10843# This happens for instance with `./config.status config.h'. 10844if test -n "$CONFIG_FILES"; then 10845 10846 10847ac_cr=`echo X | tr X '\015'` 10848# On cygwin, bash can eat \r inside `` if the user requested igncr. 10849# But we know of no other shell where ac_cr would be empty at this 10850# point, so we can use a bashism as a fallback. 10851if test "x$ac_cr" = x; then 10852 eval ac_cr=\$\'\\r\' 10853fi 10854ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10855if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10856 ac_cs_awk_cr='\\r' 10857else 10858 ac_cs_awk_cr=$ac_cr 10859fi 10860 10861echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10862_ACEOF 10863 10864 10865{ 10866 echo "cat >conf$$subs.awk <<_ACEOF" && 10867 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10868 echo "_ACEOF" 10869} >conf$$subs.sh || 10870 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10871ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10872ac_delim='%!_!# ' 10873for ac_last_try in false false false false false :; do 10874 . ./conf$$subs.sh || 10875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10876 10877 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10878 if test $ac_delim_n = $ac_delim_num; then 10879 break 10880 elif $ac_last_try; then 10881 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10882 else 10883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10884 fi 10885done 10886rm -f conf$$subs.sh 10887 10888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10889cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10890_ACEOF 10891sed -n ' 10892h 10893s/^/S["/; s/!.*/"]=/ 10894p 10895g 10896s/^[^!]*!// 10897:repl 10898t repl 10899s/'"$ac_delim"'$// 10900t delim 10901:nl 10902h 10903s/\(.\{148\}\)..*/\1/ 10904t more1 10905s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10906p 10907n 10908b repl 10909:more1 10910s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10911p 10912g 10913s/.\{148\}// 10914t nl 10915:delim 10916h 10917s/\(.\{148\}\)..*/\1/ 10918t more2 10919s/["\\]/\\&/g; s/^/"/; s/$/"/ 10920p 10921b 10922:more2 10923s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10924p 10925g 10926s/.\{148\}// 10927t delim 10928' <conf$$subs.awk | sed ' 10929/^[^""]/{ 10930 N 10931 s/\n// 10932} 10933' >>$CONFIG_STATUS || ac_write_fail=1 10934rm -f conf$$subs.awk 10935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10936_ACAWK 10937cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10938 for (key in S) S_is_set[key] = 1 10939 FS = "" 10940 10941} 10942{ 10943 line = $ 0 10944 nfields = split(line, field, "@") 10945 substed = 0 10946 len = length(field[1]) 10947 for (i = 2; i < nfields; i++) { 10948 key = field[i] 10949 keylen = length(key) 10950 if (S_is_set[key]) { 10951 value = S[key] 10952 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10953 len += length(value) + length(field[++i]) 10954 substed = 1 10955 } else 10956 len += 1 + keylen 10957 } 10958 10959 print line 10960} 10961 10962_ACAWK 10963_ACEOF 10964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10965if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10966 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10967else 10968 cat 10969fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10970 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10971_ACEOF 10972 10973# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10974# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10975# trailing colons and then remove the whole line if VPATH becomes empty 10976# (actually we leave an empty line to preserve line numbers). 10977if test "x$srcdir" = x.; then 10978 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10979h 10980s/// 10981s/^/:/ 10982s/[ ]*$/:/ 10983s/:\$(srcdir):/:/g 10984s/:\${srcdir}:/:/g 10985s/:@srcdir@:/:/g 10986s/^:*// 10987s/:*$// 10988x 10989s/\(=[ ]*\).*/\1/ 10990G 10991s/\n// 10992s/^[^=]*=[ ]*$// 10993}' 10994fi 10995 10996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10997fi # test -n "$CONFIG_FILES" 10998 10999# Set up the scripts for CONFIG_HEADERS section. 11000# No need to generate them if there are no CONFIG_HEADERS. 11001# This happens for instance with `./config.status Makefile'. 11002if test -n "$CONFIG_HEADERS"; then 11003cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11004BEGIN { 11005_ACEOF 11006 11007# Transform confdefs.h into an awk script `defines.awk', embedded as 11008# here-document in config.status, that substitutes the proper values into 11009# config.h.in to produce config.h. 11010 11011# Create a delimiter string that does not exist in confdefs.h, to ease 11012# handling of long lines. 11013ac_delim='%!_!# ' 11014for ac_last_try in false false :; do 11015 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11016 if test -z "$ac_tt"; then 11017 break 11018 elif $ac_last_try; then 11019 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11020 else 11021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11022 fi 11023done 11024 11025# For the awk script, D is an array of macro values keyed by name, 11026# likewise P contains macro parameters if any. Preserve backslash 11027# newline sequences. 11028 11029ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11030sed -n ' 11031s/.\{148\}/&'"$ac_delim"'/g 11032t rset 11033:rset 11034s/^[ ]*#[ ]*define[ ][ ]*/ / 11035t def 11036d 11037:def 11038s/\\$// 11039t bsnl 11040s/["\\]/\\&/g 11041s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11042D["\1"]=" \3"/p 11043s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11044d 11045:bsnl 11046s/["\\]/\\&/g 11047s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11048D["\1"]=" \3\\\\\\n"\\/p 11049t cont 11050s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11051t cont 11052d 11053:cont 11054n 11055s/.\{148\}/&'"$ac_delim"'/g 11056t clear 11057:clear 11058s/\\$// 11059t bsnlc 11060s/["\\]/\\&/g; s/^/"/; s/$/"/p 11061d 11062:bsnlc 11063s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11064b cont 11065' <confdefs.h | sed ' 11066s/'"$ac_delim"'/"\\\ 11067"/g' >>$CONFIG_STATUS || ac_write_fail=1 11068 11069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11070 for (key in D) D_is_set[key] = 1 11071 FS = "" 11072} 11073/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11074 line = \$ 0 11075 split(line, arg, " ") 11076 if (arg[1] == "#") { 11077 defundef = arg[2] 11078 mac1 = arg[3] 11079 } else { 11080 defundef = substr(arg[1], 2) 11081 mac1 = arg[2] 11082 } 11083 split(mac1, mac2, "(") #) 11084 macro = mac2[1] 11085 prefix = substr(line, 1, index(line, defundef) - 1) 11086 if (D_is_set[macro]) { 11087 # Preserve the white space surrounding the "#". 11088 print prefix "define", macro P[macro] D[macro] 11089 next 11090 } else { 11091 # Replace #undef with comments. This is necessary, for example, 11092 # in the case of _POSIX_SOURCE, which is predefined and required 11093 # on some systems where configure will not decide to define it. 11094 if (defundef == "undef") { 11095 print "/*", prefix defundef, macro, "*/" 11096 next 11097 } 11098 } 11099} 11100{ print } 11101_ACAWK 11102_ACEOF 11103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11104 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11105fi # test -n "$CONFIG_HEADERS" 11106 11107 11108eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11109shift 11110for ac_tag 11111do 11112 case $ac_tag in 11113 :[FHLC]) ac_mode=$ac_tag; continue;; 11114 esac 11115 case $ac_mode$ac_tag in 11116 :[FHL]*:*);; 11117 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11118 :[FH]-) ac_tag=-:-;; 11119 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11120 esac 11121 ac_save_IFS=$IFS 11122 IFS=: 11123 set x $ac_tag 11124 IFS=$ac_save_IFS 11125 shift 11126 ac_file=$1 11127 shift 11128 11129 case $ac_mode in 11130 :L) ac_source=$1;; 11131 :[FH]) 11132 ac_file_inputs= 11133 for ac_f 11134 do 11135 case $ac_f in 11136 -) ac_f="$ac_tmp/stdin";; 11137 *) # Look for the file first in the build tree, then in the source tree 11138 # (if the path is not absolute). The absolute path cannot be DOS-style, 11139 # because $ac_f cannot contain `:'. 11140 test -f "$ac_f" || 11141 case $ac_f in 11142 [\\/$]*) false;; 11143 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11144 esac || 11145 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11146 esac 11147 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11148 as_fn_append ac_file_inputs " '$ac_f'" 11149 done 11150 11151 # Let's still pretend it is `configure' which instantiates (i.e., don't 11152 # use $as_me), people would be surprised to read: 11153 # /* config.h. Generated by config.status. */ 11154 configure_input='Generated from '` 11155 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11156 `' by configure.' 11157 if test x"$ac_file" != x-; then 11158 configure_input="$ac_file. $configure_input" 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11160$as_echo "$as_me: creating $ac_file" >&6;} 11161 fi 11162 # Neutralize special characters interpreted by sed in replacement strings. 11163 case $configure_input in #( 11164 *\&* | *\|* | *\\* ) 11165 ac_sed_conf_input=`$as_echo "$configure_input" | 11166 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11167 *) ac_sed_conf_input=$configure_input;; 11168 esac 11169 11170 case $ac_tag in 11171 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11173 esac 11174 ;; 11175 esac 11176 11177 ac_dir=`$as_dirname -- "$ac_file" || 11178$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11179 X"$ac_file" : 'X\(//\)[^/]' \| \ 11180 X"$ac_file" : 'X\(//\)$' \| \ 11181 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11182$as_echo X"$ac_file" | 11183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11184 s//\1/ 11185 q 11186 } 11187 /^X\(\/\/\)[^/].*/{ 11188 s//\1/ 11189 q 11190 } 11191 /^X\(\/\/\)$/{ 11192 s//\1/ 11193 q 11194 } 11195 /^X\(\/\).*/{ 11196 s//\1/ 11197 q 11198 } 11199 s/.*/./; q'` 11200 as_dir="$ac_dir"; as_fn_mkdir_p 11201 ac_builddir=. 11202 11203case "$ac_dir" in 11204.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11205*) 11206 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11207 # A ".." for each directory in $ac_dir_suffix. 11208 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11209 case $ac_top_builddir_sub in 11210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11212 esac ;; 11213esac 11214ac_abs_top_builddir=$ac_pwd 11215ac_abs_builddir=$ac_pwd$ac_dir_suffix 11216# for backward compatibility: 11217ac_top_builddir=$ac_top_build_prefix 11218 11219case $srcdir in 11220 .) # We are building in place. 11221 ac_srcdir=. 11222 ac_top_srcdir=$ac_top_builddir_sub 11223 ac_abs_top_srcdir=$ac_pwd ;; 11224 [\\/]* | ?:[\\/]* ) # Absolute name. 11225 ac_srcdir=$srcdir$ac_dir_suffix; 11226 ac_top_srcdir=$srcdir 11227 ac_abs_top_srcdir=$srcdir ;; 11228 *) # Relative name. 11229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11230 ac_top_srcdir=$ac_top_build_prefix$srcdir 11231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11232esac 11233ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11234 11235 11236 case $ac_mode in 11237 :F) 11238 # 11239 # CONFIG_FILE 11240 # 11241 11242 case $INSTALL in 11243 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11244 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11245 esac 11246 ac_MKDIR_P=$MKDIR_P 11247 case $MKDIR_P in 11248 [\\/$]* | ?:[\\/]* ) ;; 11249 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11250 esac 11251_ACEOF 11252 11253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11254# If the template does not know about datarootdir, expand it. 11255# FIXME: This hack should be removed a few years after 2.60. 11256ac_datarootdir_hack=; ac_datarootdir_seen= 11257ac_sed_dataroot=' 11258/datarootdir/ { 11259 p 11260 q 11261} 11262/@datadir@/p 11263/@docdir@/p 11264/@infodir@/p 11265/@localedir@/p 11266/@mandir@/p' 11267case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11268*datarootdir*) ac_datarootdir_seen=yes;; 11269*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11271$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11272_ACEOF 11273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11274 ac_datarootdir_hack=' 11275 s&@datadir@&$datadir&g 11276 s&@docdir@&$docdir&g 11277 s&@infodir@&$infodir&g 11278 s&@localedir@&$localedir&g 11279 s&@mandir@&$mandir&g 11280 s&\\\${datarootdir}&$datarootdir&g' ;; 11281esac 11282_ACEOF 11283 11284# Neutralize VPATH when `$srcdir' = `.'. 11285# Shell code in configure.ac might set extrasub. 11286# FIXME: do we really want to maintain this feature? 11287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11288ac_sed_extra="$ac_vpsub 11289$extrasub 11290_ACEOF 11291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11292:t 11293/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11294s|@configure_input@|$ac_sed_conf_input|;t t 11295s&@top_builddir@&$ac_top_builddir_sub&;t t 11296s&@top_build_prefix@&$ac_top_build_prefix&;t t 11297s&@srcdir@&$ac_srcdir&;t t 11298s&@abs_srcdir@&$ac_abs_srcdir&;t t 11299s&@top_srcdir@&$ac_top_srcdir&;t t 11300s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11301s&@builddir@&$ac_builddir&;t t 11302s&@abs_builddir@&$ac_abs_builddir&;t t 11303s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11304s&@INSTALL@&$ac_INSTALL&;t t 11305s&@MKDIR_P@&$ac_MKDIR_P&;t t 11306$ac_datarootdir_hack 11307" 11308eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11309 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11310 11311test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11312 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11313 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11314 "$ac_tmp/out"`; test -z "$ac_out"; } && 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11316which seems to be undefined. Please make sure it is defined" >&5 11317$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11318which seems to be undefined. Please make sure it is defined" >&2;} 11319 11320 rm -f "$ac_tmp/stdin" 11321 case $ac_file in 11322 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11323 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11324 esac \ 11325 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11326 ;; 11327 :H) 11328 # 11329 # CONFIG_HEADER 11330 # 11331 if test x"$ac_file" != x-; then 11332 { 11333 $as_echo "/* $configure_input */" \ 11334 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11335 } >"$ac_tmp/config.h" \ 11336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11337 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11339$as_echo "$as_me: $ac_file is unchanged" >&6;} 11340 else 11341 rm -f "$ac_file" 11342 mv "$ac_tmp/config.h" "$ac_file" \ 11343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11344 fi 11345 else 11346 $as_echo "/* $configure_input */" \ 11347 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11348 || as_fn_error $? "could not create -" "$LINENO" 5 11349 fi 11350# Compute "$ac_file"'s index in $config_headers. 11351_am_arg="$ac_file" 11352_am_stamp_count=1 11353for _am_header in $config_headers :; do 11354 case $_am_header in 11355 $_am_arg | $_am_arg:* ) 11356 break ;; 11357 * ) 11358 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11359 esac 11360done 11361echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11362$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11363 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11364 X"$_am_arg" : 'X\(//\)$' \| \ 11365 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11366$as_echo X"$_am_arg" | 11367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11368 s//\1/ 11369 q 11370 } 11371 /^X\(\/\/\)[^/].*/{ 11372 s//\1/ 11373 q 11374 } 11375 /^X\(\/\/\)$/{ 11376 s//\1/ 11377 q 11378 } 11379 /^X\(\/\).*/{ 11380 s//\1/ 11381 q 11382 } 11383 s/.*/./; q'`/stamp-h$_am_stamp_count 11384 ;; 11385 11386 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11387$as_echo "$as_me: executing $ac_file commands" >&6;} 11388 ;; 11389 esac 11390 11391 11392 case $ac_file$ac_mode in 11393 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11394 # Autoconf 2.62 quotes --file arguments for eval, but not when files 11395 # are listed without --file. Let's play safe and only enable the eval 11396 # if we detect the quoting. 11397 case $CONFIG_FILES in 11398 *\'*) eval set x "$CONFIG_FILES" ;; 11399 *) set x $CONFIG_FILES ;; 11400 esac 11401 shift 11402 for mf 11403 do 11404 # Strip MF so we end up with the name of the file. 11405 mf=`echo "$mf" | sed -e 's/:.*$//'` 11406 # Check whether this is an Automake generated Makefile or not. 11407 # We used to match only the files named `Makefile.in', but 11408 # some people rename them; so instead we look at the file content. 11409 # Grep'ing the first line is not enough: some people post-process 11410 # each Makefile.in and add a new line on top of each file to say so. 11411 # Grep'ing the whole file is not good either: AIX grep has a line 11412 # limit of 2048, but all sed's we know have understand at least 4000. 11413 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11414 dirpart=`$as_dirname -- "$mf" || 11415$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11416 X"$mf" : 'X\(//\)[^/]' \| \ 11417 X"$mf" : 'X\(//\)$' \| \ 11418 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11419$as_echo X"$mf" | 11420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11421 s//\1/ 11422 q 11423 } 11424 /^X\(\/\/\)[^/].*/{ 11425 s//\1/ 11426 q 11427 } 11428 /^X\(\/\/\)$/{ 11429 s//\1/ 11430 q 11431 } 11432 /^X\(\/\).*/{ 11433 s//\1/ 11434 q 11435 } 11436 s/.*/./; q'` 11437 else 11438 continue 11439 fi 11440 # Extract the definition of DEPDIR, am__include, and am__quote 11441 # from the Makefile without running `make'. 11442 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11443 test -z "$DEPDIR" && continue 11444 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11445 test -z "am__include" && continue 11446 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11447 # When using ansi2knr, U may be empty or an underscore; expand it 11448 U=`sed -n 's/^U = //p' < "$mf"` 11449 # Find all dependency output files, they are included files with 11450 # $(DEPDIR) in their names. We invoke sed twice because it is the 11451 # simplest approach to changing $(DEPDIR) to its actual value in the 11452 # expansion. 11453 for file in `sed -n " 11454 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11455 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 11456 # Make sure the directory exists. 11457 test -f "$dirpart/$file" && continue 11458 fdir=`$as_dirname -- "$file" || 11459$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11460 X"$file" : 'X\(//\)[^/]' \| \ 11461 X"$file" : 'X\(//\)$' \| \ 11462 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11463$as_echo X"$file" | 11464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11465 s//\1/ 11466 q 11467 } 11468 /^X\(\/\/\)[^/].*/{ 11469 s//\1/ 11470 q 11471 } 11472 /^X\(\/\/\)$/{ 11473 s//\1/ 11474 q 11475 } 11476 /^X\(\/\).*/{ 11477 s//\1/ 11478 q 11479 } 11480 s/.*/./; q'` 11481 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11482 # echo "creating $dirpart/$file" 11483 echo '# dummy' > "$dirpart/$file" 11484 done 11485 done 11486} 11487 ;; 11488 11489 esac 11490done # for ac_tag 11491 11492 11493as_fn_exit 0 11494_ACEOF 11495ac_clean_files=$ac_clean_files_save 11496 11497test $ac_write_fail = 0 || 11498 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11499 11500 11501# configure is writing to config.log, and then calls config.status. 11502# config.status does its own redirection, appending to config.log. 11503# Unfortunately, on DOS this fails, as config.log is still kept open 11504# by configure, so config.status won't be able to write to it; its 11505# output is simply discarded. So we exec the FD to /dev/null, 11506# effectively closing config.log, so it can be properly (re)opened and 11507# appended to by config.status. When coming back to configure, we 11508# need to make the FD available again. 11509if test "$no_create" != yes; then 11510 ac_cs_success=: 11511 ac_config_status_args= 11512 test "$silent" = yes && 11513 ac_config_status_args="$ac_config_status_args --quiet" 11514 exec 5>/dev/null 11515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11516 exec 5>>config.log 11517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11518 # would make configure fail if this is the last instruction. 11519 $ac_cs_success || as_fn_exit 1 11520fi 11521if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11523$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11524fi 11525 11526