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