configure revision fe2ac8d7
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xfontsel 1.0.5. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xfontsel' 563PACKAGE_TARNAME='xfontsel' 564PACKAGE_VERSION='1.0.5' 565PACKAGE_STRING='xfontsel 1.0.5' 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 609appdefaultdir 610APPDEFS_LIBS 611APPDEFS_CFLAGS 612XFONTSEL_LIBS 613XFONTSEL_CFLAGS 614MAN_SUBSTS 615XORG_MAN_PAGE 616ADMIN_MAN_DIR 617DRIVER_MAN_DIR 618MISC_MAN_DIR 619FILE_MAN_DIR 620LIB_MAN_DIR 621APP_MAN_DIR 622ADMIN_MAN_SUFFIX 623DRIVER_MAN_SUFFIX 624MISC_MAN_SUFFIX 625FILE_MAN_SUFFIX 626LIB_MAN_SUFFIX 627APP_MAN_SUFFIX 628SED 629host_os 630host_vendor 631host_cpu 632host 633build_os 634build_vendor 635build_cpu 636build 637INSTALL_CMD 638PKG_CONFIG 639CHANGELOG_CMD 640STRICT_CFLAGS 641CWARNFLAGS 642BASE_CFLAGS 643EGREP 644GREP 645CPP 646am__fastdepCC_FALSE 647am__fastdepCC_TRUE 648CCDEPMODE 649am__nodep 650AMDEPBACKSLASH 651AMDEP_FALSE 652AMDEP_TRUE 653am__quote 654am__include 655DEPDIR 656OBJEXT 657EXEEXT 658ac_ct_CC 659CPPFLAGS 660LDFLAGS 661CFLAGS 662CC 663MAINT 664MAINTAINER_MODE_FALSE 665MAINTAINER_MODE_TRUE 666AM_BACKSLASH 667AM_DEFAULT_VERBOSITY 668AM_DEFAULT_V 669AM_V 670am__untar 671am__tar 672AMTAR 673am__leading_dot 674SET_MAKE 675AWK 676mkdir_p 677MKDIR_P 678INSTALL_STRIP_PROGRAM 679STRIP 680install_sh 681MAKEINFO 682AUTOHEADER 683AUTOMAKE 684AUTOCONF 685ACLOCAL 686VERSION 687PACKAGE 688CYGPATH_W 689am__isrc 690INSTALL_DATA 691INSTALL_SCRIPT 692INSTALL_PROGRAM 693target_alias 694host_alias 695build_alias 696LIBS 697ECHO_T 698ECHO_N 699ECHO_C 700DEFS 701mandir 702localedir 703libdir 704psdir 705pdfdir 706dvidir 707htmldir 708infodir 709docdir 710oldincludedir 711includedir 712localstatedir 713sharedstatedir 714sysconfdir 715datadir 716datarootdir 717libexecdir 718sbindir 719bindir 720program_transform_name 721prefix 722exec_prefix 723PACKAGE_URL 724PACKAGE_BUGREPORT 725PACKAGE_STRING 726PACKAGE_VERSION 727PACKAGE_TARNAME 728PACKAGE_NAME 729PATH_SEPARATOR 730SHELL' 731ac_subst_files='' 732ac_user_opts=' 733enable_option_checking 734enable_silent_rules 735enable_maintainer_mode 736enable_dependency_tracking 737enable_selective_werror 738enable_strict_compilation 739with_appdefaultdir 740' 741 ac_precious_vars='build_alias 742host_alias 743target_alias 744CC 745CFLAGS 746LDFLAGS 747LIBS 748CPPFLAGS 749CPP 750PKG_CONFIG 751XFONTSEL_CFLAGS 752XFONTSEL_LIBS 753APPDEFS_CFLAGS 754APPDEFS_LIBS' 755 756 757# Initialize some variables set by options. 758ac_init_help= 759ac_init_version=false 760ac_unrecognized_opts= 761ac_unrecognized_sep= 762# The variables have the same names as the options, with 763# dashes changed to underlines. 764cache_file=/dev/null 765exec_prefix=NONE 766no_create= 767no_recursion= 768prefix=NONE 769program_prefix=NONE 770program_suffix=NONE 771program_transform_name=s,x,x, 772silent= 773site= 774srcdir= 775verbose= 776x_includes=NONE 777x_libraries=NONE 778 779# Installation directory options. 780# These are left unexpanded so users can "make install exec_prefix=/foo" 781# and all the variables that are supposed to be based on exec_prefix 782# by default will actually change. 783# Use braces instead of parens because sh, perl, etc. also accept them. 784# (The list follows the same order as the GNU Coding Standards.) 785bindir='${exec_prefix}/bin' 786sbindir='${exec_prefix}/sbin' 787libexecdir='${exec_prefix}/libexec' 788datarootdir='${prefix}/share' 789datadir='${datarootdir}' 790sysconfdir='${prefix}/etc' 791sharedstatedir='${prefix}/com' 792localstatedir='${prefix}/var' 793includedir='${prefix}/include' 794oldincludedir='/usr/include' 795docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 796infodir='${datarootdir}/info' 797htmldir='${docdir}' 798dvidir='${docdir}' 799pdfdir='${docdir}' 800psdir='${docdir}' 801libdir='${exec_prefix}/lib' 802localedir='${datarootdir}/locale' 803mandir='${datarootdir}/man' 804 805ac_prev= 806ac_dashdash= 807for ac_option 808do 809 # If the previous option needs an argument, assign it. 810 if test -n "$ac_prev"; then 811 eval $ac_prev=\$ac_option 812 ac_prev= 813 continue 814 fi 815 816 case $ac_option in 817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 818 *=) ac_optarg= ;; 819 *) ac_optarg=yes ;; 820 esac 821 822 # Accept the important Cygnus configure options, so we can diagnose typos. 823 824 case $ac_dashdash$ac_option in 825 --) 826 ac_dashdash=yes ;; 827 828 -bindir | --bindir | --bindi | --bind | --bin | --bi) 829 ac_prev=bindir ;; 830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 831 bindir=$ac_optarg ;; 832 833 -build | --build | --buil | --bui | --bu) 834 ac_prev=build_alias ;; 835 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 836 build_alias=$ac_optarg ;; 837 838 -cache-file | --cache-file | --cache-fil | --cache-fi \ 839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 840 ac_prev=cache_file ;; 841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 843 cache_file=$ac_optarg ;; 844 845 --config-cache | -C) 846 cache_file=config.cache ;; 847 848 -datadir | --datadir | --datadi | --datad) 849 ac_prev=datadir ;; 850 -datadir=* | --datadir=* | --datadi=* | --datad=*) 851 datadir=$ac_optarg ;; 852 853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 854 | --dataroo | --dataro | --datar) 855 ac_prev=datarootdir ;; 856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 858 datarootdir=$ac_optarg ;; 859 860 -disable-* | --disable-*) 861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 862 # Reject names that are not valid shell variable names. 863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 864 as_fn_error $? "invalid feature name: $ac_useropt" 865 ac_useropt_orig=$ac_useropt 866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 867 case $ac_user_opts in 868 *" 869"enable_$ac_useropt" 870"*) ;; 871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 872 ac_unrecognized_sep=', ';; 873 esac 874 eval enable_$ac_useropt=no ;; 875 876 -docdir | --docdir | --docdi | --doc | --do) 877 ac_prev=docdir ;; 878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 879 docdir=$ac_optarg ;; 880 881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 882 ac_prev=dvidir ;; 883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 884 dvidir=$ac_optarg ;; 885 886 -enable-* | --enable-*) 887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 888 # Reject names that are not valid shell variable names. 889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 890 as_fn_error $? "invalid feature name: $ac_useropt" 891 ac_useropt_orig=$ac_useropt 892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 893 case $ac_user_opts in 894 *" 895"enable_$ac_useropt" 896"*) ;; 897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 898 ac_unrecognized_sep=', ';; 899 esac 900 eval enable_$ac_useropt=\$ac_optarg ;; 901 902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 904 | --exec | --exe | --ex) 905 ac_prev=exec_prefix ;; 906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 908 | --exec=* | --exe=* | --ex=*) 909 exec_prefix=$ac_optarg ;; 910 911 -gas | --gas | --ga | --g) 912 # Obsolete; use --with-gas. 913 with_gas=yes ;; 914 915 -help | --help | --hel | --he | -h) 916 ac_init_help=long ;; 917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 918 ac_init_help=recursive ;; 919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 920 ac_init_help=short ;; 921 922 -host | --host | --hos | --ho) 923 ac_prev=host_alias ;; 924 -host=* | --host=* | --hos=* | --ho=*) 925 host_alias=$ac_optarg ;; 926 927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 928 ac_prev=htmldir ;; 929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 930 | --ht=*) 931 htmldir=$ac_optarg ;; 932 933 -includedir | --includedir | --includedi | --included | --include \ 934 | --includ | --inclu | --incl | --inc) 935 ac_prev=includedir ;; 936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 937 | --includ=* | --inclu=* | --incl=* | --inc=*) 938 includedir=$ac_optarg ;; 939 940 -infodir | --infodir | --infodi | --infod | --info | --inf) 941 ac_prev=infodir ;; 942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 943 infodir=$ac_optarg ;; 944 945 -libdir | --libdir | --libdi | --libd) 946 ac_prev=libdir ;; 947 -libdir=* | --libdir=* | --libdi=* | --libd=*) 948 libdir=$ac_optarg ;; 949 950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 951 | --libexe | --libex | --libe) 952 ac_prev=libexecdir ;; 953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 954 | --libexe=* | --libex=* | --libe=*) 955 libexecdir=$ac_optarg ;; 956 957 -localedir | --localedir | --localedi | --localed | --locale) 958 ac_prev=localedir ;; 959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 960 localedir=$ac_optarg ;; 961 962 -localstatedir | --localstatedir | --localstatedi | --localstated \ 963 | --localstate | --localstat | --localsta | --localst | --locals) 964 ac_prev=localstatedir ;; 965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 967 localstatedir=$ac_optarg ;; 968 969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 970 ac_prev=mandir ;; 971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 972 mandir=$ac_optarg ;; 973 974 -nfp | --nfp | --nf) 975 # Obsolete; use --without-fp. 976 with_fp=no ;; 977 978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 979 | --no-cr | --no-c | -n) 980 no_create=yes ;; 981 982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 984 no_recursion=yes ;; 985 986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 988 | --oldin | --oldi | --old | --ol | --o) 989 ac_prev=oldincludedir ;; 990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 993 oldincludedir=$ac_optarg ;; 994 995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 996 ac_prev=prefix ;; 997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 998 prefix=$ac_optarg ;; 999 1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1001 | --program-pre | --program-pr | --program-p) 1002 ac_prev=program_prefix ;; 1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1005 program_prefix=$ac_optarg ;; 1006 1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1008 | --program-suf | --program-su | --program-s) 1009 ac_prev=program_suffix ;; 1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1012 program_suffix=$ac_optarg ;; 1013 1014 -program-transform-name | --program-transform-name \ 1015 | --program-transform-nam | --program-transform-na \ 1016 | --program-transform-n | --program-transform- \ 1017 | --program-transform | --program-transfor \ 1018 | --program-transfo | --program-transf \ 1019 | --program-trans | --program-tran \ 1020 | --progr-tra | --program-tr | --program-t) 1021 ac_prev=program_transform_name ;; 1022 -program-transform-name=* | --program-transform-name=* \ 1023 | --program-transform-nam=* | --program-transform-na=* \ 1024 | --program-transform-n=* | --program-transform-=* \ 1025 | --program-transform=* | --program-transfor=* \ 1026 | --program-transfo=* | --program-transf=* \ 1027 | --program-trans=* | --program-tran=* \ 1028 | --progr-tra=* | --program-tr=* | --program-t=*) 1029 program_transform_name=$ac_optarg ;; 1030 1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1032 ac_prev=pdfdir ;; 1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1034 pdfdir=$ac_optarg ;; 1035 1036 -psdir | --psdir | --psdi | --psd | --ps) 1037 ac_prev=psdir ;; 1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1039 psdir=$ac_optarg ;; 1040 1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1042 | -silent | --silent | --silen | --sile | --sil) 1043 silent=yes ;; 1044 1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1046 ac_prev=sbindir ;; 1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1048 | --sbi=* | --sb=*) 1049 sbindir=$ac_optarg ;; 1050 1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1053 | --sharedst | --shareds | --shared | --share | --shar \ 1054 | --sha | --sh) 1055 ac_prev=sharedstatedir ;; 1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1059 | --sha=* | --sh=*) 1060 sharedstatedir=$ac_optarg ;; 1061 1062 -site | --site | --sit) 1063 ac_prev=site ;; 1064 -site=* | --site=* | --sit=*) 1065 site=$ac_optarg ;; 1066 1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1068 ac_prev=srcdir ;; 1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1070 srcdir=$ac_optarg ;; 1071 1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1073 | --syscon | --sysco | --sysc | --sys | --sy) 1074 ac_prev=sysconfdir ;; 1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1077 sysconfdir=$ac_optarg ;; 1078 1079 -target | --target | --targe | --targ | --tar | --ta | --t) 1080 ac_prev=target_alias ;; 1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1082 target_alias=$ac_optarg ;; 1083 1084 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1085 verbose=yes ;; 1086 1087 -version | --version | --versio | --versi | --vers | -V) 1088 ac_init_version=: ;; 1089 1090 -with-* | --with-*) 1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1092 # Reject names that are not valid shell variable names. 1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1094 as_fn_error $? "invalid package name: $ac_useropt" 1095 ac_useropt_orig=$ac_useropt 1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1097 case $ac_user_opts in 1098 *" 1099"with_$ac_useropt" 1100"*) ;; 1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1102 ac_unrecognized_sep=', ';; 1103 esac 1104 eval with_$ac_useropt=\$ac_optarg ;; 1105 1106 -without-* | --without-*) 1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1110 as_fn_error $? "invalid package name: $ac_useropt" 1111 ac_useropt_orig=$ac_useropt 1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1113 case $ac_user_opts in 1114 *" 1115"with_$ac_useropt" 1116"*) ;; 1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1118 ac_unrecognized_sep=', ';; 1119 esac 1120 eval with_$ac_useropt=no ;; 1121 1122 --x) 1123 # Obsolete; use --with-x. 1124 with_x=yes ;; 1125 1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1127 | --x-incl | --x-inc | --x-in | --x-i) 1128 ac_prev=x_includes ;; 1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1131 x_includes=$ac_optarg ;; 1132 1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1135 ac_prev=x_libraries ;; 1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1138 x_libraries=$ac_optarg ;; 1139 1140 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1141Try \`$0 --help' for more information" 1142 ;; 1143 1144 *=*) 1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1146 # Reject names that are not valid shell variable names. 1147 case $ac_envvar in #( 1148 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1150 esac 1151 eval $ac_envvar=\$ac_optarg 1152 export $ac_envvar ;; 1153 1154 *) 1155 # FIXME: should be removed in autoconf 3.0. 1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1160 ;; 1161 1162 esac 1163done 1164 1165if test -n "$ac_prev"; then 1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1167 as_fn_error $? "missing argument to $ac_option" 1168fi 1169 1170if test -n "$ac_unrecognized_opts"; then 1171 case $enable_option_checking in 1172 no) ;; 1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1175 esac 1176fi 1177 1178# Check all directory arguments for consistency. 1179for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1180 datadir sysconfdir sharedstatedir localstatedir includedir \ 1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1182 libdir localedir mandir 1183do 1184 eval ac_val=\$$ac_var 1185 # Remove trailing slashes. 1186 case $ac_val in 1187 */ ) 1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1189 eval $ac_var=\$ac_val;; 1190 esac 1191 # Be sure to have absolute directory names. 1192 case $ac_val in 1193 [\\/$]* | ?:[\\/]* ) continue;; 1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1195 esac 1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1197done 1198 1199# There might be people who depend on the old broken behavior: `$host' 1200# used to hold the argument of --host etc. 1201# FIXME: To remove some day. 1202build=$build_alias 1203host=$host_alias 1204target=$target_alias 1205 1206# FIXME: To remove some day. 1207if test "x$host_alias" != x; then 1208 if test "x$build_alias" = x; then 1209 cross_compiling=maybe 1210 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1211 If a cross compiler is detected then cross compile mode will be used" >&2 1212 elif test "x$build_alias" != "x$host_alias"; then 1213 cross_compiling=yes 1214 fi 1215fi 1216 1217ac_tool_prefix= 1218test -n "$host_alias" && ac_tool_prefix=$host_alias- 1219 1220test "$silent" = yes && exec 6>/dev/null 1221 1222 1223ac_pwd=`pwd` && test -n "$ac_pwd" && 1224ac_ls_di=`ls -di .` && 1225ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1226 as_fn_error $? "working directory cannot be determined" 1227test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1228 as_fn_error $? "pwd does not report name of working directory" 1229 1230 1231# Find the source files, if location was not specified. 1232if test -z "$srcdir"; then 1233 ac_srcdir_defaulted=yes 1234 # Try the directory containing this script, then the parent directory. 1235 ac_confdir=`$as_dirname -- "$as_myself" || 1236$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1237 X"$as_myself" : 'X\(//\)[^/]' \| \ 1238 X"$as_myself" : 'X\(//\)$' \| \ 1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1240$as_echo X"$as_myself" | 1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\/\)[^/].*/{ 1246 s//\1/ 1247 q 1248 } 1249 /^X\(\/\/\)$/{ 1250 s//\1/ 1251 q 1252 } 1253 /^X\(\/\).*/{ 1254 s//\1/ 1255 q 1256 } 1257 s/.*/./; q'` 1258 srcdir=$ac_confdir 1259 if test ! -r "$srcdir/$ac_unique_file"; then 1260 srcdir=.. 1261 fi 1262else 1263 ac_srcdir_defaulted=no 1264fi 1265if test ! -r "$srcdir/$ac_unique_file"; then 1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1268fi 1269ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1270ac_abs_confdir=`( 1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1272 pwd)` 1273# When building in place, set srcdir=. 1274if test "$ac_abs_confdir" = "$ac_pwd"; then 1275 srcdir=. 1276fi 1277# Remove unnecessary trailing slashes from srcdir. 1278# Double slashes in file names in object file debugging info 1279# mess up M-x gdb in Emacs. 1280case $srcdir in 1281*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1282esac 1283for ac_var in $ac_precious_vars; do 1284 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1285 eval ac_env_${ac_var}_value=\$${ac_var} 1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1287 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1288done 1289 1290# 1291# Report the --help message. 1292# 1293if test "$ac_init_help" = "long"; then 1294 # Omit some internal or obsolete options to make the list less imposing. 1295 # This message is too long to be a string in the A/UX 3.1 sh. 1296 cat <<_ACEOF 1297\`configure' configures xfontsel 1.0.5 to adapt to many kinds of systems. 1298 1299Usage: $0 [OPTION]... [VAR=VALUE]... 1300 1301To assign environment variables (e.g., CC, CFLAGS...), specify them as 1302VAR=VALUE. See below for descriptions of some of the useful variables. 1303 1304Defaults for the options are specified in brackets. 1305 1306Configuration: 1307 -h, --help display this help and exit 1308 --help=short display options specific to this package 1309 --help=recursive display the short help of all the included packages 1310 -V, --version display version information and exit 1311 -q, --quiet, --silent do not print \`checking ...' messages 1312 --cache-file=FILE cache test results in FILE [disabled] 1313 -C, --config-cache alias for \`--cache-file=config.cache' 1314 -n, --no-create do not create output files 1315 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1316 1317Installation directories: 1318 --prefix=PREFIX install architecture-independent files in PREFIX 1319 [$ac_default_prefix] 1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1321 [PREFIX] 1322 1323By default, \`make install' will install all the files in 1324\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1325an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1326for instance \`--prefix=\$HOME'. 1327 1328For better control, use the options below. 1329 1330Fine tuning of the installation directories: 1331 --bindir=DIR user executables [EPREFIX/bin] 1332 --sbindir=DIR system admin executables [EPREFIX/sbin] 1333 --libexecdir=DIR program executables [EPREFIX/libexec] 1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1337 --libdir=DIR object code libraries [EPREFIX/lib] 1338 --includedir=DIR C header files [PREFIX/include] 1339 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1342 --infodir=DIR info documentation [DATAROOTDIR/info] 1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1344 --mandir=DIR man documentation [DATAROOTDIR/man] 1345 --docdir=DIR documentation root [DATAROOTDIR/doc/xfontsel] 1346 --htmldir=DIR html documentation [DOCDIR] 1347 --dvidir=DIR dvi documentation [DOCDIR] 1348 --pdfdir=DIR pdf documentation [DOCDIR] 1349 --psdir=DIR ps documentation [DOCDIR] 1350_ACEOF 1351 1352 cat <<\_ACEOF 1353 1354Program names: 1355 --program-prefix=PREFIX prepend PREFIX to installed program names 1356 --program-suffix=SUFFIX append SUFFIX to installed program names 1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1358 1359System types: 1360 --build=BUILD configure for building on BUILD [guessed] 1361 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1362_ACEOF 1363fi 1364 1365if test -n "$ac_init_help"; then 1366 case $ac_init_help in 1367 short | recursive ) echo "Configuration of xfontsel 1.0.5:";; 1368 esac 1369 cat <<\_ACEOF 1370 1371Optional Features: 1372 --disable-option-checking ignore unrecognized --enable/--with options 1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1375 --enable-silent-rules less verbose build output (undo: "make V=1") 1376 --disable-silent-rules verbose build output (undo: "make V=0") 1377 --enable-maintainer-mode 1378 enable make rules and dependencies not useful (and 1379 sometimes confusing) to the casual installer 1380 --enable-dependency-tracking 1381 do not reject slow dependency extractors 1382 --disable-dependency-tracking 1383 speeds up one-time build 1384 --disable-selective-werror 1385 Turn off selective compiler errors. (default: 1386 enabled) 1387 --enable-strict-compilation 1388 Enable all warnings from compiler and make them 1389 errors (default: disabled) 1390 1391Optional Packages: 1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1394 --with-appdefaultdir=<pathname> 1395 specify directory for app-defaults files (default is 1396 autodetected) 1397 1398Some influential environment variables: 1399 CC C compiler command 1400 CFLAGS C compiler flags 1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1402 nonstandard directory <lib dir> 1403 LIBS libraries to pass to the linker, e.g. -l<library> 1404 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1405 you have headers in a nonstandard directory <include dir> 1406 CPP C preprocessor 1407 PKG_CONFIG path to pkg-config utility 1408 XFONTSEL_CFLAGS 1409 C compiler flags for XFONTSEL, overriding pkg-config 1410 XFONTSEL_LIBS 1411 linker flags for XFONTSEL, overriding pkg-config 1412 APPDEFS_CFLAGS 1413 C compiler flags for APPDEFS, overriding pkg-config 1414 APPDEFS_LIBS 1415 linker flags for APPDEFS, overriding pkg-config 1416 1417Use these variables to override the choices made by `configure' or to help 1418it to find libraries and programs with nonstandard names/locations. 1419 1420Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1421_ACEOF 1422ac_status=$? 1423fi 1424 1425if test "$ac_init_help" = "recursive"; then 1426 # If there are subdirs, report their specific --help. 1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1428 test -d "$ac_dir" || 1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1430 continue 1431 ac_builddir=. 1432 1433case "$ac_dir" in 1434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1435*) 1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1437 # A ".." for each directory in $ac_dir_suffix. 1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1439 case $ac_top_builddir_sub in 1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1442 esac ;; 1443esac 1444ac_abs_top_builddir=$ac_pwd 1445ac_abs_builddir=$ac_pwd$ac_dir_suffix 1446# for backward compatibility: 1447ac_top_builddir=$ac_top_build_prefix 1448 1449case $srcdir in 1450 .) # We are building in place. 1451 ac_srcdir=. 1452 ac_top_srcdir=$ac_top_builddir_sub 1453 ac_abs_top_srcdir=$ac_pwd ;; 1454 [\\/]* | ?:[\\/]* ) # Absolute name. 1455 ac_srcdir=$srcdir$ac_dir_suffix; 1456 ac_top_srcdir=$srcdir 1457 ac_abs_top_srcdir=$srcdir ;; 1458 *) # Relative name. 1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1460 ac_top_srcdir=$ac_top_build_prefix$srcdir 1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1462esac 1463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1464 1465 cd "$ac_dir" || { ac_status=$?; continue; } 1466 # Check for guested configure. 1467 if test -f "$ac_srcdir/configure.gnu"; then 1468 echo && 1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1470 elif test -f "$ac_srcdir/configure"; then 1471 echo && 1472 $SHELL "$ac_srcdir/configure" --help=recursive 1473 else 1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1475 fi || ac_status=$? 1476 cd "$ac_pwd" || { ac_status=$?; break; } 1477 done 1478fi 1479 1480test -n "$ac_init_help" && exit $ac_status 1481if $ac_init_version; then 1482 cat <<\_ACEOF 1483xfontsel configure 1.0.5 1484generated by GNU Autoconf 2.68 1485 1486Copyright (C) 2010 Free Software Foundation, Inc. 1487This configure script is free software; the Free Software Foundation 1488gives unlimited permission to copy, distribute and modify it. 1489_ACEOF 1490 exit 1491fi 1492 1493## ------------------------ ## 1494## Autoconf initialization. ## 1495## ------------------------ ## 1496 1497# ac_fn_c_try_compile LINENO 1498# -------------------------- 1499# Try to compile conftest.$ac_ext, and return whether this succeeded. 1500ac_fn_c_try_compile () 1501{ 1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1503 rm -f conftest.$ac_objext 1504 if { { ac_try="$ac_compile" 1505case "(($ac_try" in 1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1507 *) ac_try_echo=$ac_try;; 1508esac 1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1510$as_echo "$ac_try_echo"; } >&5 1511 (eval "$ac_compile") 2>conftest.err 1512 ac_status=$? 1513 if test -s conftest.err; then 1514 grep -v '^ *+' conftest.err >conftest.er1 1515 cat conftest.er1 >&5 1516 mv -f conftest.er1 conftest.err 1517 fi 1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1519 test $ac_status = 0; } && { 1520 test -z "$ac_c_werror_flag" || 1521 test ! -s conftest.err 1522 } && test -s conftest.$ac_objext; then : 1523 ac_retval=0 1524else 1525 $as_echo "$as_me: failed program was:" >&5 1526sed 's/^/| /' conftest.$ac_ext >&5 1527 1528 ac_retval=1 1529fi 1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1531 as_fn_set_status $ac_retval 1532 1533} # ac_fn_c_try_compile 1534 1535# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1536# --------------------------------------------- 1537# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1538# accordingly. 1539ac_fn_c_check_decl () 1540{ 1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 as_decl_name=`echo $2|sed 's/ *(.*//'` 1543 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1545$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1546if eval \${$3+:} false; then : 1547 $as_echo_n "(cached) " >&6 1548else 1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1550/* end confdefs.h. */ 1551$4 1552int 1553main () 1554{ 1555#ifndef $as_decl_name 1556#ifdef __cplusplus 1557 (void) $as_decl_use; 1558#else 1559 (void) $as_decl_name; 1560#endif 1561#endif 1562 1563 ; 1564 return 0; 1565} 1566_ACEOF 1567if ac_fn_c_try_compile "$LINENO"; then : 1568 eval "$3=yes" 1569else 1570 eval "$3=no" 1571fi 1572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1573fi 1574eval ac_res=\$$3 1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1576$as_echo "$ac_res" >&6; } 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 1579} # ac_fn_c_check_decl 1580 1581# ac_fn_c_try_cpp LINENO 1582# ---------------------- 1583# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_cpp () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 if { { ac_try="$ac_cpp conftest.$ac_ext" 1588case "(($ac_try" in 1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1590 *) ac_try_echo=$ac_try;; 1591esac 1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1593$as_echo "$ac_try_echo"; } >&5 1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1595 ac_status=$? 1596 if test -s conftest.err; then 1597 grep -v '^ *+' conftest.err >conftest.er1 1598 cat conftest.er1 >&5 1599 mv -f conftest.er1 conftest.err 1600 fi 1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1602 test $ac_status = 0; } > conftest.i && { 1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1604 test ! -s conftest.err 1605 }; then : 1606 ac_retval=0 1607else 1608 $as_echo "$as_me: failed program was:" >&5 1609sed 's/^/| /' conftest.$ac_ext >&5 1610 1611 ac_retval=1 1612fi 1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1614 as_fn_set_status $ac_retval 1615 1616} # ac_fn_c_try_cpp 1617 1618# ac_fn_c_try_run LINENO 1619# ---------------------- 1620# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1621# that executables *can* be run. 1622ac_fn_c_try_run () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if { { ac_try="$ac_link" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_link") 2>&5 1633 ac_status=$? 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1636 { { case "(($ac_try" in 1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1638 *) ac_try_echo=$ac_try;; 1639esac 1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1641$as_echo "$ac_try_echo"; } >&5 1642 (eval "$ac_try") 2>&5 1643 ac_status=$? 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; }; }; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: program exited with status $ac_status" >&5 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=$ac_status 1653fi 1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_run 1659 1660# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1661# ------------------------------------------------------- 1662# Tests whether HEADER exists and can be compiled using the include files in 1663# INCLUDES, setting the cache variable VAR accordingly. 1664ac_fn_c_check_header_compile () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1668$as_echo_n "checking for $2... " >&6; } 1669if eval \${$3+:} false; then : 1670 $as_echo_n "(cached) " >&6 1671else 1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1673/* end confdefs.h. */ 1674$4 1675#include <$2> 1676_ACEOF 1677if ac_fn_c_try_compile "$LINENO"; then : 1678 eval "$3=yes" 1679else 1680 eval "$3=no" 1681fi 1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1683fi 1684eval ac_res=\$$3 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1686$as_echo "$ac_res" >&6; } 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 1689} # ac_fn_c_check_header_compile 1690 1691# ac_fn_c_try_link LINENO 1692# ----------------------- 1693# Try to link conftest.$ac_ext, and return whether this succeeded. 1694ac_fn_c_try_link () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 rm -f conftest.$ac_objext conftest$ac_exeext 1698 if { { ac_try="$ac_link" 1699case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_link") 2>conftest.err 1706 ac_status=$? 1707 if test -s conftest.err; then 1708 grep -v '^ *+' conftest.err >conftest.er1 1709 cat conftest.er1 >&5 1710 mv -f conftest.er1 conftest.err 1711 fi 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; } && { 1714 test -z "$ac_c_werror_flag" || 1715 test ! -s conftest.err 1716 } && test -s conftest$ac_exeext && { 1717 test "$cross_compiling" = yes || 1718 $as_test_x conftest$ac_exeext 1719 }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=1 1726fi 1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1729 # interfere with the next link command; also delete a directory that is 1730 # left behind by Apple's compiler. We do this before executing the actions. 1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 as_fn_set_status $ac_retval 1734 1735} # ac_fn_c_try_link 1736cat >config.log <<_ACEOF 1737This file contains any messages produced by compilers while 1738running configure, to aid debugging if configure makes a mistake. 1739 1740It was created by xfontsel $as_me 1.0.5, which was 1741generated by GNU Autoconf 2.68. Invocation command line was 1742 1743 $ $0 $@ 1744 1745_ACEOF 1746exec 5>>config.log 1747{ 1748cat <<_ASUNAME 1749## --------- ## 1750## Platform. ## 1751## --------- ## 1752 1753hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1754uname -m = `(uname -m) 2>/dev/null || echo unknown` 1755uname -r = `(uname -r) 2>/dev/null || echo unknown` 1756uname -s = `(uname -s) 2>/dev/null || echo unknown` 1757uname -v = `(uname -v) 2>/dev/null || echo unknown` 1758 1759/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1760/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1761 1762/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1763/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1764/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1765/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1766/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1767/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1768/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1769 1770_ASUNAME 1771 1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1773for as_dir in $PATH 1774do 1775 IFS=$as_save_IFS 1776 test -z "$as_dir" && as_dir=. 1777 $as_echo "PATH: $as_dir" 1778 done 1779IFS=$as_save_IFS 1780 1781} >&5 1782 1783cat >&5 <<_ACEOF 1784 1785 1786## ----------- ## 1787## Core tests. ## 1788## ----------- ## 1789 1790_ACEOF 1791 1792 1793# Keep a trace of the command line. 1794# Strip out --no-create and --no-recursion so they do not pile up. 1795# Strip out --silent because we don't want to record it for future runs. 1796# Also quote any args containing shell meta-characters. 1797# Make two passes to allow for proper duplicate-argument suppression. 1798ac_configure_args= 1799ac_configure_args0= 1800ac_configure_args1= 1801ac_must_keep_next=false 1802for ac_pass in 1 2 1803do 1804 for ac_arg 1805 do 1806 case $ac_arg in 1807 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1809 | -silent | --silent | --silen | --sile | --sil) 1810 continue ;; 1811 *\'*) 1812 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1813 esac 1814 case $ac_pass in 1815 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1816 2) 1817 as_fn_append ac_configure_args1 " '$ac_arg'" 1818 if test $ac_must_keep_next = true; then 1819 ac_must_keep_next=false # Got value, back to normal. 1820 else 1821 case $ac_arg in 1822 *=* | --config-cache | -C | -disable-* | --disable-* \ 1823 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1824 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1825 | -with-* | --with-* | -without-* | --without-* | --x) 1826 case "$ac_configure_args0 " in 1827 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1828 esac 1829 ;; 1830 -* ) ac_must_keep_next=true ;; 1831 esac 1832 fi 1833 as_fn_append ac_configure_args " '$ac_arg'" 1834 ;; 1835 esac 1836 done 1837done 1838{ ac_configure_args0=; unset ac_configure_args0;} 1839{ ac_configure_args1=; unset ac_configure_args1;} 1840 1841# When interrupted or exit'd, cleanup temporary files, and complete 1842# config.log. We remove comments because anyway the quotes in there 1843# would cause problems or look ugly. 1844# WARNING: Use '\'' to represent an apostrophe within the trap. 1845# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1846trap 'exit_status=$? 1847 # Save into config.log some information that might help in debugging. 1848 { 1849 echo 1850 1851 $as_echo "## ---------------- ## 1852## Cache variables. ## 1853## ---------------- ##" 1854 echo 1855 # The following way of writing the cache mishandles newlines in values, 1856( 1857 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1858 eval ac_val=\$$ac_var 1859 case $ac_val in #( 1860 *${as_nl}*) 1861 case $ac_var in #( 1862 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1863$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1864 esac 1865 case $ac_var in #( 1866 _ | IFS | as_nl) ;; #( 1867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1868 *) { eval $ac_var=; unset $ac_var;} ;; 1869 esac ;; 1870 esac 1871 done 1872 (set) 2>&1 | 1873 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1874 *${as_nl}ac_space=\ *) 1875 sed -n \ 1876 "s/'\''/'\''\\\\'\'''\''/g; 1877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1878 ;; #( 1879 *) 1880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1881 ;; 1882 esac | 1883 sort 1884) 1885 echo 1886 1887 $as_echo "## ----------------- ## 1888## Output variables. ## 1889## ----------------- ##" 1890 echo 1891 for ac_var in $ac_subst_vars 1892 do 1893 eval ac_val=\$$ac_var 1894 case $ac_val in 1895 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1896 esac 1897 $as_echo "$ac_var='\''$ac_val'\''" 1898 done | sort 1899 echo 1900 1901 if test -n "$ac_subst_files"; then 1902 $as_echo "## ------------------- ## 1903## File substitutions. ## 1904## ------------------- ##" 1905 echo 1906 for ac_var in $ac_subst_files 1907 do 1908 eval ac_val=\$$ac_var 1909 case $ac_val in 1910 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1911 esac 1912 $as_echo "$ac_var='\''$ac_val'\''" 1913 done | sort 1914 echo 1915 fi 1916 1917 if test -s confdefs.h; then 1918 $as_echo "## ----------- ## 1919## confdefs.h. ## 1920## ----------- ##" 1921 echo 1922 cat confdefs.h 1923 echo 1924 fi 1925 test "$ac_signal" != 0 && 1926 $as_echo "$as_me: caught signal $ac_signal" 1927 $as_echo "$as_me: exit $exit_status" 1928 } >&5 1929 rm -f core *.core core.conftest.* && 1930 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1931 exit $exit_status 1932' 0 1933for ac_signal in 1 2 13 15; do 1934 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1935done 1936ac_signal=0 1937 1938# confdefs.h avoids OS command line length limits that DEFS can exceed. 1939rm -f -r conftest* confdefs.h 1940 1941$as_echo "/* confdefs.h */" > confdefs.h 1942 1943# Predefined preprocessor variables. 1944 1945cat >>confdefs.h <<_ACEOF 1946#define PACKAGE_NAME "$PACKAGE_NAME" 1947_ACEOF 1948 1949cat >>confdefs.h <<_ACEOF 1950#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1951_ACEOF 1952 1953cat >>confdefs.h <<_ACEOF 1954#define PACKAGE_VERSION "$PACKAGE_VERSION" 1955_ACEOF 1956 1957cat >>confdefs.h <<_ACEOF 1958#define PACKAGE_STRING "$PACKAGE_STRING" 1959_ACEOF 1960 1961cat >>confdefs.h <<_ACEOF 1962#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1963_ACEOF 1964 1965cat >>confdefs.h <<_ACEOF 1966#define PACKAGE_URL "$PACKAGE_URL" 1967_ACEOF 1968 1969 1970# Let the site file select an alternate cache file if it wants to. 1971# Prefer an explicitly selected file to automatically selected ones. 1972ac_site_file1=NONE 1973ac_site_file2=NONE 1974if test -n "$CONFIG_SITE"; then 1975 # We do not want a PATH search for config.site. 1976 case $CONFIG_SITE in #(( 1977 -*) ac_site_file1=./$CONFIG_SITE;; 1978 */*) ac_site_file1=$CONFIG_SITE;; 1979 *) ac_site_file1=./$CONFIG_SITE;; 1980 esac 1981elif test "x$prefix" != xNONE; then 1982 ac_site_file1=$prefix/share/config.site 1983 ac_site_file2=$prefix/etc/config.site 1984else 1985 ac_site_file1=$ac_default_prefix/share/config.site 1986 ac_site_file2=$ac_default_prefix/etc/config.site 1987fi 1988for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1989do 1990 test "x$ac_site_file" = xNONE && continue 1991 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1993$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1994 sed 's/^/| /' "$ac_site_file" >&5 1995 . "$ac_site_file" \ 1996 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1998as_fn_error $? "failed to load site script $ac_site_file 1999See \`config.log' for more details" "$LINENO" 5; } 2000 fi 2001done 2002 2003if test -r "$cache_file"; then 2004 # Some versions of bash will fail to source /dev/null (special files 2005 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2006 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2008$as_echo "$as_me: loading cache $cache_file" >&6;} 2009 case $cache_file in 2010 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2011 *) . "./$cache_file";; 2012 esac 2013 fi 2014else 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2016$as_echo "$as_me: creating cache $cache_file" >&6;} 2017 >$cache_file 2018fi 2019 2020# Check that the precious variables saved in the cache have kept the same 2021# value. 2022ac_cache_corrupted=false 2023for ac_var in $ac_precious_vars; do 2024 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2025 eval ac_new_set=\$ac_env_${ac_var}_set 2026 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2027 eval ac_new_val=\$ac_env_${ac_var}_value 2028 case $ac_old_set,$ac_new_set in 2029 set,) 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2031$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2032 ac_cache_corrupted=: ;; 2033 ,set) 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2035$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2036 ac_cache_corrupted=: ;; 2037 ,);; 2038 *) 2039 if test "x$ac_old_val" != "x$ac_new_val"; then 2040 # differences in whitespace do not lead to failure. 2041 ac_old_val_w=`echo x $ac_old_val` 2042 ac_new_val_w=`echo x $ac_new_val` 2043 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2045$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2046 ac_cache_corrupted=: 2047 else 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2049$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2050 eval $ac_var=\$ac_old_val 2051 fi 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2053$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2055$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2056 fi;; 2057 esac 2058 # Pass precious variables to config.status. 2059 if test "$ac_new_set" = set; then 2060 case $ac_new_val in 2061 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2062 *) ac_arg=$ac_var=$ac_new_val ;; 2063 esac 2064 case " $ac_configure_args " in 2065 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2066 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2067 esac 2068 fi 2069done 2070if $ac_cache_corrupted; then 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2074$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2075 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2076fi 2077## -------------------- ## 2078## Main body of script. ## 2079## -------------------- ## 2080 2081ac_ext=c 2082ac_cpp='$CPP $CPPFLAGS' 2083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2085ac_compiler_gnu=$ac_cv_c_compiler_gnu 2086 2087 2088am__api_version='1.13' 2089 2090ac_aux_dir= 2091for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2092 if test -f "$ac_dir/install-sh"; then 2093 ac_aux_dir=$ac_dir 2094 ac_install_sh="$ac_aux_dir/install-sh -c" 2095 break 2096 elif test -f "$ac_dir/install.sh"; then 2097 ac_aux_dir=$ac_dir 2098 ac_install_sh="$ac_aux_dir/install.sh -c" 2099 break 2100 elif test -f "$ac_dir/shtool"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/shtool install -c" 2103 break 2104 fi 2105done 2106if test -z "$ac_aux_dir"; then 2107 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2108fi 2109 2110# These three variables are undocumented and unsupported, 2111# and are intended to be withdrawn in a future Autoconf release. 2112# They can cause serious problems if a builder's source tree is in a directory 2113# whose full name contains unusual characters. 2114ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2115ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2116ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2117 2118 2119# Find a good install program. We prefer a C program (faster), 2120# so one script is as good as another. But avoid the broken or 2121# incompatible versions: 2122# SysV /etc/install, /usr/sbin/install 2123# SunOS /usr/etc/install 2124# IRIX /sbin/install 2125# AIX /bin/install 2126# AmigaOS /C/install, which installs bootblocks on floppy discs 2127# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2128# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2129# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2130# OS/2's system install, which has a completely different semantic 2131# ./install, which can be erroneously created by make from ./install.sh. 2132# Reject install programs that cannot install multiple files. 2133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2134$as_echo_n "checking for a BSD-compatible install... " >&6; } 2135if test -z "$INSTALL"; then 2136if ${ac_cv_path_install+:} false; then : 2137 $as_echo_n "(cached) " >&6 2138else 2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2140for as_dir in $PATH 2141do 2142 IFS=$as_save_IFS 2143 test -z "$as_dir" && as_dir=. 2144 # Account for people who put trailing slashes in PATH elements. 2145case $as_dir/ in #(( 2146 ./ | .// | /[cC]/* | \ 2147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2149 /usr/ucb/* ) ;; 2150 *) 2151 # OSF1 and SCO ODT 3.0 have their own names for install. 2152 # Don't use installbsd from OSF since it installs stuff as root 2153 # by default. 2154 for ac_prog in ginstall scoinst install; do 2155 for ac_exec_ext in '' $ac_executable_extensions; do 2156 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2157 if test $ac_prog = install && 2158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2159 # AIX install. It has an incompatible calling convention. 2160 : 2161 elif test $ac_prog = install && 2162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2163 # program-specific install script used by HP pwplus--don't use. 2164 : 2165 else 2166 rm -rf conftest.one conftest.two conftest.dir 2167 echo one > conftest.one 2168 echo two > conftest.two 2169 mkdir conftest.dir 2170 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2171 test -s conftest.one && test -s conftest.two && 2172 test -s conftest.dir/conftest.one && 2173 test -s conftest.dir/conftest.two 2174 then 2175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2176 break 3 2177 fi 2178 fi 2179 fi 2180 done 2181 done 2182 ;; 2183esac 2184 2185 done 2186IFS=$as_save_IFS 2187 2188rm -rf conftest.one conftest.two conftest.dir 2189 2190fi 2191 if test "${ac_cv_path_install+set}" = set; then 2192 INSTALL=$ac_cv_path_install 2193 else 2194 # As a last resort, use the slow shell script. Don't cache a 2195 # value for INSTALL within a source directory, because that will 2196 # break other packages using the cache if that directory is 2197 # removed, or if the value is a relative name. 2198 INSTALL=$ac_install_sh 2199 fi 2200fi 2201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2202$as_echo "$INSTALL" >&6; } 2203 2204# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2205# It thinks the first close brace ends the variable substitution. 2206test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2207 2208test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2209 2210test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2211 2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2213$as_echo_n "checking whether build environment is sane... " >&6; } 2214# Reject unsafe characters in $srcdir or the absolute working directory 2215# name. Accept space and tab only in the latter. 2216am_lf=' 2217' 2218case `pwd` in 2219 *[\\\"\#\$\&\'\`$am_lf]*) 2220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2221esac 2222case $srcdir in 2223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2225esac 2226 2227# Do 'set' in a subshell so we don't clobber the current shell's 2228# arguments. Must try -L first in case configure is actually a 2229# symlink; some systems play weird games with the mod time of symlinks 2230# (eg FreeBSD returns the mod time of the symlink's containing 2231# directory). 2232if ( 2233 am_has_slept=no 2234 for am_try in 1 2; do 2235 echo "timestamp, slept: $am_has_slept" > conftest.file 2236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2237 if test "$*" = "X"; then 2238 # -L didn't work. 2239 set X `ls -t "$srcdir/configure" conftest.file` 2240 fi 2241 if test "$*" != "X $srcdir/configure conftest.file" \ 2242 && test "$*" != "X conftest.file $srcdir/configure"; then 2243 2244 # If neither matched, then we have a broken ls. This can happen 2245 # if, for instance, CONFIG_SHELL is bash and it inherits a 2246 # broken ls alias from the environment. This has actually 2247 # happened. Such a system could not be considered "sane". 2248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2249 alias in your environment" "$LINENO" 5 2250 fi 2251 if test "$2" = conftest.file || test $am_try -eq 2; then 2252 break 2253 fi 2254 # Just in case. 2255 sleep 1 2256 am_has_slept=yes 2257 done 2258 test "$2" = conftest.file 2259 ) 2260then 2261 # Ok. 2262 : 2263else 2264 as_fn_error $? "newly created file is older than distributed files! 2265Check your system clock" "$LINENO" 5 2266fi 2267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2268$as_echo "yes" >&6; } 2269# If we didn't sleep, we still need to ensure time stamps of config.status and 2270# generated files are strictly newer. 2271am_sleep_pid= 2272if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2273 ( sleep 1 ) & 2274 am_sleep_pid=$! 2275fi 2276 2277rm -f conftest.file 2278 2279test "$program_prefix" != NONE && 2280 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2281# Use a double $ so make ignores it. 2282test "$program_suffix" != NONE && 2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2284# Double any \ or $. 2285# By default was `s,x,x', remove it if useless. 2286ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2287program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2288 2289# expand $ac_aux_dir to an absolute path 2290am_aux_dir=`cd $ac_aux_dir && pwd` 2291 2292if test x"${MISSING+set}" != xset; then 2293 case $am_aux_dir in 2294 *\ * | *\ *) 2295 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2296 *) 2297 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2298 esac 2299fi 2300# Use eval to expand $SHELL 2301if eval "$MISSING --is-lightweight"; then 2302 am_missing_run="$MISSING " 2303else 2304 am_missing_run= 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2306$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2307fi 2308 2309if test x"${install_sh}" != xset; then 2310 case $am_aux_dir in 2311 *\ * | *\ *) 2312 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2313 *) 2314 install_sh="\${SHELL} $am_aux_dir/install-sh" 2315 esac 2316fi 2317 2318# Installed binaries are usually stripped using 'strip' when the user 2319# run "make install-strip". However 'strip' might not be the right 2320# tool to use in cross-compilation environments, therefore Automake 2321# will honor the 'STRIP' environment variable to overrule this program. 2322if test "$cross_compiling" != no; then 2323 if test -n "$ac_tool_prefix"; then 2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2325set dummy ${ac_tool_prefix}strip; ac_word=$2 2326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2327$as_echo_n "checking for $ac_word... " >&6; } 2328if ${ac_cv_prog_STRIP+:} false; then : 2329 $as_echo_n "(cached) " >&6 2330else 2331 if test -n "$STRIP"; then 2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2333else 2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2335for as_dir in $PATH 2336do 2337 IFS=$as_save_IFS 2338 test -z "$as_dir" && as_dir=. 2339 for ac_exec_ext in '' $ac_executable_extensions; do 2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2343 break 2 2344 fi 2345done 2346 done 2347IFS=$as_save_IFS 2348 2349fi 2350fi 2351STRIP=$ac_cv_prog_STRIP 2352if test -n "$STRIP"; then 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2354$as_echo "$STRIP" >&6; } 2355else 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2357$as_echo "no" >&6; } 2358fi 2359 2360 2361fi 2362if test -z "$ac_cv_prog_STRIP"; then 2363 ac_ct_STRIP=$STRIP 2364 # Extract the first word of "strip", so it can be a program name with args. 2365set dummy strip; ac_word=$2 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2367$as_echo_n "checking for $ac_word... " >&6; } 2368if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2369 $as_echo_n "(cached) " >&6 2370else 2371 if test -n "$ac_ct_STRIP"; then 2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2373else 2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 for ac_exec_ext in '' $ac_executable_extensions; do 2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2381 ac_cv_prog_ac_ct_STRIP="strip" 2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385done 2386 done 2387IFS=$as_save_IFS 2388 2389fi 2390fi 2391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2392if test -n "$ac_ct_STRIP"; then 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2394$as_echo "$ac_ct_STRIP" >&6; } 2395else 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2397$as_echo "no" >&6; } 2398fi 2399 2400 if test "x$ac_ct_STRIP" = x; then 2401 STRIP=":" 2402 else 2403 case $cross_compiling:$ac_tool_warned in 2404yes:) 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2407ac_tool_warned=yes ;; 2408esac 2409 STRIP=$ac_ct_STRIP 2410 fi 2411else 2412 STRIP="$ac_cv_prog_STRIP" 2413fi 2414 2415fi 2416INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2417 2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2419$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2420if test -z "$MKDIR_P"; then 2421 if ${ac_cv_path_mkdir+:} false; then : 2422 $as_echo_n "(cached) " >&6 2423else 2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2425for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2426do 2427 IFS=$as_save_IFS 2428 test -z "$as_dir" && as_dir=. 2429 for ac_prog in mkdir gmkdir; do 2430 for ac_exec_ext in '' $ac_executable_extensions; do 2431 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2432 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2433 'mkdir (GNU coreutils) '* | \ 2434 'mkdir (coreutils) '* | \ 2435 'mkdir (fileutils) '4.1*) 2436 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2437 break 3;; 2438 esac 2439 done 2440 done 2441 done 2442IFS=$as_save_IFS 2443 2444fi 2445 2446 test -d ./--version && rmdir ./--version 2447 if test "${ac_cv_path_mkdir+set}" = set; then 2448 MKDIR_P="$ac_cv_path_mkdir -p" 2449 else 2450 # As a last resort, use the slow shell script. Don't cache a 2451 # value for MKDIR_P within a source directory, because that will 2452 # break other packages using the cache if that directory is 2453 # removed, or if the value is a relative name. 2454 MKDIR_P="$ac_install_sh -d" 2455 fi 2456fi 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2458$as_echo "$MKDIR_P" >&6; } 2459 2460for ac_prog in gawk mawk nawk awk 2461do 2462 # Extract the first word of "$ac_prog", so it can be a program name with args. 2463set dummy $ac_prog; ac_word=$2 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2465$as_echo_n "checking for $ac_word... " >&6; } 2466if ${ac_cv_prog_AWK+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 if test -n "$AWK"; then 2470 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2479 ac_cv_prog_AWK="$ac_prog" 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484 done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489AWK=$ac_cv_prog_AWK 2490if test -n "$AWK"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2492$as_echo "$AWK" >&6; } 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2495$as_echo "no" >&6; } 2496fi 2497 2498 2499 test -n "$AWK" && break 2500done 2501 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2503$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2504set x ${MAKE-make} 2505ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2506if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2507 $as_echo_n "(cached) " >&6 2508else 2509 cat >conftest.make <<\_ACEOF 2510SHELL = /bin/sh 2511all: 2512 @echo '@@@%%%=$(MAKE)=@@@%%%' 2513_ACEOF 2514# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2515case `${MAKE-make} -f conftest.make 2>/dev/null` in 2516 *@@@%%%=?*=@@@%%%*) 2517 eval ac_cv_prog_make_${ac_make}_set=yes;; 2518 *) 2519 eval ac_cv_prog_make_${ac_make}_set=no;; 2520esac 2521rm -f conftest.make 2522fi 2523if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2525$as_echo "yes" >&6; } 2526 SET_MAKE= 2527else 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2529$as_echo "no" >&6; } 2530 SET_MAKE="MAKE=${MAKE-make}" 2531fi 2532 2533rm -rf .tst 2>/dev/null 2534mkdir .tst 2>/dev/null 2535if test -d .tst; then 2536 am__leading_dot=. 2537else 2538 am__leading_dot=_ 2539fi 2540rmdir .tst 2>/dev/null 2541 2542# Check whether --enable-silent-rules was given. 2543if test "${enable_silent_rules+set}" = set; then : 2544 enableval=$enable_silent_rules; 2545fi 2546 2547case $enable_silent_rules in # ((( 2548 yes) AM_DEFAULT_VERBOSITY=0;; 2549 no) AM_DEFAULT_VERBOSITY=1;; 2550 *) AM_DEFAULT_VERBOSITY=1;; 2551esac 2552am_make=${MAKE-make} 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2554$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2555if ${am_cv_make_support_nested_variables+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557else 2558 if $as_echo 'TRUE=$(BAR$(V)) 2559BAR0=false 2560BAR1=true 2561V=1 2562am__doit: 2563 @$(TRUE) 2564.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2565 am_cv_make_support_nested_variables=yes 2566else 2567 am_cv_make_support_nested_variables=no 2568fi 2569fi 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2571$as_echo "$am_cv_make_support_nested_variables" >&6; } 2572if test $am_cv_make_support_nested_variables = yes; then 2573 AM_V='$(V)' 2574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2575else 2576 AM_V=$AM_DEFAULT_VERBOSITY 2577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2578fi 2579AM_BACKSLASH='\' 2580 2581if test "`cd $srcdir && pwd`" != "`pwd`"; then 2582 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2583 # is not polluted with repeated "-I." 2584 am__isrc=' -I$(srcdir)' 2585 # test to see if srcdir already configured 2586 if test -f $srcdir/config.status; then 2587 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2588 fi 2589fi 2590 2591# test whether we have cygpath 2592if test -z "$CYGPATH_W"; then 2593 if (cygpath --version) >/dev/null 2>/dev/null; then 2594 CYGPATH_W='cygpath -w' 2595 else 2596 CYGPATH_W=echo 2597 fi 2598fi 2599 2600 2601# Define the identity of the package. 2602 PACKAGE='xfontsel' 2603 VERSION='1.0.5' 2604 2605 2606cat >>confdefs.h <<_ACEOF 2607#define PACKAGE "$PACKAGE" 2608_ACEOF 2609 2610 2611cat >>confdefs.h <<_ACEOF 2612#define VERSION "$VERSION" 2613_ACEOF 2614 2615# Some tools Automake needs. 2616 2617ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2618 2619 2620AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2621 2622 2623AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2624 2625 2626AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2627 2628 2629MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2630 2631# For better backward compatibility. To be removed once Automake 1.9.x 2632# dies out for good. For more background, see: 2633# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2634# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2635mkdir_p='$(MKDIR_P)' 2636 2637# We need awk for the "check" target. The system "awk" is bad on 2638# some platforms. 2639# Always define AMTAR for backward compatibility. Yes, it's still used 2640# in the wild :-( We should find a proper way to deprecate it ... 2641AMTAR='$${TAR-tar}' 2642 2643 2644# We'll loop over all known methods to create a tar archive until one works. 2645_am_tools='gnutar pax cpio none' 2646 2647am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2648 2649 2650 2651 2652 2653 2654 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2656$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2657 # Check whether --enable-maintainer-mode was given. 2658if test "${enable_maintainer_mode+set}" = set; then : 2659 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2660else 2661 USE_MAINTAINER_MODE=no 2662fi 2663 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2665$as_echo "$USE_MAINTAINER_MODE" >&6; } 2666 if test $USE_MAINTAINER_MODE = yes; then 2667 MAINTAINER_MODE_TRUE= 2668 MAINTAINER_MODE_FALSE='#' 2669else 2670 MAINTAINER_MODE_TRUE='#' 2671 MAINTAINER_MODE_FALSE= 2672fi 2673 2674 MAINT=$MAINTAINER_MODE_TRUE 2675 2676 2677 2678# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690DEPDIR="${am__leading_dot}deps" 2691 2692ac_config_commands="$ac_config_commands depfiles" 2693 2694 2695am_make=${MAKE-make} 2696cat > confinc << 'END' 2697am__doit: 2698 @echo this is the am__doit target 2699.PHONY: am__doit 2700END 2701# If we don't find an include directive, just comment out the code. 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2703$as_echo_n "checking for style of include used by $am_make... " >&6; } 2704am__include="#" 2705am__quote= 2706_am_result=none 2707# First try GNU make style include. 2708echo "include confinc" > confmf 2709# Ignore all kinds of additional output from 'make'. 2710case `$am_make -s -f confmf 2> /dev/null` in #( 2711*the\ am__doit\ target*) 2712 am__include=include 2713 am__quote= 2714 _am_result=GNU 2715 ;; 2716esac 2717# Now try BSD make style include. 2718if test "$am__include" = "#"; then 2719 echo '.include "confinc"' > confmf 2720 case `$am_make -s -f confmf 2> /dev/null` in #( 2721 *the\ am__doit\ target*) 2722 am__include=.include 2723 am__quote="\"" 2724 _am_result=BSD 2725 ;; 2726 esac 2727fi 2728 2729 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2731$as_echo "$_am_result" >&6; } 2732rm -f confinc confmf 2733 2734# Check whether --enable-dependency-tracking was given. 2735if test "${enable_dependency_tracking+set}" = set; then : 2736 enableval=$enable_dependency_tracking; 2737fi 2738 2739if test "x$enable_dependency_tracking" != xno; then 2740 am_depcomp="$ac_aux_dir/depcomp" 2741 AMDEPBACKSLASH='\' 2742 am__nodep='_no' 2743fi 2744 if test "x$enable_dependency_tracking" != xno; then 2745 AMDEP_TRUE= 2746 AMDEP_FALSE='#' 2747else 2748 AMDEP_TRUE='#' 2749 AMDEP_FALSE= 2750fi 2751 2752 2753ac_ext=c 2754ac_cpp='$CPP $CPPFLAGS' 2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2757ac_compiler_gnu=$ac_cv_c_compiler_gnu 2758if test -n "$ac_tool_prefix"; then 2759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2760set dummy ${ac_tool_prefix}gcc; ac_word=$2 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2762$as_echo_n "checking for $ac_word... " >&6; } 2763if ${ac_cv_prog_CC+:} false; then : 2764 $as_echo_n "(cached) " >&6 2765else 2766 if test -n "$CC"; then 2767 ac_cv_prog_CC="$CC" # Let the user override the test. 2768else 2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 test -z "$as_dir" && as_dir=. 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2776 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2778 break 2 2779 fi 2780done 2781 done 2782IFS=$as_save_IFS 2783 2784fi 2785fi 2786CC=$ac_cv_prog_CC 2787if test -n "$CC"; then 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2789$as_echo "$CC" >&6; } 2790else 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2792$as_echo "no" >&6; } 2793fi 2794 2795 2796fi 2797if test -z "$ac_cv_prog_CC"; then 2798 ac_ct_CC=$CC 2799 # Extract the first word of "gcc", so it can be a program name with args. 2800set dummy gcc; ac_word=$2 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2802$as_echo_n "checking for $ac_word... " >&6; } 2803if ${ac_cv_prog_ac_ct_CC+:} false; then : 2804 $as_echo_n "(cached) " >&6 2805else 2806 if test -n "$ac_ct_CC"; then 2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2808else 2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810for as_dir in $PATH 2811do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 for ac_exec_ext in '' $ac_executable_extensions; do 2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2816 ac_cv_prog_ac_ct_CC="gcc" 2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2818 break 2 2819 fi 2820done 2821 done 2822IFS=$as_save_IFS 2823 2824fi 2825fi 2826ac_ct_CC=$ac_cv_prog_ac_ct_CC 2827if test -n "$ac_ct_CC"; then 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2829$as_echo "$ac_ct_CC" >&6; } 2830else 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832$as_echo "no" >&6; } 2833fi 2834 2835 if test "x$ac_ct_CC" = x; then 2836 CC="" 2837 else 2838 case $cross_compiling:$ac_tool_warned in 2839yes:) 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2842ac_tool_warned=yes ;; 2843esac 2844 CC=$ac_ct_CC 2845 fi 2846else 2847 CC="$ac_cv_prog_CC" 2848fi 2849 2850if test -z "$CC"; then 2851 if test -n "$ac_tool_prefix"; then 2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2853set dummy ${ac_tool_prefix}cc; ac_word=$2 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855$as_echo_n "checking for $ac_word... " >&6; } 2856if ${ac_cv_prog_CC+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 if test -n "$CC"; then 2860 ac_cv_prog_CC="$CC" # Let the user override the test. 2861else 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2869 ac_cv_prog_CC="${ac_tool_prefix}cc" 2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874 done 2875IFS=$as_save_IFS 2876 2877fi 2878fi 2879CC=$ac_cv_prog_CC 2880if test -n "$CC"; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2882$as_echo "$CC" >&6; } 2883else 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885$as_echo "no" >&6; } 2886fi 2887 2888 2889 fi 2890fi 2891if test -z "$CC"; then 2892 # Extract the first word of "cc", so it can be a program name with args. 2893set dummy cc; ac_word=$2 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2895$as_echo_n "checking for $ac_word... " >&6; } 2896if ${ac_cv_prog_CC+:} false; then : 2897 $as_echo_n "(cached) " >&6 2898else 2899 if test -n "$CC"; then 2900 ac_cv_prog_CC="$CC" # Let the user override the test. 2901else 2902 ac_prog_rejected=no 2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2904for as_dir in $PATH 2905do 2906 IFS=$as_save_IFS 2907 test -z "$as_dir" && as_dir=. 2908 for ac_exec_ext in '' $ac_executable_extensions; do 2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2911 ac_prog_rejected=yes 2912 continue 2913 fi 2914 ac_cv_prog_CC="cc" 2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2916 break 2 2917 fi 2918done 2919 done 2920IFS=$as_save_IFS 2921 2922if test $ac_prog_rejected = yes; then 2923 # We found a bogon in the path, so make sure we never use it. 2924 set dummy $ac_cv_prog_CC 2925 shift 2926 if test $# != 0; then 2927 # We chose a different compiler from the bogus one. 2928 # However, it has the same basename, so the bogon will be chosen 2929 # first if we set CC to just the basename; use the full file name. 2930 shift 2931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2932 fi 2933fi 2934fi 2935fi 2936CC=$ac_cv_prog_CC 2937if test -n "$CC"; then 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2939$as_echo "$CC" >&6; } 2940else 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2942$as_echo "no" >&6; } 2943fi 2944 2945 2946fi 2947if test -z "$CC"; then 2948 if test -n "$ac_tool_prefix"; then 2949 for ac_prog in cl.exe 2950 do 2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2952set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954$as_echo_n "checking for $ac_word... " >&6; } 2955if ${ac_cv_prog_CC+:} false; then : 2956 $as_echo_n "(cached) " >&6 2957else 2958 if test -n "$CC"; then 2959 ac_cv_prog_CC="$CC" # Let the user override the test. 2960else 2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2962for as_dir in $PATH 2963do 2964 IFS=$as_save_IFS 2965 test -z "$as_dir" && as_dir=. 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2970 break 2 2971 fi 2972done 2973 done 2974IFS=$as_save_IFS 2975 2976fi 2977fi 2978CC=$ac_cv_prog_CC 2979if test -n "$CC"; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2981$as_echo "$CC" >&6; } 2982else 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984$as_echo "no" >&6; } 2985fi 2986 2987 2988 test -n "$CC" && break 2989 done 2990fi 2991if test -z "$CC"; then 2992 ac_ct_CC=$CC 2993 for ac_prog in cl.exe 2994do 2995 # Extract the first word of "$ac_prog", so it can be a program name with args. 2996set dummy $ac_prog; ac_word=$2 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2998$as_echo_n "checking for $ac_word... " >&6; } 2999if ${ac_cv_prog_ac_ct_CC+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001else 3002 if test -n "$ac_ct_CC"; then 3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3004else 3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006for as_dir in $PATH 3007do 3008 IFS=$as_save_IFS 3009 test -z "$as_dir" && as_dir=. 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3012 ac_cv_prog_ac_ct_CC="$ac_prog" 3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3014 break 2 3015 fi 3016done 3017 done 3018IFS=$as_save_IFS 3019 3020fi 3021fi 3022ac_ct_CC=$ac_cv_prog_ac_ct_CC 3023if test -n "$ac_ct_CC"; then 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3025$as_echo "$ac_ct_CC" >&6; } 3026else 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028$as_echo "no" >&6; } 3029fi 3030 3031 3032 test -n "$ac_ct_CC" && break 3033done 3034 3035 if test "x$ac_ct_CC" = x; then 3036 CC="" 3037 else 3038 case $cross_compiling:$ac_tool_warned in 3039yes:) 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3042ac_tool_warned=yes ;; 3043esac 3044 CC=$ac_ct_CC 3045 fi 3046fi 3047 3048fi 3049 3050 3051test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3053as_fn_error $? "no acceptable C compiler found in \$PATH 3054See \`config.log' for more details" "$LINENO" 5; } 3055 3056# Provide some information about the compiler. 3057$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3058set X $ac_compile 3059ac_compiler=$2 3060for ac_option in --version -v -V -qversion; do 3061 { { ac_try="$ac_compiler $ac_option >&5" 3062case "(($ac_try" in 3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3064 *) ac_try_echo=$ac_try;; 3065esac 3066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3067$as_echo "$ac_try_echo"; } >&5 3068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3069 ac_status=$? 3070 if test -s conftest.err; then 3071 sed '10a\ 3072... rest of stderr output deleted ... 3073 10q' conftest.err >conftest.er1 3074 cat conftest.er1 >&5 3075 fi 3076 rm -f conftest.er1 conftest.err 3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3078 test $ac_status = 0; } 3079done 3080 3081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3082/* end confdefs.h. */ 3083 3084int 3085main () 3086{ 3087 3088 ; 3089 return 0; 3090} 3091_ACEOF 3092ac_clean_files_save=$ac_clean_files 3093ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3094# Try to create an executable without -o first, disregard a.out. 3095# It will help us diagnose broken compilers, and finding out an intuition 3096# of exeext. 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3098$as_echo_n "checking whether the C compiler works... " >&6; } 3099ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3100 3101# The possible output files: 3102ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3103 3104ac_rmfiles= 3105for ac_file in $ac_files 3106do 3107 case $ac_file in 3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3109 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3110 esac 3111done 3112rm -f $ac_rmfiles 3113 3114if { { ac_try="$ac_link_default" 3115case "(($ac_try" in 3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3117 *) ac_try_echo=$ac_try;; 3118esac 3119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3120$as_echo "$ac_try_echo"; } >&5 3121 (eval "$ac_link_default") 2>&5 3122 ac_status=$? 3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3124 test $ac_status = 0; }; then : 3125 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3126# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3127# in a Makefile. We should not override ac_cv_exeext if it was cached, 3128# so that the user can short-circuit this test for compilers unknown to 3129# Autoconf. 3130for ac_file in $ac_files '' 3131do 3132 test -f "$ac_file" || continue 3133 case $ac_file in 3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3135 ;; 3136 [ab].out ) 3137 # We found the default executable, but exeext='' is most 3138 # certainly right. 3139 break;; 3140 *.* ) 3141 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3142 then :; else 3143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3144 fi 3145 # We set ac_cv_exeext here because the later test for it is not 3146 # safe: cross compilers may not add the suffix if given an `-o' 3147 # argument, so we may need to know it at that point already. 3148 # Even if this section looks crufty: it has the advantage of 3149 # actually working. 3150 break;; 3151 * ) 3152 break;; 3153 esac 3154done 3155test "$ac_cv_exeext" = no && ac_cv_exeext= 3156 3157else 3158 ac_file='' 3159fi 3160if test -z "$ac_file"; then : 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3162$as_echo "no" >&6; } 3163$as_echo "$as_me: failed program was:" >&5 3164sed 's/^/| /' conftest.$ac_ext >&5 3165 3166{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3168as_fn_error 77 "C compiler cannot create executables 3169See \`config.log' for more details" "$LINENO" 5; } 3170else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3172$as_echo "yes" >&6; } 3173fi 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3175$as_echo_n "checking for C compiler default output file name... " >&6; } 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3177$as_echo "$ac_file" >&6; } 3178ac_exeext=$ac_cv_exeext 3179 3180rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3181ac_clean_files=$ac_clean_files_save 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3183$as_echo_n "checking for suffix of executables... " >&6; } 3184if { { ac_try="$ac_link" 3185case "(($ac_try" in 3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3187 *) ac_try_echo=$ac_try;; 3188esac 3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3190$as_echo "$ac_try_echo"; } >&5 3191 (eval "$ac_link") 2>&5 3192 ac_status=$? 3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3194 test $ac_status = 0; }; then : 3195 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3196# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3197# work properly (i.e., refer to `conftest.exe'), while it won't with 3198# `rm'. 3199for ac_file in conftest.exe conftest conftest.*; do 3200 test -f "$ac_file" || continue 3201 case $ac_file in 3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3204 break;; 3205 * ) break;; 3206 esac 3207done 3208else 3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3211as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3212See \`config.log' for more details" "$LINENO" 5; } 3213fi 3214rm -f conftest conftest$ac_cv_exeext 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3216$as_echo "$ac_cv_exeext" >&6; } 3217 3218rm -f conftest.$ac_ext 3219EXEEXT=$ac_cv_exeext 3220ac_exeext=$EXEEXT 3221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3222/* end confdefs.h. */ 3223#include <stdio.h> 3224int 3225main () 3226{ 3227FILE *f = fopen ("conftest.out", "w"); 3228 return ferror (f) || fclose (f) != 0; 3229 3230 ; 3231 return 0; 3232} 3233_ACEOF 3234ac_clean_files="$ac_clean_files conftest.out" 3235# Check that the compiler produces executables we can run. If not, either 3236# the compiler is broken, or we cross compile. 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3238$as_echo_n "checking whether we are cross compiling... " >&6; } 3239if test "$cross_compiling" != yes; then 3240 { { ac_try="$ac_link" 3241case "(($ac_try" in 3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3243 *) ac_try_echo=$ac_try;; 3244esac 3245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3246$as_echo "$ac_try_echo"; } >&5 3247 (eval "$ac_link") 2>&5 3248 ac_status=$? 3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3250 test $ac_status = 0; } 3251 if { ac_try='./conftest$ac_cv_exeext' 3252 { { case "(($ac_try" in 3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3254 *) ac_try_echo=$ac_try;; 3255esac 3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3257$as_echo "$ac_try_echo"; } >&5 3258 (eval "$ac_try") 2>&5 3259 ac_status=$? 3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3261 test $ac_status = 0; }; }; then 3262 cross_compiling=no 3263 else 3264 if test "$cross_compiling" = maybe; then 3265 cross_compiling=yes 3266 else 3267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3269as_fn_error $? "cannot run C compiled programs. 3270If you meant to cross compile, use \`--host'. 3271See \`config.log' for more details" "$LINENO" 5; } 3272 fi 3273 fi 3274fi 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3276$as_echo "$cross_compiling" >&6; } 3277 3278rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3279ac_clean_files=$ac_clean_files_save 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3281$as_echo_n "checking for suffix of object files... " >&6; } 3282if ${ac_cv_objext+:} false; then : 3283 $as_echo_n "(cached) " >&6 3284else 3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3286/* end confdefs.h. */ 3287 3288int 3289main () 3290{ 3291 3292 ; 3293 return 0; 3294} 3295_ACEOF 3296rm -f conftest.o conftest.obj 3297if { { ac_try="$ac_compile" 3298case "(($ac_try" in 3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3300 *) ac_try_echo=$ac_try;; 3301esac 3302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3303$as_echo "$ac_try_echo"; } >&5 3304 (eval "$ac_compile") 2>&5 3305 ac_status=$? 3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3307 test $ac_status = 0; }; then : 3308 for ac_file in conftest.o conftest.obj conftest.*; do 3309 test -f "$ac_file" || continue; 3310 case $ac_file in 3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3312 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3313 break;; 3314 esac 3315done 3316else 3317 $as_echo "$as_me: failed program was:" >&5 3318sed 's/^/| /' conftest.$ac_ext >&5 3319 3320{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3322as_fn_error $? "cannot compute suffix of object files: cannot compile 3323See \`config.log' for more details" "$LINENO" 5; } 3324fi 3325rm -f conftest.$ac_cv_objext conftest.$ac_ext 3326fi 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3328$as_echo "$ac_cv_objext" >&6; } 3329OBJEXT=$ac_cv_objext 3330ac_objext=$OBJEXT 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3332$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3333if ${ac_cv_c_compiler_gnu+:} false; then : 3334 $as_echo_n "(cached) " >&6 3335else 3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3337/* end confdefs.h. */ 3338 3339int 3340main () 3341{ 3342#ifndef __GNUC__ 3343 choke me 3344#endif 3345 3346 ; 3347 return 0; 3348} 3349_ACEOF 3350if ac_fn_c_try_compile "$LINENO"; then : 3351 ac_compiler_gnu=yes 3352else 3353 ac_compiler_gnu=no 3354fi 3355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3356ac_cv_c_compiler_gnu=$ac_compiler_gnu 3357 3358fi 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3360$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3361if test $ac_compiler_gnu = yes; then 3362 GCC=yes 3363else 3364 GCC= 3365fi 3366ac_test_CFLAGS=${CFLAGS+set} 3367ac_save_CFLAGS=$CFLAGS 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3369$as_echo_n "checking whether $CC accepts -g... " >&6; } 3370if ${ac_cv_prog_cc_g+:} false; then : 3371 $as_echo_n "(cached) " >&6 3372else 3373 ac_save_c_werror_flag=$ac_c_werror_flag 3374 ac_c_werror_flag=yes 3375 ac_cv_prog_cc_g=no 3376 CFLAGS="-g" 3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3378/* end confdefs.h. */ 3379 3380int 3381main () 3382{ 3383 3384 ; 3385 return 0; 3386} 3387_ACEOF 3388if ac_fn_c_try_compile "$LINENO"; then : 3389 ac_cv_prog_cc_g=yes 3390else 3391 CFLAGS="" 3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3393/* end confdefs.h. */ 3394 3395int 3396main () 3397{ 3398 3399 ; 3400 return 0; 3401} 3402_ACEOF 3403if ac_fn_c_try_compile "$LINENO"; then : 3404 3405else 3406 ac_c_werror_flag=$ac_save_c_werror_flag 3407 CFLAGS="-g" 3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3409/* end confdefs.h. */ 3410 3411int 3412main () 3413{ 3414 3415 ; 3416 return 0; 3417} 3418_ACEOF 3419if ac_fn_c_try_compile "$LINENO"; then : 3420 ac_cv_prog_cc_g=yes 3421fi 3422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3423fi 3424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3425fi 3426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3427 ac_c_werror_flag=$ac_save_c_werror_flag 3428fi 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3430$as_echo "$ac_cv_prog_cc_g" >&6; } 3431if test "$ac_test_CFLAGS" = set; then 3432 CFLAGS=$ac_save_CFLAGS 3433elif test $ac_cv_prog_cc_g = yes; then 3434 if test "$GCC" = yes; then 3435 CFLAGS="-g -O2" 3436 else 3437 CFLAGS="-g" 3438 fi 3439else 3440 if test "$GCC" = yes; then 3441 CFLAGS="-O2" 3442 else 3443 CFLAGS= 3444 fi 3445fi 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3447$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3448if ${ac_cv_prog_cc_c89+:} false; then : 3449 $as_echo_n "(cached) " >&6 3450else 3451 ac_cv_prog_cc_c89=no 3452ac_save_CC=$CC 3453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455#include <stdarg.h> 3456#include <stdio.h> 3457#include <sys/types.h> 3458#include <sys/stat.h> 3459/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3460struct buf { int x; }; 3461FILE * (*rcsopen) (struct buf *, struct stat *, int); 3462static char *e (p, i) 3463 char **p; 3464 int i; 3465{ 3466 return p[i]; 3467} 3468static char *f (char * (*g) (char **, int), char **p, ...) 3469{ 3470 char *s; 3471 va_list v; 3472 va_start (v,p); 3473 s = g (p, va_arg (v,int)); 3474 va_end (v); 3475 return s; 3476} 3477 3478/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3479 function prototypes and stuff, but not '\xHH' hex character constants. 3480 These don't provoke an error unfortunately, instead are silently treated 3481 as 'x'. The following induces an error, until -std is added to get 3482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3483 array size at least. It's necessary to write '\x00'==0 to get something 3484 that's true only with -std. */ 3485int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3486 3487/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3488 inside strings and character constants. */ 3489#define FOO(x) 'x' 3490int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3491 3492int test (int i, double x); 3493struct s1 {int (*f) (int a);}; 3494struct s2 {int (*f) (double a);}; 3495int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3496int argc; 3497char **argv; 3498int 3499main () 3500{ 3501return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3507 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3508do 3509 CC="$ac_save_CC $ac_arg" 3510 if ac_fn_c_try_compile "$LINENO"; then : 3511 ac_cv_prog_cc_c89=$ac_arg 3512fi 3513rm -f core conftest.err conftest.$ac_objext 3514 test "x$ac_cv_prog_cc_c89" != "xno" && break 3515done 3516rm -f conftest.$ac_ext 3517CC=$ac_save_CC 3518 3519fi 3520# AC_CACHE_VAL 3521case "x$ac_cv_prog_cc_c89" in 3522 x) 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3524$as_echo "none needed" >&6; } ;; 3525 xno) 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3527$as_echo "unsupported" >&6; } ;; 3528 *) 3529 CC="$CC $ac_cv_prog_cc_c89" 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3531$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3532esac 3533if test "x$ac_cv_prog_cc_c89" != xno; then : 3534 3535fi 3536 3537ac_ext=c 3538ac_cpp='$CPP $CPPFLAGS' 3539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3541ac_compiler_gnu=$ac_cv_c_compiler_gnu 3542 3543depcc="$CC" am_compiler_list= 3544 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3546$as_echo_n "checking dependency style of $depcc... " >&6; } 3547if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3548 $as_echo_n "(cached) " >&6 3549else 3550 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3551 # We make a subdir and do the tests there. Otherwise we can end up 3552 # making bogus files that we don't know about and never remove. For 3553 # instance it was reported that on HP-UX the gcc test will end up 3554 # making a dummy file named 'D' -- because '-MD' means "put the output 3555 # in D". 3556 rm -rf conftest.dir 3557 mkdir conftest.dir 3558 # Copy depcomp to subdir because otherwise we won't find it if we're 3559 # using a relative directory. 3560 cp "$am_depcomp" conftest.dir 3561 cd conftest.dir 3562 # We will build objects and dependencies in a subdirectory because 3563 # it helps to detect inapplicable dependency modes. For instance 3564 # both Tru64's cc and ICC support -MD to output dependencies as a 3565 # side effect of compilation, but ICC will put the dependencies in 3566 # the current directory while Tru64 will put them in the object 3567 # directory. 3568 mkdir sub 3569 3570 am_cv_CC_dependencies_compiler_type=none 3571 if test "$am_compiler_list" = ""; then 3572 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3573 fi 3574 am__universal=false 3575 case " $depcc " in #( 3576 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3577 esac 3578 3579 for depmode in $am_compiler_list; do 3580 # Setup a source with many dependencies, because some compilers 3581 # like to wrap large dependency lists on column 80 (with \), and 3582 # we should not choose a depcomp mode which is confused by this. 3583 # 3584 # We need to recreate these files for each test, as the compiler may 3585 # overwrite some of them when testing with obscure command lines. 3586 # This happens at least with the AIX C compiler. 3587 : > sub/conftest.c 3588 for i in 1 2 3 4 5 6; do 3589 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3590 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3591 # Solaris 10 /bin/sh. 3592 echo '/* dummy */' > sub/conftst$i.h 3593 done 3594 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3595 3596 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3597 # mode. It turns out that the SunPro C++ compiler does not properly 3598 # handle '-M -o', and we need to detect this. Also, some Intel 3599 # versions had trouble with output in subdirs. 3600 am__obj=sub/conftest.${OBJEXT-o} 3601 am__minus_obj="-o $am__obj" 3602 case $depmode in 3603 gcc) 3604 # This depmode causes a compiler race in universal mode. 3605 test "$am__universal" = false || continue 3606 ;; 3607 nosideeffect) 3608 # After this tag, mechanisms are not by side-effect, so they'll 3609 # only be used when explicitly requested. 3610 if test "x$enable_dependency_tracking" = xyes; then 3611 continue 3612 else 3613 break 3614 fi 3615 ;; 3616 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3617 # This compiler won't grok '-c -o', but also, the minuso test has 3618 # not run yet. These depmodes are late enough in the game, and 3619 # so weak that their functioning should not be impacted. 3620 am__obj=conftest.${OBJEXT-o} 3621 am__minus_obj= 3622 ;; 3623 none) break ;; 3624 esac 3625 if depmode=$depmode \ 3626 source=sub/conftest.c object=$am__obj \ 3627 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3628 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3629 >/dev/null 2>conftest.err && 3630 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3631 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3632 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3633 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3634 # icc doesn't choke on unknown options, it will just issue warnings 3635 # or remarks (even with -Werror). So we grep stderr for any message 3636 # that says an option was ignored or not supported. 3637 # When given -MP, icc 7.0 and 7.1 complain thusly: 3638 # icc: Command line warning: ignoring option '-M'; no argument required 3639 # The diagnosis changed in icc 8.0: 3640 # icc: Command line remark: option '-MP' not supported 3641 if (grep 'ignoring option' conftest.err || 3642 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3643 am_cv_CC_dependencies_compiler_type=$depmode 3644 break 3645 fi 3646 fi 3647 done 3648 3649 cd .. 3650 rm -rf conftest.dir 3651else 3652 am_cv_CC_dependencies_compiler_type=none 3653fi 3654 3655fi 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3657$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3658CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3659 3660 if 3661 test "x$enable_dependency_tracking" != xno \ 3662 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3663 am__fastdepCC_TRUE= 3664 am__fastdepCC_FALSE='#' 3665else 3666 am__fastdepCC_TRUE='#' 3667 am__fastdepCC_FALSE= 3668fi 3669 3670 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3672$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3673if ${ac_cv_prog_cc_c99+:} false; then : 3674 $as_echo_n "(cached) " >&6 3675else 3676 ac_cv_prog_cc_c99=no 3677ac_save_CC=$CC 3678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679/* end confdefs.h. */ 3680#include <stdarg.h> 3681#include <stdbool.h> 3682#include <stdlib.h> 3683#include <wchar.h> 3684#include <stdio.h> 3685 3686// Check varargs macros. These examples are taken from C99 6.10.3.5. 3687#define debug(...) fprintf (stderr, __VA_ARGS__) 3688#define showlist(...) puts (#__VA_ARGS__) 3689#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3690static void 3691test_varargs_macros (void) 3692{ 3693 int x = 1234; 3694 int y = 5678; 3695 debug ("Flag"); 3696 debug ("X = %d\n", x); 3697 showlist (The first, second, and third items.); 3698 report (x>y, "x is %d but y is %d", x, y); 3699} 3700 3701// Check long long types. 3702#define BIG64 18446744073709551615ull 3703#define BIG32 4294967295ul 3704#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3705#if !BIG_OK 3706 your preprocessor is broken; 3707#endif 3708#if BIG_OK 3709#else 3710 your preprocessor is broken; 3711#endif 3712static long long int bignum = -9223372036854775807LL; 3713static unsigned long long int ubignum = BIG64; 3714 3715struct incomplete_array 3716{ 3717 int datasize; 3718 double data[]; 3719}; 3720 3721struct named_init { 3722 int number; 3723 const wchar_t *name; 3724 double average; 3725}; 3726 3727typedef const char *ccp; 3728 3729static inline int 3730test_restrict (ccp restrict text) 3731{ 3732 // See if C++-style comments work. 3733 // Iterate through items via the restricted pointer. 3734 // Also check for declarations in for loops. 3735 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3736 continue; 3737 return 0; 3738} 3739 3740// Check varargs and va_copy. 3741static void 3742test_varargs (const char *format, ...) 3743{ 3744 va_list args; 3745 va_start (args, format); 3746 va_list args_copy; 3747 va_copy (args_copy, args); 3748 3749 const char *str; 3750 int number; 3751 float fnumber; 3752 3753 while (*format) 3754 { 3755 switch (*format++) 3756 { 3757 case 's': // string 3758 str = va_arg (args_copy, const char *); 3759 break; 3760 case 'd': // int 3761 number = va_arg (args_copy, int); 3762 break; 3763 case 'f': // float 3764 fnumber = va_arg (args_copy, double); 3765 break; 3766 default: 3767 break; 3768 } 3769 } 3770 va_end (args_copy); 3771 va_end (args); 3772} 3773 3774int 3775main () 3776{ 3777 3778 // Check bool. 3779 _Bool success = false; 3780 3781 // Check restrict. 3782 if (test_restrict ("String literal") == 0) 3783 success = true; 3784 char *restrict newvar = "Another string"; 3785 3786 // Check varargs. 3787 test_varargs ("s, d' f .", "string", 65, 34.234); 3788 test_varargs_macros (); 3789 3790 // Check flexible array members. 3791 struct incomplete_array *ia = 3792 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3793 ia->datasize = 10; 3794 for (int i = 0; i < ia->datasize; ++i) 3795 ia->data[i] = i * 1.234; 3796 3797 // Check named initializers. 3798 struct named_init ni = { 3799 .number = 34, 3800 .name = L"Test wide string", 3801 .average = 543.34343, 3802 }; 3803 3804 ni.number = 58; 3805 3806 int dynamic_array[ni.number]; 3807 dynamic_array[ni.number - 1] = 543; 3808 3809 // work around unused variable warnings 3810 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3811 || dynamic_array[ni.number - 1] != 543); 3812 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3818do 3819 CC="$ac_save_CC $ac_arg" 3820 if ac_fn_c_try_compile "$LINENO"; then : 3821 ac_cv_prog_cc_c99=$ac_arg 3822fi 3823rm -f core conftest.err conftest.$ac_objext 3824 test "x$ac_cv_prog_cc_c99" != "xno" && break 3825done 3826rm -f conftest.$ac_ext 3827CC=$ac_save_CC 3828 3829fi 3830# AC_CACHE_VAL 3831case "x$ac_cv_prog_cc_c99" in 3832 x) 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3834$as_echo "none needed" >&6; } ;; 3835 xno) 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3837$as_echo "unsupported" >&6; } ;; 3838 *) 3839 CC="$CC $ac_cv_prog_cc_c99" 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3841$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3842esac 3843if test "x$ac_cv_prog_cc_c99" != xno; then : 3844 3845fi 3846 3847 3848 3849ac_ext=c 3850ac_cpp='$CPP $CPPFLAGS' 3851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3853ac_compiler_gnu=$ac_cv_c_compiler_gnu 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3855$as_echo_n "checking how to run the C preprocessor... " >&6; } 3856# On Suns, sometimes $CPP names a directory. 3857if test -n "$CPP" && test -d "$CPP"; then 3858 CPP= 3859fi 3860if test -z "$CPP"; then 3861 if ${ac_cv_prog_CPP+:} false; then : 3862 $as_echo_n "(cached) " >&6 3863else 3864 # Double quotes because CPP needs to be expanded 3865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3866 do 3867 ac_preproc_ok=false 3868for ac_c_preproc_warn_flag in '' yes 3869do 3870 # Use a header file that comes with gcc, so configuring glibc 3871 # with a fresh cross-compiler works. 3872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3873 # <limits.h> exists even on freestanding compilers. 3874 # On the NeXT, cc -E runs the code through the compiler's parser, 3875 # not just through cpp. "Syntax error" is here to catch this case. 3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3877/* end confdefs.h. */ 3878#ifdef __STDC__ 3879# include <limits.h> 3880#else 3881# include <assert.h> 3882#endif 3883 Syntax error 3884_ACEOF 3885if ac_fn_c_try_cpp "$LINENO"; then : 3886 3887else 3888 # Broken: fails on valid input. 3889continue 3890fi 3891rm -f conftest.err conftest.i conftest.$ac_ext 3892 3893 # OK, works on sane cases. Now check whether nonexistent headers 3894 # can be detected and how. 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3896/* end confdefs.h. */ 3897#include <ac_nonexistent.h> 3898_ACEOF 3899if ac_fn_c_try_cpp "$LINENO"; then : 3900 # Broken: success on invalid input. 3901continue 3902else 3903 # Passes both tests. 3904ac_preproc_ok=: 3905break 3906fi 3907rm -f conftest.err conftest.i conftest.$ac_ext 3908 3909done 3910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3911rm -f conftest.i conftest.err conftest.$ac_ext 3912if $ac_preproc_ok; then : 3913 break 3914fi 3915 3916 done 3917 ac_cv_prog_CPP=$CPP 3918 3919fi 3920 CPP=$ac_cv_prog_CPP 3921else 3922 ac_cv_prog_CPP=$CPP 3923fi 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3925$as_echo "$CPP" >&6; } 3926ac_preproc_ok=false 3927for ac_c_preproc_warn_flag in '' yes 3928do 3929 # Use a header file that comes with gcc, so configuring glibc 3930 # with a fresh cross-compiler works. 3931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3932 # <limits.h> exists even on freestanding compilers. 3933 # On the NeXT, cc -E runs the code through the compiler's parser, 3934 # not just through cpp. "Syntax error" is here to catch this case. 3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3936/* end confdefs.h. */ 3937#ifdef __STDC__ 3938# include <limits.h> 3939#else 3940# include <assert.h> 3941#endif 3942 Syntax error 3943_ACEOF 3944if ac_fn_c_try_cpp "$LINENO"; then : 3945 3946else 3947 # Broken: fails on valid input. 3948continue 3949fi 3950rm -f conftest.err conftest.i conftest.$ac_ext 3951 3952 # OK, works on sane cases. Now check whether nonexistent headers 3953 # can be detected and how. 3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955/* end confdefs.h. */ 3956#include <ac_nonexistent.h> 3957_ACEOF 3958if ac_fn_c_try_cpp "$LINENO"; then : 3959 # Broken: success on invalid input. 3960continue 3961else 3962 # Passes both tests. 3963ac_preproc_ok=: 3964break 3965fi 3966rm -f conftest.err conftest.i conftest.$ac_ext 3967 3968done 3969# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3970rm -f conftest.i conftest.err conftest.$ac_ext 3971if $ac_preproc_ok; then : 3972 3973else 3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3976as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3977See \`config.log' for more details" "$LINENO" 5; } 3978fi 3979 3980ac_ext=c 3981ac_cpp='$CPP $CPPFLAGS' 3982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3984ac_compiler_gnu=$ac_cv_c_compiler_gnu 3985 3986 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3988$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3989if ${ac_cv_path_GREP+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 if test -z "$GREP"; then 3993 ac_path_GREP_found=false 3994 # Loop through the user's path and test for each of PROGNAME-LIST 3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3996for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3997do 3998 IFS=$as_save_IFS 3999 test -z "$as_dir" && as_dir=. 4000 for ac_prog in grep ggrep; do 4001 for ac_exec_ext in '' $ac_executable_extensions; do 4002 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4004# Check for GNU ac_path_GREP and select it if it is found. 4005 # Check for GNU $ac_path_GREP 4006case `"$ac_path_GREP" --version 2>&1` in 4007*GNU*) 4008 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4009*) 4010 ac_count=0 4011 $as_echo_n 0123456789 >"conftest.in" 4012 while : 4013 do 4014 cat "conftest.in" "conftest.in" >"conftest.tmp" 4015 mv "conftest.tmp" "conftest.in" 4016 cp "conftest.in" "conftest.nl" 4017 $as_echo 'GREP' >> "conftest.nl" 4018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4020 as_fn_arith $ac_count + 1 && ac_count=$as_val 4021 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4022 # Best one so far, save it but keep looking for a better one 4023 ac_cv_path_GREP="$ac_path_GREP" 4024 ac_path_GREP_max=$ac_count 4025 fi 4026 # 10*(2^10) chars as input seems more than enough 4027 test $ac_count -gt 10 && break 4028 done 4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4030esac 4031 4032 $ac_path_GREP_found && break 3 4033 done 4034 done 4035 done 4036IFS=$as_save_IFS 4037 if test -z "$ac_cv_path_GREP"; then 4038 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4039 fi 4040else 4041 ac_cv_path_GREP=$GREP 4042fi 4043 4044fi 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4046$as_echo "$ac_cv_path_GREP" >&6; } 4047 GREP="$ac_cv_path_GREP" 4048 4049 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4051$as_echo_n "checking for egrep... " >&6; } 4052if ${ac_cv_path_EGREP+:} false; then : 4053 $as_echo_n "(cached) " >&6 4054else 4055 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4056 then ac_cv_path_EGREP="$GREP -E" 4057 else 4058 if test -z "$EGREP"; then 4059 ac_path_EGREP_found=false 4060 # Loop through the user's path and test for each of PROGNAME-LIST 4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4062for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4063do 4064 IFS=$as_save_IFS 4065 test -z "$as_dir" && as_dir=. 4066 for ac_prog in egrep; do 4067 for ac_exec_ext in '' $ac_executable_extensions; do 4068 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4069 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4070# Check for GNU ac_path_EGREP and select it if it is found. 4071 # Check for GNU $ac_path_EGREP 4072case `"$ac_path_EGREP" --version 2>&1` in 4073*GNU*) 4074 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4075*) 4076 ac_count=0 4077 $as_echo_n 0123456789 >"conftest.in" 4078 while : 4079 do 4080 cat "conftest.in" "conftest.in" >"conftest.tmp" 4081 mv "conftest.tmp" "conftest.in" 4082 cp "conftest.in" "conftest.nl" 4083 $as_echo 'EGREP' >> "conftest.nl" 4084 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4086 as_fn_arith $ac_count + 1 && ac_count=$as_val 4087 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4088 # Best one so far, save it but keep looking for a better one 4089 ac_cv_path_EGREP="$ac_path_EGREP" 4090 ac_path_EGREP_max=$ac_count 4091 fi 4092 # 10*(2^10) chars as input seems more than enough 4093 test $ac_count -gt 10 && break 4094 done 4095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4096esac 4097 4098 $ac_path_EGREP_found && break 3 4099 done 4100 done 4101 done 4102IFS=$as_save_IFS 4103 if test -z "$ac_cv_path_EGREP"; then 4104 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4105 fi 4106else 4107 ac_cv_path_EGREP=$EGREP 4108fi 4109 4110 fi 4111fi 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4113$as_echo "$ac_cv_path_EGREP" >&6; } 4114 EGREP="$ac_cv_path_EGREP" 4115 4116 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4118$as_echo_n "checking for ANSI C header files... " >&6; } 4119if ${ac_cv_header_stdc+:} false; then : 4120 $as_echo_n "(cached) " >&6 4121else 4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4123/* end confdefs.h. */ 4124#include <stdlib.h> 4125#include <stdarg.h> 4126#include <string.h> 4127#include <float.h> 4128 4129int 4130main () 4131{ 4132 4133 ; 4134 return 0; 4135} 4136_ACEOF 4137if ac_fn_c_try_compile "$LINENO"; then : 4138 ac_cv_header_stdc=yes 4139else 4140 ac_cv_header_stdc=no 4141fi 4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4143 4144if test $ac_cv_header_stdc = yes; then 4145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4147/* end confdefs.h. */ 4148#include <string.h> 4149 4150_ACEOF 4151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4152 $EGREP "memchr" >/dev/null 2>&1; then : 4153 4154else 4155 ac_cv_header_stdc=no 4156fi 4157rm -f conftest* 4158 4159fi 4160 4161if test $ac_cv_header_stdc = yes; then 4162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4164/* end confdefs.h. */ 4165#include <stdlib.h> 4166 4167_ACEOF 4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4169 $EGREP "free" >/dev/null 2>&1; then : 4170 4171else 4172 ac_cv_header_stdc=no 4173fi 4174rm -f conftest* 4175 4176fi 4177 4178if test $ac_cv_header_stdc = yes; then 4179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4180 if test "$cross_compiling" = yes; then : 4181 : 4182else 4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184/* end confdefs.h. */ 4185#include <ctype.h> 4186#include <stdlib.h> 4187#if ((' ' & 0x0FF) == 0x020) 4188# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4189# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4190#else 4191# define ISLOWER(c) \ 4192 (('a' <= (c) && (c) <= 'i') \ 4193 || ('j' <= (c) && (c) <= 'r') \ 4194 || ('s' <= (c) && (c) <= 'z')) 4195# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4196#endif 4197 4198#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4199int 4200main () 4201{ 4202 int i; 4203 for (i = 0; i < 256; i++) 4204 if (XOR (islower (i), ISLOWER (i)) 4205 || toupper (i) != TOUPPER (i)) 4206 return 2; 4207 return 0; 4208} 4209_ACEOF 4210if ac_fn_c_try_run "$LINENO"; then : 4211 4212else 4213 ac_cv_header_stdc=no 4214fi 4215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4216 conftest.$ac_objext conftest.beam conftest.$ac_ext 4217fi 4218 4219fi 4220fi 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4222$as_echo "$ac_cv_header_stdc" >&6; } 4223if test $ac_cv_header_stdc = yes; then 4224 4225$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4226 4227fi 4228 4229# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4230for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4231 inttypes.h stdint.h unistd.h 4232do : 4233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4234ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4235" 4236if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4237 cat >>confdefs.h <<_ACEOF 4238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4239_ACEOF 4240 4241fi 4242 4243done 4244 4245 4246 4247 4248 4249 4250ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4251if test "x$ac_cv_have_decl___clang__" = xyes; then : 4252 CLANGCC="yes" 4253else 4254 CLANGCC="no" 4255fi 4256 4257ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4258if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4259 INTELCC="yes" 4260else 4261 INTELCC="no" 4262fi 4263 4264ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4265if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4266 SUNCC="yes" 4267else 4268 SUNCC="no" 4269fi 4270 4271 4272 4273 4274if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4275 if test -n "$ac_tool_prefix"; then 4276 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4277set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4279$as_echo_n "checking for $ac_word... " >&6; } 4280if ${ac_cv_path_PKG_CONFIG+:} false; then : 4281 $as_echo_n "(cached) " >&6 4282else 4283 case $PKG_CONFIG in 4284 [\\/]* | ?:[\\/]*) 4285 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4286 ;; 4287 *) 4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4289for as_dir in $PATH 4290do 4291 IFS=$as_save_IFS 4292 test -z "$as_dir" && as_dir=. 4293 for ac_exec_ext in '' $ac_executable_extensions; do 4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4295 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4297 break 2 4298 fi 4299done 4300 done 4301IFS=$as_save_IFS 4302 4303 ;; 4304esac 4305fi 4306PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4307if test -n "$PKG_CONFIG"; then 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4309$as_echo "$PKG_CONFIG" >&6; } 4310else 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4312$as_echo "no" >&6; } 4313fi 4314 4315 4316fi 4317if test -z "$ac_cv_path_PKG_CONFIG"; then 4318 ac_pt_PKG_CONFIG=$PKG_CONFIG 4319 # Extract the first word of "pkg-config", so it can be a program name with args. 4320set dummy pkg-config; ac_word=$2 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4322$as_echo_n "checking for $ac_word... " >&6; } 4323if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325else 4326 case $ac_pt_PKG_CONFIG in 4327 [\\/]* | ?:[\\/]*) 4328 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4329 ;; 4330 *) 4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4332for as_dir in $PATH 4333do 4334 IFS=$as_save_IFS 4335 test -z "$as_dir" && as_dir=. 4336 for ac_exec_ext in '' $ac_executable_extensions; do 4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4338 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4340 break 2 4341 fi 4342done 4343 done 4344IFS=$as_save_IFS 4345 4346 ;; 4347esac 4348fi 4349ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4350if test -n "$ac_pt_PKG_CONFIG"; then 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4352$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4353else 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4355$as_echo "no" >&6; } 4356fi 4357 4358 if test "x$ac_pt_PKG_CONFIG" = x; then 4359 PKG_CONFIG="" 4360 else 4361 case $cross_compiling:$ac_tool_warned in 4362yes:) 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4365ac_tool_warned=yes ;; 4366esac 4367 PKG_CONFIG=$ac_pt_PKG_CONFIG 4368 fi 4369else 4370 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4371fi 4372 4373fi 4374if test -n "$PKG_CONFIG"; then 4375 _pkg_min_version=0.9.0 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4377$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4378 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4380$as_echo "yes" >&6; } 4381 else 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4383$as_echo "no" >&6; } 4384 PKG_CONFIG="" 4385 fi 4386 4387fi 4388# Make sure we can run config.sub. 4389$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4391 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4393$as_echo_n "checking build system type... " >&6; } 4394if ${ac_cv_build+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 ac_build_alias=$build_alias 4398test "x$ac_build_alias" = x && 4399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4400test "x$ac_build_alias" = x && 4401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4402ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4404 4405fi 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4407$as_echo "$ac_cv_build" >&6; } 4408case $ac_cv_build in 4409*-*-*) ;; 4410*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4411esac 4412build=$ac_cv_build 4413ac_save_IFS=$IFS; IFS='-' 4414set x $ac_cv_build 4415shift 4416build_cpu=$1 4417build_vendor=$2 4418shift; shift 4419# Remember, the first character of IFS is used to create $*, 4420# except with old shells: 4421build_os=$* 4422IFS=$ac_save_IFS 4423case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4424 4425 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4427$as_echo_n "checking host system type... " >&6; } 4428if ${ac_cv_host+:} false; then : 4429 $as_echo_n "(cached) " >&6 4430else 4431 if test "x$host_alias" = x; then 4432 ac_cv_host=$ac_cv_build 4433else 4434 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4436fi 4437 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4440$as_echo "$ac_cv_host" >&6; } 4441case $ac_cv_host in 4442*-*-*) ;; 4443*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4444esac 4445host=$ac_cv_host 4446ac_save_IFS=$IFS; IFS='-' 4447set x $ac_cv_host 4448shift 4449host_cpu=$1 4450host_vendor=$2 4451shift; shift 4452# Remember, the first character of IFS is used to create $*, 4453# except with old shells: 4454host_os=$* 4455IFS=$ac_save_IFS 4456case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4457 4458 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4460$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4461if ${ac_cv_path_SED+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4465 for ac_i in 1 2 3 4 5 6 7; do 4466 ac_script="$ac_script$as_nl$ac_script" 4467 done 4468 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4469 { ac_script=; unset ac_script;} 4470 if test -z "$SED"; then 4471 ac_path_SED_found=false 4472 # Loop through the user's path and test for each of PROGNAME-LIST 4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4474for as_dir in $PATH 4475do 4476 IFS=$as_save_IFS 4477 test -z "$as_dir" && as_dir=. 4478 for ac_prog in sed gsed; do 4479 for ac_exec_ext in '' $ac_executable_extensions; do 4480 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4481 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4482# Check for GNU ac_path_SED and select it if it is found. 4483 # Check for GNU $ac_path_SED 4484case `"$ac_path_SED" --version 2>&1` in 4485*GNU*) 4486 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4487*) 4488 ac_count=0 4489 $as_echo_n 0123456789 >"conftest.in" 4490 while : 4491 do 4492 cat "conftest.in" "conftest.in" >"conftest.tmp" 4493 mv "conftest.tmp" "conftest.in" 4494 cp "conftest.in" "conftest.nl" 4495 $as_echo '' >> "conftest.nl" 4496 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4498 as_fn_arith $ac_count + 1 && ac_count=$as_val 4499 if test $ac_count -gt ${ac_path_SED_max-0}; then 4500 # Best one so far, save it but keep looking for a better one 4501 ac_cv_path_SED="$ac_path_SED" 4502 ac_path_SED_max=$ac_count 4503 fi 4504 # 10*(2^10) chars as input seems more than enough 4505 test $ac_count -gt 10 && break 4506 done 4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4508esac 4509 4510 $ac_path_SED_found && break 3 4511 done 4512 done 4513 done 4514IFS=$as_save_IFS 4515 if test -z "$ac_cv_path_SED"; then 4516 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4517 fi 4518else 4519 ac_cv_path_SED=$SED 4520fi 4521 4522fi 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4524$as_echo "$ac_cv_path_SED" >&6; } 4525 SED="$ac_cv_path_SED" 4526 rm -f conftest.sed 4527 4528 4529 4530 4531 4532 4533# Check whether --enable-selective-werror was given. 4534if test "${enable_selective_werror+set}" = set; then : 4535 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4536else 4537 SELECTIVE_WERROR=yes 4538fi 4539 4540 4541 4542 4543 4544# -v is too short to test reliably with XORG_TESTSET_CFLAG 4545if test "x$SUNCC" = "xyes"; then 4546 BASE_CFLAGS="-v" 4547else 4548 BASE_CFLAGS="" 4549fi 4550 4551# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565xorg_testset_save_CFLAGS="$CFLAGS" 4566 4567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4572 $as_echo_n "(cached) " >&6 4573else 4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4575/* end confdefs.h. */ 4576int i; 4577_ACEOF 4578if ac_fn_c_try_compile "$LINENO"; then : 4579 xorg_cv_cc_flag_unknown_warning_option=yes 4580else 4581 xorg_cv_cc_flag_unknown_warning_option=no 4582fi 4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4584fi 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4588 CFLAGS="$xorg_testset_save_CFLAGS" 4589fi 4590 4591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4594 fi 4595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4599 $as_echo_n "(cached) " >&6 4600else 4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4602/* end confdefs.h. */ 4603int i; 4604_ACEOF 4605if ac_fn_c_try_compile "$LINENO"; then : 4606 xorg_cv_cc_flag_unused_command_line_argument=yes 4607else 4608 xorg_cv_cc_flag_unused_command_line_argument=no 4609fi 4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4611fi 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4615 CFLAGS="$xorg_testset_save_CFLAGS" 4616fi 4617 4618found="no" 4619 4620 if test $found = "no" ; then 4621 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4623 fi 4624 4625 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4627 fi 4628 4629 CFLAGS="$CFLAGS -Wall" 4630 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4632$as_echo_n "checking if $CC supports -Wall... " >&6; } 4633 cacheid=xorg_cv_cc_flag__Wall 4634 if eval \${$cacheid+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638/* end confdefs.h. */ 4639int i; 4640int 4641main () 4642{ 4643 4644 ; 4645 return 0; 4646} 4647_ACEOF 4648if ac_fn_c_try_link "$LINENO"; then : 4649 eval $cacheid=yes 4650else 4651 eval $cacheid=no 4652fi 4653rm -f core conftest.err conftest.$ac_objext \ 4654 conftest$ac_exeext conftest.$ac_ext 4655fi 4656 4657 4658 CFLAGS="$xorg_testset_save_CFLAGS" 4659 4660 eval supported=\$$cacheid 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4662$as_echo "$supported" >&6; } 4663 if test "$supported" = "yes" ; then 4664 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4665 found="yes" 4666 fi 4667 fi 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683xorg_testset_save_CFLAGS="$CFLAGS" 4684 4685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4693/* end confdefs.h. */ 4694int i; 4695_ACEOF 4696if ac_fn_c_try_compile "$LINENO"; then : 4697 xorg_cv_cc_flag_unknown_warning_option=yes 4698else 4699 xorg_cv_cc_flag_unknown_warning_option=no 4700fi 4701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4702fi 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4706 CFLAGS="$xorg_testset_save_CFLAGS" 4707fi 4708 4709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4712 fi 4713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718else 4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721int i; 4722_ACEOF 4723if ac_fn_c_try_compile "$LINENO"; then : 4724 xorg_cv_cc_flag_unused_command_line_argument=yes 4725else 4726 xorg_cv_cc_flag_unused_command_line_argument=no 4727fi 4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4733 CFLAGS="$xorg_testset_save_CFLAGS" 4734fi 4735 4736found="no" 4737 4738 if test $found = "no" ; then 4739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4741 fi 4742 4743 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4745 fi 4746 4747 CFLAGS="$CFLAGS -Wpointer-arith" 4748 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4750$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4751 cacheid=xorg_cv_cc_flag__Wpointer_arith 4752 if eval \${$cacheid+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4756/* end confdefs.h. */ 4757int i; 4758int 4759main () 4760{ 4761 4762 ; 4763 return 0; 4764} 4765_ACEOF 4766if ac_fn_c_try_link "$LINENO"; then : 4767 eval $cacheid=yes 4768else 4769 eval $cacheid=no 4770fi 4771rm -f core conftest.err conftest.$ac_objext \ 4772 conftest$ac_exeext conftest.$ac_ext 4773fi 4774 4775 4776 CFLAGS="$xorg_testset_save_CFLAGS" 4777 4778 eval supported=\$$cacheid 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4780$as_echo "$supported" >&6; } 4781 if test "$supported" = "yes" ; then 4782 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4783 found="yes" 4784 fi 4785 fi 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801xorg_testset_save_CFLAGS="$CFLAGS" 4802 4803if test "x$xorg_testset_cc_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_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4824 CFLAGS="$xorg_testset_save_CFLAGS" 4825fi 4826 4827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4828 if test "x$xorg_testset_cc_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_cc_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-declarations" 4866 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4868$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4869 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4870 if eval \${$cacheid+:} 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 $cacheid=yes 4886else 4887 eval $cacheid=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=\$$cacheid 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-declarations" 4901 found="yes" 4902 fi 4903 fi 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919xorg_testset_save_CFLAGS="$CFLAGS" 4920 4921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927else 4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4929/* end confdefs.h. */ 4930int i; 4931_ACEOF 4932if ac_fn_c_try_compile "$LINENO"; then : 4933 xorg_cv_cc_flag_unknown_warning_option=yes 4934else 4935 xorg_cv_cc_flag_unknown_warning_option=no 4936fi 4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4938fi 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4942 CFLAGS="$xorg_testset_save_CFLAGS" 4943fi 4944 4945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4948 fi 4949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4956/* end confdefs.h. */ 4957int i; 4958_ACEOF 4959if ac_fn_c_try_compile "$LINENO"; then : 4960 xorg_cv_cc_flag_unused_command_line_argument=yes 4961else 4962 xorg_cv_cc_flag_unused_command_line_argument=no 4963fi 4964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4965fi 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4969 CFLAGS="$xorg_testset_save_CFLAGS" 4970fi 4971 4972found="no" 4973 4974 if test $found = "no" ; then 4975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4977 fi 4978 4979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4981 fi 4982 4983 CFLAGS="$CFLAGS -Wformat=2" 4984 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4986$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4987 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 4988 if eval \${$cacheid+:} false; then : 4989 $as_echo_n "(cached) " >&6 4990else 4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4992/* end confdefs.h. */ 4993int i; 4994int 4995main () 4996{ 4997 4998 ; 4999 return 0; 5000} 5001_ACEOF 5002if ac_fn_c_try_link "$LINENO"; then : 5003 eval $cacheid=yes 5004else 5005 eval $cacheid=no 5006fi 5007rm -f core conftest.err conftest.$ac_objext \ 5008 conftest$ac_exeext conftest.$ac_ext 5009fi 5010 5011 5012 CFLAGS="$xorg_testset_save_CFLAGS" 5013 5014 eval supported=\$$cacheid 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5016$as_echo "$supported" >&6; } 5017 if test "$supported" = "yes" ; then 5018 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5019 found="yes" 5020 fi 5021 fi 5022 5023 if test $found = "no" ; then 5024 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5026 fi 5027 5028 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5030 fi 5031 5032 CFLAGS="$CFLAGS -Wformat" 5033 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5035$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5036 cacheid=xorg_cv_cc_flag__Wformat 5037 if eval \${$cacheid+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041/* end confdefs.h. */ 5042int i; 5043int 5044main () 5045{ 5046 5047 ; 5048 return 0; 5049} 5050_ACEOF 5051if ac_fn_c_try_link "$LINENO"; then : 5052 eval $cacheid=yes 5053else 5054 eval $cacheid=no 5055fi 5056rm -f core conftest.err conftest.$ac_objext \ 5057 conftest$ac_exeext conftest.$ac_ext 5058fi 5059 5060 5061 CFLAGS="$xorg_testset_save_CFLAGS" 5062 5063 eval supported=\$$cacheid 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5065$as_echo "$supported" >&6; } 5066 if test "$supported" = "yes" ; then 5067 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5068 found="yes" 5069 fi 5070 fi 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088xorg_testset_save_CFLAGS="$CFLAGS" 5089 5090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5095 $as_echo_n "(cached) " >&6 5096else 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098/* end confdefs.h. */ 5099int i; 5100_ACEOF 5101if ac_fn_c_try_compile "$LINENO"; then : 5102 xorg_cv_cc_flag_unknown_warning_option=yes 5103else 5104 xorg_cv_cc_flag_unknown_warning_option=no 5105fi 5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5107fi 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5111 CFLAGS="$xorg_testset_save_CFLAGS" 5112fi 5113 5114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5117 fi 5118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5122 $as_echo_n "(cached) " >&6 5123else 5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5125/* end confdefs.h. */ 5126int i; 5127_ACEOF 5128if ac_fn_c_try_compile "$LINENO"; then : 5129 xorg_cv_cc_flag_unused_command_line_argument=yes 5130else 5131 xorg_cv_cc_flag_unused_command_line_argument=no 5132fi 5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5138 CFLAGS="$xorg_testset_save_CFLAGS" 5139fi 5140 5141found="no" 5142 5143 if test $found = "no" ; then 5144 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5146 fi 5147 5148 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5150 fi 5151 5152 CFLAGS="$CFLAGS -Wstrict-prototypes" 5153 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5155$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5156 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5157 if eval \${$cacheid+:} false; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5161/* end confdefs.h. */ 5162int i; 5163int 5164main () 5165{ 5166 5167 ; 5168 return 0; 5169} 5170_ACEOF 5171if ac_fn_c_try_link "$LINENO"; then : 5172 eval $cacheid=yes 5173else 5174 eval $cacheid=no 5175fi 5176rm -f core conftest.err conftest.$ac_objext \ 5177 conftest$ac_exeext conftest.$ac_ext 5178fi 5179 5180 5181 CFLAGS="$xorg_testset_save_CFLAGS" 5182 5183 eval supported=\$$cacheid 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5185$as_echo "$supported" >&6; } 5186 if test "$supported" = "yes" ; then 5187 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5188 found="yes" 5189 fi 5190 fi 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206xorg_testset_save_CFLAGS="$CFLAGS" 5207 5208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5216/* end confdefs.h. */ 5217int i; 5218_ACEOF 5219if ac_fn_c_try_compile "$LINENO"; then : 5220 xorg_cv_cc_flag_unknown_warning_option=yes 5221else 5222 xorg_cv_cc_flag_unknown_warning_option=no 5223fi 5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5225fi 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5229 CFLAGS="$xorg_testset_save_CFLAGS" 5230fi 5231 5232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5235 fi 5236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5240 $as_echo_n "(cached) " >&6 5241else 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243/* end confdefs.h. */ 5244int i; 5245_ACEOF 5246if ac_fn_c_try_compile "$LINENO"; then : 5247 xorg_cv_cc_flag_unused_command_line_argument=yes 5248else 5249 xorg_cv_cc_flag_unused_command_line_argument=no 5250fi 5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5252fi 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5256 CFLAGS="$xorg_testset_save_CFLAGS" 5257fi 5258 5259found="no" 5260 5261 if test $found = "no" ; then 5262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5264 fi 5265 5266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5268 fi 5269 5270 CFLAGS="$CFLAGS -Wmissing-prototypes" 5271 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5273$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5274 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5275 if eval \${$cacheid+:} false; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280int i; 5281int 5282main () 5283{ 5284 5285 ; 5286 return 0; 5287} 5288_ACEOF 5289if ac_fn_c_try_link "$LINENO"; then : 5290 eval $cacheid=yes 5291else 5292 eval $cacheid=no 5293fi 5294rm -f core conftest.err conftest.$ac_objext \ 5295 conftest$ac_exeext conftest.$ac_ext 5296fi 5297 5298 5299 CFLAGS="$xorg_testset_save_CFLAGS" 5300 5301 eval supported=\$$cacheid 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5303$as_echo "$supported" >&6; } 5304 if test "$supported" = "yes" ; then 5305 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5306 found="yes" 5307 fi 5308 fi 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324xorg_testset_save_CFLAGS="$CFLAGS" 5325 5326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332else 5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5334/* end confdefs.h. */ 5335int i; 5336_ACEOF 5337if ac_fn_c_try_compile "$LINENO"; then : 5338 xorg_cv_cc_flag_unknown_warning_option=yes 5339else 5340 xorg_cv_cc_flag_unknown_warning_option=no 5341fi 5342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5343fi 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5347 CFLAGS="$xorg_testset_save_CFLAGS" 5348fi 5349 5350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5353 fi 5354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5361/* end confdefs.h. */ 5362int i; 5363_ACEOF 5364if ac_fn_c_try_compile "$LINENO"; then : 5365 xorg_cv_cc_flag_unused_command_line_argument=yes 5366else 5367 xorg_cv_cc_flag_unused_command_line_argument=no 5368fi 5369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5370fi 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5374 CFLAGS="$xorg_testset_save_CFLAGS" 5375fi 5376 5377found="no" 5378 5379 if test $found = "no" ; then 5380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5382 fi 5383 5384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5386 fi 5387 5388 CFLAGS="$CFLAGS -Wnested-externs" 5389 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5391$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5392 cacheid=xorg_cv_cc_flag__Wnested_externs 5393 if eval \${$cacheid+:} false; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5397/* end confdefs.h. */ 5398int i; 5399int 5400main () 5401{ 5402 5403 ; 5404 return 0; 5405} 5406_ACEOF 5407if ac_fn_c_try_link "$LINENO"; then : 5408 eval $cacheid=yes 5409else 5410 eval $cacheid=no 5411fi 5412rm -f core conftest.err conftest.$ac_objext \ 5413 conftest$ac_exeext conftest.$ac_ext 5414fi 5415 5416 5417 CFLAGS="$xorg_testset_save_CFLAGS" 5418 5419 eval supported=\$$cacheid 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5421$as_echo "$supported" >&6; } 5422 if test "$supported" = "yes" ; then 5423 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5424 found="yes" 5425 fi 5426 fi 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442xorg_testset_save_CFLAGS="$CFLAGS" 5443 5444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5449 $as_echo_n "(cached) " >&6 5450else 5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5452/* end confdefs.h. */ 5453int i; 5454_ACEOF 5455if ac_fn_c_try_compile "$LINENO"; then : 5456 xorg_cv_cc_flag_unknown_warning_option=yes 5457else 5458 xorg_cv_cc_flag_unknown_warning_option=no 5459fi 5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5461fi 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5465 CFLAGS="$xorg_testset_save_CFLAGS" 5466fi 5467 5468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5471 fi 5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5476 $as_echo_n "(cached) " >&6 5477else 5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479/* end confdefs.h. */ 5480int i; 5481_ACEOF 5482if ac_fn_c_try_compile "$LINENO"; then : 5483 xorg_cv_cc_flag_unused_command_line_argument=yes 5484else 5485 xorg_cv_cc_flag_unused_command_line_argument=no 5486fi 5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5488fi 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5492 CFLAGS="$xorg_testset_save_CFLAGS" 5493fi 5494 5495found="no" 5496 5497 if test $found = "no" ; then 5498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500 fi 5501 5502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5504 fi 5505 5506 CFLAGS="$CFLAGS -Wbad-function-cast" 5507 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5509$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5510 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5511 if eval \${$cacheid+:} false; then : 5512 $as_echo_n "(cached) " >&6 5513else 5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5515/* end confdefs.h. */ 5516int i; 5517int 5518main () 5519{ 5520 5521 ; 5522 return 0; 5523} 5524_ACEOF 5525if ac_fn_c_try_link "$LINENO"; then : 5526 eval $cacheid=yes 5527else 5528 eval $cacheid=no 5529fi 5530rm -f core conftest.err conftest.$ac_objext \ 5531 conftest$ac_exeext conftest.$ac_ext 5532fi 5533 5534 5535 CFLAGS="$xorg_testset_save_CFLAGS" 5536 5537 eval supported=\$$cacheid 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5539$as_echo "$supported" >&6; } 5540 if test "$supported" = "yes" ; then 5541 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5542 found="yes" 5543 fi 5544 fi 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560xorg_testset_save_CFLAGS="$CFLAGS" 5561 5562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5567 $as_echo_n "(cached) " >&6 5568else 5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570/* end confdefs.h. */ 5571int i; 5572_ACEOF 5573if ac_fn_c_try_compile "$LINENO"; then : 5574 xorg_cv_cc_flag_unknown_warning_option=yes 5575else 5576 xorg_cv_cc_flag_unknown_warning_option=no 5577fi 5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5579fi 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5583 CFLAGS="$xorg_testset_save_CFLAGS" 5584fi 5585 5586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5589 fi 5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5597/* end confdefs.h. */ 5598int i; 5599_ACEOF 5600if ac_fn_c_try_compile "$LINENO"; then : 5601 xorg_cv_cc_flag_unused_command_line_argument=yes 5602else 5603 xorg_cv_cc_flag_unused_command_line_argument=no 5604fi 5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5606fi 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5610 CFLAGS="$xorg_testset_save_CFLAGS" 5611fi 5612 5613found="no" 5614 5615 if test $found = "no" ; then 5616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5618 fi 5619 5620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5622 fi 5623 5624 CFLAGS="$CFLAGS -Wold-style-definition" 5625 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5627$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5628 cacheid=xorg_cv_cc_flag__Wold_style_definition 5629 if eval \${$cacheid+:} false; then : 5630 $as_echo_n "(cached) " >&6 5631else 5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5633/* end confdefs.h. */ 5634int i; 5635int 5636main () 5637{ 5638 5639 ; 5640 return 0; 5641} 5642_ACEOF 5643if ac_fn_c_try_link "$LINENO"; then : 5644 eval $cacheid=yes 5645else 5646 eval $cacheid=no 5647fi 5648rm -f core conftest.err conftest.$ac_objext \ 5649 conftest$ac_exeext conftest.$ac_ext 5650fi 5651 5652 5653 CFLAGS="$xorg_testset_save_CFLAGS" 5654 5655 eval supported=\$$cacheid 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5657$as_echo "$supported" >&6; } 5658 if test "$supported" = "yes" ; then 5659 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5660 found="yes" 5661 fi 5662 fi 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678xorg_testset_save_CFLAGS="$CFLAGS" 5679 5680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686else 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689int i; 5690_ACEOF 5691if ac_fn_c_try_compile "$LINENO"; then : 5692 xorg_cv_cc_flag_unknown_warning_option=yes 5693else 5694 xorg_cv_cc_flag_unknown_warning_option=no 5695fi 5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5697fi 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5701 CFLAGS="$xorg_testset_save_CFLAGS" 5702fi 5703 5704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5707 fi 5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5712 $as_echo_n "(cached) " >&6 5713else 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5715/* end confdefs.h. */ 5716int i; 5717_ACEOF 5718if ac_fn_c_try_compile "$LINENO"; then : 5719 xorg_cv_cc_flag_unused_command_line_argument=yes 5720else 5721 xorg_cv_cc_flag_unused_command_line_argument=no 5722fi 5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5724fi 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5728 CFLAGS="$xorg_testset_save_CFLAGS" 5729fi 5730 5731found="no" 5732 5733 if test $found = "no" ; then 5734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5736 fi 5737 5738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5740 fi 5741 5742 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5743 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5745$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5746 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5747 if eval \${$cacheid+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749else 5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5751/* end confdefs.h. */ 5752int i; 5753int 5754main () 5755{ 5756 5757 ; 5758 return 0; 5759} 5760_ACEOF 5761if ac_fn_c_try_link "$LINENO"; then : 5762 eval $cacheid=yes 5763else 5764 eval $cacheid=no 5765fi 5766rm -f core conftest.err conftest.$ac_objext \ 5767 conftest$ac_exeext conftest.$ac_ext 5768fi 5769 5770 5771 CFLAGS="$xorg_testset_save_CFLAGS" 5772 5773 eval supported=\$$cacheid 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5775$as_echo "$supported" >&6; } 5776 if test "$supported" = "yes" ; then 5777 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5778 found="yes" 5779 fi 5780 fi 5781 5782 5783 5784 5785 5786# This chunk adds additional warnings that could catch undesired effects. 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800xorg_testset_save_CFLAGS="$CFLAGS" 5801 5802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808else 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5810/* end confdefs.h. */ 5811int i; 5812_ACEOF 5813if ac_fn_c_try_compile "$LINENO"; then : 5814 xorg_cv_cc_flag_unknown_warning_option=yes 5815else 5816 xorg_cv_cc_flag_unknown_warning_option=no 5817fi 5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5819fi 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5823 CFLAGS="$xorg_testset_save_CFLAGS" 5824fi 5825 5826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5829 fi 5830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5834 $as_echo_n "(cached) " >&6 5835else 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838int i; 5839_ACEOF 5840if ac_fn_c_try_compile "$LINENO"; then : 5841 xorg_cv_cc_flag_unused_command_line_argument=yes 5842else 5843 xorg_cv_cc_flag_unused_command_line_argument=no 5844fi 5845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5846fi 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5850 CFLAGS="$xorg_testset_save_CFLAGS" 5851fi 5852 5853found="no" 5854 5855 if test $found = "no" ; then 5856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5858 fi 5859 5860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5862 fi 5863 5864 CFLAGS="$CFLAGS -Wunused" 5865 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5867$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5868 cacheid=xorg_cv_cc_flag__Wunused 5869 if eval \${$cacheid+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5873/* end confdefs.h. */ 5874int i; 5875int 5876main () 5877{ 5878 5879 ; 5880 return 0; 5881} 5882_ACEOF 5883if ac_fn_c_try_link "$LINENO"; then : 5884 eval $cacheid=yes 5885else 5886 eval $cacheid=no 5887fi 5888rm -f core conftest.err conftest.$ac_objext \ 5889 conftest$ac_exeext conftest.$ac_ext 5890fi 5891 5892 5893 CFLAGS="$xorg_testset_save_CFLAGS" 5894 5895 eval supported=\$$cacheid 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5897$as_echo "$supported" >&6; } 5898 if test "$supported" = "yes" ; then 5899 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5900 found="yes" 5901 fi 5902 fi 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918xorg_testset_save_CFLAGS="$CFLAGS" 5919 5920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5923$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5924if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929int i; 5930_ACEOF 5931if ac_fn_c_try_compile "$LINENO"; then : 5932 xorg_cv_cc_flag_unknown_warning_option=yes 5933else 5934 xorg_cv_cc_flag_unknown_warning_option=no 5935fi 5936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5937fi 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5939$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5941 CFLAGS="$xorg_testset_save_CFLAGS" 5942fi 5943 5944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5947 fi 5948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5950$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5951if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5952 $as_echo_n "(cached) " >&6 5953else 5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5955/* end confdefs.h. */ 5956int i; 5957_ACEOF 5958if ac_fn_c_try_compile "$LINENO"; then : 5959 xorg_cv_cc_flag_unused_command_line_argument=yes 5960else 5961 xorg_cv_cc_flag_unused_command_line_argument=no 5962fi 5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5964fi 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5966$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5968 CFLAGS="$xorg_testset_save_CFLAGS" 5969fi 5970 5971found="no" 5972 5973 if test $found = "no" ; then 5974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5976 fi 5977 5978 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5980 fi 5981 5982 CFLAGS="$CFLAGS -Wuninitialized" 5983 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5985$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5986 cacheid=xorg_cv_cc_flag__Wuninitialized 5987 if eval \${$cacheid+:} false; then : 5988 $as_echo_n "(cached) " >&6 5989else 5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5991/* end confdefs.h. */ 5992int i; 5993int 5994main () 5995{ 5996 5997 ; 5998 return 0; 5999} 6000_ACEOF 6001if ac_fn_c_try_link "$LINENO"; then : 6002 eval $cacheid=yes 6003else 6004 eval $cacheid=no 6005fi 6006rm -f core conftest.err conftest.$ac_objext \ 6007 conftest$ac_exeext conftest.$ac_ext 6008fi 6009 6010 6011 CFLAGS="$xorg_testset_save_CFLAGS" 6012 6013 eval supported=\$$cacheid 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6015$as_echo "$supported" >&6; } 6016 if test "$supported" = "yes" ; then 6017 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6018 found="yes" 6019 fi 6020 fi 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036xorg_testset_save_CFLAGS="$CFLAGS" 6037 6038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6046/* end confdefs.h. */ 6047int i; 6048_ACEOF 6049if ac_fn_c_try_compile "$LINENO"; then : 6050 xorg_cv_cc_flag_unknown_warning_option=yes 6051else 6052 xorg_cv_cc_flag_unknown_warning_option=no 6053fi 6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6055fi 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6059 CFLAGS="$xorg_testset_save_CFLAGS" 6060fi 6061 6062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6065 fi 6066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6073/* end confdefs.h. */ 6074int i; 6075_ACEOF 6076if ac_fn_c_try_compile "$LINENO"; then : 6077 xorg_cv_cc_flag_unused_command_line_argument=yes 6078else 6079 xorg_cv_cc_flag_unused_command_line_argument=no 6080fi 6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6082fi 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6086 CFLAGS="$xorg_testset_save_CFLAGS" 6087fi 6088 6089found="no" 6090 6091 if test $found = "no" ; then 6092 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6094 fi 6095 6096 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6098 fi 6099 6100 CFLAGS="$CFLAGS -Wshadow" 6101 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6103$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6104 cacheid=xorg_cv_cc_flag__Wshadow 6105 if eval \${$cacheid+:} false; then : 6106 $as_echo_n "(cached) " >&6 6107else 6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6109/* end confdefs.h. */ 6110int i; 6111int 6112main () 6113{ 6114 6115 ; 6116 return 0; 6117} 6118_ACEOF 6119if ac_fn_c_try_link "$LINENO"; then : 6120 eval $cacheid=yes 6121else 6122 eval $cacheid=no 6123fi 6124rm -f core conftest.err conftest.$ac_objext \ 6125 conftest$ac_exeext conftest.$ac_ext 6126fi 6127 6128 6129 CFLAGS="$xorg_testset_save_CFLAGS" 6130 6131 eval supported=\$$cacheid 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6133$as_echo "$supported" >&6; } 6134 if test "$supported" = "yes" ; then 6135 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6136 found="yes" 6137 fi 6138 fi 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154xorg_testset_save_CFLAGS="$CFLAGS" 6155 6156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6164/* end confdefs.h. */ 6165int i; 6166_ACEOF 6167if ac_fn_c_try_compile "$LINENO"; then : 6168 xorg_cv_cc_flag_unknown_warning_option=yes 6169else 6170 xorg_cv_cc_flag_unknown_warning_option=no 6171fi 6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6173fi 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6177 CFLAGS="$xorg_testset_save_CFLAGS" 6178fi 6179 6180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6183 fi 6184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6191/* end confdefs.h. */ 6192int i; 6193_ACEOF 6194if ac_fn_c_try_compile "$LINENO"; then : 6195 xorg_cv_cc_flag_unused_command_line_argument=yes 6196else 6197 xorg_cv_cc_flag_unused_command_line_argument=no 6198fi 6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6200fi 6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6204 CFLAGS="$xorg_testset_save_CFLAGS" 6205fi 6206 6207found="no" 6208 6209 if test $found = "no" ; then 6210 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6212 fi 6213 6214 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6216 fi 6217 6218 CFLAGS="$CFLAGS -Wcast-qual" 6219 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6221$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6222 cacheid=xorg_cv_cc_flag__Wcast_qual 6223 if eval \${$cacheid+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227/* end confdefs.h. */ 6228int i; 6229int 6230main () 6231{ 6232 6233 ; 6234 return 0; 6235} 6236_ACEOF 6237if ac_fn_c_try_link "$LINENO"; then : 6238 eval $cacheid=yes 6239else 6240 eval $cacheid=no 6241fi 6242rm -f core conftest.err conftest.$ac_objext \ 6243 conftest$ac_exeext conftest.$ac_ext 6244fi 6245 6246 6247 CFLAGS="$xorg_testset_save_CFLAGS" 6248 6249 eval supported=\$$cacheid 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6251$as_echo "$supported" >&6; } 6252 if test "$supported" = "yes" ; then 6253 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6254 found="yes" 6255 fi 6256 fi 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272xorg_testset_save_CFLAGS="$CFLAGS" 6273 6274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6278if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282/* end confdefs.h. */ 6283int i; 6284_ACEOF 6285if ac_fn_c_try_compile "$LINENO"; then : 6286 xorg_cv_cc_flag_unknown_warning_option=yes 6287else 6288 xorg_cv_cc_flag_unknown_warning_option=no 6289fi 6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6291fi 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6293$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6295 CFLAGS="$xorg_testset_save_CFLAGS" 6296fi 6297 6298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6301 fi 6302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6304$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6305if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6309/* end confdefs.h. */ 6310int i; 6311_ACEOF 6312if ac_fn_c_try_compile "$LINENO"; then : 6313 xorg_cv_cc_flag_unused_command_line_argument=yes 6314else 6315 xorg_cv_cc_flag_unused_command_line_argument=no 6316fi 6317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6318fi 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6320$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6322 CFLAGS="$xorg_testset_save_CFLAGS" 6323fi 6324 6325found="no" 6326 6327 if test $found = "no" ; then 6328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6330 fi 6331 6332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6334 fi 6335 6336 CFLAGS="$CFLAGS -Wmissing-noreturn" 6337 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6339$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6340 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6341 if eval \${$cacheid+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6345/* end confdefs.h. */ 6346int i; 6347int 6348main () 6349{ 6350 6351 ; 6352 return 0; 6353} 6354_ACEOF 6355if ac_fn_c_try_link "$LINENO"; then : 6356 eval $cacheid=yes 6357else 6358 eval $cacheid=no 6359fi 6360rm -f core conftest.err conftest.$ac_objext \ 6361 conftest$ac_exeext conftest.$ac_ext 6362fi 6363 6364 6365 CFLAGS="$xorg_testset_save_CFLAGS" 6366 6367 eval supported=\$$cacheid 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6369$as_echo "$supported" >&6; } 6370 if test "$supported" = "yes" ; then 6371 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6372 found="yes" 6373 fi 6374 fi 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390xorg_testset_save_CFLAGS="$CFLAGS" 6391 6392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6395$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6396if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400/* end confdefs.h. */ 6401int i; 6402_ACEOF 6403if ac_fn_c_try_compile "$LINENO"; then : 6404 xorg_cv_cc_flag_unknown_warning_option=yes 6405else 6406 xorg_cv_cc_flag_unknown_warning_option=no 6407fi 6408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6409fi 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6411$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6413 CFLAGS="$xorg_testset_save_CFLAGS" 6414fi 6415 6416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6419 fi 6420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6422$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6423if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6427/* end confdefs.h. */ 6428int i; 6429_ACEOF 6430if ac_fn_c_try_compile "$LINENO"; then : 6431 xorg_cv_cc_flag_unused_command_line_argument=yes 6432else 6433 xorg_cv_cc_flag_unused_command_line_argument=no 6434fi 6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6436fi 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6438$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6440 CFLAGS="$xorg_testset_save_CFLAGS" 6441fi 6442 6443found="no" 6444 6445 if test $found = "no" ; then 6446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6448 fi 6449 6450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6452 fi 6453 6454 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6455 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6457$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6458 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6459 if eval \${$cacheid+:} false; then : 6460 $as_echo_n "(cached) " >&6 6461else 6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6463/* end confdefs.h. */ 6464int i; 6465int 6466main () 6467{ 6468 6469 ; 6470 return 0; 6471} 6472_ACEOF 6473if ac_fn_c_try_link "$LINENO"; then : 6474 eval $cacheid=yes 6475else 6476 eval $cacheid=no 6477fi 6478rm -f core conftest.err conftest.$ac_objext \ 6479 conftest$ac_exeext conftest.$ac_ext 6480fi 6481 6482 6483 CFLAGS="$xorg_testset_save_CFLAGS" 6484 6485 eval supported=\$$cacheid 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6487$as_echo "$supported" >&6; } 6488 if test "$supported" = "yes" ; then 6489 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6490 found="yes" 6491 fi 6492 fi 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508xorg_testset_save_CFLAGS="$CFLAGS" 6509 6510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6513$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6514if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6515 $as_echo_n "(cached) " >&6 6516else 6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6518/* end confdefs.h. */ 6519int i; 6520_ACEOF 6521if ac_fn_c_try_compile "$LINENO"; then : 6522 xorg_cv_cc_flag_unknown_warning_option=yes 6523else 6524 xorg_cv_cc_flag_unknown_warning_option=no 6525fi 6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6527fi 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6529$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6532fi 6533 6534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6537 fi 6538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6540$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6541if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6545/* end confdefs.h. */ 6546int i; 6547_ACEOF 6548if ac_fn_c_try_compile "$LINENO"; then : 6549 xorg_cv_cc_flag_unused_command_line_argument=yes 6550else 6551 xorg_cv_cc_flag_unused_command_line_argument=no 6552fi 6553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6554fi 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6556$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6558 CFLAGS="$xorg_testset_save_CFLAGS" 6559fi 6560 6561found="no" 6562 6563 if test $found = "no" ; then 6564 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6566 fi 6567 6568 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6570 fi 6571 6572 CFLAGS="$CFLAGS -Wredundant-decls" 6573 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6575$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6576 cacheid=xorg_cv_cc_flag__Wredundant_decls 6577 if eval \${$cacheid+:} false; then : 6578 $as_echo_n "(cached) " >&6 6579else 6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6581/* end confdefs.h. */ 6582int i; 6583int 6584main () 6585{ 6586 6587 ; 6588 return 0; 6589} 6590_ACEOF 6591if ac_fn_c_try_link "$LINENO"; then : 6592 eval $cacheid=yes 6593else 6594 eval $cacheid=no 6595fi 6596rm -f core conftest.err conftest.$ac_objext \ 6597 conftest$ac_exeext conftest.$ac_ext 6598fi 6599 6600 6601 CFLAGS="$xorg_testset_save_CFLAGS" 6602 6603 eval supported=\$$cacheid 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6605$as_echo "$supported" >&6; } 6606 if test "$supported" = "yes" ; then 6607 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6608 found="yes" 6609 fi 6610 fi 6611 6612 6613 6614# These are currently disabled because they are noisy. They will be enabled 6615# in the future once the codebase is sufficiently modernized to silence 6616# them. For now, I don't want them to drown out the other warnings. 6617# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6618# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6619# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6620 6621# Turn some warnings into errors, so we don't accidently get successful builds 6622# when there are problems that should be fixed. 6623 6624if test "x$SELECTIVE_WERROR" = "xyes" ; then 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638xorg_testset_save_CFLAGS="$CFLAGS" 6639 6640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6648/* end confdefs.h. */ 6649int i; 6650_ACEOF 6651if ac_fn_c_try_compile "$LINENO"; then : 6652 xorg_cv_cc_flag_unknown_warning_option=yes 6653else 6654 xorg_cv_cc_flag_unknown_warning_option=no 6655fi 6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6657fi 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6661 CFLAGS="$xorg_testset_save_CFLAGS" 6662fi 6663 6664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6667 fi 6668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6672 $as_echo_n "(cached) " >&6 6673else 6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6675/* end confdefs.h. */ 6676int i; 6677_ACEOF 6678if ac_fn_c_try_compile "$LINENO"; then : 6679 xorg_cv_cc_flag_unused_command_line_argument=yes 6680else 6681 xorg_cv_cc_flag_unused_command_line_argument=no 6682fi 6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6684fi 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6688 CFLAGS="$xorg_testset_save_CFLAGS" 6689fi 6690 6691found="no" 6692 6693 if test $found = "no" ; then 6694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6696 fi 6697 6698 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6700 fi 6701 6702 CFLAGS="$CFLAGS -Werror=implicit" 6703 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6705$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6706 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6707 if eval \${$cacheid+:} false; then : 6708 $as_echo_n "(cached) " >&6 6709else 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711/* end confdefs.h. */ 6712int i; 6713int 6714main () 6715{ 6716 6717 ; 6718 return 0; 6719} 6720_ACEOF 6721if ac_fn_c_try_link "$LINENO"; then : 6722 eval $cacheid=yes 6723else 6724 eval $cacheid=no 6725fi 6726rm -f core conftest.err conftest.$ac_objext \ 6727 conftest$ac_exeext conftest.$ac_ext 6728fi 6729 6730 6731 CFLAGS="$xorg_testset_save_CFLAGS" 6732 6733 eval supported=\$$cacheid 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6735$as_echo "$supported" >&6; } 6736 if test "$supported" = "yes" ; then 6737 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6738 found="yes" 6739 fi 6740 fi 6741 6742 if test $found = "no" ; then 6743 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6745 fi 6746 6747 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6749 fi 6750 6751 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6752 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6754$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6755 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6756 if eval \${$cacheid+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761int i; 6762int 6763main () 6764{ 6765 6766 ; 6767 return 0; 6768} 6769_ACEOF 6770if ac_fn_c_try_link "$LINENO"; then : 6771 eval $cacheid=yes 6772else 6773 eval $cacheid=no 6774fi 6775rm -f core conftest.err conftest.$ac_objext \ 6776 conftest$ac_exeext conftest.$ac_ext 6777fi 6778 6779 6780 CFLAGS="$xorg_testset_save_CFLAGS" 6781 6782 eval supported=\$$cacheid 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6784$as_echo "$supported" >&6; } 6785 if test "$supported" = "yes" ; then 6786 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6787 found="yes" 6788 fi 6789 fi 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805xorg_testset_save_CFLAGS="$CFLAGS" 6806 6807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6810$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6811if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817_ACEOF 6818if ac_fn_c_try_compile "$LINENO"; then : 6819 xorg_cv_cc_flag_unknown_warning_option=yes 6820else 6821 xorg_cv_cc_flag_unknown_warning_option=no 6822fi 6823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6824fi 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6826$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6828 CFLAGS="$xorg_testset_save_CFLAGS" 6829fi 6830 6831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6834 fi 6835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6837$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6838if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6842/* end confdefs.h. */ 6843int i; 6844_ACEOF 6845if ac_fn_c_try_compile "$LINENO"; then : 6846 xorg_cv_cc_flag_unused_command_line_argument=yes 6847else 6848 xorg_cv_cc_flag_unused_command_line_argument=no 6849fi 6850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6853$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6855 CFLAGS="$xorg_testset_save_CFLAGS" 6856fi 6857 6858found="no" 6859 6860 if test $found = "no" ; then 6861 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6863 fi 6864 6865 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6867 fi 6868 6869 CFLAGS="$CFLAGS -Werror=nonnull" 6870 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6872$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6873 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6874 if eval \${$cacheid+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6878/* end confdefs.h. */ 6879int i; 6880int 6881main () 6882{ 6883 6884 ; 6885 return 0; 6886} 6887_ACEOF 6888if ac_fn_c_try_link "$LINENO"; then : 6889 eval $cacheid=yes 6890else 6891 eval $cacheid=no 6892fi 6893rm -f core conftest.err conftest.$ac_objext \ 6894 conftest$ac_exeext conftest.$ac_ext 6895fi 6896 6897 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899 6900 eval supported=\$$cacheid 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6902$as_echo "$supported" >&6; } 6903 if test "$supported" = "yes" ; then 6904 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6905 found="yes" 6906 fi 6907 fi 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923xorg_testset_save_CFLAGS="$CFLAGS" 6924 6925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6930 $as_echo_n "(cached) " >&6 6931else 6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934int i; 6935_ACEOF 6936if ac_fn_c_try_compile "$LINENO"; then : 6937 xorg_cv_cc_flag_unknown_warning_option=yes 6938else 6939 xorg_cv_cc_flag_unknown_warning_option=no 6940fi 6941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6942fi 6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6946 CFLAGS="$xorg_testset_save_CFLAGS" 6947fi 6948 6949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6952 fi 6953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6957 $as_echo_n "(cached) " >&6 6958else 6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961int i; 6962_ACEOF 6963if ac_fn_c_try_compile "$LINENO"; then : 6964 xorg_cv_cc_flag_unused_command_line_argument=yes 6965else 6966 xorg_cv_cc_flag_unused_command_line_argument=no 6967fi 6968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6969fi 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6973 CFLAGS="$xorg_testset_save_CFLAGS" 6974fi 6975 6976found="no" 6977 6978 if test $found = "no" ; then 6979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6981 fi 6982 6983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6985 fi 6986 6987 CFLAGS="$CFLAGS -Werror=init-self" 6988 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6990$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6991 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 6992 if eval \${$cacheid+:} false; then : 6993 $as_echo_n "(cached) " >&6 6994else 6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996/* end confdefs.h. */ 6997int i; 6998int 6999main () 7000{ 7001 7002 ; 7003 return 0; 7004} 7005_ACEOF 7006if ac_fn_c_try_link "$LINENO"; then : 7007 eval $cacheid=yes 7008else 7009 eval $cacheid=no 7010fi 7011rm -f core conftest.err conftest.$ac_objext \ 7012 conftest$ac_exeext conftest.$ac_ext 7013fi 7014 7015 7016 CFLAGS="$xorg_testset_save_CFLAGS" 7017 7018 eval supported=\$$cacheid 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7020$as_echo "$supported" >&6; } 7021 if test "$supported" = "yes" ; then 7022 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7023 found="yes" 7024 fi 7025 fi 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041xorg_testset_save_CFLAGS="$CFLAGS" 7042 7043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7051/* end confdefs.h. */ 7052int i; 7053_ACEOF 7054if ac_fn_c_try_compile "$LINENO"; then : 7055 xorg_cv_cc_flag_unknown_warning_option=yes 7056else 7057 xorg_cv_cc_flag_unknown_warning_option=no 7058fi 7059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7060fi 7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7064 CFLAGS="$xorg_testset_save_CFLAGS" 7065fi 7066 7067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7070 fi 7071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7075 $as_echo_n "(cached) " >&6 7076else 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079int i; 7080_ACEOF 7081if ac_fn_c_try_compile "$LINENO"; then : 7082 xorg_cv_cc_flag_unused_command_line_argument=yes 7083else 7084 xorg_cv_cc_flag_unused_command_line_argument=no 7085fi 7086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7087fi 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7091 CFLAGS="$xorg_testset_save_CFLAGS" 7092fi 7093 7094found="no" 7095 7096 if test $found = "no" ; then 7097 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7099 fi 7100 7101 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7103 fi 7104 7105 CFLAGS="$CFLAGS -Werror=main" 7106 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7108$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7109 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7110 if eval \${$cacheid+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114/* end confdefs.h. */ 7115int i; 7116int 7117main () 7118{ 7119 7120 ; 7121 return 0; 7122} 7123_ACEOF 7124if ac_fn_c_try_link "$LINENO"; then : 7125 eval $cacheid=yes 7126else 7127 eval $cacheid=no 7128fi 7129rm -f core conftest.err conftest.$ac_objext \ 7130 conftest$ac_exeext conftest.$ac_ext 7131fi 7132 7133 7134 CFLAGS="$xorg_testset_save_CFLAGS" 7135 7136 eval supported=\$$cacheid 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7138$as_echo "$supported" >&6; } 7139 if test "$supported" = "yes" ; then 7140 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7141 found="yes" 7142 fi 7143 fi 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159xorg_testset_save_CFLAGS="$CFLAGS" 7160 7161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169/* end confdefs.h. */ 7170int i; 7171_ACEOF 7172if ac_fn_c_try_compile "$LINENO"; then : 7173 xorg_cv_cc_flag_unknown_warning_option=yes 7174else 7175 xorg_cv_cc_flag_unknown_warning_option=no 7176fi 7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7178fi 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7182 CFLAGS="$xorg_testset_save_CFLAGS" 7183fi 7184 7185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7188 fi 7189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7193 $as_echo_n "(cached) " >&6 7194else 7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7196/* end confdefs.h. */ 7197int i; 7198_ACEOF 7199if ac_fn_c_try_compile "$LINENO"; then : 7200 xorg_cv_cc_flag_unused_command_line_argument=yes 7201else 7202 xorg_cv_cc_flag_unused_command_line_argument=no 7203fi 7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7205fi 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7209 CFLAGS="$xorg_testset_save_CFLAGS" 7210fi 7211 7212found="no" 7213 7214 if test $found = "no" ; then 7215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7217 fi 7218 7219 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7221 fi 7222 7223 CFLAGS="$CFLAGS -Werror=missing-braces" 7224 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7226$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7227 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7228 if eval \${$cacheid+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7232/* end confdefs.h. */ 7233int i; 7234int 7235main () 7236{ 7237 7238 ; 7239 return 0; 7240} 7241_ACEOF 7242if ac_fn_c_try_link "$LINENO"; then : 7243 eval $cacheid=yes 7244else 7245 eval $cacheid=no 7246fi 7247rm -f core conftest.err conftest.$ac_objext \ 7248 conftest$ac_exeext conftest.$ac_ext 7249fi 7250 7251 7252 CFLAGS="$xorg_testset_save_CFLAGS" 7253 7254 eval supported=\$$cacheid 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7256$as_echo "$supported" >&6; } 7257 if test "$supported" = "yes" ; then 7258 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7259 found="yes" 7260 fi 7261 fi 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277xorg_testset_save_CFLAGS="$CFLAGS" 7278 7279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285else 7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287/* end confdefs.h. */ 7288int i; 7289_ACEOF 7290if ac_fn_c_try_compile "$LINENO"; then : 7291 xorg_cv_cc_flag_unknown_warning_option=yes 7292else 7293 xorg_cv_cc_flag_unknown_warning_option=no 7294fi 7295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7296fi 7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7300 CFLAGS="$xorg_testset_save_CFLAGS" 7301fi 7302 7303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7306 fi 7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7311 $as_echo_n "(cached) " >&6 7312else 7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314/* end confdefs.h. */ 7315int i; 7316_ACEOF 7317if ac_fn_c_try_compile "$LINENO"; then : 7318 xorg_cv_cc_flag_unused_command_line_argument=yes 7319else 7320 xorg_cv_cc_flag_unused_command_line_argument=no 7321fi 7322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7323fi 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7327 CFLAGS="$xorg_testset_save_CFLAGS" 7328fi 7329 7330found="no" 7331 7332 if test $found = "no" ; then 7333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7335 fi 7336 7337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7339 fi 7340 7341 CFLAGS="$CFLAGS -Werror=sequence-point" 7342 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7344$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7345 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7346 if eval \${$cacheid+:} false; then : 7347 $as_echo_n "(cached) " >&6 7348else 7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7350/* end confdefs.h. */ 7351int i; 7352int 7353main () 7354{ 7355 7356 ; 7357 return 0; 7358} 7359_ACEOF 7360if ac_fn_c_try_link "$LINENO"; then : 7361 eval $cacheid=yes 7362else 7363 eval $cacheid=no 7364fi 7365rm -f core conftest.err conftest.$ac_objext \ 7366 conftest$ac_exeext conftest.$ac_ext 7367fi 7368 7369 7370 CFLAGS="$xorg_testset_save_CFLAGS" 7371 7372 eval supported=\$$cacheid 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7374$as_echo "$supported" >&6; } 7375 if test "$supported" = "yes" ; then 7376 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7377 found="yes" 7378 fi 7379 fi 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395xorg_testset_save_CFLAGS="$CFLAGS" 7396 7397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7402 $as_echo_n "(cached) " >&6 7403else 7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405/* end confdefs.h. */ 7406int i; 7407_ACEOF 7408if ac_fn_c_try_compile "$LINENO"; then : 7409 xorg_cv_cc_flag_unknown_warning_option=yes 7410else 7411 xorg_cv_cc_flag_unknown_warning_option=no 7412fi 7413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7414fi 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7418 CFLAGS="$xorg_testset_save_CFLAGS" 7419fi 7420 7421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7424 fi 7425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7429 $as_echo_n "(cached) " >&6 7430else 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432/* end confdefs.h. */ 7433int i; 7434_ACEOF 7435if ac_fn_c_try_compile "$LINENO"; then : 7436 xorg_cv_cc_flag_unused_command_line_argument=yes 7437else 7438 xorg_cv_cc_flag_unused_command_line_argument=no 7439fi 7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7441fi 7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7445 CFLAGS="$xorg_testset_save_CFLAGS" 7446fi 7447 7448found="no" 7449 7450 if test $found = "no" ; then 7451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7453 fi 7454 7455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7457 fi 7458 7459 CFLAGS="$CFLAGS -Werror=return-type" 7460 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7462$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7463 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7464 if eval \${$cacheid+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466else 7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7468/* end confdefs.h. */ 7469int i; 7470int 7471main () 7472{ 7473 7474 ; 7475 return 0; 7476} 7477_ACEOF 7478if ac_fn_c_try_link "$LINENO"; then : 7479 eval $cacheid=yes 7480else 7481 eval $cacheid=no 7482fi 7483rm -f core conftest.err conftest.$ac_objext \ 7484 conftest$ac_exeext conftest.$ac_ext 7485fi 7486 7487 7488 CFLAGS="$xorg_testset_save_CFLAGS" 7489 7490 eval supported=\$$cacheid 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7492$as_echo "$supported" >&6; } 7493 if test "$supported" = "yes" ; then 7494 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7495 found="yes" 7496 fi 7497 fi 7498 7499 if test $found = "no" ; then 7500 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 fi 7503 7504 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7506 fi 7507 7508 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7509 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7511$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7512 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7513 if eval \${$cacheid+:} false; then : 7514 $as_echo_n "(cached) " >&6 7515else 7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7517/* end confdefs.h. */ 7518int i; 7519int 7520main () 7521{ 7522 7523 ; 7524 return 0; 7525} 7526_ACEOF 7527if ac_fn_c_try_link "$LINENO"; then : 7528 eval $cacheid=yes 7529else 7530 eval $cacheid=no 7531fi 7532rm -f core conftest.err conftest.$ac_objext \ 7533 conftest$ac_exeext conftest.$ac_ext 7534fi 7535 7536 7537 CFLAGS="$xorg_testset_save_CFLAGS" 7538 7539 eval supported=\$$cacheid 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7541$as_echo "$supported" >&6; } 7542 if test "$supported" = "yes" ; then 7543 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7544 found="yes" 7545 fi 7546 fi 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562xorg_testset_save_CFLAGS="$CFLAGS" 7563 7564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573int i; 7574_ACEOF 7575if ac_fn_c_try_compile "$LINENO"; then : 7576 xorg_cv_cc_flag_unknown_warning_option=yes 7577else 7578 xorg_cv_cc_flag_unknown_warning_option=no 7579fi 7580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7581fi 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7585 CFLAGS="$xorg_testset_save_CFLAGS" 7586fi 7587 7588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7591 fi 7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600int i; 7601_ACEOF 7602if ac_fn_c_try_compile "$LINENO"; then : 7603 xorg_cv_cc_flag_unused_command_line_argument=yes 7604else 7605 xorg_cv_cc_flag_unused_command_line_argument=no 7606fi 7607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7608fi 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7612 CFLAGS="$xorg_testset_save_CFLAGS" 7613fi 7614 7615found="no" 7616 7617 if test $found = "no" ; then 7618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7620 fi 7621 7622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7624 fi 7625 7626 CFLAGS="$CFLAGS -Werror=trigraphs" 7627 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7629$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7630 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7631 if eval \${$cacheid+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635/* end confdefs.h. */ 7636int i; 7637int 7638main () 7639{ 7640 7641 ; 7642 return 0; 7643} 7644_ACEOF 7645if ac_fn_c_try_link "$LINENO"; then : 7646 eval $cacheid=yes 7647else 7648 eval $cacheid=no 7649fi 7650rm -f core conftest.err conftest.$ac_objext \ 7651 conftest$ac_exeext conftest.$ac_ext 7652fi 7653 7654 7655 CFLAGS="$xorg_testset_save_CFLAGS" 7656 7657 eval supported=\$$cacheid 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7659$as_echo "$supported" >&6; } 7660 if test "$supported" = "yes" ; then 7661 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7662 found="yes" 7663 fi 7664 fi 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680xorg_testset_save_CFLAGS="$CFLAGS" 7681 7682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688else 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690/* end confdefs.h. */ 7691int i; 7692_ACEOF 7693if ac_fn_c_try_compile "$LINENO"; then : 7694 xorg_cv_cc_flag_unknown_warning_option=yes 7695else 7696 xorg_cv_cc_flag_unknown_warning_option=no 7697fi 7698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7699fi 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7703 CFLAGS="$xorg_testset_save_CFLAGS" 7704fi 7705 7706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7709 fi 7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717/* end confdefs.h. */ 7718int i; 7719_ACEOF 7720if ac_fn_c_try_compile "$LINENO"; then : 7721 xorg_cv_cc_flag_unused_command_line_argument=yes 7722else 7723 xorg_cv_cc_flag_unused_command_line_argument=no 7724fi 7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7726fi 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7730 CFLAGS="$xorg_testset_save_CFLAGS" 7731fi 7732 7733found="no" 7734 7735 if test $found = "no" ; then 7736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7738 fi 7739 7740 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7742 fi 7743 7744 CFLAGS="$CFLAGS -Werror=array-bounds" 7745 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7747$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7748 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7749 if eval \${$cacheid+:} false; then : 7750 $as_echo_n "(cached) " >&6 7751else 7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7753/* end confdefs.h. */ 7754int i; 7755int 7756main () 7757{ 7758 7759 ; 7760 return 0; 7761} 7762_ACEOF 7763if ac_fn_c_try_link "$LINENO"; then : 7764 eval $cacheid=yes 7765else 7766 eval $cacheid=no 7767fi 7768rm -f core conftest.err conftest.$ac_objext \ 7769 conftest$ac_exeext conftest.$ac_ext 7770fi 7771 7772 7773 CFLAGS="$xorg_testset_save_CFLAGS" 7774 7775 eval supported=\$$cacheid 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7777$as_echo "$supported" >&6; } 7778 if test "$supported" = "yes" ; then 7779 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7780 found="yes" 7781 fi 7782 fi 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798xorg_testset_save_CFLAGS="$CFLAGS" 7799 7800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806else 7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809int i; 7810_ACEOF 7811if ac_fn_c_try_compile "$LINENO"; then : 7812 xorg_cv_cc_flag_unknown_warning_option=yes 7813else 7814 xorg_cv_cc_flag_unknown_warning_option=no 7815fi 7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7817fi 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7821 CFLAGS="$xorg_testset_save_CFLAGS" 7822fi 7823 7824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7827 fi 7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835/* end confdefs.h. */ 7836int i; 7837_ACEOF 7838if ac_fn_c_try_compile "$LINENO"; then : 7839 xorg_cv_cc_flag_unused_command_line_argument=yes 7840else 7841 xorg_cv_cc_flag_unused_command_line_argument=no 7842fi 7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7844fi 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7848 CFLAGS="$xorg_testset_save_CFLAGS" 7849fi 7850 7851found="no" 7852 7853 if test $found = "no" ; then 7854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7856 fi 7857 7858 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7860 fi 7861 7862 CFLAGS="$CFLAGS -Werror=write-strings" 7863 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7865$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7866 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7867 if eval \${$cacheid+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869else 7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7871/* end confdefs.h. */ 7872int i; 7873int 7874main () 7875{ 7876 7877 ; 7878 return 0; 7879} 7880_ACEOF 7881if ac_fn_c_try_link "$LINENO"; then : 7882 eval $cacheid=yes 7883else 7884 eval $cacheid=no 7885fi 7886rm -f core conftest.err conftest.$ac_objext \ 7887 conftest$ac_exeext conftest.$ac_ext 7888fi 7889 7890 7891 CFLAGS="$xorg_testset_save_CFLAGS" 7892 7893 eval supported=\$$cacheid 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7895$as_echo "$supported" >&6; } 7896 if test "$supported" = "yes" ; then 7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7898 found="yes" 7899 fi 7900 fi 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916xorg_testset_save_CFLAGS="$CFLAGS" 7917 7918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7923 $as_echo_n "(cached) " >&6 7924else 7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7926/* end confdefs.h. */ 7927int i; 7928_ACEOF 7929if ac_fn_c_try_compile "$LINENO"; then : 7930 xorg_cv_cc_flag_unknown_warning_option=yes 7931else 7932 xorg_cv_cc_flag_unknown_warning_option=no 7933fi 7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7935fi 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7939 CFLAGS="$xorg_testset_save_CFLAGS" 7940fi 7941 7942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7945 fi 7946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7950 $as_echo_n "(cached) " >&6 7951else 7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7953/* end confdefs.h. */ 7954int i; 7955_ACEOF 7956if ac_fn_c_try_compile "$LINENO"; then : 7957 xorg_cv_cc_flag_unused_command_line_argument=yes 7958else 7959 xorg_cv_cc_flag_unused_command_line_argument=no 7960fi 7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7962fi 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7966 CFLAGS="$xorg_testset_save_CFLAGS" 7967fi 7968 7969found="no" 7970 7971 if test $found = "no" ; then 7972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7974 fi 7975 7976 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7978 fi 7979 7980 CFLAGS="$CFLAGS -Werror=address" 7981 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7983$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7984 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 7985 if eval \${$cacheid+:} false; then : 7986 $as_echo_n "(cached) " >&6 7987else 7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7989/* end confdefs.h. */ 7990int i; 7991int 7992main () 7993{ 7994 7995 ; 7996 return 0; 7997} 7998_ACEOF 7999if ac_fn_c_try_link "$LINENO"; then : 8000 eval $cacheid=yes 8001else 8002 eval $cacheid=no 8003fi 8004rm -f core conftest.err conftest.$ac_objext \ 8005 conftest$ac_exeext conftest.$ac_ext 8006fi 8007 8008 8009 CFLAGS="$xorg_testset_save_CFLAGS" 8010 8011 eval supported=\$$cacheid 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8013$as_echo "$supported" >&6; } 8014 if test "$supported" = "yes" ; then 8015 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8016 found="yes" 8017 fi 8018 fi 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034xorg_testset_save_CFLAGS="$CFLAGS" 8035 8036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8044/* end confdefs.h. */ 8045int i; 8046_ACEOF 8047if ac_fn_c_try_compile "$LINENO"; then : 8048 xorg_cv_cc_flag_unknown_warning_option=yes 8049else 8050 xorg_cv_cc_flag_unknown_warning_option=no 8051fi 8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8053fi 8054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8057 CFLAGS="$xorg_testset_save_CFLAGS" 8058fi 8059 8060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8063 fi 8064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8071/* end confdefs.h. */ 8072int i; 8073_ACEOF 8074if ac_fn_c_try_compile "$LINENO"; then : 8075 xorg_cv_cc_flag_unused_command_line_argument=yes 8076else 8077 xorg_cv_cc_flag_unused_command_line_argument=no 8078fi 8079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8080fi 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085fi 8086 8087found="no" 8088 8089 if test $found = "no" ; then 8090 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 fi 8093 8094 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8096 fi 8097 8098 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8099 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8101$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8102 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8103 if eval \${$cacheid+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8107/* end confdefs.h. */ 8108int i; 8109int 8110main () 8111{ 8112 8113 ; 8114 return 0; 8115} 8116_ACEOF 8117if ac_fn_c_try_link "$LINENO"; then : 8118 eval $cacheid=yes 8119else 8120 eval $cacheid=no 8121fi 8122rm -f core conftest.err conftest.$ac_objext \ 8123 conftest$ac_exeext conftest.$ac_ext 8124fi 8125 8126 8127 CFLAGS="$xorg_testset_save_CFLAGS" 8128 8129 eval supported=\$$cacheid 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8131$as_echo "$supported" >&6; } 8132 if test "$supported" = "yes" ; then 8133 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8134 found="yes" 8135 fi 8136 fi 8137 8138 if test $found = "no" ; then 8139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8141 fi 8142 8143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8145 fi 8146 8147 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8148 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8150$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8151 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8152 if eval \${$cacheid+:} false; then : 8153 $as_echo_n "(cached) " >&6 8154else 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8156/* end confdefs.h. */ 8157int i; 8158int 8159main () 8160{ 8161 8162 ; 8163 return 0; 8164} 8165_ACEOF 8166if ac_fn_c_try_link "$LINENO"; then : 8167 eval $cacheid=yes 8168else 8169 eval $cacheid=no 8170fi 8171rm -f core conftest.err conftest.$ac_objext \ 8172 conftest$ac_exeext conftest.$ac_ext 8173fi 8174 8175 8176 CFLAGS="$xorg_testset_save_CFLAGS" 8177 8178 eval supported=\$$cacheid 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8180$as_echo "$supported" >&6; } 8181 if test "$supported" = "yes" ; then 8182 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8183 found="yes" 8184 fi 8185 fi 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201xorg_testset_save_CFLAGS="$CFLAGS" 8202 8203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8211/* end confdefs.h. */ 8212int i; 8213_ACEOF 8214if ac_fn_c_try_compile "$LINENO"; then : 8215 xorg_cv_cc_flag_unknown_warning_option=yes 8216else 8217 xorg_cv_cc_flag_unknown_warning_option=no 8218fi 8219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8220fi 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8224 CFLAGS="$xorg_testset_save_CFLAGS" 8225fi 8226 8227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8230 fi 8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236else 8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238/* end confdefs.h. */ 8239int i; 8240_ACEOF 8241if ac_fn_c_try_compile "$LINENO"; then : 8242 xorg_cv_cc_flag_unused_command_line_argument=yes 8243else 8244 xorg_cv_cc_flag_unused_command_line_argument=no 8245fi 8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8247fi 8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8251 CFLAGS="$xorg_testset_save_CFLAGS" 8252fi 8253 8254found="no" 8255 8256 if test $found = "no" ; then 8257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8259 fi 8260 8261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8263 fi 8264 8265 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8266 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8268$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8269 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8270 if eval \${$cacheid+:} false; then : 8271 $as_echo_n "(cached) " >&6 8272else 8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8274/* end confdefs.h. */ 8275int i; 8276int 8277main () 8278{ 8279 8280 ; 8281 return 0; 8282} 8283_ACEOF 8284if ac_fn_c_try_link "$LINENO"; then : 8285 eval $cacheid=yes 8286else 8287 eval $cacheid=no 8288fi 8289rm -f core conftest.err conftest.$ac_objext \ 8290 conftest$ac_exeext conftest.$ac_ext 8291fi 8292 8293 8294 CFLAGS="$xorg_testset_save_CFLAGS" 8295 8296 eval supported=\$$cacheid 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8298$as_echo "$supported" >&6; } 8299 if test "$supported" = "yes" ; then 8300 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8301 found="yes" 8302 fi 8303 fi 8304 8305 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8306else 8307{ $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 8308$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;} 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322xorg_testset_save_CFLAGS="$CFLAGS" 8323 8324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333int i; 8334_ACEOF 8335if ac_fn_c_try_compile "$LINENO"; then : 8336 xorg_cv_cc_flag_unknown_warning_option=yes 8337else 8338 xorg_cv_cc_flag_unknown_warning_option=no 8339fi 8340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8341fi 8342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8345 CFLAGS="$xorg_testset_save_CFLAGS" 8346fi 8347 8348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8351 fi 8352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8356 $as_echo_n "(cached) " >&6 8357else 8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8359/* end confdefs.h. */ 8360int i; 8361_ACEOF 8362if ac_fn_c_try_compile "$LINENO"; then : 8363 xorg_cv_cc_flag_unused_command_line_argument=yes 8364else 8365 xorg_cv_cc_flag_unused_command_line_argument=no 8366fi 8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8368fi 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8372 CFLAGS="$xorg_testset_save_CFLAGS" 8373fi 8374 8375found="no" 8376 8377 if test $found = "no" ; then 8378 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8380 fi 8381 8382 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8384 fi 8385 8386 CFLAGS="$CFLAGS -Wimplicit" 8387 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8389$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8390 cacheid=xorg_cv_cc_flag__Wimplicit 8391 if eval \${$cacheid+:} false; then : 8392 $as_echo_n "(cached) " >&6 8393else 8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8395/* end confdefs.h. */ 8396int i; 8397int 8398main () 8399{ 8400 8401 ; 8402 return 0; 8403} 8404_ACEOF 8405if ac_fn_c_try_link "$LINENO"; then : 8406 eval $cacheid=yes 8407else 8408 eval $cacheid=no 8409fi 8410rm -f core conftest.err conftest.$ac_objext \ 8411 conftest$ac_exeext conftest.$ac_ext 8412fi 8413 8414 8415 CFLAGS="$xorg_testset_save_CFLAGS" 8416 8417 eval supported=\$$cacheid 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8419$as_echo "$supported" >&6; } 8420 if test "$supported" = "yes" ; then 8421 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8422 found="yes" 8423 fi 8424 fi 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440xorg_testset_save_CFLAGS="$CFLAGS" 8441 8442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8447 $as_echo_n "(cached) " >&6 8448else 8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8450/* end confdefs.h. */ 8451int i; 8452_ACEOF 8453if ac_fn_c_try_compile "$LINENO"; then : 8454 xorg_cv_cc_flag_unknown_warning_option=yes 8455else 8456 xorg_cv_cc_flag_unknown_warning_option=no 8457fi 8458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8459fi 8460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8463 CFLAGS="$xorg_testset_save_CFLAGS" 8464fi 8465 8466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8469 fi 8470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478int i; 8479_ACEOF 8480if ac_fn_c_try_compile "$LINENO"; then : 8481 xorg_cv_cc_flag_unused_command_line_argument=yes 8482else 8483 xorg_cv_cc_flag_unused_command_line_argument=no 8484fi 8485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8486fi 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8490 CFLAGS="$xorg_testset_save_CFLAGS" 8491fi 8492 8493found="no" 8494 8495 if test $found = "no" ; then 8496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8498 fi 8499 8500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8502 fi 8503 8504 CFLAGS="$CFLAGS -Wnonnull" 8505 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8507$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8508 cacheid=xorg_cv_cc_flag__Wnonnull 8509 if eval \${$cacheid+:} false; then : 8510 $as_echo_n "(cached) " >&6 8511else 8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513/* end confdefs.h. */ 8514int i; 8515int 8516main () 8517{ 8518 8519 ; 8520 return 0; 8521} 8522_ACEOF 8523if ac_fn_c_try_link "$LINENO"; then : 8524 eval $cacheid=yes 8525else 8526 eval $cacheid=no 8527fi 8528rm -f core conftest.err conftest.$ac_objext \ 8529 conftest$ac_exeext conftest.$ac_ext 8530fi 8531 8532 8533 CFLAGS="$xorg_testset_save_CFLAGS" 8534 8535 eval supported=\$$cacheid 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8537$as_echo "$supported" >&6; } 8538 if test "$supported" = "yes" ; then 8539 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8540 found="yes" 8541 fi 8542 fi 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558xorg_testset_save_CFLAGS="$CFLAGS" 8559 8560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8568/* end confdefs.h. */ 8569int i; 8570_ACEOF 8571if ac_fn_c_try_compile "$LINENO"; then : 8572 xorg_cv_cc_flag_unknown_warning_option=yes 8573else 8574 xorg_cv_cc_flag_unknown_warning_option=no 8575fi 8576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8577fi 8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8581 CFLAGS="$xorg_testset_save_CFLAGS" 8582fi 8583 8584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8587 fi 8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593else 8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8595/* end confdefs.h. */ 8596int i; 8597_ACEOF 8598if ac_fn_c_try_compile "$LINENO"; then : 8599 xorg_cv_cc_flag_unused_command_line_argument=yes 8600else 8601 xorg_cv_cc_flag_unused_command_line_argument=no 8602fi 8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8604fi 8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8608 CFLAGS="$xorg_testset_save_CFLAGS" 8609fi 8610 8611found="no" 8612 8613 if test $found = "no" ; then 8614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8616 fi 8617 8618 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8620 fi 8621 8622 CFLAGS="$CFLAGS -Winit-self" 8623 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8625$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8626 cacheid=xorg_cv_cc_flag__Winit_self 8627 if eval \${$cacheid+:} false; then : 8628 $as_echo_n "(cached) " >&6 8629else 8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8631/* end confdefs.h. */ 8632int i; 8633int 8634main () 8635{ 8636 8637 ; 8638 return 0; 8639} 8640_ACEOF 8641if ac_fn_c_try_link "$LINENO"; then : 8642 eval $cacheid=yes 8643else 8644 eval $cacheid=no 8645fi 8646rm -f core conftest.err conftest.$ac_objext \ 8647 conftest$ac_exeext conftest.$ac_ext 8648fi 8649 8650 8651 CFLAGS="$xorg_testset_save_CFLAGS" 8652 8653 eval supported=\$$cacheid 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8655$as_echo "$supported" >&6; } 8656 if test "$supported" = "yes" ; then 8657 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8658 found="yes" 8659 fi 8660 fi 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676xorg_testset_save_CFLAGS="$CFLAGS" 8677 8678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8681$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8682if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8683 $as_echo_n "(cached) " >&6 8684else 8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8686/* end confdefs.h. */ 8687int i; 8688_ACEOF 8689if ac_fn_c_try_compile "$LINENO"; then : 8690 xorg_cv_cc_flag_unknown_warning_option=yes 8691else 8692 xorg_cv_cc_flag_unknown_warning_option=no 8693fi 8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8695fi 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8697$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8699 CFLAGS="$xorg_testset_save_CFLAGS" 8700fi 8701 8702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8705 fi 8706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8709if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8710 $as_echo_n "(cached) " >&6 8711else 8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8713/* end confdefs.h. */ 8714int i; 8715_ACEOF 8716if ac_fn_c_try_compile "$LINENO"; then : 8717 xorg_cv_cc_flag_unused_command_line_argument=yes 8718else 8719 xorg_cv_cc_flag_unused_command_line_argument=no 8720fi 8721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8722fi 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8724$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8726 CFLAGS="$xorg_testset_save_CFLAGS" 8727fi 8728 8729found="no" 8730 8731 if test $found = "no" ; then 8732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8734 fi 8735 8736 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8738 fi 8739 8740 CFLAGS="$CFLAGS -Wmain" 8741 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8743$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8744 cacheid=xorg_cv_cc_flag__Wmain 8745 if eval \${$cacheid+:} false; then : 8746 $as_echo_n "(cached) " >&6 8747else 8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8749/* end confdefs.h. */ 8750int i; 8751int 8752main () 8753{ 8754 8755 ; 8756 return 0; 8757} 8758_ACEOF 8759if ac_fn_c_try_link "$LINENO"; then : 8760 eval $cacheid=yes 8761else 8762 eval $cacheid=no 8763fi 8764rm -f core conftest.err conftest.$ac_objext \ 8765 conftest$ac_exeext conftest.$ac_ext 8766fi 8767 8768 8769 CFLAGS="$xorg_testset_save_CFLAGS" 8770 8771 eval supported=\$$cacheid 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8773$as_echo "$supported" >&6; } 8774 if test "$supported" = "yes" ; then 8775 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8776 found="yes" 8777 fi 8778 fi 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794xorg_testset_save_CFLAGS="$CFLAGS" 8795 8796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8801 $as_echo_n "(cached) " >&6 8802else 8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8804/* end confdefs.h. */ 8805int i; 8806_ACEOF 8807if ac_fn_c_try_compile "$LINENO"; then : 8808 xorg_cv_cc_flag_unknown_warning_option=yes 8809else 8810 xorg_cv_cc_flag_unknown_warning_option=no 8811fi 8812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8813fi 8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8817 CFLAGS="$xorg_testset_save_CFLAGS" 8818fi 8819 8820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8823 fi 8824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831/* end confdefs.h. */ 8832int i; 8833_ACEOF 8834if ac_fn_c_try_compile "$LINENO"; then : 8835 xorg_cv_cc_flag_unused_command_line_argument=yes 8836else 8837 xorg_cv_cc_flag_unused_command_line_argument=no 8838fi 8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8840fi 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8844 CFLAGS="$xorg_testset_save_CFLAGS" 8845fi 8846 8847found="no" 8848 8849 if test $found = "no" ; then 8850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8852 fi 8853 8854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8856 fi 8857 8858 CFLAGS="$CFLAGS -Wmissing-braces" 8859 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8861$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8862 cacheid=xorg_cv_cc_flag__Wmissing_braces 8863 if eval \${$cacheid+:} false; then : 8864 $as_echo_n "(cached) " >&6 8865else 8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8867/* end confdefs.h. */ 8868int i; 8869int 8870main () 8871{ 8872 8873 ; 8874 return 0; 8875} 8876_ACEOF 8877if ac_fn_c_try_link "$LINENO"; then : 8878 eval $cacheid=yes 8879else 8880 eval $cacheid=no 8881fi 8882rm -f core conftest.err conftest.$ac_objext \ 8883 conftest$ac_exeext conftest.$ac_ext 8884fi 8885 8886 8887 CFLAGS="$xorg_testset_save_CFLAGS" 8888 8889 eval supported=\$$cacheid 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8891$as_echo "$supported" >&6; } 8892 if test "$supported" = "yes" ; then 8893 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8894 found="yes" 8895 fi 8896 fi 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912xorg_testset_save_CFLAGS="$CFLAGS" 8913 8914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8922/* end confdefs.h. */ 8923int i; 8924_ACEOF 8925if ac_fn_c_try_compile "$LINENO"; then : 8926 xorg_cv_cc_flag_unknown_warning_option=yes 8927else 8928 xorg_cv_cc_flag_unknown_warning_option=no 8929fi 8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8931fi 8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8935 CFLAGS="$xorg_testset_save_CFLAGS" 8936fi 8937 8938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8941 fi 8942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8946 $as_echo_n "(cached) " >&6 8947else 8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8949/* end confdefs.h. */ 8950int i; 8951_ACEOF 8952if ac_fn_c_try_compile "$LINENO"; then : 8953 xorg_cv_cc_flag_unused_command_line_argument=yes 8954else 8955 xorg_cv_cc_flag_unused_command_line_argument=no 8956fi 8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8958fi 8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8962 CFLAGS="$xorg_testset_save_CFLAGS" 8963fi 8964 8965found="no" 8966 8967 if test $found = "no" ; then 8968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8970 fi 8971 8972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8974 fi 8975 8976 CFLAGS="$CFLAGS -Wsequence-point" 8977 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8979$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8980 cacheid=xorg_cv_cc_flag__Wsequence_point 8981 if eval \${$cacheid+:} false; then : 8982 $as_echo_n "(cached) " >&6 8983else 8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8985/* end confdefs.h. */ 8986int i; 8987int 8988main () 8989{ 8990 8991 ; 8992 return 0; 8993} 8994_ACEOF 8995if ac_fn_c_try_link "$LINENO"; then : 8996 eval $cacheid=yes 8997else 8998 eval $cacheid=no 8999fi 9000rm -f core conftest.err conftest.$ac_objext \ 9001 conftest$ac_exeext conftest.$ac_ext 9002fi 9003 9004 9005 CFLAGS="$xorg_testset_save_CFLAGS" 9006 9007 eval supported=\$$cacheid 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9009$as_echo "$supported" >&6; } 9010 if test "$supported" = "yes" ; then 9011 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9012 found="yes" 9013 fi 9014 fi 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030xorg_testset_save_CFLAGS="$CFLAGS" 9031 9032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9037 $as_echo_n "(cached) " >&6 9038else 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041int i; 9042_ACEOF 9043if ac_fn_c_try_compile "$LINENO"; then : 9044 xorg_cv_cc_flag_unknown_warning_option=yes 9045else 9046 xorg_cv_cc_flag_unknown_warning_option=no 9047fi 9048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9049fi 9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9053 CFLAGS="$xorg_testset_save_CFLAGS" 9054fi 9055 9056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9059 fi 9060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9064 $as_echo_n "(cached) " >&6 9065else 9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9067/* end confdefs.h. */ 9068int i; 9069_ACEOF 9070if ac_fn_c_try_compile "$LINENO"; then : 9071 xorg_cv_cc_flag_unused_command_line_argument=yes 9072else 9073 xorg_cv_cc_flag_unused_command_line_argument=no 9074fi 9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9076fi 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9080 CFLAGS="$xorg_testset_save_CFLAGS" 9081fi 9082 9083found="no" 9084 9085 if test $found = "no" ; then 9086 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9088 fi 9089 9090 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9092 fi 9093 9094 CFLAGS="$CFLAGS -Wreturn-type" 9095 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9097$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9098 cacheid=xorg_cv_cc_flag__Wreturn_type 9099 if eval \${$cacheid+:} false; then : 9100 $as_echo_n "(cached) " >&6 9101else 9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9103/* end confdefs.h. */ 9104int i; 9105int 9106main () 9107{ 9108 9109 ; 9110 return 0; 9111} 9112_ACEOF 9113if ac_fn_c_try_link "$LINENO"; then : 9114 eval $cacheid=yes 9115else 9116 eval $cacheid=no 9117fi 9118rm -f core conftest.err conftest.$ac_objext \ 9119 conftest$ac_exeext conftest.$ac_ext 9120fi 9121 9122 9123 CFLAGS="$xorg_testset_save_CFLAGS" 9124 9125 eval supported=\$$cacheid 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9127$as_echo "$supported" >&6; } 9128 if test "$supported" = "yes" ; then 9129 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9130 found="yes" 9131 fi 9132 fi 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148xorg_testset_save_CFLAGS="$CFLAGS" 9149 9150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9155 $as_echo_n "(cached) " >&6 9156else 9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9158/* end confdefs.h. */ 9159int i; 9160_ACEOF 9161if ac_fn_c_try_compile "$LINENO"; then : 9162 xorg_cv_cc_flag_unknown_warning_option=yes 9163else 9164 xorg_cv_cc_flag_unknown_warning_option=no 9165fi 9166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9167fi 9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9171 CFLAGS="$xorg_testset_save_CFLAGS" 9172fi 9173 9174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9177 fi 9178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183else 9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185/* end confdefs.h. */ 9186int i; 9187_ACEOF 9188if ac_fn_c_try_compile "$LINENO"; then : 9189 xorg_cv_cc_flag_unused_command_line_argument=yes 9190else 9191 xorg_cv_cc_flag_unused_command_line_argument=no 9192fi 9193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9194fi 9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9198 CFLAGS="$xorg_testset_save_CFLAGS" 9199fi 9200 9201found="no" 9202 9203 if test $found = "no" ; then 9204 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9206 fi 9207 9208 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9210 fi 9211 9212 CFLAGS="$CFLAGS -Wtrigraphs" 9213 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9215$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9216 cacheid=xorg_cv_cc_flag__Wtrigraphs 9217 if eval \${$cacheid+:} false; then : 9218 $as_echo_n "(cached) " >&6 9219else 9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9221/* end confdefs.h. */ 9222int i; 9223int 9224main () 9225{ 9226 9227 ; 9228 return 0; 9229} 9230_ACEOF 9231if ac_fn_c_try_link "$LINENO"; then : 9232 eval $cacheid=yes 9233else 9234 eval $cacheid=no 9235fi 9236rm -f core conftest.err conftest.$ac_objext \ 9237 conftest$ac_exeext conftest.$ac_ext 9238fi 9239 9240 9241 CFLAGS="$xorg_testset_save_CFLAGS" 9242 9243 eval supported=\$$cacheid 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9245$as_echo "$supported" >&6; } 9246 if test "$supported" = "yes" ; then 9247 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9248 found="yes" 9249 fi 9250 fi 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266xorg_testset_save_CFLAGS="$CFLAGS" 9267 9268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274else 9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9276/* end confdefs.h. */ 9277int i; 9278_ACEOF 9279if ac_fn_c_try_compile "$LINENO"; then : 9280 xorg_cv_cc_flag_unknown_warning_option=yes 9281else 9282 xorg_cv_cc_flag_unknown_warning_option=no 9283fi 9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9285fi 9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9289 CFLAGS="$xorg_testset_save_CFLAGS" 9290fi 9291 9292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9295 fi 9296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9300 $as_echo_n "(cached) " >&6 9301else 9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303/* end confdefs.h. */ 9304int i; 9305_ACEOF 9306if ac_fn_c_try_compile "$LINENO"; then : 9307 xorg_cv_cc_flag_unused_command_line_argument=yes 9308else 9309 xorg_cv_cc_flag_unused_command_line_argument=no 9310fi 9311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9312fi 9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9316 CFLAGS="$xorg_testset_save_CFLAGS" 9317fi 9318 9319found="no" 9320 9321 if test $found = "no" ; then 9322 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9324 fi 9325 9326 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9328 fi 9329 9330 CFLAGS="$CFLAGS -Warray-bounds" 9331 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9333$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9334 cacheid=xorg_cv_cc_flag__Warray_bounds 9335 if eval \${$cacheid+:} false; then : 9336 $as_echo_n "(cached) " >&6 9337else 9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9339/* end confdefs.h. */ 9340int i; 9341int 9342main () 9343{ 9344 9345 ; 9346 return 0; 9347} 9348_ACEOF 9349if ac_fn_c_try_link "$LINENO"; then : 9350 eval $cacheid=yes 9351else 9352 eval $cacheid=no 9353fi 9354rm -f core conftest.err conftest.$ac_objext \ 9355 conftest$ac_exeext conftest.$ac_ext 9356fi 9357 9358 9359 CFLAGS="$xorg_testset_save_CFLAGS" 9360 9361 eval supported=\$$cacheid 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9363$as_echo "$supported" >&6; } 9364 if test "$supported" = "yes" ; then 9365 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9366 found="yes" 9367 fi 9368 fi 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384xorg_testset_save_CFLAGS="$CFLAGS" 9385 9386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9389$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9390if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394/* end confdefs.h. */ 9395int i; 9396_ACEOF 9397if ac_fn_c_try_compile "$LINENO"; then : 9398 xorg_cv_cc_flag_unknown_warning_option=yes 9399else 9400 xorg_cv_cc_flag_unknown_warning_option=no 9401fi 9402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9403fi 9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9405$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9407 CFLAGS="$xorg_testset_save_CFLAGS" 9408fi 9409 9410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9413 fi 9414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9416$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9417if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9418 $as_echo_n "(cached) " >&6 9419else 9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9421/* end confdefs.h. */ 9422int i; 9423_ACEOF 9424if ac_fn_c_try_compile "$LINENO"; then : 9425 xorg_cv_cc_flag_unused_command_line_argument=yes 9426else 9427 xorg_cv_cc_flag_unused_command_line_argument=no 9428fi 9429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9430fi 9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9432$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9434 CFLAGS="$xorg_testset_save_CFLAGS" 9435fi 9436 9437found="no" 9438 9439 if test $found = "no" ; then 9440 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9442 fi 9443 9444 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9446 fi 9447 9448 CFLAGS="$CFLAGS -Wwrite-strings" 9449 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9451$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9452 cacheid=xorg_cv_cc_flag__Wwrite_strings 9453 if eval \${$cacheid+:} false; then : 9454 $as_echo_n "(cached) " >&6 9455else 9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9457/* end confdefs.h. */ 9458int i; 9459int 9460main () 9461{ 9462 9463 ; 9464 return 0; 9465} 9466_ACEOF 9467if ac_fn_c_try_link "$LINENO"; then : 9468 eval $cacheid=yes 9469else 9470 eval $cacheid=no 9471fi 9472rm -f core conftest.err conftest.$ac_objext \ 9473 conftest$ac_exeext conftest.$ac_ext 9474fi 9475 9476 9477 CFLAGS="$xorg_testset_save_CFLAGS" 9478 9479 eval supported=\$$cacheid 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9481$as_echo "$supported" >&6; } 9482 if test "$supported" = "yes" ; then 9483 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9484 found="yes" 9485 fi 9486 fi 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502xorg_testset_save_CFLAGS="$CFLAGS" 9503 9504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9509 $as_echo_n "(cached) " >&6 9510else 9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9512/* end confdefs.h. */ 9513int i; 9514_ACEOF 9515if ac_fn_c_try_compile "$LINENO"; then : 9516 xorg_cv_cc_flag_unknown_warning_option=yes 9517else 9518 xorg_cv_cc_flag_unknown_warning_option=no 9519fi 9520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9521fi 9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9525 CFLAGS="$xorg_testset_save_CFLAGS" 9526fi 9527 9528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9531 fi 9532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9536 $as_echo_n "(cached) " >&6 9537else 9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539/* end confdefs.h. */ 9540int i; 9541_ACEOF 9542if ac_fn_c_try_compile "$LINENO"; then : 9543 xorg_cv_cc_flag_unused_command_line_argument=yes 9544else 9545 xorg_cv_cc_flag_unused_command_line_argument=no 9546fi 9547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9548fi 9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9552 CFLAGS="$xorg_testset_save_CFLAGS" 9553fi 9554 9555found="no" 9556 9557 if test $found = "no" ; then 9558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9560 fi 9561 9562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9564 fi 9565 9566 CFLAGS="$CFLAGS -Waddress" 9567 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9569$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9570 cacheid=xorg_cv_cc_flag__Waddress 9571 if eval \${$cacheid+:} false; then : 9572 $as_echo_n "(cached) " >&6 9573else 9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9575/* end confdefs.h. */ 9576int i; 9577int 9578main () 9579{ 9580 9581 ; 9582 return 0; 9583} 9584_ACEOF 9585if ac_fn_c_try_link "$LINENO"; then : 9586 eval $cacheid=yes 9587else 9588 eval $cacheid=no 9589fi 9590rm -f core conftest.err conftest.$ac_objext \ 9591 conftest$ac_exeext conftest.$ac_ext 9592fi 9593 9594 9595 CFLAGS="$xorg_testset_save_CFLAGS" 9596 9597 eval supported=\$$cacheid 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9599$as_echo "$supported" >&6; } 9600 if test "$supported" = "yes" ; then 9601 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9602 found="yes" 9603 fi 9604 fi 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620xorg_testset_save_CFLAGS="$CFLAGS" 9621 9622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9627 $as_echo_n "(cached) " >&6 9628else 9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630/* end confdefs.h. */ 9631int i; 9632_ACEOF 9633if ac_fn_c_try_compile "$LINENO"; then : 9634 xorg_cv_cc_flag_unknown_warning_option=yes 9635else 9636 xorg_cv_cc_flag_unknown_warning_option=no 9637fi 9638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9639fi 9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9643 CFLAGS="$xorg_testset_save_CFLAGS" 9644fi 9645 9646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9649 fi 9650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657/* end confdefs.h. */ 9658int i; 9659_ACEOF 9660if ac_fn_c_try_compile "$LINENO"; then : 9661 xorg_cv_cc_flag_unused_command_line_argument=yes 9662else 9663 xorg_cv_cc_flag_unused_command_line_argument=no 9664fi 9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9666fi 9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9670 CFLAGS="$xorg_testset_save_CFLAGS" 9671fi 9672 9673found="no" 9674 9675 if test $found = "no" ; then 9676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9678 fi 9679 9680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9682 fi 9683 9684 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9685 9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9687$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9688 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9689 if eval \${$cacheid+:} false; then : 9690 $as_echo_n "(cached) " >&6 9691else 9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9693/* end confdefs.h. */ 9694int i; 9695int 9696main () 9697{ 9698 9699 ; 9700 return 0; 9701} 9702_ACEOF 9703if ac_fn_c_try_link "$LINENO"; then : 9704 eval $cacheid=yes 9705else 9706 eval $cacheid=no 9707fi 9708rm -f core conftest.err conftest.$ac_objext \ 9709 conftest$ac_exeext conftest.$ac_ext 9710fi 9711 9712 9713 CFLAGS="$xorg_testset_save_CFLAGS" 9714 9715 eval supported=\$$cacheid 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9717$as_echo "$supported" >&6; } 9718 if test "$supported" = "yes" ; then 9719 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9720 found="yes" 9721 fi 9722 fi 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738xorg_testset_save_CFLAGS="$CFLAGS" 9739 9740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746else 9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9748/* end confdefs.h. */ 9749int i; 9750_ACEOF 9751if ac_fn_c_try_compile "$LINENO"; then : 9752 xorg_cv_cc_flag_unknown_warning_option=yes 9753else 9754 xorg_cv_cc_flag_unknown_warning_option=no 9755fi 9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9757fi 9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9761 CFLAGS="$xorg_testset_save_CFLAGS" 9762fi 9763 9764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9767 fi 9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775/* end confdefs.h. */ 9776int i; 9777_ACEOF 9778if ac_fn_c_try_compile "$LINENO"; then : 9779 xorg_cv_cc_flag_unused_command_line_argument=yes 9780else 9781 xorg_cv_cc_flag_unused_command_line_argument=no 9782fi 9783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9784fi 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9788 CFLAGS="$xorg_testset_save_CFLAGS" 9789fi 9790 9791found="no" 9792 9793 if test $found = "no" ; then 9794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9796 fi 9797 9798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9800 fi 9801 9802 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9803 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9805$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9806 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9807 if eval \${$cacheid+:} false; then : 9808 $as_echo_n "(cached) " >&6 9809else 9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9811/* end confdefs.h. */ 9812int i; 9813int 9814main () 9815{ 9816 9817 ; 9818 return 0; 9819} 9820_ACEOF 9821if ac_fn_c_try_link "$LINENO"; then : 9822 eval $cacheid=yes 9823else 9824 eval $cacheid=no 9825fi 9826rm -f core conftest.err conftest.$ac_objext \ 9827 conftest$ac_exeext conftest.$ac_ext 9828fi 9829 9830 9831 CFLAGS="$xorg_testset_save_CFLAGS" 9832 9833 eval supported=\$$cacheid 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9835$as_echo "$supported" >&6; } 9836 if test "$supported" = "yes" ; then 9837 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9838 found="yes" 9839 fi 9840 fi 9841 9842 9843fi 9844 9845 9846 9847 9848 9849 9850 9851 CWARNFLAGS="$BASE_CFLAGS" 9852 if test "x$GCC" = xyes ; then 9853 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9854 fi 9855 9856 9857 9858 9859 9860 9861 9862 9863# Check whether --enable-strict-compilation was given. 9864if test "${enable_strict_compilation+set}" = set; then : 9865 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9866else 9867 STRICT_COMPILE=no 9868fi 9869 9870 9871 9872 9873 9874 9875STRICT_CFLAGS="" 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889xorg_testset_save_CFLAGS="$CFLAGS" 9890 9891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9896 $as_echo_n "(cached) " >&6 9897else 9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9899/* end confdefs.h. */ 9900int i; 9901_ACEOF 9902if ac_fn_c_try_compile "$LINENO"; then : 9903 xorg_cv_cc_flag_unknown_warning_option=yes 9904else 9905 xorg_cv_cc_flag_unknown_warning_option=no 9906fi 9907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9908fi 9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9912 CFLAGS="$xorg_testset_save_CFLAGS" 9913fi 9914 9915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9918 fi 9919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9923 $as_echo_n "(cached) " >&6 9924else 9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9926/* end confdefs.h. */ 9927int i; 9928_ACEOF 9929if ac_fn_c_try_compile "$LINENO"; then : 9930 xorg_cv_cc_flag_unused_command_line_argument=yes 9931else 9932 xorg_cv_cc_flag_unused_command_line_argument=no 9933fi 9934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9935fi 9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9939 CFLAGS="$xorg_testset_save_CFLAGS" 9940fi 9941 9942found="no" 9943 9944 if test $found = "no" ; then 9945 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9947 fi 9948 9949 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9951 fi 9952 9953 CFLAGS="$CFLAGS -pedantic" 9954 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9956$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9957 cacheid=xorg_cv_cc_flag__pedantic 9958 if eval \${$cacheid+:} false; then : 9959 $as_echo_n "(cached) " >&6 9960else 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962/* end confdefs.h. */ 9963int i; 9964int 9965main () 9966{ 9967 9968 ; 9969 return 0; 9970} 9971_ACEOF 9972if ac_fn_c_try_link "$LINENO"; then : 9973 eval $cacheid=yes 9974else 9975 eval $cacheid=no 9976fi 9977rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext 9979fi 9980 9981 9982 CFLAGS="$xorg_testset_save_CFLAGS" 9983 9984 eval supported=\$$cacheid 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9986$as_echo "$supported" >&6; } 9987 if test "$supported" = "yes" ; then 9988 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9989 found="yes" 9990 fi 9991 fi 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007xorg_testset_save_CFLAGS="$CFLAGS" 10008 10009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10014 $as_echo_n "(cached) " >&6 10015else 10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017/* end confdefs.h. */ 10018int i; 10019_ACEOF 10020if ac_fn_c_try_compile "$LINENO"; then : 10021 xorg_cv_cc_flag_unknown_warning_option=yes 10022else 10023 xorg_cv_cc_flag_unknown_warning_option=no 10024fi 10025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10026fi 10027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10030 CFLAGS="$xorg_testset_save_CFLAGS" 10031fi 10032 10033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10036 fi 10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10041 $as_echo_n "(cached) " >&6 10042else 10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10044/* end confdefs.h. */ 10045int i; 10046_ACEOF 10047if ac_fn_c_try_compile "$LINENO"; then : 10048 xorg_cv_cc_flag_unused_command_line_argument=yes 10049else 10050 xorg_cv_cc_flag_unused_command_line_argument=no 10051fi 10052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10053fi 10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10057 CFLAGS="$xorg_testset_save_CFLAGS" 10058fi 10059 10060found="no" 10061 10062 if test $found = "no" ; then 10063 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10065 fi 10066 10067 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10069 fi 10070 10071 CFLAGS="$CFLAGS -Werror" 10072 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10074$as_echo_n "checking if $CC supports -Werror... " >&6; } 10075 cacheid=xorg_cv_cc_flag__Werror 10076 if eval \${$cacheid+:} false; then : 10077 $as_echo_n "(cached) " >&6 10078else 10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10080/* end confdefs.h. */ 10081int i; 10082int 10083main () 10084{ 10085 10086 ; 10087 return 0; 10088} 10089_ACEOF 10090if ac_fn_c_try_link "$LINENO"; then : 10091 eval $cacheid=yes 10092else 10093 eval $cacheid=no 10094fi 10095rm -f core conftest.err conftest.$ac_objext \ 10096 conftest$ac_exeext conftest.$ac_ext 10097fi 10098 10099 10100 CFLAGS="$xorg_testset_save_CFLAGS" 10101 10102 eval supported=\$$cacheid 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10104$as_echo "$supported" >&6; } 10105 if test "$supported" = "yes" ; then 10106 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10107 found="yes" 10108 fi 10109 fi 10110 10111 if test $found = "no" ; then 10112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10114 fi 10115 10116 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10118 fi 10119 10120 CFLAGS="$CFLAGS -errwarn" 10121 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10123$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10124 cacheid=xorg_cv_cc_flag__errwarn 10125 if eval \${$cacheid+:} false; then : 10126 $as_echo_n "(cached) " >&6 10127else 10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129/* end confdefs.h. */ 10130int i; 10131int 10132main () 10133{ 10134 10135 ; 10136 return 0; 10137} 10138_ACEOF 10139if ac_fn_c_try_link "$LINENO"; then : 10140 eval $cacheid=yes 10141else 10142 eval $cacheid=no 10143fi 10144rm -f core conftest.err conftest.$ac_objext \ 10145 conftest$ac_exeext conftest.$ac_ext 10146fi 10147 10148 10149 CFLAGS="$xorg_testset_save_CFLAGS" 10150 10151 eval supported=\$$cacheid 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10153$as_echo "$supported" >&6; } 10154 if test "$supported" = "yes" ; then 10155 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10156 found="yes" 10157 fi 10158 fi 10159 10160 10161 10162# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10163# activate it with -Werror, so we add it here explicitly. 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177xorg_testset_save_CFLAGS="$CFLAGS" 10178 10179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10184 $as_echo_n "(cached) " >&6 10185else 10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10187/* end confdefs.h. */ 10188int i; 10189_ACEOF 10190if ac_fn_c_try_compile "$LINENO"; then : 10191 xorg_cv_cc_flag_unknown_warning_option=yes 10192else 10193 xorg_cv_cc_flag_unknown_warning_option=no 10194fi 10195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10196fi 10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10200 CFLAGS="$xorg_testset_save_CFLAGS" 10201fi 10202 10203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10206 fi 10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10211 $as_echo_n "(cached) " >&6 10212else 10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214/* end confdefs.h. */ 10215int i; 10216_ACEOF 10217if ac_fn_c_try_compile "$LINENO"; then : 10218 xorg_cv_cc_flag_unused_command_line_argument=yes 10219else 10220 xorg_cv_cc_flag_unused_command_line_argument=no 10221fi 10222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10223fi 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10227 CFLAGS="$xorg_testset_save_CFLAGS" 10228fi 10229 10230found="no" 10231 10232 if test $found = "no" ; then 10233 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10235 fi 10236 10237 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10239 fi 10240 10241 CFLAGS="$CFLAGS -Werror=attributes" 10242 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10244$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10245 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10246 if eval \${$cacheid+:} false; then : 10247 $as_echo_n "(cached) " >&6 10248else 10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10250/* end confdefs.h. */ 10251int i; 10252int 10253main () 10254{ 10255 10256 ; 10257 return 0; 10258} 10259_ACEOF 10260if ac_fn_c_try_link "$LINENO"; then : 10261 eval $cacheid=yes 10262else 10263 eval $cacheid=no 10264fi 10265rm -f core conftest.err conftest.$ac_objext \ 10266 conftest$ac_exeext conftest.$ac_ext 10267fi 10268 10269 10270 CFLAGS="$xorg_testset_save_CFLAGS" 10271 10272 eval supported=\$$cacheid 10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10274$as_echo "$supported" >&6; } 10275 if test "$supported" = "yes" ; then 10276 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10277 found="yes" 10278 fi 10279 fi 10280 10281 10282 10283if test "x$STRICT_COMPILE" = "xyes"; then 10284 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10285 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10286fi 10287 10288 10289 10290 10291 10292 10293cat >>confdefs.h <<_ACEOF 10294#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10295_ACEOF 10296 10297 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10298 if test "x$PVM" = "x"; then 10299 PVM="0" 10300 fi 10301 10302cat >>confdefs.h <<_ACEOF 10303#define PACKAGE_VERSION_MINOR $PVM 10304_ACEOF 10305 10306 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10307 if test "x$PVP" = "x"; then 10308 PVP="0" 10309 fi 10310 10311cat >>confdefs.h <<_ACEOF 10312#define PACKAGE_VERSION_PATCHLEVEL $PVP 10313_ACEOF 10314 10315 10316 10317CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10318mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10319|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10320echo 'git directory not found: installing possibly empty changelog.' >&2)" 10321 10322 10323 10324 10325macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10326INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10327mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10328|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10329echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10330 10331 10332 10333 10334 10335 10336if test x$APP_MAN_SUFFIX = x ; then 10337 APP_MAN_SUFFIX=1 10338fi 10339if test x$APP_MAN_DIR = x ; then 10340 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10341fi 10342 10343if test x$LIB_MAN_SUFFIX = x ; then 10344 LIB_MAN_SUFFIX=3 10345fi 10346if test x$LIB_MAN_DIR = x ; then 10347 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10348fi 10349 10350if test x$FILE_MAN_SUFFIX = x ; then 10351 case $host_os in 10352 solaris*) FILE_MAN_SUFFIX=4 ;; 10353 *) FILE_MAN_SUFFIX=5 ;; 10354 esac 10355fi 10356if test x$FILE_MAN_DIR = x ; then 10357 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10358fi 10359 10360if test x$MISC_MAN_SUFFIX = x ; then 10361 case $host_os in 10362 solaris*) MISC_MAN_SUFFIX=5 ;; 10363 *) MISC_MAN_SUFFIX=7 ;; 10364 esac 10365fi 10366if test x$MISC_MAN_DIR = x ; then 10367 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10368fi 10369 10370if test x$DRIVER_MAN_SUFFIX = x ; then 10371 case $host_os in 10372 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10373 *) DRIVER_MAN_SUFFIX=4 ;; 10374 esac 10375fi 10376if test x$DRIVER_MAN_DIR = x ; then 10377 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10378fi 10379 10380if test x$ADMIN_MAN_SUFFIX = x ; then 10381 case $host_os in 10382 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10383 *) ADMIN_MAN_SUFFIX=8 ;; 10384 esac 10385fi 10386if test x$ADMIN_MAN_DIR = x ; then 10387 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10388fi 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404XORG_MAN_PAGE="X Version 11" 10405 10406MAN_SUBSTS="\ 10407 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10408 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10409 -e 's|__xservername__|Xorg|g' \ 10410 -e 's|__xconfigfile__|xorg.conf|g' \ 10411 -e 's|__projectroot__|\$(prefix)|g' \ 10412 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10413 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10414 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10415 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10416 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10417 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10418 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10419 10420 10421 10422# Check whether --enable-silent-rules was given. 10423if test "${enable_silent_rules+set}" = set; then : 10424 enableval=$enable_silent_rules; 10425fi 10426 10427case $enable_silent_rules in # ((( 10428 yes) AM_DEFAULT_VERBOSITY=0;; 10429 no) AM_DEFAULT_VERBOSITY=1;; 10430 *) AM_DEFAULT_VERBOSITY=0;; 10431esac 10432am_make=${MAKE-make} 10433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10434$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10435if ${am_cv_make_support_nested_variables+:} false; then : 10436 $as_echo_n "(cached) " >&6 10437else 10438 if $as_echo 'TRUE=$(BAR$(V)) 10439BAR0=false 10440BAR1=true 10441V=1 10442am__doit: 10443 @$(TRUE) 10444.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10445 am_cv_make_support_nested_variables=yes 10446else 10447 am_cv_make_support_nested_variables=no 10448fi 10449fi 10450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10451$as_echo "$am_cv_make_support_nested_variables" >&6; } 10452if test $am_cv_make_support_nested_variables = yes; then 10453 AM_V='$(V)' 10454 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10455else 10456 AM_V=$AM_DEFAULT_VERBOSITY 10457 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10458fi 10459AM_BACKSLASH='\' 10460 10461 10462 10463ac_config_headers="$ac_config_headers config.h" 10464 10465 10466 10467pkg_failed=no 10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONTSEL" >&5 10469$as_echo_n "checking for XFONTSEL... " >&6; } 10470 10471if test -n "$XFONTSEL_CFLAGS"; then 10472 pkg_cv_XFONTSEL_CFLAGS="$XFONTSEL_CFLAGS" 10473 elif test -n "$PKG_CONFIG"; then 10474 if test -n "$PKG_CONFIG" && \ 10475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 10476 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 10477 ac_status=$? 10478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10479 test $ac_status = 0; }; then 10480 pkg_cv_XFONTSEL_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null` 10481else 10482 pkg_failed=yes 10483fi 10484 else 10485 pkg_failed=untried 10486fi 10487if test -n "$XFONTSEL_LIBS"; then 10488 pkg_cv_XFONTSEL_LIBS="$XFONTSEL_LIBS" 10489 elif test -n "$PKG_CONFIG"; then 10490 if test -n "$PKG_CONFIG" && \ 10491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 10492 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 10493 ac_status=$? 10494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10495 test $ac_status = 0; }; then 10496 pkg_cv_XFONTSEL_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null` 10497else 10498 pkg_failed=yes 10499fi 10500 else 10501 pkg_failed=untried 10502fi 10503 10504 10505 10506if test $pkg_failed = yes; then 10507 10508if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10509 _pkg_short_errors_supported=yes 10510else 10511 _pkg_short_errors_supported=no 10512fi 10513 if test $_pkg_short_errors_supported = yes; then 10514 XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11" 2>&1` 10515 else 10516 XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11" 2>&1` 10517 fi 10518 # Put the nasty error message in config.log where it belongs 10519 echo "$XFONTSEL_PKG_ERRORS" >&5 10520 10521 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met: 10522 10523$XFONTSEL_PKG_ERRORS 10524 10525Consider adjusting the PKG_CONFIG_PATH environment variable if you 10526installed software in a non-standard prefix. 10527 10528Alternatively, you may set the environment variables XFONTSEL_CFLAGS 10529and XFONTSEL_LIBS to avoid the need to call pkg-config. 10530See the pkg-config man page for more details. 10531" "$LINENO" 5 10532elif test $pkg_failed = untried; then 10533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10535as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10536is in your PATH or set the PKG_CONFIG environment variable to the full 10537path to pkg-config. 10538 10539Alternatively, you may set the environment variables XFONTSEL_CFLAGS 10540and XFONTSEL_LIBS to avoid the need to call pkg-config. 10541See the pkg-config man page for more details. 10542 10543To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10544See \`config.log' for more details" "$LINENO" 5; } 10545else 10546 XFONTSEL_CFLAGS=$pkg_cv_XFONTSEL_CFLAGS 10547 XFONTSEL_LIBS=$pkg_cv_XFONTSEL_LIBS 10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10549$as_echo "yes" >&6; } 10550 : 10551fi 10552 10553 10554pkg_failed=no 10555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 10556$as_echo_n "checking for APPDEFS... " >&6; } 10557 10558if test -n "$APPDEFS_CFLAGS"; then 10559 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 10560 elif test -n "$PKG_CONFIG"; then 10561 if test -n "$PKG_CONFIG" && \ 10562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10563 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10564 ac_status=$? 10565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10566 test $ac_status = 0; }; then 10567 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 10568else 10569 pkg_failed=yes 10570fi 10571 else 10572 pkg_failed=untried 10573fi 10574if test -n "$APPDEFS_LIBS"; then 10575 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 10576 elif test -n "$PKG_CONFIG"; then 10577 if test -n "$PKG_CONFIG" && \ 10578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10579 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10580 ac_status=$? 10581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10582 test $ac_status = 0; }; then 10583 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 10584else 10585 pkg_failed=yes 10586fi 10587 else 10588 pkg_failed=untried 10589fi 10590 10591 10592 10593if test $pkg_failed = yes; then 10594 10595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10596 _pkg_short_errors_supported=yes 10597else 10598 _pkg_short_errors_supported=no 10599fi 10600 if test $_pkg_short_errors_supported = yes; then 10601 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 10602 else 10603 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 10604 fi 10605 # Put the nasty error message in config.log where it belongs 10606 echo "$APPDEFS_PKG_ERRORS" >&5 10607 10608 as_fn_error $? "Package requirements (xt) were not met: 10609 10610$APPDEFS_PKG_ERRORS 10611 10612Consider adjusting the PKG_CONFIG_PATH environment variable if you 10613installed software in a non-standard prefix. 10614 10615Alternatively, you may set the environment variables APPDEFS_CFLAGS 10616and APPDEFS_LIBS to avoid the need to call pkg-config. 10617See the pkg-config man page for more details. 10618" "$LINENO" 5 10619elif test $pkg_failed = untried; then 10620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10622as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10623is in your PATH or set the PKG_CONFIG environment variable to the full 10624path to pkg-config. 10625 10626Alternatively, you may set the environment variables APPDEFS_CFLAGS 10627and APPDEFS_LIBS to avoid the need to call pkg-config. 10628See the pkg-config man page for more details. 10629 10630To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10631See \`config.log' for more details" "$LINENO" 5; } 10632else 10633 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 10634 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10636$as_echo "yes" >&6; } 10637 : 10638fi 10639xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10640 10641# Check whether --with-appdefaultdir was given. 10642if test "${with_appdefaultdir+set}" = set; then : 10643 withval=$with_appdefaultdir; appdefaultdir="$withval" 10644else 10645 appdefaultdir="${xt_appdefaultdir}" 10646fi 10647 10648 10649 10650 10651ac_config_files="$ac_config_files Makefile man/Makefile" 10652 10653cat >confcache <<\_ACEOF 10654# This file is a shell script that caches the results of configure 10655# tests run on this system so they can be shared between configure 10656# scripts and configure runs, see configure's option --config-cache. 10657# It is not useful on other systems. If it contains results you don't 10658# want to keep, you may remove or edit it. 10659# 10660# config.status only pays attention to the cache file if you give it 10661# the --recheck option to rerun configure. 10662# 10663# `ac_cv_env_foo' variables (set or unset) will be overridden when 10664# loading this file, other *unset* `ac_cv_foo' will be assigned the 10665# following values. 10666 10667_ACEOF 10668 10669# The following way of writing the cache mishandles newlines in values, 10670# but we know of no workaround that is simple, portable, and efficient. 10671# So, we kill variables containing newlines. 10672# Ultrix sh set writes to stderr and can't be redirected directly, 10673# and sets the high bit in the cache file unless we assign to the vars. 10674( 10675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10676 eval ac_val=\$$ac_var 10677 case $ac_val in #( 10678 *${as_nl}*) 10679 case $ac_var in #( 10680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10681$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10682 esac 10683 case $ac_var in #( 10684 _ | IFS | as_nl) ;; #( 10685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10686 *) { eval $ac_var=; unset $ac_var;} ;; 10687 esac ;; 10688 esac 10689 done 10690 10691 (set) 2>&1 | 10692 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10693 *${as_nl}ac_space=\ *) 10694 # `set' does not quote correctly, so add quotes: double-quote 10695 # substitution turns \\\\ into \\, and sed turns \\ into \. 10696 sed -n \ 10697 "s/'/'\\\\''/g; 10698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10699 ;; #( 10700 *) 10701 # `set' quotes correctly as required by POSIX, so do not add quotes. 10702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10703 ;; 10704 esac | 10705 sort 10706) | 10707 sed ' 10708 /^ac_cv_env_/b end 10709 t clear 10710 :clear 10711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10712 t end 10713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10714 :end' >>confcache 10715if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10716 if test -w "$cache_file"; then 10717 if test "x$cache_file" != "x/dev/null"; then 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10719$as_echo "$as_me: updating cache $cache_file" >&6;} 10720 if test ! -f "$cache_file" || test -h "$cache_file"; then 10721 cat confcache >"$cache_file" 10722 else 10723 case $cache_file in #( 10724 */* | ?:*) 10725 mv -f confcache "$cache_file"$$ && 10726 mv -f "$cache_file"$$ "$cache_file" ;; #( 10727 *) 10728 mv -f confcache "$cache_file" ;; 10729 esac 10730 fi 10731 fi 10732 else 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10734$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10735 fi 10736fi 10737rm -f confcache 10738 10739test "x$prefix" = xNONE && prefix=$ac_default_prefix 10740# Let make expand exec_prefix. 10741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10742 10743DEFS=-DHAVE_CONFIG_H 10744 10745ac_libobjs= 10746ac_ltlibobjs= 10747U= 10748for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10749 # 1. Remove the extension, and $U if already installed. 10750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10753 # will be set to the directory where LIBOBJS objects are built. 10754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10756done 10757LIBOBJS=$ac_libobjs 10758 10759LTLIBOBJS=$ac_ltlibobjs 10760 10761 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10763$as_echo_n "checking that generated files are newer than configure... " >&6; } 10764 if test -n "$am_sleep_pid"; then 10765 # Hide warnings about reused PIDs. 10766 wait $am_sleep_pid 2>/dev/null 10767 fi 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10769$as_echo "done" >&6; } 10770 if test -n "$EXEEXT"; then 10771 am__EXEEXT_TRUE= 10772 am__EXEEXT_FALSE='#' 10773else 10774 am__EXEEXT_TRUE='#' 10775 am__EXEEXT_FALSE= 10776fi 10777 10778if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10779 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10780Usually this means the macro was only invoked conditionally." "$LINENO" 5 10781fi 10782if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10783 as_fn_error $? "conditional \"AMDEP\" was never defined. 10784Usually this means the macro was only invoked conditionally." "$LINENO" 5 10785fi 10786if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10787 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10788Usually this means the macro was only invoked conditionally." "$LINENO" 5 10789fi 10790 10791: "${CONFIG_STATUS=./config.status}" 10792ac_write_fail=0 10793ac_clean_files_save=$ac_clean_files 10794ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10795{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10796$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10797as_write_fail=0 10798cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10799#! $SHELL 10800# Generated by $as_me. 10801# Run this file to recreate the current configuration. 10802# Compiler output produced by configure, useful for debugging 10803# configure, is in config.log if it exists. 10804 10805debug=false 10806ac_cs_recheck=false 10807ac_cs_silent=false 10808 10809SHELL=\${CONFIG_SHELL-$SHELL} 10810export SHELL 10811_ASEOF 10812cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10813## -------------------- ## 10814## M4sh Initialization. ## 10815## -------------------- ## 10816 10817# Be more Bourne compatible 10818DUALCASE=1; export DUALCASE # for MKS sh 10819if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10820 emulate sh 10821 NULLCMD=: 10822 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10823 # is contrary to our usage. Disable this feature. 10824 alias -g '${1+"$@"}'='"$@"' 10825 setopt NO_GLOB_SUBST 10826else 10827 case `(set -o) 2>/dev/null` in #( 10828 *posix*) : 10829 set -o posix ;; #( 10830 *) : 10831 ;; 10832esac 10833fi 10834 10835 10836as_nl=' 10837' 10838export as_nl 10839# Printing a long string crashes Solaris 7 /usr/bin/printf. 10840as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10841as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10843# Prefer a ksh shell builtin over an external printf program on Solaris, 10844# but without wasting forks for bash or zsh. 10845if test -z "$BASH_VERSION$ZSH_VERSION" \ 10846 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10847 as_echo='print -r --' 10848 as_echo_n='print -rn --' 10849elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10850 as_echo='printf %s\n' 10851 as_echo_n='printf %s' 10852else 10853 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10854 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10855 as_echo_n='/usr/ucb/echo -n' 10856 else 10857 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10858 as_echo_n_body='eval 10859 arg=$1; 10860 case $arg in #( 10861 *"$as_nl"*) 10862 expr "X$arg" : "X\\(.*\\)$as_nl"; 10863 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10864 esac; 10865 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10866 ' 10867 export as_echo_n_body 10868 as_echo_n='sh -c $as_echo_n_body as_echo' 10869 fi 10870 export as_echo_body 10871 as_echo='sh -c $as_echo_body as_echo' 10872fi 10873 10874# The user is always right. 10875if test "${PATH_SEPARATOR+set}" != set; then 10876 PATH_SEPARATOR=: 10877 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10878 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10879 PATH_SEPARATOR=';' 10880 } 10881fi 10882 10883 10884# IFS 10885# We need space, tab and new line, in precisely that order. Quoting is 10886# there to prevent editors from complaining about space-tab. 10887# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10888# splitting by setting IFS to empty value.) 10889IFS=" "" $as_nl" 10890 10891# Find who we are. Look in the path if we contain no directory separator. 10892as_myself= 10893case $0 in #(( 10894 *[\\/]* ) as_myself=$0 ;; 10895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10896for as_dir in $PATH 10897do 10898 IFS=$as_save_IFS 10899 test -z "$as_dir" && as_dir=. 10900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10901 done 10902IFS=$as_save_IFS 10903 10904 ;; 10905esac 10906# We did not find ourselves, most probably we were run as `sh COMMAND' 10907# in which case we are not to be found in the path. 10908if test "x$as_myself" = x; then 10909 as_myself=$0 10910fi 10911if test ! -f "$as_myself"; then 10912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10913 exit 1 10914fi 10915 10916# Unset variables that we do not need and which cause bugs (e.g. in 10917# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10918# suppresses any "Segmentation fault" message there. '((' could 10919# trigger a bug in pdksh 5.2.14. 10920for as_var in BASH_ENV ENV MAIL MAILPATH 10921do eval test x\${$as_var+set} = xset \ 10922 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10923done 10924PS1='$ ' 10925PS2='> ' 10926PS4='+ ' 10927 10928# NLS nuisances. 10929LC_ALL=C 10930export LC_ALL 10931LANGUAGE=C 10932export LANGUAGE 10933 10934# CDPATH. 10935(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10936 10937 10938# as_fn_error STATUS ERROR [LINENO LOG_FD] 10939# ---------------------------------------- 10940# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10941# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10942# script with STATUS, using 1 if that was 0. 10943as_fn_error () 10944{ 10945 as_status=$1; test $as_status -eq 0 && as_status=1 10946 if test "$4"; then 10947 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10949 fi 10950 $as_echo "$as_me: error: $2" >&2 10951 as_fn_exit $as_status 10952} # as_fn_error 10953 10954 10955# as_fn_set_status STATUS 10956# ----------------------- 10957# Set $? to STATUS, without forking. 10958as_fn_set_status () 10959{ 10960 return $1 10961} # as_fn_set_status 10962 10963# as_fn_exit STATUS 10964# ----------------- 10965# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10966as_fn_exit () 10967{ 10968 set +e 10969 as_fn_set_status $1 10970 exit $1 10971} # as_fn_exit 10972 10973# as_fn_unset VAR 10974# --------------- 10975# Portably unset VAR. 10976as_fn_unset () 10977{ 10978 { eval $1=; unset $1;} 10979} 10980as_unset=as_fn_unset 10981# as_fn_append VAR VALUE 10982# ---------------------- 10983# Append the text in VALUE to the end of the definition contained in VAR. Take 10984# advantage of any shell optimizations that allow amortized linear growth over 10985# repeated appends, instead of the typical quadratic growth present in naive 10986# implementations. 10987if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10988 eval 'as_fn_append () 10989 { 10990 eval $1+=\$2 10991 }' 10992else 10993 as_fn_append () 10994 { 10995 eval $1=\$$1\$2 10996 } 10997fi # as_fn_append 10998 10999# as_fn_arith ARG... 11000# ------------------ 11001# Perform arithmetic evaluation on the ARGs, and store the result in the 11002# global $as_val. Take advantage of shells that can avoid forks. The arguments 11003# must be portable across $(()) and expr. 11004if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11005 eval 'as_fn_arith () 11006 { 11007 as_val=$(( $* )) 11008 }' 11009else 11010 as_fn_arith () 11011 { 11012 as_val=`expr "$@" || test $? -eq 1` 11013 } 11014fi # as_fn_arith 11015 11016 11017if expr a : '\(a\)' >/dev/null 2>&1 && 11018 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11019 as_expr=expr 11020else 11021 as_expr=false 11022fi 11023 11024if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11025 as_basename=basename 11026else 11027 as_basename=false 11028fi 11029 11030if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11031 as_dirname=dirname 11032else 11033 as_dirname=false 11034fi 11035 11036as_me=`$as_basename -- "$0" || 11037$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11038 X"$0" : 'X\(//\)$' \| \ 11039 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11040$as_echo X/"$0" | 11041 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11042 s//\1/ 11043 q 11044 } 11045 /^X\/\(\/\/\)$/{ 11046 s//\1/ 11047 q 11048 } 11049 /^X\/\(\/\).*/{ 11050 s//\1/ 11051 q 11052 } 11053 s/.*/./; q'` 11054 11055# Avoid depending upon Character Ranges. 11056as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11057as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11058as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11059as_cr_digits='0123456789' 11060as_cr_alnum=$as_cr_Letters$as_cr_digits 11061 11062ECHO_C= ECHO_N= ECHO_T= 11063case `echo -n x` in #((((( 11064-n*) 11065 case `echo 'xy\c'` in 11066 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11067 xy) ECHO_C='\c';; 11068 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11069 ECHO_T=' ';; 11070 esac;; 11071*) 11072 ECHO_N='-n';; 11073esac 11074 11075rm -f conf$$ conf$$.exe conf$$.file 11076if test -d conf$$.dir; then 11077 rm -f conf$$.dir/conf$$.file 11078else 11079 rm -f conf$$.dir 11080 mkdir conf$$.dir 2>/dev/null 11081fi 11082if (echo >conf$$.file) 2>/dev/null; then 11083 if ln -s conf$$.file conf$$ 2>/dev/null; then 11084 as_ln_s='ln -s' 11085 # ... but there are two gotchas: 11086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11088 # In both cases, we have to default to `cp -p'. 11089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11090 as_ln_s='cp -p' 11091 elif ln conf$$.file conf$$ 2>/dev/null; then 11092 as_ln_s=ln 11093 else 11094 as_ln_s='cp -p' 11095 fi 11096else 11097 as_ln_s='cp -p' 11098fi 11099rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11100rmdir conf$$.dir 2>/dev/null 11101 11102 11103# as_fn_mkdir_p 11104# ------------- 11105# Create "$as_dir" as a directory, including parents if necessary. 11106as_fn_mkdir_p () 11107{ 11108 11109 case $as_dir in #( 11110 -*) as_dir=./$as_dir;; 11111 esac 11112 test -d "$as_dir" || eval $as_mkdir_p || { 11113 as_dirs= 11114 while :; do 11115 case $as_dir in #( 11116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11117 *) as_qdir=$as_dir;; 11118 esac 11119 as_dirs="'$as_qdir' $as_dirs" 11120 as_dir=`$as_dirname -- "$as_dir" || 11121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11122 X"$as_dir" : 'X\(//\)[^/]' \| \ 11123 X"$as_dir" : 'X\(//\)$' \| \ 11124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11125$as_echo X"$as_dir" | 11126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11127 s//\1/ 11128 q 11129 } 11130 /^X\(\/\/\)[^/].*/{ 11131 s//\1/ 11132 q 11133 } 11134 /^X\(\/\/\)$/{ 11135 s//\1/ 11136 q 11137 } 11138 /^X\(\/\).*/{ 11139 s//\1/ 11140 q 11141 } 11142 s/.*/./; q'` 11143 test -d "$as_dir" && break 11144 done 11145 test -z "$as_dirs" || eval "mkdir $as_dirs" 11146 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11147 11148 11149} # as_fn_mkdir_p 11150if mkdir -p . 2>/dev/null; then 11151 as_mkdir_p='mkdir -p "$as_dir"' 11152else 11153 test -d ./-p && rmdir ./-p 11154 as_mkdir_p=false 11155fi 11156 11157if test -x / >/dev/null 2>&1; then 11158 as_test_x='test -x' 11159else 11160 if ls -dL / >/dev/null 2>&1; then 11161 as_ls_L_option=L 11162 else 11163 as_ls_L_option= 11164 fi 11165 as_test_x=' 11166 eval sh -c '\'' 11167 if test -d "$1"; then 11168 test -d "$1/."; 11169 else 11170 case $1 in #( 11171 -*)set "./$1";; 11172 esac; 11173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11174 ???[sx]*):;;*)false;;esac;fi 11175 '\'' sh 11176 ' 11177fi 11178as_executable_p=$as_test_x 11179 11180# Sed expression to map a string onto a valid CPP name. 11181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11182 11183# Sed expression to map a string onto a valid variable name. 11184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11185 11186 11187exec 6>&1 11188## ----------------------------------- ## 11189## Main body of $CONFIG_STATUS script. ## 11190## ----------------------------------- ## 11191_ASEOF 11192test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11193 11194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11195# Save the log message, to keep $0 and so on meaningful, and to 11196# report actual input values of CONFIG_FILES etc. instead of their 11197# values after options handling. 11198ac_log=" 11199This file was extended by xfontsel $as_me 1.0.5, which was 11200generated by GNU Autoconf 2.68. Invocation command line was 11201 11202 CONFIG_FILES = $CONFIG_FILES 11203 CONFIG_HEADERS = $CONFIG_HEADERS 11204 CONFIG_LINKS = $CONFIG_LINKS 11205 CONFIG_COMMANDS = $CONFIG_COMMANDS 11206 $ $0 $@ 11207 11208on `(hostname || uname -n) 2>/dev/null | sed 1q` 11209" 11210 11211_ACEOF 11212 11213case $ac_config_files in *" 11214"*) set x $ac_config_files; shift; ac_config_files=$*;; 11215esac 11216 11217case $ac_config_headers in *" 11218"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11219esac 11220 11221 11222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11223# Files that config.status was made for. 11224config_files="$ac_config_files" 11225config_headers="$ac_config_headers" 11226config_commands="$ac_config_commands" 11227 11228_ACEOF 11229 11230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11231ac_cs_usage="\ 11232\`$as_me' instantiates files and other configuration actions 11233from templates according to the current configuration. Unless the files 11234and actions are specified as TAGs, all are instantiated by default. 11235 11236Usage: $0 [OPTION]... [TAG]... 11237 11238 -h, --help print this help, then exit 11239 -V, --version print version number and configuration settings, then exit 11240 --config print configuration, then exit 11241 -q, --quiet, --silent 11242 do not print progress messages 11243 -d, --debug don't remove temporary files 11244 --recheck update $as_me by reconfiguring in the same conditions 11245 --file=FILE[:TEMPLATE] 11246 instantiate the configuration file FILE 11247 --header=FILE[:TEMPLATE] 11248 instantiate the configuration header FILE 11249 11250Configuration files: 11251$config_files 11252 11253Configuration headers: 11254$config_headers 11255 11256Configuration commands: 11257$config_commands 11258 11259Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11260 11261_ACEOF 11262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11263ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11264ac_cs_version="\\ 11265xfontsel config.status 1.0.5 11266configured by $0, generated by GNU Autoconf 2.68, 11267 with options \\"\$ac_cs_config\\" 11268 11269Copyright (C) 2010 Free Software Foundation, Inc. 11270This config.status script is free software; the Free Software Foundation 11271gives unlimited permission to copy, distribute and modify it." 11272 11273ac_pwd='$ac_pwd' 11274srcdir='$srcdir' 11275INSTALL='$INSTALL' 11276MKDIR_P='$MKDIR_P' 11277AWK='$AWK' 11278test -n "\$AWK" || AWK=awk 11279_ACEOF 11280 11281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11282# The default lists apply if the user does not specify any file. 11283ac_need_defaults=: 11284while test $# != 0 11285do 11286 case $1 in 11287 --*=?*) 11288 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11289 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11290 ac_shift=: 11291 ;; 11292 --*=) 11293 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11294 ac_optarg= 11295 ac_shift=: 11296 ;; 11297 *) 11298 ac_option=$1 11299 ac_optarg=$2 11300 ac_shift=shift 11301 ;; 11302 esac 11303 11304 case $ac_option in 11305 # Handling of the options. 11306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11307 ac_cs_recheck=: ;; 11308 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11309 $as_echo "$ac_cs_version"; exit ;; 11310 --config | --confi | --conf | --con | --co | --c ) 11311 $as_echo "$ac_cs_config"; exit ;; 11312 --debug | --debu | --deb | --de | --d | -d ) 11313 debug=: ;; 11314 --file | --fil | --fi | --f ) 11315 $ac_shift 11316 case $ac_optarg in 11317 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11318 '') as_fn_error $? "missing file argument" ;; 11319 esac 11320 as_fn_append CONFIG_FILES " '$ac_optarg'" 11321 ac_need_defaults=false;; 11322 --header | --heade | --head | --hea ) 11323 $ac_shift 11324 case $ac_optarg in 11325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11326 esac 11327 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11328 ac_need_defaults=false;; 11329 --he | --h) 11330 # Conflict between --help and --header 11331 as_fn_error $? "ambiguous option: \`$1' 11332Try \`$0 --help' for more information.";; 11333 --help | --hel | -h ) 11334 $as_echo "$ac_cs_usage"; exit ;; 11335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11336 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11337 ac_cs_silent=: ;; 11338 11339 # This is an error. 11340 -*) as_fn_error $? "unrecognized option: \`$1' 11341Try \`$0 --help' for more information." ;; 11342 11343 *) as_fn_append ac_config_targets " $1" 11344 ac_need_defaults=false ;; 11345 11346 esac 11347 shift 11348done 11349 11350ac_configure_extra_args= 11351 11352if $ac_cs_silent; then 11353 exec 6>/dev/null 11354 ac_configure_extra_args="$ac_configure_extra_args --silent" 11355fi 11356 11357_ACEOF 11358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11359if \$ac_cs_recheck; then 11360 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11361 shift 11362 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11363 CONFIG_SHELL='$SHELL' 11364 export CONFIG_SHELL 11365 exec "\$@" 11366fi 11367 11368_ACEOF 11369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11370exec 5>>config.log 11371{ 11372 echo 11373 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11374## Running $as_me. ## 11375_ASBOX 11376 $as_echo "$ac_log" 11377} >&5 11378 11379_ACEOF 11380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11381# 11382# INIT-COMMANDS 11383# 11384AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11385 11386_ACEOF 11387 11388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11389 11390# Handling of arguments. 11391for ac_config_target in $ac_config_targets 11392do 11393 case $ac_config_target in 11394 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11395 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11396 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11397 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11398 11399 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11400 esac 11401done 11402 11403 11404# If the user did not use the arguments to specify the items to instantiate, 11405# then the envvar interface is used. Set only those that are not. 11406# We use the long form for the default assignment because of an extremely 11407# bizarre bug on SunOS 4.1.3. 11408if $ac_need_defaults; then 11409 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11410 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11412fi 11413 11414# Have a temporary directory for convenience. Make it in the build tree 11415# simply because there is no reason against having it here, and in addition, 11416# creating and moving files from /tmp can sometimes cause problems. 11417# Hook for its removal unless debugging. 11418# Note that there is a small window in which the directory will not be cleaned: 11419# after its creation but before its name has been assigned to `$tmp'. 11420$debug || 11421{ 11422 tmp= ac_tmp= 11423 trap 'exit_status=$? 11424 : "${ac_tmp:=$tmp}" 11425 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11426' 0 11427 trap 'as_fn_exit 1' 1 2 13 15 11428} 11429# Create a (secure) tmp directory for tmp files. 11430 11431{ 11432 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11433 test -d "$tmp" 11434} || 11435{ 11436 tmp=./conf$$-$RANDOM 11437 (umask 077 && mkdir "$tmp") 11438} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11439ac_tmp=$tmp 11440 11441# Set up the scripts for CONFIG_FILES section. 11442# No need to generate them if there are no CONFIG_FILES. 11443# This happens for instance with `./config.status config.h'. 11444if test -n "$CONFIG_FILES"; then 11445 11446 11447ac_cr=`echo X | tr X '\015'` 11448# On cygwin, bash can eat \r inside `` if the user requested igncr. 11449# But we know of no other shell where ac_cr would be empty at this 11450# point, so we can use a bashism as a fallback. 11451if test "x$ac_cr" = x; then 11452 eval ac_cr=\$\'\\r\' 11453fi 11454ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11455if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11456 ac_cs_awk_cr='\\r' 11457else 11458 ac_cs_awk_cr=$ac_cr 11459fi 11460 11461echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11462_ACEOF 11463 11464 11465{ 11466 echo "cat >conf$$subs.awk <<_ACEOF" && 11467 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11468 echo "_ACEOF" 11469} >conf$$subs.sh || 11470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11471ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11472ac_delim='%!_!# ' 11473for ac_last_try in false false false false false :; do 11474 . ./conf$$subs.sh || 11475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11476 11477 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11478 if test $ac_delim_n = $ac_delim_num; then 11479 break 11480 elif $ac_last_try; then 11481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11482 else 11483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11484 fi 11485done 11486rm -f conf$$subs.sh 11487 11488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11489cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11490_ACEOF 11491sed -n ' 11492h 11493s/^/S["/; s/!.*/"]=/ 11494p 11495g 11496s/^[^!]*!// 11497:repl 11498t repl 11499s/'"$ac_delim"'$// 11500t delim 11501:nl 11502h 11503s/\(.\{148\}\)..*/\1/ 11504t more1 11505s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11506p 11507n 11508b repl 11509:more1 11510s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11511p 11512g 11513s/.\{148\}// 11514t nl 11515:delim 11516h 11517s/\(.\{148\}\)..*/\1/ 11518t more2 11519s/["\\]/\\&/g; s/^/"/; s/$/"/ 11520p 11521b 11522:more2 11523s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11524p 11525g 11526s/.\{148\}// 11527t delim 11528' <conf$$subs.awk | sed ' 11529/^[^""]/{ 11530 N 11531 s/\n// 11532} 11533' >>$CONFIG_STATUS || ac_write_fail=1 11534rm -f conf$$subs.awk 11535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11536_ACAWK 11537cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11538 for (key in S) S_is_set[key] = 1 11539 FS = "" 11540 11541} 11542{ 11543 line = $ 0 11544 nfields = split(line, field, "@") 11545 substed = 0 11546 len = length(field[1]) 11547 for (i = 2; i < nfields; i++) { 11548 key = field[i] 11549 keylen = length(key) 11550 if (S_is_set[key]) { 11551 value = S[key] 11552 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11553 len += length(value) + length(field[++i]) 11554 substed = 1 11555 } else 11556 len += 1 + keylen 11557 } 11558 11559 print line 11560} 11561 11562_ACAWK 11563_ACEOF 11564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11565if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11567else 11568 cat 11569fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11570 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11571_ACEOF 11572 11573# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11574# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11575# trailing colons and then remove the whole line if VPATH becomes empty 11576# (actually we leave an empty line to preserve line numbers). 11577if test "x$srcdir" = x.; then 11578 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11579h 11580s/// 11581s/^/:/ 11582s/[ ]*$/:/ 11583s/:\$(srcdir):/:/g 11584s/:\${srcdir}:/:/g 11585s/:@srcdir@:/:/g 11586s/^:*// 11587s/:*$// 11588x 11589s/\(=[ ]*\).*/\1/ 11590G 11591s/\n// 11592s/^[^=]*=[ ]*$// 11593}' 11594fi 11595 11596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11597fi # test -n "$CONFIG_FILES" 11598 11599# Set up the scripts for CONFIG_HEADERS section. 11600# No need to generate them if there are no CONFIG_HEADERS. 11601# This happens for instance with `./config.status Makefile'. 11602if test -n "$CONFIG_HEADERS"; then 11603cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11604BEGIN { 11605_ACEOF 11606 11607# Transform confdefs.h into an awk script `defines.awk', embedded as 11608# here-document in config.status, that substitutes the proper values into 11609# config.h.in to produce config.h. 11610 11611# Create a delimiter string that does not exist in confdefs.h, to ease 11612# handling of long lines. 11613ac_delim='%!_!# ' 11614for ac_last_try in false false :; do 11615 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11616 if test -z "$ac_tt"; then 11617 break 11618 elif $ac_last_try; then 11619 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11620 else 11621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11622 fi 11623done 11624 11625# For the awk script, D is an array of macro values keyed by name, 11626# likewise P contains macro parameters if any. Preserve backslash 11627# newline sequences. 11628 11629ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11630sed -n ' 11631s/.\{148\}/&'"$ac_delim"'/g 11632t rset 11633:rset 11634s/^[ ]*#[ ]*define[ ][ ]*/ / 11635t def 11636d 11637:def 11638s/\\$// 11639t bsnl 11640s/["\\]/\\&/g 11641s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11642D["\1"]=" \3"/p 11643s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11644d 11645:bsnl 11646s/["\\]/\\&/g 11647s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11648D["\1"]=" \3\\\\\\n"\\/p 11649t cont 11650s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11651t cont 11652d 11653:cont 11654n 11655s/.\{148\}/&'"$ac_delim"'/g 11656t clear 11657:clear 11658s/\\$// 11659t bsnlc 11660s/["\\]/\\&/g; s/^/"/; s/$/"/p 11661d 11662:bsnlc 11663s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11664b cont 11665' <confdefs.h | sed ' 11666s/'"$ac_delim"'/"\\\ 11667"/g' >>$CONFIG_STATUS || ac_write_fail=1 11668 11669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11670 for (key in D) D_is_set[key] = 1 11671 FS = "" 11672} 11673/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11674 line = \$ 0 11675 split(line, arg, " ") 11676 if (arg[1] == "#") { 11677 defundef = arg[2] 11678 mac1 = arg[3] 11679 } else { 11680 defundef = substr(arg[1], 2) 11681 mac1 = arg[2] 11682 } 11683 split(mac1, mac2, "(") #) 11684 macro = mac2[1] 11685 prefix = substr(line, 1, index(line, defundef) - 1) 11686 if (D_is_set[macro]) { 11687 # Preserve the white space surrounding the "#". 11688 print prefix "define", macro P[macro] D[macro] 11689 next 11690 } else { 11691 # Replace #undef with comments. This is necessary, for example, 11692 # in the case of _POSIX_SOURCE, which is predefined and required 11693 # on some systems where configure will not decide to define it. 11694 if (defundef == "undef") { 11695 print "/*", prefix defundef, macro, "*/" 11696 next 11697 } 11698 } 11699} 11700{ print } 11701_ACAWK 11702_ACEOF 11703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11704 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11705fi # test -n "$CONFIG_HEADERS" 11706 11707 11708eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11709shift 11710for ac_tag 11711do 11712 case $ac_tag in 11713 :[FHLC]) ac_mode=$ac_tag; continue;; 11714 esac 11715 case $ac_mode$ac_tag in 11716 :[FHL]*:*);; 11717 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11718 :[FH]-) ac_tag=-:-;; 11719 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11720 esac 11721 ac_save_IFS=$IFS 11722 IFS=: 11723 set x $ac_tag 11724 IFS=$ac_save_IFS 11725 shift 11726 ac_file=$1 11727 shift 11728 11729 case $ac_mode in 11730 :L) ac_source=$1;; 11731 :[FH]) 11732 ac_file_inputs= 11733 for ac_f 11734 do 11735 case $ac_f in 11736 -) ac_f="$ac_tmp/stdin";; 11737 *) # Look for the file first in the build tree, then in the source tree 11738 # (if the path is not absolute). The absolute path cannot be DOS-style, 11739 # because $ac_f cannot contain `:'. 11740 test -f "$ac_f" || 11741 case $ac_f in 11742 [\\/$]*) false;; 11743 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11744 esac || 11745 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11746 esac 11747 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11748 as_fn_append ac_file_inputs " '$ac_f'" 11749 done 11750 11751 # Let's still pretend it is `configure' which instantiates (i.e., don't 11752 # use $as_me), people would be surprised to read: 11753 # /* config.h. Generated by config.status. */ 11754 configure_input='Generated from '` 11755 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11756 `' by configure.' 11757 if test x"$ac_file" != x-; then 11758 configure_input="$ac_file. $configure_input" 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11760$as_echo "$as_me: creating $ac_file" >&6;} 11761 fi 11762 # Neutralize special characters interpreted by sed in replacement strings. 11763 case $configure_input in #( 11764 *\&* | *\|* | *\\* ) 11765 ac_sed_conf_input=`$as_echo "$configure_input" | 11766 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11767 *) ac_sed_conf_input=$configure_input;; 11768 esac 11769 11770 case $ac_tag in 11771 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11773 esac 11774 ;; 11775 esac 11776 11777 ac_dir=`$as_dirname -- "$ac_file" || 11778$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11779 X"$ac_file" : 'X\(//\)[^/]' \| \ 11780 X"$ac_file" : 'X\(//\)$' \| \ 11781 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11782$as_echo X"$ac_file" | 11783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11784 s//\1/ 11785 q 11786 } 11787 /^X\(\/\/\)[^/].*/{ 11788 s//\1/ 11789 q 11790 } 11791 /^X\(\/\/\)$/{ 11792 s//\1/ 11793 q 11794 } 11795 /^X\(\/\).*/{ 11796 s//\1/ 11797 q 11798 } 11799 s/.*/./; q'` 11800 as_dir="$ac_dir"; as_fn_mkdir_p 11801 ac_builddir=. 11802 11803case "$ac_dir" in 11804.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11805*) 11806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11807 # A ".." for each directory in $ac_dir_suffix. 11808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11809 case $ac_top_builddir_sub in 11810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11812 esac ;; 11813esac 11814ac_abs_top_builddir=$ac_pwd 11815ac_abs_builddir=$ac_pwd$ac_dir_suffix 11816# for backward compatibility: 11817ac_top_builddir=$ac_top_build_prefix 11818 11819case $srcdir in 11820 .) # We are building in place. 11821 ac_srcdir=. 11822 ac_top_srcdir=$ac_top_builddir_sub 11823 ac_abs_top_srcdir=$ac_pwd ;; 11824 [\\/]* | ?:[\\/]* ) # Absolute name. 11825 ac_srcdir=$srcdir$ac_dir_suffix; 11826 ac_top_srcdir=$srcdir 11827 ac_abs_top_srcdir=$srcdir ;; 11828 *) # Relative name. 11829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11830 ac_top_srcdir=$ac_top_build_prefix$srcdir 11831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11832esac 11833ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11834 11835 11836 case $ac_mode in 11837 :F) 11838 # 11839 # CONFIG_FILE 11840 # 11841 11842 case $INSTALL in 11843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11845 esac 11846 ac_MKDIR_P=$MKDIR_P 11847 case $MKDIR_P in 11848 [\\/$]* | ?:[\\/]* ) ;; 11849 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11850 esac 11851_ACEOF 11852 11853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11854# If the template does not know about datarootdir, expand it. 11855# FIXME: This hack should be removed a few years after 2.60. 11856ac_datarootdir_hack=; ac_datarootdir_seen= 11857ac_sed_dataroot=' 11858/datarootdir/ { 11859 p 11860 q 11861} 11862/@datadir@/p 11863/@docdir@/p 11864/@infodir@/p 11865/@localedir@/p 11866/@mandir@/p' 11867case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11868*datarootdir*) ac_datarootdir_seen=yes;; 11869*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11871$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11872_ACEOF 11873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11874 ac_datarootdir_hack=' 11875 s&@datadir@&$datadir&g 11876 s&@docdir@&$docdir&g 11877 s&@infodir@&$infodir&g 11878 s&@localedir@&$localedir&g 11879 s&@mandir@&$mandir&g 11880 s&\\\${datarootdir}&$datarootdir&g' ;; 11881esac 11882_ACEOF 11883 11884# Neutralize VPATH when `$srcdir' = `.'. 11885# Shell code in configure.ac might set extrasub. 11886# FIXME: do we really want to maintain this feature? 11887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11888ac_sed_extra="$ac_vpsub 11889$extrasub 11890_ACEOF 11891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11892:t 11893/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11894s|@configure_input@|$ac_sed_conf_input|;t t 11895s&@top_builddir@&$ac_top_builddir_sub&;t t 11896s&@top_build_prefix@&$ac_top_build_prefix&;t t 11897s&@srcdir@&$ac_srcdir&;t t 11898s&@abs_srcdir@&$ac_abs_srcdir&;t t 11899s&@top_srcdir@&$ac_top_srcdir&;t t 11900s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11901s&@builddir@&$ac_builddir&;t t 11902s&@abs_builddir@&$ac_abs_builddir&;t t 11903s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11904s&@INSTALL@&$ac_INSTALL&;t t 11905s&@MKDIR_P@&$ac_MKDIR_P&;t t 11906$ac_datarootdir_hack 11907" 11908eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11909 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11910 11911test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11912 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11914 "$ac_tmp/out"`; test -z "$ac_out"; } && 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11916which seems to be undefined. Please make sure it is defined" >&5 11917$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11918which seems to be undefined. Please make sure it is defined" >&2;} 11919 11920 rm -f "$ac_tmp/stdin" 11921 case $ac_file in 11922 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11923 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11924 esac \ 11925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11926 ;; 11927 :H) 11928 # 11929 # CONFIG_HEADER 11930 # 11931 if test x"$ac_file" != x-; then 11932 { 11933 $as_echo "/* $configure_input */" \ 11934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11935 } >"$ac_tmp/config.h" \ 11936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11937 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11939$as_echo "$as_me: $ac_file is unchanged" >&6;} 11940 else 11941 rm -f "$ac_file" 11942 mv "$ac_tmp/config.h" "$ac_file" \ 11943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11944 fi 11945 else 11946 $as_echo "/* $configure_input */" \ 11947 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11948 || as_fn_error $? "could not create -" "$LINENO" 5 11949 fi 11950# Compute "$ac_file"'s index in $config_headers. 11951_am_arg="$ac_file" 11952_am_stamp_count=1 11953for _am_header in $config_headers :; do 11954 case $_am_header in 11955 $_am_arg | $_am_arg:* ) 11956 break ;; 11957 * ) 11958 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11959 esac 11960done 11961echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11962$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11963 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11964 X"$_am_arg" : 'X\(//\)$' \| \ 11965 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11966$as_echo X"$_am_arg" | 11967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11968 s//\1/ 11969 q 11970 } 11971 /^X\(\/\/\)[^/].*/{ 11972 s//\1/ 11973 q 11974 } 11975 /^X\(\/\/\)$/{ 11976 s//\1/ 11977 q 11978 } 11979 /^X\(\/\).*/{ 11980 s//\1/ 11981 q 11982 } 11983 s/.*/./; q'`/stamp-h$_am_stamp_count 11984 ;; 11985 11986 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11987$as_echo "$as_me: executing $ac_file commands" >&6;} 11988 ;; 11989 esac 11990 11991 11992 case $ac_file$ac_mode in 11993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11994 # Older Autoconf quotes --file arguments for eval, but not when files 11995 # are listed without --file. Let's play safe and only enable the eval 11996 # if we detect the quoting. 11997 case $CONFIG_FILES in 11998 *\'*) eval set x "$CONFIG_FILES" ;; 11999 *) set x $CONFIG_FILES ;; 12000 esac 12001 shift 12002 for mf 12003 do 12004 # Strip MF so we end up with the name of the file. 12005 mf=`echo "$mf" | sed -e 's/:.*$//'` 12006 # Check whether this is an Automake generated Makefile or not. 12007 # We used to match only the files named 'Makefile.in', but 12008 # some people rename them; so instead we look at the file content. 12009 # Grep'ing the first line is not enough: some people post-process 12010 # each Makefile.in and add a new line on top of each file to say so. 12011 # Grep'ing the whole file is not good either: AIX grep has a line 12012 # limit of 2048, but all sed's we know have understand at least 4000. 12013 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12014 dirpart=`$as_dirname -- "$mf" || 12015$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12016 X"$mf" : 'X\(//\)[^/]' \| \ 12017 X"$mf" : 'X\(//\)$' \| \ 12018 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12019$as_echo X"$mf" | 12020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12021 s//\1/ 12022 q 12023 } 12024 /^X\(\/\/\)[^/].*/{ 12025 s//\1/ 12026 q 12027 } 12028 /^X\(\/\/\)$/{ 12029 s//\1/ 12030 q 12031 } 12032 /^X\(\/\).*/{ 12033 s//\1/ 12034 q 12035 } 12036 s/.*/./; q'` 12037 else 12038 continue 12039 fi 12040 # Extract the definition of DEPDIR, am__include, and am__quote 12041 # from the Makefile without running 'make'. 12042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12043 test -z "$DEPDIR" && continue 12044 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12045 test -z "$am__include" && continue 12046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12047 # Find all dependency output files, they are included files with 12048 # $(DEPDIR) in their names. We invoke sed twice because it is the 12049 # simplest approach to changing $(DEPDIR) to its actual value in the 12050 # expansion. 12051 for file in `sed -n " 12052 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12053 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12054 # Make sure the directory exists. 12055 test -f "$dirpart/$file" && continue 12056 fdir=`$as_dirname -- "$file" || 12057$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12058 X"$file" : 'X\(//\)[^/]' \| \ 12059 X"$file" : 'X\(//\)$' \| \ 12060 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12061$as_echo X"$file" | 12062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12063 s//\1/ 12064 q 12065 } 12066 /^X\(\/\/\)[^/].*/{ 12067 s//\1/ 12068 q 12069 } 12070 /^X\(\/\/\)$/{ 12071 s//\1/ 12072 q 12073 } 12074 /^X\(\/\).*/{ 12075 s//\1/ 12076 q 12077 } 12078 s/.*/./; q'` 12079 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12080 # echo "creating $dirpart/$file" 12081 echo '# dummy' > "$dirpart/$file" 12082 done 12083 done 12084} 12085 ;; 12086 12087 esac 12088done # for ac_tag 12089 12090 12091as_fn_exit 0 12092_ACEOF 12093ac_clean_files=$ac_clean_files_save 12094 12095test $ac_write_fail = 0 || 12096 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12097 12098 12099# configure is writing to config.log, and then calls config.status. 12100# config.status does its own redirection, appending to config.log. 12101# Unfortunately, on DOS this fails, as config.log is still kept open 12102# by configure, so config.status won't be able to write to it; its 12103# output is simply discarded. So we exec the FD to /dev/null, 12104# effectively closing config.log, so it can be properly (re)opened and 12105# appended to by config.status. When coming back to configure, we 12106# need to make the FD available again. 12107if test "$no_create" != yes; then 12108 ac_cs_success=: 12109 ac_config_status_args= 12110 test "$silent" = yes && 12111 ac_config_status_args="$ac_config_status_args --quiet" 12112 exec 5>/dev/null 12113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12114 exec 5>>config.log 12115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12116 # would make configure fail if this is the last instruction. 12117 $ac_cs_success || as_fn_exit 1 12118fi 12119if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12121$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12122fi 12123 12124