configure revision 5dd2154e
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for bdftopcf 1.0.4. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='bdftopcf' 563PACKAGE_TARNAME='bdftopcf' 564PACKAGE_VERSION='1.0.4' 565PACKAGE_STRING='bdftopcf 1.0.4' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#ifdef HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#ifdef HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#ifdef STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# ifdef HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#ifdef HAVE_STRING_H 587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#ifdef HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#ifdef HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#ifdef HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#ifdef HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='am__EXEEXT_FALSE 606am__EXEEXT_TRUE 607LTLIBOBJS 608LIBOBJS 609LINT_FALSE 610LINT_TRUE 611LINT_FLAGS 612LINT 613BDFTOPCF_LIBS 614BDFTOPCF_CFLAGS 615AM_BACKSLASH 616AM_DEFAULT_VERBOSITY 617MAN_SUBSTS 618XORG_MAN_PAGE 619ADMIN_MAN_DIR 620DRIVER_MAN_DIR 621MISC_MAN_DIR 622FILE_MAN_DIR 623LIB_MAN_DIR 624APP_MAN_DIR 625ADMIN_MAN_SUFFIX 626DRIVER_MAN_SUFFIX 627MISC_MAN_SUFFIX 628FILE_MAN_SUFFIX 629LIB_MAN_SUFFIX 630APP_MAN_SUFFIX 631SED 632host_os 633host_vendor 634host_cpu 635host 636build_os 637build_vendor 638build_cpu 639build 640INSTALL_CMD 641PKG_CONFIG 642CHANGELOG_CMD 643STRICT_CFLAGS 644CWARNFLAGS 645BASE_CFLAGS 646EGREP 647GREP 648CPP 649am__fastdepCC_FALSE 650am__fastdepCC_TRUE 651CCDEPMODE 652am__nodep 653AMDEPBACKSLASH 654AMDEP_FALSE 655AMDEP_TRUE 656am__quote 657am__include 658DEPDIR 659OBJEXT 660EXEEXT 661ac_ct_CC 662CPPFLAGS 663LDFLAGS 664CFLAGS 665CC 666MAINT 667MAINTAINER_MODE_FALSE 668MAINTAINER_MODE_TRUE 669am__untar 670am__tar 671AMTAR 672am__leading_dot 673SET_MAKE 674AWK 675mkdir_p 676MKDIR_P 677INSTALL_STRIP_PROGRAM 678STRIP 679install_sh 680MAKEINFO 681AUTOHEADER 682AUTOMAKE 683AUTOCONF 684ACLOCAL 685VERSION 686PACKAGE 687CYGPATH_W 688am__isrc 689INSTALL_DATA 690INSTALL_SCRIPT 691INSTALL_PROGRAM 692target_alias 693host_alias 694build_alias 695LIBS 696ECHO_T 697ECHO_N 698ECHO_C 699DEFS 700mandir 701localedir 702libdir 703psdir 704pdfdir 705dvidir 706htmldir 707infodir 708docdir 709oldincludedir 710includedir 711localstatedir 712sharedstatedir 713sysconfdir 714datadir 715datarootdir 716libexecdir 717sbindir 718bindir 719program_transform_name 720prefix 721exec_prefix 722PACKAGE_URL 723PACKAGE_BUGREPORT 724PACKAGE_STRING 725PACKAGE_VERSION 726PACKAGE_TARNAME 727PACKAGE_NAME 728PATH_SEPARATOR 729SHELL' 730ac_subst_files='' 731ac_user_opts=' 732enable_option_checking 733enable_maintainer_mode 734enable_dependency_tracking 735enable_selective_werror 736enable_strict_compilation 737enable_silent_rules 738with_lint 739' 740 ac_precious_vars='build_alias 741host_alias 742target_alias 743CC 744CFLAGS 745LDFLAGS 746LIBS 747CPPFLAGS 748CPP 749PKG_CONFIG 750BDFTOPCF_CFLAGS 751BDFTOPCF_LIBS 752LINT 753LINT_FLAGS' 754 755 756# Initialize some variables set by options. 757ac_init_help= 758ac_init_version=false 759ac_unrecognized_opts= 760ac_unrecognized_sep= 761# The variables have the same names as the options, with 762# dashes changed to underlines. 763cache_file=/dev/null 764exec_prefix=NONE 765no_create= 766no_recursion= 767prefix=NONE 768program_prefix=NONE 769program_suffix=NONE 770program_transform_name=s,x,x, 771silent= 772site= 773srcdir= 774verbose= 775x_includes=NONE 776x_libraries=NONE 777 778# Installation directory options. 779# These are left unexpanded so users can "make install exec_prefix=/foo" 780# and all the variables that are supposed to be based on exec_prefix 781# by default will actually change. 782# Use braces instead of parens because sh, perl, etc. also accept them. 783# (The list follows the same order as the GNU Coding Standards.) 784bindir='${exec_prefix}/bin' 785sbindir='${exec_prefix}/sbin' 786libexecdir='${exec_prefix}/libexec' 787datarootdir='${prefix}/share' 788datadir='${datarootdir}' 789sysconfdir='${prefix}/etc' 790sharedstatedir='${prefix}/com' 791localstatedir='${prefix}/var' 792includedir='${prefix}/include' 793oldincludedir='/usr/include' 794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 795infodir='${datarootdir}/info' 796htmldir='${docdir}' 797dvidir='${docdir}' 798pdfdir='${docdir}' 799psdir='${docdir}' 800libdir='${exec_prefix}/lib' 801localedir='${datarootdir}/locale' 802mandir='${datarootdir}/man' 803 804ac_prev= 805ac_dashdash= 806for ac_option 807do 808 # If the previous option needs an argument, assign it. 809 if test -n "$ac_prev"; then 810 eval $ac_prev=\$ac_option 811 ac_prev= 812 continue 813 fi 814 815 case $ac_option in 816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 817 *=) ac_optarg= ;; 818 *) ac_optarg=yes ;; 819 esac 820 821 # Accept the important Cygnus configure options, so we can diagnose typos. 822 823 case $ac_dashdash$ac_option in 824 --) 825 ac_dashdash=yes ;; 826 827 -bindir | --bindir | --bindi | --bind | --bin | --bi) 828 ac_prev=bindir ;; 829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 830 bindir=$ac_optarg ;; 831 832 -build | --build | --buil | --bui | --bu) 833 ac_prev=build_alias ;; 834 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 835 build_alias=$ac_optarg ;; 836 837 -cache-file | --cache-file | --cache-fil | --cache-fi \ 838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 839 ac_prev=cache_file ;; 840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 842 cache_file=$ac_optarg ;; 843 844 --config-cache | -C) 845 cache_file=config.cache ;; 846 847 -datadir | --datadir | --datadi | --datad) 848 ac_prev=datadir ;; 849 -datadir=* | --datadir=* | --datadi=* | --datad=*) 850 datadir=$ac_optarg ;; 851 852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 853 | --dataroo | --dataro | --datar) 854 ac_prev=datarootdir ;; 855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 857 datarootdir=$ac_optarg ;; 858 859 -disable-* | --disable-*) 860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 861 # Reject names that are not valid shell variable names. 862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 863 as_fn_error $? "invalid feature name: $ac_useropt" 864 ac_useropt_orig=$ac_useropt 865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 866 case $ac_user_opts in 867 *" 868"enable_$ac_useropt" 869"*) ;; 870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 871 ac_unrecognized_sep=', ';; 872 esac 873 eval enable_$ac_useropt=no ;; 874 875 -docdir | --docdir | --docdi | --doc | --do) 876 ac_prev=docdir ;; 877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 878 docdir=$ac_optarg ;; 879 880 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 881 ac_prev=dvidir ;; 882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 883 dvidir=$ac_optarg ;; 884 885 -enable-* | --enable-*) 886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 887 # Reject names that are not valid shell variable names. 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 889 as_fn_error $? "invalid feature name: $ac_useropt" 890 ac_useropt_orig=$ac_useropt 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 892 case $ac_user_opts in 893 *" 894"enable_$ac_useropt" 895"*) ;; 896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 897 ac_unrecognized_sep=', ';; 898 esac 899 eval enable_$ac_useropt=\$ac_optarg ;; 900 901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 903 | --exec | --exe | --ex) 904 ac_prev=exec_prefix ;; 905 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 906 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 907 | --exec=* | --exe=* | --ex=*) 908 exec_prefix=$ac_optarg ;; 909 910 -gas | --gas | --ga | --g) 911 # Obsolete; use --with-gas. 912 with_gas=yes ;; 913 914 -help | --help | --hel | --he | -h) 915 ac_init_help=long ;; 916 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 917 ac_init_help=recursive ;; 918 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 919 ac_init_help=short ;; 920 921 -host | --host | --hos | --ho) 922 ac_prev=host_alias ;; 923 -host=* | --host=* | --hos=* | --ho=*) 924 host_alias=$ac_optarg ;; 925 926 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 927 ac_prev=htmldir ;; 928 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 929 | --ht=*) 930 htmldir=$ac_optarg ;; 931 932 -includedir | --includedir | --includedi | --included | --include \ 933 | --includ | --inclu | --incl | --inc) 934 ac_prev=includedir ;; 935 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 936 | --includ=* | --inclu=* | --incl=* | --inc=*) 937 includedir=$ac_optarg ;; 938 939 -infodir | --infodir | --infodi | --infod | --info | --inf) 940 ac_prev=infodir ;; 941 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 942 infodir=$ac_optarg ;; 943 944 -libdir | --libdir | --libdi | --libd) 945 ac_prev=libdir ;; 946 -libdir=* | --libdir=* | --libdi=* | --libd=*) 947 libdir=$ac_optarg ;; 948 949 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 950 | --libexe | --libex | --libe) 951 ac_prev=libexecdir ;; 952 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 953 | --libexe=* | --libex=* | --libe=*) 954 libexecdir=$ac_optarg ;; 955 956 -localedir | --localedir | --localedi | --localed | --locale) 957 ac_prev=localedir ;; 958 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 959 localedir=$ac_optarg ;; 960 961 -localstatedir | --localstatedir | --localstatedi | --localstated \ 962 | --localstate | --localstat | --localsta | --localst | --locals) 963 ac_prev=localstatedir ;; 964 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 965 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 966 localstatedir=$ac_optarg ;; 967 968 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 969 ac_prev=mandir ;; 970 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 971 mandir=$ac_optarg ;; 972 973 -nfp | --nfp | --nf) 974 # Obsolete; use --without-fp. 975 with_fp=no ;; 976 977 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 978 | --no-cr | --no-c | -n) 979 no_create=yes ;; 980 981 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 982 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 983 no_recursion=yes ;; 984 985 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 986 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 987 | --oldin | --oldi | --old | --ol | --o) 988 ac_prev=oldincludedir ;; 989 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 990 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 991 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 992 oldincludedir=$ac_optarg ;; 993 994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 995 ac_prev=prefix ;; 996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 997 prefix=$ac_optarg ;; 998 999 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1000 | --program-pre | --program-pr | --program-p) 1001 ac_prev=program_prefix ;; 1002 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1003 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1004 program_prefix=$ac_optarg ;; 1005 1006 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1007 | --program-suf | --program-su | --program-s) 1008 ac_prev=program_suffix ;; 1009 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1010 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1011 program_suffix=$ac_optarg ;; 1012 1013 -program-transform-name | --program-transform-name \ 1014 | --program-transform-nam | --program-transform-na \ 1015 | --program-transform-n | --program-transform- \ 1016 | --program-transform | --program-transfor \ 1017 | --program-transfo | --program-transf \ 1018 | --program-trans | --program-tran \ 1019 | --progr-tra | --program-tr | --program-t) 1020 ac_prev=program_transform_name ;; 1021 -program-transform-name=* | --program-transform-name=* \ 1022 | --program-transform-nam=* | --program-transform-na=* \ 1023 | --program-transform-n=* | --program-transform-=* \ 1024 | --program-transform=* | --program-transfor=* \ 1025 | --program-transfo=* | --program-transf=* \ 1026 | --program-trans=* | --program-tran=* \ 1027 | --progr-tra=* | --program-tr=* | --program-t=*) 1028 program_transform_name=$ac_optarg ;; 1029 1030 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1031 ac_prev=pdfdir ;; 1032 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1033 pdfdir=$ac_optarg ;; 1034 1035 -psdir | --psdir | --psdi | --psd | --ps) 1036 ac_prev=psdir ;; 1037 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1038 psdir=$ac_optarg ;; 1039 1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1041 | -silent | --silent | --silen | --sile | --sil) 1042 silent=yes ;; 1043 1044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1045 ac_prev=sbindir ;; 1046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1047 | --sbi=* | --sb=*) 1048 sbindir=$ac_optarg ;; 1049 1050 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1052 | --sharedst | --shareds | --shared | --share | --shar \ 1053 | --sha | --sh) 1054 ac_prev=sharedstatedir ;; 1055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1058 | --sha=* | --sh=*) 1059 sharedstatedir=$ac_optarg ;; 1060 1061 -site | --site | --sit) 1062 ac_prev=site ;; 1063 -site=* | --site=* | --sit=*) 1064 site=$ac_optarg ;; 1065 1066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1067 ac_prev=srcdir ;; 1068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1069 srcdir=$ac_optarg ;; 1070 1071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1072 | --syscon | --sysco | --sysc | --sys | --sy) 1073 ac_prev=sysconfdir ;; 1074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1076 sysconfdir=$ac_optarg ;; 1077 1078 -target | --target | --targe | --targ | --tar | --ta | --t) 1079 ac_prev=target_alias ;; 1080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1081 target_alias=$ac_optarg ;; 1082 1083 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1084 verbose=yes ;; 1085 1086 -version | --version | --versio | --versi | --vers | -V) 1087 ac_init_version=: ;; 1088 1089 -with-* | --with-*) 1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1091 # Reject names that are not valid shell variable names. 1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1093 as_fn_error $? "invalid package name: $ac_useropt" 1094 ac_useropt_orig=$ac_useropt 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1096 case $ac_user_opts in 1097 *" 1098"with_$ac_useropt" 1099"*) ;; 1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1101 ac_unrecognized_sep=', ';; 1102 esac 1103 eval with_$ac_useropt=\$ac_optarg ;; 1104 1105 -without-* | --without-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"with_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=no ;; 1120 1121 --x) 1122 # Obsolete; use --with-x. 1123 with_x=yes ;; 1124 1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1126 | --x-incl | --x-inc | --x-in | --x-i) 1127 ac_prev=x_includes ;; 1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1130 x_includes=$ac_optarg ;; 1131 1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1134 ac_prev=x_libraries ;; 1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1137 x_libraries=$ac_optarg ;; 1138 1139 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1140Try \`$0 --help' for more information" 1141 ;; 1142 1143 *=*) 1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1145 # Reject names that are not valid shell variable names. 1146 case $ac_envvar in #( 1147 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1149 esac 1150 eval $ac_envvar=\$ac_optarg 1151 export $ac_envvar ;; 1152 1153 *) 1154 # FIXME: should be removed in autoconf 3.0. 1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1159 ;; 1160 1161 esac 1162done 1163 1164if test -n "$ac_prev"; then 1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1166 as_fn_error $? "missing argument to $ac_option" 1167fi 1168 1169if test -n "$ac_unrecognized_opts"; then 1170 case $enable_option_checking in 1171 no) ;; 1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1174 esac 1175fi 1176 1177# Check all directory arguments for consistency. 1178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1179 datadir sysconfdir sharedstatedir localstatedir includedir \ 1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1181 libdir localedir mandir 1182do 1183 eval ac_val=\$$ac_var 1184 # Remove trailing slashes. 1185 case $ac_val in 1186 */ ) 1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1188 eval $ac_var=\$ac_val;; 1189 esac 1190 # Be sure to have absolute directory names. 1191 case $ac_val in 1192 [\\/$]* | ?:[\\/]* ) continue;; 1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1194 esac 1195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1196done 1197 1198# There might be people who depend on the old broken behavior: `$host' 1199# used to hold the argument of --host etc. 1200# FIXME: To remove some day. 1201build=$build_alias 1202host=$host_alias 1203target=$target_alias 1204 1205# FIXME: To remove some day. 1206if test "x$host_alias" != x; then 1207 if test "x$build_alias" = x; then 1208 cross_compiling=maybe 1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1210 If a cross compiler is detected then cross compile mode will be used" >&2 1211 elif test "x$build_alias" != "x$host_alias"; then 1212 cross_compiling=yes 1213 fi 1214fi 1215 1216ac_tool_prefix= 1217test -n "$host_alias" && ac_tool_prefix=$host_alias- 1218 1219test "$silent" = yes && exec 6>/dev/null 1220 1221 1222ac_pwd=`pwd` && test -n "$ac_pwd" && 1223ac_ls_di=`ls -di .` && 1224ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1225 as_fn_error $? "working directory cannot be determined" 1226test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1227 as_fn_error $? "pwd does not report name of working directory" 1228 1229 1230# Find the source files, if location was not specified. 1231if test -z "$srcdir"; then 1232 ac_srcdir_defaulted=yes 1233 # Try the directory containing this script, then the parent directory. 1234 ac_confdir=`$as_dirname -- "$as_myself" || 1235$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1236 X"$as_myself" : 'X\(//\)[^/]' \| \ 1237 X"$as_myself" : 'X\(//\)$' \| \ 1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1239$as_echo X"$as_myself" | 1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\/\)[^/].*/{ 1245 s//\1/ 1246 q 1247 } 1248 /^X\(\/\/\)$/{ 1249 s//\1/ 1250 q 1251 } 1252 /^X\(\/\).*/{ 1253 s//\1/ 1254 q 1255 } 1256 s/.*/./; q'` 1257 srcdir=$ac_confdir 1258 if test ! -r "$srcdir/$ac_unique_file"; then 1259 srcdir=.. 1260 fi 1261else 1262 ac_srcdir_defaulted=no 1263fi 1264if test ! -r "$srcdir/$ac_unique_file"; then 1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1266 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1267fi 1268ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1269ac_abs_confdir=`( 1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1271 pwd)` 1272# When building in place, set srcdir=. 1273if test "$ac_abs_confdir" = "$ac_pwd"; then 1274 srcdir=. 1275fi 1276# Remove unnecessary trailing slashes from srcdir. 1277# Double slashes in file names in object file debugging info 1278# mess up M-x gdb in Emacs. 1279case $srcdir in 1280*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1281esac 1282for ac_var in $ac_precious_vars; do 1283 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1284 eval ac_env_${ac_var}_value=\$${ac_var} 1285 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1286 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1287done 1288 1289# 1290# Report the --help message. 1291# 1292if test "$ac_init_help" = "long"; then 1293 # Omit some internal or obsolete options to make the list less imposing. 1294 # This message is too long to be a string in the A/UX 3.1 sh. 1295 cat <<_ACEOF 1296\`configure' configures bdftopcf 1.0.4 to adapt to many kinds of systems. 1297 1298Usage: $0 [OPTION]... [VAR=VALUE]... 1299 1300To assign environment variables (e.g., CC, CFLAGS...), specify them as 1301VAR=VALUE. See below for descriptions of some of the useful variables. 1302 1303Defaults for the options are specified in brackets. 1304 1305Configuration: 1306 -h, --help display this help and exit 1307 --help=short display options specific to this package 1308 --help=recursive display the short help of all the included packages 1309 -V, --version display version information and exit 1310 -q, --quiet, --silent do not print \`checking ...' messages 1311 --cache-file=FILE cache test results in FILE [disabled] 1312 -C, --config-cache alias for \`--cache-file=config.cache' 1313 -n, --no-create do not create output files 1314 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1315 1316Installation directories: 1317 --prefix=PREFIX install architecture-independent files in PREFIX 1318 [$ac_default_prefix] 1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1320 [PREFIX] 1321 1322By default, \`make install' will install all the files in 1323\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1324an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1325for instance \`--prefix=\$HOME'. 1326 1327For better control, use the options below. 1328 1329Fine tuning of the installation directories: 1330 --bindir=DIR user executables [EPREFIX/bin] 1331 --sbindir=DIR system admin executables [EPREFIX/sbin] 1332 --libexecdir=DIR program executables [EPREFIX/libexec] 1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1336 --libdir=DIR object code libraries [EPREFIX/lib] 1337 --includedir=DIR C header files [PREFIX/include] 1338 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1341 --infodir=DIR info documentation [DATAROOTDIR/info] 1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1343 --mandir=DIR man documentation [DATAROOTDIR/man] 1344 --docdir=DIR documentation root [DATAROOTDIR/doc/bdftopcf] 1345 --htmldir=DIR html documentation [DOCDIR] 1346 --dvidir=DIR dvi documentation [DOCDIR] 1347 --pdfdir=DIR pdf documentation [DOCDIR] 1348 --psdir=DIR ps documentation [DOCDIR] 1349_ACEOF 1350 1351 cat <<\_ACEOF 1352 1353Program names: 1354 --program-prefix=PREFIX prepend PREFIX to installed program names 1355 --program-suffix=SUFFIX append SUFFIX to installed program names 1356 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1357 1358System types: 1359 --build=BUILD configure for building on BUILD [guessed] 1360 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1361_ACEOF 1362fi 1363 1364if test -n "$ac_init_help"; then 1365 case $ac_init_help in 1366 short | recursive ) echo "Configuration of bdftopcf 1.0.4:";; 1367 esac 1368 cat <<\_ACEOF 1369 1370Optional Features: 1371 --disable-option-checking ignore unrecognized --enable/--with options 1372 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1373 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1374 --enable-maintainer-mode enable make rules and dependencies not useful 1375 (and sometimes confusing) to the casual installer 1376 --disable-dependency-tracking speeds up one-time build 1377 --enable-dependency-tracking do not reject slow dependency extractors 1378 --disable-selective-werror 1379 Turn off selective compiler errors. (default: 1380 enabled) 1381 --enable-strict-compilation 1382 Enable all warnings from compiler and make them 1383 errors (default: disabled) 1384 --enable-silent-rules less verbose build output (undo: `make V=1') 1385 --disable-silent-rules verbose build output (undo: `make V=0') 1386 1387Optional Packages: 1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1390 --with-lint Use a lint-style source code checker (default: 1391 disabled) 1392 1393Some influential environment variables: 1394 CC C compiler command 1395 CFLAGS C compiler flags 1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1397 nonstandard directory <lib dir> 1398 LIBS libraries to pass to the linker, e.g. -l<library> 1399 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1400 you have headers in a nonstandard directory <include dir> 1401 CPP C preprocessor 1402 PKG_CONFIG path to pkg-config utility 1403 BDFTOPCF_CFLAGS 1404 C compiler flags for BDFTOPCF, overriding pkg-config 1405 BDFTOPCF_LIBS 1406 linker flags for BDFTOPCF, overriding pkg-config 1407 LINT Path to a lint-style command 1408 LINT_FLAGS Flags for the lint-style command 1409 1410Use these variables to override the choices made by `configure' or to help 1411it to find libraries and programs with nonstandard names/locations. 1412 1413Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1414_ACEOF 1415ac_status=$? 1416fi 1417 1418if test "$ac_init_help" = "recursive"; then 1419 # If there are subdirs, report their specific --help. 1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1421 test -d "$ac_dir" || 1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1423 continue 1424 ac_builddir=. 1425 1426case "$ac_dir" in 1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1428*) 1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1430 # A ".." for each directory in $ac_dir_suffix. 1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1432 case $ac_top_builddir_sub in 1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1435 esac ;; 1436esac 1437ac_abs_top_builddir=$ac_pwd 1438ac_abs_builddir=$ac_pwd$ac_dir_suffix 1439# for backward compatibility: 1440ac_top_builddir=$ac_top_build_prefix 1441 1442case $srcdir in 1443 .) # We are building in place. 1444 ac_srcdir=. 1445 ac_top_srcdir=$ac_top_builddir_sub 1446 ac_abs_top_srcdir=$ac_pwd ;; 1447 [\\/]* | ?:[\\/]* ) # Absolute name. 1448 ac_srcdir=$srcdir$ac_dir_suffix; 1449 ac_top_srcdir=$srcdir 1450 ac_abs_top_srcdir=$srcdir ;; 1451 *) # Relative name. 1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1453 ac_top_srcdir=$ac_top_build_prefix$srcdir 1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1455esac 1456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1457 1458 cd "$ac_dir" || { ac_status=$?; continue; } 1459 # Check for guested configure. 1460 if test -f "$ac_srcdir/configure.gnu"; then 1461 echo && 1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1463 elif test -f "$ac_srcdir/configure"; then 1464 echo && 1465 $SHELL "$ac_srcdir/configure" --help=recursive 1466 else 1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1468 fi || ac_status=$? 1469 cd "$ac_pwd" || { ac_status=$?; break; } 1470 done 1471fi 1472 1473test -n "$ac_init_help" && exit $ac_status 1474if $ac_init_version; then 1475 cat <<\_ACEOF 1476bdftopcf configure 1.0.4 1477generated by GNU Autoconf 2.68 1478 1479Copyright (C) 2010 Free Software Foundation, Inc. 1480This configure script is free software; the Free Software Foundation 1481gives unlimited permission to copy, distribute and modify it. 1482_ACEOF 1483 exit 1484fi 1485 1486## ------------------------ ## 1487## Autoconf initialization. ## 1488## ------------------------ ## 1489 1490# ac_fn_c_try_compile LINENO 1491# -------------------------- 1492# Try to compile conftest.$ac_ext, and return whether this succeeded. 1493ac_fn_c_try_compile () 1494{ 1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1496 rm -f conftest.$ac_objext 1497 if { { ac_try="$ac_compile" 1498case "(($ac_try" in 1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1500 *) ac_try_echo=$ac_try;; 1501esac 1502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1503$as_echo "$ac_try_echo"; } >&5 1504 (eval "$ac_compile") 2>conftest.err 1505 ac_status=$? 1506 if test -s conftest.err; then 1507 grep -v '^ *+' conftest.err >conftest.er1 1508 cat conftest.er1 >&5 1509 mv -f conftest.er1 conftest.err 1510 fi 1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1512 test $ac_status = 0; } && { 1513 test -z "$ac_c_werror_flag" || 1514 test ! -s conftest.err 1515 } && test -s conftest.$ac_objext; then : 1516 ac_retval=0 1517else 1518 $as_echo "$as_me: failed program was:" >&5 1519sed 's/^/| /' conftest.$ac_ext >&5 1520 1521 ac_retval=1 1522fi 1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1524 as_fn_set_status $ac_retval 1525 1526} # ac_fn_c_try_compile 1527 1528# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1529# --------------------------------------------- 1530# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1531# accordingly. 1532ac_fn_c_check_decl () 1533{ 1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1535 as_decl_name=`echo $2|sed 's/ *(.*//'` 1536 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1538$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1539if eval \${$3+:} false; then : 1540 $as_echo_n "(cached) " >&6 1541else 1542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1543/* end confdefs.h. */ 1544$4 1545int 1546main () 1547{ 1548#ifndef $as_decl_name 1549#ifdef __cplusplus 1550 (void) $as_decl_use; 1551#else 1552 (void) $as_decl_name; 1553#endif 1554#endif 1555 1556 ; 1557 return 0; 1558} 1559_ACEOF 1560if ac_fn_c_try_compile "$LINENO"; then : 1561 eval "$3=yes" 1562else 1563 eval "$3=no" 1564fi 1565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1566fi 1567eval ac_res=\$$3 1568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1569$as_echo "$ac_res" >&6; } 1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1571 1572} # ac_fn_c_check_decl 1573 1574# ac_fn_c_try_cpp LINENO 1575# ---------------------- 1576# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1577ac_fn_c_try_cpp () 1578{ 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1580 if { { ac_try="$ac_cpp conftest.$ac_ext" 1581case "(($ac_try" in 1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1583 *) ac_try_echo=$ac_try;; 1584esac 1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1586$as_echo "$ac_try_echo"; } >&5 1587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1588 ac_status=$? 1589 if test -s conftest.err; then 1590 grep -v '^ *+' conftest.err >conftest.er1 1591 cat conftest.er1 >&5 1592 mv -f conftest.er1 conftest.err 1593 fi 1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1595 test $ac_status = 0; } > conftest.i && { 1596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1597 test ! -s conftest.err 1598 }; then : 1599 ac_retval=0 1600else 1601 $as_echo "$as_me: failed program was:" >&5 1602sed 's/^/| /' conftest.$ac_ext >&5 1603 1604 ac_retval=1 1605fi 1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1607 as_fn_set_status $ac_retval 1608 1609} # ac_fn_c_try_cpp 1610 1611# ac_fn_c_try_run LINENO 1612# ---------------------- 1613# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1614# that executables *can* be run. 1615ac_fn_c_try_run () 1616{ 1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1618 if { { ac_try="$ac_link" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624$as_echo "$ac_try_echo"; } >&5 1625 (eval "$ac_link") 2>&5 1626 ac_status=$? 1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1628 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1629 { { case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634$as_echo "$ac_try_echo"; } >&5 1635 (eval "$ac_try") 2>&5 1636 ac_status=$? 1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; }; }; then : 1639 ac_retval=0 1640else 1641 $as_echo "$as_me: program exited with status $ac_status" >&5 1642 $as_echo "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=$ac_status 1646fi 1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1649 as_fn_set_status $ac_retval 1650 1651} # ac_fn_c_try_run 1652 1653# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1654# ------------------------------------------------------- 1655# Tests whether HEADER exists and can be compiled using the include files in 1656# INCLUDES, setting the cache variable VAR accordingly. 1657ac_fn_c_check_header_compile () 1658{ 1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1661$as_echo_n "checking for $2... " >&6; } 1662if eval \${$3+:} false; then : 1663 $as_echo_n "(cached) " >&6 1664else 1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1666/* end confdefs.h. */ 1667$4 1668#include <$2> 1669_ACEOF 1670if ac_fn_c_try_compile "$LINENO"; then : 1671 eval "$3=yes" 1672else 1673 eval "$3=no" 1674fi 1675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1676fi 1677eval ac_res=\$$3 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1679$as_echo "$ac_res" >&6; } 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 1682} # ac_fn_c_check_header_compile 1683 1684# ac_fn_c_try_link LINENO 1685# ----------------------- 1686# Try to link conftest.$ac_ext, and return whether this succeeded. 1687ac_fn_c_try_link () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 rm -f conftest.$ac_objext conftest$ac_exeext 1691 if { { ac_try="$ac_link" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_link") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } && { 1707 test -z "$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 } && test -s conftest$ac_exeext && { 1710 test "$cross_compiling" = yes || 1711 $as_test_x conftest$ac_exeext 1712 }; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 1719fi 1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1722 # interfere with the next link command; also delete a directory that is 1723 # left behind by Apple's compiler. We do this before executing the actions. 1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728} # ac_fn_c_try_link 1729cat >config.log <<_ACEOF 1730This file contains any messages produced by compilers while 1731running configure, to aid debugging if configure makes a mistake. 1732 1733It was created by bdftopcf $as_me 1.0.4, which was 1734generated by GNU Autoconf 2.68. Invocation command line was 1735 1736 $ $0 $@ 1737 1738_ACEOF 1739exec 5>>config.log 1740{ 1741cat <<_ASUNAME 1742## --------- ## 1743## Platform. ## 1744## --------- ## 1745 1746hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1747uname -m = `(uname -m) 2>/dev/null || echo unknown` 1748uname -r = `(uname -r) 2>/dev/null || echo unknown` 1749uname -s = `(uname -s) 2>/dev/null || echo unknown` 1750uname -v = `(uname -v) 2>/dev/null || echo unknown` 1751 1752/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1753/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1754 1755/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1756/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1757/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1758/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1759/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1760/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1761/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1762 1763_ASUNAME 1764 1765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1766for as_dir in $PATH 1767do 1768 IFS=$as_save_IFS 1769 test -z "$as_dir" && as_dir=. 1770 $as_echo "PATH: $as_dir" 1771 done 1772IFS=$as_save_IFS 1773 1774} >&5 1775 1776cat >&5 <<_ACEOF 1777 1778 1779## ----------- ## 1780## Core tests. ## 1781## ----------- ## 1782 1783_ACEOF 1784 1785 1786# Keep a trace of the command line. 1787# Strip out --no-create and --no-recursion so they do not pile up. 1788# Strip out --silent because we don't want to record it for future runs. 1789# Also quote any args containing shell meta-characters. 1790# Make two passes to allow for proper duplicate-argument suppression. 1791ac_configure_args= 1792ac_configure_args0= 1793ac_configure_args1= 1794ac_must_keep_next=false 1795for ac_pass in 1 2 1796do 1797 for ac_arg 1798 do 1799 case $ac_arg in 1800 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1802 | -silent | --silent | --silen | --sile | --sil) 1803 continue ;; 1804 *\'*) 1805 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1806 esac 1807 case $ac_pass in 1808 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1809 2) 1810 as_fn_append ac_configure_args1 " '$ac_arg'" 1811 if test $ac_must_keep_next = true; then 1812 ac_must_keep_next=false # Got value, back to normal. 1813 else 1814 case $ac_arg in 1815 *=* | --config-cache | -C | -disable-* | --disable-* \ 1816 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1817 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1818 | -with-* | --with-* | -without-* | --without-* | --x) 1819 case "$ac_configure_args0 " in 1820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1821 esac 1822 ;; 1823 -* ) ac_must_keep_next=true ;; 1824 esac 1825 fi 1826 as_fn_append ac_configure_args " '$ac_arg'" 1827 ;; 1828 esac 1829 done 1830done 1831{ ac_configure_args0=; unset ac_configure_args0;} 1832{ ac_configure_args1=; unset ac_configure_args1;} 1833 1834# When interrupted or exit'd, cleanup temporary files, and complete 1835# config.log. We remove comments because anyway the quotes in there 1836# would cause problems or look ugly. 1837# WARNING: Use '\'' to represent an apostrophe within the trap. 1838# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1839trap 'exit_status=$? 1840 # Save into config.log some information that might help in debugging. 1841 { 1842 echo 1843 1844 $as_echo "## ---------------- ## 1845## Cache variables. ## 1846## ---------------- ##" 1847 echo 1848 # The following way of writing the cache mishandles newlines in values, 1849( 1850 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1851 eval ac_val=\$$ac_var 1852 case $ac_val in #( 1853 *${as_nl}*) 1854 case $ac_var in #( 1855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1856$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1857 esac 1858 case $ac_var in #( 1859 _ | IFS | as_nl) ;; #( 1860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1861 *) { eval $ac_var=; unset $ac_var;} ;; 1862 esac ;; 1863 esac 1864 done 1865 (set) 2>&1 | 1866 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1867 *${as_nl}ac_space=\ *) 1868 sed -n \ 1869 "s/'\''/'\''\\\\'\'''\''/g; 1870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1871 ;; #( 1872 *) 1873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1874 ;; 1875 esac | 1876 sort 1877) 1878 echo 1879 1880 $as_echo "## ----------------- ## 1881## Output variables. ## 1882## ----------------- ##" 1883 echo 1884 for ac_var in $ac_subst_vars 1885 do 1886 eval ac_val=\$$ac_var 1887 case $ac_val in 1888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1889 esac 1890 $as_echo "$ac_var='\''$ac_val'\''" 1891 done | sort 1892 echo 1893 1894 if test -n "$ac_subst_files"; then 1895 $as_echo "## ------------------- ## 1896## File substitutions. ## 1897## ------------------- ##" 1898 echo 1899 for ac_var in $ac_subst_files 1900 do 1901 eval ac_val=\$$ac_var 1902 case $ac_val in 1903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1904 esac 1905 $as_echo "$ac_var='\''$ac_val'\''" 1906 done | sort 1907 echo 1908 fi 1909 1910 if test -s confdefs.h; then 1911 $as_echo "## ----------- ## 1912## confdefs.h. ## 1913## ----------- ##" 1914 echo 1915 cat confdefs.h 1916 echo 1917 fi 1918 test "$ac_signal" != 0 && 1919 $as_echo "$as_me: caught signal $ac_signal" 1920 $as_echo "$as_me: exit $exit_status" 1921 } >&5 1922 rm -f core *.core core.conftest.* && 1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1924 exit $exit_status 1925' 0 1926for ac_signal in 1 2 13 15; do 1927 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1928done 1929ac_signal=0 1930 1931# confdefs.h avoids OS command line length limits that DEFS can exceed. 1932rm -f -r conftest* confdefs.h 1933 1934$as_echo "/* confdefs.h */" > confdefs.h 1935 1936# Predefined preprocessor variables. 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_NAME "$PACKAGE_NAME" 1940_ACEOF 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1944_ACEOF 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_VERSION "$PACKAGE_VERSION" 1948_ACEOF 1949 1950cat >>confdefs.h <<_ACEOF 1951#define PACKAGE_STRING "$PACKAGE_STRING" 1952_ACEOF 1953 1954cat >>confdefs.h <<_ACEOF 1955#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1956_ACEOF 1957 1958cat >>confdefs.h <<_ACEOF 1959#define PACKAGE_URL "$PACKAGE_URL" 1960_ACEOF 1961 1962 1963# Let the site file select an alternate cache file if it wants to. 1964# Prefer an explicitly selected file to automatically selected ones. 1965ac_site_file1=NONE 1966ac_site_file2=NONE 1967if test -n "$CONFIG_SITE"; then 1968 # We do not want a PATH search for config.site. 1969 case $CONFIG_SITE in #(( 1970 -*) ac_site_file1=./$CONFIG_SITE;; 1971 */*) ac_site_file1=$CONFIG_SITE;; 1972 *) ac_site_file1=./$CONFIG_SITE;; 1973 esac 1974elif test "x$prefix" != xNONE; then 1975 ac_site_file1=$prefix/share/config.site 1976 ac_site_file2=$prefix/etc/config.site 1977else 1978 ac_site_file1=$ac_default_prefix/share/config.site 1979 ac_site_file2=$ac_default_prefix/etc/config.site 1980fi 1981for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1982do 1983 test "x$ac_site_file" = xNONE && continue 1984 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1986$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1987 sed 's/^/| /' "$ac_site_file" >&5 1988 . "$ac_site_file" \ 1989 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1991as_fn_error $? "failed to load site script $ac_site_file 1992See \`config.log' for more details" "$LINENO" 5; } 1993 fi 1994done 1995 1996if test -r "$cache_file"; then 1997 # Some versions of bash will fail to source /dev/null (special files 1998 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1999 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2001$as_echo "$as_me: loading cache $cache_file" >&6;} 2002 case $cache_file in 2003 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2004 *) . "./$cache_file";; 2005 esac 2006 fi 2007else 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2009$as_echo "$as_me: creating cache $cache_file" >&6;} 2010 >$cache_file 2011fi 2012 2013# Check that the precious variables saved in the cache have kept the same 2014# value. 2015ac_cache_corrupted=false 2016for ac_var in $ac_precious_vars; do 2017 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2018 eval ac_new_set=\$ac_env_${ac_var}_set 2019 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2020 eval ac_new_val=\$ac_env_${ac_var}_value 2021 case $ac_old_set,$ac_new_set in 2022 set,) 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2024$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2025 ac_cache_corrupted=: ;; 2026 ,set) 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2028$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2029 ac_cache_corrupted=: ;; 2030 ,);; 2031 *) 2032 if test "x$ac_old_val" != "x$ac_new_val"; then 2033 # differences in whitespace do not lead to failure. 2034 ac_old_val_w=`echo x $ac_old_val` 2035 ac_new_val_w=`echo x $ac_new_val` 2036 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2038$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2039 ac_cache_corrupted=: 2040 else 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2042$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2043 eval $ac_var=\$ac_old_val 2044 fi 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2046$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2048$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2049 fi;; 2050 esac 2051 # Pass precious variables to config.status. 2052 if test "$ac_new_set" = set; then 2053 case $ac_new_val in 2054 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2055 *) ac_arg=$ac_var=$ac_new_val ;; 2056 esac 2057 case " $ac_configure_args " in 2058 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2059 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2060 esac 2061 fi 2062done 2063if $ac_cache_corrupted; then 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2067$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2068 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2069fi 2070## -------------------- ## 2071## Main body of script. ## 2072## -------------------- ## 2073 2074ac_ext=c 2075ac_cpp='$CPP $CPPFLAGS' 2076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2078ac_compiler_gnu=$ac_cv_c_compiler_gnu 2079 2080 2081am__api_version='1.11' 2082 2083ac_aux_dir= 2084for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2085 if test -f "$ac_dir/install-sh"; then 2086 ac_aux_dir=$ac_dir 2087 ac_install_sh="$ac_aux_dir/install-sh -c" 2088 break 2089 elif test -f "$ac_dir/install.sh"; then 2090 ac_aux_dir=$ac_dir 2091 ac_install_sh="$ac_aux_dir/install.sh -c" 2092 break 2093 elif test -f "$ac_dir/shtool"; then 2094 ac_aux_dir=$ac_dir 2095 ac_install_sh="$ac_aux_dir/shtool install -c" 2096 break 2097 fi 2098done 2099if test -z "$ac_aux_dir"; then 2100 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2101fi 2102 2103# These three variables are undocumented and unsupported, 2104# and are intended to be withdrawn in a future Autoconf release. 2105# They can cause serious problems if a builder's source tree is in a directory 2106# whose full name contains unusual characters. 2107ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2108ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2109ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2110 2111 2112# Find a good install program. We prefer a C program (faster), 2113# so one script is as good as another. But avoid the broken or 2114# incompatible versions: 2115# SysV /etc/install, /usr/sbin/install 2116# SunOS /usr/etc/install 2117# IRIX /sbin/install 2118# AIX /bin/install 2119# AmigaOS /C/install, which installs bootblocks on floppy discs 2120# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2121# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2122# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2123# OS/2's system install, which has a completely different semantic 2124# ./install, which can be erroneously created by make from ./install.sh. 2125# Reject install programs that cannot install multiple files. 2126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2127$as_echo_n "checking for a BSD-compatible install... " >&6; } 2128if test -z "$INSTALL"; then 2129if ${ac_cv_path_install+:} false; then : 2130 $as_echo_n "(cached) " >&6 2131else 2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2133for as_dir in $PATH 2134do 2135 IFS=$as_save_IFS 2136 test -z "$as_dir" && as_dir=. 2137 # Account for people who put trailing slashes in PATH elements. 2138case $as_dir/ in #(( 2139 ./ | .// | /[cC]/* | \ 2140 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2141 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2142 /usr/ucb/* ) ;; 2143 *) 2144 # OSF1 and SCO ODT 3.0 have their own names for install. 2145 # Don't use installbsd from OSF since it installs stuff as root 2146 # by default. 2147 for ac_prog in ginstall scoinst install; do 2148 for ac_exec_ext in '' $ac_executable_extensions; do 2149 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2150 if test $ac_prog = install && 2151 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2152 # AIX install. It has an incompatible calling convention. 2153 : 2154 elif test $ac_prog = install && 2155 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2156 # program-specific install script used by HP pwplus--don't use. 2157 : 2158 else 2159 rm -rf conftest.one conftest.two conftest.dir 2160 echo one > conftest.one 2161 echo two > conftest.two 2162 mkdir conftest.dir 2163 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2164 test -s conftest.one && test -s conftest.two && 2165 test -s conftest.dir/conftest.one && 2166 test -s conftest.dir/conftest.two 2167 then 2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2169 break 3 2170 fi 2171 fi 2172 fi 2173 done 2174 done 2175 ;; 2176esac 2177 2178 done 2179IFS=$as_save_IFS 2180 2181rm -rf conftest.one conftest.two conftest.dir 2182 2183fi 2184 if test "${ac_cv_path_install+set}" = set; then 2185 INSTALL=$ac_cv_path_install 2186 else 2187 # As a last resort, use the slow shell script. Don't cache a 2188 # value for INSTALL within a source directory, because that will 2189 # break other packages using the cache if that directory is 2190 # removed, or if the value is a relative name. 2191 INSTALL=$ac_install_sh 2192 fi 2193fi 2194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2195$as_echo "$INSTALL" >&6; } 2196 2197# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2198# It thinks the first close brace ends the variable substitution. 2199test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2200 2201test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2202 2203test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2204 2205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2206$as_echo_n "checking whether build environment is sane... " >&6; } 2207# Just in case 2208sleep 1 2209echo timestamp > conftest.file 2210# Reject unsafe characters in $srcdir or the absolute working directory 2211# name. Accept space and tab only in the latter. 2212am_lf=' 2213' 2214case `pwd` in 2215 *[\\\"\#\$\&\'\`$am_lf]*) 2216 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2217esac 2218case $srcdir in 2219 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2220 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2221esac 2222 2223# Do `set' in a subshell so we don't clobber the current shell's 2224# arguments. Must try -L first in case configure is actually a 2225# symlink; some systems play weird games with the mod time of symlinks 2226# (eg FreeBSD returns the mod time of the symlink's containing 2227# directory). 2228if ( 2229 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2230 if test "$*" = "X"; then 2231 # -L didn't work. 2232 set X `ls -t "$srcdir/configure" conftest.file` 2233 fi 2234 rm -f conftest.file 2235 if test "$*" != "X $srcdir/configure conftest.file" \ 2236 && test "$*" != "X conftest.file $srcdir/configure"; then 2237 2238 # If neither matched, then we have a broken ls. This can happen 2239 # if, for instance, CONFIG_SHELL is bash and it inherits a 2240 # broken ls alias from the environment. This has actually 2241 # happened. Such a system could not be considered "sane". 2242 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2243alias in your environment" "$LINENO" 5 2244 fi 2245 2246 test "$2" = conftest.file 2247 ) 2248then 2249 # Ok. 2250 : 2251else 2252 as_fn_error $? "newly created file is older than distributed files! 2253Check your system clock" "$LINENO" 5 2254fi 2255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2256$as_echo "yes" >&6; } 2257test "$program_prefix" != NONE && 2258 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2259# Use a double $ so make ignores it. 2260test "$program_suffix" != NONE && 2261 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2262# Double any \ or $. 2263# By default was `s,x,x', remove it if useless. 2264ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2265program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2266 2267# expand $ac_aux_dir to an absolute path 2268am_aux_dir=`cd $ac_aux_dir && pwd` 2269 2270if test x"${MISSING+set}" != xset; then 2271 case $am_aux_dir in 2272 *\ * | *\ *) 2273 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2274 *) 2275 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2276 esac 2277fi 2278# Use eval to expand $SHELL 2279if eval "$MISSING --run true"; then 2280 am_missing_run="$MISSING --run " 2281else 2282 am_missing_run= 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2284$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2285fi 2286 2287if test x"${install_sh}" != xset; then 2288 case $am_aux_dir in 2289 *\ * | *\ *) 2290 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2291 *) 2292 install_sh="\${SHELL} $am_aux_dir/install-sh" 2293 esac 2294fi 2295 2296# Installed binaries are usually stripped using `strip' when the user 2297# run `make install-strip'. However `strip' might not be the right 2298# tool to use in cross-compilation environments, therefore Automake 2299# will honor the `STRIP' environment variable to overrule this program. 2300if test "$cross_compiling" != no; then 2301 if test -n "$ac_tool_prefix"; then 2302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2303set dummy ${ac_tool_prefix}strip; ac_word=$2 2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2305$as_echo_n "checking for $ac_word... " >&6; } 2306if ${ac_cv_prog_STRIP+:} false; then : 2307 $as_echo_n "(cached) " >&6 2308else 2309 if test -n "$STRIP"; then 2310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2311else 2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2313for as_dir in $PATH 2314do 2315 IFS=$as_save_IFS 2316 test -z "$as_dir" && as_dir=. 2317 for ac_exec_ext in '' $ac_executable_extensions; do 2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2319 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2321 break 2 2322 fi 2323done 2324 done 2325IFS=$as_save_IFS 2326 2327fi 2328fi 2329STRIP=$ac_cv_prog_STRIP 2330if test -n "$STRIP"; then 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2332$as_echo "$STRIP" >&6; } 2333else 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2335$as_echo "no" >&6; } 2336fi 2337 2338 2339fi 2340if test -z "$ac_cv_prog_STRIP"; then 2341 ac_ct_STRIP=$STRIP 2342 # Extract the first word of "strip", so it can be a program name with args. 2343set dummy strip; ac_word=$2 2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2345$as_echo_n "checking for $ac_word... " >&6; } 2346if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2347 $as_echo_n "(cached) " >&6 2348else 2349 if test -n "$ac_ct_STRIP"; then 2350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2351else 2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353for as_dir in $PATH 2354do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 for ac_exec_ext in '' $ac_executable_extensions; do 2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2359 ac_cv_prog_ac_ct_STRIP="strip" 2360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2361 break 2 2362 fi 2363done 2364 done 2365IFS=$as_save_IFS 2366 2367fi 2368fi 2369ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2370if test -n "$ac_ct_STRIP"; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2372$as_echo "$ac_ct_STRIP" >&6; } 2373else 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2375$as_echo "no" >&6; } 2376fi 2377 2378 if test "x$ac_ct_STRIP" = x; then 2379 STRIP=":" 2380 else 2381 case $cross_compiling:$ac_tool_warned in 2382yes:) 2383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2385ac_tool_warned=yes ;; 2386esac 2387 STRIP=$ac_ct_STRIP 2388 fi 2389else 2390 STRIP="$ac_cv_prog_STRIP" 2391fi 2392 2393fi 2394INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2395 2396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2397$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2398if test -z "$MKDIR_P"; then 2399 if ${ac_cv_path_mkdir+:} false; then : 2400 $as_echo_n "(cached) " >&6 2401else 2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2404do 2405 IFS=$as_save_IFS 2406 test -z "$as_dir" && as_dir=. 2407 for ac_prog in mkdir gmkdir; do 2408 for ac_exec_ext in '' $ac_executable_extensions; do 2409 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2410 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2411 'mkdir (GNU coreutils) '* | \ 2412 'mkdir (coreutils) '* | \ 2413 'mkdir (fileutils) '4.1*) 2414 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2415 break 3;; 2416 esac 2417 done 2418 done 2419 done 2420IFS=$as_save_IFS 2421 2422fi 2423 2424 test -d ./--version && rmdir ./--version 2425 if test "${ac_cv_path_mkdir+set}" = set; then 2426 MKDIR_P="$ac_cv_path_mkdir -p" 2427 else 2428 # As a last resort, use the slow shell script. Don't cache a 2429 # value for MKDIR_P within a source directory, because that will 2430 # break other packages using the cache if that directory is 2431 # removed, or if the value is a relative name. 2432 MKDIR_P="$ac_install_sh -d" 2433 fi 2434fi 2435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2436$as_echo "$MKDIR_P" >&6; } 2437 2438mkdir_p="$MKDIR_P" 2439case $mkdir_p in 2440 [\\/$]* | ?:[\\/]*) ;; 2441 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2442esac 2443 2444for ac_prog in gawk mawk nawk awk 2445do 2446 # Extract the first word of "$ac_prog", so it can be a program name with args. 2447set dummy $ac_prog; ac_word=$2 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2449$as_echo_n "checking for $ac_word... " >&6; } 2450if ${ac_cv_prog_AWK+:} false; then : 2451 $as_echo_n "(cached) " >&6 2452else 2453 if test -n "$AWK"; then 2454 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2455else 2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457for as_dir in $PATH 2458do 2459 IFS=$as_save_IFS 2460 test -z "$as_dir" && as_dir=. 2461 for ac_exec_ext in '' $ac_executable_extensions; do 2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2463 ac_cv_prog_AWK="$ac_prog" 2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2465 break 2 2466 fi 2467done 2468 done 2469IFS=$as_save_IFS 2470 2471fi 2472fi 2473AWK=$ac_cv_prog_AWK 2474if test -n "$AWK"; then 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2476$as_echo "$AWK" >&6; } 2477else 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2479$as_echo "no" >&6; } 2480fi 2481 2482 2483 test -n "$AWK" && break 2484done 2485 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2487$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2488set x ${MAKE-make} 2489ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2490if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2491 $as_echo_n "(cached) " >&6 2492else 2493 cat >conftest.make <<\_ACEOF 2494SHELL = /bin/sh 2495all: 2496 @echo '@@@%%%=$(MAKE)=@@@%%%' 2497_ACEOF 2498# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2499case `${MAKE-make} -f conftest.make 2>/dev/null` in 2500 *@@@%%%=?*=@@@%%%*) 2501 eval ac_cv_prog_make_${ac_make}_set=yes;; 2502 *) 2503 eval ac_cv_prog_make_${ac_make}_set=no;; 2504esac 2505rm -f conftest.make 2506fi 2507if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2509$as_echo "yes" >&6; } 2510 SET_MAKE= 2511else 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2513$as_echo "no" >&6; } 2514 SET_MAKE="MAKE=${MAKE-make}" 2515fi 2516 2517rm -rf .tst 2>/dev/null 2518mkdir .tst 2>/dev/null 2519if test -d .tst; then 2520 am__leading_dot=. 2521else 2522 am__leading_dot=_ 2523fi 2524rmdir .tst 2>/dev/null 2525 2526if test "`cd $srcdir && pwd`" != "`pwd`"; then 2527 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2528 # is not polluted with repeated "-I." 2529 am__isrc=' -I$(srcdir)' 2530 # test to see if srcdir already configured 2531 if test -f $srcdir/config.status; then 2532 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2533 fi 2534fi 2535 2536# test whether we have cygpath 2537if test -z "$CYGPATH_W"; then 2538 if (cygpath --version) >/dev/null 2>/dev/null; then 2539 CYGPATH_W='cygpath -w' 2540 else 2541 CYGPATH_W=echo 2542 fi 2543fi 2544 2545 2546# Define the identity of the package. 2547 PACKAGE='bdftopcf' 2548 VERSION='1.0.4' 2549 2550 2551cat >>confdefs.h <<_ACEOF 2552#define PACKAGE "$PACKAGE" 2553_ACEOF 2554 2555 2556cat >>confdefs.h <<_ACEOF 2557#define VERSION "$VERSION" 2558_ACEOF 2559 2560# Some tools Automake needs. 2561 2562ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2563 2564 2565AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2566 2567 2568AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2569 2570 2571AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2572 2573 2574MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2575 2576# We need awk for the "check" target. The system "awk" is bad on 2577# some platforms. 2578# Always define AMTAR for backward compatibility. 2579 2580AMTAR=${AMTAR-"${am_missing_run}tar"} 2581 2582am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2583 2584 2585 2586 2587 2588 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2590$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2591 # Check whether --enable-maintainer-mode was given. 2592if test "${enable_maintainer_mode+set}" = set; then : 2593 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2594else 2595 USE_MAINTAINER_MODE=no 2596fi 2597 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2599$as_echo "$USE_MAINTAINER_MODE" >&6; } 2600 if test $USE_MAINTAINER_MODE = yes; then 2601 MAINTAINER_MODE_TRUE= 2602 MAINTAINER_MODE_FALSE='#' 2603else 2604 MAINTAINER_MODE_TRUE='#' 2605 MAINTAINER_MODE_FALSE= 2606fi 2607 2608 MAINT=$MAINTAINER_MODE_TRUE 2609 2610 2611 2612ac_config_headers="$ac_config_headers config.h" 2613 2614 2615# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627DEPDIR="${am__leading_dot}deps" 2628 2629ac_config_commands="$ac_config_commands depfiles" 2630 2631 2632am_make=${MAKE-make} 2633cat > confinc << 'END' 2634am__doit: 2635 @echo this is the am__doit target 2636.PHONY: am__doit 2637END 2638# If we don't find an include directive, just comment out the code. 2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2640$as_echo_n "checking for style of include used by $am_make... " >&6; } 2641am__include="#" 2642am__quote= 2643_am_result=none 2644# First try GNU make style include. 2645echo "include confinc" > confmf 2646# Ignore all kinds of additional output from `make'. 2647case `$am_make -s -f confmf 2> /dev/null` in #( 2648*the\ am__doit\ target*) 2649 am__include=include 2650 am__quote= 2651 _am_result=GNU 2652 ;; 2653esac 2654# Now try BSD make style include. 2655if test "$am__include" = "#"; then 2656 echo '.include "confinc"' > confmf 2657 case `$am_make -s -f confmf 2> /dev/null` in #( 2658 *the\ am__doit\ target*) 2659 am__include=.include 2660 am__quote="\"" 2661 _am_result=BSD 2662 ;; 2663 esac 2664fi 2665 2666 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2668$as_echo "$_am_result" >&6; } 2669rm -f confinc confmf 2670 2671# Check whether --enable-dependency-tracking was given. 2672if test "${enable_dependency_tracking+set}" = set; then : 2673 enableval=$enable_dependency_tracking; 2674fi 2675 2676if test "x$enable_dependency_tracking" != xno; then 2677 am_depcomp="$ac_aux_dir/depcomp" 2678 AMDEPBACKSLASH='\' 2679 am__nodep='_no' 2680fi 2681 if test "x$enable_dependency_tracking" != xno; then 2682 AMDEP_TRUE= 2683 AMDEP_FALSE='#' 2684else 2685 AMDEP_TRUE='#' 2686 AMDEP_FALSE= 2687fi 2688 2689 2690ac_ext=c 2691ac_cpp='$CPP $CPPFLAGS' 2692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2694ac_compiler_gnu=$ac_cv_c_compiler_gnu 2695if test -n "$ac_tool_prefix"; then 2696 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2697set dummy ${ac_tool_prefix}gcc; ac_word=$2 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2699$as_echo_n "checking for $ac_word... " >&6; } 2700if ${ac_cv_prog_CC+:} false; then : 2701 $as_echo_n "(cached) " >&6 2702else 2703 if test -n "$CC"; then 2704 ac_cv_prog_CC="$CC" # Let the user override the test. 2705else 2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2707for as_dir in $PATH 2708do 2709 IFS=$as_save_IFS 2710 test -z "$as_dir" && as_dir=. 2711 for ac_exec_ext in '' $ac_executable_extensions; do 2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2713 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2715 break 2 2716 fi 2717done 2718 done 2719IFS=$as_save_IFS 2720 2721fi 2722fi 2723CC=$ac_cv_prog_CC 2724if test -n "$CC"; then 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2726$as_echo "$CC" >&6; } 2727else 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2729$as_echo "no" >&6; } 2730fi 2731 2732 2733fi 2734if test -z "$ac_cv_prog_CC"; then 2735 ac_ct_CC=$CC 2736 # Extract the first word of "gcc", so it can be a program name with args. 2737set dummy gcc; ac_word=$2 2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2739$as_echo_n "checking for $ac_word... " >&6; } 2740if ${ac_cv_prog_ac_ct_CC+:} false; then : 2741 $as_echo_n "(cached) " >&6 2742else 2743 if test -n "$ac_ct_CC"; then 2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2745else 2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH 2748do 2749 IFS=$as_save_IFS 2750 test -z "$as_dir" && as_dir=. 2751 for ac_exec_ext in '' $ac_executable_extensions; do 2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2753 ac_cv_prog_ac_ct_CC="gcc" 2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2755 break 2 2756 fi 2757done 2758 done 2759IFS=$as_save_IFS 2760 2761fi 2762fi 2763ac_ct_CC=$ac_cv_prog_ac_ct_CC 2764if test -n "$ac_ct_CC"; then 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2766$as_echo "$ac_ct_CC" >&6; } 2767else 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2769$as_echo "no" >&6; } 2770fi 2771 2772 if test "x$ac_ct_CC" = x; then 2773 CC="" 2774 else 2775 case $cross_compiling:$ac_tool_warned in 2776yes:) 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2779ac_tool_warned=yes ;; 2780esac 2781 CC=$ac_ct_CC 2782 fi 2783else 2784 CC="$ac_cv_prog_CC" 2785fi 2786 2787if test -z "$CC"; then 2788 if test -n "$ac_tool_prefix"; then 2789 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2790set dummy ${ac_tool_prefix}cc; ac_word=$2 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2792$as_echo_n "checking for $ac_word... " >&6; } 2793if ${ac_cv_prog_CC+:} false; then : 2794 $as_echo_n "(cached) " >&6 2795else 2796 if test -n "$CC"; then 2797 ac_cv_prog_CC="$CC" # Let the user override the test. 2798else 2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2800for as_dir in $PATH 2801do 2802 IFS=$as_save_IFS 2803 test -z "$as_dir" && as_dir=. 2804 for ac_exec_ext in '' $ac_executable_extensions; do 2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2806 ac_cv_prog_CC="${ac_tool_prefix}cc" 2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2808 break 2 2809 fi 2810done 2811 done 2812IFS=$as_save_IFS 2813 2814fi 2815fi 2816CC=$ac_cv_prog_CC 2817if test -n "$CC"; then 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2819$as_echo "$CC" >&6; } 2820else 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2822$as_echo "no" >&6; } 2823fi 2824 2825 2826 fi 2827fi 2828if test -z "$CC"; then 2829 # Extract the first word of "cc", so it can be a program name with args. 2830set dummy cc; ac_word=$2 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2832$as_echo_n "checking for $ac_word... " >&6; } 2833if ${ac_cv_prog_CC+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 if test -n "$CC"; then 2837 ac_cv_prog_CC="$CC" # Let the user override the test. 2838else 2839 ac_prog_rejected=no 2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2841for as_dir in $PATH 2842do 2843 IFS=$as_save_IFS 2844 test -z "$as_dir" && as_dir=. 2845 for ac_exec_ext in '' $ac_executable_extensions; do 2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2847 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2848 ac_prog_rejected=yes 2849 continue 2850 fi 2851 ac_cv_prog_CC="cc" 2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2853 break 2 2854 fi 2855done 2856 done 2857IFS=$as_save_IFS 2858 2859if test $ac_prog_rejected = yes; then 2860 # We found a bogon in the path, so make sure we never use it. 2861 set dummy $ac_cv_prog_CC 2862 shift 2863 if test $# != 0; then 2864 # We chose a different compiler from the bogus one. 2865 # However, it has the same basename, so the bogon will be chosen 2866 # first if we set CC to just the basename; use the full file name. 2867 shift 2868 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2869 fi 2870fi 2871fi 2872fi 2873CC=$ac_cv_prog_CC 2874if test -n "$CC"; then 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2876$as_echo "$CC" >&6; } 2877else 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879$as_echo "no" >&6; } 2880fi 2881 2882 2883fi 2884if test -z "$CC"; then 2885 if test -n "$ac_tool_prefix"; then 2886 for ac_prog in cl.exe 2887 do 2888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2889set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2891$as_echo_n "checking for $ac_word... " >&6; } 2892if ${ac_cv_prog_CC+:} false; then : 2893 $as_echo_n "(cached) " >&6 2894else 2895 if test -n "$CC"; then 2896 ac_cv_prog_CC="$CC" # Let the user override the test. 2897else 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2905 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 break 2 2908 fi 2909done 2910 done 2911IFS=$as_save_IFS 2912 2913fi 2914fi 2915CC=$ac_cv_prog_CC 2916if test -n "$CC"; then 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2918$as_echo "$CC" >&6; } 2919else 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2921$as_echo "no" >&6; } 2922fi 2923 2924 2925 test -n "$CC" && break 2926 done 2927fi 2928if test -z "$CC"; then 2929 ac_ct_CC=$CC 2930 for ac_prog in cl.exe 2931do 2932 # Extract the first word of "$ac_prog", so it can be a program name with args. 2933set dummy $ac_prog; ac_word=$2 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2935$as_echo_n "checking for $ac_word... " >&6; } 2936if ${ac_cv_prog_ac_ct_CC+:} false; then : 2937 $as_echo_n "(cached) " >&6 2938else 2939 if test -n "$ac_ct_CC"; then 2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2941else 2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2943for as_dir in $PATH 2944do 2945 IFS=$as_save_IFS 2946 test -z "$as_dir" && as_dir=. 2947 for ac_exec_ext in '' $ac_executable_extensions; do 2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2949 ac_cv_prog_ac_ct_CC="$ac_prog" 2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2951 break 2 2952 fi 2953done 2954 done 2955IFS=$as_save_IFS 2956 2957fi 2958fi 2959ac_ct_CC=$ac_cv_prog_ac_ct_CC 2960if test -n "$ac_ct_CC"; then 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2962$as_echo "$ac_ct_CC" >&6; } 2963else 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965$as_echo "no" >&6; } 2966fi 2967 2968 2969 test -n "$ac_ct_CC" && break 2970done 2971 2972 if test "x$ac_ct_CC" = x; then 2973 CC="" 2974 else 2975 case $cross_compiling:$ac_tool_warned in 2976yes:) 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2979ac_tool_warned=yes ;; 2980esac 2981 CC=$ac_ct_CC 2982 fi 2983fi 2984 2985fi 2986 2987 2988test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2990as_fn_error $? "no acceptable C compiler found in \$PATH 2991See \`config.log' for more details" "$LINENO" 5; } 2992 2993# Provide some information about the compiler. 2994$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2995set X $ac_compile 2996ac_compiler=$2 2997for ac_option in --version -v -V -qversion; do 2998 { { ac_try="$ac_compiler $ac_option >&5" 2999case "(($ac_try" in 3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3001 *) ac_try_echo=$ac_try;; 3002esac 3003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3004$as_echo "$ac_try_echo"; } >&5 3005 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3006 ac_status=$? 3007 if test -s conftest.err; then 3008 sed '10a\ 3009... rest of stderr output deleted ... 3010 10q' conftest.err >conftest.er1 3011 cat conftest.er1 >&5 3012 fi 3013 rm -f conftest.er1 conftest.err 3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3015 test $ac_status = 0; } 3016done 3017 3018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3019/* end confdefs.h. */ 3020 3021int 3022main () 3023{ 3024 3025 ; 3026 return 0; 3027} 3028_ACEOF 3029ac_clean_files_save=$ac_clean_files 3030ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3031# Try to create an executable without -o first, disregard a.out. 3032# It will help us diagnose broken compilers, and finding out an intuition 3033# of exeext. 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3035$as_echo_n "checking whether the C compiler works... " >&6; } 3036ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3037 3038# The possible output files: 3039ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3040 3041ac_rmfiles= 3042for ac_file in $ac_files 3043do 3044 case $ac_file in 3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3046 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3047 esac 3048done 3049rm -f $ac_rmfiles 3050 3051if { { ac_try="$ac_link_default" 3052case "(($ac_try" in 3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3054 *) ac_try_echo=$ac_try;; 3055esac 3056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3057$as_echo "$ac_try_echo"; } >&5 3058 (eval "$ac_link_default") 2>&5 3059 ac_status=$? 3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3061 test $ac_status = 0; }; then : 3062 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3063# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3064# in a Makefile. We should not override ac_cv_exeext if it was cached, 3065# so that the user can short-circuit this test for compilers unknown to 3066# Autoconf. 3067for ac_file in $ac_files '' 3068do 3069 test -f "$ac_file" || continue 3070 case $ac_file in 3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3072 ;; 3073 [ab].out ) 3074 # We found the default executable, but exeext='' is most 3075 # certainly right. 3076 break;; 3077 *.* ) 3078 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3079 then :; else 3080 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3081 fi 3082 # We set ac_cv_exeext here because the later test for it is not 3083 # safe: cross compilers may not add the suffix if given an `-o' 3084 # argument, so we may need to know it at that point already. 3085 # Even if this section looks crufty: it has the advantage of 3086 # actually working. 3087 break;; 3088 * ) 3089 break;; 3090 esac 3091done 3092test "$ac_cv_exeext" = no && ac_cv_exeext= 3093 3094else 3095 ac_file='' 3096fi 3097if test -z "$ac_file"; then : 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3099$as_echo "no" >&6; } 3100$as_echo "$as_me: failed program was:" >&5 3101sed 's/^/| /' conftest.$ac_ext >&5 3102 3103{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3105as_fn_error 77 "C compiler cannot create executables 3106See \`config.log' for more details" "$LINENO" 5; } 3107else 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3109$as_echo "yes" >&6; } 3110fi 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3112$as_echo_n "checking for C compiler default output file name... " >&6; } 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3114$as_echo "$ac_file" >&6; } 3115ac_exeext=$ac_cv_exeext 3116 3117rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3118ac_clean_files=$ac_clean_files_save 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3120$as_echo_n "checking for suffix of executables... " >&6; } 3121if { { ac_try="$ac_link" 3122case "(($ac_try" in 3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3124 *) ac_try_echo=$ac_try;; 3125esac 3126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3127$as_echo "$ac_try_echo"; } >&5 3128 (eval "$ac_link") 2>&5 3129 ac_status=$? 3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3131 test $ac_status = 0; }; then : 3132 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3133# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3134# work properly (i.e., refer to `conftest.exe'), while it won't with 3135# `rm'. 3136for ac_file in conftest.exe conftest conftest.*; do 3137 test -f "$ac_file" || continue 3138 case $ac_file in 3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3140 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3141 break;; 3142 * ) break;; 3143 esac 3144done 3145else 3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3148as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3149See \`config.log' for more details" "$LINENO" 5; } 3150fi 3151rm -f conftest conftest$ac_cv_exeext 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3153$as_echo "$ac_cv_exeext" >&6; } 3154 3155rm -f conftest.$ac_ext 3156EXEEXT=$ac_cv_exeext 3157ac_exeext=$EXEEXT 3158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3159/* end confdefs.h. */ 3160#include <stdio.h> 3161int 3162main () 3163{ 3164FILE *f = fopen ("conftest.out", "w"); 3165 return ferror (f) || fclose (f) != 0; 3166 3167 ; 3168 return 0; 3169} 3170_ACEOF 3171ac_clean_files="$ac_clean_files conftest.out" 3172# Check that the compiler produces executables we can run. If not, either 3173# the compiler is broken, or we cross compile. 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3175$as_echo_n "checking whether we are cross compiling... " >&6; } 3176if test "$cross_compiling" != yes; then 3177 { { ac_try="$ac_link" 3178case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181esac 3182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3183$as_echo "$ac_try_echo"; } >&5 3184 (eval "$ac_link") 2>&5 3185 ac_status=$? 3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3187 test $ac_status = 0; } 3188 if { ac_try='./conftest$ac_cv_exeext' 3189 { { case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192esac 3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3194$as_echo "$ac_try_echo"; } >&5 3195 (eval "$ac_try") 2>&5 3196 ac_status=$? 3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3198 test $ac_status = 0; }; }; then 3199 cross_compiling=no 3200 else 3201 if test "$cross_compiling" = maybe; then 3202 cross_compiling=yes 3203 else 3204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3206as_fn_error $? "cannot run C compiled programs. 3207If you meant to cross compile, use \`--host'. 3208See \`config.log' for more details" "$LINENO" 5; } 3209 fi 3210 fi 3211fi 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3213$as_echo "$cross_compiling" >&6; } 3214 3215rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3216ac_clean_files=$ac_clean_files_save 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3218$as_echo_n "checking for suffix of object files... " >&6; } 3219if ${ac_cv_objext+:} false; then : 3220 $as_echo_n "(cached) " >&6 3221else 3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3223/* end confdefs.h. */ 3224 3225int 3226main () 3227{ 3228 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233rm -f conftest.o conftest.obj 3234if { { ac_try="$ac_compile" 3235case "(($ac_try" in 3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3237 *) ac_try_echo=$ac_try;; 3238esac 3239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3240$as_echo "$ac_try_echo"; } >&5 3241 (eval "$ac_compile") 2>&5 3242 ac_status=$? 3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3244 test $ac_status = 0; }; then : 3245 for ac_file in conftest.o conftest.obj conftest.*; do 3246 test -f "$ac_file" || continue; 3247 case $ac_file in 3248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3250 break;; 3251 esac 3252done 3253else 3254 $as_echo "$as_me: failed program was:" >&5 3255sed 's/^/| /' conftest.$ac_ext >&5 3256 3257{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3259as_fn_error $? "cannot compute suffix of object files: cannot compile 3260See \`config.log' for more details" "$LINENO" 5; } 3261fi 3262rm -f conftest.$ac_cv_objext conftest.$ac_ext 3263fi 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3265$as_echo "$ac_cv_objext" >&6; } 3266OBJEXT=$ac_cv_objext 3267ac_objext=$OBJEXT 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3269$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3270if ${ac_cv_c_compiler_gnu+:} false; then : 3271 $as_echo_n "(cached) " >&6 3272else 3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3274/* end confdefs.h. */ 3275 3276int 3277main () 3278{ 3279#ifndef __GNUC__ 3280 choke me 3281#endif 3282 3283 ; 3284 return 0; 3285} 3286_ACEOF 3287if ac_fn_c_try_compile "$LINENO"; then : 3288 ac_compiler_gnu=yes 3289else 3290 ac_compiler_gnu=no 3291fi 3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3293ac_cv_c_compiler_gnu=$ac_compiler_gnu 3294 3295fi 3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3297$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3298if test $ac_compiler_gnu = yes; then 3299 GCC=yes 3300else 3301 GCC= 3302fi 3303ac_test_CFLAGS=${CFLAGS+set} 3304ac_save_CFLAGS=$CFLAGS 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3306$as_echo_n "checking whether $CC accepts -g... " >&6; } 3307if ${ac_cv_prog_cc_g+:} false; then : 3308 $as_echo_n "(cached) " >&6 3309else 3310 ac_save_c_werror_flag=$ac_c_werror_flag 3311 ac_c_werror_flag=yes 3312 ac_cv_prog_cc_g=no 3313 CFLAGS="-g" 3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315/* end confdefs.h. */ 3316 3317int 3318main () 3319{ 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325if ac_fn_c_try_compile "$LINENO"; then : 3326 ac_cv_prog_cc_g=yes 3327else 3328 CFLAGS="" 3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330/* end confdefs.h. */ 3331 3332int 3333main () 3334{ 3335 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340if ac_fn_c_try_compile "$LINENO"; then : 3341 3342else 3343 ac_c_werror_flag=$ac_save_c_werror_flag 3344 CFLAGS="-g" 3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3346/* end confdefs.h. */ 3347 3348int 3349main () 3350{ 3351 3352 ; 3353 return 0; 3354} 3355_ACEOF 3356if ac_fn_c_try_compile "$LINENO"; then : 3357 ac_cv_prog_cc_g=yes 3358fi 3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3360fi 3361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3362fi 3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3364 ac_c_werror_flag=$ac_save_c_werror_flag 3365fi 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3367$as_echo "$ac_cv_prog_cc_g" >&6; } 3368if test "$ac_test_CFLAGS" = set; then 3369 CFLAGS=$ac_save_CFLAGS 3370elif test $ac_cv_prog_cc_g = yes; then 3371 if test "$GCC" = yes; then 3372 CFLAGS="-g -O2" 3373 else 3374 CFLAGS="-g" 3375 fi 3376else 3377 if test "$GCC" = yes; then 3378 CFLAGS="-O2" 3379 else 3380 CFLAGS= 3381 fi 3382fi 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3384$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3385if ${ac_cv_prog_cc_c89+:} false; then : 3386 $as_echo_n "(cached) " >&6 3387else 3388 ac_cv_prog_cc_c89=no 3389ac_save_CC=$CC 3390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3391/* end confdefs.h. */ 3392#include <stdarg.h> 3393#include <stdio.h> 3394#include <sys/types.h> 3395#include <sys/stat.h> 3396/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3397struct buf { int x; }; 3398FILE * (*rcsopen) (struct buf *, struct stat *, int); 3399static char *e (p, i) 3400 char **p; 3401 int i; 3402{ 3403 return p[i]; 3404} 3405static char *f (char * (*g) (char **, int), char **p, ...) 3406{ 3407 char *s; 3408 va_list v; 3409 va_start (v,p); 3410 s = g (p, va_arg (v,int)); 3411 va_end (v); 3412 return s; 3413} 3414 3415/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3416 function prototypes and stuff, but not '\xHH' hex character constants. 3417 These don't provoke an error unfortunately, instead are silently treated 3418 as 'x'. The following induces an error, until -std is added to get 3419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3420 array size at least. It's necessary to write '\x00'==0 to get something 3421 that's true only with -std. */ 3422int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3423 3424/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3425 inside strings and character constants. */ 3426#define FOO(x) 'x' 3427int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3428 3429int test (int i, double x); 3430struct s1 {int (*f) (int a);}; 3431struct s2 {int (*f) (double a);}; 3432int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3433int argc; 3434char **argv; 3435int 3436main () 3437{ 3438return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3439 ; 3440 return 0; 3441} 3442_ACEOF 3443for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3445do 3446 CC="$ac_save_CC $ac_arg" 3447 if ac_fn_c_try_compile "$LINENO"; then : 3448 ac_cv_prog_cc_c89=$ac_arg 3449fi 3450rm -f core conftest.err conftest.$ac_objext 3451 test "x$ac_cv_prog_cc_c89" != "xno" && break 3452done 3453rm -f conftest.$ac_ext 3454CC=$ac_save_CC 3455 3456fi 3457# AC_CACHE_VAL 3458case "x$ac_cv_prog_cc_c89" in 3459 x) 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3461$as_echo "none needed" >&6; } ;; 3462 xno) 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3464$as_echo "unsupported" >&6; } ;; 3465 *) 3466 CC="$CC $ac_cv_prog_cc_c89" 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3468$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3469esac 3470if test "x$ac_cv_prog_cc_c89" != xno; then : 3471 3472fi 3473 3474ac_ext=c 3475ac_cpp='$CPP $CPPFLAGS' 3476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3478ac_compiler_gnu=$ac_cv_c_compiler_gnu 3479 3480depcc="$CC" am_compiler_list= 3481 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3483$as_echo_n "checking dependency style of $depcc... " >&6; } 3484if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3485 $as_echo_n "(cached) " >&6 3486else 3487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3488 # We make a subdir and do the tests there. Otherwise we can end up 3489 # making bogus files that we don't know about and never remove. For 3490 # instance it was reported that on HP-UX the gcc test will end up 3491 # making a dummy file named `D' -- because `-MD' means `put the output 3492 # in D'. 3493 rm -rf conftest.dir 3494 mkdir conftest.dir 3495 # Copy depcomp to subdir because otherwise we won't find it if we're 3496 # using a relative directory. 3497 cp "$am_depcomp" conftest.dir 3498 cd conftest.dir 3499 # We will build objects and dependencies in a subdirectory because 3500 # it helps to detect inapplicable dependency modes. For instance 3501 # both Tru64's cc and ICC support -MD to output dependencies as a 3502 # side effect of compilation, but ICC will put the dependencies in 3503 # the current directory while Tru64 will put them in the object 3504 # directory. 3505 mkdir sub 3506 3507 am_cv_CC_dependencies_compiler_type=none 3508 if test "$am_compiler_list" = ""; then 3509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3510 fi 3511 am__universal=false 3512 case " $depcc " in #( 3513 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3514 esac 3515 3516 for depmode in $am_compiler_list; do 3517 # Setup a source with many dependencies, because some compilers 3518 # like to wrap large dependency lists on column 80 (with \), and 3519 # we should not choose a depcomp mode which is confused by this. 3520 # 3521 # We need to recreate these files for each test, as the compiler may 3522 # overwrite some of them when testing with obscure command lines. 3523 # This happens at least with the AIX C compiler. 3524 : > sub/conftest.c 3525 for i in 1 2 3 4 5 6; do 3526 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3527 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3528 # Solaris 8's {/usr,}/bin/sh. 3529 touch sub/conftst$i.h 3530 done 3531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3532 3533 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3534 # mode. It turns out that the SunPro C++ compiler does not properly 3535 # handle `-M -o', and we need to detect this. Also, some Intel 3536 # versions had trouble with output in subdirs 3537 am__obj=sub/conftest.${OBJEXT-o} 3538 am__minus_obj="-o $am__obj" 3539 case $depmode in 3540 gcc) 3541 # This depmode causes a compiler race in universal mode. 3542 test "$am__universal" = false || continue 3543 ;; 3544 nosideeffect) 3545 # after this tag, mechanisms are not by side-effect, so they'll 3546 # only be used when explicitly requested 3547 if test "x$enable_dependency_tracking" = xyes; then 3548 continue 3549 else 3550 break 3551 fi 3552 ;; 3553 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3554 # This compiler won't grok `-c -o', but also, the minuso test has 3555 # not run yet. These depmodes are late enough in the game, and 3556 # so weak that their functioning should not be impacted. 3557 am__obj=conftest.${OBJEXT-o} 3558 am__minus_obj= 3559 ;; 3560 none) break ;; 3561 esac 3562 if depmode=$depmode \ 3563 source=sub/conftest.c object=$am__obj \ 3564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3566 >/dev/null 2>conftest.err && 3567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3571 # icc doesn't choke on unknown options, it will just issue warnings 3572 # or remarks (even with -Werror). So we grep stderr for any message 3573 # that says an option was ignored or not supported. 3574 # When given -MP, icc 7.0 and 7.1 complain thusly: 3575 # icc: Command line warning: ignoring option '-M'; no argument required 3576 # The diagnosis changed in icc 8.0: 3577 # icc: Command line remark: option '-MP' not supported 3578 if (grep 'ignoring option' conftest.err || 3579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3580 am_cv_CC_dependencies_compiler_type=$depmode 3581 break 3582 fi 3583 fi 3584 done 3585 3586 cd .. 3587 rm -rf conftest.dir 3588else 3589 am_cv_CC_dependencies_compiler_type=none 3590fi 3591 3592fi 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3594$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3595CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3596 3597 if 3598 test "x$enable_dependency_tracking" != xno \ 3599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3600 am__fastdepCC_TRUE= 3601 am__fastdepCC_FALSE='#' 3602else 3603 am__fastdepCC_TRUE='#' 3604 am__fastdepCC_FALSE= 3605fi 3606 3607 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3609$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3610if ${ac_cv_prog_cc_c99+:} false; then : 3611 $as_echo_n "(cached) " >&6 3612else 3613 ac_cv_prog_cc_c99=no 3614ac_save_CC=$CC 3615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3616/* end confdefs.h. */ 3617#include <stdarg.h> 3618#include <stdbool.h> 3619#include <stdlib.h> 3620#include <wchar.h> 3621#include <stdio.h> 3622 3623// Check varargs macros. These examples are taken from C99 6.10.3.5. 3624#define debug(...) fprintf (stderr, __VA_ARGS__) 3625#define showlist(...) puts (#__VA_ARGS__) 3626#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3627static void 3628test_varargs_macros (void) 3629{ 3630 int x = 1234; 3631 int y = 5678; 3632 debug ("Flag"); 3633 debug ("X = %d\n", x); 3634 showlist (The first, second, and third items.); 3635 report (x>y, "x is %d but y is %d", x, y); 3636} 3637 3638// Check long long types. 3639#define BIG64 18446744073709551615ull 3640#define BIG32 4294967295ul 3641#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3642#if !BIG_OK 3643 your preprocessor is broken; 3644#endif 3645#if BIG_OK 3646#else 3647 your preprocessor is broken; 3648#endif 3649static long long int bignum = -9223372036854775807LL; 3650static unsigned long long int ubignum = BIG64; 3651 3652struct incomplete_array 3653{ 3654 int datasize; 3655 double data[]; 3656}; 3657 3658struct named_init { 3659 int number; 3660 const wchar_t *name; 3661 double average; 3662}; 3663 3664typedef const char *ccp; 3665 3666static inline int 3667test_restrict (ccp restrict text) 3668{ 3669 // See if C++-style comments work. 3670 // Iterate through items via the restricted pointer. 3671 // Also check for declarations in for loops. 3672 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3673 continue; 3674 return 0; 3675} 3676 3677// Check varargs and va_copy. 3678static void 3679test_varargs (const char *format, ...) 3680{ 3681 va_list args; 3682 va_start (args, format); 3683 va_list args_copy; 3684 va_copy (args_copy, args); 3685 3686 const char *str; 3687 int number; 3688 float fnumber; 3689 3690 while (*format) 3691 { 3692 switch (*format++) 3693 { 3694 case 's': // string 3695 str = va_arg (args_copy, const char *); 3696 break; 3697 case 'd': // int 3698 number = va_arg (args_copy, int); 3699 break; 3700 case 'f': // float 3701 fnumber = va_arg (args_copy, double); 3702 break; 3703 default: 3704 break; 3705 } 3706 } 3707 va_end (args_copy); 3708 va_end (args); 3709} 3710 3711int 3712main () 3713{ 3714 3715 // Check bool. 3716 _Bool success = false; 3717 3718 // Check restrict. 3719 if (test_restrict ("String literal") == 0) 3720 success = true; 3721 char *restrict newvar = "Another string"; 3722 3723 // Check varargs. 3724 test_varargs ("s, d' f .", "string", 65, 34.234); 3725 test_varargs_macros (); 3726 3727 // Check flexible array members. 3728 struct incomplete_array *ia = 3729 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3730 ia->datasize = 10; 3731 for (int i = 0; i < ia->datasize; ++i) 3732 ia->data[i] = i * 1.234; 3733 3734 // Check named initializers. 3735 struct named_init ni = { 3736 .number = 34, 3737 .name = L"Test wide string", 3738 .average = 543.34343, 3739 }; 3740 3741 ni.number = 58; 3742 3743 int dynamic_array[ni.number]; 3744 dynamic_array[ni.number - 1] = 543; 3745 3746 // work around unused variable warnings 3747 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3748 || dynamic_array[ni.number - 1] != 543); 3749 3750 ; 3751 return 0; 3752} 3753_ACEOF 3754for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3755do 3756 CC="$ac_save_CC $ac_arg" 3757 if ac_fn_c_try_compile "$LINENO"; then : 3758 ac_cv_prog_cc_c99=$ac_arg 3759fi 3760rm -f core conftest.err conftest.$ac_objext 3761 test "x$ac_cv_prog_cc_c99" != "xno" && break 3762done 3763rm -f conftest.$ac_ext 3764CC=$ac_save_CC 3765 3766fi 3767# AC_CACHE_VAL 3768case "x$ac_cv_prog_cc_c99" in 3769 x) 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3771$as_echo "none needed" >&6; } ;; 3772 xno) 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3774$as_echo "unsupported" >&6; } ;; 3775 *) 3776 CC="$CC $ac_cv_prog_cc_c99" 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3778$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3779esac 3780if test "x$ac_cv_prog_cc_c99" != xno; then : 3781 3782fi 3783 3784 3785 3786ac_ext=c 3787ac_cpp='$CPP $CPPFLAGS' 3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3790ac_compiler_gnu=$ac_cv_c_compiler_gnu 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3792$as_echo_n "checking how to run the C preprocessor... " >&6; } 3793# On Suns, sometimes $CPP names a directory. 3794if test -n "$CPP" && test -d "$CPP"; then 3795 CPP= 3796fi 3797if test -z "$CPP"; then 3798 if ${ac_cv_prog_CPP+:} false; then : 3799 $as_echo_n "(cached) " >&6 3800else 3801 # Double quotes because CPP needs to be expanded 3802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3803 do 3804 ac_preproc_ok=false 3805for ac_c_preproc_warn_flag in '' yes 3806do 3807 # Use a header file that comes with gcc, so configuring glibc 3808 # with a fresh cross-compiler works. 3809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3810 # <limits.h> exists even on freestanding compilers. 3811 # On the NeXT, cc -E runs the code through the compiler's parser, 3812 # not just through cpp. "Syntax error" is here to catch this case. 3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3814/* end confdefs.h. */ 3815#ifdef __STDC__ 3816# include <limits.h> 3817#else 3818# include <assert.h> 3819#endif 3820 Syntax error 3821_ACEOF 3822if ac_fn_c_try_cpp "$LINENO"; then : 3823 3824else 3825 # Broken: fails on valid input. 3826continue 3827fi 3828rm -f conftest.err conftest.i conftest.$ac_ext 3829 3830 # OK, works on sane cases. Now check whether nonexistent headers 3831 # can be detected and how. 3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833/* end confdefs.h. */ 3834#include <ac_nonexistent.h> 3835_ACEOF 3836if ac_fn_c_try_cpp "$LINENO"; then : 3837 # Broken: success on invalid input. 3838continue 3839else 3840 # Passes both tests. 3841ac_preproc_ok=: 3842break 3843fi 3844rm -f conftest.err conftest.i conftest.$ac_ext 3845 3846done 3847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3848rm -f conftest.i conftest.err conftest.$ac_ext 3849if $ac_preproc_ok; then : 3850 break 3851fi 3852 3853 done 3854 ac_cv_prog_CPP=$CPP 3855 3856fi 3857 CPP=$ac_cv_prog_CPP 3858else 3859 ac_cv_prog_CPP=$CPP 3860fi 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3862$as_echo "$CPP" >&6; } 3863ac_preproc_ok=false 3864for ac_c_preproc_warn_flag in '' yes 3865do 3866 # Use a header file that comes with gcc, so configuring glibc 3867 # with a fresh cross-compiler works. 3868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3869 # <limits.h> exists even on freestanding compilers. 3870 # On the NeXT, cc -E runs the code through the compiler's parser, 3871 # not just through cpp. "Syntax error" is here to catch this case. 3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874#ifdef __STDC__ 3875# include <limits.h> 3876#else 3877# include <assert.h> 3878#endif 3879 Syntax error 3880_ACEOF 3881if ac_fn_c_try_cpp "$LINENO"; then : 3882 3883else 3884 # Broken: fails on valid input. 3885continue 3886fi 3887rm -f conftest.err conftest.i conftest.$ac_ext 3888 3889 # OK, works on sane cases. Now check whether nonexistent headers 3890 # can be detected and how. 3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3892/* end confdefs.h. */ 3893#include <ac_nonexistent.h> 3894_ACEOF 3895if ac_fn_c_try_cpp "$LINENO"; then : 3896 # Broken: success on invalid input. 3897continue 3898else 3899 # Passes both tests. 3900ac_preproc_ok=: 3901break 3902fi 3903rm -f conftest.err conftest.i conftest.$ac_ext 3904 3905done 3906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3907rm -f conftest.i conftest.err conftest.$ac_ext 3908if $ac_preproc_ok; then : 3909 3910else 3911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3913as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3914See \`config.log' for more details" "$LINENO" 5; } 3915fi 3916 3917ac_ext=c 3918ac_cpp='$CPP $CPPFLAGS' 3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3921ac_compiler_gnu=$ac_cv_c_compiler_gnu 3922 3923 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3925$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3926if ${ac_cv_path_GREP+:} false; then : 3927 $as_echo_n "(cached) " >&6 3928else 3929 if test -z "$GREP"; then 3930 ac_path_GREP_found=false 3931 # Loop through the user's path and test for each of PROGNAME-LIST 3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3934do 3935 IFS=$as_save_IFS 3936 test -z "$as_dir" && as_dir=. 3937 for ac_prog in grep ggrep; do 3938 for ac_exec_ext in '' $ac_executable_extensions; do 3939 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3940 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3941# Check for GNU ac_path_GREP and select it if it is found. 3942 # Check for GNU $ac_path_GREP 3943case `"$ac_path_GREP" --version 2>&1` in 3944*GNU*) 3945 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3946*) 3947 ac_count=0 3948 $as_echo_n 0123456789 >"conftest.in" 3949 while : 3950 do 3951 cat "conftest.in" "conftest.in" >"conftest.tmp" 3952 mv "conftest.tmp" "conftest.in" 3953 cp "conftest.in" "conftest.nl" 3954 $as_echo 'GREP' >> "conftest.nl" 3955 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3957 as_fn_arith $ac_count + 1 && ac_count=$as_val 3958 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3959 # Best one so far, save it but keep looking for a better one 3960 ac_cv_path_GREP="$ac_path_GREP" 3961 ac_path_GREP_max=$ac_count 3962 fi 3963 # 10*(2^10) chars as input seems more than enough 3964 test $ac_count -gt 10 && break 3965 done 3966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3967esac 3968 3969 $ac_path_GREP_found && break 3 3970 done 3971 done 3972 done 3973IFS=$as_save_IFS 3974 if test -z "$ac_cv_path_GREP"; then 3975 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3976 fi 3977else 3978 ac_cv_path_GREP=$GREP 3979fi 3980 3981fi 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3983$as_echo "$ac_cv_path_GREP" >&6; } 3984 GREP="$ac_cv_path_GREP" 3985 3986 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3988$as_echo_n "checking for egrep... " >&6; } 3989if ${ac_cv_path_EGREP+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3993 then ac_cv_path_EGREP="$GREP -E" 3994 else 3995 if test -z "$EGREP"; then 3996 ac_path_EGREP_found=false 3997 # Loop through the user's path and test for each of PROGNAME-LIST 3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4000do 4001 IFS=$as_save_IFS 4002 test -z "$as_dir" && as_dir=. 4003 for ac_prog in egrep; do 4004 for ac_exec_ext in '' $ac_executable_extensions; do 4005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4006 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4007# Check for GNU ac_path_EGREP and select it if it is found. 4008 # Check for GNU $ac_path_EGREP 4009case `"$ac_path_EGREP" --version 2>&1` in 4010*GNU*) 4011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4012*) 4013 ac_count=0 4014 $as_echo_n 0123456789 >"conftest.in" 4015 while : 4016 do 4017 cat "conftest.in" "conftest.in" >"conftest.tmp" 4018 mv "conftest.tmp" "conftest.in" 4019 cp "conftest.in" "conftest.nl" 4020 $as_echo 'EGREP' >> "conftest.nl" 4021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4023 as_fn_arith $ac_count + 1 && ac_count=$as_val 4024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4025 # Best one so far, save it but keep looking for a better one 4026 ac_cv_path_EGREP="$ac_path_EGREP" 4027 ac_path_EGREP_max=$ac_count 4028 fi 4029 # 10*(2^10) chars as input seems more than enough 4030 test $ac_count -gt 10 && break 4031 done 4032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4033esac 4034 4035 $ac_path_EGREP_found && break 3 4036 done 4037 done 4038 done 4039IFS=$as_save_IFS 4040 if test -z "$ac_cv_path_EGREP"; then 4041 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4042 fi 4043else 4044 ac_cv_path_EGREP=$EGREP 4045fi 4046 4047 fi 4048fi 4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4050$as_echo "$ac_cv_path_EGREP" >&6; } 4051 EGREP="$ac_cv_path_EGREP" 4052 4053 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4055$as_echo_n "checking for ANSI C header files... " >&6; } 4056if ${ac_cv_header_stdc+:} false; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061#include <stdlib.h> 4062#include <stdarg.h> 4063#include <string.h> 4064#include <float.h> 4065 4066int 4067main () 4068{ 4069 4070 ; 4071 return 0; 4072} 4073_ACEOF 4074if ac_fn_c_try_compile "$LINENO"; then : 4075 ac_cv_header_stdc=yes 4076else 4077 ac_cv_header_stdc=no 4078fi 4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4080 4081if test $ac_cv_header_stdc = yes; then 4082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4084/* end confdefs.h. */ 4085#include <string.h> 4086 4087_ACEOF 4088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4089 $EGREP "memchr" >/dev/null 2>&1; then : 4090 4091else 4092 ac_cv_header_stdc=no 4093fi 4094rm -f conftest* 4095 4096fi 4097 4098if test $ac_cv_header_stdc = yes; then 4099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4101/* end confdefs.h. */ 4102#include <stdlib.h> 4103 4104_ACEOF 4105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4106 $EGREP "free" >/dev/null 2>&1; then : 4107 4108else 4109 ac_cv_header_stdc=no 4110fi 4111rm -f conftest* 4112 4113fi 4114 4115if test $ac_cv_header_stdc = yes; then 4116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4117 if test "$cross_compiling" = yes; then : 4118 : 4119else 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122#include <ctype.h> 4123#include <stdlib.h> 4124#if ((' ' & 0x0FF) == 0x020) 4125# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4126# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4127#else 4128# define ISLOWER(c) \ 4129 (('a' <= (c) && (c) <= 'i') \ 4130 || ('j' <= (c) && (c) <= 'r') \ 4131 || ('s' <= (c) && (c) <= 'z')) 4132# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4133#endif 4134 4135#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4136int 4137main () 4138{ 4139 int i; 4140 for (i = 0; i < 256; i++) 4141 if (XOR (islower (i), ISLOWER (i)) 4142 || toupper (i) != TOUPPER (i)) 4143 return 2; 4144 return 0; 4145} 4146_ACEOF 4147if ac_fn_c_try_run "$LINENO"; then : 4148 4149else 4150 ac_cv_header_stdc=no 4151fi 4152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4153 conftest.$ac_objext conftest.beam conftest.$ac_ext 4154fi 4155 4156fi 4157fi 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4159$as_echo "$ac_cv_header_stdc" >&6; } 4160if test $ac_cv_header_stdc = yes; then 4161 4162$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4163 4164fi 4165 4166# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4167for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4168 inttypes.h stdint.h unistd.h 4169do : 4170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4171ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4172" 4173if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4174 cat >>confdefs.h <<_ACEOF 4175#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4176_ACEOF 4177 4178fi 4179 4180done 4181 4182 4183 4184 4185 4186 4187ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4188if test "x$ac_cv_have_decl___clang__" = xyes; then : 4189 CLANGCC="yes" 4190else 4191 CLANGCC="no" 4192fi 4193 4194ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4195if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4196 INTELCC="yes" 4197else 4198 INTELCC="no" 4199fi 4200 4201ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4202if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4203 SUNCC="yes" 4204else 4205 SUNCC="no" 4206fi 4207 4208 4209 4210 4211if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4212 if test -n "$ac_tool_prefix"; then 4213 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4214set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4216$as_echo_n "checking for $ac_word... " >&6; } 4217if ${ac_cv_path_PKG_CONFIG+:} false; then : 4218 $as_echo_n "(cached) " >&6 4219else 4220 case $PKG_CONFIG in 4221 [\\/]* | ?:[\\/]*) 4222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4223 ;; 4224 *) 4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4226for as_dir in $PATH 4227do 4228 IFS=$as_save_IFS 4229 test -z "$as_dir" && as_dir=. 4230 for ac_exec_ext in '' $ac_executable_extensions; do 4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4234 break 2 4235 fi 4236done 4237 done 4238IFS=$as_save_IFS 4239 4240 ;; 4241esac 4242fi 4243PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4244if test -n "$PKG_CONFIG"; then 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4246$as_echo "$PKG_CONFIG" >&6; } 4247else 4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4249$as_echo "no" >&6; } 4250fi 4251 4252 4253fi 4254if test -z "$ac_cv_path_PKG_CONFIG"; then 4255 ac_pt_PKG_CONFIG=$PKG_CONFIG 4256 # Extract the first word of "pkg-config", so it can be a program name with args. 4257set dummy pkg-config; ac_word=$2 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4259$as_echo_n "checking for $ac_word... " >&6; } 4260if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 case $ac_pt_PKG_CONFIG in 4264 [\\/]* | ?:[\\/]*) 4265 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4266 ;; 4267 *) 4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4269for as_dir in $PATH 4270do 4271 IFS=$as_save_IFS 4272 test -z "$as_dir" && as_dir=. 4273 for ac_exec_ext in '' $ac_executable_extensions; do 4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4275 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4277 break 2 4278 fi 4279done 4280 done 4281IFS=$as_save_IFS 4282 4283 ;; 4284esac 4285fi 4286ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4287if test -n "$ac_pt_PKG_CONFIG"; then 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4289$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4290else 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4292$as_echo "no" >&6; } 4293fi 4294 4295 if test "x$ac_pt_PKG_CONFIG" = x; then 4296 PKG_CONFIG="" 4297 else 4298 case $cross_compiling:$ac_tool_warned in 4299yes:) 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4302ac_tool_warned=yes ;; 4303esac 4304 PKG_CONFIG=$ac_pt_PKG_CONFIG 4305 fi 4306else 4307 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4308fi 4309 4310fi 4311if test -n "$PKG_CONFIG"; then 4312 _pkg_min_version=0.9.0 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4314$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4315 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4317$as_echo "yes" >&6; } 4318 else 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4320$as_echo "no" >&6; } 4321 PKG_CONFIG="" 4322 fi 4323 4324fi 4325# Make sure we can run config.sub. 4326$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4327 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4328 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4330$as_echo_n "checking build system type... " >&6; } 4331if ${ac_cv_build+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 ac_build_alias=$build_alias 4335test "x$ac_build_alias" = x && 4336 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4337test "x$ac_build_alias" = x && 4338 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4339ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4341 4342fi 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4344$as_echo "$ac_cv_build" >&6; } 4345case $ac_cv_build in 4346*-*-*) ;; 4347*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4348esac 4349build=$ac_cv_build 4350ac_save_IFS=$IFS; IFS='-' 4351set x $ac_cv_build 4352shift 4353build_cpu=$1 4354build_vendor=$2 4355shift; shift 4356# Remember, the first character of IFS is used to create $*, 4357# except with old shells: 4358build_os=$* 4359IFS=$ac_save_IFS 4360case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4361 4362 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4364$as_echo_n "checking host system type... " >&6; } 4365if ${ac_cv_host+:} false; then : 4366 $as_echo_n "(cached) " >&6 4367else 4368 if test "x$host_alias" = x; then 4369 ac_cv_host=$ac_cv_build 4370else 4371 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4373fi 4374 4375fi 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4377$as_echo "$ac_cv_host" >&6; } 4378case $ac_cv_host in 4379*-*-*) ;; 4380*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4381esac 4382host=$ac_cv_host 4383ac_save_IFS=$IFS; IFS='-' 4384set x $ac_cv_host 4385shift 4386host_cpu=$1 4387host_vendor=$2 4388shift; shift 4389# Remember, the first character of IFS is used to create $*, 4390# except with old shells: 4391host_os=$* 4392IFS=$ac_save_IFS 4393case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4394 4395 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4397$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4398if ${ac_cv_path_SED+:} false; then : 4399 $as_echo_n "(cached) " >&6 4400else 4401 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4402 for ac_i in 1 2 3 4 5 6 7; do 4403 ac_script="$ac_script$as_nl$ac_script" 4404 done 4405 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4406 { ac_script=; unset ac_script;} 4407 if test -z "$SED"; then 4408 ac_path_SED_found=false 4409 # Loop through the user's path and test for each of PROGNAME-LIST 4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4411for as_dir in $PATH 4412do 4413 IFS=$as_save_IFS 4414 test -z "$as_dir" && as_dir=. 4415 for ac_prog in sed gsed; do 4416 for ac_exec_ext in '' $ac_executable_extensions; do 4417 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4418 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4419# Check for GNU ac_path_SED and select it if it is found. 4420 # Check for GNU $ac_path_SED 4421case `"$ac_path_SED" --version 2>&1` in 4422*GNU*) 4423 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4424*) 4425 ac_count=0 4426 $as_echo_n 0123456789 >"conftest.in" 4427 while : 4428 do 4429 cat "conftest.in" "conftest.in" >"conftest.tmp" 4430 mv "conftest.tmp" "conftest.in" 4431 cp "conftest.in" "conftest.nl" 4432 $as_echo '' >> "conftest.nl" 4433 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4435 as_fn_arith $ac_count + 1 && ac_count=$as_val 4436 if test $ac_count -gt ${ac_path_SED_max-0}; then 4437 # Best one so far, save it but keep looking for a better one 4438 ac_cv_path_SED="$ac_path_SED" 4439 ac_path_SED_max=$ac_count 4440 fi 4441 # 10*(2^10) chars as input seems more than enough 4442 test $ac_count -gt 10 && break 4443 done 4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4445esac 4446 4447 $ac_path_SED_found && break 3 4448 done 4449 done 4450 done 4451IFS=$as_save_IFS 4452 if test -z "$ac_cv_path_SED"; then 4453 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4454 fi 4455else 4456 ac_cv_path_SED=$SED 4457fi 4458 4459fi 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4461$as_echo "$ac_cv_path_SED" >&6; } 4462 SED="$ac_cv_path_SED" 4463 rm -f conftest.sed 4464 4465 4466 4467 4468 4469 4470# Check whether --enable-selective-werror was given. 4471if test "${enable_selective_werror+set}" = set; then : 4472 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4473else 4474 SELECTIVE_WERROR=yes 4475fi 4476 4477 4478 4479 4480 4481# -v is too short to test reliably with XORG_TESTSET_CFLAG 4482if test "x$SUNCC" = "xyes"; then 4483 BASE_CFLAGS="-v" 4484else 4485 BASE_CFLAGS="" 4486fi 4487 4488# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502xorg_testset_save_CFLAGS="$CFLAGS" 4503 4504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4509 $as_echo_n "(cached) " >&6 4510else 4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4512/* end confdefs.h. */ 4513int i; 4514_ACEOF 4515if ac_fn_c_try_compile "$LINENO"; then : 4516 xorg_cv_cc_flag_unknown_warning_option=yes 4517else 4518 xorg_cv_cc_flag_unknown_warning_option=no 4519fi 4520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4521fi 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4525 CFLAGS="$xorg_testset_save_CFLAGS" 4526fi 4527 4528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4531 fi 4532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4539/* end confdefs.h. */ 4540int i; 4541_ACEOF 4542if ac_fn_c_try_compile "$LINENO"; then : 4543 xorg_cv_cc_flag_unused_command_line_argument=yes 4544else 4545 xorg_cv_cc_flag_unused_command_line_argument=no 4546fi 4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4548fi 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4552 CFLAGS="$xorg_testset_save_CFLAGS" 4553fi 4554 4555found="no" 4556 4557 if test $found = "no" ; then 4558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4560 fi 4561 4562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4564 fi 4565 4566 CFLAGS="$CFLAGS -Wall" 4567 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4569$as_echo_n "checking if $CC supports -Wall... " >&6; } 4570 cacheid=xorg_cv_cc_flag__Wall 4571 if eval \${$cacheid+:} false; then : 4572 $as_echo_n "(cached) " >&6 4573else 4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4575/* end confdefs.h. */ 4576int i; 4577int 4578main () 4579{ 4580 4581 ; 4582 return 0; 4583} 4584_ACEOF 4585if ac_fn_c_try_link "$LINENO"; then : 4586 eval $cacheid=yes 4587else 4588 eval $cacheid=no 4589fi 4590rm -f core conftest.err conftest.$ac_objext \ 4591 conftest$ac_exeext conftest.$ac_ext 4592fi 4593 4594 4595 CFLAGS="$xorg_testset_save_CFLAGS" 4596 4597 eval supported=\$$cacheid 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4599$as_echo "$supported" >&6; } 4600 if test "$supported" = "yes" ; then 4601 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4602 found="yes" 4603 fi 4604 fi 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620xorg_testset_save_CFLAGS="$CFLAGS" 4621 4622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4627 $as_echo_n "(cached) " >&6 4628else 4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4630/* end confdefs.h. */ 4631int i; 4632_ACEOF 4633if ac_fn_c_try_compile "$LINENO"; then : 4634 xorg_cv_cc_flag_unknown_warning_option=yes 4635else 4636 xorg_cv_cc_flag_unknown_warning_option=no 4637fi 4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4639fi 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4643 CFLAGS="$xorg_testset_save_CFLAGS" 4644fi 4645 4646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4649 fi 4650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658int i; 4659_ACEOF 4660if ac_fn_c_try_compile "$LINENO"; then : 4661 xorg_cv_cc_flag_unused_command_line_argument=yes 4662else 4663 xorg_cv_cc_flag_unused_command_line_argument=no 4664fi 4665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4666fi 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4670 CFLAGS="$xorg_testset_save_CFLAGS" 4671fi 4672 4673found="no" 4674 4675 if test $found = "no" ; then 4676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4678 fi 4679 4680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4682 fi 4683 4684 CFLAGS="$CFLAGS -Wpointer-arith" 4685 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4687$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4688 cacheid=xorg_cv_cc_flag__Wpointer_arith 4689 if eval \${$cacheid+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4693/* end confdefs.h. */ 4694int i; 4695int 4696main () 4697{ 4698 4699 ; 4700 return 0; 4701} 4702_ACEOF 4703if ac_fn_c_try_link "$LINENO"; then : 4704 eval $cacheid=yes 4705else 4706 eval $cacheid=no 4707fi 4708rm -f core conftest.err conftest.$ac_objext \ 4709 conftest$ac_exeext conftest.$ac_ext 4710fi 4711 4712 4713 CFLAGS="$xorg_testset_save_CFLAGS" 4714 4715 eval supported=\$$cacheid 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4717$as_echo "$supported" >&6; } 4718 if test "$supported" = "yes" ; then 4719 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4720 found="yes" 4721 fi 4722 fi 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738xorg_testset_save_CFLAGS="$CFLAGS" 4739 4740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4745 $as_echo_n "(cached) " >&6 4746else 4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748/* end confdefs.h. */ 4749int i; 4750_ACEOF 4751if ac_fn_c_try_compile "$LINENO"; then : 4752 xorg_cv_cc_flag_unknown_warning_option=yes 4753else 4754 xorg_cv_cc_flag_unknown_warning_option=no 4755fi 4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4757fi 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4761 CFLAGS="$xorg_testset_save_CFLAGS" 4762fi 4763 4764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4767 fi 4768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4772 $as_echo_n "(cached) " >&6 4773else 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4775/* end confdefs.h. */ 4776int i; 4777_ACEOF 4778if ac_fn_c_try_compile "$LINENO"; then : 4779 xorg_cv_cc_flag_unused_command_line_argument=yes 4780else 4781 xorg_cv_cc_flag_unused_command_line_argument=no 4782fi 4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4784fi 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4788 CFLAGS="$xorg_testset_save_CFLAGS" 4789fi 4790 4791found="no" 4792 4793 if test $found = "no" ; then 4794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4796 fi 4797 4798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4800 fi 4801 4802 CFLAGS="$CFLAGS -Wmissing-declarations" 4803 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4805$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4806 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4807 if eval \${$cacheid+:} false; then : 4808 $as_echo_n "(cached) " >&6 4809else 4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4811/* end confdefs.h. */ 4812int i; 4813int 4814main () 4815{ 4816 4817 ; 4818 return 0; 4819} 4820_ACEOF 4821if ac_fn_c_try_link "$LINENO"; then : 4822 eval $cacheid=yes 4823else 4824 eval $cacheid=no 4825fi 4826rm -f core conftest.err conftest.$ac_objext \ 4827 conftest$ac_exeext conftest.$ac_ext 4828fi 4829 4830 4831 CFLAGS="$xorg_testset_save_CFLAGS" 4832 4833 eval supported=\$$cacheid 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4835$as_echo "$supported" >&6; } 4836 if test "$supported" = "yes" ; then 4837 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4838 found="yes" 4839 fi 4840 fi 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856xorg_testset_save_CFLAGS="$CFLAGS" 4857 4858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4863 $as_echo_n "(cached) " >&6 4864else 4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4866/* end confdefs.h. */ 4867int i; 4868_ACEOF 4869if ac_fn_c_try_compile "$LINENO"; then : 4870 xorg_cv_cc_flag_unknown_warning_option=yes 4871else 4872 xorg_cv_cc_flag_unknown_warning_option=no 4873fi 4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4879 CFLAGS="$xorg_testset_save_CFLAGS" 4880fi 4881 4882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4885 fi 4886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4890 $as_echo_n "(cached) " >&6 4891else 4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4893/* end confdefs.h. */ 4894int i; 4895_ACEOF 4896if ac_fn_c_try_compile "$LINENO"; then : 4897 xorg_cv_cc_flag_unused_command_line_argument=yes 4898else 4899 xorg_cv_cc_flag_unused_command_line_argument=no 4900fi 4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4902fi 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4906 CFLAGS="$xorg_testset_save_CFLAGS" 4907fi 4908 4909found="no" 4910 4911 if test $found = "no" ; then 4912 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4914 fi 4915 4916 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4918 fi 4919 4920 CFLAGS="$CFLAGS -Wformat=2" 4921 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4923$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 4924 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 4925 if eval \${$cacheid+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927else 4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4929/* end confdefs.h. */ 4930int i; 4931int 4932main () 4933{ 4934 4935 ; 4936 return 0; 4937} 4938_ACEOF 4939if ac_fn_c_try_link "$LINENO"; then : 4940 eval $cacheid=yes 4941else 4942 eval $cacheid=no 4943fi 4944rm -f core conftest.err conftest.$ac_objext \ 4945 conftest$ac_exeext conftest.$ac_ext 4946fi 4947 4948 4949 CFLAGS="$xorg_testset_save_CFLAGS" 4950 4951 eval supported=\$$cacheid 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4953$as_echo "$supported" >&6; } 4954 if test "$supported" = "yes" ; then 4955 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4956 found="yes" 4957 fi 4958 fi 4959 4960 if test $found = "no" ; then 4961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4963 fi 4964 4965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4967 fi 4968 4969 CFLAGS="$CFLAGS -Wformat" 4970 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4972$as_echo_n "checking if $CC supports -Wformat... " >&6; } 4973 cacheid=xorg_cv_cc_flag__Wformat 4974 if eval \${$cacheid+:} false; then : 4975 $as_echo_n "(cached) " >&6 4976else 4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4978/* end confdefs.h. */ 4979int i; 4980int 4981main () 4982{ 4983 4984 ; 4985 return 0; 4986} 4987_ACEOF 4988if ac_fn_c_try_link "$LINENO"; then : 4989 eval $cacheid=yes 4990else 4991 eval $cacheid=no 4992fi 4993rm -f core conftest.err conftest.$ac_objext \ 4994 conftest$ac_exeext conftest.$ac_ext 4995fi 4996 4997 4998 CFLAGS="$xorg_testset_save_CFLAGS" 4999 5000 eval supported=\$$cacheid 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5002$as_echo "$supported" >&6; } 5003 if test "$supported" = "yes" ; then 5004 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5005 found="yes" 5006 fi 5007 fi 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025xorg_testset_save_CFLAGS="$CFLAGS" 5026 5027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5032 $as_echo_n "(cached) " >&6 5033else 5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5035/* end confdefs.h. */ 5036int i; 5037_ACEOF 5038if ac_fn_c_try_compile "$LINENO"; then : 5039 xorg_cv_cc_flag_unknown_warning_option=yes 5040else 5041 xorg_cv_cc_flag_unknown_warning_option=no 5042fi 5043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5044fi 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5048 CFLAGS="$xorg_testset_save_CFLAGS" 5049fi 5050 5051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5054 fi 5055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5059 $as_echo_n "(cached) " >&6 5060else 5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5062/* end confdefs.h. */ 5063int i; 5064_ACEOF 5065if ac_fn_c_try_compile "$LINENO"; then : 5066 xorg_cv_cc_flag_unused_command_line_argument=yes 5067else 5068 xorg_cv_cc_flag_unused_command_line_argument=no 5069fi 5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5071fi 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5075 CFLAGS="$xorg_testset_save_CFLAGS" 5076fi 5077 5078found="no" 5079 5080 if test $found = "no" ; then 5081 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5083 fi 5084 5085 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5087 fi 5088 5089 CFLAGS="$CFLAGS -Wstrict-prototypes" 5090 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5092$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5093 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5094 if eval \${$cacheid+:} false; then : 5095 $as_echo_n "(cached) " >&6 5096else 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098/* end confdefs.h. */ 5099int i; 5100int 5101main () 5102{ 5103 5104 ; 5105 return 0; 5106} 5107_ACEOF 5108if ac_fn_c_try_link "$LINENO"; then : 5109 eval $cacheid=yes 5110else 5111 eval $cacheid=no 5112fi 5113rm -f core conftest.err conftest.$ac_objext \ 5114 conftest$ac_exeext conftest.$ac_ext 5115fi 5116 5117 5118 CFLAGS="$xorg_testset_save_CFLAGS" 5119 5120 eval supported=\$$cacheid 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5122$as_echo "$supported" >&6; } 5123 if test "$supported" = "yes" ; then 5124 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5125 found="yes" 5126 fi 5127 fi 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143xorg_testset_save_CFLAGS="$CFLAGS" 5144 5145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5150 $as_echo_n "(cached) " >&6 5151else 5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5153/* end confdefs.h. */ 5154int i; 5155_ACEOF 5156if ac_fn_c_try_compile "$LINENO"; then : 5157 xorg_cv_cc_flag_unknown_warning_option=yes 5158else 5159 xorg_cv_cc_flag_unknown_warning_option=no 5160fi 5161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5162fi 5163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5166 CFLAGS="$xorg_testset_save_CFLAGS" 5167fi 5168 5169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5172 fi 5173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5177 $as_echo_n "(cached) " >&6 5178else 5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5180/* end confdefs.h. */ 5181int i; 5182_ACEOF 5183if ac_fn_c_try_compile "$LINENO"; then : 5184 xorg_cv_cc_flag_unused_command_line_argument=yes 5185else 5186 xorg_cv_cc_flag_unused_command_line_argument=no 5187fi 5188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5189fi 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5193 CFLAGS="$xorg_testset_save_CFLAGS" 5194fi 5195 5196found="no" 5197 5198 if test $found = "no" ; then 5199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5201 fi 5202 5203 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5205 fi 5206 5207 CFLAGS="$CFLAGS -Wmissing-prototypes" 5208 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5210$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5211 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5212 if eval \${$cacheid+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5216/* end confdefs.h. */ 5217int i; 5218int 5219main () 5220{ 5221 5222 ; 5223 return 0; 5224} 5225_ACEOF 5226if ac_fn_c_try_link "$LINENO"; then : 5227 eval $cacheid=yes 5228else 5229 eval $cacheid=no 5230fi 5231rm -f core conftest.err conftest.$ac_objext \ 5232 conftest$ac_exeext conftest.$ac_ext 5233fi 5234 5235 5236 CFLAGS="$xorg_testset_save_CFLAGS" 5237 5238 eval supported=\$$cacheid 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5240$as_echo "$supported" >&6; } 5241 if test "$supported" = "yes" ; then 5242 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5243 found="yes" 5244 fi 5245 fi 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261xorg_testset_save_CFLAGS="$CFLAGS" 5262 5263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5271/* end confdefs.h. */ 5272int i; 5273_ACEOF 5274if ac_fn_c_try_compile "$LINENO"; then : 5275 xorg_cv_cc_flag_unknown_warning_option=yes 5276else 5277 xorg_cv_cc_flag_unknown_warning_option=no 5278fi 5279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5280fi 5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5284 CFLAGS="$xorg_testset_save_CFLAGS" 5285fi 5286 5287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5290 fi 5291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299int i; 5300_ACEOF 5301if ac_fn_c_try_compile "$LINENO"; then : 5302 xorg_cv_cc_flag_unused_command_line_argument=yes 5303else 5304 xorg_cv_cc_flag_unused_command_line_argument=no 5305fi 5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5307fi 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5311 CFLAGS="$xorg_testset_save_CFLAGS" 5312fi 5313 5314found="no" 5315 5316 if test $found = "no" ; then 5317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5319 fi 5320 5321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5323 fi 5324 5325 CFLAGS="$CFLAGS -Wnested-externs" 5326 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5328$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5329 cacheid=xorg_cv_cc_flag__Wnested_externs 5330 if eval \${$cacheid+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332else 5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5334/* end confdefs.h. */ 5335int i; 5336int 5337main () 5338{ 5339 5340 ; 5341 return 0; 5342} 5343_ACEOF 5344if ac_fn_c_try_link "$LINENO"; then : 5345 eval $cacheid=yes 5346else 5347 eval $cacheid=no 5348fi 5349rm -f core conftest.err conftest.$ac_objext \ 5350 conftest$ac_exeext conftest.$ac_ext 5351fi 5352 5353 5354 CFLAGS="$xorg_testset_save_CFLAGS" 5355 5356 eval supported=\$$cacheid 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5358$as_echo "$supported" >&6; } 5359 if test "$supported" = "yes" ; then 5360 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5361 found="yes" 5362 fi 5363 fi 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379xorg_testset_save_CFLAGS="$CFLAGS" 5380 5381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5389/* end confdefs.h. */ 5390int i; 5391_ACEOF 5392if ac_fn_c_try_compile "$LINENO"; then : 5393 xorg_cv_cc_flag_unknown_warning_option=yes 5394else 5395 xorg_cv_cc_flag_unknown_warning_option=no 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5398fi 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5402 CFLAGS="$xorg_testset_save_CFLAGS" 5403fi 5404 5405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408 fi 5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5413 $as_echo_n "(cached) " >&6 5414else 5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5416/* end confdefs.h. */ 5417int i; 5418_ACEOF 5419if ac_fn_c_try_compile "$LINENO"; then : 5420 xorg_cv_cc_flag_unused_command_line_argument=yes 5421else 5422 xorg_cv_cc_flag_unused_command_line_argument=no 5423fi 5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5425fi 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5429 CFLAGS="$xorg_testset_save_CFLAGS" 5430fi 5431 5432found="no" 5433 5434 if test $found = "no" ; then 5435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5437 fi 5438 5439 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5441 fi 5442 5443 CFLAGS="$CFLAGS -Wbad-function-cast" 5444 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5446$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5447 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5448 if eval \${$cacheid+:} false; then : 5449 $as_echo_n "(cached) " >&6 5450else 5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5452/* end confdefs.h. */ 5453int i; 5454int 5455main () 5456{ 5457 5458 ; 5459 return 0; 5460} 5461_ACEOF 5462if ac_fn_c_try_link "$LINENO"; then : 5463 eval $cacheid=yes 5464else 5465 eval $cacheid=no 5466fi 5467rm -f core conftest.err conftest.$ac_objext \ 5468 conftest$ac_exeext conftest.$ac_ext 5469fi 5470 5471 5472 CFLAGS="$xorg_testset_save_CFLAGS" 5473 5474 eval supported=\$$cacheid 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5476$as_echo "$supported" >&6; } 5477 if test "$supported" = "yes" ; then 5478 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5479 found="yes" 5480 fi 5481 fi 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497xorg_testset_save_CFLAGS="$CFLAGS" 5498 5499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508int i; 5509_ACEOF 5510if ac_fn_c_try_compile "$LINENO"; then : 5511 xorg_cv_cc_flag_unknown_warning_option=yes 5512else 5513 xorg_cv_cc_flag_unknown_warning_option=no 5514fi 5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5516fi 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5520 CFLAGS="$xorg_testset_save_CFLAGS" 5521fi 5522 5523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5526 fi 5527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5531 $as_echo_n "(cached) " >&6 5532else 5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5534/* end confdefs.h. */ 5535int i; 5536_ACEOF 5537if ac_fn_c_try_compile "$LINENO"; then : 5538 xorg_cv_cc_flag_unused_command_line_argument=yes 5539else 5540 xorg_cv_cc_flag_unused_command_line_argument=no 5541fi 5542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5543fi 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5547 CFLAGS="$xorg_testset_save_CFLAGS" 5548fi 5549 5550found="no" 5551 5552 if test $found = "no" ; then 5553 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 fi 5556 5557 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5559 fi 5560 5561 CFLAGS="$CFLAGS -Wold-style-definition" 5562 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5564$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5565 cacheid=xorg_cv_cc_flag__Wold_style_definition 5566 if eval \${$cacheid+:} false; then : 5567 $as_echo_n "(cached) " >&6 5568else 5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570/* end confdefs.h. */ 5571int i; 5572int 5573main () 5574{ 5575 5576 ; 5577 return 0; 5578} 5579_ACEOF 5580if ac_fn_c_try_link "$LINENO"; then : 5581 eval $cacheid=yes 5582else 5583 eval $cacheid=no 5584fi 5585rm -f core conftest.err conftest.$ac_objext \ 5586 conftest$ac_exeext conftest.$ac_ext 5587fi 5588 5589 5590 CFLAGS="$xorg_testset_save_CFLAGS" 5591 5592 eval supported=\$$cacheid 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5594$as_echo "$supported" >&6; } 5595 if test "$supported" = "yes" ; then 5596 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5597 found="yes" 5598 fi 5599 fi 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615xorg_testset_save_CFLAGS="$CFLAGS" 5616 5617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626int i; 5627_ACEOF 5628if ac_fn_c_try_compile "$LINENO"; then : 5629 xorg_cv_cc_flag_unknown_warning_option=yes 5630else 5631 xorg_cv_cc_flag_unknown_warning_option=no 5632fi 5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5634fi 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5638 CFLAGS="$xorg_testset_save_CFLAGS" 5639fi 5640 5641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5644 fi 5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5649 $as_echo_n "(cached) " >&6 5650else 5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5652/* end confdefs.h. */ 5653int i; 5654_ACEOF 5655if ac_fn_c_try_compile "$LINENO"; then : 5656 xorg_cv_cc_flag_unused_command_line_argument=yes 5657else 5658 xorg_cv_cc_flag_unused_command_line_argument=no 5659fi 5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5661fi 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5665 CFLAGS="$xorg_testset_save_CFLAGS" 5666fi 5667 5668found="no" 5669 5670 if test $found = "no" ; then 5671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5673 fi 5674 5675 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5677 fi 5678 5679 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5680 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5682$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5683 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5684 if eval \${$cacheid+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686else 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689int i; 5690int 5691main () 5692{ 5693 5694 ; 5695 return 0; 5696} 5697_ACEOF 5698if ac_fn_c_try_link "$LINENO"; then : 5699 eval $cacheid=yes 5700else 5701 eval $cacheid=no 5702fi 5703rm -f core conftest.err conftest.$ac_objext \ 5704 conftest$ac_exeext conftest.$ac_ext 5705fi 5706 5707 5708 CFLAGS="$xorg_testset_save_CFLAGS" 5709 5710 eval supported=\$$cacheid 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5712$as_echo "$supported" >&6; } 5713 if test "$supported" = "yes" ; then 5714 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5715 found="yes" 5716 fi 5717 fi 5718 5719 5720 5721 5722 5723# This chunk adds additional warnings that could catch undesired effects. 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737xorg_testset_save_CFLAGS="$CFLAGS" 5738 5739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5747/* end confdefs.h. */ 5748int i; 5749_ACEOF 5750if ac_fn_c_try_compile "$LINENO"; then : 5751 xorg_cv_cc_flag_unknown_warning_option=yes 5752else 5753 xorg_cv_cc_flag_unknown_warning_option=no 5754fi 5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5756fi 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5760 CFLAGS="$xorg_testset_save_CFLAGS" 5761fi 5762 5763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5766 fi 5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5771 $as_echo_n "(cached) " >&6 5772else 5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5774/* end confdefs.h. */ 5775int i; 5776_ACEOF 5777if ac_fn_c_try_compile "$LINENO"; then : 5778 xorg_cv_cc_flag_unused_command_line_argument=yes 5779else 5780 xorg_cv_cc_flag_unused_command_line_argument=no 5781fi 5782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5783fi 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5787 CFLAGS="$xorg_testset_save_CFLAGS" 5788fi 5789 5790found="no" 5791 5792 if test $found = "no" ; then 5793 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5795 fi 5796 5797 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5799 fi 5800 5801 CFLAGS="$CFLAGS -Wunused" 5802 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5804$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5805 cacheid=xorg_cv_cc_flag__Wunused 5806 if eval \${$cacheid+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808else 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5810/* end confdefs.h. */ 5811int i; 5812int 5813main () 5814{ 5815 5816 ; 5817 return 0; 5818} 5819_ACEOF 5820if ac_fn_c_try_link "$LINENO"; then : 5821 eval $cacheid=yes 5822else 5823 eval $cacheid=no 5824fi 5825rm -f core conftest.err conftest.$ac_objext \ 5826 conftest$ac_exeext conftest.$ac_ext 5827fi 5828 5829 5830 CFLAGS="$xorg_testset_save_CFLAGS" 5831 5832 eval supported=\$$cacheid 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5834$as_echo "$supported" >&6; } 5835 if test "$supported" = "yes" ; then 5836 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5837 found="yes" 5838 fi 5839 fi 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855xorg_testset_save_CFLAGS="$CFLAGS" 5856 5857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5862 $as_echo_n "(cached) " >&6 5863else 5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5865/* end confdefs.h. */ 5866int i; 5867_ACEOF 5868if ac_fn_c_try_compile "$LINENO"; then : 5869 xorg_cv_cc_flag_unknown_warning_option=yes 5870else 5871 xorg_cv_cc_flag_unknown_warning_option=no 5872fi 5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5874fi 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5878 CFLAGS="$xorg_testset_save_CFLAGS" 5879fi 5880 5881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5884 fi 5885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892/* end confdefs.h. */ 5893int i; 5894_ACEOF 5895if ac_fn_c_try_compile "$LINENO"; then : 5896 xorg_cv_cc_flag_unused_command_line_argument=yes 5897else 5898 xorg_cv_cc_flag_unused_command_line_argument=no 5899fi 5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5901fi 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5905 CFLAGS="$xorg_testset_save_CFLAGS" 5906fi 5907 5908found="no" 5909 5910 if test $found = "no" ; then 5911 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5913 fi 5914 5915 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5917 fi 5918 5919 CFLAGS="$CFLAGS -Wuninitialized" 5920 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5922$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 5923 cacheid=xorg_cv_cc_flag__Wuninitialized 5924 if eval \${$cacheid+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929int i; 5930int 5931main () 5932{ 5933 5934 ; 5935 return 0; 5936} 5937_ACEOF 5938if ac_fn_c_try_link "$LINENO"; then : 5939 eval $cacheid=yes 5940else 5941 eval $cacheid=no 5942fi 5943rm -f core conftest.err conftest.$ac_objext \ 5944 conftest$ac_exeext conftest.$ac_ext 5945fi 5946 5947 5948 CFLAGS="$xorg_testset_save_CFLAGS" 5949 5950 eval supported=\$$cacheid 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5952$as_echo "$supported" >&6; } 5953 if test "$supported" = "yes" ; then 5954 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5955 found="yes" 5956 fi 5957 fi 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973xorg_testset_save_CFLAGS="$CFLAGS" 5974 5975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5980 $as_echo_n "(cached) " >&6 5981else 5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5983/* end confdefs.h. */ 5984int i; 5985_ACEOF 5986if ac_fn_c_try_compile "$LINENO"; then : 5987 xorg_cv_cc_flag_unknown_warning_option=yes 5988else 5989 xorg_cv_cc_flag_unknown_warning_option=no 5990fi 5991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5992fi 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5996 CFLAGS="$xorg_testset_save_CFLAGS" 5997fi 5998 5999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6002 fi 6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6007 $as_echo_n "(cached) " >&6 6008else 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011int i; 6012_ACEOF 6013if ac_fn_c_try_compile "$LINENO"; then : 6014 xorg_cv_cc_flag_unused_command_line_argument=yes 6015else 6016 xorg_cv_cc_flag_unused_command_line_argument=no 6017fi 6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6019fi 6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6023 CFLAGS="$xorg_testset_save_CFLAGS" 6024fi 6025 6026found="no" 6027 6028 if test $found = "no" ; then 6029 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6031 fi 6032 6033 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6035 fi 6036 6037 CFLAGS="$CFLAGS -Wshadow" 6038 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6040$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6041 cacheid=xorg_cv_cc_flag__Wshadow 6042 if eval \${$cacheid+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6046/* end confdefs.h. */ 6047int i; 6048int 6049main () 6050{ 6051 6052 ; 6053 return 0; 6054} 6055_ACEOF 6056if ac_fn_c_try_link "$LINENO"; then : 6057 eval $cacheid=yes 6058else 6059 eval $cacheid=no 6060fi 6061rm -f core conftest.err conftest.$ac_objext \ 6062 conftest$ac_exeext conftest.$ac_ext 6063fi 6064 6065 6066 CFLAGS="$xorg_testset_save_CFLAGS" 6067 6068 eval supported=\$$cacheid 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6070$as_echo "$supported" >&6; } 6071 if test "$supported" = "yes" ; then 6072 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6073 found="yes" 6074 fi 6075 fi 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091xorg_testset_save_CFLAGS="$CFLAGS" 6092 6093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6101/* end confdefs.h. */ 6102int i; 6103_ACEOF 6104if ac_fn_c_try_compile "$LINENO"; then : 6105 xorg_cv_cc_flag_unknown_warning_option=yes 6106else 6107 xorg_cv_cc_flag_unknown_warning_option=no 6108fi 6109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6110fi 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6114 CFLAGS="$xorg_testset_save_CFLAGS" 6115fi 6116 6117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6120 fi 6121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129int i; 6130_ACEOF 6131if ac_fn_c_try_compile "$LINENO"; then : 6132 xorg_cv_cc_flag_unused_command_line_argument=yes 6133else 6134 xorg_cv_cc_flag_unused_command_line_argument=no 6135fi 6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6137fi 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6141 CFLAGS="$xorg_testset_save_CFLAGS" 6142fi 6143 6144found="no" 6145 6146 if test $found = "no" ; then 6147 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6149 fi 6150 6151 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6153 fi 6154 6155 CFLAGS="$CFLAGS -Wcast-qual" 6156 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6158$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6159 cacheid=xorg_cv_cc_flag__Wcast_qual 6160 if eval \${$cacheid+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6164/* end confdefs.h. */ 6165int i; 6166int 6167main () 6168{ 6169 6170 ; 6171 return 0; 6172} 6173_ACEOF 6174if ac_fn_c_try_link "$LINENO"; then : 6175 eval $cacheid=yes 6176else 6177 eval $cacheid=no 6178fi 6179rm -f core conftest.err conftest.$ac_objext \ 6180 conftest$ac_exeext conftest.$ac_ext 6181fi 6182 6183 6184 CFLAGS="$xorg_testset_save_CFLAGS" 6185 6186 eval supported=\$$cacheid 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6188$as_echo "$supported" >&6; } 6189 if test "$supported" = "yes" ; then 6190 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6191 found="yes" 6192 fi 6193 fi 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209xorg_testset_save_CFLAGS="$CFLAGS" 6210 6211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6219/* end confdefs.h. */ 6220int i; 6221_ACEOF 6222if ac_fn_c_try_compile "$LINENO"; then : 6223 xorg_cv_cc_flag_unknown_warning_option=yes 6224else 6225 xorg_cv_cc_flag_unknown_warning_option=no 6226fi 6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6228fi 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6232 CFLAGS="$xorg_testset_save_CFLAGS" 6233fi 6234 6235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6238 fi 6239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247int i; 6248_ACEOF 6249if ac_fn_c_try_compile "$LINENO"; then : 6250 xorg_cv_cc_flag_unused_command_line_argument=yes 6251else 6252 xorg_cv_cc_flag_unused_command_line_argument=no 6253fi 6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6255fi 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6259 CFLAGS="$xorg_testset_save_CFLAGS" 6260fi 6261 6262found="no" 6263 6264 if test $found = "no" ; then 6265 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6267 fi 6268 6269 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6271 fi 6272 6273 CFLAGS="$CFLAGS -Wmissing-noreturn" 6274 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6276$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6277 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6278 if eval \${$cacheid+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282/* end confdefs.h. */ 6283int i; 6284int 6285main () 6286{ 6287 6288 ; 6289 return 0; 6290} 6291_ACEOF 6292if ac_fn_c_try_link "$LINENO"; then : 6293 eval $cacheid=yes 6294else 6295 eval $cacheid=no 6296fi 6297rm -f core conftest.err conftest.$ac_objext \ 6298 conftest$ac_exeext conftest.$ac_ext 6299fi 6300 6301 6302 CFLAGS="$xorg_testset_save_CFLAGS" 6303 6304 eval supported=\$$cacheid 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6306$as_echo "$supported" >&6; } 6307 if test "$supported" = "yes" ; then 6308 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6309 found="yes" 6310 fi 6311 fi 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327xorg_testset_save_CFLAGS="$CFLAGS" 6328 6329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6337/* end confdefs.h. */ 6338int i; 6339_ACEOF 6340if ac_fn_c_try_compile "$LINENO"; then : 6341 xorg_cv_cc_flag_unknown_warning_option=yes 6342else 6343 xorg_cv_cc_flag_unknown_warning_option=no 6344fi 6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6346fi 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6350 CFLAGS="$xorg_testset_save_CFLAGS" 6351fi 6352 6353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6356 fi 6357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6364/* end confdefs.h. */ 6365int i; 6366_ACEOF 6367if ac_fn_c_try_compile "$LINENO"; then : 6368 xorg_cv_cc_flag_unused_command_line_argument=yes 6369else 6370 xorg_cv_cc_flag_unused_command_line_argument=no 6371fi 6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6373fi 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6377 CFLAGS="$xorg_testset_save_CFLAGS" 6378fi 6379 6380found="no" 6381 6382 if test $found = "no" ; then 6383 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6385 fi 6386 6387 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6389 fi 6390 6391 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6392 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6394$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6395 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6396 if eval \${$cacheid+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400/* end confdefs.h. */ 6401int i; 6402int 6403main () 6404{ 6405 6406 ; 6407 return 0; 6408} 6409_ACEOF 6410if ac_fn_c_try_link "$LINENO"; then : 6411 eval $cacheid=yes 6412else 6413 eval $cacheid=no 6414fi 6415rm -f core conftest.err conftest.$ac_objext \ 6416 conftest$ac_exeext conftest.$ac_ext 6417fi 6418 6419 6420 CFLAGS="$xorg_testset_save_CFLAGS" 6421 6422 eval supported=\$$cacheid 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6424$as_echo "$supported" >&6; } 6425 if test "$supported" = "yes" ; then 6426 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6427 found="yes" 6428 fi 6429 fi 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445xorg_testset_save_CFLAGS="$CFLAGS" 6446 6447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6452 $as_echo_n "(cached) " >&6 6453else 6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6455/* end confdefs.h. */ 6456int i; 6457_ACEOF 6458if ac_fn_c_try_compile "$LINENO"; then : 6459 xorg_cv_cc_flag_unknown_warning_option=yes 6460else 6461 xorg_cv_cc_flag_unknown_warning_option=no 6462fi 6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6464fi 6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6468 CFLAGS="$xorg_testset_save_CFLAGS" 6469fi 6470 6471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6474 fi 6475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483int i; 6484_ACEOF 6485if ac_fn_c_try_compile "$LINENO"; then : 6486 xorg_cv_cc_flag_unused_command_line_argument=yes 6487else 6488 xorg_cv_cc_flag_unused_command_line_argument=no 6489fi 6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6491fi 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6495 CFLAGS="$xorg_testset_save_CFLAGS" 6496fi 6497 6498found="no" 6499 6500 if test $found = "no" ; then 6501 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6503 fi 6504 6505 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6507 fi 6508 6509 CFLAGS="$CFLAGS -Wredundant-decls" 6510 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6512$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6513 cacheid=xorg_cv_cc_flag__Wredundant_decls 6514 if eval \${$cacheid+:} false; then : 6515 $as_echo_n "(cached) " >&6 6516else 6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6518/* end confdefs.h. */ 6519int i; 6520int 6521main () 6522{ 6523 6524 ; 6525 return 0; 6526} 6527_ACEOF 6528if ac_fn_c_try_link "$LINENO"; then : 6529 eval $cacheid=yes 6530else 6531 eval $cacheid=no 6532fi 6533rm -f core conftest.err conftest.$ac_objext \ 6534 conftest$ac_exeext conftest.$ac_ext 6535fi 6536 6537 6538 CFLAGS="$xorg_testset_save_CFLAGS" 6539 6540 eval supported=\$$cacheid 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6542$as_echo "$supported" >&6; } 6543 if test "$supported" = "yes" ; then 6544 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6545 found="yes" 6546 fi 6547 fi 6548 6549 6550 6551# These are currently disabled because they are noisy. They will be enabled 6552# in the future once the codebase is sufficiently modernized to silence 6553# them. For now, I don't want them to drown out the other warnings. 6554# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6555# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6556# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6557 6558# Turn some warnings into errors, so we don't accidently get successful builds 6559# when there are problems that should be fixed. 6560 6561if test "x$SELECTIVE_WERROR" = "xyes" ; then 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575xorg_testset_save_CFLAGS="$CFLAGS" 6576 6577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6585/* end confdefs.h. */ 6586int i; 6587_ACEOF 6588if ac_fn_c_try_compile "$LINENO"; then : 6589 xorg_cv_cc_flag_unknown_warning_option=yes 6590else 6591 xorg_cv_cc_flag_unknown_warning_option=no 6592fi 6593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6594fi 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599fi 6600 6601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6604 fi 6605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6609 $as_echo_n "(cached) " >&6 6610else 6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613int i; 6614_ACEOF 6615if ac_fn_c_try_compile "$LINENO"; then : 6616 xorg_cv_cc_flag_unused_command_line_argument=yes 6617else 6618 xorg_cv_cc_flag_unused_command_line_argument=no 6619fi 6620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6621fi 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6625 CFLAGS="$xorg_testset_save_CFLAGS" 6626fi 6627 6628found="no" 6629 6630 if test $found = "no" ; then 6631 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6633 fi 6634 6635 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6637 fi 6638 6639 CFLAGS="$CFLAGS -Werror=implicit" 6640 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6642$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6643 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6644 if eval \${$cacheid+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6648/* end confdefs.h. */ 6649int i; 6650int 6651main () 6652{ 6653 6654 ; 6655 return 0; 6656} 6657_ACEOF 6658if ac_fn_c_try_link "$LINENO"; then : 6659 eval $cacheid=yes 6660else 6661 eval $cacheid=no 6662fi 6663rm -f core conftest.err conftest.$ac_objext \ 6664 conftest$ac_exeext conftest.$ac_ext 6665fi 6666 6667 6668 CFLAGS="$xorg_testset_save_CFLAGS" 6669 6670 eval supported=\$$cacheid 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6672$as_echo "$supported" >&6; } 6673 if test "$supported" = "yes" ; then 6674 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6675 found="yes" 6676 fi 6677 fi 6678 6679 if test $found = "no" ; then 6680 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6682 fi 6683 6684 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6686 fi 6687 6688 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6689 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6691$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6692 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6693 if eval \${$cacheid+:} false; then : 6694 $as_echo_n "(cached) " >&6 6695else 6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6697/* end confdefs.h. */ 6698int i; 6699int 6700main () 6701{ 6702 6703 ; 6704 return 0; 6705} 6706_ACEOF 6707if ac_fn_c_try_link "$LINENO"; then : 6708 eval $cacheid=yes 6709else 6710 eval $cacheid=no 6711fi 6712rm -f core conftest.err conftest.$ac_objext \ 6713 conftest$ac_exeext conftest.$ac_ext 6714fi 6715 6716 6717 CFLAGS="$xorg_testset_save_CFLAGS" 6718 6719 eval supported=\$$cacheid 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6721$as_echo "$supported" >&6; } 6722 if test "$supported" = "yes" ; then 6723 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6724 found="yes" 6725 fi 6726 fi 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742xorg_testset_save_CFLAGS="$CFLAGS" 6743 6744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6752/* end confdefs.h. */ 6753int i; 6754_ACEOF 6755if ac_fn_c_try_compile "$LINENO"; then : 6756 xorg_cv_cc_flag_unknown_warning_option=yes 6757else 6758 xorg_cv_cc_flag_unknown_warning_option=no 6759fi 6760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6761fi 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6765 CFLAGS="$xorg_testset_save_CFLAGS" 6766fi 6767 6768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6771 fi 6772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6776 $as_echo_n "(cached) " >&6 6777else 6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6779/* end confdefs.h. */ 6780int i; 6781_ACEOF 6782if ac_fn_c_try_compile "$LINENO"; then : 6783 xorg_cv_cc_flag_unused_command_line_argument=yes 6784else 6785 xorg_cv_cc_flag_unused_command_line_argument=no 6786fi 6787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6788fi 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6792 CFLAGS="$xorg_testset_save_CFLAGS" 6793fi 6794 6795found="no" 6796 6797 if test $found = "no" ; then 6798 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6800 fi 6801 6802 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6804 fi 6805 6806 CFLAGS="$CFLAGS -Werror=nonnull" 6807 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6809$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6810 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 6811 if eval \${$cacheid+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817int 6818main () 6819{ 6820 6821 ; 6822 return 0; 6823} 6824_ACEOF 6825if ac_fn_c_try_link "$LINENO"; then : 6826 eval $cacheid=yes 6827else 6828 eval $cacheid=no 6829fi 6830rm -f core conftest.err conftest.$ac_objext \ 6831 conftest$ac_exeext conftest.$ac_ext 6832fi 6833 6834 6835 CFLAGS="$xorg_testset_save_CFLAGS" 6836 6837 eval supported=\$$cacheid 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6839$as_echo "$supported" >&6; } 6840 if test "$supported" = "yes" ; then 6841 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6842 found="yes" 6843 fi 6844 fi 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860xorg_testset_save_CFLAGS="$CFLAGS" 6861 6862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6867 $as_echo_n "(cached) " >&6 6868else 6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6870/* end confdefs.h. */ 6871int i; 6872_ACEOF 6873if ac_fn_c_try_compile "$LINENO"; then : 6874 xorg_cv_cc_flag_unknown_warning_option=yes 6875else 6876 xorg_cv_cc_flag_unknown_warning_option=no 6877fi 6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6879fi 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6883 CFLAGS="$xorg_testset_save_CFLAGS" 6884fi 6885 6886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6889 fi 6890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895else 6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897/* end confdefs.h. */ 6898int i; 6899_ACEOF 6900if ac_fn_c_try_compile "$LINENO"; then : 6901 xorg_cv_cc_flag_unused_command_line_argument=yes 6902else 6903 xorg_cv_cc_flag_unused_command_line_argument=no 6904fi 6905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6906fi 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6910 CFLAGS="$xorg_testset_save_CFLAGS" 6911fi 6912 6913found="no" 6914 6915 if test $found = "no" ; then 6916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6918 fi 6919 6920 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6922 fi 6923 6924 CFLAGS="$CFLAGS -Werror=init-self" 6925 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6927$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 6928 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 6929 if eval \${$cacheid+:} false; then : 6930 $as_echo_n "(cached) " >&6 6931else 6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934int i; 6935int 6936main () 6937{ 6938 6939 ; 6940 return 0; 6941} 6942_ACEOF 6943if ac_fn_c_try_link "$LINENO"; then : 6944 eval $cacheid=yes 6945else 6946 eval $cacheid=no 6947fi 6948rm -f core conftest.err conftest.$ac_objext \ 6949 conftest$ac_exeext conftest.$ac_ext 6950fi 6951 6952 6953 CFLAGS="$xorg_testset_save_CFLAGS" 6954 6955 eval supported=\$$cacheid 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6957$as_echo "$supported" >&6; } 6958 if test "$supported" = "yes" ; then 6959 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6960 found="yes" 6961 fi 6962 fi 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978xorg_testset_save_CFLAGS="$CFLAGS" 6979 6980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6985 $as_echo_n "(cached) " >&6 6986else 6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988/* end confdefs.h. */ 6989int i; 6990_ACEOF 6991if ac_fn_c_try_compile "$LINENO"; then : 6992 xorg_cv_cc_flag_unknown_warning_option=yes 6993else 6994 xorg_cv_cc_flag_unknown_warning_option=no 6995fi 6996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6997fi 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7001 CFLAGS="$xorg_testset_save_CFLAGS" 7002fi 7003 7004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7007 fi 7008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015/* end confdefs.h. */ 7016int i; 7017_ACEOF 7018if ac_fn_c_try_compile "$LINENO"; then : 7019 xorg_cv_cc_flag_unused_command_line_argument=yes 7020else 7021 xorg_cv_cc_flag_unused_command_line_argument=no 7022fi 7023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7024fi 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7028 CFLAGS="$xorg_testset_save_CFLAGS" 7029fi 7030 7031found="no" 7032 7033 if test $found = "no" ; then 7034 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7036 fi 7037 7038 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7040 fi 7041 7042 CFLAGS="$CFLAGS -Werror=main" 7043 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7045$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7046 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7047 if eval \${$cacheid+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7051/* end confdefs.h. */ 7052int i; 7053int 7054main () 7055{ 7056 7057 ; 7058 return 0; 7059} 7060_ACEOF 7061if ac_fn_c_try_link "$LINENO"; then : 7062 eval $cacheid=yes 7063else 7064 eval $cacheid=no 7065fi 7066rm -f core conftest.err conftest.$ac_objext \ 7067 conftest$ac_exeext conftest.$ac_ext 7068fi 7069 7070 7071 CFLAGS="$xorg_testset_save_CFLAGS" 7072 7073 eval supported=\$$cacheid 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7075$as_echo "$supported" >&6; } 7076 if test "$supported" = "yes" ; then 7077 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7078 found="yes" 7079 fi 7080 fi 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096xorg_testset_save_CFLAGS="$CFLAGS" 7097 7098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107int i; 7108_ACEOF 7109if ac_fn_c_try_compile "$LINENO"; then : 7110 xorg_cv_cc_flag_unknown_warning_option=yes 7111else 7112 xorg_cv_cc_flag_unknown_warning_option=no 7113fi 7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7115fi 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7119 CFLAGS="$xorg_testset_save_CFLAGS" 7120fi 7121 7122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7125 fi 7126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7130 $as_echo_n "(cached) " >&6 7131else 7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133/* end confdefs.h. */ 7134int i; 7135_ACEOF 7136if ac_fn_c_try_compile "$LINENO"; then : 7137 xorg_cv_cc_flag_unused_command_line_argument=yes 7138else 7139 xorg_cv_cc_flag_unused_command_line_argument=no 7140fi 7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7142fi 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7146 CFLAGS="$xorg_testset_save_CFLAGS" 7147fi 7148 7149found="no" 7150 7151 if test $found = "no" ; then 7152 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7154 fi 7155 7156 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7158 fi 7159 7160 CFLAGS="$CFLAGS -Werror=missing-braces" 7161 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7163$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7164 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7165 if eval \${$cacheid+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169/* end confdefs.h. */ 7170int i; 7171int 7172main () 7173{ 7174 7175 ; 7176 return 0; 7177} 7178_ACEOF 7179if ac_fn_c_try_link "$LINENO"; then : 7180 eval $cacheid=yes 7181else 7182 eval $cacheid=no 7183fi 7184rm -f core conftest.err conftest.$ac_objext \ 7185 conftest$ac_exeext conftest.$ac_ext 7186fi 7187 7188 7189 CFLAGS="$xorg_testset_save_CFLAGS" 7190 7191 eval supported=\$$cacheid 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7193$as_echo "$supported" >&6; } 7194 if test "$supported" = "yes" ; then 7195 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7196 found="yes" 7197 fi 7198 fi 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214xorg_testset_save_CFLAGS="$CFLAGS" 7215 7216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7221 $as_echo_n "(cached) " >&6 7222else 7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7224/* end confdefs.h. */ 7225int i; 7226_ACEOF 7227if ac_fn_c_try_compile "$LINENO"; then : 7228 xorg_cv_cc_flag_unknown_warning_option=yes 7229else 7230 xorg_cv_cc_flag_unknown_warning_option=no 7231fi 7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7233fi 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7237 CFLAGS="$xorg_testset_save_CFLAGS" 7238fi 7239 7240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7243 fi 7244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7248 $as_echo_n "(cached) " >&6 7249else 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251/* end confdefs.h. */ 7252int i; 7253_ACEOF 7254if ac_fn_c_try_compile "$LINENO"; then : 7255 xorg_cv_cc_flag_unused_command_line_argument=yes 7256else 7257 xorg_cv_cc_flag_unused_command_line_argument=no 7258fi 7259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7260fi 7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7264 CFLAGS="$xorg_testset_save_CFLAGS" 7265fi 7266 7267found="no" 7268 7269 if test $found = "no" ; then 7270 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7272 fi 7273 7274 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7276 fi 7277 7278 CFLAGS="$CFLAGS -Werror=sequence-point" 7279 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7281$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7282 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7283 if eval \${$cacheid+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285else 7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287/* end confdefs.h. */ 7288int i; 7289int 7290main () 7291{ 7292 7293 ; 7294 return 0; 7295} 7296_ACEOF 7297if ac_fn_c_try_link "$LINENO"; then : 7298 eval $cacheid=yes 7299else 7300 eval $cacheid=no 7301fi 7302rm -f core conftest.err conftest.$ac_objext \ 7303 conftest$ac_exeext conftest.$ac_ext 7304fi 7305 7306 7307 CFLAGS="$xorg_testset_save_CFLAGS" 7308 7309 eval supported=\$$cacheid 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7311$as_echo "$supported" >&6; } 7312 if test "$supported" = "yes" ; then 7313 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7314 found="yes" 7315 fi 7316 fi 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332xorg_testset_save_CFLAGS="$CFLAGS" 7333 7334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7339 $as_echo_n "(cached) " >&6 7340else 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342/* end confdefs.h. */ 7343int i; 7344_ACEOF 7345if ac_fn_c_try_compile "$LINENO"; then : 7346 xorg_cv_cc_flag_unknown_warning_option=yes 7347else 7348 xorg_cv_cc_flag_unknown_warning_option=no 7349fi 7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7351fi 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7355 CFLAGS="$xorg_testset_save_CFLAGS" 7356fi 7357 7358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7361 fi 7362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369/* end confdefs.h. */ 7370int i; 7371_ACEOF 7372if ac_fn_c_try_compile "$LINENO"; then : 7373 xorg_cv_cc_flag_unused_command_line_argument=yes 7374else 7375 xorg_cv_cc_flag_unused_command_line_argument=no 7376fi 7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7378fi 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7382 CFLAGS="$xorg_testset_save_CFLAGS" 7383fi 7384 7385found="no" 7386 7387 if test $found = "no" ; then 7388 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7390 fi 7391 7392 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7394 fi 7395 7396 CFLAGS="$CFLAGS -Werror=return-type" 7397 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7399$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7400 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7401 if eval \${$cacheid+:} false; then : 7402 $as_echo_n "(cached) " >&6 7403else 7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405/* end confdefs.h. */ 7406int i; 7407int 7408main () 7409{ 7410 7411 ; 7412 return 0; 7413} 7414_ACEOF 7415if ac_fn_c_try_link "$LINENO"; then : 7416 eval $cacheid=yes 7417else 7418 eval $cacheid=no 7419fi 7420rm -f core conftest.err conftest.$ac_objext \ 7421 conftest$ac_exeext conftest.$ac_ext 7422fi 7423 7424 7425 CFLAGS="$xorg_testset_save_CFLAGS" 7426 7427 eval supported=\$$cacheid 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7429$as_echo "$supported" >&6; } 7430 if test "$supported" = "yes" ; then 7431 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7432 found="yes" 7433 fi 7434 fi 7435 7436 if test $found = "no" ; then 7437 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 fi 7440 7441 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7443 fi 7444 7445 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7446 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7448$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7449 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7450 if eval \${$cacheid+:} false; then : 7451 $as_echo_n "(cached) " >&6 7452else 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455int i; 7456int 7457main () 7458{ 7459 7460 ; 7461 return 0; 7462} 7463_ACEOF 7464if ac_fn_c_try_link "$LINENO"; then : 7465 eval $cacheid=yes 7466else 7467 eval $cacheid=no 7468fi 7469rm -f core conftest.err conftest.$ac_objext \ 7470 conftest$ac_exeext conftest.$ac_ext 7471fi 7472 7473 7474 CFLAGS="$xorg_testset_save_CFLAGS" 7475 7476 eval supported=\$$cacheid 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7478$as_echo "$supported" >&6; } 7479 if test "$supported" = "yes" ; then 7480 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7481 found="yes" 7482 fi 7483 fi 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499xorg_testset_save_CFLAGS="$CFLAGS" 7500 7501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7506 $as_echo_n "(cached) " >&6 7507else 7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7509/* end confdefs.h. */ 7510int i; 7511_ACEOF 7512if ac_fn_c_try_compile "$LINENO"; then : 7513 xorg_cv_cc_flag_unknown_warning_option=yes 7514else 7515 xorg_cv_cc_flag_unknown_warning_option=no 7516fi 7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7518fi 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7522 CFLAGS="$xorg_testset_save_CFLAGS" 7523fi 7524 7525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7528 fi 7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7533 $as_echo_n "(cached) " >&6 7534else 7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7536/* end confdefs.h. */ 7537int i; 7538_ACEOF 7539if ac_fn_c_try_compile "$LINENO"; then : 7540 xorg_cv_cc_flag_unused_command_line_argument=yes 7541else 7542 xorg_cv_cc_flag_unused_command_line_argument=no 7543fi 7544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7545fi 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7549 CFLAGS="$xorg_testset_save_CFLAGS" 7550fi 7551 7552found="no" 7553 7554 if test $found = "no" ; then 7555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7557 fi 7558 7559 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7561 fi 7562 7563 CFLAGS="$CFLAGS -Werror=trigraphs" 7564 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7566$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7567 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7568 if eval \${$cacheid+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573int i; 7574int 7575main () 7576{ 7577 7578 ; 7579 return 0; 7580} 7581_ACEOF 7582if ac_fn_c_try_link "$LINENO"; then : 7583 eval $cacheid=yes 7584else 7585 eval $cacheid=no 7586fi 7587rm -f core conftest.err conftest.$ac_objext \ 7588 conftest$ac_exeext conftest.$ac_ext 7589fi 7590 7591 7592 CFLAGS="$xorg_testset_save_CFLAGS" 7593 7594 eval supported=\$$cacheid 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7596$as_echo "$supported" >&6; } 7597 if test "$supported" = "yes" ; then 7598 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7599 found="yes" 7600 fi 7601 fi 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617xorg_testset_save_CFLAGS="$CFLAGS" 7618 7619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7624 $as_echo_n "(cached) " >&6 7625else 7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7627/* end confdefs.h. */ 7628int i; 7629_ACEOF 7630if ac_fn_c_try_compile "$LINENO"; then : 7631 xorg_cv_cc_flag_unknown_warning_option=yes 7632else 7633 xorg_cv_cc_flag_unknown_warning_option=no 7634fi 7635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7636fi 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7640 CFLAGS="$xorg_testset_save_CFLAGS" 7641fi 7642 7643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7646 fi 7647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654/* end confdefs.h. */ 7655int i; 7656_ACEOF 7657if ac_fn_c_try_compile "$LINENO"; then : 7658 xorg_cv_cc_flag_unused_command_line_argument=yes 7659else 7660 xorg_cv_cc_flag_unused_command_line_argument=no 7661fi 7662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7663fi 7664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7667 CFLAGS="$xorg_testset_save_CFLAGS" 7668fi 7669 7670found="no" 7671 7672 if test $found = "no" ; then 7673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7675 fi 7676 7677 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7679 fi 7680 7681 CFLAGS="$CFLAGS -Werror=array-bounds" 7682 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7684$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7685 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7686 if eval \${$cacheid+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688else 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690/* end confdefs.h. */ 7691int i; 7692int 7693main () 7694{ 7695 7696 ; 7697 return 0; 7698} 7699_ACEOF 7700if ac_fn_c_try_link "$LINENO"; then : 7701 eval $cacheid=yes 7702else 7703 eval $cacheid=no 7704fi 7705rm -f core conftest.err conftest.$ac_objext \ 7706 conftest$ac_exeext conftest.$ac_ext 7707fi 7708 7709 7710 CFLAGS="$xorg_testset_save_CFLAGS" 7711 7712 eval supported=\$$cacheid 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7714$as_echo "$supported" >&6; } 7715 if test "$supported" = "yes" ; then 7716 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7717 found="yes" 7718 fi 7719 fi 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735xorg_testset_save_CFLAGS="$CFLAGS" 7736 7737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7745/* end confdefs.h. */ 7746int i; 7747_ACEOF 7748if ac_fn_c_try_compile "$LINENO"; then : 7749 xorg_cv_cc_flag_unknown_warning_option=yes 7750else 7751 xorg_cv_cc_flag_unknown_warning_option=no 7752fi 7753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7754fi 7755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7758 CFLAGS="$xorg_testset_save_CFLAGS" 7759fi 7760 7761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7764 fi 7765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7772/* end confdefs.h. */ 7773int i; 7774_ACEOF 7775if ac_fn_c_try_compile "$LINENO"; then : 7776 xorg_cv_cc_flag_unused_command_line_argument=yes 7777else 7778 xorg_cv_cc_flag_unused_command_line_argument=no 7779fi 7780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7781fi 7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7785 CFLAGS="$xorg_testset_save_CFLAGS" 7786fi 7787 7788found="no" 7789 7790 if test $found = "no" ; then 7791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7793 fi 7794 7795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7797 fi 7798 7799 CFLAGS="$CFLAGS -Werror=write-strings" 7800 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7802$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7803 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 7804 if eval \${$cacheid+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806else 7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809int i; 7810int 7811main () 7812{ 7813 7814 ; 7815 return 0; 7816} 7817_ACEOF 7818if ac_fn_c_try_link "$LINENO"; then : 7819 eval $cacheid=yes 7820else 7821 eval $cacheid=no 7822fi 7823rm -f core conftest.err conftest.$ac_objext \ 7824 conftest$ac_exeext conftest.$ac_ext 7825fi 7826 7827 7828 CFLAGS="$xorg_testset_save_CFLAGS" 7829 7830 eval supported=\$$cacheid 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7832$as_echo "$supported" >&6; } 7833 if test "$supported" = "yes" ; then 7834 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7835 found="yes" 7836 fi 7837 fi 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853xorg_testset_save_CFLAGS="$CFLAGS" 7854 7855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7860 $as_echo_n "(cached) " >&6 7861else 7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7863/* end confdefs.h. */ 7864int i; 7865_ACEOF 7866if ac_fn_c_try_compile "$LINENO"; then : 7867 xorg_cv_cc_flag_unknown_warning_option=yes 7868else 7869 xorg_cv_cc_flag_unknown_warning_option=no 7870fi 7871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7872fi 7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7876 CFLAGS="$xorg_testset_save_CFLAGS" 7877fi 7878 7879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882 fi 7883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7887 $as_echo_n "(cached) " >&6 7888else 7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7890/* end confdefs.h. */ 7891int i; 7892_ACEOF 7893if ac_fn_c_try_compile "$LINENO"; then : 7894 xorg_cv_cc_flag_unused_command_line_argument=yes 7895else 7896 xorg_cv_cc_flag_unused_command_line_argument=no 7897fi 7898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7899fi 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7903 CFLAGS="$xorg_testset_save_CFLAGS" 7904fi 7905 7906found="no" 7907 7908 if test $found = "no" ; then 7909 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7911 fi 7912 7913 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7915 fi 7916 7917 CFLAGS="$CFLAGS -Werror=address" 7918 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7920$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 7921 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 7922 if eval \${$cacheid+:} false; then : 7923 $as_echo_n "(cached) " >&6 7924else 7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7926/* end confdefs.h. */ 7927int i; 7928int 7929main () 7930{ 7931 7932 ; 7933 return 0; 7934} 7935_ACEOF 7936if ac_fn_c_try_link "$LINENO"; then : 7937 eval $cacheid=yes 7938else 7939 eval $cacheid=no 7940fi 7941rm -f core conftest.err conftest.$ac_objext \ 7942 conftest$ac_exeext conftest.$ac_ext 7943fi 7944 7945 7946 CFLAGS="$xorg_testset_save_CFLAGS" 7947 7948 eval supported=\$$cacheid 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7950$as_echo "$supported" >&6; } 7951 if test "$supported" = "yes" ; then 7952 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7953 found="yes" 7954 fi 7955 fi 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971xorg_testset_save_CFLAGS="$CFLAGS" 7972 7973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7978 $as_echo_n "(cached) " >&6 7979else 7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7981/* end confdefs.h. */ 7982int i; 7983_ACEOF 7984if ac_fn_c_try_compile "$LINENO"; then : 7985 xorg_cv_cc_flag_unknown_warning_option=yes 7986else 7987 xorg_cv_cc_flag_unknown_warning_option=no 7988fi 7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7990fi 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7994 CFLAGS="$xorg_testset_save_CFLAGS" 7995fi 7996 7997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8000 fi 8001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8005 $as_echo_n "(cached) " >&6 8006else 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009int i; 8010_ACEOF 8011if ac_fn_c_try_compile "$LINENO"; then : 8012 xorg_cv_cc_flag_unused_command_line_argument=yes 8013else 8014 xorg_cv_cc_flag_unused_command_line_argument=no 8015fi 8016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8017fi 8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8021 CFLAGS="$xorg_testset_save_CFLAGS" 8022fi 8023 8024found="no" 8025 8026 if test $found = "no" ; then 8027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8029 fi 8030 8031 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8033 fi 8034 8035 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8036 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8038$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8039 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8040 if eval \${$cacheid+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8044/* end confdefs.h. */ 8045int i; 8046int 8047main () 8048{ 8049 8050 ; 8051 return 0; 8052} 8053_ACEOF 8054if ac_fn_c_try_link "$LINENO"; then : 8055 eval $cacheid=yes 8056else 8057 eval $cacheid=no 8058fi 8059rm -f core conftest.err conftest.$ac_objext \ 8060 conftest$ac_exeext conftest.$ac_ext 8061fi 8062 8063 8064 CFLAGS="$xorg_testset_save_CFLAGS" 8065 8066 eval supported=\$$cacheid 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8068$as_echo "$supported" >&6; } 8069 if test "$supported" = "yes" ; then 8070 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8071 found="yes" 8072 fi 8073 fi 8074 8075 if test $found = "no" ; then 8076 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8078 fi 8079 8080 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8082 fi 8083 8084 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8085 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8087$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8088 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8089 if eval \${$cacheid+:} false; then : 8090 $as_echo_n "(cached) " >&6 8091else 8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093/* end confdefs.h. */ 8094int i; 8095int 8096main () 8097{ 8098 8099 ; 8100 return 0; 8101} 8102_ACEOF 8103if ac_fn_c_try_link "$LINENO"; then : 8104 eval $cacheid=yes 8105else 8106 eval $cacheid=no 8107fi 8108rm -f core conftest.err conftest.$ac_objext \ 8109 conftest$ac_exeext conftest.$ac_ext 8110fi 8111 8112 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114 8115 eval supported=\$$cacheid 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8117$as_echo "$supported" >&6; } 8118 if test "$supported" = "yes" ; then 8119 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8120 found="yes" 8121 fi 8122 fi 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138xorg_testset_save_CFLAGS="$CFLAGS" 8139 8140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8148/* end confdefs.h. */ 8149int i; 8150_ACEOF 8151if ac_fn_c_try_compile "$LINENO"; then : 8152 xorg_cv_cc_flag_unknown_warning_option=yes 8153else 8154 xorg_cv_cc_flag_unknown_warning_option=no 8155fi 8156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8157fi 8158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8161 CFLAGS="$xorg_testset_save_CFLAGS" 8162fi 8163 8164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8167 fi 8168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8172 $as_echo_n "(cached) " >&6 8173else 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176int i; 8177_ACEOF 8178if ac_fn_c_try_compile "$LINENO"; then : 8179 xorg_cv_cc_flag_unused_command_line_argument=yes 8180else 8181 xorg_cv_cc_flag_unused_command_line_argument=no 8182fi 8183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8184fi 8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8188 CFLAGS="$xorg_testset_save_CFLAGS" 8189fi 8190 8191found="no" 8192 8193 if test $found = "no" ; then 8194 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8196 fi 8197 8198 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8200 fi 8201 8202 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8203 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8205$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8206 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8207 if eval \${$cacheid+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8211/* end confdefs.h. */ 8212int i; 8213int 8214main () 8215{ 8216 8217 ; 8218 return 0; 8219} 8220_ACEOF 8221if ac_fn_c_try_link "$LINENO"; then : 8222 eval $cacheid=yes 8223else 8224 eval $cacheid=no 8225fi 8226rm -f core conftest.err conftest.$ac_objext \ 8227 conftest$ac_exeext conftest.$ac_ext 8228fi 8229 8230 8231 CFLAGS="$xorg_testset_save_CFLAGS" 8232 8233 eval supported=\$$cacheid 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8235$as_echo "$supported" >&6; } 8236 if test "$supported" = "yes" ; then 8237 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8238 found="yes" 8239 fi 8240 fi 8241 8242 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8243else 8244{ $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 8245$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;} 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259xorg_testset_save_CFLAGS="$CFLAGS" 8260 8261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8266 $as_echo_n "(cached) " >&6 8267else 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269/* end confdefs.h. */ 8270int i; 8271_ACEOF 8272if ac_fn_c_try_compile "$LINENO"; then : 8273 xorg_cv_cc_flag_unknown_warning_option=yes 8274else 8275 xorg_cv_cc_flag_unknown_warning_option=no 8276fi 8277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8278fi 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8282 CFLAGS="$xorg_testset_save_CFLAGS" 8283fi 8284 8285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8288 fi 8289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8293 $as_echo_n "(cached) " >&6 8294else 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296/* end confdefs.h. */ 8297int i; 8298_ACEOF 8299if ac_fn_c_try_compile "$LINENO"; then : 8300 xorg_cv_cc_flag_unused_command_line_argument=yes 8301else 8302 xorg_cv_cc_flag_unused_command_line_argument=no 8303fi 8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8305fi 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8309 CFLAGS="$xorg_testset_save_CFLAGS" 8310fi 8311 8312found="no" 8313 8314 if test $found = "no" ; then 8315 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8317 fi 8318 8319 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8321 fi 8322 8323 CFLAGS="$CFLAGS -Wimplicit" 8324 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8326$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8327 cacheid=xorg_cv_cc_flag__Wimplicit 8328 if eval \${$cacheid+:} false; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333int i; 8334int 8335main () 8336{ 8337 8338 ; 8339 return 0; 8340} 8341_ACEOF 8342if ac_fn_c_try_link "$LINENO"; then : 8343 eval $cacheid=yes 8344else 8345 eval $cacheid=no 8346fi 8347rm -f core conftest.err conftest.$ac_objext \ 8348 conftest$ac_exeext conftest.$ac_ext 8349fi 8350 8351 8352 CFLAGS="$xorg_testset_save_CFLAGS" 8353 8354 eval supported=\$$cacheid 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8356$as_echo "$supported" >&6; } 8357 if test "$supported" = "yes" ; then 8358 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8359 found="yes" 8360 fi 8361 fi 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377xorg_testset_save_CFLAGS="$CFLAGS" 8378 8379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8384 $as_echo_n "(cached) " >&6 8385else 8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8387/* end confdefs.h. */ 8388int i; 8389_ACEOF 8390if ac_fn_c_try_compile "$LINENO"; then : 8391 xorg_cv_cc_flag_unknown_warning_option=yes 8392else 8393 xorg_cv_cc_flag_unknown_warning_option=no 8394fi 8395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8396fi 8397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8400 CFLAGS="$xorg_testset_save_CFLAGS" 8401fi 8402 8403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 fi 8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8411 $as_echo_n "(cached) " >&6 8412else 8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414/* end confdefs.h. */ 8415int i; 8416_ACEOF 8417if ac_fn_c_try_compile "$LINENO"; then : 8418 xorg_cv_cc_flag_unused_command_line_argument=yes 8419else 8420 xorg_cv_cc_flag_unused_command_line_argument=no 8421fi 8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8423fi 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8427 CFLAGS="$xorg_testset_save_CFLAGS" 8428fi 8429 8430found="no" 8431 8432 if test $found = "no" ; then 8433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8435 fi 8436 8437 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8439 fi 8440 8441 CFLAGS="$CFLAGS -Wnonnull" 8442 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8444$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8445 cacheid=xorg_cv_cc_flag__Wnonnull 8446 if eval \${$cacheid+:} false; then : 8447 $as_echo_n "(cached) " >&6 8448else 8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8450/* end confdefs.h. */ 8451int i; 8452int 8453main () 8454{ 8455 8456 ; 8457 return 0; 8458} 8459_ACEOF 8460if ac_fn_c_try_link "$LINENO"; then : 8461 eval $cacheid=yes 8462else 8463 eval $cacheid=no 8464fi 8465rm -f core conftest.err conftest.$ac_objext \ 8466 conftest$ac_exeext conftest.$ac_ext 8467fi 8468 8469 8470 CFLAGS="$xorg_testset_save_CFLAGS" 8471 8472 eval supported=\$$cacheid 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8474$as_echo "$supported" >&6; } 8475 if test "$supported" = "yes" ; then 8476 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8477 found="yes" 8478 fi 8479 fi 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495xorg_testset_save_CFLAGS="$CFLAGS" 8496 8497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8500$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8501if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8502 $as_echo_n "(cached) " >&6 8503else 8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8505/* end confdefs.h. */ 8506int i; 8507_ACEOF 8508if ac_fn_c_try_compile "$LINENO"; then : 8509 xorg_cv_cc_flag_unknown_warning_option=yes 8510else 8511 xorg_cv_cc_flag_unknown_warning_option=no 8512fi 8513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8514fi 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8516$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8518 CFLAGS="$xorg_testset_save_CFLAGS" 8519fi 8520 8521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8524 fi 8525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8527$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8528if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8529 $as_echo_n "(cached) " >&6 8530else 8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8532/* end confdefs.h. */ 8533int i; 8534_ACEOF 8535if ac_fn_c_try_compile "$LINENO"; then : 8536 xorg_cv_cc_flag_unused_command_line_argument=yes 8537else 8538 xorg_cv_cc_flag_unused_command_line_argument=no 8539fi 8540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8541fi 8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8543$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8545 CFLAGS="$xorg_testset_save_CFLAGS" 8546fi 8547 8548found="no" 8549 8550 if test $found = "no" ; then 8551 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8553 fi 8554 8555 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8557 fi 8558 8559 CFLAGS="$CFLAGS -Winit-self" 8560 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8562$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8563 cacheid=xorg_cv_cc_flag__Winit_self 8564 if eval \${$cacheid+:} false; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8568/* end confdefs.h. */ 8569int i; 8570int 8571main () 8572{ 8573 8574 ; 8575 return 0; 8576} 8577_ACEOF 8578if ac_fn_c_try_link "$LINENO"; then : 8579 eval $cacheid=yes 8580else 8581 eval $cacheid=no 8582fi 8583rm -f core conftest.err conftest.$ac_objext \ 8584 conftest$ac_exeext conftest.$ac_ext 8585fi 8586 8587 8588 CFLAGS="$xorg_testset_save_CFLAGS" 8589 8590 eval supported=\$$cacheid 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8592$as_echo "$supported" >&6; } 8593 if test "$supported" = "yes" ; then 8594 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8595 found="yes" 8596 fi 8597 fi 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613xorg_testset_save_CFLAGS="$CFLAGS" 8614 8615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8618$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8619if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621else 8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8623/* end confdefs.h. */ 8624int i; 8625_ACEOF 8626if ac_fn_c_try_compile "$LINENO"; then : 8627 xorg_cv_cc_flag_unknown_warning_option=yes 8628else 8629 xorg_cv_cc_flag_unknown_warning_option=no 8630fi 8631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8632fi 8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8634$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8636 CFLAGS="$xorg_testset_save_CFLAGS" 8637fi 8638 8639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8642 fi 8643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8645$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8646if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8647 $as_echo_n "(cached) " >&6 8648else 8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8650/* end confdefs.h. */ 8651int i; 8652_ACEOF 8653if ac_fn_c_try_compile "$LINENO"; then : 8654 xorg_cv_cc_flag_unused_command_line_argument=yes 8655else 8656 xorg_cv_cc_flag_unused_command_line_argument=no 8657fi 8658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8659fi 8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8661$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8663 CFLAGS="$xorg_testset_save_CFLAGS" 8664fi 8665 8666found="no" 8667 8668 if test $found = "no" ; then 8669 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8671 fi 8672 8673 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8675 fi 8676 8677 CFLAGS="$CFLAGS -Wmain" 8678 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8680$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8681 cacheid=xorg_cv_cc_flag__Wmain 8682 if eval \${$cacheid+:} false; then : 8683 $as_echo_n "(cached) " >&6 8684else 8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8686/* end confdefs.h. */ 8687int i; 8688int 8689main () 8690{ 8691 8692 ; 8693 return 0; 8694} 8695_ACEOF 8696if ac_fn_c_try_link "$LINENO"; then : 8697 eval $cacheid=yes 8698else 8699 eval $cacheid=no 8700fi 8701rm -f core conftest.err conftest.$ac_objext \ 8702 conftest$ac_exeext conftest.$ac_ext 8703fi 8704 8705 8706 CFLAGS="$xorg_testset_save_CFLAGS" 8707 8708 eval supported=\$$cacheid 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8710$as_echo "$supported" >&6; } 8711 if test "$supported" = "yes" ; then 8712 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8713 found="yes" 8714 fi 8715 fi 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731xorg_testset_save_CFLAGS="$CFLAGS" 8732 8733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8736$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8737if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8738 $as_echo_n "(cached) " >&6 8739else 8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742int i; 8743_ACEOF 8744if ac_fn_c_try_compile "$LINENO"; then : 8745 xorg_cv_cc_flag_unknown_warning_option=yes 8746else 8747 xorg_cv_cc_flag_unknown_warning_option=no 8748fi 8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8750fi 8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8752$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8754 CFLAGS="$xorg_testset_save_CFLAGS" 8755fi 8756 8757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8760 fi 8761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8763$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8764if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8765 $as_echo_n "(cached) " >&6 8766else 8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8768/* end confdefs.h. */ 8769int i; 8770_ACEOF 8771if ac_fn_c_try_compile "$LINENO"; then : 8772 xorg_cv_cc_flag_unused_command_line_argument=yes 8773else 8774 xorg_cv_cc_flag_unused_command_line_argument=no 8775fi 8776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8777fi 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8779$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8781 CFLAGS="$xorg_testset_save_CFLAGS" 8782fi 8783 8784found="no" 8785 8786 if test $found = "no" ; then 8787 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8789 fi 8790 8791 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8793 fi 8794 8795 CFLAGS="$CFLAGS -Wmissing-braces" 8796 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8798$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8799 cacheid=xorg_cv_cc_flag__Wmissing_braces 8800 if eval \${$cacheid+:} false; then : 8801 $as_echo_n "(cached) " >&6 8802else 8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8804/* end confdefs.h. */ 8805int i; 8806int 8807main () 8808{ 8809 8810 ; 8811 return 0; 8812} 8813_ACEOF 8814if ac_fn_c_try_link "$LINENO"; then : 8815 eval $cacheid=yes 8816else 8817 eval $cacheid=no 8818fi 8819rm -f core conftest.err conftest.$ac_objext \ 8820 conftest$ac_exeext conftest.$ac_ext 8821fi 8822 8823 8824 CFLAGS="$xorg_testset_save_CFLAGS" 8825 8826 eval supported=\$$cacheid 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8828$as_echo "$supported" >&6; } 8829 if test "$supported" = "yes" ; then 8830 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8831 found="yes" 8832 fi 8833 fi 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849xorg_testset_save_CFLAGS="$CFLAGS" 8850 8851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8855if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8856 $as_echo_n "(cached) " >&6 8857else 8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8859/* end confdefs.h. */ 8860int i; 8861_ACEOF 8862if ac_fn_c_try_compile "$LINENO"; then : 8863 xorg_cv_cc_flag_unknown_warning_option=yes 8864else 8865 xorg_cv_cc_flag_unknown_warning_option=no 8866fi 8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8868fi 8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8870$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8872 CFLAGS="$xorg_testset_save_CFLAGS" 8873fi 8874 8875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8878 fi 8879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8881$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8882if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8883 $as_echo_n "(cached) " >&6 8884else 8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8886/* end confdefs.h. */ 8887int i; 8888_ACEOF 8889if ac_fn_c_try_compile "$LINENO"; then : 8890 xorg_cv_cc_flag_unused_command_line_argument=yes 8891else 8892 xorg_cv_cc_flag_unused_command_line_argument=no 8893fi 8894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8895fi 8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8897$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8899 CFLAGS="$xorg_testset_save_CFLAGS" 8900fi 8901 8902found="no" 8903 8904 if test $found = "no" ; then 8905 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8907 fi 8908 8909 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8911 fi 8912 8913 CFLAGS="$CFLAGS -Wsequence-point" 8914 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8916$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8917 cacheid=xorg_cv_cc_flag__Wsequence_point 8918 if eval \${$cacheid+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8922/* end confdefs.h. */ 8923int i; 8924int 8925main () 8926{ 8927 8928 ; 8929 return 0; 8930} 8931_ACEOF 8932if ac_fn_c_try_link "$LINENO"; then : 8933 eval $cacheid=yes 8934else 8935 eval $cacheid=no 8936fi 8937rm -f core conftest.err conftest.$ac_objext \ 8938 conftest$ac_exeext conftest.$ac_ext 8939fi 8940 8941 8942 CFLAGS="$xorg_testset_save_CFLAGS" 8943 8944 eval supported=\$$cacheid 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8946$as_echo "$supported" >&6; } 8947 if test "$supported" = "yes" ; then 8948 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8949 found="yes" 8950 fi 8951 fi 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967xorg_testset_save_CFLAGS="$CFLAGS" 8968 8969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8974 $as_echo_n "(cached) " >&6 8975else 8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8977/* end confdefs.h. */ 8978int i; 8979_ACEOF 8980if ac_fn_c_try_compile "$LINENO"; then : 8981 xorg_cv_cc_flag_unknown_warning_option=yes 8982else 8983 xorg_cv_cc_flag_unknown_warning_option=no 8984fi 8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8986fi 8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8990 CFLAGS="$xorg_testset_save_CFLAGS" 8991fi 8992 8993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8996 fi 8997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004/* end confdefs.h. */ 9005int i; 9006_ACEOF 9007if ac_fn_c_try_compile "$LINENO"; then : 9008 xorg_cv_cc_flag_unused_command_line_argument=yes 9009else 9010 xorg_cv_cc_flag_unused_command_line_argument=no 9011fi 9012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9013fi 9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9017 CFLAGS="$xorg_testset_save_CFLAGS" 9018fi 9019 9020found="no" 9021 9022 if test $found = "no" ; then 9023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9025 fi 9026 9027 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9029 fi 9030 9031 CFLAGS="$CFLAGS -Wreturn-type" 9032 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9034$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9035 cacheid=xorg_cv_cc_flag__Wreturn_type 9036 if eval \${$cacheid+:} false; then : 9037 $as_echo_n "(cached) " >&6 9038else 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041int i; 9042int 9043main () 9044{ 9045 9046 ; 9047 return 0; 9048} 9049_ACEOF 9050if ac_fn_c_try_link "$LINENO"; then : 9051 eval $cacheid=yes 9052else 9053 eval $cacheid=no 9054fi 9055rm -f core conftest.err conftest.$ac_objext \ 9056 conftest$ac_exeext conftest.$ac_ext 9057fi 9058 9059 9060 CFLAGS="$xorg_testset_save_CFLAGS" 9061 9062 eval supported=\$$cacheid 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9064$as_echo "$supported" >&6; } 9065 if test "$supported" = "yes" ; then 9066 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9067 found="yes" 9068 fi 9069 fi 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085xorg_testset_save_CFLAGS="$CFLAGS" 9086 9087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9092 $as_echo_n "(cached) " >&6 9093else 9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9095/* end confdefs.h. */ 9096int i; 9097_ACEOF 9098if ac_fn_c_try_compile "$LINENO"; then : 9099 xorg_cv_cc_flag_unknown_warning_option=yes 9100else 9101 xorg_cv_cc_flag_unknown_warning_option=no 9102fi 9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9104fi 9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9108 CFLAGS="$xorg_testset_save_CFLAGS" 9109fi 9110 9111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9114 fi 9115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9119 $as_echo_n "(cached) " >&6 9120else 9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9122/* end confdefs.h. */ 9123int i; 9124_ACEOF 9125if ac_fn_c_try_compile "$LINENO"; then : 9126 xorg_cv_cc_flag_unused_command_line_argument=yes 9127else 9128 xorg_cv_cc_flag_unused_command_line_argument=no 9129fi 9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9131fi 9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9135 CFLAGS="$xorg_testset_save_CFLAGS" 9136fi 9137 9138found="no" 9139 9140 if test $found = "no" ; then 9141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9143 fi 9144 9145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9147 fi 9148 9149 CFLAGS="$CFLAGS -Wtrigraphs" 9150 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9152$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9153 cacheid=xorg_cv_cc_flag__Wtrigraphs 9154 if eval \${$cacheid+:} false; then : 9155 $as_echo_n "(cached) " >&6 9156else 9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9158/* end confdefs.h. */ 9159int i; 9160int 9161main () 9162{ 9163 9164 ; 9165 return 0; 9166} 9167_ACEOF 9168if ac_fn_c_try_link "$LINENO"; then : 9169 eval $cacheid=yes 9170else 9171 eval $cacheid=no 9172fi 9173rm -f core conftest.err conftest.$ac_objext \ 9174 conftest$ac_exeext conftest.$ac_ext 9175fi 9176 9177 9178 CFLAGS="$xorg_testset_save_CFLAGS" 9179 9180 eval supported=\$$cacheid 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9182$as_echo "$supported" >&6; } 9183 if test "$supported" = "yes" ; then 9184 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9185 found="yes" 9186 fi 9187 fi 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203xorg_testset_save_CFLAGS="$CFLAGS" 9204 9205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9210 $as_echo_n "(cached) " >&6 9211else 9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9213/* end confdefs.h. */ 9214int i; 9215_ACEOF 9216if ac_fn_c_try_compile "$LINENO"; then : 9217 xorg_cv_cc_flag_unknown_warning_option=yes 9218else 9219 xorg_cv_cc_flag_unknown_warning_option=no 9220fi 9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9222fi 9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9226 CFLAGS="$xorg_testset_save_CFLAGS" 9227fi 9228 9229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9232 fi 9233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9237 $as_echo_n "(cached) " >&6 9238else 9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9240/* end confdefs.h. */ 9241int i; 9242_ACEOF 9243if ac_fn_c_try_compile "$LINENO"; then : 9244 xorg_cv_cc_flag_unused_command_line_argument=yes 9245else 9246 xorg_cv_cc_flag_unused_command_line_argument=no 9247fi 9248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9249fi 9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9253 CFLAGS="$xorg_testset_save_CFLAGS" 9254fi 9255 9256found="no" 9257 9258 if test $found = "no" ; then 9259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9261 fi 9262 9263 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9265 fi 9266 9267 CFLAGS="$CFLAGS -Warray-bounds" 9268 9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9270$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9271 cacheid=xorg_cv_cc_flag__Warray_bounds 9272 if eval \${$cacheid+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274else 9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9276/* end confdefs.h. */ 9277int i; 9278int 9279main () 9280{ 9281 9282 ; 9283 return 0; 9284} 9285_ACEOF 9286if ac_fn_c_try_link "$LINENO"; then : 9287 eval $cacheid=yes 9288else 9289 eval $cacheid=no 9290fi 9291rm -f core conftest.err conftest.$ac_objext \ 9292 conftest$ac_exeext conftest.$ac_ext 9293fi 9294 9295 9296 CFLAGS="$xorg_testset_save_CFLAGS" 9297 9298 eval supported=\$$cacheid 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9300$as_echo "$supported" >&6; } 9301 if test "$supported" = "yes" ; then 9302 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9303 found="yes" 9304 fi 9305 fi 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321xorg_testset_save_CFLAGS="$CFLAGS" 9322 9323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9328 $as_echo_n "(cached) " >&6 9329else 9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9331/* end confdefs.h. */ 9332int i; 9333_ACEOF 9334if ac_fn_c_try_compile "$LINENO"; then : 9335 xorg_cv_cc_flag_unknown_warning_option=yes 9336else 9337 xorg_cv_cc_flag_unknown_warning_option=no 9338fi 9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9340fi 9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9344 CFLAGS="$xorg_testset_save_CFLAGS" 9345fi 9346 9347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9350 fi 9351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9355 $as_echo_n "(cached) " >&6 9356else 9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9358/* end confdefs.h. */ 9359int i; 9360_ACEOF 9361if ac_fn_c_try_compile "$LINENO"; then : 9362 xorg_cv_cc_flag_unused_command_line_argument=yes 9363else 9364 xorg_cv_cc_flag_unused_command_line_argument=no 9365fi 9366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9367fi 9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9371 CFLAGS="$xorg_testset_save_CFLAGS" 9372fi 9373 9374found="no" 9375 9376 if test $found = "no" ; then 9377 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9379 fi 9380 9381 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9383 fi 9384 9385 CFLAGS="$CFLAGS -Wwrite-strings" 9386 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9388$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9389 cacheid=xorg_cv_cc_flag__Wwrite_strings 9390 if eval \${$cacheid+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394/* end confdefs.h. */ 9395int i; 9396int 9397main () 9398{ 9399 9400 ; 9401 return 0; 9402} 9403_ACEOF 9404if ac_fn_c_try_link "$LINENO"; then : 9405 eval $cacheid=yes 9406else 9407 eval $cacheid=no 9408fi 9409rm -f core conftest.err conftest.$ac_objext \ 9410 conftest$ac_exeext conftest.$ac_ext 9411fi 9412 9413 9414 CFLAGS="$xorg_testset_save_CFLAGS" 9415 9416 eval supported=\$$cacheid 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9418$as_echo "$supported" >&6; } 9419 if test "$supported" = "yes" ; then 9420 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9421 found="yes" 9422 fi 9423 fi 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439xorg_testset_save_CFLAGS="$CFLAGS" 9440 9441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9446 $as_echo_n "(cached) " >&6 9447else 9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9449/* end confdefs.h. */ 9450int i; 9451_ACEOF 9452if ac_fn_c_try_compile "$LINENO"; then : 9453 xorg_cv_cc_flag_unknown_warning_option=yes 9454else 9455 xorg_cv_cc_flag_unknown_warning_option=no 9456fi 9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9458fi 9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9462 CFLAGS="$xorg_testset_save_CFLAGS" 9463fi 9464 9465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9468 fi 9469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9476/* end confdefs.h. */ 9477int i; 9478_ACEOF 9479if ac_fn_c_try_compile "$LINENO"; then : 9480 xorg_cv_cc_flag_unused_command_line_argument=yes 9481else 9482 xorg_cv_cc_flag_unused_command_line_argument=no 9483fi 9484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9485fi 9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9489 CFLAGS="$xorg_testset_save_CFLAGS" 9490fi 9491 9492found="no" 9493 9494 if test $found = "no" ; then 9495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9497 fi 9498 9499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9501 fi 9502 9503 CFLAGS="$CFLAGS -Waddress" 9504 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9506$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9507 cacheid=xorg_cv_cc_flag__Waddress 9508 if eval \${$cacheid+:} false; then : 9509 $as_echo_n "(cached) " >&6 9510else 9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9512/* end confdefs.h. */ 9513int i; 9514int 9515main () 9516{ 9517 9518 ; 9519 return 0; 9520} 9521_ACEOF 9522if ac_fn_c_try_link "$LINENO"; then : 9523 eval $cacheid=yes 9524else 9525 eval $cacheid=no 9526fi 9527rm -f core conftest.err conftest.$ac_objext \ 9528 conftest$ac_exeext conftest.$ac_ext 9529fi 9530 9531 9532 CFLAGS="$xorg_testset_save_CFLAGS" 9533 9534 eval supported=\$$cacheid 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9536$as_echo "$supported" >&6; } 9537 if test "$supported" = "yes" ; then 9538 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9539 found="yes" 9540 fi 9541 fi 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557xorg_testset_save_CFLAGS="$CFLAGS" 9558 9559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9564 $as_echo_n "(cached) " >&6 9565else 9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9567/* end confdefs.h. */ 9568int i; 9569_ACEOF 9570if ac_fn_c_try_compile "$LINENO"; then : 9571 xorg_cv_cc_flag_unknown_warning_option=yes 9572else 9573 xorg_cv_cc_flag_unknown_warning_option=no 9574fi 9575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9576fi 9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9580 CFLAGS="$xorg_testset_save_CFLAGS" 9581fi 9582 9583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9586 fi 9587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594/* end confdefs.h. */ 9595int i; 9596_ACEOF 9597if ac_fn_c_try_compile "$LINENO"; then : 9598 xorg_cv_cc_flag_unused_command_line_argument=yes 9599else 9600 xorg_cv_cc_flag_unused_command_line_argument=no 9601fi 9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9603fi 9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9607 CFLAGS="$xorg_testset_save_CFLAGS" 9608fi 9609 9610found="no" 9611 9612 if test $found = "no" ; then 9613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9615 fi 9616 9617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9619 fi 9620 9621 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9622 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9624$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9625 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9626 if eval \${$cacheid+:} false; then : 9627 $as_echo_n "(cached) " >&6 9628else 9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630/* end confdefs.h. */ 9631int i; 9632int 9633main () 9634{ 9635 9636 ; 9637 return 0; 9638} 9639_ACEOF 9640if ac_fn_c_try_link "$LINENO"; then : 9641 eval $cacheid=yes 9642else 9643 eval $cacheid=no 9644fi 9645rm -f core conftest.err conftest.$ac_objext \ 9646 conftest$ac_exeext conftest.$ac_ext 9647fi 9648 9649 9650 CFLAGS="$xorg_testset_save_CFLAGS" 9651 9652 eval supported=\$$cacheid 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9654$as_echo "$supported" >&6; } 9655 if test "$supported" = "yes" ; then 9656 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9657 found="yes" 9658 fi 9659 fi 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675xorg_testset_save_CFLAGS="$CFLAGS" 9676 9677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9682 $as_echo_n "(cached) " >&6 9683else 9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9685/* end confdefs.h. */ 9686int i; 9687_ACEOF 9688if ac_fn_c_try_compile "$LINENO"; then : 9689 xorg_cv_cc_flag_unknown_warning_option=yes 9690else 9691 xorg_cv_cc_flag_unknown_warning_option=no 9692fi 9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9694fi 9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9698 CFLAGS="$xorg_testset_save_CFLAGS" 9699fi 9700 9701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9704 fi 9705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9709 $as_echo_n "(cached) " >&6 9710else 9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712/* end confdefs.h. */ 9713int i; 9714_ACEOF 9715if ac_fn_c_try_compile "$LINENO"; then : 9716 xorg_cv_cc_flag_unused_command_line_argument=yes 9717else 9718 xorg_cv_cc_flag_unused_command_line_argument=no 9719fi 9720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9721fi 9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9725 CFLAGS="$xorg_testset_save_CFLAGS" 9726fi 9727 9728found="no" 9729 9730 if test $found = "no" ; then 9731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9733 fi 9734 9735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9737 fi 9738 9739 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9740 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9742$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9743 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9744 if eval \${$cacheid+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746else 9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9748/* end confdefs.h. */ 9749int i; 9750int 9751main () 9752{ 9753 9754 ; 9755 return 0; 9756} 9757_ACEOF 9758if ac_fn_c_try_link "$LINENO"; then : 9759 eval $cacheid=yes 9760else 9761 eval $cacheid=no 9762fi 9763rm -f core conftest.err conftest.$ac_objext \ 9764 conftest$ac_exeext conftest.$ac_ext 9765fi 9766 9767 9768 CFLAGS="$xorg_testset_save_CFLAGS" 9769 9770 eval supported=\$$cacheid 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9772$as_echo "$supported" >&6; } 9773 if test "$supported" = "yes" ; then 9774 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9775 found="yes" 9776 fi 9777 fi 9778 9779 9780fi 9781 9782 9783 9784 9785 9786 9787 9788 CWARNFLAGS="$BASE_CFLAGS" 9789 if test "x$GCC" = xyes ; then 9790 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9791 fi 9792 9793 9794 9795 9796 9797 9798 9799 9800# Check whether --enable-strict-compilation was given. 9801if test "${enable_strict_compilation+set}" = set; then : 9802 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9803else 9804 STRICT_COMPILE=no 9805fi 9806 9807 9808 9809 9810 9811 9812STRICT_CFLAGS="" 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_unknown_warning_option" = "xyes" ; then 9883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9884 fi 9885 9886 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9888 fi 9889 9890 CFLAGS="$CFLAGS -pedantic" 9891 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9893$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9894 cacheid=xorg_cv_cc_flag__pedantic 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 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 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_unknown_warning_option" = "xyes" ; then 10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10002 fi 10003 10004 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10006 fi 10007 10008 CFLAGS="$CFLAGS -Werror" 10009 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10011$as_echo_n "checking if $CC supports -Werror... " >&6; } 10012 cacheid=xorg_cv_cc_flag__Werror 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 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10044 found="yes" 10045 fi 10046 fi 10047 10048 if test $found = "no" ; then 10049 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 fi 10052 10053 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10055 fi 10056 10057 CFLAGS="$CFLAGS -errwarn" 10058 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10060$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10061 cacheid=xorg_cv_cc_flag__errwarn 10062 if eval \${$cacheid+:} false; then : 10063 $as_echo_n "(cached) " >&6 10064else 10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066/* end confdefs.h. */ 10067int i; 10068int 10069main () 10070{ 10071 10072 ; 10073 return 0; 10074} 10075_ACEOF 10076if ac_fn_c_try_link "$LINENO"; then : 10077 eval $cacheid=yes 10078else 10079 eval $cacheid=no 10080fi 10081rm -f core conftest.err conftest.$ac_objext \ 10082 conftest$ac_exeext conftest.$ac_ext 10083fi 10084 10085 10086 CFLAGS="$xorg_testset_save_CFLAGS" 10087 10088 eval supported=\$$cacheid 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10090$as_echo "$supported" >&6; } 10091 if test "$supported" = "yes" ; then 10092 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10093 found="yes" 10094 fi 10095 fi 10096 10097 10098 10099# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10100# activate it with -Werror, so we add it here explicitly. 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114xorg_testset_save_CFLAGS="$CFLAGS" 10115 10116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10121 $as_echo_n "(cached) " >&6 10122else 10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10124/* end confdefs.h. */ 10125int i; 10126_ACEOF 10127if ac_fn_c_try_compile "$LINENO"; then : 10128 xorg_cv_cc_flag_unknown_warning_option=yes 10129else 10130 xorg_cv_cc_flag_unknown_warning_option=no 10131fi 10132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10133fi 10134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10137 CFLAGS="$xorg_testset_save_CFLAGS" 10138fi 10139 10140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10143 fi 10144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10148 $as_echo_n "(cached) " >&6 10149else 10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10151/* end confdefs.h. */ 10152int i; 10153_ACEOF 10154if ac_fn_c_try_compile "$LINENO"; then : 10155 xorg_cv_cc_flag_unused_command_line_argument=yes 10156else 10157 xorg_cv_cc_flag_unused_command_line_argument=no 10158fi 10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10160fi 10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10164 CFLAGS="$xorg_testset_save_CFLAGS" 10165fi 10166 10167found="no" 10168 10169 if test $found = "no" ; then 10170 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10172 fi 10173 10174 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10176 fi 10177 10178 CFLAGS="$CFLAGS -Werror=attributes" 10179 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10181$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10182 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10183 if eval \${$cacheid+:} false; then : 10184 $as_echo_n "(cached) " >&6 10185else 10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10187/* end confdefs.h. */ 10188int i; 10189int 10190main () 10191{ 10192 10193 ; 10194 return 0; 10195} 10196_ACEOF 10197if ac_fn_c_try_link "$LINENO"; then : 10198 eval $cacheid=yes 10199else 10200 eval $cacheid=no 10201fi 10202rm -f core conftest.err conftest.$ac_objext \ 10203 conftest$ac_exeext conftest.$ac_ext 10204fi 10205 10206 10207 CFLAGS="$xorg_testset_save_CFLAGS" 10208 10209 eval supported=\$$cacheid 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10211$as_echo "$supported" >&6; } 10212 if test "$supported" = "yes" ; then 10213 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10214 found="yes" 10215 fi 10216 fi 10217 10218 10219 10220if test "x$STRICT_COMPILE" = "xyes"; then 10221 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10222 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10223fi 10224 10225 10226 10227 10228 10229 10230cat >>confdefs.h <<_ACEOF 10231#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10232_ACEOF 10233 10234 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10235 if test "x$PVM" = "x"; then 10236 PVM="0" 10237 fi 10238 10239cat >>confdefs.h <<_ACEOF 10240#define PACKAGE_VERSION_MINOR $PVM 10241_ACEOF 10242 10243 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10244 if test "x$PVP" = "x"; then 10245 PVP="0" 10246 fi 10247 10248cat >>confdefs.h <<_ACEOF 10249#define PACKAGE_VERSION_PATCHLEVEL $PVP 10250_ACEOF 10251 10252 10253 10254CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10255mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10256|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10257echo 'git directory not found: installing possibly empty changelog.' >&2)" 10258 10259 10260 10261 10262macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10263INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10264mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10265|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10266echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10267 10268 10269 10270 10271 10272 10273if test x$APP_MAN_SUFFIX = x ; then 10274 APP_MAN_SUFFIX=1 10275fi 10276if test x$APP_MAN_DIR = x ; then 10277 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10278fi 10279 10280if test x$LIB_MAN_SUFFIX = x ; then 10281 LIB_MAN_SUFFIX=3 10282fi 10283if test x$LIB_MAN_DIR = x ; then 10284 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10285fi 10286 10287if test x$FILE_MAN_SUFFIX = x ; then 10288 case $host_os in 10289 solaris*) FILE_MAN_SUFFIX=4 ;; 10290 *) FILE_MAN_SUFFIX=5 ;; 10291 esac 10292fi 10293if test x$FILE_MAN_DIR = x ; then 10294 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10295fi 10296 10297if test x$MISC_MAN_SUFFIX = x ; then 10298 case $host_os in 10299 solaris*) MISC_MAN_SUFFIX=5 ;; 10300 *) MISC_MAN_SUFFIX=7 ;; 10301 esac 10302fi 10303if test x$MISC_MAN_DIR = x ; then 10304 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10305fi 10306 10307if test x$DRIVER_MAN_SUFFIX = x ; then 10308 case $host_os in 10309 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10310 *) DRIVER_MAN_SUFFIX=4 ;; 10311 esac 10312fi 10313if test x$DRIVER_MAN_DIR = x ; then 10314 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10315fi 10316 10317if test x$ADMIN_MAN_SUFFIX = x ; then 10318 case $host_os in 10319 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10320 *) ADMIN_MAN_SUFFIX=8 ;; 10321 esac 10322fi 10323if test x$ADMIN_MAN_DIR = x ; then 10324 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10325fi 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341XORG_MAN_PAGE="X Version 11" 10342 10343MAN_SUBSTS="\ 10344 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10345 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10346 -e 's|__xservername__|Xorg|g' \ 10347 -e 's|__xconfigfile__|xorg.conf|g' \ 10348 -e 's|__projectroot__|\$(prefix)|g' \ 10349 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10350 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10351 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10352 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10353 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10354 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10355 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10356 10357 10358 10359# Check whether --enable-silent-rules was given. 10360if test "${enable_silent_rules+set}" = set; then : 10361 enableval=$enable_silent_rules; 10362fi 10363 10364case $enable_silent_rules in 10365yes) AM_DEFAULT_VERBOSITY=0;; 10366no) AM_DEFAULT_VERBOSITY=1;; 10367*) AM_DEFAULT_VERBOSITY=0;; 10368esac 10369AM_BACKSLASH='\' 10370 10371 10372 10373 10374# Checks for pkg-config packages 10375 10376pkg_failed=no 10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BDFTOPCF" >&5 10378$as_echo_n "checking for BDFTOPCF... " >&6; } 10379 10380if test -n "$BDFTOPCF_CFLAGS"; then 10381 pkg_cv_BDFTOPCF_CFLAGS="$BDFTOPCF_CFLAGS" 10382 elif test -n "$PKG_CONFIG"; then 10383 if test -n "$PKG_CONFIG" && \ 10384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfont\""; } >&5 10385 ($PKG_CONFIG --exists --print-errors "xfont") 2>&5 10386 ac_status=$? 10387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10388 test $ac_status = 0; }; then 10389 pkg_cv_BDFTOPCF_CFLAGS=`$PKG_CONFIG --cflags "xfont" 2>/dev/null` 10390else 10391 pkg_failed=yes 10392fi 10393 else 10394 pkg_failed=untried 10395fi 10396if test -n "$BDFTOPCF_LIBS"; then 10397 pkg_cv_BDFTOPCF_LIBS="$BDFTOPCF_LIBS" 10398 elif test -n "$PKG_CONFIG"; then 10399 if test -n "$PKG_CONFIG" && \ 10400 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfont\""; } >&5 10401 ($PKG_CONFIG --exists --print-errors "xfont") 2>&5 10402 ac_status=$? 10403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10404 test $ac_status = 0; }; then 10405 pkg_cv_BDFTOPCF_LIBS=`$PKG_CONFIG --libs "xfont" 2>/dev/null` 10406else 10407 pkg_failed=yes 10408fi 10409 else 10410 pkg_failed=untried 10411fi 10412 10413 10414 10415if test $pkg_failed = yes; then 10416 10417if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10418 _pkg_short_errors_supported=yes 10419else 10420 _pkg_short_errors_supported=no 10421fi 10422 if test $_pkg_short_errors_supported = yes; then 10423 BDFTOPCF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfont" 2>&1` 10424 else 10425 BDFTOPCF_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfont" 2>&1` 10426 fi 10427 # Put the nasty error message in config.log where it belongs 10428 echo "$BDFTOPCF_PKG_ERRORS" >&5 10429 10430 as_fn_error $? "Package requirements (xfont) were not met: 10431 10432$BDFTOPCF_PKG_ERRORS 10433 10434Consider adjusting the PKG_CONFIG_PATH environment variable if you 10435installed software in a non-standard prefix. 10436 10437Alternatively, you may set the environment variables BDFTOPCF_CFLAGS 10438and BDFTOPCF_LIBS to avoid the need to call pkg-config. 10439See the pkg-config man page for more details. 10440" "$LINENO" 5 10441elif test $pkg_failed = untried; then 10442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10444as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10445is in your PATH or set the PKG_CONFIG environment variable to the full 10446path to pkg-config. 10447 10448Alternatively, you may set the environment variables BDFTOPCF_CFLAGS 10449and BDFTOPCF_LIBS to avoid the need to call pkg-config. 10450See the pkg-config man page for more details. 10451 10452To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10453See \`config.log' for more details" "$LINENO" 5; } 10454else 10455 BDFTOPCF_CFLAGS=$pkg_cv_BDFTOPCF_CFLAGS 10456 BDFTOPCF_LIBS=$pkg_cv_BDFTOPCF_LIBS 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10458$as_echo "yes" >&6; } 10459 : 10460fi 10461 10462 10463 10464 10465 10466 10467# Check whether --with-lint was given. 10468if test "${with_lint+set}" = set; then : 10469 withval=$with_lint; use_lint=$withval 10470else 10471 use_lint=no 10472fi 10473 10474 10475# Obtain platform specific info like program name and options 10476# The lint program on FreeBSD and NetBSD is different from the one on Solaris 10477case $host_os in 10478 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 10479 lint_name=splint 10480 lint_options="-badflag" 10481 ;; 10482 *freebsd* | *netbsd*) 10483 lint_name=lint 10484 lint_options="-u -b" 10485 ;; 10486 *solaris*) 10487 lint_name=lint 10488 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 10489 ;; 10490esac 10491 10492# Test for the presence of the program (either guessed by the code or spelled out by the user) 10493if test "x$use_lint" = x"yes" ; then 10494 # Extract the first word of "$lint_name", so it can be a program name with args. 10495set dummy $lint_name; ac_word=$2 10496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10497$as_echo_n "checking for $ac_word... " >&6; } 10498if ${ac_cv_path_LINT+:} false; then : 10499 $as_echo_n "(cached) " >&6 10500else 10501 case $LINT in 10502 [\\/]* | ?:[\\/]*) 10503 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 10504 ;; 10505 *) 10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10507for as_dir in $PATH 10508do 10509 IFS=$as_save_IFS 10510 test -z "$as_dir" && as_dir=. 10511 for ac_exec_ext in '' $ac_executable_extensions; do 10512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10513 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10515 break 2 10516 fi 10517done 10518 done 10519IFS=$as_save_IFS 10520 10521 ;; 10522esac 10523fi 10524LINT=$ac_cv_path_LINT 10525if test -n "$LINT"; then 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 10527$as_echo "$LINT" >&6; } 10528else 10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10530$as_echo "no" >&6; } 10531fi 10532 10533 10534 if test "x$LINT" = "x"; then 10535 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 10536 fi 10537elif test "x$use_lint" = x"no" ; then 10538 if test "x$LINT" != "x"; then 10539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 10540$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 10541 fi 10542else 10543 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 10544fi 10545 10546# User supplied flags override default flags 10547if test "x$LINT_FLAGS" != "x"; then 10548 lint_options=$LINT_FLAGS 10549fi 10550 10551LINT_FLAGS=$lint_options 10552 10553 if test "x$LINT" != x; then 10554 LINT_TRUE= 10555 LINT_FALSE='#' 10556else 10557 LINT_TRUE='#' 10558 LINT_FALSE= 10559fi 10560 10561 10562 10563 10564ac_config_files="$ac_config_files Makefile man/Makefile" 10565 10566cat >confcache <<\_ACEOF 10567# This file is a shell script that caches the results of configure 10568# tests run on this system so they can be shared between configure 10569# scripts and configure runs, see configure's option --config-cache. 10570# It is not useful on other systems. If it contains results you don't 10571# want to keep, you may remove or edit it. 10572# 10573# config.status only pays attention to the cache file if you give it 10574# the --recheck option to rerun configure. 10575# 10576# `ac_cv_env_foo' variables (set or unset) will be overridden when 10577# loading this file, other *unset* `ac_cv_foo' will be assigned the 10578# following values. 10579 10580_ACEOF 10581 10582# The following way of writing the cache mishandles newlines in values, 10583# but we know of no workaround that is simple, portable, and efficient. 10584# So, we kill variables containing newlines. 10585# Ultrix sh set writes to stderr and can't be redirected directly, 10586# and sets the high bit in the cache file unless we assign to the vars. 10587( 10588 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10589 eval ac_val=\$$ac_var 10590 case $ac_val in #( 10591 *${as_nl}*) 10592 case $ac_var in #( 10593 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10594$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10595 esac 10596 case $ac_var in #( 10597 _ | IFS | as_nl) ;; #( 10598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10599 *) { eval $ac_var=; unset $ac_var;} ;; 10600 esac ;; 10601 esac 10602 done 10603 10604 (set) 2>&1 | 10605 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10606 *${as_nl}ac_space=\ *) 10607 # `set' does not quote correctly, so add quotes: double-quote 10608 # substitution turns \\\\ into \\, and sed turns \\ into \. 10609 sed -n \ 10610 "s/'/'\\\\''/g; 10611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10612 ;; #( 10613 *) 10614 # `set' quotes correctly as required by POSIX, so do not add quotes. 10615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10616 ;; 10617 esac | 10618 sort 10619) | 10620 sed ' 10621 /^ac_cv_env_/b end 10622 t clear 10623 :clear 10624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10625 t end 10626 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10627 :end' >>confcache 10628if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10629 if test -w "$cache_file"; then 10630 if test "x$cache_file" != "x/dev/null"; then 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10632$as_echo "$as_me: updating cache $cache_file" >&6;} 10633 if test ! -f "$cache_file" || test -h "$cache_file"; then 10634 cat confcache >"$cache_file" 10635 else 10636 case $cache_file in #( 10637 */* | ?:*) 10638 mv -f confcache "$cache_file"$$ && 10639 mv -f "$cache_file"$$ "$cache_file" ;; #( 10640 *) 10641 mv -f confcache "$cache_file" ;; 10642 esac 10643 fi 10644 fi 10645 else 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10647$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10648 fi 10649fi 10650rm -f confcache 10651 10652test "x$prefix" = xNONE && prefix=$ac_default_prefix 10653# Let make expand exec_prefix. 10654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10655 10656DEFS=-DHAVE_CONFIG_H 10657 10658ac_libobjs= 10659ac_ltlibobjs= 10660U= 10661for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10662 # 1. Remove the extension, and $U if already installed. 10663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10664 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10666 # will be set to the directory where LIBOBJS objects are built. 10667 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10668 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10669done 10670LIBOBJS=$ac_libobjs 10671 10672LTLIBOBJS=$ac_ltlibobjs 10673 10674 10675 if test -n "$EXEEXT"; then 10676 am__EXEEXT_TRUE= 10677 am__EXEEXT_FALSE='#' 10678else 10679 am__EXEEXT_TRUE='#' 10680 am__EXEEXT_FALSE= 10681fi 10682 10683if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10684 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10685Usually this means the macro was only invoked conditionally." "$LINENO" 5 10686fi 10687if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10688 as_fn_error $? "conditional \"AMDEP\" was never defined. 10689Usually this means the macro was only invoked conditionally." "$LINENO" 5 10690fi 10691if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10692 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10693Usually this means the macro was only invoked conditionally." "$LINENO" 5 10694fi 10695if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 10696 as_fn_error $? "conditional \"LINT\" was never defined. 10697Usually this means the macro was only invoked conditionally." "$LINENO" 5 10698fi 10699 10700: "${CONFIG_STATUS=./config.status}" 10701ac_write_fail=0 10702ac_clean_files_save=$ac_clean_files 10703ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10704{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10705$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10706as_write_fail=0 10707cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10708#! $SHELL 10709# Generated by $as_me. 10710# Run this file to recreate the current configuration. 10711# Compiler output produced by configure, useful for debugging 10712# configure, is in config.log if it exists. 10713 10714debug=false 10715ac_cs_recheck=false 10716ac_cs_silent=false 10717 10718SHELL=\${CONFIG_SHELL-$SHELL} 10719export SHELL 10720_ASEOF 10721cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10722## -------------------- ## 10723## M4sh Initialization. ## 10724## -------------------- ## 10725 10726# Be more Bourne compatible 10727DUALCASE=1; export DUALCASE # for MKS sh 10728if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10729 emulate sh 10730 NULLCMD=: 10731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10732 # is contrary to our usage. Disable this feature. 10733 alias -g '${1+"$@"}'='"$@"' 10734 setopt NO_GLOB_SUBST 10735else 10736 case `(set -o) 2>/dev/null` in #( 10737 *posix*) : 10738 set -o posix ;; #( 10739 *) : 10740 ;; 10741esac 10742fi 10743 10744 10745as_nl=' 10746' 10747export as_nl 10748# Printing a long string crashes Solaris 7 /usr/bin/printf. 10749as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10750as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10751as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10752# Prefer a ksh shell builtin over an external printf program on Solaris, 10753# but without wasting forks for bash or zsh. 10754if test -z "$BASH_VERSION$ZSH_VERSION" \ 10755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10756 as_echo='print -r --' 10757 as_echo_n='print -rn --' 10758elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10759 as_echo='printf %s\n' 10760 as_echo_n='printf %s' 10761else 10762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10763 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10764 as_echo_n='/usr/ucb/echo -n' 10765 else 10766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10767 as_echo_n_body='eval 10768 arg=$1; 10769 case $arg in #( 10770 *"$as_nl"*) 10771 expr "X$arg" : "X\\(.*\\)$as_nl"; 10772 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10773 esac; 10774 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10775 ' 10776 export as_echo_n_body 10777 as_echo_n='sh -c $as_echo_n_body as_echo' 10778 fi 10779 export as_echo_body 10780 as_echo='sh -c $as_echo_body as_echo' 10781fi 10782 10783# The user is always right. 10784if test "${PATH_SEPARATOR+set}" != set; then 10785 PATH_SEPARATOR=: 10786 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10787 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10788 PATH_SEPARATOR=';' 10789 } 10790fi 10791 10792 10793# IFS 10794# We need space, tab and new line, in precisely that order. Quoting is 10795# there to prevent editors from complaining about space-tab. 10796# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10797# splitting by setting IFS to empty value.) 10798IFS=" "" $as_nl" 10799 10800# Find who we are. Look in the path if we contain no directory separator. 10801as_myself= 10802case $0 in #(( 10803 *[\\/]* ) as_myself=$0 ;; 10804 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10805for as_dir in $PATH 10806do 10807 IFS=$as_save_IFS 10808 test -z "$as_dir" && as_dir=. 10809 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10810 done 10811IFS=$as_save_IFS 10812 10813 ;; 10814esac 10815# We did not find ourselves, most probably we were run as `sh COMMAND' 10816# in which case we are not to be found in the path. 10817if test "x$as_myself" = x; then 10818 as_myself=$0 10819fi 10820if test ! -f "$as_myself"; then 10821 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10822 exit 1 10823fi 10824 10825# Unset variables that we do not need and which cause bugs (e.g. in 10826# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10827# suppresses any "Segmentation fault" message there. '((' could 10828# trigger a bug in pdksh 5.2.14. 10829for as_var in BASH_ENV ENV MAIL MAILPATH 10830do eval test x\${$as_var+set} = xset \ 10831 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10832done 10833PS1='$ ' 10834PS2='> ' 10835PS4='+ ' 10836 10837# NLS nuisances. 10838LC_ALL=C 10839export LC_ALL 10840LANGUAGE=C 10841export LANGUAGE 10842 10843# CDPATH. 10844(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10845 10846 10847# as_fn_error STATUS ERROR [LINENO LOG_FD] 10848# ---------------------------------------- 10849# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10850# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10851# script with STATUS, using 1 if that was 0. 10852as_fn_error () 10853{ 10854 as_status=$1; test $as_status -eq 0 && as_status=1 10855 if test "$4"; then 10856 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10857 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10858 fi 10859 $as_echo "$as_me: error: $2" >&2 10860 as_fn_exit $as_status 10861} # as_fn_error 10862 10863 10864# as_fn_set_status STATUS 10865# ----------------------- 10866# Set $? to STATUS, without forking. 10867as_fn_set_status () 10868{ 10869 return $1 10870} # as_fn_set_status 10871 10872# as_fn_exit STATUS 10873# ----------------- 10874# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10875as_fn_exit () 10876{ 10877 set +e 10878 as_fn_set_status $1 10879 exit $1 10880} # as_fn_exit 10881 10882# as_fn_unset VAR 10883# --------------- 10884# Portably unset VAR. 10885as_fn_unset () 10886{ 10887 { eval $1=; unset $1;} 10888} 10889as_unset=as_fn_unset 10890# as_fn_append VAR VALUE 10891# ---------------------- 10892# Append the text in VALUE to the end of the definition contained in VAR. Take 10893# advantage of any shell optimizations that allow amortized linear growth over 10894# repeated appends, instead of the typical quadratic growth present in naive 10895# implementations. 10896if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10897 eval 'as_fn_append () 10898 { 10899 eval $1+=\$2 10900 }' 10901else 10902 as_fn_append () 10903 { 10904 eval $1=\$$1\$2 10905 } 10906fi # as_fn_append 10907 10908# as_fn_arith ARG... 10909# ------------------ 10910# Perform arithmetic evaluation on the ARGs, and store the result in the 10911# global $as_val. Take advantage of shells that can avoid forks. The arguments 10912# must be portable across $(()) and expr. 10913if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10914 eval 'as_fn_arith () 10915 { 10916 as_val=$(( $* )) 10917 }' 10918else 10919 as_fn_arith () 10920 { 10921 as_val=`expr "$@" || test $? -eq 1` 10922 } 10923fi # as_fn_arith 10924 10925 10926if expr a : '\(a\)' >/dev/null 2>&1 && 10927 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10928 as_expr=expr 10929else 10930 as_expr=false 10931fi 10932 10933if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10934 as_basename=basename 10935else 10936 as_basename=false 10937fi 10938 10939if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10940 as_dirname=dirname 10941else 10942 as_dirname=false 10943fi 10944 10945as_me=`$as_basename -- "$0" || 10946$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10947 X"$0" : 'X\(//\)$' \| \ 10948 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10949$as_echo X/"$0" | 10950 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10951 s//\1/ 10952 q 10953 } 10954 /^X\/\(\/\/\)$/{ 10955 s//\1/ 10956 q 10957 } 10958 /^X\/\(\/\).*/{ 10959 s//\1/ 10960 q 10961 } 10962 s/.*/./; q'` 10963 10964# Avoid depending upon Character Ranges. 10965as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10966as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10967as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10968as_cr_digits='0123456789' 10969as_cr_alnum=$as_cr_Letters$as_cr_digits 10970 10971ECHO_C= ECHO_N= ECHO_T= 10972case `echo -n x` in #((((( 10973-n*) 10974 case `echo 'xy\c'` in 10975 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10976 xy) ECHO_C='\c';; 10977 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10978 ECHO_T=' ';; 10979 esac;; 10980*) 10981 ECHO_N='-n';; 10982esac 10983 10984rm -f conf$$ conf$$.exe conf$$.file 10985if test -d conf$$.dir; then 10986 rm -f conf$$.dir/conf$$.file 10987else 10988 rm -f conf$$.dir 10989 mkdir conf$$.dir 2>/dev/null 10990fi 10991if (echo >conf$$.file) 2>/dev/null; then 10992 if ln -s conf$$.file conf$$ 2>/dev/null; then 10993 as_ln_s='ln -s' 10994 # ... but there are two gotchas: 10995 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10996 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10997 # In both cases, we have to default to `cp -p'. 10998 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10999 as_ln_s='cp -p' 11000 elif ln conf$$.file conf$$ 2>/dev/null; then 11001 as_ln_s=ln 11002 else 11003 as_ln_s='cp -p' 11004 fi 11005else 11006 as_ln_s='cp -p' 11007fi 11008rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11009rmdir conf$$.dir 2>/dev/null 11010 11011 11012# as_fn_mkdir_p 11013# ------------- 11014# Create "$as_dir" as a directory, including parents if necessary. 11015as_fn_mkdir_p () 11016{ 11017 11018 case $as_dir in #( 11019 -*) as_dir=./$as_dir;; 11020 esac 11021 test -d "$as_dir" || eval $as_mkdir_p || { 11022 as_dirs= 11023 while :; do 11024 case $as_dir in #( 11025 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11026 *) as_qdir=$as_dir;; 11027 esac 11028 as_dirs="'$as_qdir' $as_dirs" 11029 as_dir=`$as_dirname -- "$as_dir" || 11030$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11031 X"$as_dir" : 'X\(//\)[^/]' \| \ 11032 X"$as_dir" : 'X\(//\)$' \| \ 11033 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11034$as_echo X"$as_dir" | 11035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11036 s//\1/ 11037 q 11038 } 11039 /^X\(\/\/\)[^/].*/{ 11040 s//\1/ 11041 q 11042 } 11043 /^X\(\/\/\)$/{ 11044 s//\1/ 11045 q 11046 } 11047 /^X\(\/\).*/{ 11048 s//\1/ 11049 q 11050 } 11051 s/.*/./; q'` 11052 test -d "$as_dir" && break 11053 done 11054 test -z "$as_dirs" || eval "mkdir $as_dirs" 11055 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11056 11057 11058} # as_fn_mkdir_p 11059if mkdir -p . 2>/dev/null; then 11060 as_mkdir_p='mkdir -p "$as_dir"' 11061else 11062 test -d ./-p && rmdir ./-p 11063 as_mkdir_p=false 11064fi 11065 11066if test -x / >/dev/null 2>&1; then 11067 as_test_x='test -x' 11068else 11069 if ls -dL / >/dev/null 2>&1; then 11070 as_ls_L_option=L 11071 else 11072 as_ls_L_option= 11073 fi 11074 as_test_x=' 11075 eval sh -c '\'' 11076 if test -d "$1"; then 11077 test -d "$1/."; 11078 else 11079 case $1 in #( 11080 -*)set "./$1";; 11081 esac; 11082 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11083 ???[sx]*):;;*)false;;esac;fi 11084 '\'' sh 11085 ' 11086fi 11087as_executable_p=$as_test_x 11088 11089# Sed expression to map a string onto a valid CPP name. 11090as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11091 11092# Sed expression to map a string onto a valid variable name. 11093as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11094 11095 11096exec 6>&1 11097## ----------------------------------- ## 11098## Main body of $CONFIG_STATUS script. ## 11099## ----------------------------------- ## 11100_ASEOF 11101test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11102 11103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11104# Save the log message, to keep $0 and so on meaningful, and to 11105# report actual input values of CONFIG_FILES etc. instead of their 11106# values after options handling. 11107ac_log=" 11108This file was extended by bdftopcf $as_me 1.0.4, which was 11109generated by GNU Autoconf 2.68. Invocation command line was 11110 11111 CONFIG_FILES = $CONFIG_FILES 11112 CONFIG_HEADERS = $CONFIG_HEADERS 11113 CONFIG_LINKS = $CONFIG_LINKS 11114 CONFIG_COMMANDS = $CONFIG_COMMANDS 11115 $ $0 $@ 11116 11117on `(hostname || uname -n) 2>/dev/null | sed 1q` 11118" 11119 11120_ACEOF 11121 11122case $ac_config_files in *" 11123"*) set x $ac_config_files; shift; ac_config_files=$*;; 11124esac 11125 11126case $ac_config_headers in *" 11127"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11128esac 11129 11130 11131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11132# Files that config.status was made for. 11133config_files="$ac_config_files" 11134config_headers="$ac_config_headers" 11135config_commands="$ac_config_commands" 11136 11137_ACEOF 11138 11139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11140ac_cs_usage="\ 11141\`$as_me' instantiates files and other configuration actions 11142from templates according to the current configuration. Unless the files 11143and actions are specified as TAGs, all are instantiated by default. 11144 11145Usage: $0 [OPTION]... [TAG]... 11146 11147 -h, --help print this help, then exit 11148 -V, --version print version number and configuration settings, then exit 11149 --config print configuration, then exit 11150 -q, --quiet, --silent 11151 do not print progress messages 11152 -d, --debug don't remove temporary files 11153 --recheck update $as_me by reconfiguring in the same conditions 11154 --file=FILE[:TEMPLATE] 11155 instantiate the configuration file FILE 11156 --header=FILE[:TEMPLATE] 11157 instantiate the configuration header FILE 11158 11159Configuration files: 11160$config_files 11161 11162Configuration headers: 11163$config_headers 11164 11165Configuration commands: 11166$config_commands 11167 11168Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11169 11170_ACEOF 11171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11172ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11173ac_cs_version="\\ 11174bdftopcf config.status 1.0.4 11175configured by $0, generated by GNU Autoconf 2.68, 11176 with options \\"\$ac_cs_config\\" 11177 11178Copyright (C) 2010 Free Software Foundation, Inc. 11179This config.status script is free software; the Free Software Foundation 11180gives unlimited permission to copy, distribute and modify it." 11181 11182ac_pwd='$ac_pwd' 11183srcdir='$srcdir' 11184INSTALL='$INSTALL' 11185MKDIR_P='$MKDIR_P' 11186AWK='$AWK' 11187test -n "\$AWK" || AWK=awk 11188_ACEOF 11189 11190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11191# The default lists apply if the user does not specify any file. 11192ac_need_defaults=: 11193while test $# != 0 11194do 11195 case $1 in 11196 --*=?*) 11197 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11198 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11199 ac_shift=: 11200 ;; 11201 --*=) 11202 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11203 ac_optarg= 11204 ac_shift=: 11205 ;; 11206 *) 11207 ac_option=$1 11208 ac_optarg=$2 11209 ac_shift=shift 11210 ;; 11211 esac 11212 11213 case $ac_option in 11214 # Handling of the options. 11215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11216 ac_cs_recheck=: ;; 11217 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11218 $as_echo "$ac_cs_version"; exit ;; 11219 --config | --confi | --conf | --con | --co | --c ) 11220 $as_echo "$ac_cs_config"; exit ;; 11221 --debug | --debu | --deb | --de | --d | -d ) 11222 debug=: ;; 11223 --file | --fil | --fi | --f ) 11224 $ac_shift 11225 case $ac_optarg in 11226 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11227 '') as_fn_error $? "missing file argument" ;; 11228 esac 11229 as_fn_append CONFIG_FILES " '$ac_optarg'" 11230 ac_need_defaults=false;; 11231 --header | --heade | --head | --hea ) 11232 $ac_shift 11233 case $ac_optarg in 11234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11235 esac 11236 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11237 ac_need_defaults=false;; 11238 --he | --h) 11239 # Conflict between --help and --header 11240 as_fn_error $? "ambiguous option: \`$1' 11241Try \`$0 --help' for more information.";; 11242 --help | --hel | -h ) 11243 $as_echo "$ac_cs_usage"; exit ;; 11244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11245 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11246 ac_cs_silent=: ;; 11247 11248 # This is an error. 11249 -*) as_fn_error $? "unrecognized option: \`$1' 11250Try \`$0 --help' for more information." ;; 11251 11252 *) as_fn_append ac_config_targets " $1" 11253 ac_need_defaults=false ;; 11254 11255 esac 11256 shift 11257done 11258 11259ac_configure_extra_args= 11260 11261if $ac_cs_silent; then 11262 exec 6>/dev/null 11263 ac_configure_extra_args="$ac_configure_extra_args --silent" 11264fi 11265 11266_ACEOF 11267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11268if \$ac_cs_recheck; then 11269 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11270 shift 11271 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11272 CONFIG_SHELL='$SHELL' 11273 export CONFIG_SHELL 11274 exec "\$@" 11275fi 11276 11277_ACEOF 11278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11279exec 5>>config.log 11280{ 11281 echo 11282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11283## Running $as_me. ## 11284_ASBOX 11285 $as_echo "$ac_log" 11286} >&5 11287 11288_ACEOF 11289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11290# 11291# INIT-COMMANDS 11292# 11293AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11294 11295_ACEOF 11296 11297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11298 11299# Handling of arguments. 11300for ac_config_target in $ac_config_targets 11301do 11302 case $ac_config_target in 11303 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11304 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11305 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11306 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11307 11308 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11309 esac 11310done 11311 11312 11313# If the user did not use the arguments to specify the items to instantiate, 11314# then the envvar interface is used. Set only those that are not. 11315# We use the long form for the default assignment because of an extremely 11316# bizarre bug on SunOS 4.1.3. 11317if $ac_need_defaults; then 11318 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11319 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11320 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11321fi 11322 11323# Have a temporary directory for convenience. Make it in the build tree 11324# simply because there is no reason against having it here, and in addition, 11325# creating and moving files from /tmp can sometimes cause problems. 11326# Hook for its removal unless debugging. 11327# Note that there is a small window in which the directory will not be cleaned: 11328# after its creation but before its name has been assigned to `$tmp'. 11329$debug || 11330{ 11331 tmp= ac_tmp= 11332 trap 'exit_status=$? 11333 : "${ac_tmp:=$tmp}" 11334 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11335' 0 11336 trap 'as_fn_exit 1' 1 2 13 15 11337} 11338# Create a (secure) tmp directory for tmp files. 11339 11340{ 11341 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11342 test -d "$tmp" 11343} || 11344{ 11345 tmp=./conf$$-$RANDOM 11346 (umask 077 && mkdir "$tmp") 11347} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11348ac_tmp=$tmp 11349 11350# Set up the scripts for CONFIG_FILES section. 11351# No need to generate them if there are no CONFIG_FILES. 11352# This happens for instance with `./config.status config.h'. 11353if test -n "$CONFIG_FILES"; then 11354 11355 11356ac_cr=`echo X | tr X '\015'` 11357# On cygwin, bash can eat \r inside `` if the user requested igncr. 11358# But we know of no other shell where ac_cr would be empty at this 11359# point, so we can use a bashism as a fallback. 11360if test "x$ac_cr" = x; then 11361 eval ac_cr=\$\'\\r\' 11362fi 11363ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11364if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11365 ac_cs_awk_cr='\\r' 11366else 11367 ac_cs_awk_cr=$ac_cr 11368fi 11369 11370echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11371_ACEOF 11372 11373 11374{ 11375 echo "cat >conf$$subs.awk <<_ACEOF" && 11376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11377 echo "_ACEOF" 11378} >conf$$subs.sh || 11379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11380ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11381ac_delim='%!_!# ' 11382for ac_last_try in false false false false false :; do 11383 . ./conf$$subs.sh || 11384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11385 11386 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11387 if test $ac_delim_n = $ac_delim_num; then 11388 break 11389 elif $ac_last_try; then 11390 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11391 else 11392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11393 fi 11394done 11395rm -f conf$$subs.sh 11396 11397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11398cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11399_ACEOF 11400sed -n ' 11401h 11402s/^/S["/; s/!.*/"]=/ 11403p 11404g 11405s/^[^!]*!// 11406:repl 11407t repl 11408s/'"$ac_delim"'$// 11409t delim 11410:nl 11411h 11412s/\(.\{148\}\)..*/\1/ 11413t more1 11414s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11415p 11416n 11417b repl 11418:more1 11419s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11420p 11421g 11422s/.\{148\}// 11423t nl 11424:delim 11425h 11426s/\(.\{148\}\)..*/\1/ 11427t more2 11428s/["\\]/\\&/g; s/^/"/; s/$/"/ 11429p 11430b 11431:more2 11432s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11433p 11434g 11435s/.\{148\}// 11436t delim 11437' <conf$$subs.awk | sed ' 11438/^[^""]/{ 11439 N 11440 s/\n// 11441} 11442' >>$CONFIG_STATUS || ac_write_fail=1 11443rm -f conf$$subs.awk 11444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11445_ACAWK 11446cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11447 for (key in S) S_is_set[key] = 1 11448 FS = "" 11449 11450} 11451{ 11452 line = $ 0 11453 nfields = split(line, field, "@") 11454 substed = 0 11455 len = length(field[1]) 11456 for (i = 2; i < nfields; i++) { 11457 key = field[i] 11458 keylen = length(key) 11459 if (S_is_set[key]) { 11460 value = S[key] 11461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11462 len += length(value) + length(field[++i]) 11463 substed = 1 11464 } else 11465 len += 1 + keylen 11466 } 11467 11468 print line 11469} 11470 11471_ACAWK 11472_ACEOF 11473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11474if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11476else 11477 cat 11478fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11479 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11480_ACEOF 11481 11482# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11483# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11484# trailing colons and then remove the whole line if VPATH becomes empty 11485# (actually we leave an empty line to preserve line numbers). 11486if test "x$srcdir" = x.; then 11487 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11488h 11489s/// 11490s/^/:/ 11491s/[ ]*$/:/ 11492s/:\$(srcdir):/:/g 11493s/:\${srcdir}:/:/g 11494s/:@srcdir@:/:/g 11495s/^:*// 11496s/:*$// 11497x 11498s/\(=[ ]*\).*/\1/ 11499G 11500s/\n// 11501s/^[^=]*=[ ]*$// 11502}' 11503fi 11504 11505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11506fi # test -n "$CONFIG_FILES" 11507 11508# Set up the scripts for CONFIG_HEADERS section. 11509# No need to generate them if there are no CONFIG_HEADERS. 11510# This happens for instance with `./config.status Makefile'. 11511if test -n "$CONFIG_HEADERS"; then 11512cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11513BEGIN { 11514_ACEOF 11515 11516# Transform confdefs.h into an awk script `defines.awk', embedded as 11517# here-document in config.status, that substitutes the proper values into 11518# config.h.in to produce config.h. 11519 11520# Create a delimiter string that does not exist in confdefs.h, to ease 11521# handling of long lines. 11522ac_delim='%!_!# ' 11523for ac_last_try in false false :; do 11524 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11525 if test -z "$ac_tt"; then 11526 break 11527 elif $ac_last_try; then 11528 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11529 else 11530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11531 fi 11532done 11533 11534# For the awk script, D is an array of macro values keyed by name, 11535# likewise P contains macro parameters if any. Preserve backslash 11536# newline sequences. 11537 11538ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11539sed -n ' 11540s/.\{148\}/&'"$ac_delim"'/g 11541t rset 11542:rset 11543s/^[ ]*#[ ]*define[ ][ ]*/ / 11544t def 11545d 11546:def 11547s/\\$// 11548t bsnl 11549s/["\\]/\\&/g 11550s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11551D["\1"]=" \3"/p 11552s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11553d 11554:bsnl 11555s/["\\]/\\&/g 11556s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11557D["\1"]=" \3\\\\\\n"\\/p 11558t cont 11559s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11560t cont 11561d 11562:cont 11563n 11564s/.\{148\}/&'"$ac_delim"'/g 11565t clear 11566:clear 11567s/\\$// 11568t bsnlc 11569s/["\\]/\\&/g; s/^/"/; s/$/"/p 11570d 11571:bsnlc 11572s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11573b cont 11574' <confdefs.h | sed ' 11575s/'"$ac_delim"'/"\\\ 11576"/g' >>$CONFIG_STATUS || ac_write_fail=1 11577 11578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11579 for (key in D) D_is_set[key] = 1 11580 FS = "" 11581} 11582/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11583 line = \$ 0 11584 split(line, arg, " ") 11585 if (arg[1] == "#") { 11586 defundef = arg[2] 11587 mac1 = arg[3] 11588 } else { 11589 defundef = substr(arg[1], 2) 11590 mac1 = arg[2] 11591 } 11592 split(mac1, mac2, "(") #) 11593 macro = mac2[1] 11594 prefix = substr(line, 1, index(line, defundef) - 1) 11595 if (D_is_set[macro]) { 11596 # Preserve the white space surrounding the "#". 11597 print prefix "define", macro P[macro] D[macro] 11598 next 11599 } else { 11600 # Replace #undef with comments. This is necessary, for example, 11601 # in the case of _POSIX_SOURCE, which is predefined and required 11602 # on some systems where configure will not decide to define it. 11603 if (defundef == "undef") { 11604 print "/*", prefix defundef, macro, "*/" 11605 next 11606 } 11607 } 11608} 11609{ print } 11610_ACAWK 11611_ACEOF 11612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11613 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11614fi # test -n "$CONFIG_HEADERS" 11615 11616 11617eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11618shift 11619for ac_tag 11620do 11621 case $ac_tag in 11622 :[FHLC]) ac_mode=$ac_tag; continue;; 11623 esac 11624 case $ac_mode$ac_tag in 11625 :[FHL]*:*);; 11626 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11627 :[FH]-) ac_tag=-:-;; 11628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11629 esac 11630 ac_save_IFS=$IFS 11631 IFS=: 11632 set x $ac_tag 11633 IFS=$ac_save_IFS 11634 shift 11635 ac_file=$1 11636 shift 11637 11638 case $ac_mode in 11639 :L) ac_source=$1;; 11640 :[FH]) 11641 ac_file_inputs= 11642 for ac_f 11643 do 11644 case $ac_f in 11645 -) ac_f="$ac_tmp/stdin";; 11646 *) # Look for the file first in the build tree, then in the source tree 11647 # (if the path is not absolute). The absolute path cannot be DOS-style, 11648 # because $ac_f cannot contain `:'. 11649 test -f "$ac_f" || 11650 case $ac_f in 11651 [\\/$]*) false;; 11652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11653 esac || 11654 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11655 esac 11656 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11657 as_fn_append ac_file_inputs " '$ac_f'" 11658 done 11659 11660 # Let's still pretend it is `configure' which instantiates (i.e., don't 11661 # use $as_me), people would be surprised to read: 11662 # /* config.h. Generated by config.status. */ 11663 configure_input='Generated from '` 11664 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11665 `' by configure.' 11666 if test x"$ac_file" != x-; then 11667 configure_input="$ac_file. $configure_input" 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11669$as_echo "$as_me: creating $ac_file" >&6;} 11670 fi 11671 # Neutralize special characters interpreted by sed in replacement strings. 11672 case $configure_input in #( 11673 *\&* | *\|* | *\\* ) 11674 ac_sed_conf_input=`$as_echo "$configure_input" | 11675 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11676 *) ac_sed_conf_input=$configure_input;; 11677 esac 11678 11679 case $ac_tag in 11680 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11682 esac 11683 ;; 11684 esac 11685 11686 ac_dir=`$as_dirname -- "$ac_file" || 11687$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11688 X"$ac_file" : 'X\(//\)[^/]' \| \ 11689 X"$ac_file" : 'X\(//\)$' \| \ 11690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11691$as_echo X"$ac_file" | 11692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11693 s//\1/ 11694 q 11695 } 11696 /^X\(\/\/\)[^/].*/{ 11697 s//\1/ 11698 q 11699 } 11700 /^X\(\/\/\)$/{ 11701 s//\1/ 11702 q 11703 } 11704 /^X\(\/\).*/{ 11705 s//\1/ 11706 q 11707 } 11708 s/.*/./; q'` 11709 as_dir="$ac_dir"; as_fn_mkdir_p 11710 ac_builddir=. 11711 11712case "$ac_dir" in 11713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11714*) 11715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11716 # A ".." for each directory in $ac_dir_suffix. 11717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11718 case $ac_top_builddir_sub in 11719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11721 esac ;; 11722esac 11723ac_abs_top_builddir=$ac_pwd 11724ac_abs_builddir=$ac_pwd$ac_dir_suffix 11725# for backward compatibility: 11726ac_top_builddir=$ac_top_build_prefix 11727 11728case $srcdir in 11729 .) # We are building in place. 11730 ac_srcdir=. 11731 ac_top_srcdir=$ac_top_builddir_sub 11732 ac_abs_top_srcdir=$ac_pwd ;; 11733 [\\/]* | ?:[\\/]* ) # Absolute name. 11734 ac_srcdir=$srcdir$ac_dir_suffix; 11735 ac_top_srcdir=$srcdir 11736 ac_abs_top_srcdir=$srcdir ;; 11737 *) # Relative name. 11738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11739 ac_top_srcdir=$ac_top_build_prefix$srcdir 11740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11741esac 11742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11743 11744 11745 case $ac_mode in 11746 :F) 11747 # 11748 # CONFIG_FILE 11749 # 11750 11751 case $INSTALL in 11752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11753 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11754 esac 11755 ac_MKDIR_P=$MKDIR_P 11756 case $MKDIR_P in 11757 [\\/$]* | ?:[\\/]* ) ;; 11758 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11759 esac 11760_ACEOF 11761 11762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11763# If the template does not know about datarootdir, expand it. 11764# FIXME: This hack should be removed a few years after 2.60. 11765ac_datarootdir_hack=; ac_datarootdir_seen= 11766ac_sed_dataroot=' 11767/datarootdir/ { 11768 p 11769 q 11770} 11771/@datadir@/p 11772/@docdir@/p 11773/@infodir@/p 11774/@localedir@/p 11775/@mandir@/p' 11776case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11777*datarootdir*) ac_datarootdir_seen=yes;; 11778*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11780$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11781_ACEOF 11782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11783 ac_datarootdir_hack=' 11784 s&@datadir@&$datadir&g 11785 s&@docdir@&$docdir&g 11786 s&@infodir@&$infodir&g 11787 s&@localedir@&$localedir&g 11788 s&@mandir@&$mandir&g 11789 s&\\\${datarootdir}&$datarootdir&g' ;; 11790esac 11791_ACEOF 11792 11793# Neutralize VPATH when `$srcdir' = `.'. 11794# Shell code in configure.ac might set extrasub. 11795# FIXME: do we really want to maintain this feature? 11796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11797ac_sed_extra="$ac_vpsub 11798$extrasub 11799_ACEOF 11800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11801:t 11802/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11803s|@configure_input@|$ac_sed_conf_input|;t t 11804s&@top_builddir@&$ac_top_builddir_sub&;t t 11805s&@top_build_prefix@&$ac_top_build_prefix&;t t 11806s&@srcdir@&$ac_srcdir&;t t 11807s&@abs_srcdir@&$ac_abs_srcdir&;t t 11808s&@top_srcdir@&$ac_top_srcdir&;t t 11809s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11810s&@builddir@&$ac_builddir&;t t 11811s&@abs_builddir@&$ac_abs_builddir&;t t 11812s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11813s&@INSTALL@&$ac_INSTALL&;t t 11814s&@MKDIR_P@&$ac_MKDIR_P&;t t 11815$ac_datarootdir_hack 11816" 11817eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11818 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11819 11820test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11821 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11822 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11823 "$ac_tmp/out"`; test -z "$ac_out"; } && 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11825which seems to be undefined. Please make sure it is defined" >&5 11826$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11827which seems to be undefined. Please make sure it is defined" >&2;} 11828 11829 rm -f "$ac_tmp/stdin" 11830 case $ac_file in 11831 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11832 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11833 esac \ 11834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11835 ;; 11836 :H) 11837 # 11838 # CONFIG_HEADER 11839 # 11840 if test x"$ac_file" != x-; then 11841 { 11842 $as_echo "/* $configure_input */" \ 11843 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11844 } >"$ac_tmp/config.h" \ 11845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11846 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11848$as_echo "$as_me: $ac_file is unchanged" >&6;} 11849 else 11850 rm -f "$ac_file" 11851 mv "$ac_tmp/config.h" "$ac_file" \ 11852 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11853 fi 11854 else 11855 $as_echo "/* $configure_input */" \ 11856 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11857 || as_fn_error $? "could not create -" "$LINENO" 5 11858 fi 11859# Compute "$ac_file"'s index in $config_headers. 11860_am_arg="$ac_file" 11861_am_stamp_count=1 11862for _am_header in $config_headers :; do 11863 case $_am_header in 11864 $_am_arg | $_am_arg:* ) 11865 break ;; 11866 * ) 11867 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11868 esac 11869done 11870echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11871$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11872 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11873 X"$_am_arg" : 'X\(//\)$' \| \ 11874 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11875$as_echo X"$_am_arg" | 11876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11877 s//\1/ 11878 q 11879 } 11880 /^X\(\/\/\)[^/].*/{ 11881 s//\1/ 11882 q 11883 } 11884 /^X\(\/\/\)$/{ 11885 s//\1/ 11886 q 11887 } 11888 /^X\(\/\).*/{ 11889 s//\1/ 11890 q 11891 } 11892 s/.*/./; q'`/stamp-h$_am_stamp_count 11893 ;; 11894 11895 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11896$as_echo "$as_me: executing $ac_file commands" >&6;} 11897 ;; 11898 esac 11899 11900 11901 case $ac_file$ac_mode in 11902 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11903 # Autoconf 2.62 quotes --file arguments for eval, but not when files 11904 # are listed without --file. Let's play safe and only enable the eval 11905 # if we detect the quoting. 11906 case $CONFIG_FILES in 11907 *\'*) eval set x "$CONFIG_FILES" ;; 11908 *) set x $CONFIG_FILES ;; 11909 esac 11910 shift 11911 for mf 11912 do 11913 # Strip MF so we end up with the name of the file. 11914 mf=`echo "$mf" | sed -e 's/:.*$//'` 11915 # Check whether this is an Automake generated Makefile or not. 11916 # We used to match only the files named `Makefile.in', but 11917 # some people rename them; so instead we look at the file content. 11918 # Grep'ing the first line is not enough: some people post-process 11919 # each Makefile.in and add a new line on top of each file to say so. 11920 # Grep'ing the whole file is not good either: AIX grep has a line 11921 # limit of 2048, but all sed's we know have understand at least 4000. 11922 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11923 dirpart=`$as_dirname -- "$mf" || 11924$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11925 X"$mf" : 'X\(//\)[^/]' \| \ 11926 X"$mf" : 'X\(//\)$' \| \ 11927 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11928$as_echo X"$mf" | 11929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11930 s//\1/ 11931 q 11932 } 11933 /^X\(\/\/\)[^/].*/{ 11934 s//\1/ 11935 q 11936 } 11937 /^X\(\/\/\)$/{ 11938 s//\1/ 11939 q 11940 } 11941 /^X\(\/\).*/{ 11942 s//\1/ 11943 q 11944 } 11945 s/.*/./; q'` 11946 else 11947 continue 11948 fi 11949 # Extract the definition of DEPDIR, am__include, and am__quote 11950 # from the Makefile without running `make'. 11951 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11952 test -z "$DEPDIR" && continue 11953 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11954 test -z "am__include" && continue 11955 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11956 # When using ansi2knr, U may be empty or an underscore; expand it 11957 U=`sed -n 's/^U = //p' < "$mf"` 11958 # Find all dependency output files, they are included files with 11959 # $(DEPDIR) in their names. We invoke sed twice because it is the 11960 # simplest approach to changing $(DEPDIR) to its actual value in the 11961 # expansion. 11962 for file in `sed -n " 11963 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11964 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 11965 # Make sure the directory exists. 11966 test -f "$dirpart/$file" && continue 11967 fdir=`$as_dirname -- "$file" || 11968$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11969 X"$file" : 'X\(//\)[^/]' \| \ 11970 X"$file" : 'X\(//\)$' \| \ 11971 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11972$as_echo X"$file" | 11973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11974 s//\1/ 11975 q 11976 } 11977 /^X\(\/\/\)[^/].*/{ 11978 s//\1/ 11979 q 11980 } 11981 /^X\(\/\/\)$/{ 11982 s//\1/ 11983 q 11984 } 11985 /^X\(\/\).*/{ 11986 s//\1/ 11987 q 11988 } 11989 s/.*/./; q'` 11990 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11991 # echo "creating $dirpart/$file" 11992 echo '# dummy' > "$dirpart/$file" 11993 done 11994 done 11995} 11996 ;; 11997 11998 esac 11999done # for ac_tag 12000 12001 12002as_fn_exit 0 12003_ACEOF 12004ac_clean_files=$ac_clean_files_save 12005 12006test $ac_write_fail = 0 || 12007 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12008 12009 12010# configure is writing to config.log, and then calls config.status. 12011# config.status does its own redirection, appending to config.log. 12012# Unfortunately, on DOS this fails, as config.log is still kept open 12013# by configure, so config.status won't be able to write to it; its 12014# output is simply discarded. So we exec the FD to /dev/null, 12015# effectively closing config.log, so it can be properly (re)opened and 12016# appended to by config.status. When coming back to configure, we 12017# need to make the FD available again. 12018if test "$no_create" != yes; then 12019 ac_cs_success=: 12020 ac_config_status_args= 12021 test "$silent" = yes && 12022 ac_config_status_args="$ac_config_status_args --quiet" 12023 exec 5>/dev/null 12024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12025 exec 5>>config.log 12026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12027 # would make configure fail if this is the last instruction. 12028 $ac_cs_success || as_fn_exit 1 12029fi 12030if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12032$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12033fi 12034 12035