configure revision a733a5bf
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xmodmap 1.0.8. 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='xmodmap' 563PACKAGE_TARNAME='xmodmap' 564PACKAGE_VERSION='1.0.8' 565PACKAGE_STRING='xmodmap 1.0.8' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610LINT_FALSE 611LINT_TRUE 612LINT_FLAGS 613LINT 614XMODMAP_LIBS 615XMODMAP_CFLAGS 616MAN_SUBSTS 617XORG_MAN_PAGE 618ADMIN_MAN_DIR 619DRIVER_MAN_DIR 620MISC_MAN_DIR 621FILE_MAN_DIR 622LIB_MAN_DIR 623APP_MAN_DIR 624ADMIN_MAN_SUFFIX 625DRIVER_MAN_SUFFIX 626MISC_MAN_SUFFIX 627FILE_MAN_SUFFIX 628LIB_MAN_SUFFIX 629APP_MAN_SUFFIX 630SED 631host_os 632host_vendor 633host_cpu 634host 635build_os 636build_vendor 637build_cpu 638build 639INSTALL_CMD 640PKG_CONFIG 641CHANGELOG_CMD 642STRICT_CFLAGS 643CWARNFLAGS 644BASE_CFLAGS 645MAINT 646MAINTAINER_MODE_FALSE 647MAINTAINER_MODE_TRUE 648AM_BACKSLASH 649AM_DEFAULT_VERBOSITY 650AM_DEFAULT_V 651AM_V 652am__fastdepCC_FALSE 653am__fastdepCC_TRUE 654CCDEPMODE 655am__nodep 656AMDEPBACKSLASH 657AMDEP_FALSE 658AMDEP_TRUE 659am__quote 660am__include 661DEPDIR 662am__untar 663am__tar 664AMTAR 665am__leading_dot 666SET_MAKE 667AWK 668mkdir_p 669MKDIR_P 670INSTALL_STRIP_PROGRAM 671STRIP 672install_sh 673MAKEINFO 674AUTOHEADER 675AUTOMAKE 676AUTOCONF 677ACLOCAL 678VERSION 679PACKAGE 680CYGPATH_W 681am__isrc 682INSTALL_DATA 683INSTALL_SCRIPT 684INSTALL_PROGRAM 685EGREP 686GREP 687CPP 688OBJEXT 689EXEEXT 690ac_ct_CC 691CPPFLAGS 692LDFLAGS 693CFLAGS 694CC 695target_alias 696host_alias 697build_alias 698LIBS 699ECHO_T 700ECHO_N 701ECHO_C 702DEFS 703mandir 704localedir 705libdir 706psdir 707pdfdir 708dvidir 709htmldir 710infodir 711docdir 712oldincludedir 713includedir 714localstatedir 715sharedstatedir 716sysconfdir 717datadir 718datarootdir 719libexecdir 720sbindir 721bindir 722program_transform_name 723prefix 724exec_prefix 725PACKAGE_URL 726PACKAGE_BUGREPORT 727PACKAGE_STRING 728PACKAGE_VERSION 729PACKAGE_TARNAME 730PACKAGE_NAME 731PATH_SEPARATOR 732SHELL' 733ac_subst_files='' 734ac_user_opts=' 735enable_option_checking 736enable_dependency_tracking 737enable_silent_rules 738enable_maintainer_mode 739enable_selective_werror 740enable_strict_compilation 741with_lint 742' 743 ac_precious_vars='build_alias 744host_alias 745target_alias 746CC 747CFLAGS 748LDFLAGS 749LIBS 750CPPFLAGS 751CPP 752PKG_CONFIG 753XMODMAP_CFLAGS 754XMODMAP_LIBS 755LINT 756LINT_FLAGS' 757 758 759# Initialize some variables set by options. 760ac_init_help= 761ac_init_version=false 762ac_unrecognized_opts= 763ac_unrecognized_sep= 764# The variables have the same names as the options, with 765# dashes changed to underlines. 766cache_file=/dev/null 767exec_prefix=NONE 768no_create= 769no_recursion= 770prefix=NONE 771program_prefix=NONE 772program_suffix=NONE 773program_transform_name=s,x,x, 774silent= 775site= 776srcdir= 777verbose= 778x_includes=NONE 779x_libraries=NONE 780 781# Installation directory options. 782# These are left unexpanded so users can "make install exec_prefix=/foo" 783# and all the variables that are supposed to be based on exec_prefix 784# by default will actually change. 785# Use braces instead of parens because sh, perl, etc. also accept them. 786# (The list follows the same order as the GNU Coding Standards.) 787bindir='${exec_prefix}/bin' 788sbindir='${exec_prefix}/sbin' 789libexecdir='${exec_prefix}/libexec' 790datarootdir='${prefix}/share' 791datadir='${datarootdir}' 792sysconfdir='${prefix}/etc' 793sharedstatedir='${prefix}/com' 794localstatedir='${prefix}/var' 795includedir='${prefix}/include' 796oldincludedir='/usr/include' 797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 798infodir='${datarootdir}/info' 799htmldir='${docdir}' 800dvidir='${docdir}' 801pdfdir='${docdir}' 802psdir='${docdir}' 803libdir='${exec_prefix}/lib' 804localedir='${datarootdir}/locale' 805mandir='${datarootdir}/man' 806 807ac_prev= 808ac_dashdash= 809for ac_option 810do 811 # If the previous option needs an argument, assign it. 812 if test -n "$ac_prev"; then 813 eval $ac_prev=\$ac_option 814 ac_prev= 815 continue 816 fi 817 818 case $ac_option in 819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 820 *=) ac_optarg= ;; 821 *) ac_optarg=yes ;; 822 esac 823 824 # Accept the important Cygnus configure options, so we can diagnose typos. 825 826 case $ac_dashdash$ac_option in 827 --) 828 ac_dashdash=yes ;; 829 830 -bindir | --bindir | --bindi | --bind | --bin | --bi) 831 ac_prev=bindir ;; 832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 833 bindir=$ac_optarg ;; 834 835 -build | --build | --buil | --bui | --bu) 836 ac_prev=build_alias ;; 837 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 838 build_alias=$ac_optarg ;; 839 840 -cache-file | --cache-file | --cache-fil | --cache-fi \ 841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 842 ac_prev=cache_file ;; 843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 845 cache_file=$ac_optarg ;; 846 847 --config-cache | -C) 848 cache_file=config.cache ;; 849 850 -datadir | --datadir | --datadi | --datad) 851 ac_prev=datadir ;; 852 -datadir=* | --datadir=* | --datadi=* | --datad=*) 853 datadir=$ac_optarg ;; 854 855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 856 | --dataroo | --dataro | --datar) 857 ac_prev=datarootdir ;; 858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 860 datarootdir=$ac_optarg ;; 861 862 -disable-* | --disable-*) 863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 864 # Reject names that are not valid shell variable names. 865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 866 as_fn_error $? "invalid feature name: $ac_useropt" 867 ac_useropt_orig=$ac_useropt 868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 869 case $ac_user_opts in 870 *" 871"enable_$ac_useropt" 872"*) ;; 873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 874 ac_unrecognized_sep=', ';; 875 esac 876 eval enable_$ac_useropt=no ;; 877 878 -docdir | --docdir | --docdi | --doc | --do) 879 ac_prev=docdir ;; 880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 881 docdir=$ac_optarg ;; 882 883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 884 ac_prev=dvidir ;; 885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 886 dvidir=$ac_optarg ;; 887 888 -enable-* | --enable-*) 889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 890 # Reject names that are not valid shell variable names. 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892 as_fn_error $? "invalid feature name: $ac_useropt" 893 ac_useropt_orig=$ac_useropt 894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895 case $ac_user_opts in 896 *" 897"enable_$ac_useropt" 898"*) ;; 899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 900 ac_unrecognized_sep=', ';; 901 esac 902 eval enable_$ac_useropt=\$ac_optarg ;; 903 904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 906 | --exec | --exe | --ex) 907 ac_prev=exec_prefix ;; 908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 910 | --exec=* | --exe=* | --ex=*) 911 exec_prefix=$ac_optarg ;; 912 913 -gas | --gas | --ga | --g) 914 # Obsolete; use --with-gas. 915 with_gas=yes ;; 916 917 -help | --help | --hel | --he | -h) 918 ac_init_help=long ;; 919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 920 ac_init_help=recursive ;; 921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 922 ac_init_help=short ;; 923 924 -host | --host | --hos | --ho) 925 ac_prev=host_alias ;; 926 -host=* | --host=* | --hos=* | --ho=*) 927 host_alias=$ac_optarg ;; 928 929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 930 ac_prev=htmldir ;; 931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 932 | --ht=*) 933 htmldir=$ac_optarg ;; 934 935 -includedir | --includedir | --includedi | --included | --include \ 936 | --includ | --inclu | --incl | --inc) 937 ac_prev=includedir ;; 938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 939 | --includ=* | --inclu=* | --incl=* | --inc=*) 940 includedir=$ac_optarg ;; 941 942 -infodir | --infodir | --infodi | --infod | --info | --inf) 943 ac_prev=infodir ;; 944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 945 infodir=$ac_optarg ;; 946 947 -libdir | --libdir | --libdi | --libd) 948 ac_prev=libdir ;; 949 -libdir=* | --libdir=* | --libdi=* | --libd=*) 950 libdir=$ac_optarg ;; 951 952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 953 | --libexe | --libex | --libe) 954 ac_prev=libexecdir ;; 955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 956 | --libexe=* | --libex=* | --libe=*) 957 libexecdir=$ac_optarg ;; 958 959 -localedir | --localedir | --localedi | --localed | --locale) 960 ac_prev=localedir ;; 961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 962 localedir=$ac_optarg ;; 963 964 -localstatedir | --localstatedir | --localstatedi | --localstated \ 965 | --localstate | --localstat | --localsta | --localst | --locals) 966 ac_prev=localstatedir ;; 967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 969 localstatedir=$ac_optarg ;; 970 971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 972 ac_prev=mandir ;; 973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 974 mandir=$ac_optarg ;; 975 976 -nfp | --nfp | --nf) 977 # Obsolete; use --without-fp. 978 with_fp=no ;; 979 980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 981 | --no-cr | --no-c | -n) 982 no_create=yes ;; 983 984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 986 no_recursion=yes ;; 987 988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 990 | --oldin | --oldi | --old | --ol | --o) 991 ac_prev=oldincludedir ;; 992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 995 oldincludedir=$ac_optarg ;; 996 997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 998 ac_prev=prefix ;; 999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1000 prefix=$ac_optarg ;; 1001 1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1003 | --program-pre | --program-pr | --program-p) 1004 ac_prev=program_prefix ;; 1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1007 program_prefix=$ac_optarg ;; 1008 1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1010 | --program-suf | --program-su | --program-s) 1011 ac_prev=program_suffix ;; 1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1014 program_suffix=$ac_optarg ;; 1015 1016 -program-transform-name | --program-transform-name \ 1017 | --program-transform-nam | --program-transform-na \ 1018 | --program-transform-n | --program-transform- \ 1019 | --program-transform | --program-transfor \ 1020 | --program-transfo | --program-transf \ 1021 | --program-trans | --program-tran \ 1022 | --progr-tra | --program-tr | --program-t) 1023 ac_prev=program_transform_name ;; 1024 -program-transform-name=* | --program-transform-name=* \ 1025 | --program-transform-nam=* | --program-transform-na=* \ 1026 | --program-transform-n=* | --program-transform-=* \ 1027 | --program-transform=* | --program-transfor=* \ 1028 | --program-transfo=* | --program-transf=* \ 1029 | --program-trans=* | --program-tran=* \ 1030 | --progr-tra=* | --program-tr=* | --program-t=*) 1031 program_transform_name=$ac_optarg ;; 1032 1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1034 ac_prev=pdfdir ;; 1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1036 pdfdir=$ac_optarg ;; 1037 1038 -psdir | --psdir | --psdi | --psd | --ps) 1039 ac_prev=psdir ;; 1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1041 psdir=$ac_optarg ;; 1042 1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1044 | -silent | --silent | --silen | --sile | --sil) 1045 silent=yes ;; 1046 1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1048 ac_prev=sbindir ;; 1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1050 | --sbi=* | --sb=*) 1051 sbindir=$ac_optarg ;; 1052 1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1055 | --sharedst | --shareds | --shared | --share | --shar \ 1056 | --sha | --sh) 1057 ac_prev=sharedstatedir ;; 1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1061 | --sha=* | --sh=*) 1062 sharedstatedir=$ac_optarg ;; 1063 1064 -site | --site | --sit) 1065 ac_prev=site ;; 1066 -site=* | --site=* | --sit=*) 1067 site=$ac_optarg ;; 1068 1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1070 ac_prev=srcdir ;; 1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1072 srcdir=$ac_optarg ;; 1073 1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1075 | --syscon | --sysco | --sysc | --sys | --sy) 1076 ac_prev=sysconfdir ;; 1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1079 sysconfdir=$ac_optarg ;; 1080 1081 -target | --target | --targe | --targ | --tar | --ta | --t) 1082 ac_prev=target_alias ;; 1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1084 target_alias=$ac_optarg ;; 1085 1086 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1087 verbose=yes ;; 1088 1089 -version | --version | --versio | --versi | --vers | -V) 1090 ac_init_version=: ;; 1091 1092 -with-* | --with-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 as_fn_error $? "invalid package name: $ac_useropt" 1097 ac_useropt_orig=$ac_useropt 1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099 case $ac_user_opts in 1100 *" 1101"with_$ac_useropt" 1102"*) ;; 1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1104 ac_unrecognized_sep=', ';; 1105 esac 1106 eval with_$ac_useropt=\$ac_optarg ;; 1107 1108 -without-* | --without-*) 1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1110 # Reject names that are not valid shell variable names. 1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1112 as_fn_error $? "invalid package name: $ac_useropt" 1113 ac_useropt_orig=$ac_useropt 1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1115 case $ac_user_opts in 1116 *" 1117"with_$ac_useropt" 1118"*) ;; 1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1120 ac_unrecognized_sep=', ';; 1121 esac 1122 eval with_$ac_useropt=no ;; 1123 1124 --x) 1125 # Obsolete; use --with-x. 1126 with_x=yes ;; 1127 1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1129 | --x-incl | --x-inc | --x-in | --x-i) 1130 ac_prev=x_includes ;; 1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1133 x_includes=$ac_optarg ;; 1134 1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1137 ac_prev=x_libraries ;; 1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1140 x_libraries=$ac_optarg ;; 1141 1142 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1143Try \`$0 --help' for more information" 1144 ;; 1145 1146 *=*) 1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1148 # Reject names that are not valid shell variable names. 1149 case $ac_envvar in #( 1150 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1151 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1152 esac 1153 eval $ac_envvar=\$ac_optarg 1154 export $ac_envvar ;; 1155 1156 *) 1157 # FIXME: should be removed in autoconf 3.0. 1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1161 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1162 ;; 1163 1164 esac 1165done 1166 1167if test -n "$ac_prev"; then 1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1169 as_fn_error $? "missing argument to $ac_option" 1170fi 1171 1172if test -n "$ac_unrecognized_opts"; then 1173 case $enable_option_checking in 1174 no) ;; 1175 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1177 esac 1178fi 1179 1180# Check all directory arguments for consistency. 1181for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1182 datadir sysconfdir sharedstatedir localstatedir includedir \ 1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1184 libdir localedir mandir 1185do 1186 eval ac_val=\$$ac_var 1187 # Remove trailing slashes. 1188 case $ac_val in 1189 */ ) 1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1191 eval $ac_var=\$ac_val;; 1192 esac 1193 # Be sure to have absolute directory names. 1194 case $ac_val in 1195 [\\/$]* | ?:[\\/]* ) continue;; 1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1197 esac 1198 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1199done 1200 1201# There might be people who depend on the old broken behavior: `$host' 1202# used to hold the argument of --host etc. 1203# FIXME: To remove some day. 1204build=$build_alias 1205host=$host_alias 1206target=$target_alias 1207 1208# FIXME: To remove some day. 1209if test "x$host_alias" != x; then 1210 if test "x$build_alias" = x; then 1211 cross_compiling=maybe 1212 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1213 If a cross compiler is detected then cross compile mode will be used" >&2 1214 elif test "x$build_alias" != "x$host_alias"; then 1215 cross_compiling=yes 1216 fi 1217fi 1218 1219ac_tool_prefix= 1220test -n "$host_alias" && ac_tool_prefix=$host_alias- 1221 1222test "$silent" = yes && exec 6>/dev/null 1223 1224 1225ac_pwd=`pwd` && test -n "$ac_pwd" && 1226ac_ls_di=`ls -di .` && 1227ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1228 as_fn_error $? "working directory cannot be determined" 1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1230 as_fn_error $? "pwd does not report name of working directory" 1231 1232 1233# Find the source files, if location was not specified. 1234if test -z "$srcdir"; then 1235 ac_srcdir_defaulted=yes 1236 # Try the directory containing this script, then the parent directory. 1237 ac_confdir=`$as_dirname -- "$as_myself" || 1238$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1239 X"$as_myself" : 'X\(//\)[^/]' \| \ 1240 X"$as_myself" : 'X\(//\)$' \| \ 1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1242$as_echo X"$as_myself" | 1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1244 s//\1/ 1245 q 1246 } 1247 /^X\(\/\/\)[^/].*/{ 1248 s//\1/ 1249 q 1250 } 1251 /^X\(\/\/\)$/{ 1252 s//\1/ 1253 q 1254 } 1255 /^X\(\/\).*/{ 1256 s//\1/ 1257 q 1258 } 1259 s/.*/./; q'` 1260 srcdir=$ac_confdir 1261 if test ! -r "$srcdir/$ac_unique_file"; then 1262 srcdir=.. 1263 fi 1264else 1265 ac_srcdir_defaulted=no 1266fi 1267if test ! -r "$srcdir/$ac_unique_file"; then 1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1269 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1270fi 1271ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1272ac_abs_confdir=`( 1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1274 pwd)` 1275# When building in place, set srcdir=. 1276if test "$ac_abs_confdir" = "$ac_pwd"; then 1277 srcdir=. 1278fi 1279# Remove unnecessary trailing slashes from srcdir. 1280# Double slashes in file names in object file debugging info 1281# mess up M-x gdb in Emacs. 1282case $srcdir in 1283*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1284esac 1285for ac_var in $ac_precious_vars; do 1286 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1287 eval ac_env_${ac_var}_value=\$${ac_var} 1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1289 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1290done 1291 1292# 1293# Report the --help message. 1294# 1295if test "$ac_init_help" = "long"; then 1296 # Omit some internal or obsolete options to make the list less imposing. 1297 # This message is too long to be a string in the A/UX 3.1 sh. 1298 cat <<_ACEOF 1299\`configure' configures xmodmap 1.0.8 to adapt to many kinds of systems. 1300 1301Usage: $0 [OPTION]... [VAR=VALUE]... 1302 1303To assign environment variables (e.g., CC, CFLAGS...), specify them as 1304VAR=VALUE. See below for descriptions of some of the useful variables. 1305 1306Defaults for the options are specified in brackets. 1307 1308Configuration: 1309 -h, --help display this help and exit 1310 --help=short display options specific to this package 1311 --help=recursive display the short help of all the included packages 1312 -V, --version display version information and exit 1313 -q, --quiet, --silent do not print \`checking ...' messages 1314 --cache-file=FILE cache test results in FILE [disabled] 1315 -C, --config-cache alias for \`--cache-file=config.cache' 1316 -n, --no-create do not create output files 1317 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1318 1319Installation directories: 1320 --prefix=PREFIX install architecture-independent files in PREFIX 1321 [$ac_default_prefix] 1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1323 [PREFIX] 1324 1325By default, \`make install' will install all the files in 1326\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1327an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1328for instance \`--prefix=\$HOME'. 1329 1330For better control, use the options below. 1331 1332Fine tuning of the installation directories: 1333 --bindir=DIR user executables [EPREFIX/bin] 1334 --sbindir=DIR system admin executables [EPREFIX/sbin] 1335 --libexecdir=DIR program executables [EPREFIX/libexec] 1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1339 --libdir=DIR object code libraries [EPREFIX/lib] 1340 --includedir=DIR C header files [PREFIX/include] 1341 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1344 --infodir=DIR info documentation [DATAROOTDIR/info] 1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1346 --mandir=DIR man documentation [DATAROOTDIR/man] 1347 --docdir=DIR documentation root [DATAROOTDIR/doc/xmodmap] 1348 --htmldir=DIR html documentation [DOCDIR] 1349 --dvidir=DIR dvi documentation [DOCDIR] 1350 --pdfdir=DIR pdf documentation [DOCDIR] 1351 --psdir=DIR ps documentation [DOCDIR] 1352_ACEOF 1353 1354 cat <<\_ACEOF 1355 1356Program names: 1357 --program-prefix=PREFIX prepend PREFIX to installed program names 1358 --program-suffix=SUFFIX append SUFFIX to installed program names 1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1360 1361System types: 1362 --build=BUILD configure for building on BUILD [guessed] 1363 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1364_ACEOF 1365fi 1366 1367if test -n "$ac_init_help"; then 1368 case $ac_init_help in 1369 short | recursive ) echo "Configuration of xmodmap 1.0.8:";; 1370 esac 1371 cat <<\_ACEOF 1372 1373Optional Features: 1374 --disable-option-checking ignore unrecognized --enable/--with options 1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1377 --enable-dependency-tracking 1378 do not reject slow dependency extractors 1379 --disable-dependency-tracking 1380 speeds up one-time build 1381 --enable-silent-rules less verbose build output (undo: "make V=1") 1382 --disable-silent-rules verbose build output (undo: "make V=0") 1383 --enable-maintainer-mode 1384 enable make rules and dependencies not useful (and 1385 sometimes confusing) to the casual installer 1386 --disable-selective-werror 1387 Turn off selective compiler errors. (default: 1388 enabled) 1389 --enable-strict-compilation 1390 Enable all warnings from compiler and make them 1391 errors (default: disabled) 1392 1393Optional Packages: 1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1396 --with-lint Use a lint-style source code checker (default: 1397 disabled) 1398 1399Some influential environment variables: 1400 CC C compiler command 1401 CFLAGS C compiler flags 1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1403 nonstandard directory <lib dir> 1404 LIBS libraries to pass to the linker, e.g. -l<library> 1405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1406 you have headers in a nonstandard directory <include dir> 1407 CPP C preprocessor 1408 PKG_CONFIG path to pkg-config utility 1409 XMODMAP_CFLAGS 1410 C compiler flags for XMODMAP, overriding pkg-config 1411 XMODMAP_LIBS 1412 linker flags for XMODMAP, overriding pkg-config 1413 LINT Path to a lint-style command 1414 LINT_FLAGS Flags for the lint-style command 1415 1416Use these variables to override the choices made by `configure' or to help 1417it to find libraries and programs with nonstandard names/locations. 1418 1419Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1420_ACEOF 1421ac_status=$? 1422fi 1423 1424if test "$ac_init_help" = "recursive"; then 1425 # If there are subdirs, report their specific --help. 1426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1427 test -d "$ac_dir" || 1428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1429 continue 1430 ac_builddir=. 1431 1432case "$ac_dir" in 1433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1434*) 1435 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1436 # A ".." for each directory in $ac_dir_suffix. 1437 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1438 case $ac_top_builddir_sub in 1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1441 esac ;; 1442esac 1443ac_abs_top_builddir=$ac_pwd 1444ac_abs_builddir=$ac_pwd$ac_dir_suffix 1445# for backward compatibility: 1446ac_top_builddir=$ac_top_build_prefix 1447 1448case $srcdir in 1449 .) # We are building in place. 1450 ac_srcdir=. 1451 ac_top_srcdir=$ac_top_builddir_sub 1452 ac_abs_top_srcdir=$ac_pwd ;; 1453 [\\/]* | ?:[\\/]* ) # Absolute name. 1454 ac_srcdir=$srcdir$ac_dir_suffix; 1455 ac_top_srcdir=$srcdir 1456 ac_abs_top_srcdir=$srcdir ;; 1457 *) # Relative name. 1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1459 ac_top_srcdir=$ac_top_build_prefix$srcdir 1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1461esac 1462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1463 1464 cd "$ac_dir" || { ac_status=$?; continue; } 1465 # Check for guested configure. 1466 if test -f "$ac_srcdir/configure.gnu"; then 1467 echo && 1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1469 elif test -f "$ac_srcdir/configure"; then 1470 echo && 1471 $SHELL "$ac_srcdir/configure" --help=recursive 1472 else 1473 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1474 fi || ac_status=$? 1475 cd "$ac_pwd" || { ac_status=$?; break; } 1476 done 1477fi 1478 1479test -n "$ac_init_help" && exit $ac_status 1480if $ac_init_version; then 1481 cat <<\_ACEOF 1482xmodmap configure 1.0.8 1483generated by GNU Autoconf 2.68 1484 1485Copyright (C) 2010 Free Software Foundation, Inc. 1486This configure script is free software; the Free Software Foundation 1487gives unlimited permission to copy, distribute and modify it. 1488_ACEOF 1489 exit 1490fi 1491 1492## ------------------------ ## 1493## Autoconf initialization. ## 1494## ------------------------ ## 1495 1496# ac_fn_c_try_compile LINENO 1497# -------------------------- 1498# Try to compile conftest.$ac_ext, and return whether this succeeded. 1499ac_fn_c_try_compile () 1500{ 1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1502 rm -f conftest.$ac_objext 1503 if { { ac_try="$ac_compile" 1504case "(($ac_try" in 1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1506 *) ac_try_echo=$ac_try;; 1507esac 1508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1509$as_echo "$ac_try_echo"; } >&5 1510 (eval "$ac_compile") 2>conftest.err 1511 ac_status=$? 1512 if test -s conftest.err; then 1513 grep -v '^ *+' conftest.err >conftest.er1 1514 cat conftest.er1 >&5 1515 mv -f conftest.er1 conftest.err 1516 fi 1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1518 test $ac_status = 0; } && { 1519 test -z "$ac_c_werror_flag" || 1520 test ! -s conftest.err 1521 } && test -s conftest.$ac_objext; then : 1522 ac_retval=0 1523else 1524 $as_echo "$as_me: failed program was:" >&5 1525sed 's/^/| /' conftest.$ac_ext >&5 1526 1527 ac_retval=1 1528fi 1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1530 as_fn_set_status $ac_retval 1531 1532} # ac_fn_c_try_compile 1533 1534# ac_fn_c_try_cpp LINENO 1535# ---------------------- 1536# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1537ac_fn_c_try_cpp () 1538{ 1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1540 if { { ac_try="$ac_cpp conftest.$ac_ext" 1541case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544esac 1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546$as_echo "$ac_try_echo"; } >&5 1547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1548 ac_status=$? 1549 if test -s conftest.err; then 1550 grep -v '^ *+' conftest.err >conftest.er1 1551 cat conftest.er1 >&5 1552 mv -f conftest.er1 conftest.err 1553 fi 1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1555 test $ac_status = 0; } > conftest.i && { 1556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1557 test ! -s conftest.err 1558 }; then : 1559 ac_retval=0 1560else 1561 $as_echo "$as_me: failed program was:" >&5 1562sed 's/^/| /' conftest.$ac_ext >&5 1563 1564 ac_retval=1 1565fi 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 as_fn_set_status $ac_retval 1568 1569} # ac_fn_c_try_cpp 1570 1571# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1572# ------------------------------------------------------- 1573# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1574# the include files in INCLUDES and setting the cache variable VAR 1575# accordingly. 1576ac_fn_c_check_header_mongrel () 1577{ 1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1579 if eval \${$3+:} false; then : 1580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1581$as_echo_n "checking for $2... " >&6; } 1582if eval \${$3+:} false; then : 1583 $as_echo_n "(cached) " >&6 1584fi 1585eval ac_res=\$$3 1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1587$as_echo "$ac_res" >&6; } 1588else 1589 # Is the header compilable? 1590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1591$as_echo_n "checking $2 usability... " >&6; } 1592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1593/* end confdefs.h. */ 1594$4 1595#include <$2> 1596_ACEOF 1597if ac_fn_c_try_compile "$LINENO"; then : 1598 ac_header_compiler=yes 1599else 1600 ac_header_compiler=no 1601fi 1602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1604$as_echo "$ac_header_compiler" >&6; } 1605 1606# Is the header present? 1607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1608$as_echo_n "checking $2 presence... " >&6; } 1609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1610/* end confdefs.h. */ 1611#include <$2> 1612_ACEOF 1613if ac_fn_c_try_cpp "$LINENO"; then : 1614 ac_header_preproc=yes 1615else 1616 ac_header_preproc=no 1617fi 1618rm -f conftest.err conftest.i conftest.$ac_ext 1619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1620$as_echo "$ac_header_preproc" >&6; } 1621 1622# So? What about this header? 1623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1624 yes:no: ) 1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1626$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1628$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1629 ;; 1630 no:yes:* ) 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1632$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1634$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1636$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1638$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1640$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1641( $as_echo "## ---------------------------------------------------------------------- ## 1642## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1643## ---------------------------------------------------------------------- ##" 1644 ) | sed "s/^/$as_me: WARNING: /" >&2 1645 ;; 1646esac 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1648$as_echo_n "checking for $2... " >&6; } 1649if eval \${$3+:} false; then : 1650 $as_echo_n "(cached) " >&6 1651else 1652 eval "$3=\$ac_header_compiler" 1653fi 1654eval ac_res=\$$3 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1656$as_echo "$ac_res" >&6; } 1657fi 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 1660} # ac_fn_c_check_header_mongrel 1661 1662# ac_fn_c_try_run LINENO 1663# ---------------------- 1664# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1665# that executables *can* be run. 1666ac_fn_c_try_run () 1667{ 1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1669 if { { ac_try="$ac_link" 1670case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673esac 1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675$as_echo "$ac_try_echo"; } >&5 1676 (eval "$ac_link") 2>&5 1677 ac_status=$? 1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1680 { { case "(($ac_try" in 1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1682 *) ac_try_echo=$ac_try;; 1683esac 1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1685$as_echo "$ac_try_echo"; } >&5 1686 (eval "$ac_try") 2>&5 1687 ac_status=$? 1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; }; }; then : 1690 ac_retval=0 1691else 1692 $as_echo "$as_me: program exited with status $ac_status" >&5 1693 $as_echo "$as_me: failed program was:" >&5 1694sed 's/^/| /' conftest.$ac_ext >&5 1695 1696 ac_retval=$ac_status 1697fi 1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 as_fn_set_status $ac_retval 1701 1702} # ac_fn_c_try_run 1703 1704# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1705# ------------------------------------------------------- 1706# Tests whether HEADER exists and can be compiled using the include files in 1707# INCLUDES, setting the cache variable VAR accordingly. 1708ac_fn_c_check_header_compile () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1712$as_echo_n "checking for $2... " >&6; } 1713if eval \${$3+:} false; then : 1714 $as_echo_n "(cached) " >&6 1715else 1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1717/* end confdefs.h. */ 1718$4 1719#include <$2> 1720_ACEOF 1721if ac_fn_c_try_compile "$LINENO"; then : 1722 eval "$3=yes" 1723else 1724 eval "$3=no" 1725fi 1726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1727fi 1728eval ac_res=\$$3 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1730$as_echo "$ac_res" >&6; } 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 1733} # ac_fn_c_check_header_compile 1734 1735# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1736# --------------------------------------------- 1737# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1738# accordingly. 1739ac_fn_c_check_decl () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 as_decl_name=`echo $2|sed 's/ *(.*//'` 1743 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1745$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748else 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750/* end confdefs.h. */ 1751$4 1752int 1753main () 1754{ 1755#ifndef $as_decl_name 1756#ifdef __cplusplus 1757 (void) $as_decl_use; 1758#else 1759 (void) $as_decl_name; 1760#endif 1761#endif 1762 1763 ; 1764 return 0; 1765} 1766_ACEOF 1767if ac_fn_c_try_compile "$LINENO"; then : 1768 eval "$3=yes" 1769else 1770 eval "$3=no" 1771fi 1772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1773fi 1774eval ac_res=\$$3 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1776$as_echo "$ac_res" >&6; } 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 1779} # ac_fn_c_check_decl 1780 1781# ac_fn_c_try_link LINENO 1782# ----------------------- 1783# Try to link conftest.$ac_ext, and return whether this succeeded. 1784ac_fn_c_try_link () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 rm -f conftest.$ac_objext conftest$ac_exeext 1788 if { { ac_try="$ac_link" 1789case "(($ac_try" in 1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1791 *) ac_try_echo=$ac_try;; 1792esac 1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1794$as_echo "$ac_try_echo"; } >&5 1795 (eval "$ac_link") 2>conftest.err 1796 ac_status=$? 1797 if test -s conftest.err; then 1798 grep -v '^ *+' conftest.err >conftest.er1 1799 cat conftest.er1 >&5 1800 mv -f conftest.er1 conftest.err 1801 fi 1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1803 test $ac_status = 0; } && { 1804 test -z "$ac_c_werror_flag" || 1805 test ! -s conftest.err 1806 } && test -s conftest$ac_exeext && { 1807 test "$cross_compiling" = yes || 1808 $as_test_x conftest$ac_exeext 1809 }; then : 1810 ac_retval=0 1811else 1812 $as_echo "$as_me: failed program was:" >&5 1813sed 's/^/| /' conftest.$ac_ext >&5 1814 1815 ac_retval=1 1816fi 1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1819 # interfere with the next link command; also delete a directory that is 1820 # left behind by Apple's compiler. We do this before executing the actions. 1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 as_fn_set_status $ac_retval 1824 1825} # ac_fn_c_try_link 1826 1827# ac_fn_c_check_func LINENO FUNC VAR 1828# ---------------------------------- 1829# Tests whether FUNC exists, setting the cache variable VAR accordingly 1830ac_fn_c_check_func () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1834$as_echo_n "checking for $2... " >&6; } 1835if eval \${$3+:} false; then : 1836 $as_echo_n "(cached) " >&6 1837else 1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1842#define $2 innocuous_$2 1843 1844/* System header to define __stub macros and hopefully few prototypes, 1845 which can conflict with char $2 (); below. 1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1847 <limits.h> exists even on freestanding compilers. */ 1848 1849#ifdef __STDC__ 1850# include <limits.h> 1851#else 1852# include <assert.h> 1853#endif 1854 1855#undef $2 1856 1857/* Override any GCC internal prototype to avoid an error. 1858 Use char because int might match the return type of a GCC 1859 builtin and then its argument prototype would still apply. */ 1860#ifdef __cplusplus 1861extern "C" 1862#endif 1863char $2 (); 1864/* The GNU C library defines this for functions which it implements 1865 to always fail with ENOSYS. Some functions are actually named 1866 something starting with __ and the normal name is an alias. */ 1867#if defined __stub_$2 || defined __stub___$2 1868choke me 1869#endif 1870 1871int 1872main () 1873{ 1874return $2 (); 1875 ; 1876 return 0; 1877} 1878_ACEOF 1879if ac_fn_c_try_link "$LINENO"; then : 1880 eval "$3=yes" 1881else 1882 eval "$3=no" 1883fi 1884rm -f core conftest.err conftest.$ac_objext \ 1885 conftest$ac_exeext conftest.$ac_ext 1886fi 1887eval ac_res=\$$3 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1889$as_echo "$ac_res" >&6; } 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1891 1892} # ac_fn_c_check_func 1893cat >config.log <<_ACEOF 1894This file contains any messages produced by compilers while 1895running configure, to aid debugging if configure makes a mistake. 1896 1897It was created by xmodmap $as_me 1.0.8, which was 1898generated by GNU Autoconf 2.68. Invocation command line was 1899 1900 $ $0 $@ 1901 1902_ACEOF 1903exec 5>>config.log 1904{ 1905cat <<_ASUNAME 1906## --------- ## 1907## Platform. ## 1908## --------- ## 1909 1910hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1911uname -m = `(uname -m) 2>/dev/null || echo unknown` 1912uname -r = `(uname -r) 2>/dev/null || echo unknown` 1913uname -s = `(uname -s) 2>/dev/null || echo unknown` 1914uname -v = `(uname -v) 2>/dev/null || echo unknown` 1915 1916/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1917/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1918 1919/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1920/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1921/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1922/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1923/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1924/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1925/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1926 1927_ASUNAME 1928 1929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1930for as_dir in $PATH 1931do 1932 IFS=$as_save_IFS 1933 test -z "$as_dir" && as_dir=. 1934 $as_echo "PATH: $as_dir" 1935 done 1936IFS=$as_save_IFS 1937 1938} >&5 1939 1940cat >&5 <<_ACEOF 1941 1942 1943## ----------- ## 1944## Core tests. ## 1945## ----------- ## 1946 1947_ACEOF 1948 1949 1950# Keep a trace of the command line. 1951# Strip out --no-create and --no-recursion so they do not pile up. 1952# Strip out --silent because we don't want to record it for future runs. 1953# Also quote any args containing shell meta-characters. 1954# Make two passes to allow for proper duplicate-argument suppression. 1955ac_configure_args= 1956ac_configure_args0= 1957ac_configure_args1= 1958ac_must_keep_next=false 1959for ac_pass in 1 2 1960do 1961 for ac_arg 1962 do 1963 case $ac_arg in 1964 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1966 | -silent | --silent | --silen | --sile | --sil) 1967 continue ;; 1968 *\'*) 1969 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1970 esac 1971 case $ac_pass in 1972 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1973 2) 1974 as_fn_append ac_configure_args1 " '$ac_arg'" 1975 if test $ac_must_keep_next = true; then 1976 ac_must_keep_next=false # Got value, back to normal. 1977 else 1978 case $ac_arg in 1979 *=* | --config-cache | -C | -disable-* | --disable-* \ 1980 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1981 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1982 | -with-* | --with-* | -without-* | --without-* | --x) 1983 case "$ac_configure_args0 " in 1984 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1985 esac 1986 ;; 1987 -* ) ac_must_keep_next=true ;; 1988 esac 1989 fi 1990 as_fn_append ac_configure_args " '$ac_arg'" 1991 ;; 1992 esac 1993 done 1994done 1995{ ac_configure_args0=; unset ac_configure_args0;} 1996{ ac_configure_args1=; unset ac_configure_args1;} 1997 1998# When interrupted or exit'd, cleanup temporary files, and complete 1999# config.log. We remove comments because anyway the quotes in there 2000# would cause problems or look ugly. 2001# WARNING: Use '\'' to represent an apostrophe within the trap. 2002# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2003trap 'exit_status=$? 2004 # Save into config.log some information that might help in debugging. 2005 { 2006 echo 2007 2008 $as_echo "## ---------------- ## 2009## Cache variables. ## 2010## ---------------- ##" 2011 echo 2012 # The following way of writing the cache mishandles newlines in values, 2013( 2014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2015 eval ac_val=\$$ac_var 2016 case $ac_val in #( 2017 *${as_nl}*) 2018 case $ac_var in #( 2019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2020$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2021 esac 2022 case $ac_var in #( 2023 _ | IFS | as_nl) ;; #( 2024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2025 *) { eval $ac_var=; unset $ac_var;} ;; 2026 esac ;; 2027 esac 2028 done 2029 (set) 2>&1 | 2030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2031 *${as_nl}ac_space=\ *) 2032 sed -n \ 2033 "s/'\''/'\''\\\\'\'''\''/g; 2034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2035 ;; #( 2036 *) 2037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2038 ;; 2039 esac | 2040 sort 2041) 2042 echo 2043 2044 $as_echo "## ----------------- ## 2045## Output variables. ## 2046## ----------------- ##" 2047 echo 2048 for ac_var in $ac_subst_vars 2049 do 2050 eval ac_val=\$$ac_var 2051 case $ac_val in 2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2053 esac 2054 $as_echo "$ac_var='\''$ac_val'\''" 2055 done | sort 2056 echo 2057 2058 if test -n "$ac_subst_files"; then 2059 $as_echo "## ------------------- ## 2060## File substitutions. ## 2061## ------------------- ##" 2062 echo 2063 for ac_var in $ac_subst_files 2064 do 2065 eval ac_val=\$$ac_var 2066 case $ac_val in 2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2068 esac 2069 $as_echo "$ac_var='\''$ac_val'\''" 2070 done | sort 2071 echo 2072 fi 2073 2074 if test -s confdefs.h; then 2075 $as_echo "## ----------- ## 2076## confdefs.h. ## 2077## ----------- ##" 2078 echo 2079 cat confdefs.h 2080 echo 2081 fi 2082 test "$ac_signal" != 0 && 2083 $as_echo "$as_me: caught signal $ac_signal" 2084 $as_echo "$as_me: exit $exit_status" 2085 } >&5 2086 rm -f core *.core core.conftest.* && 2087 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2088 exit $exit_status 2089' 0 2090for ac_signal in 1 2 13 15; do 2091 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2092done 2093ac_signal=0 2094 2095# confdefs.h avoids OS command line length limits that DEFS can exceed. 2096rm -f -r conftest* confdefs.h 2097 2098$as_echo "/* confdefs.h */" > confdefs.h 2099 2100# Predefined preprocessor variables. 2101 2102cat >>confdefs.h <<_ACEOF 2103#define PACKAGE_NAME "$PACKAGE_NAME" 2104_ACEOF 2105 2106cat >>confdefs.h <<_ACEOF 2107#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2108_ACEOF 2109 2110cat >>confdefs.h <<_ACEOF 2111#define PACKAGE_VERSION "$PACKAGE_VERSION" 2112_ACEOF 2113 2114cat >>confdefs.h <<_ACEOF 2115#define PACKAGE_STRING "$PACKAGE_STRING" 2116_ACEOF 2117 2118cat >>confdefs.h <<_ACEOF 2119#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2120_ACEOF 2121 2122cat >>confdefs.h <<_ACEOF 2123#define PACKAGE_URL "$PACKAGE_URL" 2124_ACEOF 2125 2126 2127# Let the site file select an alternate cache file if it wants to. 2128# Prefer an explicitly selected file to automatically selected ones. 2129ac_site_file1=NONE 2130ac_site_file2=NONE 2131if test -n "$CONFIG_SITE"; then 2132 # We do not want a PATH search for config.site. 2133 case $CONFIG_SITE in #(( 2134 -*) ac_site_file1=./$CONFIG_SITE;; 2135 */*) ac_site_file1=$CONFIG_SITE;; 2136 *) ac_site_file1=./$CONFIG_SITE;; 2137 esac 2138elif test "x$prefix" != xNONE; then 2139 ac_site_file1=$prefix/share/config.site 2140 ac_site_file2=$prefix/etc/config.site 2141else 2142 ac_site_file1=$ac_default_prefix/share/config.site 2143 ac_site_file2=$ac_default_prefix/etc/config.site 2144fi 2145for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2146do 2147 test "x$ac_site_file" = xNONE && continue 2148 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2150$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2151 sed 's/^/| /' "$ac_site_file" >&5 2152 . "$ac_site_file" \ 2153 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2155as_fn_error $? "failed to load site script $ac_site_file 2156See \`config.log' for more details" "$LINENO" 5; } 2157 fi 2158done 2159 2160if test -r "$cache_file"; then 2161 # Some versions of bash will fail to source /dev/null (special files 2162 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2163 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2165$as_echo "$as_me: loading cache $cache_file" >&6;} 2166 case $cache_file in 2167 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2168 *) . "./$cache_file";; 2169 esac 2170 fi 2171else 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2173$as_echo "$as_me: creating cache $cache_file" >&6;} 2174 >$cache_file 2175fi 2176 2177# Check that the precious variables saved in the cache have kept the same 2178# value. 2179ac_cache_corrupted=false 2180for ac_var in $ac_precious_vars; do 2181 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2182 eval ac_new_set=\$ac_env_${ac_var}_set 2183 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2184 eval ac_new_val=\$ac_env_${ac_var}_value 2185 case $ac_old_set,$ac_new_set in 2186 set,) 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2188$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2189 ac_cache_corrupted=: ;; 2190 ,set) 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2192$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2193 ac_cache_corrupted=: ;; 2194 ,);; 2195 *) 2196 if test "x$ac_old_val" != "x$ac_new_val"; then 2197 # differences in whitespace do not lead to failure. 2198 ac_old_val_w=`echo x $ac_old_val` 2199 ac_new_val_w=`echo x $ac_new_val` 2200 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2202$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2203 ac_cache_corrupted=: 2204 else 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2206$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2207 eval $ac_var=\$ac_old_val 2208 fi 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2210$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2212$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2213 fi;; 2214 esac 2215 # Pass precious variables to config.status. 2216 if test "$ac_new_set" = set; then 2217 case $ac_new_val in 2218 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2219 *) ac_arg=$ac_var=$ac_new_val ;; 2220 esac 2221 case " $ac_configure_args " in 2222 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2223 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2224 esac 2225 fi 2226done 2227if $ac_cache_corrupted; then 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2231$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2232 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2233fi 2234## -------------------- ## 2235## Main body of script. ## 2236## -------------------- ## 2237 2238ac_ext=c 2239ac_cpp='$CPP $CPPFLAGS' 2240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2242ac_compiler_gnu=$ac_cv_c_compiler_gnu 2243 2244 2245 2246ac_config_headers="$ac_config_headers config.h" 2247 2248# Needed for asprintf on GNU libc 2249# expand $ac_aux_dir to an absolute path 2250am_aux_dir=`cd $ac_aux_dir && pwd` 2251 2252ac_ext=c 2253ac_cpp='$CPP $CPPFLAGS' 2254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2256ac_compiler_gnu=$ac_cv_c_compiler_gnu 2257if test -n "$ac_tool_prefix"; then 2258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2259set dummy ${ac_tool_prefix}gcc; ac_word=$2 2260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2261$as_echo_n "checking for $ac_word... " >&6; } 2262if ${ac_cv_prog_CC+:} false; then : 2263 $as_echo_n "(cached) " >&6 2264else 2265 if test -n "$CC"; then 2266 ac_cv_prog_CC="$CC" # Let the user override the test. 2267else 2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2269for as_dir in $PATH 2270do 2271 IFS=$as_save_IFS 2272 test -z "$as_dir" && as_dir=. 2273 for ac_exec_ext in '' $ac_executable_extensions; do 2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2275 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2277 break 2 2278 fi 2279done 2280 done 2281IFS=$as_save_IFS 2282 2283fi 2284fi 2285CC=$ac_cv_prog_CC 2286if test -n "$CC"; then 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2288$as_echo "$CC" >&6; } 2289else 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2291$as_echo "no" >&6; } 2292fi 2293 2294 2295fi 2296if test -z "$ac_cv_prog_CC"; then 2297 ac_ct_CC=$CC 2298 # Extract the first word of "gcc", so it can be a program name with args. 2299set dummy gcc; ac_word=$2 2300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2301$as_echo_n "checking for $ac_word... " >&6; } 2302if ${ac_cv_prog_ac_ct_CC+:} false; then : 2303 $as_echo_n "(cached) " >&6 2304else 2305 if test -n "$ac_ct_CC"; then 2306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2307else 2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2309for as_dir in $PATH 2310do 2311 IFS=$as_save_IFS 2312 test -z "$as_dir" && as_dir=. 2313 for ac_exec_ext in '' $ac_executable_extensions; do 2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2315 ac_cv_prog_ac_ct_CC="gcc" 2316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2317 break 2 2318 fi 2319done 2320 done 2321IFS=$as_save_IFS 2322 2323fi 2324fi 2325ac_ct_CC=$ac_cv_prog_ac_ct_CC 2326if test -n "$ac_ct_CC"; then 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2328$as_echo "$ac_ct_CC" >&6; } 2329else 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2331$as_echo "no" >&6; } 2332fi 2333 2334 if test "x$ac_ct_CC" = x; then 2335 CC="" 2336 else 2337 case $cross_compiling:$ac_tool_warned in 2338yes:) 2339{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2341ac_tool_warned=yes ;; 2342esac 2343 CC=$ac_ct_CC 2344 fi 2345else 2346 CC="$ac_cv_prog_CC" 2347fi 2348 2349if test -z "$CC"; then 2350 if test -n "$ac_tool_prefix"; then 2351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2352set dummy ${ac_tool_prefix}cc; ac_word=$2 2353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2354$as_echo_n "checking for $ac_word... " >&6; } 2355if ${ac_cv_prog_CC+:} false; then : 2356 $as_echo_n "(cached) " >&6 2357else 2358 if test -n "$CC"; then 2359 ac_cv_prog_CC="$CC" # Let the user override the test. 2360else 2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2362for as_dir in $PATH 2363do 2364 IFS=$as_save_IFS 2365 test -z "$as_dir" && as_dir=. 2366 for ac_exec_ext in '' $ac_executable_extensions; do 2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2368 ac_cv_prog_CC="${ac_tool_prefix}cc" 2369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2370 break 2 2371 fi 2372done 2373 done 2374IFS=$as_save_IFS 2375 2376fi 2377fi 2378CC=$ac_cv_prog_CC 2379if test -n "$CC"; then 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2381$as_echo "$CC" >&6; } 2382else 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2384$as_echo "no" >&6; } 2385fi 2386 2387 2388 fi 2389fi 2390if test -z "$CC"; then 2391 # Extract the first word of "cc", so it can be a program name with args. 2392set dummy cc; ac_word=$2 2393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2394$as_echo_n "checking for $ac_word... " >&6; } 2395if ${ac_cv_prog_CC+:} false; then : 2396 $as_echo_n "(cached) " >&6 2397else 2398 if test -n "$CC"; then 2399 ac_cv_prog_CC="$CC" # Let the user override the test. 2400else 2401 ac_prog_rejected=no 2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403for as_dir in $PATH 2404do 2405 IFS=$as_save_IFS 2406 test -z "$as_dir" && as_dir=. 2407 for ac_exec_ext in '' $ac_executable_extensions; do 2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2409 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2410 ac_prog_rejected=yes 2411 continue 2412 fi 2413 ac_cv_prog_CC="cc" 2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2415 break 2 2416 fi 2417done 2418 done 2419IFS=$as_save_IFS 2420 2421if test $ac_prog_rejected = yes; then 2422 # We found a bogon in the path, so make sure we never use it. 2423 set dummy $ac_cv_prog_CC 2424 shift 2425 if test $# != 0; then 2426 # We chose a different compiler from the bogus one. 2427 # However, it has the same basename, so the bogon will be chosen 2428 # first if we set CC to just the basename; use the full file name. 2429 shift 2430 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2431 fi 2432fi 2433fi 2434fi 2435CC=$ac_cv_prog_CC 2436if test -n "$CC"; then 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2438$as_echo "$CC" >&6; } 2439else 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2441$as_echo "no" >&6; } 2442fi 2443 2444 2445fi 2446if test -z "$CC"; then 2447 if test -n "$ac_tool_prefix"; then 2448 for ac_prog in cl.exe 2449 do 2450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2451set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2453$as_echo_n "checking for $ac_word... " >&6; } 2454if ${ac_cv_prog_CC+:} false; then : 2455 $as_echo_n "(cached) " >&6 2456else 2457 if test -n "$CC"; then 2458 ac_cv_prog_CC="$CC" # Let the user override the test. 2459else 2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2461for as_dir in $PATH 2462do 2463 IFS=$as_save_IFS 2464 test -z "$as_dir" && as_dir=. 2465 for ac_exec_ext in '' $ac_executable_extensions; do 2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2467 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2469 break 2 2470 fi 2471done 2472 done 2473IFS=$as_save_IFS 2474 2475fi 2476fi 2477CC=$ac_cv_prog_CC 2478if test -n "$CC"; then 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2480$as_echo "$CC" >&6; } 2481else 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2483$as_echo "no" >&6; } 2484fi 2485 2486 2487 test -n "$CC" && break 2488 done 2489fi 2490if test -z "$CC"; then 2491 ac_ct_CC=$CC 2492 for ac_prog in cl.exe 2493do 2494 # Extract the first word of "$ac_prog", so it can be a program name with args. 2495set dummy $ac_prog; ac_word=$2 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2497$as_echo_n "checking for $ac_word... " >&6; } 2498if ${ac_cv_prog_ac_ct_CC+:} false; then : 2499 $as_echo_n "(cached) " >&6 2500else 2501 if test -n "$ac_ct_CC"; then 2502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2503else 2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2505for as_dir in $PATH 2506do 2507 IFS=$as_save_IFS 2508 test -z "$as_dir" && as_dir=. 2509 for ac_exec_ext in '' $ac_executable_extensions; do 2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2511 ac_cv_prog_ac_ct_CC="$ac_prog" 2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2513 break 2 2514 fi 2515done 2516 done 2517IFS=$as_save_IFS 2518 2519fi 2520fi 2521ac_ct_CC=$ac_cv_prog_ac_ct_CC 2522if test -n "$ac_ct_CC"; then 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2524$as_echo "$ac_ct_CC" >&6; } 2525else 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2527$as_echo "no" >&6; } 2528fi 2529 2530 2531 test -n "$ac_ct_CC" && break 2532done 2533 2534 if test "x$ac_ct_CC" = x; then 2535 CC="" 2536 else 2537 case $cross_compiling:$ac_tool_warned in 2538yes:) 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2541ac_tool_warned=yes ;; 2542esac 2543 CC=$ac_ct_CC 2544 fi 2545fi 2546 2547fi 2548 2549 2550test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2552as_fn_error $? "no acceptable C compiler found in \$PATH 2553See \`config.log' for more details" "$LINENO" 5; } 2554 2555# Provide some information about the compiler. 2556$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2557set X $ac_compile 2558ac_compiler=$2 2559for ac_option in --version -v -V -qversion; do 2560 { { ac_try="$ac_compiler $ac_option >&5" 2561case "(($ac_try" in 2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2563 *) ac_try_echo=$ac_try;; 2564esac 2565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2566$as_echo "$ac_try_echo"; } >&5 2567 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2568 ac_status=$? 2569 if test -s conftest.err; then 2570 sed '10a\ 2571... rest of stderr output deleted ... 2572 10q' conftest.err >conftest.er1 2573 cat conftest.er1 >&5 2574 fi 2575 rm -f conftest.er1 conftest.err 2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2577 test $ac_status = 0; } 2578done 2579 2580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2581/* end confdefs.h. */ 2582 2583int 2584main () 2585{ 2586 2587 ; 2588 return 0; 2589} 2590_ACEOF 2591ac_clean_files_save=$ac_clean_files 2592ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2593# Try to create an executable without -o first, disregard a.out. 2594# It will help us diagnose broken compilers, and finding out an intuition 2595# of exeext. 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2597$as_echo_n "checking whether the C compiler works... " >&6; } 2598ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2599 2600# The possible output files: 2601ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2602 2603ac_rmfiles= 2604for ac_file in $ac_files 2605do 2606 case $ac_file in 2607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2608 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2609 esac 2610done 2611rm -f $ac_rmfiles 2612 2613if { { ac_try="$ac_link_default" 2614case "(($ac_try" in 2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2616 *) ac_try_echo=$ac_try;; 2617esac 2618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2619$as_echo "$ac_try_echo"; } >&5 2620 (eval "$ac_link_default") 2>&5 2621 ac_status=$? 2622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2623 test $ac_status = 0; }; then : 2624 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2625# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2626# in a Makefile. We should not override ac_cv_exeext if it was cached, 2627# so that the user can short-circuit this test for compilers unknown to 2628# Autoconf. 2629for ac_file in $ac_files '' 2630do 2631 test -f "$ac_file" || continue 2632 case $ac_file in 2633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2634 ;; 2635 [ab].out ) 2636 # We found the default executable, but exeext='' is most 2637 # certainly right. 2638 break;; 2639 *.* ) 2640 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2641 then :; else 2642 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2643 fi 2644 # We set ac_cv_exeext here because the later test for it is not 2645 # safe: cross compilers may not add the suffix if given an `-o' 2646 # argument, so we may need to know it at that point already. 2647 # Even if this section looks crufty: it has the advantage of 2648 # actually working. 2649 break;; 2650 * ) 2651 break;; 2652 esac 2653done 2654test "$ac_cv_exeext" = no && ac_cv_exeext= 2655 2656else 2657 ac_file='' 2658fi 2659if test -z "$ac_file"; then : 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2661$as_echo "no" >&6; } 2662$as_echo "$as_me: failed program was:" >&5 2663sed 's/^/| /' conftest.$ac_ext >&5 2664 2665{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2667as_fn_error 77 "C compiler cannot create executables 2668See \`config.log' for more details" "$LINENO" 5; } 2669else 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2671$as_echo "yes" >&6; } 2672fi 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2674$as_echo_n "checking for C compiler default output file name... " >&6; } 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2676$as_echo "$ac_file" >&6; } 2677ac_exeext=$ac_cv_exeext 2678 2679rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2680ac_clean_files=$ac_clean_files_save 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2682$as_echo_n "checking for suffix of executables... " >&6; } 2683if { { ac_try="$ac_link" 2684case "(($ac_try" in 2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2686 *) ac_try_echo=$ac_try;; 2687esac 2688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2689$as_echo "$ac_try_echo"; } >&5 2690 (eval "$ac_link") 2>&5 2691 ac_status=$? 2692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2693 test $ac_status = 0; }; then : 2694 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2695# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2696# work properly (i.e., refer to `conftest.exe'), while it won't with 2697# `rm'. 2698for ac_file in conftest.exe conftest conftest.*; do 2699 test -f "$ac_file" || continue 2700 case $ac_file in 2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2702 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2703 break;; 2704 * ) break;; 2705 esac 2706done 2707else 2708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2710as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2711See \`config.log' for more details" "$LINENO" 5; } 2712fi 2713rm -f conftest conftest$ac_cv_exeext 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2715$as_echo "$ac_cv_exeext" >&6; } 2716 2717rm -f conftest.$ac_ext 2718EXEEXT=$ac_cv_exeext 2719ac_exeext=$EXEEXT 2720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2721/* end confdefs.h. */ 2722#include <stdio.h> 2723int 2724main () 2725{ 2726FILE *f = fopen ("conftest.out", "w"); 2727 return ferror (f) || fclose (f) != 0; 2728 2729 ; 2730 return 0; 2731} 2732_ACEOF 2733ac_clean_files="$ac_clean_files conftest.out" 2734# Check that the compiler produces executables we can run. If not, either 2735# the compiler is broken, or we cross compile. 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2737$as_echo_n "checking whether we are cross compiling... " >&6; } 2738if test "$cross_compiling" != yes; then 2739 { { ac_try="$ac_link" 2740case "(($ac_try" in 2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2742 *) ac_try_echo=$ac_try;; 2743esac 2744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2745$as_echo "$ac_try_echo"; } >&5 2746 (eval "$ac_link") 2>&5 2747 ac_status=$? 2748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2749 test $ac_status = 0; } 2750 if { ac_try='./conftest$ac_cv_exeext' 2751 { { case "(($ac_try" in 2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2753 *) ac_try_echo=$ac_try;; 2754esac 2755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2756$as_echo "$ac_try_echo"; } >&5 2757 (eval "$ac_try") 2>&5 2758 ac_status=$? 2759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2760 test $ac_status = 0; }; }; then 2761 cross_compiling=no 2762 else 2763 if test "$cross_compiling" = maybe; then 2764 cross_compiling=yes 2765 else 2766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2768as_fn_error $? "cannot run C compiled programs. 2769If you meant to cross compile, use \`--host'. 2770See \`config.log' for more details" "$LINENO" 5; } 2771 fi 2772 fi 2773fi 2774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2775$as_echo "$cross_compiling" >&6; } 2776 2777rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2778ac_clean_files=$ac_clean_files_save 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2780$as_echo_n "checking for suffix of object files... " >&6; } 2781if ${ac_cv_objext+:} false; then : 2782 $as_echo_n "(cached) " >&6 2783else 2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2785/* end confdefs.h. */ 2786 2787int 2788main () 2789{ 2790 2791 ; 2792 return 0; 2793} 2794_ACEOF 2795rm -f conftest.o conftest.obj 2796if { { ac_try="$ac_compile" 2797case "(($ac_try" in 2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2799 *) ac_try_echo=$ac_try;; 2800esac 2801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2802$as_echo "$ac_try_echo"; } >&5 2803 (eval "$ac_compile") 2>&5 2804 ac_status=$? 2805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2806 test $ac_status = 0; }; then : 2807 for ac_file in conftest.o conftest.obj conftest.*; do 2808 test -f "$ac_file" || continue; 2809 case $ac_file in 2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2811 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2812 break;; 2813 esac 2814done 2815else 2816 $as_echo "$as_me: failed program was:" >&5 2817sed 's/^/| /' conftest.$ac_ext >&5 2818 2819{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2821as_fn_error $? "cannot compute suffix of object files: cannot compile 2822See \`config.log' for more details" "$LINENO" 5; } 2823fi 2824rm -f conftest.$ac_cv_objext conftest.$ac_ext 2825fi 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2827$as_echo "$ac_cv_objext" >&6; } 2828OBJEXT=$ac_cv_objext 2829ac_objext=$OBJEXT 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2831$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2832if ${ac_cv_c_compiler_gnu+:} false; then : 2833 $as_echo_n "(cached) " >&6 2834else 2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2836/* end confdefs.h. */ 2837 2838int 2839main () 2840{ 2841#ifndef __GNUC__ 2842 choke me 2843#endif 2844 2845 ; 2846 return 0; 2847} 2848_ACEOF 2849if ac_fn_c_try_compile "$LINENO"; then : 2850 ac_compiler_gnu=yes 2851else 2852 ac_compiler_gnu=no 2853fi 2854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2855ac_cv_c_compiler_gnu=$ac_compiler_gnu 2856 2857fi 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2859$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2860if test $ac_compiler_gnu = yes; then 2861 GCC=yes 2862else 2863 GCC= 2864fi 2865ac_test_CFLAGS=${CFLAGS+set} 2866ac_save_CFLAGS=$CFLAGS 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2868$as_echo_n "checking whether $CC accepts -g... " >&6; } 2869if ${ac_cv_prog_cc_g+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871else 2872 ac_save_c_werror_flag=$ac_c_werror_flag 2873 ac_c_werror_flag=yes 2874 ac_cv_prog_cc_g=no 2875 CFLAGS="-g" 2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2877/* end confdefs.h. */ 2878 2879int 2880main () 2881{ 2882 2883 ; 2884 return 0; 2885} 2886_ACEOF 2887if ac_fn_c_try_compile "$LINENO"; then : 2888 ac_cv_prog_cc_g=yes 2889else 2890 CFLAGS="" 2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2892/* end confdefs.h. */ 2893 2894int 2895main () 2896{ 2897 2898 ; 2899 return 0; 2900} 2901_ACEOF 2902if ac_fn_c_try_compile "$LINENO"; then : 2903 2904else 2905 ac_c_werror_flag=$ac_save_c_werror_flag 2906 CFLAGS="-g" 2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2908/* end confdefs.h. */ 2909 2910int 2911main () 2912{ 2913 2914 ; 2915 return 0; 2916} 2917_ACEOF 2918if ac_fn_c_try_compile "$LINENO"; then : 2919 ac_cv_prog_cc_g=yes 2920fi 2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2922fi 2923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2924fi 2925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2926 ac_c_werror_flag=$ac_save_c_werror_flag 2927fi 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2929$as_echo "$ac_cv_prog_cc_g" >&6; } 2930if test "$ac_test_CFLAGS" = set; then 2931 CFLAGS=$ac_save_CFLAGS 2932elif test $ac_cv_prog_cc_g = yes; then 2933 if test "$GCC" = yes; then 2934 CFLAGS="-g -O2" 2935 else 2936 CFLAGS="-g" 2937 fi 2938else 2939 if test "$GCC" = yes; then 2940 CFLAGS="-O2" 2941 else 2942 CFLAGS= 2943 fi 2944fi 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2946$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2947if ${ac_cv_prog_cc_c89+:} false; then : 2948 $as_echo_n "(cached) " >&6 2949else 2950 ac_cv_prog_cc_c89=no 2951ac_save_CC=$CC 2952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2953/* end confdefs.h. */ 2954#include <stdarg.h> 2955#include <stdio.h> 2956#include <sys/types.h> 2957#include <sys/stat.h> 2958/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2959struct buf { int x; }; 2960FILE * (*rcsopen) (struct buf *, struct stat *, int); 2961static char *e (p, i) 2962 char **p; 2963 int i; 2964{ 2965 return p[i]; 2966} 2967static char *f (char * (*g) (char **, int), char **p, ...) 2968{ 2969 char *s; 2970 va_list v; 2971 va_start (v,p); 2972 s = g (p, va_arg (v,int)); 2973 va_end (v); 2974 return s; 2975} 2976 2977/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2978 function prototypes and stuff, but not '\xHH' hex character constants. 2979 These don't provoke an error unfortunately, instead are silently treated 2980 as 'x'. The following induces an error, until -std is added to get 2981 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2982 array size at least. It's necessary to write '\x00'==0 to get something 2983 that's true only with -std. */ 2984int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2985 2986/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2987 inside strings and character constants. */ 2988#define FOO(x) 'x' 2989int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2990 2991int test (int i, double x); 2992struct s1 {int (*f) (int a);}; 2993struct s2 {int (*f) (double a);}; 2994int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2995int argc; 2996char **argv; 2997int 2998main () 2999{ 3000return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3001 ; 3002 return 0; 3003} 3004_ACEOF 3005for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3006 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3007do 3008 CC="$ac_save_CC $ac_arg" 3009 if ac_fn_c_try_compile "$LINENO"; then : 3010 ac_cv_prog_cc_c89=$ac_arg 3011fi 3012rm -f core conftest.err conftest.$ac_objext 3013 test "x$ac_cv_prog_cc_c89" != "xno" && break 3014done 3015rm -f conftest.$ac_ext 3016CC=$ac_save_CC 3017 3018fi 3019# AC_CACHE_VAL 3020case "x$ac_cv_prog_cc_c89" in 3021 x) 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3023$as_echo "none needed" >&6; } ;; 3024 xno) 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3026$as_echo "unsupported" >&6; } ;; 3027 *) 3028 CC="$CC $ac_cv_prog_cc_c89" 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3030$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3031esac 3032if test "x$ac_cv_prog_cc_c89" != xno; then : 3033 3034fi 3035 3036ac_ext=c 3037ac_cpp='$CPP $CPPFLAGS' 3038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3040ac_compiler_gnu=$ac_cv_c_compiler_gnu 3041 3042ac_ext=c 3043ac_cpp='$CPP $CPPFLAGS' 3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3046ac_compiler_gnu=$ac_cv_c_compiler_gnu 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3048$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3049if ${am_cv_prog_cc_c_o+:} false; then : 3050 $as_echo_n "(cached) " >&6 3051else 3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3053/* end confdefs.h. */ 3054 3055int 3056main () 3057{ 3058 3059 ; 3060 return 0; 3061} 3062_ACEOF 3063 # Make sure it works both with $CC and with simple cc. 3064 # Following AC_PROG_CC_C_O, we do the test twice because some 3065 # compilers refuse to overwrite an existing .o file with -o, 3066 # though they will create one. 3067 am_cv_prog_cc_c_o=yes 3068 for am_i in 1 2; do 3069 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3070 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3071 ac_status=$? 3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3073 (exit $ac_status); } \ 3074 && test -f conftest2.$ac_objext; then 3075 : OK 3076 else 3077 am_cv_prog_cc_c_o=no 3078 break 3079 fi 3080 done 3081 rm -f core conftest* 3082 unset am_i 3083fi 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3085$as_echo "$am_cv_prog_cc_c_o" >&6; } 3086if test "$am_cv_prog_cc_c_o" != yes; then 3087 # Losing compiler, so override with the script. 3088 # FIXME: It is wrong to rewrite CC. 3089 # But if we don't then we get into trouble of one sort or another. 3090 # A longer-term fix would be to have automake use am__CC in this case, 3091 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3092 CC="$am_aux_dir/compile $CC" 3093fi 3094ac_ext=c 3095ac_cpp='$CPP $CPPFLAGS' 3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3098ac_compiler_gnu=$ac_cv_c_compiler_gnu 3099 3100 3101 3102ac_ext=c 3103ac_cpp='$CPP $CPPFLAGS' 3104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3106ac_compiler_gnu=$ac_cv_c_compiler_gnu 3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3108$as_echo_n "checking how to run the C preprocessor... " >&6; } 3109# On Suns, sometimes $CPP names a directory. 3110if test -n "$CPP" && test -d "$CPP"; then 3111 CPP= 3112fi 3113if test -z "$CPP"; then 3114 if ${ac_cv_prog_CPP+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 # Double quotes because CPP needs to be expanded 3118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3119 do 3120 ac_preproc_ok=false 3121for ac_c_preproc_warn_flag in '' yes 3122do 3123 # Use a header file that comes with gcc, so configuring glibc 3124 # with a fresh cross-compiler works. 3125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3126 # <limits.h> exists even on freestanding compilers. 3127 # On the NeXT, cc -E runs the code through the compiler's parser, 3128 # not just through cpp. "Syntax error" is here to catch this case. 3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3130/* end confdefs.h. */ 3131#ifdef __STDC__ 3132# include <limits.h> 3133#else 3134# include <assert.h> 3135#endif 3136 Syntax error 3137_ACEOF 3138if ac_fn_c_try_cpp "$LINENO"; then : 3139 3140else 3141 # Broken: fails on valid input. 3142continue 3143fi 3144rm -f conftest.err conftest.i conftest.$ac_ext 3145 3146 # OK, works on sane cases. Now check whether nonexistent headers 3147 # can be detected and how. 3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3149/* end confdefs.h. */ 3150#include <ac_nonexistent.h> 3151_ACEOF 3152if ac_fn_c_try_cpp "$LINENO"; then : 3153 # Broken: success on invalid input. 3154continue 3155else 3156 # Passes both tests. 3157ac_preproc_ok=: 3158break 3159fi 3160rm -f conftest.err conftest.i conftest.$ac_ext 3161 3162done 3163# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3164rm -f conftest.i conftest.err conftest.$ac_ext 3165if $ac_preproc_ok; then : 3166 break 3167fi 3168 3169 done 3170 ac_cv_prog_CPP=$CPP 3171 3172fi 3173 CPP=$ac_cv_prog_CPP 3174else 3175 ac_cv_prog_CPP=$CPP 3176fi 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3178$as_echo "$CPP" >&6; } 3179ac_preproc_ok=false 3180for ac_c_preproc_warn_flag in '' yes 3181do 3182 # Use a header file that comes with gcc, so configuring glibc 3183 # with a fresh cross-compiler works. 3184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3185 # <limits.h> exists even on freestanding compilers. 3186 # On the NeXT, cc -E runs the code through the compiler's parser, 3187 # not just through cpp. "Syntax error" is here to catch this case. 3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3189/* end confdefs.h. */ 3190#ifdef __STDC__ 3191# include <limits.h> 3192#else 3193# include <assert.h> 3194#endif 3195 Syntax error 3196_ACEOF 3197if ac_fn_c_try_cpp "$LINENO"; then : 3198 3199else 3200 # Broken: fails on valid input. 3201continue 3202fi 3203rm -f conftest.err conftest.i conftest.$ac_ext 3204 3205 # OK, works on sane cases. Now check whether nonexistent headers 3206 # can be detected and how. 3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3208/* end confdefs.h. */ 3209#include <ac_nonexistent.h> 3210_ACEOF 3211if ac_fn_c_try_cpp "$LINENO"; then : 3212 # Broken: success on invalid input. 3213continue 3214else 3215 # Passes both tests. 3216ac_preproc_ok=: 3217break 3218fi 3219rm -f conftest.err conftest.i conftest.$ac_ext 3220 3221done 3222# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3223rm -f conftest.i conftest.err conftest.$ac_ext 3224if $ac_preproc_ok; then : 3225 3226else 3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3229as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3230See \`config.log' for more details" "$LINENO" 5; } 3231fi 3232 3233ac_ext=c 3234ac_cpp='$CPP $CPPFLAGS' 3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3237ac_compiler_gnu=$ac_cv_c_compiler_gnu 3238 3239 3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3241$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3242if ${ac_cv_path_GREP+:} false; then : 3243 $as_echo_n "(cached) " >&6 3244else 3245 if test -z "$GREP"; then 3246 ac_path_GREP_found=false 3247 # Loop through the user's path and test for each of PROGNAME-LIST 3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3249for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3250do 3251 IFS=$as_save_IFS 3252 test -z "$as_dir" && as_dir=. 3253 for ac_prog in grep ggrep; do 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3256 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3257# Check for GNU ac_path_GREP and select it if it is found. 3258 # Check for GNU $ac_path_GREP 3259case `"$ac_path_GREP" --version 2>&1` in 3260*GNU*) 3261 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3262*) 3263 ac_count=0 3264 $as_echo_n 0123456789 >"conftest.in" 3265 while : 3266 do 3267 cat "conftest.in" "conftest.in" >"conftest.tmp" 3268 mv "conftest.tmp" "conftest.in" 3269 cp "conftest.in" "conftest.nl" 3270 $as_echo 'GREP' >> "conftest.nl" 3271 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3273 as_fn_arith $ac_count + 1 && ac_count=$as_val 3274 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3275 # Best one so far, save it but keep looking for a better one 3276 ac_cv_path_GREP="$ac_path_GREP" 3277 ac_path_GREP_max=$ac_count 3278 fi 3279 # 10*(2^10) chars as input seems more than enough 3280 test $ac_count -gt 10 && break 3281 done 3282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3283esac 3284 3285 $ac_path_GREP_found && break 3 3286 done 3287 done 3288 done 3289IFS=$as_save_IFS 3290 if test -z "$ac_cv_path_GREP"; then 3291 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3292 fi 3293else 3294 ac_cv_path_GREP=$GREP 3295fi 3296 3297fi 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3299$as_echo "$ac_cv_path_GREP" >&6; } 3300 GREP="$ac_cv_path_GREP" 3301 3302 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3304$as_echo_n "checking for egrep... " >&6; } 3305if ${ac_cv_path_EGREP+:} false; then : 3306 $as_echo_n "(cached) " >&6 3307else 3308 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3309 then ac_cv_path_EGREP="$GREP -E" 3310 else 3311 if test -z "$EGREP"; then 3312 ac_path_EGREP_found=false 3313 # Loop through the user's path and test for each of PROGNAME-LIST 3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3316do 3317 IFS=$as_save_IFS 3318 test -z "$as_dir" && as_dir=. 3319 for ac_prog in egrep; do 3320 for ac_exec_ext in '' $ac_executable_extensions; do 3321 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3322 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3323# Check for GNU ac_path_EGREP and select it if it is found. 3324 # Check for GNU $ac_path_EGREP 3325case `"$ac_path_EGREP" --version 2>&1` in 3326*GNU*) 3327 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3328*) 3329 ac_count=0 3330 $as_echo_n 0123456789 >"conftest.in" 3331 while : 3332 do 3333 cat "conftest.in" "conftest.in" >"conftest.tmp" 3334 mv "conftest.tmp" "conftest.in" 3335 cp "conftest.in" "conftest.nl" 3336 $as_echo 'EGREP' >> "conftest.nl" 3337 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3339 as_fn_arith $ac_count + 1 && ac_count=$as_val 3340 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3341 # Best one so far, save it but keep looking for a better one 3342 ac_cv_path_EGREP="$ac_path_EGREP" 3343 ac_path_EGREP_max=$ac_count 3344 fi 3345 # 10*(2^10) chars as input seems more than enough 3346 test $ac_count -gt 10 && break 3347 done 3348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3349esac 3350 3351 $ac_path_EGREP_found && break 3 3352 done 3353 done 3354 done 3355IFS=$as_save_IFS 3356 if test -z "$ac_cv_path_EGREP"; then 3357 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3358 fi 3359else 3360 ac_cv_path_EGREP=$EGREP 3361fi 3362 3363 fi 3364fi 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3366$as_echo "$ac_cv_path_EGREP" >&6; } 3367 EGREP="$ac_cv_path_EGREP" 3368 3369 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3371$as_echo_n "checking for ANSI C header files... " >&6; } 3372if ${ac_cv_header_stdc+:} false; then : 3373 $as_echo_n "(cached) " >&6 3374else 3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3376/* end confdefs.h. */ 3377#include <stdlib.h> 3378#include <stdarg.h> 3379#include <string.h> 3380#include <float.h> 3381 3382int 3383main () 3384{ 3385 3386 ; 3387 return 0; 3388} 3389_ACEOF 3390if ac_fn_c_try_compile "$LINENO"; then : 3391 ac_cv_header_stdc=yes 3392else 3393 ac_cv_header_stdc=no 3394fi 3395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3396 3397if test $ac_cv_header_stdc = yes; then 3398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3400/* end confdefs.h. */ 3401#include <string.h> 3402 3403_ACEOF 3404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3405 $EGREP "memchr" >/dev/null 2>&1; then : 3406 3407else 3408 ac_cv_header_stdc=no 3409fi 3410rm -f conftest* 3411 3412fi 3413 3414if test $ac_cv_header_stdc = yes; then 3415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3417/* end confdefs.h. */ 3418#include <stdlib.h> 3419 3420_ACEOF 3421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3422 $EGREP "free" >/dev/null 2>&1; then : 3423 3424else 3425 ac_cv_header_stdc=no 3426fi 3427rm -f conftest* 3428 3429fi 3430 3431if test $ac_cv_header_stdc = yes; then 3432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3433 if test "$cross_compiling" = yes; then : 3434 : 3435else 3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3437/* end confdefs.h. */ 3438#include <ctype.h> 3439#include <stdlib.h> 3440#if ((' ' & 0x0FF) == 0x020) 3441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3443#else 3444# define ISLOWER(c) \ 3445 (('a' <= (c) && (c) <= 'i') \ 3446 || ('j' <= (c) && (c) <= 'r') \ 3447 || ('s' <= (c) && (c) <= 'z')) 3448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3449#endif 3450 3451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3452int 3453main () 3454{ 3455 int i; 3456 for (i = 0; i < 256; i++) 3457 if (XOR (islower (i), ISLOWER (i)) 3458 || toupper (i) != TOUPPER (i)) 3459 return 2; 3460 return 0; 3461} 3462_ACEOF 3463if ac_fn_c_try_run "$LINENO"; then : 3464 3465else 3466 ac_cv_header_stdc=no 3467fi 3468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3469 conftest.$ac_objext conftest.beam conftest.$ac_ext 3470fi 3471 3472fi 3473fi 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3475$as_echo "$ac_cv_header_stdc" >&6; } 3476if test $ac_cv_header_stdc = yes; then 3477 3478$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3479 3480fi 3481 3482# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3483for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3484 inttypes.h stdint.h unistd.h 3485do : 3486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3487ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3488" 3489if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3490 cat >>confdefs.h <<_ACEOF 3491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3492_ACEOF 3493 3494fi 3495 3496done 3497 3498 3499 3500 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3501if test "x$ac_cv_header_minix_config_h" = xyes; then : 3502 MINIX=yes 3503else 3504 MINIX= 3505fi 3506 3507 3508 if test "$MINIX" = yes; then 3509 3510$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3511 3512 3513$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3514 3515 3516$as_echo "#define _MINIX 1" >>confdefs.h 3517 3518 fi 3519 3520 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3522$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3523if ${ac_cv_safe_to_define___extensions__+:} false; then : 3524 $as_echo_n "(cached) " >&6 3525else 3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528 3529# define __EXTENSIONS__ 1 3530 $ac_includes_default 3531int 3532main () 3533{ 3534 3535 ; 3536 return 0; 3537} 3538_ACEOF 3539if ac_fn_c_try_compile "$LINENO"; then : 3540 ac_cv_safe_to_define___extensions__=yes 3541else 3542 ac_cv_safe_to_define___extensions__=no 3543fi 3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3545fi 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3547$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3548 test $ac_cv_safe_to_define___extensions__ = yes && 3549 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3550 3551 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3552 3553 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3554 3555 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3556 3557 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3558 3559 3560 3561# Initialize Automake 3562am__api_version='1.14' 3563 3564ac_aux_dir= 3565for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3566 if test -f "$ac_dir/install-sh"; then 3567 ac_aux_dir=$ac_dir 3568 ac_install_sh="$ac_aux_dir/install-sh -c" 3569 break 3570 elif test -f "$ac_dir/install.sh"; then 3571 ac_aux_dir=$ac_dir 3572 ac_install_sh="$ac_aux_dir/install.sh -c" 3573 break 3574 elif test -f "$ac_dir/shtool"; then 3575 ac_aux_dir=$ac_dir 3576 ac_install_sh="$ac_aux_dir/shtool install -c" 3577 break 3578 fi 3579done 3580if test -z "$ac_aux_dir"; then 3581 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3582fi 3583 3584# These three variables are undocumented and unsupported, 3585# and are intended to be withdrawn in a future Autoconf release. 3586# They can cause serious problems if a builder's source tree is in a directory 3587# whose full name contains unusual characters. 3588ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3589ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3590ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3591 3592 3593# Find a good install program. We prefer a C program (faster), 3594# so one script is as good as another. But avoid the broken or 3595# incompatible versions: 3596# SysV /etc/install, /usr/sbin/install 3597# SunOS /usr/etc/install 3598# IRIX /sbin/install 3599# AIX /bin/install 3600# AmigaOS /C/install, which installs bootblocks on floppy discs 3601# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3602# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3603# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3604# OS/2's system install, which has a completely different semantic 3605# ./install, which can be erroneously created by make from ./install.sh. 3606# Reject install programs that cannot install multiple files. 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3608$as_echo_n "checking for a BSD-compatible install... " >&6; } 3609if test -z "$INSTALL"; then 3610if ${ac_cv_path_install+:} false; then : 3611 $as_echo_n "(cached) " >&6 3612else 3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3614for as_dir in $PATH 3615do 3616 IFS=$as_save_IFS 3617 test -z "$as_dir" && as_dir=. 3618 # Account for people who put trailing slashes in PATH elements. 3619case $as_dir/ in #(( 3620 ./ | .// | /[cC]/* | \ 3621 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3622 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3623 /usr/ucb/* ) ;; 3624 *) 3625 # OSF1 and SCO ODT 3.0 have their own names for install. 3626 # Don't use installbsd from OSF since it installs stuff as root 3627 # by default. 3628 for ac_prog in ginstall scoinst install; do 3629 for ac_exec_ext in '' $ac_executable_extensions; do 3630 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3631 if test $ac_prog = install && 3632 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3633 # AIX install. It has an incompatible calling convention. 3634 : 3635 elif test $ac_prog = install && 3636 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3637 # program-specific install script used by HP pwplus--don't use. 3638 : 3639 else 3640 rm -rf conftest.one conftest.two conftest.dir 3641 echo one > conftest.one 3642 echo two > conftest.two 3643 mkdir conftest.dir 3644 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3645 test -s conftest.one && test -s conftest.two && 3646 test -s conftest.dir/conftest.one && 3647 test -s conftest.dir/conftest.two 3648 then 3649 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3650 break 3 3651 fi 3652 fi 3653 fi 3654 done 3655 done 3656 ;; 3657esac 3658 3659 done 3660IFS=$as_save_IFS 3661 3662rm -rf conftest.one conftest.two conftest.dir 3663 3664fi 3665 if test "${ac_cv_path_install+set}" = set; then 3666 INSTALL=$ac_cv_path_install 3667 else 3668 # As a last resort, use the slow shell script. Don't cache a 3669 # value for INSTALL within a source directory, because that will 3670 # break other packages using the cache if that directory is 3671 # removed, or if the value is a relative name. 3672 INSTALL=$ac_install_sh 3673 fi 3674fi 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3676$as_echo "$INSTALL" >&6; } 3677 3678# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3679# It thinks the first close brace ends the variable substitution. 3680test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3681 3682test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3683 3684test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3685 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3687$as_echo_n "checking whether build environment is sane... " >&6; } 3688# Reject unsafe characters in $srcdir or the absolute working directory 3689# name. Accept space and tab only in the latter. 3690am_lf=' 3691' 3692case `pwd` in 3693 *[\\\"\#\$\&\'\`$am_lf]*) 3694 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3695esac 3696case $srcdir in 3697 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3698 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3699esac 3700 3701# Do 'set' in a subshell so we don't clobber the current shell's 3702# arguments. Must try -L first in case configure is actually a 3703# symlink; some systems play weird games with the mod time of symlinks 3704# (eg FreeBSD returns the mod time of the symlink's containing 3705# directory). 3706if ( 3707 am_has_slept=no 3708 for am_try in 1 2; do 3709 echo "timestamp, slept: $am_has_slept" > conftest.file 3710 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3711 if test "$*" = "X"; then 3712 # -L didn't work. 3713 set X `ls -t "$srcdir/configure" conftest.file` 3714 fi 3715 if test "$*" != "X $srcdir/configure conftest.file" \ 3716 && test "$*" != "X conftest.file $srcdir/configure"; then 3717 3718 # If neither matched, then we have a broken ls. This can happen 3719 # if, for instance, CONFIG_SHELL is bash and it inherits a 3720 # broken ls alias from the environment. This has actually 3721 # happened. Such a system could not be considered "sane". 3722 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3723 alias in your environment" "$LINENO" 5 3724 fi 3725 if test "$2" = conftest.file || test $am_try -eq 2; then 3726 break 3727 fi 3728 # Just in case. 3729 sleep 1 3730 am_has_slept=yes 3731 done 3732 test "$2" = conftest.file 3733 ) 3734then 3735 # Ok. 3736 : 3737else 3738 as_fn_error $? "newly created file is older than distributed files! 3739Check your system clock" "$LINENO" 5 3740fi 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3742$as_echo "yes" >&6; } 3743# If we didn't sleep, we still need to ensure time stamps of config.status and 3744# generated files are strictly newer. 3745am_sleep_pid= 3746if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3747 ( sleep 1 ) & 3748 am_sleep_pid=$! 3749fi 3750 3751rm -f conftest.file 3752 3753test "$program_prefix" != NONE && 3754 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3755# Use a double $ so make ignores it. 3756test "$program_suffix" != NONE && 3757 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3758# Double any \ or $. 3759# By default was `s,x,x', remove it if useless. 3760ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3761program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3762 3763if test x"${MISSING+set}" != xset; then 3764 case $am_aux_dir in 3765 *\ * | *\ *) 3766 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3767 *) 3768 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3769 esac 3770fi 3771# Use eval to expand $SHELL 3772if eval "$MISSING --is-lightweight"; then 3773 am_missing_run="$MISSING " 3774else 3775 am_missing_run= 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3777$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3778fi 3779 3780if test x"${install_sh}" != xset; then 3781 case $am_aux_dir in 3782 *\ * | *\ *) 3783 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3784 *) 3785 install_sh="\${SHELL} $am_aux_dir/install-sh" 3786 esac 3787fi 3788 3789# Installed binaries are usually stripped using 'strip' when the user 3790# run "make install-strip". However 'strip' might not be the right 3791# tool to use in cross-compilation environments, therefore Automake 3792# will honor the 'STRIP' environment variable to overrule this program. 3793if test "$cross_compiling" != no; then 3794 if test -n "$ac_tool_prefix"; then 3795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3796set dummy ${ac_tool_prefix}strip; ac_word=$2 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3798$as_echo_n "checking for $ac_word... " >&6; } 3799if ${ac_cv_prog_STRIP+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 if test -n "$STRIP"; then 3803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3804else 3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3806for as_dir in $PATH 3807do 3808 IFS=$as_save_IFS 3809 test -z "$as_dir" && as_dir=. 3810 for ac_exec_ext in '' $ac_executable_extensions; do 3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3812 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3814 break 2 3815 fi 3816done 3817 done 3818IFS=$as_save_IFS 3819 3820fi 3821fi 3822STRIP=$ac_cv_prog_STRIP 3823if test -n "$STRIP"; then 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3825$as_echo "$STRIP" >&6; } 3826else 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3828$as_echo "no" >&6; } 3829fi 3830 3831 3832fi 3833if test -z "$ac_cv_prog_STRIP"; then 3834 ac_ct_STRIP=$STRIP 3835 # Extract the first word of "strip", so it can be a program name with args. 3836set dummy strip; ac_word=$2 3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3838$as_echo_n "checking for $ac_word... " >&6; } 3839if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3840 $as_echo_n "(cached) " >&6 3841else 3842 if test -n "$ac_ct_STRIP"; then 3843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3844else 3845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3846for as_dir in $PATH 3847do 3848 IFS=$as_save_IFS 3849 test -z "$as_dir" && as_dir=. 3850 for ac_exec_ext in '' $ac_executable_extensions; do 3851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3852 ac_cv_prog_ac_ct_STRIP="strip" 3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3854 break 2 3855 fi 3856done 3857 done 3858IFS=$as_save_IFS 3859 3860fi 3861fi 3862ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3863if test -n "$ac_ct_STRIP"; then 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3865$as_echo "$ac_ct_STRIP" >&6; } 3866else 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3868$as_echo "no" >&6; } 3869fi 3870 3871 if test "x$ac_ct_STRIP" = x; then 3872 STRIP=":" 3873 else 3874 case $cross_compiling:$ac_tool_warned in 3875yes:) 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3878ac_tool_warned=yes ;; 3879esac 3880 STRIP=$ac_ct_STRIP 3881 fi 3882else 3883 STRIP="$ac_cv_prog_STRIP" 3884fi 3885 3886fi 3887INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3888 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3890$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3891if test -z "$MKDIR_P"; then 3892 if ${ac_cv_path_mkdir+:} false; then : 3893 $as_echo_n "(cached) " >&6 3894else 3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3896for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3897do 3898 IFS=$as_save_IFS 3899 test -z "$as_dir" && as_dir=. 3900 for ac_prog in mkdir gmkdir; do 3901 for ac_exec_ext in '' $ac_executable_extensions; do 3902 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3903 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3904 'mkdir (GNU coreutils) '* | \ 3905 'mkdir (coreutils) '* | \ 3906 'mkdir (fileutils) '4.1*) 3907 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3908 break 3;; 3909 esac 3910 done 3911 done 3912 done 3913IFS=$as_save_IFS 3914 3915fi 3916 3917 test -d ./--version && rmdir ./--version 3918 if test "${ac_cv_path_mkdir+set}" = set; then 3919 MKDIR_P="$ac_cv_path_mkdir -p" 3920 else 3921 # As a last resort, use the slow shell script. Don't cache a 3922 # value for MKDIR_P within a source directory, because that will 3923 # break other packages using the cache if that directory is 3924 # removed, or if the value is a relative name. 3925 MKDIR_P="$ac_install_sh -d" 3926 fi 3927fi 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3929$as_echo "$MKDIR_P" >&6; } 3930 3931for ac_prog in gawk mawk nawk awk 3932do 3933 # Extract the first word of "$ac_prog", so it can be a program name with args. 3934set dummy $ac_prog; ac_word=$2 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3936$as_echo_n "checking for $ac_word... " >&6; } 3937if ${ac_cv_prog_AWK+:} false; then : 3938 $as_echo_n "(cached) " >&6 3939else 3940 if test -n "$AWK"; then 3941 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3942else 3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3944for as_dir in $PATH 3945do 3946 IFS=$as_save_IFS 3947 test -z "$as_dir" && as_dir=. 3948 for ac_exec_ext in '' $ac_executable_extensions; do 3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3950 ac_cv_prog_AWK="$ac_prog" 3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3952 break 2 3953 fi 3954done 3955 done 3956IFS=$as_save_IFS 3957 3958fi 3959fi 3960AWK=$ac_cv_prog_AWK 3961if test -n "$AWK"; then 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3963$as_echo "$AWK" >&6; } 3964else 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3966$as_echo "no" >&6; } 3967fi 3968 3969 3970 test -n "$AWK" && break 3971done 3972 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3974$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3975set x ${MAKE-make} 3976ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3977if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3978 $as_echo_n "(cached) " >&6 3979else 3980 cat >conftest.make <<\_ACEOF 3981SHELL = /bin/sh 3982all: 3983 @echo '@@@%%%=$(MAKE)=@@@%%%' 3984_ACEOF 3985# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3986case `${MAKE-make} -f conftest.make 2>/dev/null` in 3987 *@@@%%%=?*=@@@%%%*) 3988 eval ac_cv_prog_make_${ac_make}_set=yes;; 3989 *) 3990 eval ac_cv_prog_make_${ac_make}_set=no;; 3991esac 3992rm -f conftest.make 3993fi 3994if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3996$as_echo "yes" >&6; } 3997 SET_MAKE= 3998else 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4000$as_echo "no" >&6; } 4001 SET_MAKE="MAKE=${MAKE-make}" 4002fi 4003 4004rm -rf .tst 2>/dev/null 4005mkdir .tst 2>/dev/null 4006if test -d .tst; then 4007 am__leading_dot=. 4008else 4009 am__leading_dot=_ 4010fi 4011rmdir .tst 2>/dev/null 4012 4013DEPDIR="${am__leading_dot}deps" 4014 4015ac_config_commands="$ac_config_commands depfiles" 4016 4017 4018am_make=${MAKE-make} 4019cat > confinc << 'END' 4020am__doit: 4021 @echo this is the am__doit target 4022.PHONY: am__doit 4023END 4024# If we don't find an include directive, just comment out the code. 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4026$as_echo_n "checking for style of include used by $am_make... " >&6; } 4027am__include="#" 4028am__quote= 4029_am_result=none 4030# First try GNU make style include. 4031echo "include confinc" > confmf 4032# Ignore all kinds of additional output from 'make'. 4033case `$am_make -s -f confmf 2> /dev/null` in #( 4034*the\ am__doit\ target*) 4035 am__include=include 4036 am__quote= 4037 _am_result=GNU 4038 ;; 4039esac 4040# Now try BSD make style include. 4041if test "$am__include" = "#"; then 4042 echo '.include "confinc"' > confmf 4043 case `$am_make -s -f confmf 2> /dev/null` in #( 4044 *the\ am__doit\ target*) 4045 am__include=.include 4046 am__quote="\"" 4047 _am_result=BSD 4048 ;; 4049 esac 4050fi 4051 4052 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4054$as_echo "$_am_result" >&6; } 4055rm -f confinc confmf 4056 4057# Check whether --enable-dependency-tracking was given. 4058if test "${enable_dependency_tracking+set}" = set; then : 4059 enableval=$enable_dependency_tracking; 4060fi 4061 4062if test "x$enable_dependency_tracking" != xno; then 4063 am_depcomp="$ac_aux_dir/depcomp" 4064 AMDEPBACKSLASH='\' 4065 am__nodep='_no' 4066fi 4067 if test "x$enable_dependency_tracking" != xno; then 4068 AMDEP_TRUE= 4069 AMDEP_FALSE='#' 4070else 4071 AMDEP_TRUE='#' 4072 AMDEP_FALSE= 4073fi 4074 4075 4076# Check whether --enable-silent-rules was given. 4077if test "${enable_silent_rules+set}" = set; then : 4078 enableval=$enable_silent_rules; 4079fi 4080 4081case $enable_silent_rules in # ((( 4082 yes) AM_DEFAULT_VERBOSITY=0;; 4083 no) AM_DEFAULT_VERBOSITY=1;; 4084 *) AM_DEFAULT_VERBOSITY=1;; 4085esac 4086am_make=${MAKE-make} 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4088$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4089if ${am_cv_make_support_nested_variables+:} false; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 if $as_echo 'TRUE=$(BAR$(V)) 4093BAR0=false 4094BAR1=true 4095V=1 4096am__doit: 4097 @$(TRUE) 4098.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4099 am_cv_make_support_nested_variables=yes 4100else 4101 am_cv_make_support_nested_variables=no 4102fi 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4105$as_echo "$am_cv_make_support_nested_variables" >&6; } 4106if test $am_cv_make_support_nested_variables = yes; then 4107 AM_V='$(V)' 4108 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4109else 4110 AM_V=$AM_DEFAULT_VERBOSITY 4111 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4112fi 4113AM_BACKSLASH='\' 4114 4115if test "`cd $srcdir && pwd`" != "`pwd`"; then 4116 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4117 # is not polluted with repeated "-I." 4118 am__isrc=' -I$(srcdir)' 4119 # test to see if srcdir already configured 4120 if test -f $srcdir/config.status; then 4121 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4122 fi 4123fi 4124 4125# test whether we have cygpath 4126if test -z "$CYGPATH_W"; then 4127 if (cygpath --version) >/dev/null 2>/dev/null; then 4128 CYGPATH_W='cygpath -w' 4129 else 4130 CYGPATH_W=echo 4131 fi 4132fi 4133 4134 4135# Define the identity of the package. 4136 PACKAGE='xmodmap' 4137 VERSION='1.0.8' 4138 4139 4140cat >>confdefs.h <<_ACEOF 4141#define PACKAGE "$PACKAGE" 4142_ACEOF 4143 4144 4145cat >>confdefs.h <<_ACEOF 4146#define VERSION "$VERSION" 4147_ACEOF 4148 4149# Some tools Automake needs. 4150 4151ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4152 4153 4154AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4155 4156 4157AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4158 4159 4160AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4161 4162 4163MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4164 4165# For better backward compatibility. To be removed once Automake 1.9.x 4166# dies out for good. For more background, see: 4167# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4168# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4169mkdir_p='$(MKDIR_P)' 4170 4171# We need awk for the "check" target. The system "awk" is bad on 4172# some platforms. 4173# Always define AMTAR for backward compatibility. Yes, it's still used 4174# in the wild :-( We should find a proper way to deprecate it ... 4175AMTAR='$${TAR-tar}' 4176 4177 4178# We'll loop over all known methods to create a tar archive until one works. 4179_am_tools='gnutar pax cpio none' 4180 4181am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4182 4183 4184 4185 4186 4187depcc="$CC" am_compiler_list= 4188 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4190$as_echo_n "checking dependency style of $depcc... " >&6; } 4191if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4192 $as_echo_n "(cached) " >&6 4193else 4194 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4195 # We make a subdir and do the tests there. Otherwise we can end up 4196 # making bogus files that we don't know about and never remove. For 4197 # instance it was reported that on HP-UX the gcc test will end up 4198 # making a dummy file named 'D' -- because '-MD' means "put the output 4199 # in D". 4200 rm -rf conftest.dir 4201 mkdir conftest.dir 4202 # Copy depcomp to subdir because otherwise we won't find it if we're 4203 # using a relative directory. 4204 cp "$am_depcomp" conftest.dir 4205 cd conftest.dir 4206 # We will build objects and dependencies in a subdirectory because 4207 # it helps to detect inapplicable dependency modes. For instance 4208 # both Tru64's cc and ICC support -MD to output dependencies as a 4209 # side effect of compilation, but ICC will put the dependencies in 4210 # the current directory while Tru64 will put them in the object 4211 # directory. 4212 mkdir sub 4213 4214 am_cv_CC_dependencies_compiler_type=none 4215 if test "$am_compiler_list" = ""; then 4216 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4217 fi 4218 am__universal=false 4219 case " $depcc " in #( 4220 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4221 esac 4222 4223 for depmode in $am_compiler_list; do 4224 # Setup a source with many dependencies, because some compilers 4225 # like to wrap large dependency lists on column 80 (with \), and 4226 # we should not choose a depcomp mode which is confused by this. 4227 # 4228 # We need to recreate these files for each test, as the compiler may 4229 # overwrite some of them when testing with obscure command lines. 4230 # This happens at least with the AIX C compiler. 4231 : > sub/conftest.c 4232 for i in 1 2 3 4 5 6; do 4233 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4234 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4235 # Solaris 10 /bin/sh. 4236 echo '/* dummy */' > sub/conftst$i.h 4237 done 4238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4239 4240 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4241 # mode. It turns out that the SunPro C++ compiler does not properly 4242 # handle '-M -o', and we need to detect this. Also, some Intel 4243 # versions had trouble with output in subdirs. 4244 am__obj=sub/conftest.${OBJEXT-o} 4245 am__minus_obj="-o $am__obj" 4246 case $depmode in 4247 gcc) 4248 # This depmode causes a compiler race in universal mode. 4249 test "$am__universal" = false || continue 4250 ;; 4251 nosideeffect) 4252 # After this tag, mechanisms are not by side-effect, so they'll 4253 # only be used when explicitly requested. 4254 if test "x$enable_dependency_tracking" = xyes; then 4255 continue 4256 else 4257 break 4258 fi 4259 ;; 4260 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4261 # This compiler won't grok '-c -o', but also, the minuso test has 4262 # not run yet. These depmodes are late enough in the game, and 4263 # so weak that their functioning should not be impacted. 4264 am__obj=conftest.${OBJEXT-o} 4265 am__minus_obj= 4266 ;; 4267 none) break ;; 4268 esac 4269 if depmode=$depmode \ 4270 source=sub/conftest.c object=$am__obj \ 4271 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4272 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4273 >/dev/null 2>conftest.err && 4274 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4275 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4276 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4277 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4278 # icc doesn't choke on unknown options, it will just issue warnings 4279 # or remarks (even with -Werror). So we grep stderr for any message 4280 # that says an option was ignored or not supported. 4281 # When given -MP, icc 7.0 and 7.1 complain thusly: 4282 # icc: Command line warning: ignoring option '-M'; no argument required 4283 # The diagnosis changed in icc 8.0: 4284 # icc: Command line remark: option '-MP' not supported 4285 if (grep 'ignoring option' conftest.err || 4286 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4287 am_cv_CC_dependencies_compiler_type=$depmode 4288 break 4289 fi 4290 fi 4291 done 4292 4293 cd .. 4294 rm -rf conftest.dir 4295else 4296 am_cv_CC_dependencies_compiler_type=none 4297fi 4298 4299fi 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4301$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4302CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4303 4304 if 4305 test "x$enable_dependency_tracking" != xno \ 4306 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4307 am__fastdepCC_TRUE= 4308 am__fastdepCC_FALSE='#' 4309else 4310 am__fastdepCC_TRUE='#' 4311 am__fastdepCC_FALSE= 4312fi 4313 4314 4315 4316# POSIX will say in a future version that running "rm -f" with no argument 4317# is OK; and we want to be able to make that assumption in our Makefile 4318# recipes. So use an aggressive probe to check that the usage we want is 4319# actually supported "in the wild" to an acceptable degree. 4320# See automake bug#10828. 4321# To make any issue more visible, cause the running configure to be aborted 4322# by default if the 'rm' program in use doesn't match our expectations; the 4323# user can still override this though. 4324if rm -f && rm -fr && rm -rf; then : OK; else 4325 cat >&2 <<'END' 4326Oops! 4327 4328Your 'rm' program seems unable to run without file operands specified 4329on the command line, even when the '-f' option is present. This is contrary 4330to the behaviour of most rm programs out there, and not conforming with 4331the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4332 4333Please tell bug-automake@gnu.org about your system, including the value 4334of your $PATH and any error possibly output before this message. This 4335can help us improve future automake versions. 4336 4337END 4338 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4339 echo 'Configuration will proceed anyway, since you have set the' >&2 4340 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4341 echo >&2 4342 else 4343 cat >&2 <<'END' 4344Aborting the configuration process, to ensure you take notice of the issue. 4345 4346You can download and install GNU coreutils to get an 'rm' implementation 4347that behaves properly: <http://www.gnu.org/software/coreutils/>. 4348 4349If you want to complete the configuration process using your problematic 4350'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4351to "yes", and re-run configure. 4352 4353END 4354 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4355 fi 4356fi 4357 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4359$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4360 # Check whether --enable-maintainer-mode was given. 4361if test "${enable_maintainer_mode+set}" = set; then : 4362 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4363else 4364 USE_MAINTAINER_MODE=no 4365fi 4366 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4368$as_echo "$USE_MAINTAINER_MODE" >&6; } 4369 if test $USE_MAINTAINER_MODE = yes; then 4370 MAINTAINER_MODE_TRUE= 4371 MAINTAINER_MODE_FALSE='#' 4372else 4373 MAINTAINER_MODE_TRUE='#' 4374 MAINTAINER_MODE_FALSE= 4375fi 4376 4377 MAINT=$MAINTAINER_MODE_TRUE 4378 4379 4380 4381# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4394$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4395if ${ac_cv_prog_cc_c99+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 ac_cv_prog_cc_c99=no 4399ac_save_CC=$CC 4400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402#include <stdarg.h> 4403#include <stdbool.h> 4404#include <stdlib.h> 4405#include <wchar.h> 4406#include <stdio.h> 4407 4408// Check varargs macros. These examples are taken from C99 6.10.3.5. 4409#define debug(...) fprintf (stderr, __VA_ARGS__) 4410#define showlist(...) puts (#__VA_ARGS__) 4411#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4412static void 4413test_varargs_macros (void) 4414{ 4415 int x = 1234; 4416 int y = 5678; 4417 debug ("Flag"); 4418 debug ("X = %d\n", x); 4419 showlist (The first, second, and third items.); 4420 report (x>y, "x is %d but y is %d", x, y); 4421} 4422 4423// Check long long types. 4424#define BIG64 18446744073709551615ull 4425#define BIG32 4294967295ul 4426#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4427#if !BIG_OK 4428 your preprocessor is broken; 4429#endif 4430#if BIG_OK 4431#else 4432 your preprocessor is broken; 4433#endif 4434static long long int bignum = -9223372036854775807LL; 4435static unsigned long long int ubignum = BIG64; 4436 4437struct incomplete_array 4438{ 4439 int datasize; 4440 double data[]; 4441}; 4442 4443struct named_init { 4444 int number; 4445 const wchar_t *name; 4446 double average; 4447}; 4448 4449typedef const char *ccp; 4450 4451static inline int 4452test_restrict (ccp restrict text) 4453{ 4454 // See if C++-style comments work. 4455 // Iterate through items via the restricted pointer. 4456 // Also check for declarations in for loops. 4457 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4458 continue; 4459 return 0; 4460} 4461 4462// Check varargs and va_copy. 4463static void 4464test_varargs (const char *format, ...) 4465{ 4466 va_list args; 4467 va_start (args, format); 4468 va_list args_copy; 4469 va_copy (args_copy, args); 4470 4471 const char *str; 4472 int number; 4473 float fnumber; 4474 4475 while (*format) 4476 { 4477 switch (*format++) 4478 { 4479 case 's': // string 4480 str = va_arg (args_copy, const char *); 4481 break; 4482 case 'd': // int 4483 number = va_arg (args_copy, int); 4484 break; 4485 case 'f': // float 4486 fnumber = va_arg (args_copy, double); 4487 break; 4488 default: 4489 break; 4490 } 4491 } 4492 va_end (args_copy); 4493 va_end (args); 4494} 4495 4496int 4497main () 4498{ 4499 4500 // Check bool. 4501 _Bool success = false; 4502 4503 // Check restrict. 4504 if (test_restrict ("String literal") == 0) 4505 success = true; 4506 char *restrict newvar = "Another string"; 4507 4508 // Check varargs. 4509 test_varargs ("s, d' f .", "string", 65, 34.234); 4510 test_varargs_macros (); 4511 4512 // Check flexible array members. 4513 struct incomplete_array *ia = 4514 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4515 ia->datasize = 10; 4516 for (int i = 0; i < ia->datasize; ++i) 4517 ia->data[i] = i * 1.234; 4518 4519 // Check named initializers. 4520 struct named_init ni = { 4521 .number = 34, 4522 .name = L"Test wide string", 4523 .average = 543.34343, 4524 }; 4525 4526 ni.number = 58; 4527 4528 int dynamic_array[ni.number]; 4529 dynamic_array[ni.number - 1] = 543; 4530 4531 // work around unused variable warnings 4532 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4533 || dynamic_array[ni.number - 1] != 543); 4534 4535 ; 4536 return 0; 4537} 4538_ACEOF 4539for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4540do 4541 CC="$ac_save_CC $ac_arg" 4542 if ac_fn_c_try_compile "$LINENO"; then : 4543 ac_cv_prog_cc_c99=$ac_arg 4544fi 4545rm -f core conftest.err conftest.$ac_objext 4546 test "x$ac_cv_prog_cc_c99" != "xno" && break 4547done 4548rm -f conftest.$ac_ext 4549CC=$ac_save_CC 4550 4551fi 4552# AC_CACHE_VAL 4553case "x$ac_cv_prog_cc_c99" in 4554 x) 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4556$as_echo "none needed" >&6; } ;; 4557 xno) 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4559$as_echo "unsupported" >&6; } ;; 4560 *) 4561 CC="$CC $ac_cv_prog_cc_c99" 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4563$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4564esac 4565if test "x$ac_cv_prog_cc_c99" != xno; then : 4566 4567fi 4568 4569 4570 4571 4572 4573 4574ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4575if test "x$ac_cv_have_decl___clang__" = xyes; then : 4576 CLANGCC="yes" 4577else 4578 CLANGCC="no" 4579fi 4580 4581ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4582if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4583 INTELCC="yes" 4584else 4585 INTELCC="no" 4586fi 4587 4588ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4589if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4590 SUNCC="yes" 4591else 4592 SUNCC="no" 4593fi 4594 4595 4596 4597 4598if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4599 if test -n "$ac_tool_prefix"; then 4600 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4601set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4603$as_echo_n "checking for $ac_word... " >&6; } 4604if ${ac_cv_path_PKG_CONFIG+:} false; then : 4605 $as_echo_n "(cached) " >&6 4606else 4607 case $PKG_CONFIG in 4608 [\\/]* | ?:[\\/]*) 4609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4610 ;; 4611 *) 4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4613for as_dir in $PATH 4614do 4615 IFS=$as_save_IFS 4616 test -z "$as_dir" && as_dir=. 4617 for ac_exec_ext in '' $ac_executable_extensions; do 4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4619 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4621 break 2 4622 fi 4623done 4624 done 4625IFS=$as_save_IFS 4626 4627 ;; 4628esac 4629fi 4630PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4631if test -n "$PKG_CONFIG"; then 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4633$as_echo "$PKG_CONFIG" >&6; } 4634else 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4636$as_echo "no" >&6; } 4637fi 4638 4639 4640fi 4641if test -z "$ac_cv_path_PKG_CONFIG"; then 4642 ac_pt_PKG_CONFIG=$PKG_CONFIG 4643 # Extract the first word of "pkg-config", so it can be a program name with args. 4644set dummy pkg-config; ac_word=$2 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4646$as_echo_n "checking for $ac_word... " >&6; } 4647if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 case $ac_pt_PKG_CONFIG in 4651 [\\/]* | ?:[\\/]*) 4652 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4653 ;; 4654 *) 4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4656for as_dir in $PATH 4657do 4658 IFS=$as_save_IFS 4659 test -z "$as_dir" && as_dir=. 4660 for ac_exec_ext in '' $ac_executable_extensions; do 4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4662 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4664 break 2 4665 fi 4666done 4667 done 4668IFS=$as_save_IFS 4669 4670 ;; 4671esac 4672fi 4673ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4674if test -n "$ac_pt_PKG_CONFIG"; then 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4676$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4677else 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4679$as_echo "no" >&6; } 4680fi 4681 4682 if test "x$ac_pt_PKG_CONFIG" = x; then 4683 PKG_CONFIG="" 4684 else 4685 case $cross_compiling:$ac_tool_warned in 4686yes:) 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4689ac_tool_warned=yes ;; 4690esac 4691 PKG_CONFIG=$ac_pt_PKG_CONFIG 4692 fi 4693else 4694 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4695fi 4696 4697fi 4698if test -n "$PKG_CONFIG"; then 4699 _pkg_min_version=0.9.0 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4701$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4702 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4704$as_echo "yes" >&6; } 4705 else 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4707$as_echo "no" >&6; } 4708 PKG_CONFIG="" 4709 fi 4710 4711fi 4712# Make sure we can run config.sub. 4713$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4714 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4715 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4717$as_echo_n "checking build system type... " >&6; } 4718if ${ac_cv_build+:} false; then : 4719 $as_echo_n "(cached) " >&6 4720else 4721 ac_build_alias=$build_alias 4722test "x$ac_build_alias" = x && 4723 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4724test "x$ac_build_alias" = x && 4725 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4726ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4727 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4728 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4731$as_echo "$ac_cv_build" >&6; } 4732case $ac_cv_build in 4733*-*-*) ;; 4734*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4735esac 4736build=$ac_cv_build 4737ac_save_IFS=$IFS; IFS='-' 4738set x $ac_cv_build 4739shift 4740build_cpu=$1 4741build_vendor=$2 4742shift; shift 4743# Remember, the first character of IFS is used to create $*, 4744# except with old shells: 4745build_os=$* 4746IFS=$ac_save_IFS 4747case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4748 4749 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4751$as_echo_n "checking host system type... " >&6; } 4752if ${ac_cv_host+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 if test "x$host_alias" = x; then 4756 ac_cv_host=$ac_cv_build 4757else 4758 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4759 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4760fi 4761 4762fi 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4764$as_echo "$ac_cv_host" >&6; } 4765case $ac_cv_host in 4766*-*-*) ;; 4767*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4768esac 4769host=$ac_cv_host 4770ac_save_IFS=$IFS; IFS='-' 4771set x $ac_cv_host 4772shift 4773host_cpu=$1 4774host_vendor=$2 4775shift; shift 4776# Remember, the first character of IFS is used to create $*, 4777# except with old shells: 4778host_os=$* 4779IFS=$ac_save_IFS 4780case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4781 4782 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4784$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4785if ${ac_cv_path_SED+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4789 for ac_i in 1 2 3 4 5 6 7; do 4790 ac_script="$ac_script$as_nl$ac_script" 4791 done 4792 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4793 { ac_script=; unset ac_script;} 4794 if test -z "$SED"; then 4795 ac_path_SED_found=false 4796 # Loop through the user's path and test for each of PROGNAME-LIST 4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798for as_dir in $PATH 4799do 4800 IFS=$as_save_IFS 4801 test -z "$as_dir" && as_dir=. 4802 for ac_prog in sed gsed; do 4803 for ac_exec_ext in '' $ac_executable_extensions; do 4804 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4805 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4806# Check for GNU ac_path_SED and select it if it is found. 4807 # Check for GNU $ac_path_SED 4808case `"$ac_path_SED" --version 2>&1` in 4809*GNU*) 4810 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4811*) 4812 ac_count=0 4813 $as_echo_n 0123456789 >"conftest.in" 4814 while : 4815 do 4816 cat "conftest.in" "conftest.in" >"conftest.tmp" 4817 mv "conftest.tmp" "conftest.in" 4818 cp "conftest.in" "conftest.nl" 4819 $as_echo '' >> "conftest.nl" 4820 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4822 as_fn_arith $ac_count + 1 && ac_count=$as_val 4823 if test $ac_count -gt ${ac_path_SED_max-0}; then 4824 # Best one so far, save it but keep looking for a better one 4825 ac_cv_path_SED="$ac_path_SED" 4826 ac_path_SED_max=$ac_count 4827 fi 4828 # 10*(2^10) chars as input seems more than enough 4829 test $ac_count -gt 10 && break 4830 done 4831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4832esac 4833 4834 $ac_path_SED_found && break 3 4835 done 4836 done 4837 done 4838IFS=$as_save_IFS 4839 if test -z "$ac_cv_path_SED"; then 4840 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4841 fi 4842else 4843 ac_cv_path_SED=$SED 4844fi 4845 4846fi 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4848$as_echo "$ac_cv_path_SED" >&6; } 4849 SED="$ac_cv_path_SED" 4850 rm -f conftest.sed 4851 4852 4853 4854 4855 4856 4857# Check whether --enable-selective-werror was given. 4858if test "${enable_selective_werror+set}" = set; then : 4859 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4860else 4861 SELECTIVE_WERROR=yes 4862fi 4863 4864 4865 4866 4867 4868# -v is too short to test reliably with XORG_TESTSET_CFLAG 4869if test "x$SUNCC" = "xyes"; then 4870 BASE_CFLAGS="-v" 4871else 4872 BASE_CFLAGS="" 4873fi 4874 4875# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889xorg_testset_save_CFLAGS="$CFLAGS" 4890 4891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897else 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4899/* end confdefs.h. */ 4900int i; 4901_ACEOF 4902if ac_fn_c_try_compile "$LINENO"; then : 4903 xorg_cv_cc_flag_unknown_warning_option=yes 4904else 4905 xorg_cv_cc_flag_unknown_warning_option=no 4906fi 4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4908fi 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4912 CFLAGS="$xorg_testset_save_CFLAGS" 4913fi 4914 4915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4918 fi 4919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4926/* end confdefs.h. */ 4927int i; 4928_ACEOF 4929if ac_fn_c_try_compile "$LINENO"; then : 4930 xorg_cv_cc_flag_unused_command_line_argument=yes 4931else 4932 xorg_cv_cc_flag_unused_command_line_argument=no 4933fi 4934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4935fi 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4939 CFLAGS="$xorg_testset_save_CFLAGS" 4940fi 4941 4942found="no" 4943 4944 if test $found = "no" ; then 4945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4947 fi 4948 4949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4951 fi 4952 4953 CFLAGS="$CFLAGS -Wall" 4954 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4956$as_echo_n "checking if $CC supports -Wall... " >&6; } 4957 cacheid=xorg_cv_cc_flag__Wall 4958 if eval \${$cacheid+:} false; then : 4959 $as_echo_n "(cached) " >&6 4960else 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962/* end confdefs.h. */ 4963int i; 4964int 4965main () 4966{ 4967 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972if ac_fn_c_try_link "$LINENO"; then : 4973 eval $cacheid=yes 4974else 4975 eval $cacheid=no 4976fi 4977rm -f core conftest.err conftest.$ac_objext \ 4978 conftest$ac_exeext conftest.$ac_ext 4979fi 4980 4981 4982 CFLAGS="$xorg_testset_save_CFLAGS" 4983 4984 eval supported=\$$cacheid 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4986$as_echo "$supported" >&6; } 4987 if test "$supported" = "yes" ; then 4988 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4989 found="yes" 4990 fi 4991 fi 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007xorg_testset_save_CFLAGS="$CFLAGS" 5008 5009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5017/* end confdefs.h. */ 5018int i; 5019_ACEOF 5020if ac_fn_c_try_compile "$LINENO"; then : 5021 xorg_cv_cc_flag_unknown_warning_option=yes 5022else 5023 xorg_cv_cc_flag_unknown_warning_option=no 5024fi 5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5026fi 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5030 CFLAGS="$xorg_testset_save_CFLAGS" 5031fi 5032 5033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5036 fi 5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044/* end confdefs.h. */ 5045int i; 5046_ACEOF 5047if ac_fn_c_try_compile "$LINENO"; then : 5048 xorg_cv_cc_flag_unused_command_line_argument=yes 5049else 5050 xorg_cv_cc_flag_unused_command_line_argument=no 5051fi 5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5053fi 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5057 CFLAGS="$xorg_testset_save_CFLAGS" 5058fi 5059 5060found="no" 5061 5062 if test $found = "no" ; then 5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 fi 5066 5067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5069 fi 5070 5071 CFLAGS="$CFLAGS -Wpointer-arith" 5072 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5074$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5075 cacheid=xorg_cv_cc_flag__Wpointer_arith 5076 if eval \${$cacheid+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081int i; 5082int 5083main () 5084{ 5085 5086 ; 5087 return 0; 5088} 5089_ACEOF 5090if ac_fn_c_try_link "$LINENO"; then : 5091 eval $cacheid=yes 5092else 5093 eval $cacheid=no 5094fi 5095rm -f core conftest.err conftest.$ac_objext \ 5096 conftest$ac_exeext conftest.$ac_ext 5097fi 5098 5099 5100 CFLAGS="$xorg_testset_save_CFLAGS" 5101 5102 eval supported=\$$cacheid 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5104$as_echo "$supported" >&6; } 5105 if test "$supported" = "yes" ; then 5106 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5107 found="yes" 5108 fi 5109 fi 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125xorg_testset_save_CFLAGS="$CFLAGS" 5126 5127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136int i; 5137_ACEOF 5138if ac_fn_c_try_compile "$LINENO"; then : 5139 xorg_cv_cc_flag_unknown_warning_option=yes 5140else 5141 xorg_cv_cc_flag_unknown_warning_option=no 5142fi 5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5144fi 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5148 CFLAGS="$xorg_testset_save_CFLAGS" 5149fi 5150 5151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5154 fi 5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162/* end confdefs.h. */ 5163int i; 5164_ACEOF 5165if ac_fn_c_try_compile "$LINENO"; then : 5166 xorg_cv_cc_flag_unused_command_line_argument=yes 5167else 5168 xorg_cv_cc_flag_unused_command_line_argument=no 5169fi 5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5171fi 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5175 CFLAGS="$xorg_testset_save_CFLAGS" 5176fi 5177 5178found="no" 5179 5180 if test $found = "no" ; then 5181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 fi 5184 5185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5187 fi 5188 5189 CFLAGS="$CFLAGS -Wmissing-declarations" 5190 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5192$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5193 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5194 if eval \${$cacheid+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199int i; 5200int 5201main () 5202{ 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_c_try_link "$LINENO"; then : 5209 eval $cacheid=yes 5210else 5211 eval $cacheid=no 5212fi 5213rm -f core conftest.err conftest.$ac_objext \ 5214 conftest$ac_exeext conftest.$ac_ext 5215fi 5216 5217 5218 CFLAGS="$xorg_testset_save_CFLAGS" 5219 5220 eval supported=\$$cacheid 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5222$as_echo "$supported" >&6; } 5223 if test "$supported" = "yes" ; then 5224 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5225 found="yes" 5226 fi 5227 fi 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243xorg_testset_save_CFLAGS="$CFLAGS" 5244 5245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251else 5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5253/* end confdefs.h. */ 5254int i; 5255_ACEOF 5256if ac_fn_c_try_compile "$LINENO"; then : 5257 xorg_cv_cc_flag_unknown_warning_option=yes 5258else 5259 xorg_cv_cc_flag_unknown_warning_option=no 5260fi 5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5262fi 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5266 CFLAGS="$xorg_testset_save_CFLAGS" 5267fi 5268 5269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5272 fi 5273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5280/* end confdefs.h. */ 5281int i; 5282_ACEOF 5283if ac_fn_c_try_compile "$LINENO"; then : 5284 xorg_cv_cc_flag_unused_command_line_argument=yes 5285else 5286 xorg_cv_cc_flag_unused_command_line_argument=no 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5289fi 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5293 CFLAGS="$xorg_testset_save_CFLAGS" 5294fi 5295 5296found="no" 5297 5298 if test $found = "no" ; then 5299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5301 fi 5302 5303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5305 fi 5306 5307 CFLAGS="$CFLAGS -Wformat=2" 5308 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5310$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5311 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5312 if eval \${$cacheid+:} false; then : 5313 $as_echo_n "(cached) " >&6 5314else 5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316/* end confdefs.h. */ 5317int i; 5318int 5319main () 5320{ 5321 5322 ; 5323 return 0; 5324} 5325_ACEOF 5326if ac_fn_c_try_link "$LINENO"; then : 5327 eval $cacheid=yes 5328else 5329 eval $cacheid=no 5330fi 5331rm -f core conftest.err conftest.$ac_objext \ 5332 conftest$ac_exeext conftest.$ac_ext 5333fi 5334 5335 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337 5338 eval supported=\$$cacheid 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5340$as_echo "$supported" >&6; } 5341 if test "$supported" = "yes" ; then 5342 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5343 found="yes" 5344 fi 5345 fi 5346 5347 if test $found = "no" ; then 5348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5350 fi 5351 5352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5354 fi 5355 5356 CFLAGS="$CFLAGS -Wformat" 5357 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5359$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5360 cacheid=xorg_cv_cc_flag__Wformat 5361 if eval \${$cacheid+:} false; then : 5362 $as_echo_n "(cached) " >&6 5363else 5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5365/* end confdefs.h. */ 5366int i; 5367int 5368main () 5369{ 5370 5371 ; 5372 return 0; 5373} 5374_ACEOF 5375if ac_fn_c_try_link "$LINENO"; then : 5376 eval $cacheid=yes 5377else 5378 eval $cacheid=no 5379fi 5380rm -f core conftest.err conftest.$ac_objext \ 5381 conftest$ac_exeext conftest.$ac_ext 5382fi 5383 5384 5385 CFLAGS="$xorg_testset_save_CFLAGS" 5386 5387 eval supported=\$$cacheid 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5389$as_echo "$supported" >&6; } 5390 if test "$supported" = "yes" ; then 5391 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5392 found="yes" 5393 fi 5394 fi 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412xorg_testset_save_CFLAGS="$CFLAGS" 5413 5414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423int i; 5424_ACEOF 5425if ac_fn_c_try_compile "$LINENO"; then : 5426 xorg_cv_cc_flag_unknown_warning_option=yes 5427else 5428 xorg_cv_cc_flag_unknown_warning_option=no 5429fi 5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5435 CFLAGS="$xorg_testset_save_CFLAGS" 5436fi 5437 5438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5441 fi 5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447else 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5449/* end confdefs.h. */ 5450int i; 5451_ACEOF 5452if ac_fn_c_try_compile "$LINENO"; then : 5453 xorg_cv_cc_flag_unused_command_line_argument=yes 5454else 5455 xorg_cv_cc_flag_unused_command_line_argument=no 5456fi 5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5458fi 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5462 CFLAGS="$xorg_testset_save_CFLAGS" 5463fi 5464 5465found="no" 5466 5467 if test $found = "no" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5474 fi 5475 5476 CFLAGS="$CFLAGS -Wstrict-prototypes" 5477 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5479$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5480 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5481 if eval \${$cacheid+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486int i; 5487int 5488main () 5489{ 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495if ac_fn_c_try_link "$LINENO"; then : 5496 eval $cacheid=yes 5497else 5498 eval $cacheid=no 5499fi 5500rm -f core conftest.err conftest.$ac_objext \ 5501 conftest$ac_exeext conftest.$ac_ext 5502fi 5503 5504 5505 CFLAGS="$xorg_testset_save_CFLAGS" 5506 5507 eval supported=\$$cacheid 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5509$as_echo "$supported" >&6; } 5510 if test "$supported" = "yes" ; then 5511 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5512 found="yes" 5513 fi 5514 fi 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530xorg_testset_save_CFLAGS="$CFLAGS" 5531 5532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5537 $as_echo_n "(cached) " >&6 5538else 5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5540/* end confdefs.h. */ 5541int i; 5542_ACEOF 5543if ac_fn_c_try_compile "$LINENO"; then : 5544 xorg_cv_cc_flag_unknown_warning_option=yes 5545else 5546 xorg_cv_cc_flag_unknown_warning_option=no 5547fi 5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5549fi 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5553 CFLAGS="$xorg_testset_save_CFLAGS" 5554fi 5555 5556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5559 fi 5560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5564 $as_echo_n "(cached) " >&6 5565else 5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5567/* end confdefs.h. */ 5568int i; 5569_ACEOF 5570if ac_fn_c_try_compile "$LINENO"; then : 5571 xorg_cv_cc_flag_unused_command_line_argument=yes 5572else 5573 xorg_cv_cc_flag_unused_command_line_argument=no 5574fi 5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5576fi 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5580 CFLAGS="$xorg_testset_save_CFLAGS" 5581fi 5582 5583found="no" 5584 5585 if test $found = "no" ; then 5586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5588 fi 5589 5590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5592 fi 5593 5594 CFLAGS="$CFLAGS -Wmissing-prototypes" 5595 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5597$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5598 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5599 if eval \${$cacheid+:} false; then : 5600 $as_echo_n "(cached) " >&6 5601else 5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5603/* end confdefs.h. */ 5604int i; 5605int 5606main () 5607{ 5608 5609 ; 5610 return 0; 5611} 5612_ACEOF 5613if ac_fn_c_try_link "$LINENO"; then : 5614 eval $cacheid=yes 5615else 5616 eval $cacheid=no 5617fi 5618rm -f core conftest.err conftest.$ac_objext \ 5619 conftest$ac_exeext conftest.$ac_ext 5620fi 5621 5622 5623 CFLAGS="$xorg_testset_save_CFLAGS" 5624 5625 eval supported=\$$cacheid 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5627$as_echo "$supported" >&6; } 5628 if test "$supported" = "yes" ; then 5629 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5630 found="yes" 5631 fi 5632 fi 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648xorg_testset_save_CFLAGS="$CFLAGS" 5649 5650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5658/* end confdefs.h. */ 5659int i; 5660_ACEOF 5661if ac_fn_c_try_compile "$LINENO"; then : 5662 xorg_cv_cc_flag_unknown_warning_option=yes 5663else 5664 xorg_cv_cc_flag_unknown_warning_option=no 5665fi 5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5667fi 5668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5671 CFLAGS="$xorg_testset_save_CFLAGS" 5672fi 5673 5674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5677 fi 5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685/* end confdefs.h. */ 5686int i; 5687_ACEOF 5688if ac_fn_c_try_compile "$LINENO"; then : 5689 xorg_cv_cc_flag_unused_command_line_argument=yes 5690else 5691 xorg_cv_cc_flag_unused_command_line_argument=no 5692fi 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5694fi 5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5698 CFLAGS="$xorg_testset_save_CFLAGS" 5699fi 5700 5701found="no" 5702 5703 if test $found = "no" ; then 5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5706 fi 5707 5708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5710 fi 5711 5712 CFLAGS="$CFLAGS -Wnested-externs" 5713 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5715$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5716 cacheid=xorg_cv_cc_flag__Wnested_externs 5717 if eval \${$cacheid+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721/* end confdefs.h. */ 5722int i; 5723int 5724main () 5725{ 5726 5727 ; 5728 return 0; 5729} 5730_ACEOF 5731if ac_fn_c_try_link "$LINENO"; then : 5732 eval $cacheid=yes 5733else 5734 eval $cacheid=no 5735fi 5736rm -f core conftest.err conftest.$ac_objext \ 5737 conftest$ac_exeext conftest.$ac_ext 5738fi 5739 5740 5741 CFLAGS="$xorg_testset_save_CFLAGS" 5742 5743 eval supported=\$$cacheid 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5745$as_echo "$supported" >&6; } 5746 if test "$supported" = "yes" ; then 5747 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5748 found="yes" 5749 fi 5750 fi 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766xorg_testset_save_CFLAGS="$CFLAGS" 5767 5768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5776/* end confdefs.h. */ 5777int i; 5778_ACEOF 5779if ac_fn_c_try_compile "$LINENO"; then : 5780 xorg_cv_cc_flag_unknown_warning_option=yes 5781else 5782 xorg_cv_cc_flag_unknown_warning_option=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5785fi 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790fi 5791 5792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5795 fi 5796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5799if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 5808else 5809 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5816 CFLAGS="$xorg_testset_save_CFLAGS" 5817fi 5818 5819found="no" 5820 5821 if test $found = "no" ; then 5822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 fi 5825 5826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5828 fi 5829 5830 CFLAGS="$CFLAGS -Wbad-function-cast" 5831 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5833$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5834 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5835 if eval \${$cacheid+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837else 5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5839/* end confdefs.h. */ 5840int i; 5841int 5842main () 5843{ 5844 5845 ; 5846 return 0; 5847} 5848_ACEOF 5849if ac_fn_c_try_link "$LINENO"; then : 5850 eval $cacheid=yes 5851else 5852 eval $cacheid=no 5853fi 5854rm -f core conftest.err conftest.$ac_objext \ 5855 conftest$ac_exeext conftest.$ac_ext 5856fi 5857 5858 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860 5861 eval supported=\$$cacheid 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5863$as_echo "$supported" >&6; } 5864 if test "$supported" = "yes" ; then 5865 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5866 found="yes" 5867 fi 5868 fi 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884xorg_testset_save_CFLAGS="$CFLAGS" 5885 5886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5891 $as_echo_n "(cached) " >&6 5892else 5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5894/* end confdefs.h. */ 5895int i; 5896_ACEOF 5897if ac_fn_c_try_compile "$LINENO"; then : 5898 xorg_cv_cc_flag_unknown_warning_option=yes 5899else 5900 xorg_cv_cc_flag_unknown_warning_option=no 5901fi 5902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5903fi 5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5908fi 5909 5910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5913 fi 5914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5917if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 5926else 5927 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 5932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5934 CFLAGS="$xorg_testset_save_CFLAGS" 5935fi 5936 5937found="no" 5938 5939 if test $found = "no" ; then 5940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5942 fi 5943 5944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5946 fi 5947 5948 CFLAGS="$CFLAGS -Wold-style-definition" 5949 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5951$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5952 cacheid=xorg_cv_cc_flag__Wold_style_definition 5953 if eval \${$cacheid+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955else 5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5957/* end confdefs.h. */ 5958int i; 5959int 5960main () 5961{ 5962 5963 ; 5964 return 0; 5965} 5966_ACEOF 5967if ac_fn_c_try_link "$LINENO"; then : 5968 eval $cacheid=yes 5969else 5970 eval $cacheid=no 5971fi 5972rm -f core conftest.err conftest.$ac_objext \ 5973 conftest$ac_exeext conftest.$ac_ext 5974fi 5975 5976 5977 CFLAGS="$xorg_testset_save_CFLAGS" 5978 5979 eval supported=\$$cacheid 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5981$as_echo "$supported" >&6; } 5982 if test "$supported" = "yes" ; then 5983 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5984 found="yes" 5985 fi 5986 fi 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002xorg_testset_save_CFLAGS="$CFLAGS" 6003 6004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6012/* end confdefs.h. */ 6013int i; 6014_ACEOF 6015if ac_fn_c_try_compile "$LINENO"; then : 6016 xorg_cv_cc_flag_unknown_warning_option=yes 6017else 6018 xorg_cv_cc_flag_unknown_warning_option=no 6019fi 6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6021fi 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6025 CFLAGS="$xorg_testset_save_CFLAGS" 6026fi 6027 6028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6031 fi 6032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6035if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes 6044else 6045 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 6050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6052 CFLAGS="$xorg_testset_save_CFLAGS" 6053fi 6054 6055found="no" 6056 6057 if test $found = "no" ; then 6058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6060 fi 6061 6062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6064 fi 6065 6066 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6067 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6069$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6070 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6071 if eval \${$cacheid+:} false; then : 6072 $as_echo_n "(cached) " >&6 6073else 6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6075/* end confdefs.h. */ 6076int i; 6077int 6078main () 6079{ 6080 6081 ; 6082 return 0; 6083} 6084_ACEOF 6085if ac_fn_c_try_link "$LINENO"; then : 6086 eval $cacheid=yes 6087else 6088 eval $cacheid=no 6089fi 6090rm -f core conftest.err conftest.$ac_objext \ 6091 conftest$ac_exeext conftest.$ac_ext 6092fi 6093 6094 6095 CFLAGS="$xorg_testset_save_CFLAGS" 6096 6097 eval supported=\$$cacheid 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6099$as_echo "$supported" >&6; } 6100 if test "$supported" = "yes" ; then 6101 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6102 found="yes" 6103 fi 6104 fi 6105 6106 6107 6108 6109 6110# This chunk adds additional warnings that could catch undesired effects. 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124xorg_testset_save_CFLAGS="$CFLAGS" 6125 6126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6131 $as_echo_n "(cached) " >&6 6132else 6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6134/* end confdefs.h. */ 6135int i; 6136_ACEOF 6137if ac_fn_c_try_compile "$LINENO"; then : 6138 xorg_cv_cc_flag_unknown_warning_option=yes 6139else 6140 xorg_cv_cc_flag_unknown_warning_option=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6143fi 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6147 CFLAGS="$xorg_testset_save_CFLAGS" 6148fi 6149 6150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6153 fi 6154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6158 $as_echo_n "(cached) " >&6 6159else 6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6161/* end confdefs.h. */ 6162int i; 6163_ACEOF 6164if ac_fn_c_try_compile "$LINENO"; then : 6165 xorg_cv_cc_flag_unused_command_line_argument=yes 6166else 6167 xorg_cv_cc_flag_unused_command_line_argument=no 6168fi 6169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6170fi 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6174 CFLAGS="$xorg_testset_save_CFLAGS" 6175fi 6176 6177found="no" 6178 6179 if test $found = "no" ; then 6180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6182 fi 6183 6184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6186 fi 6187 6188 CFLAGS="$CFLAGS -Wunused" 6189 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6191$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6192 cacheid=xorg_cv_cc_flag__Wunused 6193 if eval \${$cacheid+:} false; then : 6194 $as_echo_n "(cached) " >&6 6195else 6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6197/* end confdefs.h. */ 6198int i; 6199int 6200main () 6201{ 6202 6203 ; 6204 return 0; 6205} 6206_ACEOF 6207if ac_fn_c_try_link "$LINENO"; then : 6208 eval $cacheid=yes 6209else 6210 eval $cacheid=no 6211fi 6212rm -f core conftest.err conftest.$ac_objext \ 6213 conftest$ac_exeext conftest.$ac_ext 6214fi 6215 6216 6217 CFLAGS="$xorg_testset_save_CFLAGS" 6218 6219 eval supported=\$$cacheid 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6221$as_echo "$supported" >&6; } 6222 if test "$supported" = "yes" ; then 6223 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6224 found="yes" 6225 fi 6226 fi 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242xorg_testset_save_CFLAGS="$CFLAGS" 6243 6244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253int i; 6254_ACEOF 6255if ac_fn_c_try_compile "$LINENO"; then : 6256 xorg_cv_cc_flag_unknown_warning_option=yes 6257else 6258 xorg_cv_cc_flag_unknown_warning_option=no 6259fi 6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6261fi 6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6265 CFLAGS="$xorg_testset_save_CFLAGS" 6266fi 6267 6268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6271 fi 6272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6276 $as_echo_n "(cached) " >&6 6277else 6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279/* end confdefs.h. */ 6280int i; 6281_ACEOF 6282if ac_fn_c_try_compile "$LINENO"; then : 6283 xorg_cv_cc_flag_unused_command_line_argument=yes 6284else 6285 xorg_cv_cc_flag_unused_command_line_argument=no 6286fi 6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6288fi 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6292 CFLAGS="$xorg_testset_save_CFLAGS" 6293fi 6294 6295found="no" 6296 6297 if test $found = "no" ; then 6298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6300 fi 6301 6302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6304 fi 6305 6306 CFLAGS="$CFLAGS -Wuninitialized" 6307 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6309$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6310 cacheid=xorg_cv_cc_flag__Wuninitialized 6311 if eval \${$cacheid+:} false; then : 6312 $as_echo_n "(cached) " >&6 6313else 6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6315/* end confdefs.h. */ 6316int i; 6317int 6318main () 6319{ 6320 6321 ; 6322 return 0; 6323} 6324_ACEOF 6325if ac_fn_c_try_link "$LINENO"; then : 6326 eval $cacheid=yes 6327else 6328 eval $cacheid=no 6329fi 6330rm -f core conftest.err conftest.$ac_objext \ 6331 conftest$ac_exeext conftest.$ac_ext 6332fi 6333 6334 6335 CFLAGS="$xorg_testset_save_CFLAGS" 6336 6337 eval supported=\$$cacheid 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6339$as_echo "$supported" >&6; } 6340 if test "$supported" = "yes" ; then 6341 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6342 found="yes" 6343 fi 6344 fi 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360xorg_testset_save_CFLAGS="$CFLAGS" 6361 6362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370/* end confdefs.h. */ 6371int i; 6372_ACEOF 6373if ac_fn_c_try_compile "$LINENO"; then : 6374 xorg_cv_cc_flag_unknown_warning_option=yes 6375else 6376 xorg_cv_cc_flag_unknown_warning_option=no 6377fi 6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6379fi 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6383 CFLAGS="$xorg_testset_save_CFLAGS" 6384fi 6385 6386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6389 fi 6390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6394 $as_echo_n "(cached) " >&6 6395else 6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6397/* end confdefs.h. */ 6398int i; 6399_ACEOF 6400if ac_fn_c_try_compile "$LINENO"; then : 6401 xorg_cv_cc_flag_unused_command_line_argument=yes 6402else 6403 xorg_cv_cc_flag_unused_command_line_argument=no 6404fi 6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6406fi 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411fi 6412 6413found="no" 6414 6415 if test $found = "no" ; then 6416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6418 fi 6419 6420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6422 fi 6423 6424 CFLAGS="$CFLAGS -Wshadow" 6425 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6427$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6428 cacheid=xorg_cv_cc_flag__Wshadow 6429 if eval \${$cacheid+:} false; then : 6430 $as_echo_n "(cached) " >&6 6431else 6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6433/* end confdefs.h. */ 6434int i; 6435int 6436main () 6437{ 6438 6439 ; 6440 return 0; 6441} 6442_ACEOF 6443if ac_fn_c_try_link "$LINENO"; then : 6444 eval $cacheid=yes 6445else 6446 eval $cacheid=no 6447fi 6448rm -f core conftest.err conftest.$ac_objext \ 6449 conftest$ac_exeext conftest.$ac_ext 6450fi 6451 6452 6453 CFLAGS="$xorg_testset_save_CFLAGS" 6454 6455 eval supported=\$$cacheid 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6457$as_echo "$supported" >&6; } 6458 if test "$supported" = "yes" ; then 6459 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6460 found="yes" 6461 fi 6462 fi 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478xorg_testset_save_CFLAGS="$CFLAGS" 6479 6480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6483$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6484if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6488/* end confdefs.h. */ 6489int i; 6490_ACEOF 6491if ac_fn_c_try_compile "$LINENO"; then : 6492 xorg_cv_cc_flag_unknown_warning_option=yes 6493else 6494 xorg_cv_cc_flag_unknown_warning_option=no 6495fi 6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6497fi 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6499$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6501 CFLAGS="$xorg_testset_save_CFLAGS" 6502fi 6503 6504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6507 fi 6508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6510$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6511if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513else 6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6515/* end confdefs.h. */ 6516int i; 6517_ACEOF 6518if ac_fn_c_try_compile "$LINENO"; then : 6519 xorg_cv_cc_flag_unused_command_line_argument=yes 6520else 6521 xorg_cv_cc_flag_unused_command_line_argument=no 6522fi 6523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6524fi 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6526$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6528 CFLAGS="$xorg_testset_save_CFLAGS" 6529fi 6530 6531found="no" 6532 6533 if test $found = "no" ; then 6534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6536 fi 6537 6538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6540 fi 6541 6542 CFLAGS="$CFLAGS -Wcast-qual" 6543 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6545$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6546 cacheid=xorg_cv_cc_flag__Wcast_qual 6547 if eval \${$cacheid+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549else 6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6551/* end confdefs.h. */ 6552int i; 6553int 6554main () 6555{ 6556 6557 ; 6558 return 0; 6559} 6560_ACEOF 6561if ac_fn_c_try_link "$LINENO"; then : 6562 eval $cacheid=yes 6563else 6564 eval $cacheid=no 6565fi 6566rm -f core conftest.err conftest.$ac_objext \ 6567 conftest$ac_exeext conftest.$ac_ext 6568fi 6569 6570 6571 CFLAGS="$xorg_testset_save_CFLAGS" 6572 6573 eval supported=\$$cacheid 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6575$as_echo "$supported" >&6; } 6576 if test "$supported" = "yes" ; then 6577 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6578 found="yes" 6579 fi 6580 fi 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596xorg_testset_save_CFLAGS="$CFLAGS" 6597 6598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6601$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6602if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606/* end confdefs.h. */ 6607int i; 6608_ACEOF 6609if ac_fn_c_try_compile "$LINENO"; then : 6610 xorg_cv_cc_flag_unknown_warning_option=yes 6611else 6612 xorg_cv_cc_flag_unknown_warning_option=no 6613fi 6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6615fi 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6617$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620fi 6621 6622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6625 fi 6626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6628$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6629if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6630 $as_echo_n "(cached) " >&6 6631else 6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6633/* end confdefs.h. */ 6634int i; 6635_ACEOF 6636if ac_fn_c_try_compile "$LINENO"; then : 6637 xorg_cv_cc_flag_unused_command_line_argument=yes 6638else 6639 xorg_cv_cc_flag_unused_command_line_argument=no 6640fi 6641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6642fi 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6644$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6646 CFLAGS="$xorg_testset_save_CFLAGS" 6647fi 6648 6649found="no" 6650 6651 if test $found = "no" ; then 6652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6654 fi 6655 6656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6658 fi 6659 6660 CFLAGS="$CFLAGS -Wmissing-noreturn" 6661 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6663$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6664 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6665 if eval \${$cacheid+:} false; then : 6666 $as_echo_n "(cached) " >&6 6667else 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669/* end confdefs.h. */ 6670int i; 6671int 6672main () 6673{ 6674 6675 ; 6676 return 0; 6677} 6678_ACEOF 6679if ac_fn_c_try_link "$LINENO"; then : 6680 eval $cacheid=yes 6681else 6682 eval $cacheid=no 6683fi 6684rm -f core conftest.err conftest.$ac_objext \ 6685 conftest$ac_exeext conftest.$ac_ext 6686fi 6687 6688 6689 CFLAGS="$xorg_testset_save_CFLAGS" 6690 6691 eval supported=\$$cacheid 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6693$as_echo "$supported" >&6; } 6694 if test "$supported" = "yes" ; then 6695 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6696 found="yes" 6697 fi 6698 fi 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714xorg_testset_save_CFLAGS="$CFLAGS" 6715 6716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6719$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6720if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6724/* end confdefs.h. */ 6725int i; 6726_ACEOF 6727if ac_fn_c_try_compile "$LINENO"; then : 6728 xorg_cv_cc_flag_unknown_warning_option=yes 6729else 6730 xorg_cv_cc_flag_unknown_warning_option=no 6731fi 6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6733fi 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6735$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738fi 6739 6740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6743 fi 6744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6746$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6747if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6751/* end confdefs.h. */ 6752int i; 6753_ACEOF 6754if ac_fn_c_try_compile "$LINENO"; then : 6755 xorg_cv_cc_flag_unused_command_line_argument=yes 6756else 6757 xorg_cv_cc_flag_unused_command_line_argument=no 6758fi 6759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6760fi 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6762$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6764 CFLAGS="$xorg_testset_save_CFLAGS" 6765fi 6766 6767found="no" 6768 6769 if test $found = "no" ; then 6770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6772 fi 6773 6774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6776 fi 6777 6778 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6779 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6781$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6782 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6783 if eval \${$cacheid+:} false; then : 6784 $as_echo_n "(cached) " >&6 6785else 6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6787/* end confdefs.h. */ 6788int i; 6789int 6790main () 6791{ 6792 6793 ; 6794 return 0; 6795} 6796_ACEOF 6797if ac_fn_c_try_link "$LINENO"; then : 6798 eval $cacheid=yes 6799else 6800 eval $cacheid=no 6801fi 6802rm -f core conftest.err conftest.$ac_objext \ 6803 conftest$ac_exeext conftest.$ac_ext 6804fi 6805 6806 6807 CFLAGS="$xorg_testset_save_CFLAGS" 6808 6809 eval supported=\$$cacheid 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6811$as_echo "$supported" >&6; } 6812 if test "$supported" = "yes" ; then 6813 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6814 found="yes" 6815 fi 6816 fi 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832xorg_testset_save_CFLAGS="$CFLAGS" 6833 6834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6842/* end confdefs.h. */ 6843int i; 6844_ACEOF 6845if ac_fn_c_try_compile "$LINENO"; then : 6846 xorg_cv_cc_flag_unknown_warning_option=yes 6847else 6848 xorg_cv_cc_flag_unknown_warning_option=no 6849fi 6850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6855 CFLAGS="$xorg_testset_save_CFLAGS" 6856fi 6857 6858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6861 fi 6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869/* end confdefs.h. */ 6870int i; 6871_ACEOF 6872if ac_fn_c_try_compile "$LINENO"; then : 6873 xorg_cv_cc_flag_unused_command_line_argument=yes 6874else 6875 xorg_cv_cc_flag_unused_command_line_argument=no 6876fi 6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6878fi 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6882 CFLAGS="$xorg_testset_save_CFLAGS" 6883fi 6884 6885found="no" 6886 6887 if test $found = "no" ; then 6888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6890 fi 6891 6892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 fi 6895 6896 CFLAGS="$CFLAGS -Wredundant-decls" 6897 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6899$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6900 cacheid=xorg_cv_cc_flag__Wredundant_decls 6901 if eval \${$cacheid+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6905/* end confdefs.h. */ 6906int i; 6907int 6908main () 6909{ 6910 6911 ; 6912 return 0; 6913} 6914_ACEOF 6915if ac_fn_c_try_link "$LINENO"; then : 6916 eval $cacheid=yes 6917else 6918 eval $cacheid=no 6919fi 6920rm -f core conftest.err conftest.$ac_objext \ 6921 conftest$ac_exeext conftest.$ac_ext 6922fi 6923 6924 6925 CFLAGS="$xorg_testset_save_CFLAGS" 6926 6927 eval supported=\$$cacheid 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6929$as_echo "$supported" >&6; } 6930 if test "$supported" = "yes" ; then 6931 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6932 found="yes" 6933 fi 6934 fi 6935 6936 6937 6938# These are currently disabled because they are noisy. They will be enabled 6939# in the future once the codebase is sufficiently modernized to silence 6940# them. For now, I don't want them to drown out the other warnings. 6941# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6942# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6943# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6944 6945# Turn some warnings into errors, so we don't accidently get successful builds 6946# when there are problems that should be fixed. 6947 6948if test "x$SELECTIVE_WERROR" = "xyes" ; then 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962xorg_testset_save_CFLAGS="$CFLAGS" 6963 6964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6969 $as_echo_n "(cached) " >&6 6970else 6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6972/* end confdefs.h. */ 6973int i; 6974_ACEOF 6975if ac_fn_c_try_compile "$LINENO"; then : 6976 xorg_cv_cc_flag_unknown_warning_option=yes 6977else 6978 xorg_cv_cc_flag_unknown_warning_option=no 6979fi 6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6981fi 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986fi 6987 6988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6991 fi 6992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6996 $as_echo_n "(cached) " >&6 6997else 6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999/* end confdefs.h. */ 7000int i; 7001_ACEOF 7002if ac_fn_c_try_compile "$LINENO"; then : 7003 xorg_cv_cc_flag_unused_command_line_argument=yes 7004else 7005 xorg_cv_cc_flag_unused_command_line_argument=no 7006fi 7007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7008fi 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7012 CFLAGS="$xorg_testset_save_CFLAGS" 7013fi 7014 7015found="no" 7016 7017 if test $found = "no" ; then 7018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7020 fi 7021 7022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7024 fi 7025 7026 CFLAGS="$CFLAGS -Werror=implicit" 7027 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7029$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7030 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 7031 if eval \${$cacheid+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7035/* end confdefs.h. */ 7036int i; 7037int 7038main () 7039{ 7040 7041 ; 7042 return 0; 7043} 7044_ACEOF 7045if ac_fn_c_try_link "$LINENO"; then : 7046 eval $cacheid=yes 7047else 7048 eval $cacheid=no 7049fi 7050rm -f core conftest.err conftest.$ac_objext \ 7051 conftest$ac_exeext conftest.$ac_ext 7052fi 7053 7054 7055 CFLAGS="$xorg_testset_save_CFLAGS" 7056 7057 eval supported=\$$cacheid 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7059$as_echo "$supported" >&6; } 7060 if test "$supported" = "yes" ; then 7061 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7062 found="yes" 7063 fi 7064 fi 7065 7066 if test $found = "no" ; then 7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 fi 7070 7071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7073 fi 7074 7075 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7076 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7078$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7079 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 7080 if eval \${$cacheid+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7084/* end confdefs.h. */ 7085int i; 7086int 7087main () 7088{ 7089 7090 ; 7091 return 0; 7092} 7093_ACEOF 7094if ac_fn_c_try_link "$LINENO"; then : 7095 eval $cacheid=yes 7096else 7097 eval $cacheid=no 7098fi 7099rm -f core conftest.err conftest.$ac_objext \ 7100 conftest$ac_exeext conftest.$ac_ext 7101fi 7102 7103 7104 CFLAGS="$xorg_testset_save_CFLAGS" 7105 7106 eval supported=\$$cacheid 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7108$as_echo "$supported" >&6; } 7109 if test "$supported" = "yes" ; then 7110 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7111 found="yes" 7112 fi 7113 fi 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129xorg_testset_save_CFLAGS="$CFLAGS" 7130 7131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7136 $as_echo_n "(cached) " >&6 7137else 7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7139/* end confdefs.h. */ 7140int i; 7141_ACEOF 7142if ac_fn_c_try_compile "$LINENO"; then : 7143 xorg_cv_cc_flag_unknown_warning_option=yes 7144else 7145 xorg_cv_cc_flag_unknown_warning_option=no 7146fi 7147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7148fi 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7152 CFLAGS="$xorg_testset_save_CFLAGS" 7153fi 7154 7155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7158 fi 7159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7163 $as_echo_n "(cached) " >&6 7164else 7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166/* end confdefs.h. */ 7167int i; 7168_ACEOF 7169if ac_fn_c_try_compile "$LINENO"; then : 7170 xorg_cv_cc_flag_unused_command_line_argument=yes 7171else 7172 xorg_cv_cc_flag_unused_command_line_argument=no 7173fi 7174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7175fi 7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7179 CFLAGS="$xorg_testset_save_CFLAGS" 7180fi 7181 7182found="no" 7183 7184 if test $found = "no" ; then 7185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7187 fi 7188 7189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7191 fi 7192 7193 CFLAGS="$CFLAGS -Werror=nonnull" 7194 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7196$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7197 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7198 if eval \${$cacheid+:} false; then : 7199 $as_echo_n "(cached) " >&6 7200else 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202/* end confdefs.h. */ 7203int i; 7204int 7205main () 7206{ 7207 7208 ; 7209 return 0; 7210} 7211_ACEOF 7212if ac_fn_c_try_link "$LINENO"; then : 7213 eval $cacheid=yes 7214else 7215 eval $cacheid=no 7216fi 7217rm -f core conftest.err conftest.$ac_objext \ 7218 conftest$ac_exeext conftest.$ac_ext 7219fi 7220 7221 7222 CFLAGS="$xorg_testset_save_CFLAGS" 7223 7224 eval supported=\$$cacheid 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7226$as_echo "$supported" >&6; } 7227 if test "$supported" = "yes" ; then 7228 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7229 found="yes" 7230 fi 7231 fi 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247xorg_testset_save_CFLAGS="$CFLAGS" 7248 7249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7257/* end confdefs.h. */ 7258int i; 7259_ACEOF 7260if ac_fn_c_try_compile "$LINENO"; then : 7261 xorg_cv_cc_flag_unknown_warning_option=yes 7262else 7263 xorg_cv_cc_flag_unknown_warning_option=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7266fi 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7270 CFLAGS="$xorg_testset_save_CFLAGS" 7271fi 7272 7273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7276 fi 7277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7281 $as_echo_n "(cached) " >&6 7282else 7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7284/* end confdefs.h. */ 7285int i; 7286_ACEOF 7287if ac_fn_c_try_compile "$LINENO"; then : 7288 xorg_cv_cc_flag_unused_command_line_argument=yes 7289else 7290 xorg_cv_cc_flag_unused_command_line_argument=no 7291fi 7292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7293fi 7294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7297 CFLAGS="$xorg_testset_save_CFLAGS" 7298fi 7299 7300found="no" 7301 7302 if test $found = "no" ; then 7303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7305 fi 7306 7307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7309 fi 7310 7311 CFLAGS="$CFLAGS -Werror=init-self" 7312 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7314$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7315 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7316 if eval \${$cacheid+:} false; then : 7317 $as_echo_n "(cached) " >&6 7318else 7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7320/* end confdefs.h. */ 7321int i; 7322int 7323main () 7324{ 7325 7326 ; 7327 return 0; 7328} 7329_ACEOF 7330if ac_fn_c_try_link "$LINENO"; then : 7331 eval $cacheid=yes 7332else 7333 eval $cacheid=no 7334fi 7335rm -f core conftest.err conftest.$ac_objext \ 7336 conftest$ac_exeext conftest.$ac_ext 7337fi 7338 7339 7340 CFLAGS="$xorg_testset_save_CFLAGS" 7341 7342 eval supported=\$$cacheid 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7344$as_echo "$supported" >&6; } 7345 if test "$supported" = "yes" ; then 7346 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7347 found="yes" 7348 fi 7349 fi 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365xorg_testset_save_CFLAGS="$CFLAGS" 7366 7367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7372 $as_echo_n "(cached) " >&6 7373else 7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7375/* end confdefs.h. */ 7376int i; 7377_ACEOF 7378if ac_fn_c_try_compile "$LINENO"; then : 7379 xorg_cv_cc_flag_unknown_warning_option=yes 7380else 7381 xorg_cv_cc_flag_unknown_warning_option=no 7382fi 7383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7384fi 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7388 CFLAGS="$xorg_testset_save_CFLAGS" 7389fi 7390 7391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7394 fi 7395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7399 $as_echo_n "(cached) " >&6 7400else 7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7402/* end confdefs.h. */ 7403int i; 7404_ACEOF 7405if ac_fn_c_try_compile "$LINENO"; then : 7406 xorg_cv_cc_flag_unused_command_line_argument=yes 7407else 7408 xorg_cv_cc_flag_unused_command_line_argument=no 7409fi 7410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7411fi 7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7415 CFLAGS="$xorg_testset_save_CFLAGS" 7416fi 7417 7418found="no" 7419 7420 if test $found = "no" ; then 7421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7423 fi 7424 7425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7427 fi 7428 7429 CFLAGS="$CFLAGS -Werror=main" 7430 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7432$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7433 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7434 if eval \${$cacheid+:} false; then : 7435 $as_echo_n "(cached) " >&6 7436else 7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7438/* end confdefs.h. */ 7439int i; 7440int 7441main () 7442{ 7443 7444 ; 7445 return 0; 7446} 7447_ACEOF 7448if ac_fn_c_try_link "$LINENO"; then : 7449 eval $cacheid=yes 7450else 7451 eval $cacheid=no 7452fi 7453rm -f core conftest.err conftest.$ac_objext \ 7454 conftest$ac_exeext conftest.$ac_ext 7455fi 7456 7457 7458 CFLAGS="$xorg_testset_save_CFLAGS" 7459 7460 eval supported=\$$cacheid 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7462$as_echo "$supported" >&6; } 7463 if test "$supported" = "yes" ; then 7464 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7465 found="yes" 7466 fi 7467 fi 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483xorg_testset_save_CFLAGS="$CFLAGS" 7484 7485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7493/* end confdefs.h. */ 7494int i; 7495_ACEOF 7496if ac_fn_c_try_compile "$LINENO"; then : 7497 xorg_cv_cc_flag_unknown_warning_option=yes 7498else 7499 xorg_cv_cc_flag_unknown_warning_option=no 7500fi 7501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7502fi 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7506 CFLAGS="$xorg_testset_save_CFLAGS" 7507fi 7508 7509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7512 fi 7513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518else 7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7520/* end confdefs.h. */ 7521int i; 7522_ACEOF 7523if ac_fn_c_try_compile "$LINENO"; then : 7524 xorg_cv_cc_flag_unused_command_line_argument=yes 7525else 7526 xorg_cv_cc_flag_unused_command_line_argument=no 7527fi 7528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7529fi 7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7533 CFLAGS="$xorg_testset_save_CFLAGS" 7534fi 7535 7536found="no" 7537 7538 if test $found = "no" ; then 7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 fi 7542 7543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7545 fi 7546 7547 CFLAGS="$CFLAGS -Werror=missing-braces" 7548 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7550$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7551 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7552 if eval \${$cacheid+:} false; then : 7553 $as_echo_n "(cached) " >&6 7554else 7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7556/* end confdefs.h. */ 7557int i; 7558int 7559main () 7560{ 7561 7562 ; 7563 return 0; 7564} 7565_ACEOF 7566if ac_fn_c_try_link "$LINENO"; then : 7567 eval $cacheid=yes 7568else 7569 eval $cacheid=no 7570fi 7571rm -f core conftest.err conftest.$ac_objext \ 7572 conftest$ac_exeext conftest.$ac_ext 7573fi 7574 7575 7576 CFLAGS="$xorg_testset_save_CFLAGS" 7577 7578 eval supported=\$$cacheid 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7580$as_echo "$supported" >&6; } 7581 if test "$supported" = "yes" ; then 7582 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7583 found="yes" 7584 fi 7585 fi 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601xorg_testset_save_CFLAGS="$CFLAGS" 7602 7603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7611/* end confdefs.h. */ 7612int i; 7613_ACEOF 7614if ac_fn_c_try_compile "$LINENO"; then : 7615 xorg_cv_cc_flag_unknown_warning_option=yes 7616else 7617 xorg_cv_cc_flag_unknown_warning_option=no 7618fi 7619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7620fi 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625fi 7626 7627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7630 fi 7631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7635 $as_echo_n "(cached) " >&6 7636else 7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7638/* end confdefs.h. */ 7639int i; 7640_ACEOF 7641if ac_fn_c_try_compile "$LINENO"; then : 7642 xorg_cv_cc_flag_unused_command_line_argument=yes 7643else 7644 xorg_cv_cc_flag_unused_command_line_argument=no 7645fi 7646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7647fi 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7651 CFLAGS="$xorg_testset_save_CFLAGS" 7652fi 7653 7654found="no" 7655 7656 if test $found = "no" ; then 7657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7659 fi 7660 7661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7663 fi 7664 7665 CFLAGS="$CFLAGS -Werror=sequence-point" 7666 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7668$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7669 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7670 if eval \${$cacheid+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675int i; 7676int 7677main () 7678{ 7679 7680 ; 7681 return 0; 7682} 7683_ACEOF 7684if ac_fn_c_try_link "$LINENO"; then : 7685 eval $cacheid=yes 7686else 7687 eval $cacheid=no 7688fi 7689rm -f core conftest.err conftest.$ac_objext \ 7690 conftest$ac_exeext conftest.$ac_ext 7691fi 7692 7693 7694 CFLAGS="$xorg_testset_save_CFLAGS" 7695 7696 eval supported=\$$cacheid 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7698$as_echo "$supported" >&6; } 7699 if test "$supported" = "yes" ; then 7700 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7701 found="yes" 7702 fi 7703 fi 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719xorg_testset_save_CFLAGS="$CFLAGS" 7720 7721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7726 $as_echo_n "(cached) " >&6 7727else 7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7729/* end confdefs.h. */ 7730int i; 7731_ACEOF 7732if ac_fn_c_try_compile "$LINENO"; then : 7733 xorg_cv_cc_flag_unknown_warning_option=yes 7734else 7735 xorg_cv_cc_flag_unknown_warning_option=no 7736fi 7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7738fi 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7742 CFLAGS="$xorg_testset_save_CFLAGS" 7743fi 7744 7745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7748 fi 7749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7756/* end confdefs.h. */ 7757int i; 7758_ACEOF 7759if ac_fn_c_try_compile "$LINENO"; then : 7760 xorg_cv_cc_flag_unused_command_line_argument=yes 7761else 7762 xorg_cv_cc_flag_unused_command_line_argument=no 7763fi 7764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7765fi 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7769 CFLAGS="$xorg_testset_save_CFLAGS" 7770fi 7771 7772found="no" 7773 7774 if test $found = "no" ; then 7775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7777 fi 7778 7779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7781 fi 7782 7783 CFLAGS="$CFLAGS -Werror=return-type" 7784 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7786$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7787 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7788 if eval \${$cacheid+:} false; then : 7789 $as_echo_n "(cached) " >&6 7790else 7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7792/* end confdefs.h. */ 7793int i; 7794int 7795main () 7796{ 7797 7798 ; 7799 return 0; 7800} 7801_ACEOF 7802if ac_fn_c_try_link "$LINENO"; then : 7803 eval $cacheid=yes 7804else 7805 eval $cacheid=no 7806fi 7807rm -f core conftest.err conftest.$ac_objext \ 7808 conftest$ac_exeext conftest.$ac_ext 7809fi 7810 7811 7812 CFLAGS="$xorg_testset_save_CFLAGS" 7813 7814 eval supported=\$$cacheid 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7816$as_echo "$supported" >&6; } 7817 if test "$supported" = "yes" ; then 7818 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7819 found="yes" 7820 fi 7821 fi 7822 7823 if test $found = "no" ; then 7824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7826 fi 7827 7828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7830 fi 7831 7832 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7833 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7835$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7836 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7837 if eval \${$cacheid+:} false; then : 7838 $as_echo_n "(cached) " >&6 7839else 7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7841/* end confdefs.h. */ 7842int i; 7843int 7844main () 7845{ 7846 7847 ; 7848 return 0; 7849} 7850_ACEOF 7851if ac_fn_c_try_link "$LINENO"; then : 7852 eval $cacheid=yes 7853else 7854 eval $cacheid=no 7855fi 7856rm -f core conftest.err conftest.$ac_objext \ 7857 conftest$ac_exeext conftest.$ac_ext 7858fi 7859 7860 7861 CFLAGS="$xorg_testset_save_CFLAGS" 7862 7863 eval supported=\$$cacheid 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7865$as_echo "$supported" >&6; } 7866 if test "$supported" = "yes" ; then 7867 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7868 found="yes" 7869 fi 7870 fi 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886xorg_testset_save_CFLAGS="$CFLAGS" 7887 7888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7893 $as_echo_n "(cached) " >&6 7894else 7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7896/* end confdefs.h. */ 7897int i; 7898_ACEOF 7899if ac_fn_c_try_compile "$LINENO"; then : 7900 xorg_cv_cc_flag_unknown_warning_option=yes 7901else 7902 xorg_cv_cc_flag_unknown_warning_option=no 7903fi 7904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7905fi 7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7909 CFLAGS="$xorg_testset_save_CFLAGS" 7910fi 7911 7912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7915 fi 7916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7920 $as_echo_n "(cached) " >&6 7921else 7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7923/* end confdefs.h. */ 7924int i; 7925_ACEOF 7926if ac_fn_c_try_compile "$LINENO"; then : 7927 xorg_cv_cc_flag_unused_command_line_argument=yes 7928else 7929 xorg_cv_cc_flag_unused_command_line_argument=no 7930fi 7931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7932fi 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7936 CFLAGS="$xorg_testset_save_CFLAGS" 7937fi 7938 7939found="no" 7940 7941 if test $found = "no" ; then 7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7944 fi 7945 7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7948 fi 7949 7950 CFLAGS="$CFLAGS -Werror=trigraphs" 7951 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7953$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7954 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7955 if eval \${$cacheid+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7959/* end confdefs.h. */ 7960int i; 7961int 7962main () 7963{ 7964 7965 ; 7966 return 0; 7967} 7968_ACEOF 7969if ac_fn_c_try_link "$LINENO"; then : 7970 eval $cacheid=yes 7971else 7972 eval $cacheid=no 7973fi 7974rm -f core conftest.err conftest.$ac_objext \ 7975 conftest$ac_exeext conftest.$ac_ext 7976fi 7977 7978 7979 CFLAGS="$xorg_testset_save_CFLAGS" 7980 7981 eval supported=\$$cacheid 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7983$as_echo "$supported" >&6; } 7984 if test "$supported" = "yes" ; then 7985 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7986 found="yes" 7987 fi 7988 fi 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004xorg_testset_save_CFLAGS="$CFLAGS" 8005 8006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8011 $as_echo_n "(cached) " >&6 8012else 8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8014/* end confdefs.h. */ 8015int i; 8016_ACEOF 8017if ac_fn_c_try_compile "$LINENO"; then : 8018 xorg_cv_cc_flag_unknown_warning_option=yes 8019else 8020 xorg_cv_cc_flag_unknown_warning_option=no 8021fi 8022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8023fi 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8027 CFLAGS="$xorg_testset_save_CFLAGS" 8028fi 8029 8030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8033 fi 8034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8038 $as_echo_n "(cached) " >&6 8039else 8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8041/* end confdefs.h. */ 8042int i; 8043_ACEOF 8044if ac_fn_c_try_compile "$LINENO"; then : 8045 xorg_cv_cc_flag_unused_command_line_argument=yes 8046else 8047 xorg_cv_cc_flag_unused_command_line_argument=no 8048fi 8049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8050fi 8051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8054 CFLAGS="$xorg_testset_save_CFLAGS" 8055fi 8056 8057found="no" 8058 8059 if test $found = "no" ; then 8060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8062 fi 8063 8064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8066 fi 8067 8068 CFLAGS="$CFLAGS -Werror=array-bounds" 8069 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8071$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8072 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 8073 if eval \${$cacheid+:} false; then : 8074 $as_echo_n "(cached) " >&6 8075else 8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8077/* end confdefs.h. */ 8078int i; 8079int 8080main () 8081{ 8082 8083 ; 8084 return 0; 8085} 8086_ACEOF 8087if ac_fn_c_try_link "$LINENO"; then : 8088 eval $cacheid=yes 8089else 8090 eval $cacheid=no 8091fi 8092rm -f core conftest.err conftest.$ac_objext \ 8093 conftest$ac_exeext conftest.$ac_ext 8094fi 8095 8096 8097 CFLAGS="$xorg_testset_save_CFLAGS" 8098 8099 eval supported=\$$cacheid 8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8101$as_echo "$supported" >&6; } 8102 if test "$supported" = "yes" ; then 8103 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8104 found="yes" 8105 fi 8106 fi 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122xorg_testset_save_CFLAGS="$CFLAGS" 8123 8124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8132/* end confdefs.h. */ 8133int i; 8134_ACEOF 8135if ac_fn_c_try_compile "$LINENO"; then : 8136 xorg_cv_cc_flag_unknown_warning_option=yes 8137else 8138 xorg_cv_cc_flag_unknown_warning_option=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8141fi 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146fi 8147 8148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8151 fi 8152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160int i; 8161_ACEOF 8162if ac_fn_c_try_compile "$LINENO"; then : 8163 xorg_cv_cc_flag_unused_command_line_argument=yes 8164else 8165 xorg_cv_cc_flag_unused_command_line_argument=no 8166fi 8167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8168fi 8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8172 CFLAGS="$xorg_testset_save_CFLAGS" 8173fi 8174 8175found="no" 8176 8177 if test $found = "no" ; then 8178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8180 fi 8181 8182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8184 fi 8185 8186 CFLAGS="$CFLAGS -Werror=write-strings" 8187 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8189$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8190 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8191 if eval \${$cacheid+:} false; then : 8192 $as_echo_n "(cached) " >&6 8193else 8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8195/* end confdefs.h. */ 8196int i; 8197int 8198main () 8199{ 8200 8201 ; 8202 return 0; 8203} 8204_ACEOF 8205if ac_fn_c_try_link "$LINENO"; then : 8206 eval $cacheid=yes 8207else 8208 eval $cacheid=no 8209fi 8210rm -f core conftest.err conftest.$ac_objext \ 8211 conftest$ac_exeext conftest.$ac_ext 8212fi 8213 8214 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216 8217 eval supported=\$$cacheid 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8219$as_echo "$supported" >&6; } 8220 if test "$supported" = "yes" ; then 8221 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8222 found="yes" 8223 fi 8224 fi 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240xorg_testset_save_CFLAGS="$CFLAGS" 8241 8242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8246if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8247 $as_echo_n "(cached) " >&6 8248else 8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250/* end confdefs.h. */ 8251int i; 8252_ACEOF 8253if ac_fn_c_try_compile "$LINENO"; then : 8254 xorg_cv_cc_flag_unknown_warning_option=yes 8255else 8256 xorg_cv_cc_flag_unknown_warning_option=no 8257fi 8258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8259fi 8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8261$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264fi 8265 8266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8269 fi 8270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8272$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8273if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8277/* end confdefs.h. */ 8278int i; 8279_ACEOF 8280if ac_fn_c_try_compile "$LINENO"; then : 8281 xorg_cv_cc_flag_unused_command_line_argument=yes 8282else 8283 xorg_cv_cc_flag_unused_command_line_argument=no 8284fi 8285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8286fi 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8288$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8290 CFLAGS="$xorg_testset_save_CFLAGS" 8291fi 8292 8293found="no" 8294 8295 if test $found = "no" ; then 8296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8298 fi 8299 8300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8302 fi 8303 8304 CFLAGS="$CFLAGS -Werror=address" 8305 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8307$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8308 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8309 if eval \${$cacheid+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311else 8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313/* end confdefs.h. */ 8314int i; 8315int 8316main () 8317{ 8318 8319 ; 8320 return 0; 8321} 8322_ACEOF 8323if ac_fn_c_try_link "$LINENO"; then : 8324 eval $cacheid=yes 8325else 8326 eval $cacheid=no 8327fi 8328rm -f core conftest.err conftest.$ac_objext \ 8329 conftest$ac_exeext conftest.$ac_ext 8330fi 8331 8332 8333 CFLAGS="$xorg_testset_save_CFLAGS" 8334 8335 eval supported=\$$cacheid 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8337$as_echo "$supported" >&6; } 8338 if test "$supported" = "yes" ; then 8339 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8340 found="yes" 8341 fi 8342 fi 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358xorg_testset_save_CFLAGS="$CFLAGS" 8359 8360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8363$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8364if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368/* end confdefs.h. */ 8369int i; 8370_ACEOF 8371if ac_fn_c_try_compile "$LINENO"; then : 8372 xorg_cv_cc_flag_unknown_warning_option=yes 8373else 8374 xorg_cv_cc_flag_unknown_warning_option=no 8375fi 8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8377fi 8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8379$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8381 CFLAGS="$xorg_testset_save_CFLAGS" 8382fi 8383 8384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 fi 8388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8390$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8391if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8392 $as_echo_n "(cached) " >&6 8393else 8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8395/* end confdefs.h. */ 8396int i; 8397_ACEOF 8398if ac_fn_c_try_compile "$LINENO"; then : 8399 xorg_cv_cc_flag_unused_command_line_argument=yes 8400else 8401 xorg_cv_cc_flag_unused_command_line_argument=no 8402fi 8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8404fi 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8406$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8408 CFLAGS="$xorg_testset_save_CFLAGS" 8409fi 8410 8411found="no" 8412 8413 if test $found = "no" ; then 8414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8416 fi 8417 8418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8420 fi 8421 8422 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8423 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8425$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8426 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8427 if eval \${$cacheid+:} false; then : 8428 $as_echo_n "(cached) " >&6 8429else 8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8431/* end confdefs.h. */ 8432int i; 8433int 8434main () 8435{ 8436 8437 ; 8438 return 0; 8439} 8440_ACEOF 8441if ac_fn_c_try_link "$LINENO"; then : 8442 eval $cacheid=yes 8443else 8444 eval $cacheid=no 8445fi 8446rm -f core conftest.err conftest.$ac_objext \ 8447 conftest$ac_exeext conftest.$ac_ext 8448fi 8449 8450 8451 CFLAGS="$xorg_testset_save_CFLAGS" 8452 8453 eval supported=\$$cacheid 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8455$as_echo "$supported" >&6; } 8456 if test "$supported" = "yes" ; then 8457 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8458 found="yes" 8459 fi 8460 fi 8461 8462 if test $found = "no" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 8467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8469 fi 8470 8471 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8472 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8474$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8475 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8476 if eval \${$cacheid+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478else 8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8480/* end confdefs.h. */ 8481int i; 8482int 8483main () 8484{ 8485 8486 ; 8487 return 0; 8488} 8489_ACEOF 8490if ac_fn_c_try_link "$LINENO"; then : 8491 eval $cacheid=yes 8492else 8493 eval $cacheid=no 8494fi 8495rm -f core conftest.err conftest.$ac_objext \ 8496 conftest$ac_exeext conftest.$ac_ext 8497fi 8498 8499 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501 8502 eval supported=\$$cacheid 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8504$as_echo "$supported" >&6; } 8505 if test "$supported" = "yes" ; then 8506 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8507 found="yes" 8508 fi 8509 fi 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525xorg_testset_save_CFLAGS="$CFLAGS" 8526 8527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536int i; 8537_ACEOF 8538if ac_fn_c_try_compile "$LINENO"; then : 8539 xorg_cv_cc_flag_unknown_warning_option=yes 8540else 8541 xorg_cv_cc_flag_unknown_warning_option=no 8542fi 8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8544fi 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8548 CFLAGS="$xorg_testset_save_CFLAGS" 8549fi 8550 8551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8554 fi 8555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8559 $as_echo_n "(cached) " >&6 8560else 8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8562/* end confdefs.h. */ 8563int i; 8564_ACEOF 8565if ac_fn_c_try_compile "$LINENO"; then : 8566 xorg_cv_cc_flag_unused_command_line_argument=yes 8567else 8568 xorg_cv_cc_flag_unused_command_line_argument=no 8569fi 8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8571fi 8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8575 CFLAGS="$xorg_testset_save_CFLAGS" 8576fi 8577 8578found="no" 8579 8580 if test $found = "no" ; then 8581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8583 fi 8584 8585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8587 fi 8588 8589 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8590 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8592$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8593 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8594 if eval \${$cacheid+:} false; then : 8595 $as_echo_n "(cached) " >&6 8596else 8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8598/* end confdefs.h. */ 8599int i; 8600int 8601main () 8602{ 8603 8604 ; 8605 return 0; 8606} 8607_ACEOF 8608if ac_fn_c_try_link "$LINENO"; then : 8609 eval $cacheid=yes 8610else 8611 eval $cacheid=no 8612fi 8613rm -f core conftest.err conftest.$ac_objext \ 8614 conftest$ac_exeext conftest.$ac_ext 8615fi 8616 8617 8618 CFLAGS="$xorg_testset_save_CFLAGS" 8619 8620 eval supported=\$$cacheid 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8622$as_echo "$supported" >&6; } 8623 if test "$supported" = "yes" ; then 8624 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8625 found="yes" 8626 fi 8627 fi 8628 8629 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8630else 8631{ $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 8632$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;} 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646xorg_testset_save_CFLAGS="$CFLAGS" 8647 8648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654else 8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8656/* end confdefs.h. */ 8657int i; 8658_ACEOF 8659if ac_fn_c_try_compile "$LINENO"; then : 8660 xorg_cv_cc_flag_unknown_warning_option=yes 8661else 8662 xorg_cv_cc_flag_unknown_warning_option=no 8663fi 8664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8665fi 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8669 CFLAGS="$xorg_testset_save_CFLAGS" 8670fi 8671 8672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8675 fi 8676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8680 $as_echo_n "(cached) " >&6 8681else 8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8683/* end confdefs.h. */ 8684int i; 8685_ACEOF 8686if ac_fn_c_try_compile "$LINENO"; then : 8687 xorg_cv_cc_flag_unused_command_line_argument=yes 8688else 8689 xorg_cv_cc_flag_unused_command_line_argument=no 8690fi 8691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8692fi 8693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8696 CFLAGS="$xorg_testset_save_CFLAGS" 8697fi 8698 8699found="no" 8700 8701 if test $found = "no" ; then 8702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8704 fi 8705 8706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8708 fi 8709 8710 CFLAGS="$CFLAGS -Wimplicit" 8711 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8713$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8714 cacheid=xorg_cv_cc_flag__Wimplicit 8715 if eval \${$cacheid+:} false; then : 8716 $as_echo_n "(cached) " >&6 8717else 8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8719/* end confdefs.h. */ 8720int i; 8721int 8722main () 8723{ 8724 8725 ; 8726 return 0; 8727} 8728_ACEOF 8729if ac_fn_c_try_link "$LINENO"; then : 8730 eval $cacheid=yes 8731else 8732 eval $cacheid=no 8733fi 8734rm -f core conftest.err conftest.$ac_objext \ 8735 conftest$ac_exeext conftest.$ac_ext 8736fi 8737 8738 8739 CFLAGS="$xorg_testset_save_CFLAGS" 8740 8741 eval supported=\$$cacheid 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8743$as_echo "$supported" >&6; } 8744 if test "$supported" = "yes" ; then 8745 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8746 found="yes" 8747 fi 8748 fi 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764xorg_testset_save_CFLAGS="$CFLAGS" 8765 8766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8771 $as_echo_n "(cached) " >&6 8772else 8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8774/* end confdefs.h. */ 8775int i; 8776_ACEOF 8777if ac_fn_c_try_compile "$LINENO"; then : 8778 xorg_cv_cc_flag_unknown_warning_option=yes 8779else 8780 xorg_cv_cc_flag_unknown_warning_option=no 8781fi 8782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8783fi 8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8787 CFLAGS="$xorg_testset_save_CFLAGS" 8788fi 8789 8790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8793 fi 8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8798 $as_echo_n "(cached) " >&6 8799else 8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8801/* end confdefs.h. */ 8802int i; 8803_ACEOF 8804if ac_fn_c_try_compile "$LINENO"; then : 8805 xorg_cv_cc_flag_unused_command_line_argument=yes 8806else 8807 xorg_cv_cc_flag_unused_command_line_argument=no 8808fi 8809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8810fi 8811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8814 CFLAGS="$xorg_testset_save_CFLAGS" 8815fi 8816 8817found="no" 8818 8819 if test $found = "no" ; then 8820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8822 fi 8823 8824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8826 fi 8827 8828 CFLAGS="$CFLAGS -Wnonnull" 8829 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8831$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8832 cacheid=xorg_cv_cc_flag__Wnonnull 8833 if eval \${$cacheid+:} false; then : 8834 $as_echo_n "(cached) " >&6 8835else 8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8837/* end confdefs.h. */ 8838int i; 8839int 8840main () 8841{ 8842 8843 ; 8844 return 0; 8845} 8846_ACEOF 8847if ac_fn_c_try_link "$LINENO"; then : 8848 eval $cacheid=yes 8849else 8850 eval $cacheid=no 8851fi 8852rm -f core conftest.err conftest.$ac_objext \ 8853 conftest$ac_exeext conftest.$ac_ext 8854fi 8855 8856 8857 CFLAGS="$xorg_testset_save_CFLAGS" 8858 8859 eval supported=\$$cacheid 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8861$as_echo "$supported" >&6; } 8862 if test "$supported" = "yes" ; then 8863 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8864 found="yes" 8865 fi 8866 fi 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882xorg_testset_save_CFLAGS="$CFLAGS" 8883 8884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8889 $as_echo_n "(cached) " >&6 8890else 8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8892/* end confdefs.h. */ 8893int i; 8894_ACEOF 8895if ac_fn_c_try_compile "$LINENO"; then : 8896 xorg_cv_cc_flag_unknown_warning_option=yes 8897else 8898 xorg_cv_cc_flag_unknown_warning_option=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8901fi 8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906fi 8907 8908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8911 fi 8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8916 $as_echo_n "(cached) " >&6 8917else 8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8919/* end confdefs.h. */ 8920int i; 8921_ACEOF 8922if ac_fn_c_try_compile "$LINENO"; then : 8923 xorg_cv_cc_flag_unused_command_line_argument=yes 8924else 8925 xorg_cv_cc_flag_unused_command_line_argument=no 8926fi 8927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8928fi 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8932 CFLAGS="$xorg_testset_save_CFLAGS" 8933fi 8934 8935found="no" 8936 8937 if test $found = "no" ; then 8938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8940 fi 8941 8942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8944 fi 8945 8946 CFLAGS="$CFLAGS -Winit-self" 8947 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8949$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8950 cacheid=xorg_cv_cc_flag__Winit_self 8951 if eval \${$cacheid+:} false; then : 8952 $as_echo_n "(cached) " >&6 8953else 8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8955/* end confdefs.h. */ 8956int i; 8957int 8958main () 8959{ 8960 8961 ; 8962 return 0; 8963} 8964_ACEOF 8965if ac_fn_c_try_link "$LINENO"; then : 8966 eval $cacheid=yes 8967else 8968 eval $cacheid=no 8969fi 8970rm -f core conftest.err conftest.$ac_objext \ 8971 conftest$ac_exeext conftest.$ac_ext 8972fi 8973 8974 8975 CFLAGS="$xorg_testset_save_CFLAGS" 8976 8977 eval supported=\$$cacheid 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8979$as_echo "$supported" >&6; } 8980 if test "$supported" = "yes" ; then 8981 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8982 found="yes" 8983 fi 8984 fi 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000xorg_testset_save_CFLAGS="$CFLAGS" 9001 9002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9007 $as_echo_n "(cached) " >&6 9008else 9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010/* end confdefs.h. */ 9011int i; 9012_ACEOF 9013if ac_fn_c_try_compile "$LINENO"; then : 9014 xorg_cv_cc_flag_unknown_warning_option=yes 9015else 9016 xorg_cv_cc_flag_unknown_warning_option=no 9017fi 9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9019fi 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9023 CFLAGS="$xorg_testset_save_CFLAGS" 9024fi 9025 9026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9029 fi 9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9034 $as_echo_n "(cached) " >&6 9035else 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037/* end confdefs.h. */ 9038int i; 9039_ACEOF 9040if ac_fn_c_try_compile "$LINENO"; then : 9041 xorg_cv_cc_flag_unused_command_line_argument=yes 9042else 9043 xorg_cv_cc_flag_unused_command_line_argument=no 9044fi 9045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9046fi 9047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9050 CFLAGS="$xorg_testset_save_CFLAGS" 9051fi 9052 9053found="no" 9054 9055 if test $found = "no" ; then 9056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9058 fi 9059 9060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9062 fi 9063 9064 CFLAGS="$CFLAGS -Wmain" 9065 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9067$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9068 cacheid=xorg_cv_cc_flag__Wmain 9069 if eval \${$cacheid+:} false; then : 9070 $as_echo_n "(cached) " >&6 9071else 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074int i; 9075int 9076main () 9077{ 9078 9079 ; 9080 return 0; 9081} 9082_ACEOF 9083if ac_fn_c_try_link "$LINENO"; then : 9084 eval $cacheid=yes 9085else 9086 eval $cacheid=no 9087fi 9088rm -f core conftest.err conftest.$ac_objext \ 9089 conftest$ac_exeext conftest.$ac_ext 9090fi 9091 9092 9093 CFLAGS="$xorg_testset_save_CFLAGS" 9094 9095 eval supported=\$$cacheid 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9097$as_echo "$supported" >&6; } 9098 if test "$supported" = "yes" ; then 9099 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9100 found="yes" 9101 fi 9102 fi 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118xorg_testset_save_CFLAGS="$CFLAGS" 9119 9120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9125 $as_echo_n "(cached) " >&6 9126else 9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128/* end confdefs.h. */ 9129int i; 9130_ACEOF 9131if ac_fn_c_try_compile "$LINENO"; then : 9132 xorg_cv_cc_flag_unknown_warning_option=yes 9133else 9134 xorg_cv_cc_flag_unknown_warning_option=no 9135fi 9136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9137fi 9138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9141 CFLAGS="$xorg_testset_save_CFLAGS" 9142fi 9143 9144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9147 fi 9148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9152 $as_echo_n "(cached) " >&6 9153else 9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9155/* end confdefs.h. */ 9156int i; 9157_ACEOF 9158if ac_fn_c_try_compile "$LINENO"; then : 9159 xorg_cv_cc_flag_unused_command_line_argument=yes 9160else 9161 xorg_cv_cc_flag_unused_command_line_argument=no 9162fi 9163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9164fi 9165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9168 CFLAGS="$xorg_testset_save_CFLAGS" 9169fi 9170 9171found="no" 9172 9173 if test $found = "no" ; then 9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9176 fi 9177 9178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9180 fi 9181 9182 CFLAGS="$CFLAGS -Wmissing-braces" 9183 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9185$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9186 cacheid=xorg_cv_cc_flag__Wmissing_braces 9187 if eval \${$cacheid+:} false; then : 9188 $as_echo_n "(cached) " >&6 9189else 9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9191/* end confdefs.h. */ 9192int i; 9193int 9194main () 9195{ 9196 9197 ; 9198 return 0; 9199} 9200_ACEOF 9201if ac_fn_c_try_link "$LINENO"; then : 9202 eval $cacheid=yes 9203else 9204 eval $cacheid=no 9205fi 9206rm -f core conftest.err conftest.$ac_objext \ 9207 conftest$ac_exeext conftest.$ac_ext 9208fi 9209 9210 9211 CFLAGS="$xorg_testset_save_CFLAGS" 9212 9213 eval supported=\$$cacheid 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9215$as_echo "$supported" >&6; } 9216 if test "$supported" = "yes" ; then 9217 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9218 found="yes" 9219 fi 9220 fi 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236xorg_testset_save_CFLAGS="$CFLAGS" 9237 9238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9243 $as_echo_n "(cached) " >&6 9244else 9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9246/* end confdefs.h. */ 9247int i; 9248_ACEOF 9249if ac_fn_c_try_compile "$LINENO"; then : 9250 xorg_cv_cc_flag_unknown_warning_option=yes 9251else 9252 xorg_cv_cc_flag_unknown_warning_option=no 9253fi 9254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9255fi 9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9259 CFLAGS="$xorg_testset_save_CFLAGS" 9260fi 9261 9262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9265 fi 9266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9270 $as_echo_n "(cached) " >&6 9271else 9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9273/* end confdefs.h. */ 9274int i; 9275_ACEOF 9276if ac_fn_c_try_compile "$LINENO"; then : 9277 xorg_cv_cc_flag_unused_command_line_argument=yes 9278else 9279 xorg_cv_cc_flag_unused_command_line_argument=no 9280fi 9281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9282fi 9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287fi 9288 9289found="no" 9290 9291 if test $found = "no" ; then 9292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9294 fi 9295 9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9298 fi 9299 9300 CFLAGS="$CFLAGS -Wsequence-point" 9301 9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9303$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9304 cacheid=xorg_cv_cc_flag__Wsequence_point 9305 if eval \${$cacheid+:} false; then : 9306 $as_echo_n "(cached) " >&6 9307else 9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9309/* end confdefs.h. */ 9310int i; 9311int 9312main () 9313{ 9314 9315 ; 9316 return 0; 9317} 9318_ACEOF 9319if ac_fn_c_try_link "$LINENO"; then : 9320 eval $cacheid=yes 9321else 9322 eval $cacheid=no 9323fi 9324rm -f core conftest.err conftest.$ac_objext \ 9325 conftest$ac_exeext conftest.$ac_ext 9326fi 9327 9328 9329 CFLAGS="$xorg_testset_save_CFLAGS" 9330 9331 eval supported=\$$cacheid 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9333$as_echo "$supported" >&6; } 9334 if test "$supported" = "yes" ; then 9335 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9336 found="yes" 9337 fi 9338 fi 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354xorg_testset_save_CFLAGS="$CFLAGS" 9355 9356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9361 $as_echo_n "(cached) " >&6 9362else 9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9364/* end confdefs.h. */ 9365int i; 9366_ACEOF 9367if ac_fn_c_try_compile "$LINENO"; then : 9368 xorg_cv_cc_flag_unknown_warning_option=yes 9369else 9370 xorg_cv_cc_flag_unknown_warning_option=no 9371fi 9372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9373fi 9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9377 CFLAGS="$xorg_testset_save_CFLAGS" 9378fi 9379 9380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9383 fi 9384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9391/* end confdefs.h. */ 9392int i; 9393_ACEOF 9394if ac_fn_c_try_compile "$LINENO"; then : 9395 xorg_cv_cc_flag_unused_command_line_argument=yes 9396else 9397 xorg_cv_cc_flag_unused_command_line_argument=no 9398fi 9399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9400fi 9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9404 CFLAGS="$xorg_testset_save_CFLAGS" 9405fi 9406 9407found="no" 9408 9409 if test $found = "no" ; then 9410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9412 fi 9413 9414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9416 fi 9417 9418 CFLAGS="$CFLAGS -Wreturn-type" 9419 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9421$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9422 cacheid=xorg_cv_cc_flag__Wreturn_type 9423 if eval \${$cacheid+:} false; then : 9424 $as_echo_n "(cached) " >&6 9425else 9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427/* end confdefs.h. */ 9428int i; 9429int 9430main () 9431{ 9432 9433 ; 9434 return 0; 9435} 9436_ACEOF 9437if ac_fn_c_try_link "$LINENO"; then : 9438 eval $cacheid=yes 9439else 9440 eval $cacheid=no 9441fi 9442rm -f core conftest.err conftest.$ac_objext \ 9443 conftest$ac_exeext conftest.$ac_ext 9444fi 9445 9446 9447 CFLAGS="$xorg_testset_save_CFLAGS" 9448 9449 eval supported=\$$cacheid 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9451$as_echo "$supported" >&6; } 9452 if test "$supported" = "yes" ; then 9453 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9454 found="yes" 9455 fi 9456 fi 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472xorg_testset_save_CFLAGS="$CFLAGS" 9473 9474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9479 $as_echo_n "(cached) " >&6 9480else 9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9482/* end confdefs.h. */ 9483int i; 9484_ACEOF 9485if ac_fn_c_try_compile "$LINENO"; then : 9486 xorg_cv_cc_flag_unknown_warning_option=yes 9487else 9488 xorg_cv_cc_flag_unknown_warning_option=no 9489fi 9490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9491fi 9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9495 CFLAGS="$xorg_testset_save_CFLAGS" 9496fi 9497 9498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9501 fi 9502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9506 $as_echo_n "(cached) " >&6 9507else 9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9509/* end confdefs.h. */ 9510int i; 9511_ACEOF 9512if ac_fn_c_try_compile "$LINENO"; then : 9513 xorg_cv_cc_flag_unused_command_line_argument=yes 9514else 9515 xorg_cv_cc_flag_unused_command_line_argument=no 9516fi 9517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9518fi 9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9522 CFLAGS="$xorg_testset_save_CFLAGS" 9523fi 9524 9525found="no" 9526 9527 if test $found = "no" ; then 9528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9530 fi 9531 9532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9534 fi 9535 9536 CFLAGS="$CFLAGS -Wtrigraphs" 9537 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9539$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9540 cacheid=xorg_cv_cc_flag__Wtrigraphs 9541 if eval \${$cacheid+:} false; then : 9542 $as_echo_n "(cached) " >&6 9543else 9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9545/* end confdefs.h. */ 9546int i; 9547int 9548main () 9549{ 9550 9551 ; 9552 return 0; 9553} 9554_ACEOF 9555if ac_fn_c_try_link "$LINENO"; then : 9556 eval $cacheid=yes 9557else 9558 eval $cacheid=no 9559fi 9560rm -f core conftest.err conftest.$ac_objext \ 9561 conftest$ac_exeext conftest.$ac_ext 9562fi 9563 9564 9565 CFLAGS="$xorg_testset_save_CFLAGS" 9566 9567 eval supported=\$$cacheid 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9569$as_echo "$supported" >&6; } 9570 if test "$supported" = "yes" ; then 9571 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9572 found="yes" 9573 fi 9574 fi 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590xorg_testset_save_CFLAGS="$CFLAGS" 9591 9592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9595$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9596if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9597 $as_echo_n "(cached) " >&6 9598else 9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9600/* end confdefs.h. */ 9601int i; 9602_ACEOF 9603if ac_fn_c_try_compile "$LINENO"; then : 9604 xorg_cv_cc_flag_unknown_warning_option=yes 9605else 9606 xorg_cv_cc_flag_unknown_warning_option=no 9607fi 9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9609fi 9610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9611$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9613 CFLAGS="$xorg_testset_save_CFLAGS" 9614fi 9615 9616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9619 fi 9620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9622$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9623if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9624 $as_echo_n "(cached) " >&6 9625else 9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9627/* end confdefs.h. */ 9628int i; 9629_ACEOF 9630if ac_fn_c_try_compile "$LINENO"; then : 9631 xorg_cv_cc_flag_unused_command_line_argument=yes 9632else 9633 xorg_cv_cc_flag_unused_command_line_argument=no 9634fi 9635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9636fi 9637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9638$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9640 CFLAGS="$xorg_testset_save_CFLAGS" 9641fi 9642 9643found="no" 9644 9645 if test $found = "no" ; then 9646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9648 fi 9649 9650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9652 fi 9653 9654 CFLAGS="$CFLAGS -Warray-bounds" 9655 9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9657$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9658 cacheid=xorg_cv_cc_flag__Warray_bounds 9659 if eval \${$cacheid+:} false; then : 9660 $as_echo_n "(cached) " >&6 9661else 9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663/* end confdefs.h. */ 9664int i; 9665int 9666main () 9667{ 9668 9669 ; 9670 return 0; 9671} 9672_ACEOF 9673if ac_fn_c_try_link "$LINENO"; then : 9674 eval $cacheid=yes 9675else 9676 eval $cacheid=no 9677fi 9678rm -f core conftest.err conftest.$ac_objext \ 9679 conftest$ac_exeext conftest.$ac_ext 9680fi 9681 9682 9683 CFLAGS="$xorg_testset_save_CFLAGS" 9684 9685 eval supported=\$$cacheid 9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9687$as_echo "$supported" >&6; } 9688 if test "$supported" = "yes" ; then 9689 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9690 found="yes" 9691 fi 9692 fi 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708xorg_testset_save_CFLAGS="$CFLAGS" 9709 9710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9713$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9714if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9715 $as_echo_n "(cached) " >&6 9716else 9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9718/* end confdefs.h. */ 9719int i; 9720_ACEOF 9721if ac_fn_c_try_compile "$LINENO"; then : 9722 xorg_cv_cc_flag_unknown_warning_option=yes 9723else 9724 xorg_cv_cc_flag_unknown_warning_option=no 9725fi 9726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9727fi 9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9729$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732fi 9733 9734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9737 fi 9738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9740$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9741if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9742 $as_echo_n "(cached) " >&6 9743else 9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9745/* end confdefs.h. */ 9746int i; 9747_ACEOF 9748if ac_fn_c_try_compile "$LINENO"; then : 9749 xorg_cv_cc_flag_unused_command_line_argument=yes 9750else 9751 xorg_cv_cc_flag_unused_command_line_argument=no 9752fi 9753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9754fi 9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9756$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9758 CFLAGS="$xorg_testset_save_CFLAGS" 9759fi 9760 9761found="no" 9762 9763 if test $found = "no" ; then 9764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9766 fi 9767 9768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9770 fi 9771 9772 CFLAGS="$CFLAGS -Wwrite-strings" 9773 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9775$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9776 cacheid=xorg_cv_cc_flag__Wwrite_strings 9777 if eval \${$cacheid+:} false; then : 9778 $as_echo_n "(cached) " >&6 9779else 9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9781/* end confdefs.h. */ 9782int i; 9783int 9784main () 9785{ 9786 9787 ; 9788 return 0; 9789} 9790_ACEOF 9791if ac_fn_c_try_link "$LINENO"; then : 9792 eval $cacheid=yes 9793else 9794 eval $cacheid=no 9795fi 9796rm -f core conftest.err conftest.$ac_objext \ 9797 conftest$ac_exeext conftest.$ac_ext 9798fi 9799 9800 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802 9803 eval supported=\$$cacheid 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9805$as_echo "$supported" >&6; } 9806 if test "$supported" = "yes" ; then 9807 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9808 found="yes" 9809 fi 9810 fi 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826xorg_testset_save_CFLAGS="$CFLAGS" 9827 9828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9831$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9832if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9833 $as_echo_n "(cached) " >&6 9834else 9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836/* end confdefs.h. */ 9837int i; 9838_ACEOF 9839if ac_fn_c_try_compile "$LINENO"; then : 9840 xorg_cv_cc_flag_unknown_warning_option=yes 9841else 9842 xorg_cv_cc_flag_unknown_warning_option=no 9843fi 9844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9845fi 9846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9847$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9849 CFLAGS="$xorg_testset_save_CFLAGS" 9850fi 9851 9852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9855 fi 9856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9858$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9859if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9860 $as_echo_n "(cached) " >&6 9861else 9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9863/* end confdefs.h. */ 9864int i; 9865_ACEOF 9866if ac_fn_c_try_compile "$LINENO"; then : 9867 xorg_cv_cc_flag_unused_command_line_argument=yes 9868else 9869 xorg_cv_cc_flag_unused_command_line_argument=no 9870fi 9871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9872fi 9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9874$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9876 CFLAGS="$xorg_testset_save_CFLAGS" 9877fi 9878 9879found="no" 9880 9881 if test $found = "no" ; then 9882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9884 fi 9885 9886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9888 fi 9889 9890 CFLAGS="$CFLAGS -Waddress" 9891 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9893$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9894 cacheid=xorg_cv_cc_flag__Waddress 9895 if eval \${$cacheid+:} false; then : 9896 $as_echo_n "(cached) " >&6 9897else 9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9899/* end confdefs.h. */ 9900int i; 9901int 9902main () 9903{ 9904 9905 ; 9906 return 0; 9907} 9908_ACEOF 9909if ac_fn_c_try_link "$LINENO"; then : 9910 eval $cacheid=yes 9911else 9912 eval $cacheid=no 9913fi 9914rm -f core conftest.err conftest.$ac_objext \ 9915 conftest$ac_exeext conftest.$ac_ext 9916fi 9917 9918 9919 CFLAGS="$xorg_testset_save_CFLAGS" 9920 9921 eval supported=\$$cacheid 9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9923$as_echo "$supported" >&6; } 9924 if test "$supported" = "yes" ; then 9925 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9926 found="yes" 9927 fi 9928 fi 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944xorg_testset_save_CFLAGS="$CFLAGS" 9945 9946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9951 $as_echo_n "(cached) " >&6 9952else 9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9954/* end confdefs.h. */ 9955int i; 9956_ACEOF 9957if ac_fn_c_try_compile "$LINENO"; then : 9958 xorg_cv_cc_flag_unknown_warning_option=yes 9959else 9960 xorg_cv_cc_flag_unknown_warning_option=no 9961fi 9962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9963fi 9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9967 CFLAGS="$xorg_testset_save_CFLAGS" 9968fi 9969 9970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9973 fi 9974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9978 $as_echo_n "(cached) " >&6 9979else 9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9981/* end confdefs.h. */ 9982int i; 9983_ACEOF 9984if ac_fn_c_try_compile "$LINENO"; then : 9985 xorg_cv_cc_flag_unused_command_line_argument=yes 9986else 9987 xorg_cv_cc_flag_unused_command_line_argument=no 9988fi 9989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9990fi 9991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9994 CFLAGS="$xorg_testset_save_CFLAGS" 9995fi 9996 9997found="no" 9998 9999 if test $found = "no" ; then 10000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10002 fi 10003 10004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10006 fi 10007 10008 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10009 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10011$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10012 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10013 if eval \${$cacheid+:} false; then : 10014 $as_echo_n "(cached) " >&6 10015else 10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017/* end confdefs.h. */ 10018int i; 10019int 10020main () 10021{ 10022 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027if ac_fn_c_try_link "$LINENO"; then : 10028 eval $cacheid=yes 10029else 10030 eval $cacheid=no 10031fi 10032rm -f core conftest.err conftest.$ac_objext \ 10033 conftest$ac_exeext conftest.$ac_ext 10034fi 10035 10036 10037 CFLAGS="$xorg_testset_save_CFLAGS" 10038 10039 eval supported=\$$cacheid 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10041$as_echo "$supported" >&6; } 10042 if test "$supported" = "yes" ; then 10043 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10044 found="yes" 10045 fi 10046 fi 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062xorg_testset_save_CFLAGS="$CFLAGS" 10063 10064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10069 $as_echo_n "(cached) " >&6 10070else 10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10072/* end confdefs.h. */ 10073int i; 10074_ACEOF 10075if ac_fn_c_try_compile "$LINENO"; then : 10076 xorg_cv_cc_flag_unknown_warning_option=yes 10077else 10078 xorg_cv_cc_flag_unknown_warning_option=no 10079fi 10080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10081fi 10082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10085 CFLAGS="$xorg_testset_save_CFLAGS" 10086fi 10087 10088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10091 fi 10092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10096 $as_echo_n "(cached) " >&6 10097else 10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10099/* end confdefs.h. */ 10100int i; 10101_ACEOF 10102if ac_fn_c_try_compile "$LINENO"; then : 10103 xorg_cv_cc_flag_unused_command_line_argument=yes 10104else 10105 xorg_cv_cc_flag_unused_command_line_argument=no 10106fi 10107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10108fi 10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10112 CFLAGS="$xorg_testset_save_CFLAGS" 10113fi 10114 10115found="no" 10116 10117 if test $found = "no" ; then 10118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10120 fi 10121 10122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10124 fi 10125 10126 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10127 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10129$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10130 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10131 if eval \${$cacheid+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136int i; 10137int 10138main () 10139{ 10140 10141 ; 10142 return 0; 10143} 10144_ACEOF 10145if ac_fn_c_try_link "$LINENO"; then : 10146 eval $cacheid=yes 10147else 10148 eval $cacheid=no 10149fi 10150rm -f core conftest.err conftest.$ac_objext \ 10151 conftest$ac_exeext conftest.$ac_ext 10152fi 10153 10154 10155 CFLAGS="$xorg_testset_save_CFLAGS" 10156 10157 eval supported=\$$cacheid 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10159$as_echo "$supported" >&6; } 10160 if test "$supported" = "yes" ; then 10161 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10162 found="yes" 10163 fi 10164 fi 10165 10166 10167fi 10168 10169 10170 10171 10172 10173 10174 10175 CWARNFLAGS="$BASE_CFLAGS" 10176 if test "x$GCC" = xyes ; then 10177 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10178 fi 10179 10180 10181 10182 10183 10184 10185 10186 10187# Check whether --enable-strict-compilation was given. 10188if test "${enable_strict_compilation+set}" = set; then : 10189 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10190else 10191 STRICT_COMPILE=no 10192fi 10193 10194 10195 10196 10197 10198 10199STRICT_CFLAGS="" 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213xorg_testset_save_CFLAGS="$CFLAGS" 10214 10215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10220 $as_echo_n "(cached) " >&6 10221else 10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223/* end confdefs.h. */ 10224int i; 10225_ACEOF 10226if ac_fn_c_try_compile "$LINENO"; then : 10227 xorg_cv_cc_flag_unknown_warning_option=yes 10228else 10229 xorg_cv_cc_flag_unknown_warning_option=no 10230fi 10231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10232fi 10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10236 CFLAGS="$xorg_testset_save_CFLAGS" 10237fi 10238 10239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10242 fi 10243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10247 $as_echo_n "(cached) " >&6 10248else 10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10250/* end confdefs.h. */ 10251int i; 10252_ACEOF 10253if ac_fn_c_try_compile "$LINENO"; then : 10254 xorg_cv_cc_flag_unused_command_line_argument=yes 10255else 10256 xorg_cv_cc_flag_unused_command_line_argument=no 10257fi 10258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10259fi 10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10263 CFLAGS="$xorg_testset_save_CFLAGS" 10264fi 10265 10266found="no" 10267 10268 if test $found = "no" ; then 10269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10271 fi 10272 10273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10275 fi 10276 10277 CFLAGS="$CFLAGS -pedantic" 10278 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10280$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10281 cacheid=xorg_cv_cc_flag__pedantic 10282 if eval \${$cacheid+:} false; then : 10283 $as_echo_n "(cached) " >&6 10284else 10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286/* end confdefs.h. */ 10287int i; 10288int 10289main () 10290{ 10291 10292 ; 10293 return 0; 10294} 10295_ACEOF 10296if ac_fn_c_try_link "$LINENO"; then : 10297 eval $cacheid=yes 10298else 10299 eval $cacheid=no 10300fi 10301rm -f core conftest.err conftest.$ac_objext \ 10302 conftest$ac_exeext conftest.$ac_ext 10303fi 10304 10305 10306 CFLAGS="$xorg_testset_save_CFLAGS" 10307 10308 eval supported=\$$cacheid 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10310$as_echo "$supported" >&6; } 10311 if test "$supported" = "yes" ; then 10312 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10313 found="yes" 10314 fi 10315 fi 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331xorg_testset_save_CFLAGS="$CFLAGS" 10332 10333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10338 $as_echo_n "(cached) " >&6 10339else 10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10341/* end confdefs.h. */ 10342int i; 10343_ACEOF 10344if ac_fn_c_try_compile "$LINENO"; then : 10345 xorg_cv_cc_flag_unknown_warning_option=yes 10346else 10347 xorg_cv_cc_flag_unknown_warning_option=no 10348fi 10349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10350fi 10351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10354 CFLAGS="$xorg_testset_save_CFLAGS" 10355fi 10356 10357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10360 fi 10361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10365 $as_echo_n "(cached) " >&6 10366else 10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10368/* end confdefs.h. */ 10369int i; 10370_ACEOF 10371if ac_fn_c_try_compile "$LINENO"; then : 10372 xorg_cv_cc_flag_unused_command_line_argument=yes 10373else 10374 xorg_cv_cc_flag_unused_command_line_argument=no 10375fi 10376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10377fi 10378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10381 CFLAGS="$xorg_testset_save_CFLAGS" 10382fi 10383 10384found="no" 10385 10386 if test $found = "no" ; then 10387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10389 fi 10390 10391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10393 fi 10394 10395 CFLAGS="$CFLAGS -Werror" 10396 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10398$as_echo_n "checking if $CC supports -Werror... " >&6; } 10399 cacheid=xorg_cv_cc_flag__Werror 10400 if eval \${$cacheid+:} false; then : 10401 $as_echo_n "(cached) " >&6 10402else 10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10404/* end confdefs.h. */ 10405int i; 10406int 10407main () 10408{ 10409 10410 ; 10411 return 0; 10412} 10413_ACEOF 10414if ac_fn_c_try_link "$LINENO"; then : 10415 eval $cacheid=yes 10416else 10417 eval $cacheid=no 10418fi 10419rm -f core conftest.err conftest.$ac_objext \ 10420 conftest$ac_exeext conftest.$ac_ext 10421fi 10422 10423 10424 CFLAGS="$xorg_testset_save_CFLAGS" 10425 10426 eval supported=\$$cacheid 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10428$as_echo "$supported" >&6; } 10429 if test "$supported" = "yes" ; then 10430 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10431 found="yes" 10432 fi 10433 fi 10434 10435 if test $found = "no" ; then 10436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10438 fi 10439 10440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10442 fi 10443 10444 CFLAGS="$CFLAGS -errwarn" 10445 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10447$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10448 cacheid=xorg_cv_cc_flag__errwarn 10449 if eval \${$cacheid+:} false; then : 10450 $as_echo_n "(cached) " >&6 10451else 10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10453/* end confdefs.h. */ 10454int i; 10455int 10456main () 10457{ 10458 10459 ; 10460 return 0; 10461} 10462_ACEOF 10463if ac_fn_c_try_link "$LINENO"; then : 10464 eval $cacheid=yes 10465else 10466 eval $cacheid=no 10467fi 10468rm -f core conftest.err conftest.$ac_objext \ 10469 conftest$ac_exeext conftest.$ac_ext 10470fi 10471 10472 10473 CFLAGS="$xorg_testset_save_CFLAGS" 10474 10475 eval supported=\$$cacheid 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10477$as_echo "$supported" >&6; } 10478 if test "$supported" = "yes" ; then 10479 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10480 found="yes" 10481 fi 10482 fi 10483 10484 10485 10486# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10487# activate it with -Werror, so we add it here explicitly. 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501xorg_testset_save_CFLAGS="$CFLAGS" 10502 10503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10508 $as_echo_n "(cached) " >&6 10509else 10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10511/* end confdefs.h. */ 10512int i; 10513_ACEOF 10514if ac_fn_c_try_compile "$LINENO"; then : 10515 xorg_cv_cc_flag_unknown_warning_option=yes 10516else 10517 xorg_cv_cc_flag_unknown_warning_option=no 10518fi 10519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10520fi 10521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10524 CFLAGS="$xorg_testset_save_CFLAGS" 10525fi 10526 10527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10530 fi 10531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10535 $as_echo_n "(cached) " >&6 10536else 10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10538/* end confdefs.h. */ 10539int i; 10540_ACEOF 10541if ac_fn_c_try_compile "$LINENO"; then : 10542 xorg_cv_cc_flag_unused_command_line_argument=yes 10543else 10544 xorg_cv_cc_flag_unused_command_line_argument=no 10545fi 10546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10547fi 10548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10551 CFLAGS="$xorg_testset_save_CFLAGS" 10552fi 10553 10554found="no" 10555 10556 if test $found = "no" ; then 10557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10559 fi 10560 10561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10563 fi 10564 10565 CFLAGS="$CFLAGS -Werror=attributes" 10566 10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10568$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10569 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10570 if eval \${$cacheid+:} false; then : 10571 $as_echo_n "(cached) " >&6 10572else 10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10574/* end confdefs.h. */ 10575int i; 10576int 10577main () 10578{ 10579 10580 ; 10581 return 0; 10582} 10583_ACEOF 10584if ac_fn_c_try_link "$LINENO"; then : 10585 eval $cacheid=yes 10586else 10587 eval $cacheid=no 10588fi 10589rm -f core conftest.err conftest.$ac_objext \ 10590 conftest$ac_exeext conftest.$ac_ext 10591fi 10592 10593 10594 CFLAGS="$xorg_testset_save_CFLAGS" 10595 10596 eval supported=\$$cacheid 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10598$as_echo "$supported" >&6; } 10599 if test "$supported" = "yes" ; then 10600 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10601 found="yes" 10602 fi 10603 fi 10604 10605 10606 10607if test "x$STRICT_COMPILE" = "xyes"; then 10608 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10609 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10610fi 10611 10612 10613 10614 10615 10616 10617cat >>confdefs.h <<_ACEOF 10618#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10619_ACEOF 10620 10621 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10622 if test "x$PVM" = "x"; then 10623 PVM="0" 10624 fi 10625 10626cat >>confdefs.h <<_ACEOF 10627#define PACKAGE_VERSION_MINOR $PVM 10628_ACEOF 10629 10630 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10631 if test "x$PVP" = "x"; then 10632 PVP="0" 10633 fi 10634 10635cat >>confdefs.h <<_ACEOF 10636#define PACKAGE_VERSION_PATCHLEVEL $PVP 10637_ACEOF 10638 10639 10640 10641CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10642mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10643|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10644echo 'git directory not found: installing possibly empty changelog.' >&2)" 10645 10646 10647 10648 10649macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10650INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10651mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10652|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10653echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10654 10655 10656 10657 10658 10659 10660if test x$APP_MAN_SUFFIX = x ; then 10661 APP_MAN_SUFFIX=1 10662fi 10663if test x$APP_MAN_DIR = x ; then 10664 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10665fi 10666 10667if test x$LIB_MAN_SUFFIX = x ; then 10668 LIB_MAN_SUFFIX=3 10669fi 10670if test x$LIB_MAN_DIR = x ; then 10671 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10672fi 10673 10674if test x$FILE_MAN_SUFFIX = x ; then 10675 case $host_os in 10676 solaris*) FILE_MAN_SUFFIX=4 ;; 10677 *) FILE_MAN_SUFFIX=5 ;; 10678 esac 10679fi 10680if test x$FILE_MAN_DIR = x ; then 10681 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10682fi 10683 10684if test x$MISC_MAN_SUFFIX = x ; then 10685 case $host_os in 10686 solaris*) MISC_MAN_SUFFIX=5 ;; 10687 *) MISC_MAN_SUFFIX=7 ;; 10688 esac 10689fi 10690if test x$MISC_MAN_DIR = x ; then 10691 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10692fi 10693 10694if test x$DRIVER_MAN_SUFFIX = x ; then 10695 case $host_os in 10696 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10697 *) DRIVER_MAN_SUFFIX=4 ;; 10698 esac 10699fi 10700if test x$DRIVER_MAN_DIR = x ; then 10701 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10702fi 10703 10704if test x$ADMIN_MAN_SUFFIX = x ; then 10705 case $host_os in 10706 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10707 *) ADMIN_MAN_SUFFIX=8 ;; 10708 esac 10709fi 10710if test x$ADMIN_MAN_DIR = x ; then 10711 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10712fi 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728XORG_MAN_PAGE="X Version 11" 10729 10730MAN_SUBSTS="\ 10731 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10732 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10733 -e 's|__xservername__|Xorg|g' \ 10734 -e 's|__xconfigfile__|xorg.conf|g' \ 10735 -e 's|__projectroot__|\$(prefix)|g' \ 10736 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10737 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10738 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10739 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10740 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10741 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10742 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10743 10744 10745 10746# Check whether --enable-silent-rules was given. 10747if test "${enable_silent_rules+set}" = set; then : 10748 enableval=$enable_silent_rules; 10749fi 10750 10751case $enable_silent_rules in # ((( 10752 yes) AM_DEFAULT_VERBOSITY=0;; 10753 no) AM_DEFAULT_VERBOSITY=1;; 10754 *) AM_DEFAULT_VERBOSITY=0;; 10755esac 10756am_make=${MAKE-make} 10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10758$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10759if ${am_cv_make_support_nested_variables+:} false; then : 10760 $as_echo_n "(cached) " >&6 10761else 10762 if $as_echo 'TRUE=$(BAR$(V)) 10763BAR0=false 10764BAR1=true 10765V=1 10766am__doit: 10767 @$(TRUE) 10768.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10769 am_cv_make_support_nested_variables=yes 10770else 10771 am_cv_make_support_nested_variables=no 10772fi 10773fi 10774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10775$as_echo "$am_cv_make_support_nested_variables" >&6; } 10776if test $am_cv_make_support_nested_variables = yes; then 10777 AM_V='$(V)' 10778 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10779else 10780 AM_V=$AM_DEFAULT_VERBOSITY 10781 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10782fi 10783AM_BACKSLASH='\' 10784 10785 10786 10787for ac_func in strncasecmp asprintf 10788do : 10789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10790ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10791if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10792 cat >>confdefs.h <<_ACEOF 10793#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10794_ACEOF 10795 10796fi 10797done 10798 10799 10800# Checks for pkg-config packages 10801 10802pkg_failed=no 10803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMODMAP" >&5 10804$as_echo_n "checking for XMODMAP... " >&6; } 10805 10806if test -n "$XMODMAP_CFLAGS"; then 10807 pkg_cv_XMODMAP_CFLAGS="$XMODMAP_CFLAGS" 10808 elif test -n "$PKG_CONFIG"; then 10809 if test -n "$PKG_CONFIG" && \ 10810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 10811 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 10812 ac_status=$? 10813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10814 test $ac_status = 0; }; then 10815 pkg_cv_XMODMAP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null` 10816else 10817 pkg_failed=yes 10818fi 10819 else 10820 pkg_failed=untried 10821fi 10822if test -n "$XMODMAP_LIBS"; then 10823 pkg_cv_XMODMAP_LIBS="$XMODMAP_LIBS" 10824 elif test -n "$PKG_CONFIG"; then 10825 if test -n "$PKG_CONFIG" && \ 10826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 10827 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 10828 ac_status=$? 10829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10830 test $ac_status = 0; }; then 10831 pkg_cv_XMODMAP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null` 10832else 10833 pkg_failed=yes 10834fi 10835 else 10836 pkg_failed=untried 10837fi 10838 10839 10840 10841if test $pkg_failed = yes; then 10842 10843if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10844 _pkg_short_errors_supported=yes 10845else 10846 _pkg_short_errors_supported=no 10847fi 10848 if test $_pkg_short_errors_supported = yes; then 10849 XMODMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1` 10850 else 10851 XMODMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1` 10852 fi 10853 # Put the nasty error message in config.log where it belongs 10854 echo "$XMODMAP_PKG_ERRORS" >&5 10855 10856 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met: 10857 10858$XMODMAP_PKG_ERRORS 10859 10860Consider adjusting the PKG_CONFIG_PATH environment variable if you 10861installed software in a non-standard prefix. 10862 10863Alternatively, you may set the environment variables XMODMAP_CFLAGS 10864and XMODMAP_LIBS to avoid the need to call pkg-config. 10865See the pkg-config man page for more details. 10866" "$LINENO" 5 10867elif test $pkg_failed = untried; then 10868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10870as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10871is in your PATH or set the PKG_CONFIG environment variable to the full 10872path to pkg-config. 10873 10874Alternatively, you may set the environment variables XMODMAP_CFLAGS 10875and XMODMAP_LIBS to avoid the need to call pkg-config. 10876See the pkg-config man page for more details. 10877 10878To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10879See \`config.log' for more details" "$LINENO" 5; } 10880else 10881 XMODMAP_CFLAGS=$pkg_cv_XMODMAP_CFLAGS 10882 XMODMAP_LIBS=$pkg_cv_XMODMAP_LIBS 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10884$as_echo "yes" >&6; } 10885 : 10886fi 10887 10888 10889 10890 10891 10892 10893# Check whether --with-lint was given. 10894if test "${with_lint+set}" = set; then : 10895 withval=$with_lint; use_lint=$withval 10896else 10897 use_lint=no 10898fi 10899 10900 10901# Obtain platform specific info like program name and options 10902# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10903case $host_os in 10904 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10905 lint_name=splint 10906 lint_options="-badflag" 10907 ;; 10908 *freebsd* | *netbsd*) 10909 lint_name=lint 10910 lint_options="-u -b" 10911 ;; 10912 *solaris*) 10913 lint_name=lint 10914 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10915 ;; 10916esac 10917 10918# Test for the presence of the program (either guessed by the code or spelled out by the user) 10919if test "x$use_lint" = x"yes" ; then 10920 # Extract the first word of "$lint_name", so it can be a program name with args. 10921set dummy $lint_name; ac_word=$2 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10923$as_echo_n "checking for $ac_word... " >&6; } 10924if ${ac_cv_path_LINT+:} false; then : 10925 $as_echo_n "(cached) " >&6 10926else 10927 case $LINT in 10928 [\\/]* | ?:[\\/]*) 10929 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10930 ;; 10931 *) 10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10933for as_dir in $PATH 10934do 10935 IFS=$as_save_IFS 10936 test -z "$as_dir" && as_dir=. 10937 for ac_exec_ext in '' $ac_executable_extensions; do 10938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10939 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10941 break 2 10942 fi 10943done 10944 done 10945IFS=$as_save_IFS 10946 10947 ;; 10948esac 10949fi 10950LINT=$ac_cv_path_LINT 10951if test -n "$LINT"; then 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10953$as_echo "$LINT" >&6; } 10954else 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10956$as_echo "no" >&6; } 10957fi 10958 10959 10960 if test "x$LINT" = "x"; then 10961 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10962 fi 10963elif test "x$use_lint" = x"no" ; then 10964 if test "x$LINT" != "x"; then 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10966$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10967 fi 10968else 10969 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10970fi 10971 10972# User supplied flags override default flags 10973if test "x$LINT_FLAGS" != "x"; then 10974 lint_options=$LINT_FLAGS 10975fi 10976 10977LINT_FLAGS=$lint_options 10978 10979 if test "x$LINT" != x; then 10980 LINT_TRUE= 10981 LINT_FALSE='#' 10982else 10983 LINT_TRUE='#' 10984 LINT_FALSE= 10985fi 10986 10987 10988 10989 10990ac_config_files="$ac_config_files Makefile man/Makefile" 10991 10992cat >confcache <<\_ACEOF 10993# This file is a shell script that caches the results of configure 10994# tests run on this system so they can be shared between configure 10995# scripts and configure runs, see configure's option --config-cache. 10996# It is not useful on other systems. If it contains results you don't 10997# want to keep, you may remove or edit it. 10998# 10999# config.status only pays attention to the cache file if you give it 11000# the --recheck option to rerun configure. 11001# 11002# `ac_cv_env_foo' variables (set or unset) will be overridden when 11003# loading this file, other *unset* `ac_cv_foo' will be assigned the 11004# following values. 11005 11006_ACEOF 11007 11008# The following way of writing the cache mishandles newlines in values, 11009# but we know of no workaround that is simple, portable, and efficient. 11010# So, we kill variables containing newlines. 11011# Ultrix sh set writes to stderr and can't be redirected directly, 11012# and sets the high bit in the cache file unless we assign to the vars. 11013( 11014 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11015 eval ac_val=\$$ac_var 11016 case $ac_val in #( 11017 *${as_nl}*) 11018 case $ac_var in #( 11019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11020$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11021 esac 11022 case $ac_var in #( 11023 _ | IFS | as_nl) ;; #( 11024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11025 *) { eval $ac_var=; unset $ac_var;} ;; 11026 esac ;; 11027 esac 11028 done 11029 11030 (set) 2>&1 | 11031 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11032 *${as_nl}ac_space=\ *) 11033 # `set' does not quote correctly, so add quotes: double-quote 11034 # substitution turns \\\\ into \\, and sed turns \\ into \. 11035 sed -n \ 11036 "s/'/'\\\\''/g; 11037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11038 ;; #( 11039 *) 11040 # `set' quotes correctly as required by POSIX, so do not add quotes. 11041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11042 ;; 11043 esac | 11044 sort 11045) | 11046 sed ' 11047 /^ac_cv_env_/b end 11048 t clear 11049 :clear 11050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11051 t end 11052 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11053 :end' >>confcache 11054if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11055 if test -w "$cache_file"; then 11056 if test "x$cache_file" != "x/dev/null"; then 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11058$as_echo "$as_me: updating cache $cache_file" >&6;} 11059 if test ! -f "$cache_file" || test -h "$cache_file"; then 11060 cat confcache >"$cache_file" 11061 else 11062 case $cache_file in #( 11063 */* | ?:*) 11064 mv -f confcache "$cache_file"$$ && 11065 mv -f "$cache_file"$$ "$cache_file" ;; #( 11066 *) 11067 mv -f confcache "$cache_file" ;; 11068 esac 11069 fi 11070 fi 11071 else 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11073$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11074 fi 11075fi 11076rm -f confcache 11077 11078test "x$prefix" = xNONE && prefix=$ac_default_prefix 11079# Let make expand exec_prefix. 11080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11081 11082DEFS=-DHAVE_CONFIG_H 11083 11084ac_libobjs= 11085ac_ltlibobjs= 11086U= 11087for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11088 # 1. Remove the extension, and $U if already installed. 11089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11090 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11092 # will be set to the directory where LIBOBJS objects are built. 11093 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11094 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11095done 11096LIBOBJS=$ac_libobjs 11097 11098LTLIBOBJS=$ac_ltlibobjs 11099 11100 11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11102$as_echo_n "checking that generated files are newer than configure... " >&6; } 11103 if test -n "$am_sleep_pid"; then 11104 # Hide warnings about reused PIDs. 11105 wait $am_sleep_pid 2>/dev/null 11106 fi 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11108$as_echo "done" >&6; } 11109if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11110 as_fn_error $? "conditional \"AMDEP\" was never defined. 11111Usually this means the macro was only invoked conditionally." "$LINENO" 5 11112fi 11113if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11114 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11115Usually this means the macro was only invoked conditionally." "$LINENO" 5 11116fi 11117 if test -n "$EXEEXT"; then 11118 am__EXEEXT_TRUE= 11119 am__EXEEXT_FALSE='#' 11120else 11121 am__EXEEXT_TRUE='#' 11122 am__EXEEXT_FALSE= 11123fi 11124 11125if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11126 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11127Usually this means the macro was only invoked conditionally." "$LINENO" 5 11128fi 11129if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11130 as_fn_error $? "conditional \"LINT\" was never defined. 11131Usually this means the macro was only invoked conditionally." "$LINENO" 5 11132fi 11133 11134: "${CONFIG_STATUS=./config.status}" 11135ac_write_fail=0 11136ac_clean_files_save=$ac_clean_files 11137ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11138{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11139$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11140as_write_fail=0 11141cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11142#! $SHELL 11143# Generated by $as_me. 11144# Run this file to recreate the current configuration. 11145# Compiler output produced by configure, useful for debugging 11146# configure, is in config.log if it exists. 11147 11148debug=false 11149ac_cs_recheck=false 11150ac_cs_silent=false 11151 11152SHELL=\${CONFIG_SHELL-$SHELL} 11153export SHELL 11154_ASEOF 11155cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11156## -------------------- ## 11157## M4sh Initialization. ## 11158## -------------------- ## 11159 11160# Be more Bourne compatible 11161DUALCASE=1; export DUALCASE # for MKS sh 11162if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11163 emulate sh 11164 NULLCMD=: 11165 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11166 # is contrary to our usage. Disable this feature. 11167 alias -g '${1+"$@"}'='"$@"' 11168 setopt NO_GLOB_SUBST 11169else 11170 case `(set -o) 2>/dev/null` in #( 11171 *posix*) : 11172 set -o posix ;; #( 11173 *) : 11174 ;; 11175esac 11176fi 11177 11178 11179as_nl=' 11180' 11181export as_nl 11182# Printing a long string crashes Solaris 7 /usr/bin/printf. 11183as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11184as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11185as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11186# Prefer a ksh shell builtin over an external printf program on Solaris, 11187# but without wasting forks for bash or zsh. 11188if test -z "$BASH_VERSION$ZSH_VERSION" \ 11189 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11190 as_echo='print -r --' 11191 as_echo_n='print -rn --' 11192elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11193 as_echo='printf %s\n' 11194 as_echo_n='printf %s' 11195else 11196 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11197 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11198 as_echo_n='/usr/ucb/echo -n' 11199 else 11200 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11201 as_echo_n_body='eval 11202 arg=$1; 11203 case $arg in #( 11204 *"$as_nl"*) 11205 expr "X$arg" : "X\\(.*\\)$as_nl"; 11206 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11207 esac; 11208 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11209 ' 11210 export as_echo_n_body 11211 as_echo_n='sh -c $as_echo_n_body as_echo' 11212 fi 11213 export as_echo_body 11214 as_echo='sh -c $as_echo_body as_echo' 11215fi 11216 11217# The user is always right. 11218if test "${PATH_SEPARATOR+set}" != set; then 11219 PATH_SEPARATOR=: 11220 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11221 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11222 PATH_SEPARATOR=';' 11223 } 11224fi 11225 11226 11227# IFS 11228# We need space, tab and new line, in precisely that order. Quoting is 11229# there to prevent editors from complaining about space-tab. 11230# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11231# splitting by setting IFS to empty value.) 11232IFS=" "" $as_nl" 11233 11234# Find who we are. Look in the path if we contain no directory separator. 11235as_myself= 11236case $0 in #(( 11237 *[\\/]* ) as_myself=$0 ;; 11238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11239for as_dir in $PATH 11240do 11241 IFS=$as_save_IFS 11242 test -z "$as_dir" && as_dir=. 11243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11244 done 11245IFS=$as_save_IFS 11246 11247 ;; 11248esac 11249# We did not find ourselves, most probably we were run as `sh COMMAND' 11250# in which case we are not to be found in the path. 11251if test "x$as_myself" = x; then 11252 as_myself=$0 11253fi 11254if test ! -f "$as_myself"; then 11255 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11256 exit 1 11257fi 11258 11259# Unset variables that we do not need and which cause bugs (e.g. in 11260# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11261# suppresses any "Segmentation fault" message there. '((' could 11262# trigger a bug in pdksh 5.2.14. 11263for as_var in BASH_ENV ENV MAIL MAILPATH 11264do eval test x\${$as_var+set} = xset \ 11265 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11266done 11267PS1='$ ' 11268PS2='> ' 11269PS4='+ ' 11270 11271# NLS nuisances. 11272LC_ALL=C 11273export LC_ALL 11274LANGUAGE=C 11275export LANGUAGE 11276 11277# CDPATH. 11278(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11279 11280 11281# as_fn_error STATUS ERROR [LINENO LOG_FD] 11282# ---------------------------------------- 11283# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11284# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11285# script with STATUS, using 1 if that was 0. 11286as_fn_error () 11287{ 11288 as_status=$1; test $as_status -eq 0 && as_status=1 11289 if test "$4"; then 11290 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11291 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11292 fi 11293 $as_echo "$as_me: error: $2" >&2 11294 as_fn_exit $as_status 11295} # as_fn_error 11296 11297 11298# as_fn_set_status STATUS 11299# ----------------------- 11300# Set $? to STATUS, without forking. 11301as_fn_set_status () 11302{ 11303 return $1 11304} # as_fn_set_status 11305 11306# as_fn_exit STATUS 11307# ----------------- 11308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11309as_fn_exit () 11310{ 11311 set +e 11312 as_fn_set_status $1 11313 exit $1 11314} # as_fn_exit 11315 11316# as_fn_unset VAR 11317# --------------- 11318# Portably unset VAR. 11319as_fn_unset () 11320{ 11321 { eval $1=; unset $1;} 11322} 11323as_unset=as_fn_unset 11324# as_fn_append VAR VALUE 11325# ---------------------- 11326# Append the text in VALUE to the end of the definition contained in VAR. Take 11327# advantage of any shell optimizations that allow amortized linear growth over 11328# repeated appends, instead of the typical quadratic growth present in naive 11329# implementations. 11330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11331 eval 'as_fn_append () 11332 { 11333 eval $1+=\$2 11334 }' 11335else 11336 as_fn_append () 11337 { 11338 eval $1=\$$1\$2 11339 } 11340fi # as_fn_append 11341 11342# as_fn_arith ARG... 11343# ------------------ 11344# Perform arithmetic evaluation on the ARGs, and store the result in the 11345# global $as_val. Take advantage of shells that can avoid forks. The arguments 11346# must be portable across $(()) and expr. 11347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11348 eval 'as_fn_arith () 11349 { 11350 as_val=$(( $* )) 11351 }' 11352else 11353 as_fn_arith () 11354 { 11355 as_val=`expr "$@" || test $? -eq 1` 11356 } 11357fi # as_fn_arith 11358 11359 11360if expr a : '\(a\)' >/dev/null 2>&1 && 11361 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11362 as_expr=expr 11363else 11364 as_expr=false 11365fi 11366 11367if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11368 as_basename=basename 11369else 11370 as_basename=false 11371fi 11372 11373if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11374 as_dirname=dirname 11375else 11376 as_dirname=false 11377fi 11378 11379as_me=`$as_basename -- "$0" || 11380$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11381 X"$0" : 'X\(//\)$' \| \ 11382 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11383$as_echo X/"$0" | 11384 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11385 s//\1/ 11386 q 11387 } 11388 /^X\/\(\/\/\)$/{ 11389 s//\1/ 11390 q 11391 } 11392 /^X\/\(\/\).*/{ 11393 s//\1/ 11394 q 11395 } 11396 s/.*/./; q'` 11397 11398# Avoid depending upon Character Ranges. 11399as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11400as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11401as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11402as_cr_digits='0123456789' 11403as_cr_alnum=$as_cr_Letters$as_cr_digits 11404 11405ECHO_C= ECHO_N= ECHO_T= 11406case `echo -n x` in #((((( 11407-n*) 11408 case `echo 'xy\c'` in 11409 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11410 xy) ECHO_C='\c';; 11411 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11412 ECHO_T=' ';; 11413 esac;; 11414*) 11415 ECHO_N='-n';; 11416esac 11417 11418rm -f conf$$ conf$$.exe conf$$.file 11419if test -d conf$$.dir; then 11420 rm -f conf$$.dir/conf$$.file 11421else 11422 rm -f conf$$.dir 11423 mkdir conf$$.dir 2>/dev/null 11424fi 11425if (echo >conf$$.file) 2>/dev/null; then 11426 if ln -s conf$$.file conf$$ 2>/dev/null; then 11427 as_ln_s='ln -s' 11428 # ... but there are two gotchas: 11429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11431 # In both cases, we have to default to `cp -p'. 11432 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11433 as_ln_s='cp -p' 11434 elif ln conf$$.file conf$$ 2>/dev/null; then 11435 as_ln_s=ln 11436 else 11437 as_ln_s='cp -p' 11438 fi 11439else 11440 as_ln_s='cp -p' 11441fi 11442rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11443rmdir conf$$.dir 2>/dev/null 11444 11445 11446# as_fn_mkdir_p 11447# ------------- 11448# Create "$as_dir" as a directory, including parents if necessary. 11449as_fn_mkdir_p () 11450{ 11451 11452 case $as_dir in #( 11453 -*) as_dir=./$as_dir;; 11454 esac 11455 test -d "$as_dir" || eval $as_mkdir_p || { 11456 as_dirs= 11457 while :; do 11458 case $as_dir in #( 11459 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11460 *) as_qdir=$as_dir;; 11461 esac 11462 as_dirs="'$as_qdir' $as_dirs" 11463 as_dir=`$as_dirname -- "$as_dir" || 11464$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11465 X"$as_dir" : 'X\(//\)[^/]' \| \ 11466 X"$as_dir" : 'X\(//\)$' \| \ 11467 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11468$as_echo X"$as_dir" | 11469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11470 s//\1/ 11471 q 11472 } 11473 /^X\(\/\/\)[^/].*/{ 11474 s//\1/ 11475 q 11476 } 11477 /^X\(\/\/\)$/{ 11478 s//\1/ 11479 q 11480 } 11481 /^X\(\/\).*/{ 11482 s//\1/ 11483 q 11484 } 11485 s/.*/./; q'` 11486 test -d "$as_dir" && break 11487 done 11488 test -z "$as_dirs" || eval "mkdir $as_dirs" 11489 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11490 11491 11492} # as_fn_mkdir_p 11493if mkdir -p . 2>/dev/null; then 11494 as_mkdir_p='mkdir -p "$as_dir"' 11495else 11496 test -d ./-p && rmdir ./-p 11497 as_mkdir_p=false 11498fi 11499 11500if test -x / >/dev/null 2>&1; then 11501 as_test_x='test -x' 11502else 11503 if ls -dL / >/dev/null 2>&1; then 11504 as_ls_L_option=L 11505 else 11506 as_ls_L_option= 11507 fi 11508 as_test_x=' 11509 eval sh -c '\'' 11510 if test -d "$1"; then 11511 test -d "$1/."; 11512 else 11513 case $1 in #( 11514 -*)set "./$1";; 11515 esac; 11516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11517 ???[sx]*):;;*)false;;esac;fi 11518 '\'' sh 11519 ' 11520fi 11521as_executable_p=$as_test_x 11522 11523# Sed expression to map a string onto a valid CPP name. 11524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11525 11526# Sed expression to map a string onto a valid variable name. 11527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11528 11529 11530exec 6>&1 11531## ----------------------------------- ## 11532## Main body of $CONFIG_STATUS script. ## 11533## ----------------------------------- ## 11534_ASEOF 11535test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11536 11537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11538# Save the log message, to keep $0 and so on meaningful, and to 11539# report actual input values of CONFIG_FILES etc. instead of their 11540# values after options handling. 11541ac_log=" 11542This file was extended by xmodmap $as_me 1.0.8, which was 11543generated by GNU Autoconf 2.68. Invocation command line was 11544 11545 CONFIG_FILES = $CONFIG_FILES 11546 CONFIG_HEADERS = $CONFIG_HEADERS 11547 CONFIG_LINKS = $CONFIG_LINKS 11548 CONFIG_COMMANDS = $CONFIG_COMMANDS 11549 $ $0 $@ 11550 11551on `(hostname || uname -n) 2>/dev/null | sed 1q` 11552" 11553 11554_ACEOF 11555 11556case $ac_config_files in *" 11557"*) set x $ac_config_files; shift; ac_config_files=$*;; 11558esac 11559 11560case $ac_config_headers in *" 11561"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11562esac 11563 11564 11565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11566# Files that config.status was made for. 11567config_files="$ac_config_files" 11568config_headers="$ac_config_headers" 11569config_commands="$ac_config_commands" 11570 11571_ACEOF 11572 11573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11574ac_cs_usage="\ 11575\`$as_me' instantiates files and other configuration actions 11576from templates according to the current configuration. Unless the files 11577and actions are specified as TAGs, all are instantiated by default. 11578 11579Usage: $0 [OPTION]... [TAG]... 11580 11581 -h, --help print this help, then exit 11582 -V, --version print version number and configuration settings, then exit 11583 --config print configuration, then exit 11584 -q, --quiet, --silent 11585 do not print progress messages 11586 -d, --debug don't remove temporary files 11587 --recheck update $as_me by reconfiguring in the same conditions 11588 --file=FILE[:TEMPLATE] 11589 instantiate the configuration file FILE 11590 --header=FILE[:TEMPLATE] 11591 instantiate the configuration header FILE 11592 11593Configuration files: 11594$config_files 11595 11596Configuration headers: 11597$config_headers 11598 11599Configuration commands: 11600$config_commands 11601 11602Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11603 11604_ACEOF 11605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11606ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11607ac_cs_version="\\ 11608xmodmap config.status 1.0.8 11609configured by $0, generated by GNU Autoconf 2.68, 11610 with options \\"\$ac_cs_config\\" 11611 11612Copyright (C) 2010 Free Software Foundation, Inc. 11613This config.status script is free software; the Free Software Foundation 11614gives unlimited permission to copy, distribute and modify it." 11615 11616ac_pwd='$ac_pwd' 11617srcdir='$srcdir' 11618INSTALL='$INSTALL' 11619MKDIR_P='$MKDIR_P' 11620AWK='$AWK' 11621test -n "\$AWK" || AWK=awk 11622_ACEOF 11623 11624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11625# The default lists apply if the user does not specify any file. 11626ac_need_defaults=: 11627while test $# != 0 11628do 11629 case $1 in 11630 --*=?*) 11631 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11632 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11633 ac_shift=: 11634 ;; 11635 --*=) 11636 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11637 ac_optarg= 11638 ac_shift=: 11639 ;; 11640 *) 11641 ac_option=$1 11642 ac_optarg=$2 11643 ac_shift=shift 11644 ;; 11645 esac 11646 11647 case $ac_option in 11648 # Handling of the options. 11649 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11650 ac_cs_recheck=: ;; 11651 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11652 $as_echo "$ac_cs_version"; exit ;; 11653 --config | --confi | --conf | --con | --co | --c ) 11654 $as_echo "$ac_cs_config"; exit ;; 11655 --debug | --debu | --deb | --de | --d | -d ) 11656 debug=: ;; 11657 --file | --fil | --fi | --f ) 11658 $ac_shift 11659 case $ac_optarg in 11660 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11661 '') as_fn_error $? "missing file argument" ;; 11662 esac 11663 as_fn_append CONFIG_FILES " '$ac_optarg'" 11664 ac_need_defaults=false;; 11665 --header | --heade | --head | --hea ) 11666 $ac_shift 11667 case $ac_optarg in 11668 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11669 esac 11670 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11671 ac_need_defaults=false;; 11672 --he | --h) 11673 # Conflict between --help and --header 11674 as_fn_error $? "ambiguous option: \`$1' 11675Try \`$0 --help' for more information.";; 11676 --help | --hel | -h ) 11677 $as_echo "$ac_cs_usage"; exit ;; 11678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11679 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11680 ac_cs_silent=: ;; 11681 11682 # This is an error. 11683 -*) as_fn_error $? "unrecognized option: \`$1' 11684Try \`$0 --help' for more information." ;; 11685 11686 *) as_fn_append ac_config_targets " $1" 11687 ac_need_defaults=false ;; 11688 11689 esac 11690 shift 11691done 11692 11693ac_configure_extra_args= 11694 11695if $ac_cs_silent; then 11696 exec 6>/dev/null 11697 ac_configure_extra_args="$ac_configure_extra_args --silent" 11698fi 11699 11700_ACEOF 11701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11702if \$ac_cs_recheck; then 11703 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11704 shift 11705 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11706 CONFIG_SHELL='$SHELL' 11707 export CONFIG_SHELL 11708 exec "\$@" 11709fi 11710 11711_ACEOF 11712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11713exec 5>>config.log 11714{ 11715 echo 11716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11717## Running $as_me. ## 11718_ASBOX 11719 $as_echo "$ac_log" 11720} >&5 11721 11722_ACEOF 11723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11724# 11725# INIT-COMMANDS 11726# 11727AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11728 11729_ACEOF 11730 11731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11732 11733# Handling of arguments. 11734for ac_config_target in $ac_config_targets 11735do 11736 case $ac_config_target in 11737 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11738 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11739 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11740 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11741 11742 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11743 esac 11744done 11745 11746 11747# If the user did not use the arguments to specify the items to instantiate, 11748# then the envvar interface is used. Set only those that are not. 11749# We use the long form for the default assignment because of an extremely 11750# bizarre bug on SunOS 4.1.3. 11751if $ac_need_defaults; then 11752 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11753 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11754 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11755fi 11756 11757# Have a temporary directory for convenience. Make it in the build tree 11758# simply because there is no reason against having it here, and in addition, 11759# creating and moving files from /tmp can sometimes cause problems. 11760# Hook for its removal unless debugging. 11761# Note that there is a small window in which the directory will not be cleaned: 11762# after its creation but before its name has been assigned to `$tmp'. 11763$debug || 11764{ 11765 tmp= ac_tmp= 11766 trap 'exit_status=$? 11767 : "${ac_tmp:=$tmp}" 11768 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11769' 0 11770 trap 'as_fn_exit 1' 1 2 13 15 11771} 11772# Create a (secure) tmp directory for tmp files. 11773 11774{ 11775 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11776 test -d "$tmp" 11777} || 11778{ 11779 tmp=./conf$$-$RANDOM 11780 (umask 077 && mkdir "$tmp") 11781} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11782ac_tmp=$tmp 11783 11784# Set up the scripts for CONFIG_FILES section. 11785# No need to generate them if there are no CONFIG_FILES. 11786# This happens for instance with `./config.status config.h'. 11787if test -n "$CONFIG_FILES"; then 11788 11789 11790ac_cr=`echo X | tr X '\015'` 11791# On cygwin, bash can eat \r inside `` if the user requested igncr. 11792# But we know of no other shell where ac_cr would be empty at this 11793# point, so we can use a bashism as a fallback. 11794if test "x$ac_cr" = x; then 11795 eval ac_cr=\$\'\\r\' 11796fi 11797ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11798if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11799 ac_cs_awk_cr='\\r' 11800else 11801 ac_cs_awk_cr=$ac_cr 11802fi 11803 11804echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11805_ACEOF 11806 11807 11808{ 11809 echo "cat >conf$$subs.awk <<_ACEOF" && 11810 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11811 echo "_ACEOF" 11812} >conf$$subs.sh || 11813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11814ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11815ac_delim='%!_!# ' 11816for ac_last_try in false false false false false :; do 11817 . ./conf$$subs.sh || 11818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11819 11820 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11821 if test $ac_delim_n = $ac_delim_num; then 11822 break 11823 elif $ac_last_try; then 11824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11825 else 11826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11827 fi 11828done 11829rm -f conf$$subs.sh 11830 11831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11832cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11833_ACEOF 11834sed -n ' 11835h 11836s/^/S["/; s/!.*/"]=/ 11837p 11838g 11839s/^[^!]*!// 11840:repl 11841t repl 11842s/'"$ac_delim"'$// 11843t delim 11844:nl 11845h 11846s/\(.\{148\}\)..*/\1/ 11847t more1 11848s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11849p 11850n 11851b repl 11852:more1 11853s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11854p 11855g 11856s/.\{148\}// 11857t nl 11858:delim 11859h 11860s/\(.\{148\}\)..*/\1/ 11861t more2 11862s/["\\]/\\&/g; s/^/"/; s/$/"/ 11863p 11864b 11865:more2 11866s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11867p 11868g 11869s/.\{148\}// 11870t delim 11871' <conf$$subs.awk | sed ' 11872/^[^""]/{ 11873 N 11874 s/\n// 11875} 11876' >>$CONFIG_STATUS || ac_write_fail=1 11877rm -f conf$$subs.awk 11878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11879_ACAWK 11880cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11881 for (key in S) S_is_set[key] = 1 11882 FS = "" 11883 11884} 11885{ 11886 line = $ 0 11887 nfields = split(line, field, "@") 11888 substed = 0 11889 len = length(field[1]) 11890 for (i = 2; i < nfields; i++) { 11891 key = field[i] 11892 keylen = length(key) 11893 if (S_is_set[key]) { 11894 value = S[key] 11895 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11896 len += length(value) + length(field[++i]) 11897 substed = 1 11898 } else 11899 len += 1 + keylen 11900 } 11901 11902 print line 11903} 11904 11905_ACAWK 11906_ACEOF 11907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11908if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11909 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11910else 11911 cat 11912fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11913 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11914_ACEOF 11915 11916# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11917# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11918# trailing colons and then remove the whole line if VPATH becomes empty 11919# (actually we leave an empty line to preserve line numbers). 11920if test "x$srcdir" = x.; then 11921 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11922h 11923s/// 11924s/^/:/ 11925s/[ ]*$/:/ 11926s/:\$(srcdir):/:/g 11927s/:\${srcdir}:/:/g 11928s/:@srcdir@:/:/g 11929s/^:*// 11930s/:*$// 11931x 11932s/\(=[ ]*\).*/\1/ 11933G 11934s/\n// 11935s/^[^=]*=[ ]*$// 11936}' 11937fi 11938 11939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11940fi # test -n "$CONFIG_FILES" 11941 11942# Set up the scripts for CONFIG_HEADERS section. 11943# No need to generate them if there are no CONFIG_HEADERS. 11944# This happens for instance with `./config.status Makefile'. 11945if test -n "$CONFIG_HEADERS"; then 11946cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11947BEGIN { 11948_ACEOF 11949 11950# Transform confdefs.h into an awk script `defines.awk', embedded as 11951# here-document in config.status, that substitutes the proper values into 11952# config.h.in to produce config.h. 11953 11954# Create a delimiter string that does not exist in confdefs.h, to ease 11955# handling of long lines. 11956ac_delim='%!_!# ' 11957for ac_last_try in false false :; do 11958 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11959 if test -z "$ac_tt"; then 11960 break 11961 elif $ac_last_try; then 11962 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11963 else 11964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11965 fi 11966done 11967 11968# For the awk script, D is an array of macro values keyed by name, 11969# likewise P contains macro parameters if any. Preserve backslash 11970# newline sequences. 11971 11972ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11973sed -n ' 11974s/.\{148\}/&'"$ac_delim"'/g 11975t rset 11976:rset 11977s/^[ ]*#[ ]*define[ ][ ]*/ / 11978t def 11979d 11980:def 11981s/\\$// 11982t bsnl 11983s/["\\]/\\&/g 11984s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11985D["\1"]=" \3"/p 11986s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11987d 11988:bsnl 11989s/["\\]/\\&/g 11990s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11991D["\1"]=" \3\\\\\\n"\\/p 11992t cont 11993s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11994t cont 11995d 11996:cont 11997n 11998s/.\{148\}/&'"$ac_delim"'/g 11999t clear 12000:clear 12001s/\\$// 12002t bsnlc 12003s/["\\]/\\&/g; s/^/"/; s/$/"/p 12004d 12005:bsnlc 12006s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12007b cont 12008' <confdefs.h | sed ' 12009s/'"$ac_delim"'/"\\\ 12010"/g' >>$CONFIG_STATUS || ac_write_fail=1 12011 12012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12013 for (key in D) D_is_set[key] = 1 12014 FS = "" 12015} 12016/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12017 line = \$ 0 12018 split(line, arg, " ") 12019 if (arg[1] == "#") { 12020 defundef = arg[2] 12021 mac1 = arg[3] 12022 } else { 12023 defundef = substr(arg[1], 2) 12024 mac1 = arg[2] 12025 } 12026 split(mac1, mac2, "(") #) 12027 macro = mac2[1] 12028 prefix = substr(line, 1, index(line, defundef) - 1) 12029 if (D_is_set[macro]) { 12030 # Preserve the white space surrounding the "#". 12031 print prefix "define", macro P[macro] D[macro] 12032 next 12033 } else { 12034 # Replace #undef with comments. This is necessary, for example, 12035 # in the case of _POSIX_SOURCE, which is predefined and required 12036 # on some systems where configure will not decide to define it. 12037 if (defundef == "undef") { 12038 print "/*", prefix defundef, macro, "*/" 12039 next 12040 } 12041 } 12042} 12043{ print } 12044_ACAWK 12045_ACEOF 12046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12047 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12048fi # test -n "$CONFIG_HEADERS" 12049 12050 12051eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12052shift 12053for ac_tag 12054do 12055 case $ac_tag in 12056 :[FHLC]) ac_mode=$ac_tag; continue;; 12057 esac 12058 case $ac_mode$ac_tag in 12059 :[FHL]*:*);; 12060 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12061 :[FH]-) ac_tag=-:-;; 12062 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12063 esac 12064 ac_save_IFS=$IFS 12065 IFS=: 12066 set x $ac_tag 12067 IFS=$ac_save_IFS 12068 shift 12069 ac_file=$1 12070 shift 12071 12072 case $ac_mode in 12073 :L) ac_source=$1;; 12074 :[FH]) 12075 ac_file_inputs= 12076 for ac_f 12077 do 12078 case $ac_f in 12079 -) ac_f="$ac_tmp/stdin";; 12080 *) # Look for the file first in the build tree, then in the source tree 12081 # (if the path is not absolute). The absolute path cannot be DOS-style, 12082 # because $ac_f cannot contain `:'. 12083 test -f "$ac_f" || 12084 case $ac_f in 12085 [\\/$]*) false;; 12086 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12087 esac || 12088 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12089 esac 12090 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12091 as_fn_append ac_file_inputs " '$ac_f'" 12092 done 12093 12094 # Let's still pretend it is `configure' which instantiates (i.e., don't 12095 # use $as_me), people would be surprised to read: 12096 # /* config.h. Generated by config.status. */ 12097 configure_input='Generated from '` 12098 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12099 `' by configure.' 12100 if test x"$ac_file" != x-; then 12101 configure_input="$ac_file. $configure_input" 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12103$as_echo "$as_me: creating $ac_file" >&6;} 12104 fi 12105 # Neutralize special characters interpreted by sed in replacement strings. 12106 case $configure_input in #( 12107 *\&* | *\|* | *\\* ) 12108 ac_sed_conf_input=`$as_echo "$configure_input" | 12109 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12110 *) ac_sed_conf_input=$configure_input;; 12111 esac 12112 12113 case $ac_tag in 12114 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12116 esac 12117 ;; 12118 esac 12119 12120 ac_dir=`$as_dirname -- "$ac_file" || 12121$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12122 X"$ac_file" : 'X\(//\)[^/]' \| \ 12123 X"$ac_file" : 'X\(//\)$' \| \ 12124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12125$as_echo X"$ac_file" | 12126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12127 s//\1/ 12128 q 12129 } 12130 /^X\(\/\/\)[^/].*/{ 12131 s//\1/ 12132 q 12133 } 12134 /^X\(\/\/\)$/{ 12135 s//\1/ 12136 q 12137 } 12138 /^X\(\/\).*/{ 12139 s//\1/ 12140 q 12141 } 12142 s/.*/./; q'` 12143 as_dir="$ac_dir"; as_fn_mkdir_p 12144 ac_builddir=. 12145 12146case "$ac_dir" in 12147.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12148*) 12149 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12150 # A ".." for each directory in $ac_dir_suffix. 12151 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12152 case $ac_top_builddir_sub in 12153 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12154 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12155 esac ;; 12156esac 12157ac_abs_top_builddir=$ac_pwd 12158ac_abs_builddir=$ac_pwd$ac_dir_suffix 12159# for backward compatibility: 12160ac_top_builddir=$ac_top_build_prefix 12161 12162case $srcdir in 12163 .) # We are building in place. 12164 ac_srcdir=. 12165 ac_top_srcdir=$ac_top_builddir_sub 12166 ac_abs_top_srcdir=$ac_pwd ;; 12167 [\\/]* | ?:[\\/]* ) # Absolute name. 12168 ac_srcdir=$srcdir$ac_dir_suffix; 12169 ac_top_srcdir=$srcdir 12170 ac_abs_top_srcdir=$srcdir ;; 12171 *) # Relative name. 12172 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12173 ac_top_srcdir=$ac_top_build_prefix$srcdir 12174 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12175esac 12176ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12177 12178 12179 case $ac_mode in 12180 :F) 12181 # 12182 # CONFIG_FILE 12183 # 12184 12185 case $INSTALL in 12186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12187 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12188 esac 12189 ac_MKDIR_P=$MKDIR_P 12190 case $MKDIR_P in 12191 [\\/$]* | ?:[\\/]* ) ;; 12192 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12193 esac 12194_ACEOF 12195 12196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12197# If the template does not know about datarootdir, expand it. 12198# FIXME: This hack should be removed a few years after 2.60. 12199ac_datarootdir_hack=; ac_datarootdir_seen= 12200ac_sed_dataroot=' 12201/datarootdir/ { 12202 p 12203 q 12204} 12205/@datadir@/p 12206/@docdir@/p 12207/@infodir@/p 12208/@localedir@/p 12209/@mandir@/p' 12210case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12211*datarootdir*) ac_datarootdir_seen=yes;; 12212*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12214$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12215_ACEOF 12216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12217 ac_datarootdir_hack=' 12218 s&@datadir@&$datadir&g 12219 s&@docdir@&$docdir&g 12220 s&@infodir@&$infodir&g 12221 s&@localedir@&$localedir&g 12222 s&@mandir@&$mandir&g 12223 s&\\\${datarootdir}&$datarootdir&g' ;; 12224esac 12225_ACEOF 12226 12227# Neutralize VPATH when `$srcdir' = `.'. 12228# Shell code in configure.ac might set extrasub. 12229# FIXME: do we really want to maintain this feature? 12230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12231ac_sed_extra="$ac_vpsub 12232$extrasub 12233_ACEOF 12234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12235:t 12236/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12237s|@configure_input@|$ac_sed_conf_input|;t t 12238s&@top_builddir@&$ac_top_builddir_sub&;t t 12239s&@top_build_prefix@&$ac_top_build_prefix&;t t 12240s&@srcdir@&$ac_srcdir&;t t 12241s&@abs_srcdir@&$ac_abs_srcdir&;t t 12242s&@top_srcdir@&$ac_top_srcdir&;t t 12243s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12244s&@builddir@&$ac_builddir&;t t 12245s&@abs_builddir@&$ac_abs_builddir&;t t 12246s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12247s&@INSTALL@&$ac_INSTALL&;t t 12248s&@MKDIR_P@&$ac_MKDIR_P&;t t 12249$ac_datarootdir_hack 12250" 12251eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12252 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12253 12254test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12255 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12257 "$ac_tmp/out"`; test -z "$ac_out"; } && 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12259which seems to be undefined. Please make sure it is defined" >&5 12260$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12261which seems to be undefined. Please make sure it is defined" >&2;} 12262 12263 rm -f "$ac_tmp/stdin" 12264 case $ac_file in 12265 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12266 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12267 esac \ 12268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12269 ;; 12270 :H) 12271 # 12272 # CONFIG_HEADER 12273 # 12274 if test x"$ac_file" != x-; then 12275 { 12276 $as_echo "/* $configure_input */" \ 12277 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12278 } >"$ac_tmp/config.h" \ 12279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12280 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12282$as_echo "$as_me: $ac_file is unchanged" >&6;} 12283 else 12284 rm -f "$ac_file" 12285 mv "$ac_tmp/config.h" "$ac_file" \ 12286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12287 fi 12288 else 12289 $as_echo "/* $configure_input */" \ 12290 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12291 || as_fn_error $? "could not create -" "$LINENO" 5 12292 fi 12293# Compute "$ac_file"'s index in $config_headers. 12294_am_arg="$ac_file" 12295_am_stamp_count=1 12296for _am_header in $config_headers :; do 12297 case $_am_header in 12298 $_am_arg | $_am_arg:* ) 12299 break ;; 12300 * ) 12301 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12302 esac 12303done 12304echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12305$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12306 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12307 X"$_am_arg" : 'X\(//\)$' \| \ 12308 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12309$as_echo X"$_am_arg" | 12310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12311 s//\1/ 12312 q 12313 } 12314 /^X\(\/\/\)[^/].*/{ 12315 s//\1/ 12316 q 12317 } 12318 /^X\(\/\/\)$/{ 12319 s//\1/ 12320 q 12321 } 12322 /^X\(\/\).*/{ 12323 s//\1/ 12324 q 12325 } 12326 s/.*/./; q'`/stamp-h$_am_stamp_count 12327 ;; 12328 12329 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12330$as_echo "$as_me: executing $ac_file commands" >&6;} 12331 ;; 12332 esac 12333 12334 12335 case $ac_file$ac_mode in 12336 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12337 # Older Autoconf quotes --file arguments for eval, but not when files 12338 # are listed without --file. Let's play safe and only enable the eval 12339 # if we detect the quoting. 12340 case $CONFIG_FILES in 12341 *\'*) eval set x "$CONFIG_FILES" ;; 12342 *) set x $CONFIG_FILES ;; 12343 esac 12344 shift 12345 for mf 12346 do 12347 # Strip MF so we end up with the name of the file. 12348 mf=`echo "$mf" | sed -e 's/:.*$//'` 12349 # Check whether this is an Automake generated Makefile or not. 12350 # We used to match only the files named 'Makefile.in', but 12351 # some people rename them; so instead we look at the file content. 12352 # Grep'ing the first line is not enough: some people post-process 12353 # each Makefile.in and add a new line on top of each file to say so. 12354 # Grep'ing the whole file is not good either: AIX grep has a line 12355 # limit of 2048, but all sed's we know have understand at least 4000. 12356 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12357 dirpart=`$as_dirname -- "$mf" || 12358$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12359 X"$mf" : 'X\(//\)[^/]' \| \ 12360 X"$mf" : 'X\(//\)$' \| \ 12361 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12362$as_echo X"$mf" | 12363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12364 s//\1/ 12365 q 12366 } 12367 /^X\(\/\/\)[^/].*/{ 12368 s//\1/ 12369 q 12370 } 12371 /^X\(\/\/\)$/{ 12372 s//\1/ 12373 q 12374 } 12375 /^X\(\/\).*/{ 12376 s//\1/ 12377 q 12378 } 12379 s/.*/./; q'` 12380 else 12381 continue 12382 fi 12383 # Extract the definition of DEPDIR, am__include, and am__quote 12384 # from the Makefile without running 'make'. 12385 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12386 test -z "$DEPDIR" && continue 12387 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12388 test -z "$am__include" && continue 12389 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12390 # Find all dependency output files, they are included files with 12391 # $(DEPDIR) in their names. We invoke sed twice because it is the 12392 # simplest approach to changing $(DEPDIR) to its actual value in the 12393 # expansion. 12394 for file in `sed -n " 12395 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12396 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12397 # Make sure the directory exists. 12398 test -f "$dirpart/$file" && continue 12399 fdir=`$as_dirname -- "$file" || 12400$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12401 X"$file" : 'X\(//\)[^/]' \| \ 12402 X"$file" : 'X\(//\)$' \| \ 12403 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12404$as_echo X"$file" | 12405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12406 s//\1/ 12407 q 12408 } 12409 /^X\(\/\/\)[^/].*/{ 12410 s//\1/ 12411 q 12412 } 12413 /^X\(\/\/\)$/{ 12414 s//\1/ 12415 q 12416 } 12417 /^X\(\/\).*/{ 12418 s//\1/ 12419 q 12420 } 12421 s/.*/./; q'` 12422 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12423 # echo "creating $dirpart/$file" 12424 echo '# dummy' > "$dirpart/$file" 12425 done 12426 done 12427} 12428 ;; 12429 12430 esac 12431done # for ac_tag 12432 12433 12434as_fn_exit 0 12435_ACEOF 12436ac_clean_files=$ac_clean_files_save 12437 12438test $ac_write_fail = 0 || 12439 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12440 12441 12442# configure is writing to config.log, and then calls config.status. 12443# config.status does its own redirection, appending to config.log. 12444# Unfortunately, on DOS this fails, as config.log is still kept open 12445# by configure, so config.status won't be able to write to it; its 12446# output is simply discarded. So we exec the FD to /dev/null, 12447# effectively closing config.log, so it can be properly (re)opened and 12448# appended to by config.status. When coming back to configure, we 12449# need to make the FD available again. 12450if test "$no_create" != yes; then 12451 ac_cs_success=: 12452 ac_config_status_args= 12453 test "$silent" = yes && 12454 ac_config_status_args="$ac_config_status_args --quiet" 12455 exec 5>/dev/null 12456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12457 exec 5>>config.log 12458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12459 # would make configure fail if this is the last instruction. 12460 $ac_cs_success || as_fn_exit 1 12461fi 12462if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12464$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12465fi 12466 12467