configure revision eb323118
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for bdftopcf 1.1.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/bdftopcf/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 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 case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/util/bdftopcf/-/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='bdftopcf' 607PACKAGE_TARNAME='bdftopcf' 608PACKAGE_VERSION='1.1.2' 609PACKAGE_STRING='bdftopcf 1.1.2' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/bdftopcf/-/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646ac_subst_vars='am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650BDFTOPCF_LIBS 651BDFTOPCF_CFLAGS 652LINT_FALSE 653LINT_TRUE 654LINT_FLAGS 655LINT 656MAN_SUBSTS 657XORG_MAN_PAGE 658ADMIN_MAN_DIR 659DRIVER_MAN_DIR 660MISC_MAN_DIR 661FILE_MAN_DIR 662LIB_MAN_DIR 663APP_MAN_DIR 664ADMIN_MAN_SUFFIX 665DRIVER_MAN_SUFFIX 666MISC_MAN_SUFFIX 667FILE_MAN_SUFFIX 668LIB_MAN_SUFFIX 669APP_MAN_SUFFIX 670SED 671host_os 672host_vendor 673host_cpu 674host 675build_os 676build_vendor 677build_cpu 678build 679INSTALL_CMD 680PKG_CONFIG_LIBDIR 681PKG_CONFIG_PATH 682PKG_CONFIG 683CHANGELOG_CMD 684STRICT_CFLAGS 685CWARNFLAGS 686BASE_CFLAGS 687am__fastdepCC_FALSE 688am__fastdepCC_TRUE 689CCDEPMODE 690am__nodep 691AMDEPBACKSLASH 692AMDEP_FALSE 693AMDEP_TRUE 694am__include 695DEPDIR 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703am__xargs_n 704am__rm_f_notfound 705AM_BACKSLASH 706AM_DEFAULT_VERBOSITY 707AM_DEFAULT_V 708AM_V 709CSCOPE 710ETAGS 711CTAGS 712am__untar 713am__tar 714AMTAR 715am__leading_dot 716SET_MAKE 717AWK 718mkdir_p 719MKDIR_P 720INSTALL_STRIP_PROGRAM 721STRIP 722install_sh 723MAKEINFO 724AUTOHEADER 725AUTOMAKE 726AUTOCONF 727ACLOCAL 728VERSION 729PACKAGE 730CYGPATH_W 731am__isrc 732INSTALL_DATA 733INSTALL_SCRIPT 734INSTALL_PROGRAM 735target_alias 736host_alias 737build_alias 738LIBS 739ECHO_T 740ECHO_N 741ECHO_C 742DEFS 743mandir 744localedir 745libdir 746psdir 747pdfdir 748dvidir 749htmldir 750infodir 751docdir 752oldincludedir 753includedir 754runstatedir 755localstatedir 756sharedstatedir 757sysconfdir 758datadir 759datarootdir 760libexecdir 761sbindir 762bindir 763program_transform_name 764prefix 765exec_prefix 766PACKAGE_URL 767PACKAGE_BUGREPORT 768PACKAGE_STRING 769PACKAGE_VERSION 770PACKAGE_TARNAME 771PACKAGE_NAME 772PATH_SEPARATOR 773SHELL 774am__quote' 775ac_subst_files='' 776ac_user_opts=' 777enable_option_checking 778enable_silent_rules 779enable_dependency_tracking 780enable_selective_werror 781enable_strict_compilation 782with_lint 783' 784 ac_precious_vars='build_alias 785host_alias 786target_alias 787CC 788CFLAGS 789LDFLAGS 790LIBS 791CPPFLAGS 792PKG_CONFIG 793PKG_CONFIG_PATH 794PKG_CONFIG_LIBDIR 795LINT 796LINT_FLAGS 797BDFTOPCF_CFLAGS 798BDFTOPCF_LIBS' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837runstatedir='${localstatedir}/run' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: '$ac_useropt'" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: '$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089 | --runstate | --runstat | --runsta | --runst | --runs \ 1090 | --run | --ru | --r) 1091 ac_prev=runstatedir ;; 1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094 | --run=* | --ru=* | --r=*) 1095 runstatedir=$ac_optarg ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: '$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: '$ac_useropt'" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: '$ac_option' 1193Try '$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir runstatedir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: '$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265fi 1266 1267ac_tool_prefix= 1268test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270test "$silent" = yes && exec 6>/dev/null 1271 1272 1273ac_pwd=`pwd` && test -n "$ac_pwd" && 1274ac_ls_di=`ls -di .` && 1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281# Find the source files, if location was not specified. 1282if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290printf "%s\n" X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312else 1313 ac_srcdir_defaulted=no 1314fi 1315if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318fi 1319ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1320ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323# When building in place, set srcdir=. 1324if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326fi 1327# Remove unnecessary trailing slashes from srcdir. 1328# Double slashes in file names in object file debugging info 1329# mess up M-x gdb in Emacs. 1330case $srcdir in 1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332esac 1333for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338done 1339 1340# 1341# Report the --help message. 1342# 1343if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347'configure' configures bdftopcf 1.1.2 to adapt to many kinds of systems. 1348 1349Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354Defaults for the options are specified in brackets. 1355 1356Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print 'checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for '--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1366 1367Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373By default, 'make install' will install all the files in 1374'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1375an installation prefix other than '$ac_default_prefix' using '--prefix', 1376for instance '--prefix=\$HOME'. 1377 1378For better control, use the options below. 1379 1380Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/bdftopcf] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of bdftopcf 1.1.2:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-selective-werror 1433 Turn off selective compiler errors. (default: 1434 enabled) 1435 --enable-strict-compilation 1436 Enable all warnings from compiler and make them 1437 errors (default: disabled) 1438 1439Optional Packages: 1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --with-lint Use a lint-style source code checker (default: 1443 disabled) 1444 1445Some influential environment variables: 1446 CC C compiler command 1447 CFLAGS C compiler flags 1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1449 nonstandard directory <lib dir> 1450 LIBS libraries to pass to the linker, e.g. -l<library> 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1452 you have headers in a nonstandard directory <include dir> 1453 PKG_CONFIG path to pkg-config utility 1454 PKG_CONFIG_PATH 1455 directories to add to pkg-config's search path 1456 PKG_CONFIG_LIBDIR 1457 path overriding pkg-config's built-in search path 1458 LINT Path to a lint-style command 1459 LINT_FLAGS Flags for the lint-style command 1460 BDFTOPCF_CFLAGS 1461 C compiler flags for BDFTOPCF, overriding pkg-config 1462 BDFTOPCF_LIBS 1463 linker flags for BDFTOPCF, overriding pkg-config 1464 1465Use these variables to override the choices made by 'configure' or to help 1466it to find libraries and programs with nonstandard names/locations. 1467 1468Report bugs to <https://gitlab.freedesktop.org/xorg/util/bdftopcf/-/issues>. 1469_ACEOF 1470ac_status=$? 1471fi 1472 1473if test "$ac_init_help" = "recursive"; then 1474 # If there are subdirs, report their specific --help. 1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1476 test -d "$ac_dir" || 1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1478 continue 1479 ac_builddir=. 1480 1481case "$ac_dir" in 1482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483*) 1484 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1485 # A ".." for each directory in $ac_dir_suffix. 1486 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1487 case $ac_top_builddir_sub in 1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1490 esac ;; 1491esac 1492ac_abs_top_builddir=$ac_pwd 1493ac_abs_builddir=$ac_pwd$ac_dir_suffix 1494# for backward compatibility: 1495ac_top_builddir=$ac_top_build_prefix 1496 1497case $srcdir in 1498 .) # We are building in place. 1499 ac_srcdir=. 1500 ac_top_srcdir=$ac_top_builddir_sub 1501 ac_abs_top_srcdir=$ac_pwd ;; 1502 [\\/]* | ?:[\\/]* ) # Absolute name. 1503 ac_srcdir=$srcdir$ac_dir_suffix; 1504 ac_top_srcdir=$srcdir 1505 ac_abs_top_srcdir=$srcdir ;; 1506 *) # Relative name. 1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1508 ac_top_srcdir=$ac_top_build_prefix$srcdir 1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1510esac 1511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1512 1513 cd "$ac_dir" || { ac_status=$?; continue; } 1514 # Check for configure.gnu first; this name is used for a wrapper for 1515 # Metaconfig's "Configure" on case-insensitive file systems. 1516 if test -f "$ac_srcdir/configure.gnu"; then 1517 echo && 1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1519 elif test -f "$ac_srcdir/configure"; then 1520 echo && 1521 $SHELL "$ac_srcdir/configure" --help=recursive 1522 else 1523 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1524 fi || ac_status=$? 1525 cd "$ac_pwd" || { ac_status=$?; break; } 1526 done 1527fi 1528 1529test -n "$ac_init_help" && exit $ac_status 1530if $ac_init_version; then 1531 cat <<\_ACEOF 1532bdftopcf configure 1.1.2 1533generated by GNU Autoconf 2.72 1534 1535Copyright (C) 2023 Free Software Foundation, Inc. 1536This configure script is free software; the Free Software Foundation 1537gives unlimited permission to copy, distribute and modify it. 1538_ACEOF 1539 exit 1540fi 1541 1542## ------------------------ ## 1543## Autoconf initialization. ## 1544## ------------------------ ## 1545 1546# ac_fn_c_try_compile LINENO 1547# -------------------------- 1548# Try to compile conftest.$ac_ext, and return whether this succeeded. 1549ac_fn_c_try_compile () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 rm -f conftest.$ac_objext conftest.beam 1553 if { { ac_try="$ac_compile" 1554case "(($ac_try" in 1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1556 *) ac_try_echo=$ac_try;; 1557esac 1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1559printf "%s\n" "$ac_try_echo"; } >&5 1560 (eval "$ac_compile") 2>conftest.err 1561 ac_status=$? 1562 if test -s conftest.err; then 1563 grep -v '^ *+' conftest.err >conftest.er1 1564 cat conftest.er1 >&5 1565 mv -f conftest.er1 conftest.err 1566 fi 1567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1568 test $ac_status = 0; } && { 1569 test -z "$ac_c_werror_flag" || 1570 test ! -s conftest.err 1571 } && test -s conftest.$ac_objext 1572then : 1573 ac_retval=0 1574else case e in #( 1575 e) printf "%s\n" "$as_me: failed program was:" >&5 1576sed 's/^/| /' conftest.$ac_ext >&5 1577 1578 ac_retval=1 ;; 1579esac 1580fi 1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1582 as_fn_set_status $ac_retval 1583 1584} # ac_fn_c_try_compile 1585 1586# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1587# ------------------------------------------------------------------ 1588# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1589# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1590ac_fn_check_decl () 1591{ 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 as_decl_name=`echo $2|sed 's/ *(.*//'` 1594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1595printf %s "checking whether $as_decl_name is declared... " >&6; } 1596if eval test \${$3+y} 1597then : 1598 printf %s "(cached) " >&6 1599else case e in #( 1600 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1601 eval ac_save_FLAGS=\$$6 1602 as_fn_append $6 " $5" 1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1604/* end confdefs.h. */ 1605$4 1606int 1607main (void) 1608{ 1609#ifndef $as_decl_name 1610#ifdef __cplusplus 1611 (void) $as_decl_use; 1612#else 1613 (void) $as_decl_name; 1614#endif 1615#endif 1616 1617 ; 1618 return 0; 1619} 1620_ACEOF 1621if ac_fn_c_try_compile "$LINENO" 1622then : 1623 eval "$3=yes" 1624else case e in #( 1625 e) eval "$3=no" ;; 1626esac 1627fi 1628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1629 eval $6=\$ac_save_FLAGS 1630 ;; 1631esac 1632fi 1633eval ac_res=\$$3 1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1635printf "%s\n" "$ac_res" >&6; } 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 1638} # ac_fn_check_decl 1639 1640# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1641# ------------------------------------------------------- 1642# Tests whether HEADER exists and can be compiled using the include files in 1643# INCLUDES, setting the cache variable VAR accordingly. 1644ac_fn_c_check_header_compile () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1648printf %s "checking for $2... " >&6; } 1649if eval test \${$3+y} 1650then : 1651 printf %s "(cached) " >&6 1652else case e in #( 1653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655$4 1656#include <$2> 1657_ACEOF 1658if ac_fn_c_try_compile "$LINENO" 1659then : 1660 eval "$3=yes" 1661else case e in #( 1662 e) eval "$3=no" ;; 1663esac 1664fi 1665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1666esac 1667fi 1668eval ac_res=\$$3 1669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1670printf "%s\n" "$ac_res" >&6; } 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 1673} # ac_fn_c_check_header_compile 1674 1675# ac_fn_c_try_link LINENO 1676# ----------------------- 1677# Try to link conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_link () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1682 if { { ac_try="$ac_link" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688printf "%s\n" "$ac_try_echo"; } >&5 1689 (eval "$ac_link") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { 1698 test -z "$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 } && test -s conftest$ac_exeext && { 1701 test "$cross_compiling" = yes || 1702 test -x conftest$ac_exeext 1703 } 1704then : 1705 ac_retval=0 1706else case e in #( 1707 e) printf "%s\n" "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 ;; 1711esac 1712fi 1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1715 # interfere with the next link command; also delete a directory that is 1716 # left behind by Apple's compiler. We do this before executing the actions. 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_link 1722ac_configure_args_raw= 1723for ac_arg 1724do 1725 case $ac_arg in 1726 *\'*) 1727 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1728 esac 1729 as_fn_append ac_configure_args_raw " '$ac_arg'" 1730done 1731 1732case $ac_configure_args_raw in 1733 *$as_nl*) 1734 ac_safe_unquote= ;; 1735 *) 1736 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1737 ac_unsafe_a="$ac_unsafe_z#~" 1738 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1739 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1740esac 1741 1742cat >config.log <<_ACEOF 1743This file contains any messages produced by compilers while 1744running configure, to aid debugging if configure makes a mistake. 1745 1746It was created by bdftopcf $as_me 1.1.2, which was 1747generated by GNU Autoconf 2.72. Invocation command line was 1748 1749 $ $0$ac_configure_args_raw 1750 1751_ACEOF 1752exec 5>>config.log 1753{ 1754cat <<_ASUNAME 1755## --------- ## 1756## Platform. ## 1757## --------- ## 1758 1759hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1760uname -m = `(uname -m) 2>/dev/null || echo unknown` 1761uname -r = `(uname -r) 2>/dev/null || echo unknown` 1762uname -s = `(uname -s) 2>/dev/null || echo unknown` 1763uname -v = `(uname -v) 2>/dev/null || echo unknown` 1764 1765/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1766/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1767 1768/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1769/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1770/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1771/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1772/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1773/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1774/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1775 1776_ASUNAME 1777 1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1779for as_dir in $PATH 1780do 1781 IFS=$as_save_IFS 1782 case $as_dir in #((( 1783 '') as_dir=./ ;; 1784 */) ;; 1785 *) as_dir=$as_dir/ ;; 1786 esac 1787 printf "%s\n" "PATH: $as_dir" 1788 done 1789IFS=$as_save_IFS 1790 1791} >&5 1792 1793cat >&5 <<_ACEOF 1794 1795 1796## ----------- ## 1797## Core tests. ## 1798## ----------- ## 1799 1800_ACEOF 1801 1802 1803# Keep a trace of the command line. 1804# Strip out --no-create and --no-recursion so they do not pile up. 1805# Strip out --silent because we don't want to record it for future runs. 1806# Also quote any args containing shell meta-characters. 1807# Make two passes to allow for proper duplicate-argument suppression. 1808ac_configure_args= 1809ac_configure_args0= 1810ac_configure_args1= 1811ac_must_keep_next=false 1812for ac_pass in 1 2 1813do 1814 for ac_arg 1815 do 1816 case $ac_arg in 1817 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1819 | -silent | --silent | --silen | --sile | --sil) 1820 continue ;; 1821 *\'*) 1822 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1823 esac 1824 case $ac_pass in 1825 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1826 2) 1827 as_fn_append ac_configure_args1 " '$ac_arg'" 1828 if test $ac_must_keep_next = true; then 1829 ac_must_keep_next=false # Got value, back to normal. 1830 else 1831 case $ac_arg in 1832 *=* | --config-cache | -C | -disable-* | --disable-* \ 1833 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1834 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1835 | -with-* | --with-* | -without-* | --without-* | --x) 1836 case "$ac_configure_args0 " in 1837 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1838 esac 1839 ;; 1840 -* ) ac_must_keep_next=true ;; 1841 esac 1842 fi 1843 as_fn_append ac_configure_args " '$ac_arg'" 1844 ;; 1845 esac 1846 done 1847done 1848{ ac_configure_args0=; unset ac_configure_args0;} 1849{ ac_configure_args1=; unset ac_configure_args1;} 1850 1851# When interrupted or exit'd, cleanup temporary files, and complete 1852# config.log. We remove comments because anyway the quotes in there 1853# would cause problems or look ugly. 1854# WARNING: Use '\'' to represent an apostrophe within the trap. 1855# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1856trap 'exit_status=$? 1857 # Sanitize IFS. 1858 IFS=" "" $as_nl" 1859 # Save into config.log some information that might help in debugging. 1860 { 1861 echo 1862 1863 printf "%s\n" "## ---------------- ## 1864## Cache variables. ## 1865## ---------------- ##" 1866 echo 1867 # The following way of writing the cache mishandles newlines in values, 1868( 1869 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1870 eval ac_val=\$$ac_var 1871 case $ac_val in #( 1872 *${as_nl}*) 1873 case $ac_var in #( 1874 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1875printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1876 esac 1877 case $ac_var in #( 1878 _ | IFS | as_nl) ;; #( 1879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1880 *) { eval $ac_var=; unset $ac_var;} ;; 1881 esac ;; 1882 esac 1883 done 1884 (set) 2>&1 | 1885 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1886 *${as_nl}ac_space=\ *) 1887 sed -n \ 1888 "s/'\''/'\''\\\\'\'''\''/g; 1889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1890 ;; #( 1891 *) 1892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1893 ;; 1894 esac | 1895 sort 1896) 1897 echo 1898 1899 printf "%s\n" "## ----------------- ## 1900## Output variables. ## 1901## ----------------- ##" 1902 echo 1903 for ac_var in $ac_subst_vars 1904 do 1905 eval ac_val=\$$ac_var 1906 case $ac_val in 1907 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1908 esac 1909 printf "%s\n" "$ac_var='\''$ac_val'\''" 1910 done | sort 1911 echo 1912 1913 if test -n "$ac_subst_files"; then 1914 printf "%s\n" "## ------------------- ## 1915## File substitutions. ## 1916## ------------------- ##" 1917 echo 1918 for ac_var in $ac_subst_files 1919 do 1920 eval ac_val=\$$ac_var 1921 case $ac_val in 1922 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1923 esac 1924 printf "%s\n" "$ac_var='\''$ac_val'\''" 1925 done | sort 1926 echo 1927 fi 1928 1929 if test -s confdefs.h; then 1930 printf "%s\n" "## ----------- ## 1931## confdefs.h. ## 1932## ----------- ##" 1933 echo 1934 cat confdefs.h 1935 echo 1936 fi 1937 test "$ac_signal" != 0 && 1938 printf "%s\n" "$as_me: caught signal $ac_signal" 1939 printf "%s\n" "$as_me: exit $exit_status" 1940 } >&5 1941 rm -f core *.core core.conftest.* && 1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1943 exit $exit_status 1944' 0 1945for ac_signal in 1 2 13 15; do 1946 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1947done 1948ac_signal=0 1949 1950# confdefs.h avoids OS command line length limits that DEFS can exceed. 1951rm -f -r conftest* confdefs.h 1952 1953printf "%s\n" "/* confdefs.h */" > confdefs.h 1954 1955# Predefined preprocessor variables. 1956 1957printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1958 1959printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1960 1961printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1962 1963printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1964 1965printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1966 1967printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1968 1969 1970# Let the site file select an alternate cache file if it wants to. 1971# Prefer an explicitly selected file to automatically selected ones. 1972if test -n "$CONFIG_SITE"; then 1973 ac_site_files="$CONFIG_SITE" 1974elif test "x$prefix" != xNONE; then 1975 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1976else 1977 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1978fi 1979 1980for ac_site_file in $ac_site_files 1981do 1982 case $ac_site_file in #( 1983 */*) : 1984 ;; #( 1985 *) : 1986 ac_site_file=./$ac_site_file ;; 1987esac 1988 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1990printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1991 sed 's/^/| /' "$ac_site_file" >&5 1992 . "$ac_site_file" \ 1993 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1994printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1995as_fn_error $? "failed to load site script $ac_site_file 1996See 'config.log' for more details" "$LINENO" 5; } 1997 fi 1998done 1999 2000if test -r "$cache_file"; then 2001 # Some versions of bash will fail to source /dev/null (special files 2002 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2003 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2005printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2006 case $cache_file in 2007 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2008 *) . "./$cache_file";; 2009 esac 2010 fi 2011else 2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2013printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2014 >$cache_file 2015fi 2016 2017# Test code for whether the C compiler supports C89 (global declarations) 2018ac_c_conftest_c89_globals=' 2019/* Does the compiler advertise C89 conformance? 2020 Do not test the value of __STDC__, because some compilers set it to 0 2021 while being otherwise adequately conformant. */ 2022#if !defined __STDC__ 2023# error "Compiler does not advertise C89 conformance" 2024#endif 2025 2026#include <stddef.h> 2027#include <stdarg.h> 2028struct stat; 2029/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2030struct buf { int x; }; 2031struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2032static char *e (char **p, int i) 2033{ 2034 return p[i]; 2035} 2036static char *f (char * (*g) (char **, int), char **p, ...) 2037{ 2038 char *s; 2039 va_list v; 2040 va_start (v,p); 2041 s = g (p, va_arg (v,int)); 2042 va_end (v); 2043 return s; 2044} 2045 2046/* C89 style stringification. */ 2047#define noexpand_stringify(a) #a 2048const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2049 2050/* C89 style token pasting. Exercises some of the corner cases that 2051 e.g. old MSVC gets wrong, but not very hard. */ 2052#define noexpand_concat(a,b) a##b 2053#define expand_concat(a,b) noexpand_concat(a,b) 2054extern int vA; 2055extern int vbee; 2056#define aye A 2057#define bee B 2058int *pvA = &expand_concat(v,aye); 2059int *pvbee = &noexpand_concat(v,bee); 2060 2061/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2062 function prototypes and stuff, but not \xHH hex character constants. 2063 These do not provoke an error unfortunately, instead are silently treated 2064 as an "x". The following induces an error, until -std is added to get 2065 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2066 array size at least. It is necessary to write \x00 == 0 to get something 2067 that is true only with -std. */ 2068int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2069 2070/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2071 inside strings and character constants. */ 2072#define FOO(x) '\''x'\'' 2073int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2074 2075int test (int i, double x); 2076struct s1 {int (*f) (int a);}; 2077struct s2 {int (*f) (double a);}; 2078int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2079 int, int);' 2080 2081# Test code for whether the C compiler supports C89 (body of main). 2082ac_c_conftest_c89_main=' 2083ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2084' 2085 2086# Test code for whether the C compiler supports C99 (global declarations) 2087ac_c_conftest_c99_globals=' 2088/* Does the compiler advertise C99 conformance? */ 2089#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2090# error "Compiler does not advertise C99 conformance" 2091#endif 2092 2093// See if C++-style comments work. 2094 2095#include <stdbool.h> 2096extern int puts (const char *); 2097extern int printf (const char *, ...); 2098extern int dprintf (int, const char *, ...); 2099extern void *malloc (size_t); 2100extern void free (void *); 2101 2102// Check varargs macros. These examples are taken from C99 6.10.3.5. 2103// dprintf is used instead of fprintf to avoid needing to declare 2104// FILE and stderr. 2105#define debug(...) dprintf (2, __VA_ARGS__) 2106#define showlist(...) puts (#__VA_ARGS__) 2107#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2108static void 2109test_varargs_macros (void) 2110{ 2111 int x = 1234; 2112 int y = 5678; 2113 debug ("Flag"); 2114 debug ("X = %d\n", x); 2115 showlist (The first, second, and third items.); 2116 report (x>y, "x is %d but y is %d", x, y); 2117} 2118 2119// Check long long types. 2120#define BIG64 18446744073709551615ull 2121#define BIG32 4294967295ul 2122#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2123#if !BIG_OK 2124 #error "your preprocessor is broken" 2125#endif 2126#if BIG_OK 2127#else 2128 #error "your preprocessor is broken" 2129#endif 2130static long long int bignum = -9223372036854775807LL; 2131static unsigned long long int ubignum = BIG64; 2132 2133struct incomplete_array 2134{ 2135 int datasize; 2136 double data[]; 2137}; 2138 2139struct named_init { 2140 int number; 2141 const wchar_t *name; 2142 double average; 2143}; 2144 2145typedef const char *ccp; 2146 2147static inline int 2148test_restrict (ccp restrict text) 2149{ 2150 // Iterate through items via the restricted pointer. 2151 // Also check for declarations in for loops. 2152 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2153 continue; 2154 return 0; 2155} 2156 2157// Check varargs and va_copy. 2158static bool 2159test_varargs (const char *format, ...) 2160{ 2161 va_list args; 2162 va_start (args, format); 2163 va_list args_copy; 2164 va_copy (args_copy, args); 2165 2166 const char *str = ""; 2167 int number = 0; 2168 float fnumber = 0; 2169 2170 while (*format) 2171 { 2172 switch (*format++) 2173 { 2174 case '\''s'\'': // string 2175 str = va_arg (args_copy, const char *); 2176 break; 2177 case '\''d'\'': // int 2178 number = va_arg (args_copy, int); 2179 break; 2180 case '\''f'\'': // float 2181 fnumber = va_arg (args_copy, double); 2182 break; 2183 default: 2184 break; 2185 } 2186 } 2187 va_end (args_copy); 2188 va_end (args); 2189 2190 return *str && number && fnumber; 2191} 2192' 2193 2194# Test code for whether the C compiler supports C99 (body of main). 2195ac_c_conftest_c99_main=' 2196 // Check bool. 2197 _Bool success = false; 2198 success |= (argc != 0); 2199 2200 // Check restrict. 2201 if (test_restrict ("String literal") == 0) 2202 success = true; 2203 char *restrict newvar = "Another string"; 2204 2205 // Check varargs. 2206 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2207 test_varargs_macros (); 2208 2209 // Check flexible array members. 2210 struct incomplete_array *ia = 2211 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2212 ia->datasize = 10; 2213 for (int i = 0; i < ia->datasize; ++i) 2214 ia->data[i] = i * 1.234; 2215 // Work around memory leak warnings. 2216 free (ia); 2217 2218 // Check named initializers. 2219 struct named_init ni = { 2220 .number = 34, 2221 .name = L"Test wide string", 2222 .average = 543.34343, 2223 }; 2224 2225 ni.number = 58; 2226 2227 int dynamic_array[ni.number]; 2228 dynamic_array[0] = argv[0][0]; 2229 dynamic_array[ni.number - 1] = 543; 2230 2231 // work around unused variable warnings 2232 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2233 || dynamic_array[ni.number - 1] != 543); 2234' 2235 2236# Test code for whether the C compiler supports C11 (global declarations) 2237ac_c_conftest_c11_globals=' 2238/* Does the compiler advertise C11 conformance? */ 2239#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2240# error "Compiler does not advertise C11 conformance" 2241#endif 2242 2243// Check _Alignas. 2244char _Alignas (double) aligned_as_double; 2245char _Alignas (0) no_special_alignment; 2246extern char aligned_as_int; 2247char _Alignas (0) _Alignas (int) aligned_as_int; 2248 2249// Check _Alignof. 2250enum 2251{ 2252 int_alignment = _Alignof (int), 2253 int_array_alignment = _Alignof (int[100]), 2254 char_alignment = _Alignof (char) 2255}; 2256_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2257 2258// Check _Noreturn. 2259int _Noreturn does_not_return (void) { for (;;) continue; } 2260 2261// Check _Static_assert. 2262struct test_static_assert 2263{ 2264 int x; 2265 _Static_assert (sizeof (int) <= sizeof (long int), 2266 "_Static_assert does not work in struct"); 2267 long int y; 2268}; 2269 2270// Check UTF-8 literals. 2271#define u8 syntax error! 2272char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2273 2274// Check duplicate typedefs. 2275typedef long *long_ptr; 2276typedef long int *long_ptr; 2277typedef long_ptr long_ptr; 2278 2279// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2280struct anonymous 2281{ 2282 union { 2283 struct { int i; int j; }; 2284 struct { int k; long int l; } w; 2285 }; 2286 int m; 2287} v1; 2288' 2289 2290# Test code for whether the C compiler supports C11 (body of main). 2291ac_c_conftest_c11_main=' 2292 _Static_assert ((offsetof (struct anonymous, i) 2293 == offsetof (struct anonymous, w.k)), 2294 "Anonymous union alignment botch"); 2295 v1.i = 2; 2296 v1.w.k = 5; 2297 ok |= v1.i != 5; 2298' 2299 2300# Test code for whether the C compiler supports C11 (complete). 2301ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2302${ac_c_conftest_c99_globals} 2303${ac_c_conftest_c11_globals} 2304 2305int 2306main (int argc, char **argv) 2307{ 2308 int ok = 0; 2309 ${ac_c_conftest_c89_main} 2310 ${ac_c_conftest_c99_main} 2311 ${ac_c_conftest_c11_main} 2312 return ok; 2313} 2314" 2315 2316# Test code for whether the C compiler supports C99 (complete). 2317ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2318${ac_c_conftest_c99_globals} 2319 2320int 2321main (int argc, char **argv) 2322{ 2323 int ok = 0; 2324 ${ac_c_conftest_c89_main} 2325 ${ac_c_conftest_c99_main} 2326 return ok; 2327} 2328" 2329 2330# Test code for whether the C compiler supports C89 (complete). 2331ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2332 2333int 2334main (int argc, char **argv) 2335{ 2336 int ok = 0; 2337 ${ac_c_conftest_c89_main} 2338 return ok; 2339} 2340" 2341 2342as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2343as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2344as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2345as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2346as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2347as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2348as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2349as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2350as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2351 2352# Auxiliary files required by this configure script. 2353ac_aux_files="config.guess config.sub compile missing install-sh" 2354 2355# Locations in which to look for auxiliary files. 2356ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2357 2358# Search for a directory containing all of the required auxiliary files, 2359# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2360# If we don't find one directory that contains all the files we need, 2361# we report the set of missing files from the *first* directory in 2362# $ac_aux_dir_candidates and give up. 2363ac_missing_aux_files="" 2364ac_first_candidate=: 2365printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2367as_found=false 2368for as_dir in $ac_aux_dir_candidates 2369do 2370 IFS=$as_save_IFS 2371 case $as_dir in #((( 2372 '') as_dir=./ ;; 2373 */) ;; 2374 *) as_dir=$as_dir/ ;; 2375 esac 2376 as_found=: 2377 2378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2379 ac_aux_dir_found=yes 2380 ac_install_sh= 2381 for ac_aux in $ac_aux_files 2382 do 2383 # As a special case, if "install-sh" is required, that requirement 2384 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2385 # and $ac_install_sh is set appropriately for whichever one is found. 2386 if test x"$ac_aux" = x"install-sh" 2387 then 2388 if test -f "${as_dir}install-sh"; then 2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2390 ac_install_sh="${as_dir}install-sh -c" 2391 elif test -f "${as_dir}install.sh"; then 2392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2393 ac_install_sh="${as_dir}install.sh -c" 2394 elif test -f "${as_dir}shtool"; then 2395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2396 ac_install_sh="${as_dir}shtool install -c" 2397 else 2398 ac_aux_dir_found=no 2399 if $ac_first_candidate; then 2400 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2401 else 2402 break 2403 fi 2404 fi 2405 else 2406 if test -f "${as_dir}${ac_aux}"; then 2407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2408 else 2409 ac_aux_dir_found=no 2410 if $ac_first_candidate; then 2411 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2412 else 2413 break 2414 fi 2415 fi 2416 fi 2417 done 2418 if test "$ac_aux_dir_found" = yes; then 2419 ac_aux_dir="$as_dir" 2420 break 2421 fi 2422 ac_first_candidate=false 2423 2424 as_found=false 2425done 2426IFS=$as_save_IFS 2427if $as_found 2428then : 2429 2430else case e in #( 2431 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2432esac 2433fi 2434 2435 2436# These three variables are undocumented and unsupported, 2437# and are intended to be withdrawn in a future Autoconf release. 2438# They can cause serious problems if a builder's source tree is in a directory 2439# whose full name contains unusual characters. 2440if test -f "${ac_aux_dir}config.guess"; then 2441 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2442fi 2443if test -f "${ac_aux_dir}config.sub"; then 2444 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2445fi 2446if test -f "$ac_aux_dir/configure"; then 2447 ac_configure="$SHELL ${ac_aux_dir}configure" 2448fi 2449 2450# Check that the precious variables saved in the cache have kept the same 2451# value. 2452ac_cache_corrupted=false 2453for ac_var in $ac_precious_vars; do 2454 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2455 eval ac_new_set=\$ac_env_${ac_var}_set 2456 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2457 eval ac_new_val=\$ac_env_${ac_var}_value 2458 case $ac_old_set,$ac_new_set in 2459 set,) 2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2461printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2462 ac_cache_corrupted=: ;; 2463 ,set) 2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2465printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2466 ac_cache_corrupted=: ;; 2467 ,);; 2468 *) 2469 if test "x$ac_old_val" != "x$ac_new_val"; then 2470 # differences in whitespace do not lead to failure. 2471 ac_old_val_w=`echo x $ac_old_val` 2472 ac_new_val_w=`echo x $ac_new_val` 2473 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2475printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2476 ac_cache_corrupted=: 2477 else 2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2479printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2480 eval $ac_var=\$ac_old_val 2481 fi 2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2483printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2485printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2486 fi;; 2487 esac 2488 # Pass precious variables to config.status. 2489 if test "$ac_new_set" = set; then 2490 case $ac_new_val in 2491 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2492 *) ac_arg=$ac_var=$ac_new_val ;; 2493 esac 2494 case " $ac_configure_args " in 2495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2496 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2497 esac 2498 fi 2499done 2500if $ac_cache_corrupted; then 2501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2502printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2504printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2505 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2506 and start over" "$LINENO" 5 2507fi 2508## -------------------- ## 2509## Main body of script. ## 2510## -------------------- ## 2511 2512ac_ext=c 2513ac_cpp='$CPP $CPPFLAGS' 2514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2516ac_compiler_gnu=$ac_cv_c_compiler_gnu 2517 2518 2519 2520ac_config_headers="$ac_config_headers config.h" 2521 2522 2523# Initialize Automake 2524am__api_version='1.17' 2525 2526 2527 2528 # Find a good install program. We prefer a C program (faster), 2529# so one script is as good as another. But avoid the broken or 2530# incompatible versions: 2531# SysV /etc/install, /usr/sbin/install 2532# SunOS /usr/etc/install 2533# IRIX /sbin/install 2534# AIX /bin/install 2535# AmigaOS /C/install, which installs bootblocks on floppy discs 2536# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2537# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2538# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2539# OS/2's system install, which has a completely different semantic 2540# ./install, which can be erroneously created by make from ./install.sh. 2541# Reject install programs that cannot install multiple files. 2542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2543printf %s "checking for a BSD-compatible install... " >&6; } 2544if test -z "$INSTALL"; then 2545if test ${ac_cv_path_install+y} 2546then : 2547 printf %s "(cached) " >&6 2548else case e in #( 2549 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2550for as_dir in $PATH 2551do 2552 IFS=$as_save_IFS 2553 case $as_dir in #((( 2554 '') as_dir=./ ;; 2555 */) ;; 2556 *) as_dir=$as_dir/ ;; 2557 esac 2558 # Account for fact that we put trailing slashes in our PATH walk. 2559case $as_dir in #(( 2560 ./ | /[cC]/* | \ 2561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2562 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2563 /usr/ucb/* ) ;; 2564 *) 2565 # OSF1 and SCO ODT 3.0 have their own names for install. 2566 # Don't use installbsd from OSF since it installs stuff as root 2567 # by default. 2568 for ac_prog in ginstall scoinst install; do 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2571 if test $ac_prog = install && 2572 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2573 # AIX install. It has an incompatible calling convention. 2574 : 2575 elif test $ac_prog = install && 2576 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2577 # program-specific install script used by HP pwplus--don't use. 2578 : 2579 else 2580 rm -rf conftest.one conftest.two conftest.dir 2581 echo one > conftest.one 2582 echo two > conftest.two 2583 mkdir conftest.dir 2584 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2585 test -s conftest.one && test -s conftest.two && 2586 test -s conftest.dir/conftest.one && 2587 test -s conftest.dir/conftest.two 2588 then 2589 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2590 break 3 2591 fi 2592 fi 2593 fi 2594 done 2595 done 2596 ;; 2597esac 2598 2599 done 2600IFS=$as_save_IFS 2601 2602rm -rf conftest.one conftest.two conftest.dir 2603 ;; 2604esac 2605fi 2606 if test ${ac_cv_path_install+y}; then 2607 INSTALL=$ac_cv_path_install 2608 else 2609 # As a last resort, use the slow shell script. Don't cache a 2610 # value for INSTALL within a source directory, because that will 2611 # break other packages using the cache if that directory is 2612 # removed, or if the value is a relative name. 2613 INSTALL=$ac_install_sh 2614 fi 2615fi 2616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2617printf "%s\n" "$INSTALL" >&6; } 2618 2619# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2620# It thinks the first close brace ends the variable substitution. 2621test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2622 2623test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2624 2625test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2626 2627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2628printf %s "checking whether sleep supports fractional seconds... " >&6; } 2629if test ${am_cv_sleep_fractional_seconds+y} 2630then : 2631 printf %s "(cached) " >&6 2632else case e in #( 2633 e) if sleep 0.001 2>/dev/null 2634then : 2635 am_cv_sleep_fractional_seconds=yes 2636else case e in #( 2637 e) am_cv_sleep_fractional_seconds=no ;; 2638esac 2639fi 2640 ;; 2641esac 2642fi 2643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2644printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2645 2646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2647printf %s "checking filesystem timestamp resolution... " >&6; } 2648if test ${am_cv_filesystem_timestamp_resolution+y} 2649then : 2650 printf %s "(cached) " >&6 2651else case e in #( 2652 e) # Default to the worst case. 2653am_cv_filesystem_timestamp_resolution=2 2654 2655# Only try to go finer than 1 sec if sleep can do it. 2656# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2657# - 1 sec is not much of a win compared to 2 sec, and 2658# - it takes 2 seconds to perform the test whether 1 sec works. 2659# 2660# Instead, just use the default 2s on platforms that have 1s resolution, 2661# accept the extra 1s delay when using $sleep in the Automake tests, in 2662# exchange for not incurring the 2s delay for running the test for all 2663# packages. 2664# 2665am_try_resolutions= 2666if test "$am_cv_sleep_fractional_seconds" = yes; then 2667 # Even a millisecond often causes a bunch of false positives, 2668 # so just try a hundredth of a second. The time saved between .001 and 2669 # .01 is not terribly consequential. 2670 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2671fi 2672 2673# In order to catch current-generation FAT out, we must *modify* files 2674# that already exist; the *creation* timestamp is finer. Use names 2675# that make ls -t sort them differently when they have equal 2676# timestamps than when they have distinct timestamps, keeping 2677# in mind that ls -t prints the *newest* file first. 2678rm -f conftest.ts? 2679: > conftest.ts1 2680: > conftest.ts2 2681: > conftest.ts3 2682 2683# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2684# clobber the current shell's arguments. (Outer-level square brackets 2685# are removed by m4; they're present so that m4 does not expand 2686# <dollar><star>; be careful, easy to get confused.) 2687if ( 2688 set X `ls -t conftest.ts[12]` && 2689 { 2690 test "$*" != "X conftest.ts1 conftest.ts2" || 2691 test "$*" != "X conftest.ts2 conftest.ts1"; 2692 } 2693); then :; else 2694 # If neither matched, then we have a broken ls. This can happen 2695 # if, for instance, CONFIG_SHELL is bash and it inherits a 2696 # broken ls alias from the environment. This has actually 2697 # happened. Such a system could not be considered "sane". 2698 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2700printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2701as_fn_error $? "ls -t produces unexpected output. 2702Make sure there is not a broken ls alias in your environment. 2703See 'config.log' for more details" "$LINENO" 5; } 2704fi 2705 2706for am_try_res in $am_try_resolutions; do 2707 # Any one fine-grained sleep might happen to cross the boundary 2708 # between two values of a coarser actual resolution, but if we do 2709 # two fine-grained sleeps in a row, at least one of them will fall 2710 # entirely within a coarse interval. 2711 echo alpha > conftest.ts1 2712 sleep $am_try_res 2713 echo beta > conftest.ts2 2714 sleep $am_try_res 2715 echo gamma > conftest.ts3 2716 2717 # We assume that 'ls -t' will make use of high-resolution 2718 # timestamps if the operating system supports them at all. 2719 if (set X `ls -t conftest.ts?` && 2720 test "$2" = conftest.ts3 && 2721 test "$3" = conftest.ts2 && 2722 test "$4" = conftest.ts1); then 2723 # 2724 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2725 # because we don't need to test make. 2726 make_ok=true 2727 if test $am_try_res != 1; then 2728 # But if we've succeeded so far with a subsecond resolution, we 2729 # have one more thing to check: make. It can happen that 2730 # everything else supports the subsecond mtimes, but make doesn't; 2731 # notably on macOS, which ships make 3.81 from 2006 (the last one 2732 # released under GPLv2). https://bugs.gnu.org/68808 2733 # 2734 # We test $MAKE if it is defined in the environment, else "make". 2735 # It might get overridden later, but our hope is that in practice 2736 # it does not matter: it is the system "make" which is (by far) 2737 # the most likely to be broken, whereas if the user overrides it, 2738 # probably they did so with a better, or at least not worse, make. 2739 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2740 # 2741 # Create a Makefile (real tab character here): 2742 rm -f conftest.mk 2743 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2744 echo ' touch conftest.ts2' >>conftest.mk 2745 # 2746 # Now, running 2747 # touch conftest.ts1; touch conftest.ts2; make 2748 # should touch ts1 because ts2 is newer. This could happen by luck, 2749 # but most often, it will fail if make's support is insufficient. So 2750 # test for several consecutive successes. 2751 # 2752 # (We reuse conftest.ts[12] because we still want to modify existing 2753 # files, not create new ones, per above.) 2754 n=0 2755 make=${MAKE-make} 2756 until test $n -eq 3; do 2757 echo one > conftest.ts1 2758 sleep $am_try_res 2759 echo two > conftest.ts2 # ts2 should now be newer than ts1 2760 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2761 make_ok=false 2762 break # out of $n loop 2763 fi 2764 n=`expr $n + 1` 2765 done 2766 fi 2767 # 2768 if $make_ok; then 2769 # Everything we know to check worked out, so call this resolution good. 2770 am_cv_filesystem_timestamp_resolution=$am_try_res 2771 break # out of $am_try_res loop 2772 fi 2773 # Otherwise, we'll go on to check the next resolution. 2774 fi 2775done 2776rm -f conftest.ts? 2777# (end _am_filesystem_timestamp_resolution) 2778 ;; 2779esac 2780fi 2781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2782printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2783 2784# This check should not be cached, as it may vary across builds of 2785# different projects. 2786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2787printf %s "checking whether build environment is sane... " >&6; } 2788# Reject unsafe characters in $srcdir or the absolute working directory 2789# name. Accept space and tab only in the latter. 2790am_lf=' 2791' 2792case `pwd` in 2793 *[\\\"\#\$\&\'\`$am_lf]*) 2794 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2795esac 2796case $srcdir in 2797 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2798 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2799esac 2800 2801# Do 'set' in a subshell so we don't clobber the current shell's 2802# arguments. Must try -L first in case configure is actually a 2803# symlink; some systems play weird games with the mod time of symlinks 2804# (eg FreeBSD returns the mod time of the symlink's containing 2805# directory). 2806am_build_env_is_sane=no 2807am_has_slept=no 2808rm -f conftest.file 2809for am_try in 1 2; do 2810 echo "timestamp, slept: $am_has_slept" > conftest.file 2811 if ( 2812 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2813 if test "$*" = "X"; then 2814 # -L didn't work. 2815 set X `ls -t "$srcdir/configure" conftest.file` 2816 fi 2817 test "$2" = conftest.file 2818 ); then 2819 am_build_env_is_sane=yes 2820 break 2821 fi 2822 # Just in case. 2823 sleep "$am_cv_filesystem_timestamp_resolution" 2824 am_has_slept=yes 2825done 2826 2827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2828printf "%s\n" "$am_build_env_is_sane" >&6; } 2829if test "$am_build_env_is_sane" = no; then 2830 as_fn_error $? "newly created file is older than distributed files! 2831Check your system clock" "$LINENO" 5 2832fi 2833 2834# If we didn't sleep, we still need to ensure time stamps of config.status and 2835# generated files are strictly newer. 2836am_sleep_pid= 2837if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2838then : 2839 2840else case e in #( 2841 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2842 am_sleep_pid=$! 2843 ;; 2844esac 2845fi 2846 2847rm -f conftest.file 2848 2849test "$program_prefix" != NONE && 2850 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2851# Use a double $ so make ignores it. 2852test "$program_suffix" != NONE && 2853 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2854# Double any \ or $. 2855# By default was 's,x,x', remove it if useless. 2856ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2857program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2858 2859 2860# Expand $ac_aux_dir to an absolute path. 2861am_aux_dir=`cd "$ac_aux_dir" && pwd` 2862 2863 2864 if test x"${MISSING+set}" != xset; then 2865 MISSING="\${SHELL} '$am_aux_dir/missing'" 2866fi 2867# Use eval to expand $SHELL 2868if eval "$MISSING --is-lightweight"; then 2869 am_missing_run="$MISSING " 2870else 2871 am_missing_run= 2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2873printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2874fi 2875 2876if test x"${install_sh+set}" != xset; then 2877 case $am_aux_dir in 2878 *\ * | *\ *) 2879 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2880 *) 2881 install_sh="\${SHELL} $am_aux_dir/install-sh" 2882 esac 2883fi 2884 2885# Installed binaries are usually stripped using 'strip' when the user 2886# run "make install-strip". However 'strip' might not be the right 2887# tool to use in cross-compilation environments, therefore Automake 2888# will honor the 'STRIP' environment variable to overrule this program. 2889if test "$cross_compiling" != no; then 2890 if test -n "$ac_tool_prefix"; then 2891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2892set dummy ${ac_tool_prefix}strip; ac_word=$2 2893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2894printf %s "checking for $ac_word... " >&6; } 2895if test ${ac_cv_prog_STRIP+y} 2896then : 2897 printf %s "(cached) " >&6 2898else case e in #( 2899 e) if test -n "$STRIP"; then 2900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2901else 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 case $as_dir in #((( 2907 '') as_dir=./ ;; 2908 */) ;; 2909 *) as_dir=$as_dir/ ;; 2910 esac 2911 for ac_exec_ext in '' $ac_executable_extensions; do 2912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2913 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917done 2918 done 2919IFS=$as_save_IFS 2920 2921fi ;; 2922esac 2923fi 2924STRIP=$ac_cv_prog_STRIP 2925if test -n "$STRIP"; then 2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2927printf "%s\n" "$STRIP" >&6; } 2928else 2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2930printf "%s\n" "no" >&6; } 2931fi 2932 2933 2934fi 2935if test -z "$ac_cv_prog_STRIP"; then 2936 ac_ct_STRIP=$STRIP 2937 # Extract the first word of "strip", so it can be a program name with args. 2938set dummy strip; ac_word=$2 2939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2940printf %s "checking for $ac_word... " >&6; } 2941if test ${ac_cv_prog_ac_ct_STRIP+y} 2942then : 2943 printf %s "(cached) " >&6 2944else case e in #( 2945 e) if test -n "$ac_ct_STRIP"; then 2946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2947else 2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949for as_dir in $PATH 2950do 2951 IFS=$as_save_IFS 2952 case $as_dir in #((( 2953 '') as_dir=./ ;; 2954 */) ;; 2955 *) as_dir=$as_dir/ ;; 2956 esac 2957 for ac_exec_ext in '' $ac_executable_extensions; do 2958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2959 ac_cv_prog_ac_ct_STRIP="strip" 2960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2961 break 2 2962 fi 2963done 2964 done 2965IFS=$as_save_IFS 2966 2967fi ;; 2968esac 2969fi 2970ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2971if test -n "$ac_ct_STRIP"; then 2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2973printf "%s\n" "$ac_ct_STRIP" >&6; } 2974else 2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2976printf "%s\n" "no" >&6; } 2977fi 2978 2979 if test "x$ac_ct_STRIP" = x; then 2980 STRIP=":" 2981 else 2982 case $cross_compiling:$ac_tool_warned in 2983yes:) 2984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2985printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2986ac_tool_warned=yes ;; 2987esac 2988 STRIP=$ac_ct_STRIP 2989 fi 2990else 2991 STRIP="$ac_cv_prog_STRIP" 2992fi 2993 2994fi 2995INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2996 2997 2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2999printf %s "checking for a race-free mkdir -p... " >&6; } 3000if test -z "$MKDIR_P"; then 3001 if test ${ac_cv_path_mkdir+y} 3002then : 3003 printf %s "(cached) " >&6 3004else case e in #( 3005 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3007do 3008 IFS=$as_save_IFS 3009 case $as_dir in #((( 3010 '') as_dir=./ ;; 3011 */) ;; 3012 *) as_dir=$as_dir/ ;; 3013 esac 3014 for ac_prog in mkdir gmkdir; do 3015 for ac_exec_ext in '' $ac_executable_extensions; do 3016 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3017 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3018 'mkdir ('*'coreutils) '* | \ 3019 *'BusyBox '* | \ 3020 'mkdir (fileutils) '4.1*) 3021 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3022 break 3;; 3023 esac 3024 done 3025 done 3026 done 3027IFS=$as_save_IFS 3028 ;; 3029esac 3030fi 3031 3032 test -d ./--version && rmdir ./--version 3033 if test ${ac_cv_path_mkdir+y}; then 3034 MKDIR_P="$ac_cv_path_mkdir -p" 3035 else 3036 # As a last resort, use plain mkdir -p, 3037 # in the hope it doesn't have the bugs of ancient mkdir. 3038 MKDIR_P='mkdir -p' 3039 fi 3040fi 3041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3042printf "%s\n" "$MKDIR_P" >&6; } 3043 3044for ac_prog in gawk mawk nawk awk 3045do 3046 # Extract the first word of "$ac_prog", so it can be a program name with args. 3047set dummy $ac_prog; ac_word=$2 3048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3049printf %s "checking for $ac_word... " >&6; } 3050if test ${ac_cv_prog_AWK+y} 3051then : 3052 printf %s "(cached) " >&6 3053else case e in #( 3054 e) if test -n "$AWK"; then 3055 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3056else 3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3058for as_dir in $PATH 3059do 3060 IFS=$as_save_IFS 3061 case $as_dir in #((( 3062 '') as_dir=./ ;; 3063 */) ;; 3064 *) as_dir=$as_dir/ ;; 3065 esac 3066 for ac_exec_ext in '' $ac_executable_extensions; do 3067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3068 ac_cv_prog_AWK="$ac_prog" 3069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3070 break 2 3071 fi 3072done 3073 done 3074IFS=$as_save_IFS 3075 3076fi ;; 3077esac 3078fi 3079AWK=$ac_cv_prog_AWK 3080if test -n "$AWK"; then 3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3082printf "%s\n" "$AWK" >&6; } 3083else 3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3085printf "%s\n" "no" >&6; } 3086fi 3087 3088 3089 test -n "$AWK" && break 3090done 3091 3092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3093printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3094set x ${MAKE-make} 3095ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3096if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3097then : 3098 printf %s "(cached) " >&6 3099else case e in #( 3100 e) cat >conftest.make <<\_ACEOF 3101SHELL = /bin/sh 3102all: 3103 @echo '@@@%%%=$(MAKE)=@@@%%%' 3104_ACEOF 3105# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3106case `${MAKE-make} -f conftest.make 2>/dev/null` in 3107 *@@@%%%=?*=@@@%%%*) 3108 eval ac_cv_prog_make_${ac_make}_set=yes;; 3109 *) 3110 eval ac_cv_prog_make_${ac_make}_set=no;; 3111esac 3112rm -f conftest.make ;; 3113esac 3114fi 3115if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3117printf "%s\n" "yes" >&6; } 3118 SET_MAKE= 3119else 3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121printf "%s\n" "no" >&6; } 3122 SET_MAKE="MAKE=${MAKE-make}" 3123fi 3124 3125rm -rf .tst 2>/dev/null 3126mkdir .tst 2>/dev/null 3127if test -d .tst; then 3128 am__leading_dot=. 3129else 3130 am__leading_dot=_ 3131fi 3132rmdir .tst 2>/dev/null 3133 3134AM_DEFAULT_VERBOSITY=1 3135# Check whether --enable-silent-rules was given. 3136if test ${enable_silent_rules+y} 3137then : 3138 enableval=$enable_silent_rules; 3139fi 3140 3141am_make=${MAKE-make} 3142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3143printf %s "checking whether $am_make supports nested variables... " >&6; } 3144if test ${am_cv_make_support_nested_variables+y} 3145then : 3146 printf %s "(cached) " >&6 3147else case e in #( 3148 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3149BAR0=false 3150BAR1=true 3151V=1 3152am__doit: 3153 @$(TRUE) 3154.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3155 am_cv_make_support_nested_variables=yes 3156else 3157 am_cv_make_support_nested_variables=no 3158fi ;; 3159esac 3160fi 3161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3162printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3163AM_BACKSLASH='\' 3164 3165am__rm_f_notfound= 3166if (rm -f && rm -fr && rm -rf) 2>/dev/null 3167then : 3168 3169else case e in #( 3170 e) am__rm_f_notfound='""' ;; 3171esac 3172fi 3173 3174 3175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3176printf %s "checking xargs -n works... " >&6; } 3177if test ${am_cv_xargs_n_works+y} 3178then : 3179 printf %s "(cached) " >&6 3180else case e in #( 3181 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 31823" 3183then : 3184 am_cv_xargs_n_works=yes 3185else case e in #( 3186 e) am_cv_xargs_n_works=no ;; 3187esac 3188fi ;; 3189esac 3190fi 3191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3192printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3193if test "$am_cv_xargs_n_works" = yes 3194then : 3195 am__xargs_n='xargs -n' 3196else case e in #( 3197 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3198 ;; 3199esac 3200fi 3201 3202if test "`cd $srcdir && pwd`" != "`pwd`"; then 3203 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3204 # is not polluted with repeated "-I." 3205 am__isrc=' -I$(srcdir)' 3206 # test to see if srcdir already configured 3207 if test -f $srcdir/config.status; then 3208 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3209 fi 3210fi 3211 3212# test whether we have cygpath 3213if test -z "$CYGPATH_W"; then 3214 if (cygpath --version) >/dev/null 2>/dev/null; then 3215 CYGPATH_W='cygpath -w' 3216 else 3217 CYGPATH_W=echo 3218 fi 3219fi 3220 3221 3222# Define the identity of the package. 3223 PACKAGE='bdftopcf' 3224 VERSION='1.1.2' 3225 3226 3227printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3228 3229 3230printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3231 3232# Some tools Automake needs. 3233 3234ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3235 3236 3237AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3238 3239 3240AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3241 3242 3243AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3244 3245 3246MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3247 3248# For better backward compatibility. To be removed once Automake 1.9.x 3249# dies out for good. For more background, see: 3250# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3251# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3252mkdir_p='$(MKDIR_P)' 3253 3254# We need awk for the "check" target (and possibly the TAP driver). The 3255# system "awk" is bad on some platforms. 3256# Always define AMTAR for backward compatibility. Yes, it's still used 3257# in the wild :-( We should find a proper way to deprecate it ... 3258AMTAR='$${TAR-tar}' 3259 3260 3261# We'll loop over all known methods to create a tar archive until one works. 3262_am_tools='gnutar pax cpio none' 3263 3264am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3265 3266 3267 3268 3269 3270# Variables for tags utilities; see am/tags.am 3271if test -z "$CTAGS"; then 3272 CTAGS=ctags 3273fi 3274 3275if test -z "$ETAGS"; then 3276 ETAGS=etags 3277fi 3278 3279if test -z "$CSCOPE"; then 3280 CSCOPE=cscope 3281fi 3282 3283 3284 3285 3286 3287 3288 3289 3290# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311DEPDIR="${am__leading_dot}deps" 3312 3313ac_config_commands="$ac_config_commands depfiles" 3314 3315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3316printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3317cat > confinc.mk << 'END' 3318am__doit: 3319 @echo this is the am__doit target >confinc.out 3320.PHONY: am__doit 3321END 3322am__include="#" 3323am__quote= 3324# BSD make does it like this. 3325echo '.include "confinc.mk" # ignored' > confmf.BSD 3326# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3327echo 'include confinc.mk # ignored' > confmf.GNU 3328_am_result=no 3329for s in GNU BSD; do 3330 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3331 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3332 ac_status=$? 3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3334 (exit $ac_status); } 3335 case $?:`cat confinc.out 2>/dev/null` in #( 3336 '0:this is the am__doit target') : 3337 case $s in #( 3338 BSD) : 3339 am__include='.include' am__quote='"' ;; #( 3340 *) : 3341 am__include='include' am__quote='' ;; 3342esac ;; #( 3343 *) : 3344 ;; 3345esac 3346 if test "$am__include" != "#"; then 3347 _am_result="yes ($s style)" 3348 break 3349 fi 3350done 3351rm -f confinc.* confmf.* 3352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3353printf "%s\n" "${_am_result}" >&6; } 3354 3355# Check whether --enable-dependency-tracking was given. 3356if test ${enable_dependency_tracking+y} 3357then : 3358 enableval=$enable_dependency_tracking; 3359fi 3360 3361if test "x$enable_dependency_tracking" != xno; then 3362 am_depcomp="$ac_aux_dir/depcomp" 3363 AMDEPBACKSLASH='\' 3364 am__nodep='_no' 3365fi 3366 if test "x$enable_dependency_tracking" != xno; then 3367 AMDEP_TRUE= 3368 AMDEP_FALSE='#' 3369else 3370 AMDEP_TRUE='#' 3371 AMDEP_FALSE= 3372fi 3373 3374 3375ac_ext=c 3376ac_cpp='$CPP $CPPFLAGS' 3377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3379ac_compiler_gnu=$ac_cv_c_compiler_gnu 3380if test -n "$ac_tool_prefix"; then 3381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3382set dummy ${ac_tool_prefix}gcc; ac_word=$2 3383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3384printf %s "checking for $ac_word... " >&6; } 3385if test ${ac_cv_prog_CC+y} 3386then : 3387 printf %s "(cached) " >&6 3388else case e in #( 3389 e) if test -n "$CC"; then 3390 ac_cv_prog_CC="$CC" # Let the user override the test. 3391else 3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393for as_dir in $PATH 3394do 3395 IFS=$as_save_IFS 3396 case $as_dir in #((( 3397 '') as_dir=./ ;; 3398 */) ;; 3399 *) as_dir=$as_dir/ ;; 3400 esac 3401 for ac_exec_ext in '' $ac_executable_extensions; do 3402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3403 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3405 break 2 3406 fi 3407done 3408 done 3409IFS=$as_save_IFS 3410 3411fi ;; 3412esac 3413fi 3414CC=$ac_cv_prog_CC 3415if test -n "$CC"; then 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3417printf "%s\n" "$CC" >&6; } 3418else 3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3420printf "%s\n" "no" >&6; } 3421fi 3422 3423 3424fi 3425if test -z "$ac_cv_prog_CC"; then 3426 ac_ct_CC=$CC 3427 # Extract the first word of "gcc", so it can be a program name with args. 3428set dummy gcc; ac_word=$2 3429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3430printf %s "checking for $ac_word... " >&6; } 3431if test ${ac_cv_prog_ac_ct_CC+y} 3432then : 3433 printf %s "(cached) " >&6 3434else case e in #( 3435 e) if test -n "$ac_ct_CC"; then 3436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3437else 3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3439for as_dir in $PATH 3440do 3441 IFS=$as_save_IFS 3442 case $as_dir in #((( 3443 '') as_dir=./ ;; 3444 */) ;; 3445 *) as_dir=$as_dir/ ;; 3446 esac 3447 for ac_exec_ext in '' $ac_executable_extensions; do 3448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3449 ac_cv_prog_ac_ct_CC="gcc" 3450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3451 break 2 3452 fi 3453done 3454 done 3455IFS=$as_save_IFS 3456 3457fi ;; 3458esac 3459fi 3460ac_ct_CC=$ac_cv_prog_ac_ct_CC 3461if test -n "$ac_ct_CC"; then 3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3463printf "%s\n" "$ac_ct_CC" >&6; } 3464else 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3466printf "%s\n" "no" >&6; } 3467fi 3468 3469 if test "x$ac_ct_CC" = x; then 3470 CC="" 3471 else 3472 case $cross_compiling:$ac_tool_warned in 3473yes:) 3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3475printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3476ac_tool_warned=yes ;; 3477esac 3478 CC=$ac_ct_CC 3479 fi 3480else 3481 CC="$ac_cv_prog_CC" 3482fi 3483 3484if test -z "$CC"; then 3485 if test -n "$ac_tool_prefix"; then 3486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3487set dummy ${ac_tool_prefix}cc; ac_word=$2 3488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489printf %s "checking for $ac_word... " >&6; } 3490if test ${ac_cv_prog_CC+y} 3491then : 3492 printf %s "(cached) " >&6 3493else case e in #( 3494 e) if test -n "$CC"; then 3495 ac_cv_prog_CC="$CC" # Let the user override the test. 3496else 3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3498for as_dir in $PATH 3499do 3500 IFS=$as_save_IFS 3501 case $as_dir in #((( 3502 '') as_dir=./ ;; 3503 */) ;; 3504 *) as_dir=$as_dir/ ;; 3505 esac 3506 for ac_exec_ext in '' $ac_executable_extensions; do 3507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3508 ac_cv_prog_CC="${ac_tool_prefix}cc" 3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3510 break 2 3511 fi 3512done 3513 done 3514IFS=$as_save_IFS 3515 3516fi ;; 3517esac 3518fi 3519CC=$ac_cv_prog_CC 3520if test -n "$CC"; then 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3522printf "%s\n" "$CC" >&6; } 3523else 3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525printf "%s\n" "no" >&6; } 3526fi 3527 3528 3529 fi 3530fi 3531if test -z "$CC"; then 3532 # Extract the first word of "cc", so it can be a program name with args. 3533set dummy cc; ac_word=$2 3534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3535printf %s "checking for $ac_word... " >&6; } 3536if test ${ac_cv_prog_CC+y} 3537then : 3538 printf %s "(cached) " >&6 3539else case e in #( 3540 e) if test -n "$CC"; then 3541 ac_cv_prog_CC="$CC" # Let the user override the test. 3542else 3543 ac_prog_rejected=no 3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545for as_dir in $PATH 3546do 3547 IFS=$as_save_IFS 3548 case $as_dir in #((( 3549 '') as_dir=./ ;; 3550 */) ;; 3551 *) as_dir=$as_dir/ ;; 3552 esac 3553 for ac_exec_ext in '' $ac_executable_extensions; do 3554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3555 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3556 ac_prog_rejected=yes 3557 continue 3558 fi 3559 ac_cv_prog_CC="cc" 3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3561 break 2 3562 fi 3563done 3564 done 3565IFS=$as_save_IFS 3566 3567if test $ac_prog_rejected = yes; then 3568 # We found a bogon in the path, so make sure we never use it. 3569 set dummy $ac_cv_prog_CC 3570 shift 3571 if test $# != 0; then 3572 # We chose a different compiler from the bogus one. 3573 # However, it has the same basename, so the bogon will be chosen 3574 # first if we set CC to just the basename; use the full file name. 3575 shift 3576 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3577 fi 3578fi 3579fi ;; 3580esac 3581fi 3582CC=$ac_cv_prog_CC 3583if test -n "$CC"; then 3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3585printf "%s\n" "$CC" >&6; } 3586else 3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3588printf "%s\n" "no" >&6; } 3589fi 3590 3591 3592fi 3593if test -z "$CC"; then 3594 if test -n "$ac_tool_prefix"; then 3595 for ac_prog in cl.exe 3596 do 3597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3598set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3600printf %s "checking for $ac_word... " >&6; } 3601if test ${ac_cv_prog_CC+y} 3602then : 3603 printf %s "(cached) " >&6 3604else case e in #( 3605 e) if test -n "$CC"; then 3606 ac_cv_prog_CC="$CC" # Let the user override the test. 3607else 3608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3609for as_dir in $PATH 3610do 3611 IFS=$as_save_IFS 3612 case $as_dir in #((( 3613 '') as_dir=./ ;; 3614 */) ;; 3615 *) as_dir=$as_dir/ ;; 3616 esac 3617 for ac_exec_ext in '' $ac_executable_extensions; do 3618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3621 break 2 3622 fi 3623done 3624 done 3625IFS=$as_save_IFS 3626 3627fi ;; 3628esac 3629fi 3630CC=$ac_cv_prog_CC 3631if test -n "$CC"; then 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3633printf "%s\n" "$CC" >&6; } 3634else 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3636printf "%s\n" "no" >&6; } 3637fi 3638 3639 3640 test -n "$CC" && break 3641 done 3642fi 3643if test -z "$CC"; then 3644 ac_ct_CC=$CC 3645 for ac_prog in cl.exe 3646do 3647 # Extract the first word of "$ac_prog", so it can be a program name with args. 3648set dummy $ac_prog; ac_word=$2 3649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3650printf %s "checking for $ac_word... " >&6; } 3651if test ${ac_cv_prog_ac_ct_CC+y} 3652then : 3653 printf %s "(cached) " >&6 3654else case e in #( 3655 e) if test -n "$ac_ct_CC"; then 3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3657else 3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3659for as_dir in $PATH 3660do 3661 IFS=$as_save_IFS 3662 case $as_dir in #((( 3663 '') as_dir=./ ;; 3664 */) ;; 3665 *) as_dir=$as_dir/ ;; 3666 esac 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3669 ac_cv_prog_ac_ct_CC="$ac_prog" 3670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3671 break 2 3672 fi 3673done 3674 done 3675IFS=$as_save_IFS 3676 3677fi ;; 3678esac 3679fi 3680ac_ct_CC=$ac_cv_prog_ac_ct_CC 3681if test -n "$ac_ct_CC"; then 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3683printf "%s\n" "$ac_ct_CC" >&6; } 3684else 3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3686printf "%s\n" "no" >&6; } 3687fi 3688 3689 3690 test -n "$ac_ct_CC" && break 3691done 3692 3693 if test "x$ac_ct_CC" = x; then 3694 CC="" 3695 else 3696 case $cross_compiling:$ac_tool_warned in 3697yes:) 3698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3699printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3700ac_tool_warned=yes ;; 3701esac 3702 CC=$ac_ct_CC 3703 fi 3704fi 3705 3706fi 3707if test -z "$CC"; then 3708 if test -n "$ac_tool_prefix"; then 3709 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3710set dummy ${ac_tool_prefix}clang; ac_word=$2 3711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3712printf %s "checking for $ac_word... " >&6; } 3713if test ${ac_cv_prog_CC+y} 3714then : 3715 printf %s "(cached) " >&6 3716else case e in #( 3717 e) if test -n "$CC"; then 3718 ac_cv_prog_CC="$CC" # Let the user override the test. 3719else 3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3721for as_dir in $PATH 3722do 3723 IFS=$as_save_IFS 3724 case $as_dir in #((( 3725 '') as_dir=./ ;; 3726 */) ;; 3727 *) as_dir=$as_dir/ ;; 3728 esac 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3731 ac_cv_prog_CC="${ac_tool_prefix}clang" 3732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3733 break 2 3734 fi 3735done 3736 done 3737IFS=$as_save_IFS 3738 3739fi ;; 3740esac 3741fi 3742CC=$ac_cv_prog_CC 3743if test -n "$CC"; then 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745printf "%s\n" "$CC" >&6; } 3746else 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748printf "%s\n" "no" >&6; } 3749fi 3750 3751 3752fi 3753if test -z "$ac_cv_prog_CC"; then 3754 ac_ct_CC=$CC 3755 # Extract the first word of "clang", so it can be a program name with args. 3756set dummy clang; ac_word=$2 3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3758printf %s "checking for $ac_word... " >&6; } 3759if test ${ac_cv_prog_ac_ct_CC+y} 3760then : 3761 printf %s "(cached) " >&6 3762else case e in #( 3763 e) if test -n "$ac_ct_CC"; then 3764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3765else 3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3767for as_dir in $PATH 3768do 3769 IFS=$as_save_IFS 3770 case $as_dir in #((( 3771 '') as_dir=./ ;; 3772 */) ;; 3773 *) as_dir=$as_dir/ ;; 3774 esac 3775 for ac_exec_ext in '' $ac_executable_extensions; do 3776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3777 ac_cv_prog_ac_ct_CC="clang" 3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3779 break 2 3780 fi 3781done 3782 done 3783IFS=$as_save_IFS 3784 3785fi ;; 3786esac 3787fi 3788ac_ct_CC=$ac_cv_prog_ac_ct_CC 3789if test -n "$ac_ct_CC"; then 3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3791printf "%s\n" "$ac_ct_CC" >&6; } 3792else 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3794printf "%s\n" "no" >&6; } 3795fi 3796 3797 if test "x$ac_ct_CC" = x; then 3798 CC="" 3799 else 3800 case $cross_compiling:$ac_tool_warned in 3801yes:) 3802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3803printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3804ac_tool_warned=yes ;; 3805esac 3806 CC=$ac_ct_CC 3807 fi 3808else 3809 CC="$ac_cv_prog_CC" 3810fi 3811 3812fi 3813 3814 3815test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3816printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3817as_fn_error $? "no acceptable C compiler found in \$PATH 3818See 'config.log' for more details" "$LINENO" 5; } 3819 3820# Provide some information about the compiler. 3821printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3822set X $ac_compile 3823ac_compiler=$2 3824for ac_option in --version -v -V -qversion -version; do 3825 { { ac_try="$ac_compiler $ac_option >&5" 3826case "(($ac_try" in 3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3828 *) ac_try_echo=$ac_try;; 3829esac 3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3831printf "%s\n" "$ac_try_echo"; } >&5 3832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3833 ac_status=$? 3834 if test -s conftest.err; then 3835 sed '10a\ 3836... rest of stderr output deleted ... 3837 10q' conftest.err >conftest.er1 3838 cat conftest.er1 >&5 3839 fi 3840 rm -f conftest.er1 conftest.err 3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; } 3843done 3844 3845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3846/* end confdefs.h. */ 3847 3848int 3849main (void) 3850{ 3851 3852 ; 3853 return 0; 3854} 3855_ACEOF 3856ac_clean_files_save=$ac_clean_files 3857ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3858# Try to create an executable without -o first, disregard a.out. 3859# It will help us diagnose broken compilers, and finding out an intuition 3860# of exeext. 3861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3862printf %s "checking whether the C compiler works... " >&6; } 3863ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3864 3865# The possible output files: 3866ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3867 3868ac_rmfiles= 3869for ac_file in $ac_files 3870do 3871 case $ac_file in 3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3873 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3874 esac 3875done 3876rm -f $ac_rmfiles 3877 3878if { { ac_try="$ac_link_default" 3879case "(($ac_try" in 3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3881 *) ac_try_echo=$ac_try;; 3882esac 3883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3884printf "%s\n" "$ac_try_echo"; } >&5 3885 (eval "$ac_link_default") 2>&5 3886 ac_status=$? 3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3888 test $ac_status = 0; } 3889then : 3890 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3891# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3892# in a Makefile. We should not override ac_cv_exeext if it was cached, 3893# so that the user can short-circuit this test for compilers unknown to 3894# Autoconf. 3895for ac_file in $ac_files '' 3896do 3897 test -f "$ac_file" || continue 3898 case $ac_file in 3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3900 ;; 3901 [ab].out ) 3902 # We found the default executable, but exeext='' is most 3903 # certainly right. 3904 break;; 3905 *.* ) 3906 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3907 then :; else 3908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3909 fi 3910 # We set ac_cv_exeext here because the later test for it is not 3911 # safe: cross compilers may not add the suffix if given an '-o' 3912 # argument, so we may need to know it at that point already. 3913 # Even if this section looks crufty: it has the advantage of 3914 # actually working. 3915 break;; 3916 * ) 3917 break;; 3918 esac 3919done 3920test "$ac_cv_exeext" = no && ac_cv_exeext= 3921 3922else case e in #( 3923 e) ac_file='' ;; 3924esac 3925fi 3926if test -z "$ac_file" 3927then : 3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3929printf "%s\n" "no" >&6; } 3930printf "%s\n" "$as_me: failed program was:" >&5 3931sed 's/^/| /' conftest.$ac_ext >&5 3932 3933{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3934printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3935as_fn_error 77 "C compiler cannot create executables 3936See 'config.log' for more details" "$LINENO" 5; } 3937else case e in #( 3938 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3939printf "%s\n" "yes" >&6; } ;; 3940esac 3941fi 3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3943printf %s "checking for C compiler default output file name... " >&6; } 3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3945printf "%s\n" "$ac_file" >&6; } 3946ac_exeext=$ac_cv_exeext 3947 3948rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3949ac_clean_files=$ac_clean_files_save 3950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3951printf %s "checking for suffix of executables... " >&6; } 3952if { { ac_try="$ac_link" 3953case "(($ac_try" in 3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3955 *) ac_try_echo=$ac_try;; 3956esac 3957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3958printf "%s\n" "$ac_try_echo"; } >&5 3959 (eval "$ac_link") 2>&5 3960 ac_status=$? 3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3962 test $ac_status = 0; } 3963then : 3964 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3965# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3966# work properly (i.e., refer to 'conftest.exe'), while it won't with 3967# 'rm'. 3968for ac_file in conftest.exe conftest conftest.*; do 3969 test -f "$ac_file" || continue 3970 case $ac_file in 3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3973 break;; 3974 * ) break;; 3975 esac 3976done 3977else case e in #( 3978 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3979printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3980as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3981See 'config.log' for more details" "$LINENO" 5; } ;; 3982esac 3983fi 3984rm -f conftest conftest$ac_cv_exeext 3985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3986printf "%s\n" "$ac_cv_exeext" >&6; } 3987 3988rm -f conftest.$ac_ext 3989EXEEXT=$ac_cv_exeext 3990ac_exeext=$EXEEXT 3991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992/* end confdefs.h. */ 3993#include <stdio.h> 3994int 3995main (void) 3996{ 3997FILE *f = fopen ("conftest.out", "w"); 3998 if (!f) 3999 return 1; 4000 return ferror (f) || fclose (f) != 0; 4001 4002 ; 4003 return 0; 4004} 4005_ACEOF 4006ac_clean_files="$ac_clean_files conftest.out" 4007# Check that the compiler produces executables we can run. If not, either 4008# the compiler is broken, or we cross compile. 4009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4010printf %s "checking whether we are cross compiling... " >&6; } 4011if test "$cross_compiling" != yes; then 4012 { { ac_try="$ac_link" 4013case "(($ac_try" in 4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4015 *) ac_try_echo=$ac_try;; 4016esac 4017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4018printf "%s\n" "$ac_try_echo"; } >&5 4019 (eval "$ac_link") 2>&5 4020 ac_status=$? 4021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4022 test $ac_status = 0; } 4023 if { ac_try='./conftest$ac_cv_exeext' 4024 { { case "(($ac_try" in 4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4026 *) ac_try_echo=$ac_try;; 4027esac 4028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4029printf "%s\n" "$ac_try_echo"; } >&5 4030 (eval "$ac_try") 2>&5 4031 ac_status=$? 4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4033 test $ac_status = 0; }; }; then 4034 cross_compiling=no 4035 else 4036 if test "$cross_compiling" = maybe; then 4037 cross_compiling=yes 4038 else 4039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4040printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4041as_fn_error 77 "cannot run C compiled programs. 4042If you meant to cross compile, use '--host'. 4043See 'config.log' for more details" "$LINENO" 5; } 4044 fi 4045 fi 4046fi 4047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4048printf "%s\n" "$cross_compiling" >&6; } 4049 4050rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4051 conftest.o conftest.obj conftest.out 4052ac_clean_files=$ac_clean_files_save 4053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4054printf %s "checking for suffix of object files... " >&6; } 4055if test ${ac_cv_objext+y} 4056then : 4057 printf %s "(cached) " >&6 4058else case e in #( 4059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061 4062int 4063main (void) 4064{ 4065 4066 ; 4067 return 0; 4068} 4069_ACEOF 4070rm -f conftest.o conftest.obj 4071if { { ac_try="$ac_compile" 4072case "(($ac_try" in 4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4074 *) ac_try_echo=$ac_try;; 4075esac 4076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4077printf "%s\n" "$ac_try_echo"; } >&5 4078 (eval "$ac_compile") 2>&5 4079 ac_status=$? 4080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4081 test $ac_status = 0; } 4082then : 4083 for ac_file in conftest.o conftest.obj conftest.*; do 4084 test -f "$ac_file" || continue; 4085 case $ac_file in 4086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4087 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4088 break;; 4089 esac 4090done 4091else case e in #( 4092 e) printf "%s\n" "$as_me: failed program was:" >&5 4093sed 's/^/| /' conftest.$ac_ext >&5 4094 4095{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4096printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4097as_fn_error $? "cannot compute suffix of object files: cannot compile 4098See 'config.log' for more details" "$LINENO" 5; } ;; 4099esac 4100fi 4101rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4102esac 4103fi 4104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4105printf "%s\n" "$ac_cv_objext" >&6; } 4106OBJEXT=$ac_cv_objext 4107ac_objext=$OBJEXT 4108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4109printf %s "checking whether the compiler supports GNU C... " >&6; } 4110if test ${ac_cv_c_compiler_gnu+y} 4111then : 4112 printf %s "(cached) " >&6 4113else case e in #( 4114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116 4117int 4118main (void) 4119{ 4120#ifndef __GNUC__ 4121 choke me 4122#endif 4123 4124 ; 4125 return 0; 4126} 4127_ACEOF 4128if ac_fn_c_try_compile "$LINENO" 4129then : 4130 ac_compiler_gnu=yes 4131else case e in #( 4132 e) ac_compiler_gnu=no ;; 4133esac 4134fi 4135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4136ac_cv_c_compiler_gnu=$ac_compiler_gnu 4137 ;; 4138esac 4139fi 4140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4141printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4142ac_compiler_gnu=$ac_cv_c_compiler_gnu 4143 4144if test $ac_compiler_gnu = yes; then 4145 GCC=yes 4146else 4147 GCC= 4148fi 4149ac_test_CFLAGS=${CFLAGS+y} 4150ac_save_CFLAGS=$CFLAGS 4151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4152printf %s "checking whether $CC accepts -g... " >&6; } 4153if test ${ac_cv_prog_cc_g+y} 4154then : 4155 printf %s "(cached) " >&6 4156else case e in #( 4157 e) ac_save_c_werror_flag=$ac_c_werror_flag 4158 ac_c_werror_flag=yes 4159 ac_cv_prog_cc_g=no 4160 CFLAGS="-g" 4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4162/* end confdefs.h. */ 4163 4164int 4165main (void) 4166{ 4167 4168 ; 4169 return 0; 4170} 4171_ACEOF 4172if ac_fn_c_try_compile "$LINENO" 4173then : 4174 ac_cv_prog_cc_g=yes 4175else case e in #( 4176 e) CFLAGS="" 4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178/* end confdefs.h. */ 4179 4180int 4181main (void) 4182{ 4183 4184 ; 4185 return 0; 4186} 4187_ACEOF 4188if ac_fn_c_try_compile "$LINENO" 4189then : 4190 4191else case e in #( 4192 e) ac_c_werror_flag=$ac_save_c_werror_flag 4193 CFLAGS="-g" 4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195/* end confdefs.h. */ 4196 4197int 4198main (void) 4199{ 4200 4201 ; 4202 return 0; 4203} 4204_ACEOF 4205if ac_fn_c_try_compile "$LINENO" 4206then : 4207 ac_cv_prog_cc_g=yes 4208fi 4209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4210esac 4211fi 4212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4213esac 4214fi 4215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4216 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4217esac 4218fi 4219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4220printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4221if test $ac_test_CFLAGS; then 4222 CFLAGS=$ac_save_CFLAGS 4223elif test $ac_cv_prog_cc_g = yes; then 4224 if test "$GCC" = yes; then 4225 CFLAGS="-g -O2" 4226 else 4227 CFLAGS="-g" 4228 fi 4229else 4230 if test "$GCC" = yes; then 4231 CFLAGS="-O2" 4232 else 4233 CFLAGS= 4234 fi 4235fi 4236ac_prog_cc_stdc=no 4237if test x$ac_prog_cc_stdc = xno 4238then : 4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4240printf %s "checking for $CC option to enable C11 features... " >&6; } 4241if test ${ac_cv_prog_cc_c11+y} 4242then : 4243 printf %s "(cached) " >&6 4244else case e in #( 4245 e) ac_cv_prog_cc_c11=no 4246ac_save_CC=$CC 4247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248/* end confdefs.h. */ 4249$ac_c_conftest_c11_program 4250_ACEOF 4251for ac_arg in '' -std=gnu11 4252do 4253 CC="$ac_save_CC $ac_arg" 4254 if ac_fn_c_try_compile "$LINENO" 4255then : 4256 ac_cv_prog_cc_c11=$ac_arg 4257fi 4258rm -f core conftest.err conftest.$ac_objext conftest.beam 4259 test "x$ac_cv_prog_cc_c11" != "xno" && break 4260done 4261rm -f conftest.$ac_ext 4262CC=$ac_save_CC ;; 4263esac 4264fi 4265 4266if test "x$ac_cv_prog_cc_c11" = xno 4267then : 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4269printf "%s\n" "unsupported" >&6; } 4270else case e in #( 4271 e) if test "x$ac_cv_prog_cc_c11" = x 4272then : 4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4274printf "%s\n" "none needed" >&6; } 4275else case e in #( 4276 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4277printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4278 CC="$CC $ac_cv_prog_cc_c11" ;; 4279esac 4280fi 4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4282 ac_prog_cc_stdc=c11 ;; 4283esac 4284fi 4285fi 4286if test x$ac_prog_cc_stdc = xno 4287then : 4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4289printf %s "checking for $CC option to enable C99 features... " >&6; } 4290if test ${ac_cv_prog_cc_c99+y} 4291then : 4292 printf %s "(cached) " >&6 4293else case e in #( 4294 e) ac_cv_prog_cc_c99=no 4295ac_save_CC=$CC 4296cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4297/* end confdefs.h. */ 4298$ac_c_conftest_c99_program 4299_ACEOF 4300for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4301do 4302 CC="$ac_save_CC $ac_arg" 4303 if ac_fn_c_try_compile "$LINENO" 4304then : 4305 ac_cv_prog_cc_c99=$ac_arg 4306fi 4307rm -f core conftest.err conftest.$ac_objext conftest.beam 4308 test "x$ac_cv_prog_cc_c99" != "xno" && break 4309done 4310rm -f conftest.$ac_ext 4311CC=$ac_save_CC ;; 4312esac 4313fi 4314 4315if test "x$ac_cv_prog_cc_c99" = xno 4316then : 4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4318printf "%s\n" "unsupported" >&6; } 4319else case e in #( 4320 e) if test "x$ac_cv_prog_cc_c99" = x 4321then : 4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4323printf "%s\n" "none needed" >&6; } 4324else case e in #( 4325 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4326printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4327 CC="$CC $ac_cv_prog_cc_c99" ;; 4328esac 4329fi 4330 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4331 ac_prog_cc_stdc=c99 ;; 4332esac 4333fi 4334fi 4335if test x$ac_prog_cc_stdc = xno 4336then : 4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4338printf %s "checking for $CC option to enable C89 features... " >&6; } 4339if test ${ac_cv_prog_cc_c89+y} 4340then : 4341 printf %s "(cached) " >&6 4342else case e in #( 4343 e) ac_cv_prog_cc_c89=no 4344ac_save_CC=$CC 4345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346/* end confdefs.h. */ 4347$ac_c_conftest_c89_program 4348_ACEOF 4349for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4350do 4351 CC="$ac_save_CC $ac_arg" 4352 if ac_fn_c_try_compile "$LINENO" 4353then : 4354 ac_cv_prog_cc_c89=$ac_arg 4355fi 4356rm -f core conftest.err conftest.$ac_objext conftest.beam 4357 test "x$ac_cv_prog_cc_c89" != "xno" && break 4358done 4359rm -f conftest.$ac_ext 4360CC=$ac_save_CC ;; 4361esac 4362fi 4363 4364if test "x$ac_cv_prog_cc_c89" = xno 4365then : 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4367printf "%s\n" "unsupported" >&6; } 4368else case e in #( 4369 e) if test "x$ac_cv_prog_cc_c89" = x 4370then : 4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4372printf "%s\n" "none needed" >&6; } 4373else case e in #( 4374 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4375printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4376 CC="$CC $ac_cv_prog_cc_c89" ;; 4377esac 4378fi 4379 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4380 ac_prog_cc_stdc=c89 ;; 4381esac 4382fi 4383fi 4384 4385ac_ext=c 4386ac_cpp='$CPP $CPPFLAGS' 4387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4389ac_compiler_gnu=$ac_cv_c_compiler_gnu 4390 4391 4392 ac_ext=c 4393ac_cpp='$CPP $CPPFLAGS' 4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4396ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4398printf %s "checking whether $CC understands -c and -o together... " >&6; } 4399if test ${am_cv_prog_cc_c_o+y} 4400then : 4401 printf %s "(cached) " >&6 4402else case e in #( 4403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4404/* end confdefs.h. */ 4405 4406int 4407main (void) 4408{ 4409 4410 ; 4411 return 0; 4412} 4413_ACEOF 4414 # Make sure it works both with $CC and with simple cc. 4415 # Following AC_PROG_CC_C_O, we do the test twice because some 4416 # compilers refuse to overwrite an existing .o file with -o, 4417 # though they will create one. 4418 am_cv_prog_cc_c_o=yes 4419 for am_i in 1 2; do 4420 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4421 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4422 ac_status=$? 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); } \ 4425 && test -f conftest2.$ac_objext; then 4426 : OK 4427 else 4428 am_cv_prog_cc_c_o=no 4429 break 4430 fi 4431 done 4432 rm -f core conftest* 4433 unset am_i ;; 4434esac 4435fi 4436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4437printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4438if test "$am_cv_prog_cc_c_o" != yes; then 4439 # Losing compiler, so override with the script. 4440 # FIXME: It is wrong to rewrite CC. 4441 # But if we don't then we get into trouble of one sort or another. 4442 # A longer-term fix would be to have automake use am__CC in this case, 4443 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4444 CC="$am_aux_dir/compile $CC" 4445fi 4446ac_ext=c 4447ac_cpp='$CPP $CPPFLAGS' 4448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4450ac_compiler_gnu=$ac_cv_c_compiler_gnu 4451 4452 4453depcc="$CC" am_compiler_list= 4454 4455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4456printf %s "checking dependency style of $depcc... " >&6; } 4457if test ${am_cv_CC_dependencies_compiler_type+y} 4458then : 4459 printf %s "(cached) " >&6 4460else case e in #( 4461 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4462 # We make a subdir and do the tests there. Otherwise we can end up 4463 # making bogus files that we don't know about and never remove. For 4464 # instance it was reported that on HP-UX the gcc test will end up 4465 # making a dummy file named 'D' -- because '-MD' means "put the output 4466 # in D". 4467 rm -rf conftest.dir 4468 mkdir conftest.dir 4469 # Copy depcomp to subdir because otherwise we won't find it if we're 4470 # using a relative directory. 4471 cp "$am_depcomp" conftest.dir 4472 cd conftest.dir 4473 # We will build objects and dependencies in a subdirectory because 4474 # it helps to detect inapplicable dependency modes. For instance 4475 # both Tru64's cc and ICC support -MD to output dependencies as a 4476 # side effect of compilation, but ICC will put the dependencies in 4477 # the current directory while Tru64 will put them in the object 4478 # directory. 4479 mkdir sub 4480 4481 am_cv_CC_dependencies_compiler_type=none 4482 if test "$am_compiler_list" = ""; then 4483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4484 fi 4485 am__universal=false 4486 case " $depcc " in #( 4487 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4488 esac 4489 4490 for depmode in $am_compiler_list; do 4491 # Setup a source with many dependencies, because some compilers 4492 # like to wrap large dependency lists on column 80 (with \), and 4493 # we should not choose a depcomp mode which is confused by this. 4494 # 4495 # We need to recreate these files for each test, as the compiler may 4496 # overwrite some of them when testing with obscure command lines. 4497 # This happens at least with the AIX C compiler. 4498 : > sub/conftest.c 4499 for i in 1 2 3 4 5 6; do 4500 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4501 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4502 # Solaris 10 /bin/sh. 4503 echo '/* dummy */' > sub/conftst$i.h 4504 done 4505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4506 4507 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4508 # mode. It turns out that the SunPro C++ compiler does not properly 4509 # handle '-M -o', and we need to detect this. Also, some Intel 4510 # versions had trouble with output in subdirs. 4511 am__obj=sub/conftest.${OBJEXT-o} 4512 am__minus_obj="-o $am__obj" 4513 case $depmode in 4514 gcc) 4515 # This depmode causes a compiler race in universal mode. 4516 test "$am__universal" = false || continue 4517 ;; 4518 nosideeffect) 4519 # After this tag, mechanisms are not by side-effect, so they'll 4520 # only be used when explicitly requested. 4521 if test "x$enable_dependency_tracking" = xyes; then 4522 continue 4523 else 4524 break 4525 fi 4526 ;; 4527 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4528 # This compiler won't grok '-c -o', but also, the minuso test has 4529 # not run yet. These depmodes are late enough in the game, and 4530 # so weak that their functioning should not be impacted. 4531 am__obj=conftest.${OBJEXT-o} 4532 am__minus_obj= 4533 ;; 4534 none) break ;; 4535 esac 4536 if depmode=$depmode \ 4537 source=sub/conftest.c object=$am__obj \ 4538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4540 >/dev/null 2>conftest.err && 4541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4545 # icc doesn't choke on unknown options, it will just issue warnings 4546 # or remarks (even with -Werror). So we grep stderr for any message 4547 # that says an option was ignored or not supported. 4548 # When given -MP, icc 7.0 and 7.1 complain thus: 4549 # icc: Command line warning: ignoring option '-M'; no argument required 4550 # The diagnosis changed in icc 8.0: 4551 # icc: Command line remark: option '-MP' not supported 4552 if (grep 'ignoring option' conftest.err || 4553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4554 am_cv_CC_dependencies_compiler_type=$depmode 4555 break 4556 fi 4557 fi 4558 done 4559 4560 cd .. 4561 rm -rf conftest.dir 4562else 4563 am_cv_CC_dependencies_compiler_type=none 4564fi 4565 ;; 4566esac 4567fi 4568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4569printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4570CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4571 4572 if 4573 test "x$enable_dependency_tracking" != xno \ 4574 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4575 am__fastdepCC_TRUE= 4576 am__fastdepCC_FALSE='#' 4577else 4578 am__fastdepCC_TRUE='#' 4579 am__fastdepCC_FALSE= 4580fi 4581 4582 4583 4584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4585printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4586if test ${ac_cv_c_undeclared_builtin_options+y} 4587then : 4588 printf %s "(cached) " >&6 4589else case e in #( 4590 e) ac_save_CFLAGS=$CFLAGS 4591 ac_cv_c_undeclared_builtin_options='cannot detect' 4592 for ac_arg in '' -fno-builtin; do 4593 CFLAGS="$ac_save_CFLAGS $ac_arg" 4594 # This test program should *not* compile successfully. 4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596/* end confdefs.h. */ 4597 4598int 4599main (void) 4600{ 4601(void) strchr; 4602 ; 4603 return 0; 4604} 4605_ACEOF 4606if ac_fn_c_try_compile "$LINENO" 4607then : 4608 4609else case e in #( 4610 e) # This test program should compile successfully. 4611 # No library function is consistently available on 4612 # freestanding implementations, so test against a dummy 4613 # declaration. Include always-available headers on the 4614 # off chance that they somehow elicit warnings. 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616/* end confdefs.h. */ 4617#include <float.h> 4618#include <limits.h> 4619#include <stdarg.h> 4620#include <stddef.h> 4621extern void ac_decl (int, char *); 4622 4623int 4624main (void) 4625{ 4626(void) ac_decl (0, (char *) 0); 4627 (void) ac_decl; 4628 4629 ; 4630 return 0; 4631} 4632_ACEOF 4633if ac_fn_c_try_compile "$LINENO" 4634then : 4635 if test x"$ac_arg" = x 4636then : 4637 ac_cv_c_undeclared_builtin_options='none needed' 4638else case e in #( 4639 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4640esac 4641fi 4642 break 4643fi 4644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4645esac 4646fi 4647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4648 done 4649 CFLAGS=$ac_save_CFLAGS 4650 ;; 4651esac 4652fi 4653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4654printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4655 case $ac_cv_c_undeclared_builtin_options in #( 4656 'cannot detect') : 4657 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4658printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4659as_fn_error $? "cannot make $CC report undeclared builtins 4660See 'config.log' for more details" "$LINENO" 5; } ;; #( 4661 'none needed') : 4662 ac_c_undeclared_builtin_options='' ;; #( 4663 *) : 4664 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4665esac 4666 4667ac_header= ac_cache= 4668for ac_item in $ac_header_c_list 4669do 4670 if test $ac_cache; then 4671 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4672 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4673 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4674 fi 4675 ac_header= ac_cache= 4676 elif test $ac_header; then 4677 ac_cache=$ac_item 4678 else 4679 ac_header=$ac_item 4680 fi 4681done 4682 4683 4684 4685 4686 4687 4688 4689 4690if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4691then : 4692 4693printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4694 4695fi 4696 4697 4698 4699 4700ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4701if test "x$ac_cv_have_decl___clang__" = xyes 4702then : 4703 CLANGCC="yes" 4704else case e in #( 4705 e) CLANGCC="no" ;; 4706esac 4707fi 4708ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4709if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4710then : 4711 INTELCC="yes" 4712else case e in #( 4713 e) INTELCC="no" ;; 4714esac 4715fi 4716ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4717if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4718then : 4719 SUNCC="yes" 4720else case e in #( 4721 e) SUNCC="no" ;; 4722esac 4723fi 4724 4725 4726 4727 4728 4729 4730 4731 4732if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4733 if test -n "$ac_tool_prefix"; then 4734 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4735set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4737printf %s "checking for $ac_word... " >&6; } 4738if test ${ac_cv_path_PKG_CONFIG+y} 4739then : 4740 printf %s "(cached) " >&6 4741else case e in #( 4742 e) case $PKG_CONFIG in 4743 [\\/]* | ?:[\\/]*) 4744 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4745 ;; 4746 *) 4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4748for as_dir in $PATH 4749do 4750 IFS=$as_save_IFS 4751 case $as_dir in #((( 4752 '') as_dir=./ ;; 4753 */) ;; 4754 *) as_dir=$as_dir/ ;; 4755 esac 4756 for ac_exec_ext in '' $ac_executable_extensions; do 4757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4758 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4760 break 2 4761 fi 4762done 4763 done 4764IFS=$as_save_IFS 4765 4766 ;; 4767esac ;; 4768esac 4769fi 4770PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4771if test -n "$PKG_CONFIG"; then 4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4773printf "%s\n" "$PKG_CONFIG" >&6; } 4774else 4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4776printf "%s\n" "no" >&6; } 4777fi 4778 4779 4780fi 4781if test -z "$ac_cv_path_PKG_CONFIG"; then 4782 ac_pt_PKG_CONFIG=$PKG_CONFIG 4783 # Extract the first word of "pkg-config", so it can be a program name with args. 4784set dummy pkg-config; ac_word=$2 4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4786printf %s "checking for $ac_word... " >&6; } 4787if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4788then : 4789 printf %s "(cached) " >&6 4790else case e in #( 4791 e) case $ac_pt_PKG_CONFIG in 4792 [\\/]* | ?:[\\/]*) 4793 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4794 ;; 4795 *) 4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4797for as_dir in $PATH 4798do 4799 IFS=$as_save_IFS 4800 case $as_dir in #((( 4801 '') as_dir=./ ;; 4802 */) ;; 4803 *) as_dir=$as_dir/ ;; 4804 esac 4805 for ac_exec_ext in '' $ac_executable_extensions; do 4806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4807 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4809 break 2 4810 fi 4811done 4812 done 4813IFS=$as_save_IFS 4814 4815 ;; 4816esac ;; 4817esac 4818fi 4819ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4820if test -n "$ac_pt_PKG_CONFIG"; then 4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4822printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4823else 4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4825printf "%s\n" "no" >&6; } 4826fi 4827 4828 if test "x$ac_pt_PKG_CONFIG" = x; then 4829 PKG_CONFIG="" 4830 else 4831 case $cross_compiling:$ac_tool_warned in 4832yes:) 4833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4835ac_tool_warned=yes ;; 4836esac 4837 PKG_CONFIG=$ac_pt_PKG_CONFIG 4838 fi 4839else 4840 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4841fi 4842 4843fi 4844if test -n "$PKG_CONFIG"; then 4845 _pkg_min_version=0.9.0 4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4847printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4848 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4850printf "%s\n" "yes" >&6; } 4851 else 4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4853printf "%s\n" "no" >&6; } 4854 PKG_CONFIG="" 4855 fi 4856fi 4857 4858 4859 # Make sure we can run config.sub. 4860$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4861 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4862 4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4864printf %s "checking build system type... " >&6; } 4865if test ${ac_cv_build+y} 4866then : 4867 printf %s "(cached) " >&6 4868else case e in #( 4869 e) ac_build_alias=$build_alias 4870test "x$ac_build_alias" = x && 4871 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4872test "x$ac_build_alias" = x && 4873 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4874ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4875 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4876 ;; 4877esac 4878fi 4879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4880printf "%s\n" "$ac_cv_build" >&6; } 4881case $ac_cv_build in 4882*-*-*) ;; 4883*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4884esac 4885build=$ac_cv_build 4886ac_save_IFS=$IFS; IFS='-' 4887set x $ac_cv_build 4888shift 4889build_cpu=$1 4890build_vendor=$2 4891shift; shift 4892# Remember, the first character of IFS is used to create $*, 4893# except with old shells: 4894build_os=$* 4895IFS=$ac_save_IFS 4896case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4897 4898 4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4900printf %s "checking host system type... " >&6; } 4901if test ${ac_cv_host+y} 4902then : 4903 printf %s "(cached) " >&6 4904else case e in #( 4905 e) if test "x$host_alias" = x; then 4906 ac_cv_host=$ac_cv_build 4907else 4908 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4909 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4910fi 4911 ;; 4912esac 4913fi 4914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4915printf "%s\n" "$ac_cv_host" >&6; } 4916case $ac_cv_host in 4917*-*-*) ;; 4918*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4919esac 4920host=$ac_cv_host 4921ac_save_IFS=$IFS; IFS='-' 4922set x $ac_cv_host 4923shift 4924host_cpu=$1 4925host_vendor=$2 4926shift; shift 4927# Remember, the first character of IFS is used to create $*, 4928# except with old shells: 4929host_os=$* 4930IFS=$ac_save_IFS 4931case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4932 4933 4934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4935printf %s "checking for a sed that does not truncate output... " >&6; } 4936if test ${ac_cv_path_SED+y} 4937then : 4938 printf %s "(cached) " >&6 4939else case e in #( 4940 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4941 for ac_i in 1 2 3 4 5 6 7; do 4942 ac_script="$ac_script$as_nl$ac_script" 4943 done 4944 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4945 { ac_script=; unset ac_script;} 4946 if test -z "$SED"; then 4947 ac_path_SED_found=false 4948 # Loop through the user's path and test for each of PROGNAME-LIST 4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4950for as_dir in $PATH 4951do 4952 IFS=$as_save_IFS 4953 case $as_dir in #((( 4954 '') as_dir=./ ;; 4955 */) ;; 4956 *) as_dir=$as_dir/ ;; 4957 esac 4958 for ac_prog in sed gsed 4959 do 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4962 as_fn_executable_p "$ac_path_SED" || continue 4963# Check for GNU ac_path_SED and select it if it is found. 4964 # Check for GNU $ac_path_SED 4965case `"$ac_path_SED" --version 2>&1` in #( 4966*GNU*) 4967 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4968#( 4969*) 4970 ac_count=0 4971 printf %s 0123456789 >"conftest.in" 4972 while : 4973 do 4974 cat "conftest.in" "conftest.in" >"conftest.tmp" 4975 mv "conftest.tmp" "conftest.in" 4976 cp "conftest.in" "conftest.nl" 4977 printf "%s\n" '' >> "conftest.nl" 4978 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4980 as_fn_arith $ac_count + 1 && ac_count=$as_val 4981 if test $ac_count -gt ${ac_path_SED_max-0}; then 4982 # Best one so far, save it but keep looking for a better one 4983 ac_cv_path_SED="$ac_path_SED" 4984 ac_path_SED_max=$ac_count 4985 fi 4986 # 10*(2^10) chars as input seems more than enough 4987 test $ac_count -gt 10 && break 4988 done 4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4990esac 4991 4992 $ac_path_SED_found && break 3 4993 done 4994 done 4995 done 4996IFS=$as_save_IFS 4997 if test -z "$ac_cv_path_SED"; then 4998 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4999 fi 5000else 5001 ac_cv_path_SED=$SED 5002fi 5003 ;; 5004esac 5005fi 5006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5007printf "%s\n" "$ac_cv_path_SED" >&6; } 5008 SED="$ac_cv_path_SED" 5009 rm -f conftest.sed 5010 5011 5012 5013 5014 5015 5016# Check whether --enable-selective-werror was given. 5017if test ${enable_selective_werror+y} 5018then : 5019 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5020else case e in #( 5021 e) SELECTIVE_WERROR=yes ;; 5022esac 5023fi 5024 5025 5026 5027 5028 5029# -v is too short to test reliably with XORG_TESTSET_CFLAG 5030if test "x$SUNCC" = "xyes"; then 5031 BASE_CFLAGS="-v" 5032else 5033 BASE_CFLAGS="" 5034fi 5035 5036# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050xorg_testset_save_CFLAGS="$CFLAGS" 5051 5052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5055printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5056if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5057then : 5058 printf %s "(cached) " >&6 5059else case e in #( 5060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5061/* end confdefs.h. */ 5062int i; 5063_ACEOF 5064if ac_fn_c_try_compile "$LINENO" 5065then : 5066 xorg_cv_cc_flag_unknown_warning_option=yes 5067else case e in #( 5068 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5069esac 5070fi 5071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5072esac 5073fi 5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5077 CFLAGS="$xorg_testset_save_CFLAGS" 5078fi 5079 5080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5083 fi 5084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5087if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5088then : 5089 printf %s "(cached) " >&6 5090else case e in #( 5091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5092/* end confdefs.h. */ 5093int i; 5094_ACEOF 5095if ac_fn_c_try_compile "$LINENO" 5096then : 5097 xorg_cv_cc_flag_unused_command_line_argument=yes 5098else case e in #( 5099 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5100esac 5101fi 5102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5103esac 5104fi 5105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5106printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5108 CFLAGS="$xorg_testset_save_CFLAGS" 5109fi 5110 5111found="no" 5112 5113 if test $found = "no" ; then 5114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5116 fi 5117 5118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5120 fi 5121 5122 CFLAGS="$CFLAGS -Wall" 5123 5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5125printf %s "checking if $CC supports -Wall... " >&6; } 5126 cacheid=xorg_cv_cc_flag__Wall 5127 if eval test \${$cacheid+y} 5128then : 5129 printf %s "(cached) " >&6 5130else case e in #( 5131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132/* end confdefs.h. */ 5133int i; 5134int 5135main (void) 5136{ 5137 5138 ; 5139 return 0; 5140} 5141_ACEOF 5142if ac_fn_c_try_link "$LINENO" 5143then : 5144 eval $cacheid=yes 5145else case e in #( 5146 e) eval $cacheid=no ;; 5147esac 5148fi 5149rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5150 conftest$ac_exeext conftest.$ac_ext ;; 5151esac 5152fi 5153 5154 5155 CFLAGS="$xorg_testset_save_CFLAGS" 5156 5157 eval supported=\$$cacheid 5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5159printf "%s\n" "$supported" >&6; } 5160 if test "$supported" = "yes" ; then 5161 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5162 found="yes" 5163 fi 5164 fi 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180xorg_testset_save_CFLAGS="$CFLAGS" 5181 5182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5186if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5187then : 5188 printf %s "(cached) " >&6 5189else case e in #( 5190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5191/* end confdefs.h. */ 5192int i; 5193_ACEOF 5194if ac_fn_c_try_compile "$LINENO" 5195then : 5196 xorg_cv_cc_flag_unknown_warning_option=yes 5197else case e in #( 5198 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5199esac 5200fi 5201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5202esac 5203fi 5204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5205printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5207 CFLAGS="$xorg_testset_save_CFLAGS" 5208fi 5209 5210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5213 fi 5214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5216printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5217if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5218then : 5219 printf %s "(cached) " >&6 5220else case e in #( 5221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222/* end confdefs.h. */ 5223int i; 5224_ACEOF 5225if ac_fn_c_try_compile "$LINENO" 5226then : 5227 xorg_cv_cc_flag_unused_command_line_argument=yes 5228else case e in #( 5229 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5230esac 5231fi 5232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5233esac 5234fi 5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5238 CFLAGS="$xorg_testset_save_CFLAGS" 5239fi 5240 5241found="no" 5242 5243 if test $found = "no" ; then 5244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5246 fi 5247 5248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5250 fi 5251 5252 CFLAGS="$CFLAGS -Wpointer-arith" 5253 5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5255printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5256 cacheid=xorg_cv_cc_flag__Wpointer_arith 5257 if eval test \${$cacheid+y} 5258then : 5259 printf %s "(cached) " >&6 5260else case e in #( 5261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262/* end confdefs.h. */ 5263int i; 5264int 5265main (void) 5266{ 5267 5268 ; 5269 return 0; 5270} 5271_ACEOF 5272if ac_fn_c_try_link "$LINENO" 5273then : 5274 eval $cacheid=yes 5275else case e in #( 5276 e) eval $cacheid=no ;; 5277esac 5278fi 5279rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5280 conftest$ac_exeext conftest.$ac_ext ;; 5281esac 5282fi 5283 5284 5285 CFLAGS="$xorg_testset_save_CFLAGS" 5286 5287 eval supported=\$$cacheid 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5289printf "%s\n" "$supported" >&6; } 5290 if test "$supported" = "yes" ; then 5291 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5292 found="yes" 5293 fi 5294 fi 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310xorg_testset_save_CFLAGS="$CFLAGS" 5311 5312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5315printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5316if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5317then : 5318 printf %s "(cached) " >&6 5319else case e in #( 5320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322int i; 5323_ACEOF 5324if ac_fn_c_try_compile "$LINENO" 5325then : 5326 xorg_cv_cc_flag_unknown_warning_option=yes 5327else case e in #( 5328 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5329esac 5330fi 5331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5332esac 5333fi 5334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5337 CFLAGS="$xorg_testset_save_CFLAGS" 5338fi 5339 5340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5343 fi 5344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5347if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5348then : 5349 printf %s "(cached) " >&6 5350else case e in #( 5351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5352/* end confdefs.h. */ 5353int i; 5354_ACEOF 5355if ac_fn_c_try_compile "$LINENO" 5356then : 5357 xorg_cv_cc_flag_unused_command_line_argument=yes 5358else case e in #( 5359 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5360esac 5361fi 5362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5363esac 5364fi 5365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5368 CFLAGS="$xorg_testset_save_CFLAGS" 5369fi 5370 5371found="no" 5372 5373 if test $found = "no" ; then 5374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5376 fi 5377 5378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5380 fi 5381 5382 CFLAGS="$CFLAGS -Wmissing-declarations" 5383 5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5385printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5386 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5387 if eval test \${$cacheid+y} 5388then : 5389 printf %s "(cached) " >&6 5390else case e in #( 5391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5392/* end confdefs.h. */ 5393int i; 5394int 5395main (void) 5396{ 5397 5398 ; 5399 return 0; 5400} 5401_ACEOF 5402if ac_fn_c_try_link "$LINENO" 5403then : 5404 eval $cacheid=yes 5405else case e in #( 5406 e) eval $cacheid=no ;; 5407esac 5408fi 5409rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5410 conftest$ac_exeext conftest.$ac_ext ;; 5411esac 5412fi 5413 5414 5415 CFLAGS="$xorg_testset_save_CFLAGS" 5416 5417 eval supported=\$$cacheid 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5419printf "%s\n" "$supported" >&6; } 5420 if test "$supported" = "yes" ; then 5421 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5422 found="yes" 5423 fi 5424 fi 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440xorg_testset_save_CFLAGS="$CFLAGS" 5441 5442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5446if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5447then : 5448 printf %s "(cached) " >&6 5449else case e in #( 5450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451/* end confdefs.h. */ 5452int i; 5453_ACEOF 5454if ac_fn_c_try_compile "$LINENO" 5455then : 5456 xorg_cv_cc_flag_unknown_warning_option=yes 5457else case e in #( 5458 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5459esac 5460fi 5461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5462esac 5463fi 5464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5465printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5467 CFLAGS="$xorg_testset_save_CFLAGS" 5468fi 5469 5470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5473 fi 5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5476printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5477if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5478then : 5479 printf %s "(cached) " >&6 5480else case e in #( 5481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483int i; 5484_ACEOF 5485if ac_fn_c_try_compile "$LINENO" 5486then : 5487 xorg_cv_cc_flag_unused_command_line_argument=yes 5488else case e in #( 5489 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5490esac 5491fi 5492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5493esac 5494fi 5495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5498 CFLAGS="$xorg_testset_save_CFLAGS" 5499fi 5500 5501found="no" 5502 5503 if test $found = "no" ; then 5504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5506 fi 5507 5508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5510 fi 5511 5512 CFLAGS="$CFLAGS -Wformat=2" 5513 5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5515printf %s "checking if $CC supports -Wformat=2... " >&6; } 5516 cacheid=xorg_cv_cc_flag__Wformat_2 5517 if eval test \${$cacheid+y} 5518then : 5519 printf %s "(cached) " >&6 5520else case e in #( 5521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522/* end confdefs.h. */ 5523int i; 5524int 5525main (void) 5526{ 5527 5528 ; 5529 return 0; 5530} 5531_ACEOF 5532if ac_fn_c_try_link "$LINENO" 5533then : 5534 eval $cacheid=yes 5535else case e in #( 5536 e) eval $cacheid=no ;; 5537esac 5538fi 5539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5540 conftest$ac_exeext conftest.$ac_ext ;; 5541esac 5542fi 5543 5544 5545 CFLAGS="$xorg_testset_save_CFLAGS" 5546 5547 eval supported=\$$cacheid 5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5549printf "%s\n" "$supported" >&6; } 5550 if test "$supported" = "yes" ; then 5551 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5552 found="yes" 5553 fi 5554 fi 5555 5556 if test $found = "no" ; then 5557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5559 fi 5560 5561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5563 fi 5564 5565 CFLAGS="$CFLAGS -Wformat" 5566 5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5568printf %s "checking if $CC supports -Wformat... " >&6; } 5569 cacheid=xorg_cv_cc_flag__Wformat 5570 if eval test \${$cacheid+y} 5571then : 5572 printf %s "(cached) " >&6 5573else case e in #( 5574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576int i; 5577int 5578main (void) 5579{ 5580 5581 ; 5582 return 0; 5583} 5584_ACEOF 5585if ac_fn_c_try_link "$LINENO" 5586then : 5587 eval $cacheid=yes 5588else case e in #( 5589 e) eval $cacheid=no ;; 5590esac 5591fi 5592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5593 conftest$ac_exeext conftest.$ac_ext ;; 5594esac 5595fi 5596 5597 5598 CFLAGS="$xorg_testset_save_CFLAGS" 5599 5600 eval supported=\$$cacheid 5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5602printf "%s\n" "$supported" >&6; } 5603 if test "$supported" = "yes" ; then 5604 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5605 found="yes" 5606 fi 5607 fi 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625xorg_testset_save_CFLAGS="$CFLAGS" 5626 5627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5632then : 5633 printf %s "(cached) " >&6 5634else case e in #( 5635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637int i; 5638_ACEOF 5639if ac_fn_c_try_compile "$LINENO" 5640then : 5641 xorg_cv_cc_flag_unknown_warning_option=yes 5642else case e in #( 5643 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5644esac 5645fi 5646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5647esac 5648fi 5649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5652 CFLAGS="$xorg_testset_save_CFLAGS" 5653fi 5654 5655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5658 fi 5659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5662if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5663then : 5664 printf %s "(cached) " >&6 5665else case e in #( 5666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5667/* end confdefs.h. */ 5668int i; 5669_ACEOF 5670if ac_fn_c_try_compile "$LINENO" 5671then : 5672 xorg_cv_cc_flag_unused_command_line_argument=yes 5673else case e in #( 5674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5675esac 5676fi 5677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5678esac 5679fi 5680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5683 CFLAGS="$xorg_testset_save_CFLAGS" 5684fi 5685 5686found="no" 5687 5688 if test $found = "no" ; then 5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5691 fi 5692 5693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5695 fi 5696 5697 CFLAGS="$CFLAGS -Wstrict-prototypes" 5698 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5700printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5701 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5702 if eval test \${$cacheid+y} 5703then : 5704 printf %s "(cached) " >&6 5705else case e in #( 5706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5707/* end confdefs.h. */ 5708int i; 5709int 5710main (void) 5711{ 5712 5713 ; 5714 return 0; 5715} 5716_ACEOF 5717if ac_fn_c_try_link "$LINENO" 5718then : 5719 eval $cacheid=yes 5720else case e in #( 5721 e) eval $cacheid=no ;; 5722esac 5723fi 5724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5725 conftest$ac_exeext conftest.$ac_ext ;; 5726esac 5727fi 5728 5729 5730 CFLAGS="$xorg_testset_save_CFLAGS" 5731 5732 eval supported=\$$cacheid 5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5734printf "%s\n" "$supported" >&6; } 5735 if test "$supported" = "yes" ; then 5736 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5737 found="yes" 5738 fi 5739 fi 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755xorg_testset_save_CFLAGS="$CFLAGS" 5756 5757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5761if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5762then : 5763 printf %s "(cached) " >&6 5764else case e in #( 5765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766/* end confdefs.h. */ 5767int i; 5768_ACEOF 5769if ac_fn_c_try_compile "$LINENO" 5770then : 5771 xorg_cv_cc_flag_unknown_warning_option=yes 5772else case e in #( 5773 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5774esac 5775fi 5776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5777esac 5778fi 5779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5782 CFLAGS="$xorg_testset_save_CFLAGS" 5783fi 5784 5785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5788 fi 5789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5793then : 5794 printf %s "(cached) " >&6 5795else case e in #( 5796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798int i; 5799_ACEOF 5800if ac_fn_c_try_compile "$LINENO" 5801then : 5802 xorg_cv_cc_flag_unused_command_line_argument=yes 5803else case e in #( 5804 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5805esac 5806fi 5807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5808esac 5809fi 5810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5813 CFLAGS="$xorg_testset_save_CFLAGS" 5814fi 5815 5816found="no" 5817 5818 if test $found = "no" ; then 5819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5821 fi 5822 5823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5825 fi 5826 5827 CFLAGS="$CFLAGS -Wmissing-prototypes" 5828 5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5830printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5831 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5832 if eval test \${$cacheid+y} 5833then : 5834 printf %s "(cached) " >&6 5835else case e in #( 5836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838int i; 5839int 5840main (void) 5841{ 5842 5843 ; 5844 return 0; 5845} 5846_ACEOF 5847if ac_fn_c_try_link "$LINENO" 5848then : 5849 eval $cacheid=yes 5850else case e in #( 5851 e) eval $cacheid=no ;; 5852esac 5853fi 5854rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5855 conftest$ac_exeext conftest.$ac_ext ;; 5856esac 5857fi 5858 5859 5860 CFLAGS="$xorg_testset_save_CFLAGS" 5861 5862 eval supported=\$$cacheid 5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5864printf "%s\n" "$supported" >&6; } 5865 if test "$supported" = "yes" ; then 5866 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5867 found="yes" 5868 fi 5869 fi 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885xorg_testset_save_CFLAGS="$CFLAGS" 5886 5887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5891if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5892then : 5893 printf %s "(cached) " >&6 5894else case e in #( 5895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896/* end confdefs.h. */ 5897int i; 5898_ACEOF 5899if ac_fn_c_try_compile "$LINENO" 5900then : 5901 xorg_cv_cc_flag_unknown_warning_option=yes 5902else case e in #( 5903 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5904esac 5905fi 5906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5907esac 5908fi 5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5912 CFLAGS="$xorg_testset_save_CFLAGS" 5913fi 5914 5915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5918 fi 5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5922if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5923then : 5924 printf %s "(cached) " >&6 5925else case e in #( 5926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5927/* end confdefs.h. */ 5928int i; 5929_ACEOF 5930if ac_fn_c_try_compile "$LINENO" 5931then : 5932 xorg_cv_cc_flag_unused_command_line_argument=yes 5933else case e in #( 5934 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5935esac 5936fi 5937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5938esac 5939fi 5940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944fi 5945 5946found="no" 5947 5948 if test $found = "no" ; then 5949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5951 fi 5952 5953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5955 fi 5956 5957 CFLAGS="$CFLAGS -Wnested-externs" 5958 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5960printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5961 cacheid=xorg_cv_cc_flag__Wnested_externs 5962 if eval test \${$cacheid+y} 5963then : 5964 printf %s "(cached) " >&6 5965else case e in #( 5966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967/* end confdefs.h. */ 5968int i; 5969int 5970main (void) 5971{ 5972 5973 ; 5974 return 0; 5975} 5976_ACEOF 5977if ac_fn_c_try_link "$LINENO" 5978then : 5979 eval $cacheid=yes 5980else case e in #( 5981 e) eval $cacheid=no ;; 5982esac 5983fi 5984rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5985 conftest$ac_exeext conftest.$ac_ext ;; 5986esac 5987fi 5988 5989 5990 CFLAGS="$xorg_testset_save_CFLAGS" 5991 5992 eval supported=\$$cacheid 5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5994printf "%s\n" "$supported" >&6; } 5995 if test "$supported" = "yes" ; then 5996 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5997 found="yes" 5998 fi 5999 fi 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015xorg_testset_save_CFLAGS="$CFLAGS" 6016 6017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6021if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6022then : 6023 printf %s "(cached) " >&6 6024else case e in #( 6025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6026/* end confdefs.h. */ 6027int i; 6028_ACEOF 6029if ac_fn_c_try_compile "$LINENO" 6030then : 6031 xorg_cv_cc_flag_unknown_warning_option=yes 6032else case e in #( 6033 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6034esac 6035fi 6036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6037esac 6038fi 6039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6042 CFLAGS="$xorg_testset_save_CFLAGS" 6043fi 6044 6045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6048 fi 6049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6052if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6053then : 6054 printf %s "(cached) " >&6 6055else case e in #( 6056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057/* end confdefs.h. */ 6058int i; 6059_ACEOF 6060if ac_fn_c_try_compile "$LINENO" 6061then : 6062 xorg_cv_cc_flag_unused_command_line_argument=yes 6063else case e in #( 6064 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6065esac 6066fi 6067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6068esac 6069fi 6070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074fi 6075 6076found="no" 6077 6078 if test $found = "no" ; then 6079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6081 fi 6082 6083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6085 fi 6086 6087 CFLAGS="$CFLAGS -Wbad-function-cast" 6088 6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6090printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6091 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6092 if eval test \${$cacheid+y} 6093then : 6094 printf %s "(cached) " >&6 6095else case e in #( 6096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097/* end confdefs.h. */ 6098int i; 6099int 6100main (void) 6101{ 6102 6103 ; 6104 return 0; 6105} 6106_ACEOF 6107if ac_fn_c_try_link "$LINENO" 6108then : 6109 eval $cacheid=yes 6110else case e in #( 6111 e) eval $cacheid=no ;; 6112esac 6113fi 6114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6115 conftest$ac_exeext conftest.$ac_ext ;; 6116esac 6117fi 6118 6119 6120 CFLAGS="$xorg_testset_save_CFLAGS" 6121 6122 eval supported=\$$cacheid 6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6124printf "%s\n" "$supported" >&6; } 6125 if test "$supported" = "yes" ; then 6126 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6127 found="yes" 6128 fi 6129 fi 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145xorg_testset_save_CFLAGS="$CFLAGS" 6146 6147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6152then : 6153 printf %s "(cached) " >&6 6154else case e in #( 6155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6156/* end confdefs.h. */ 6157int i; 6158_ACEOF 6159if ac_fn_c_try_compile "$LINENO" 6160then : 6161 xorg_cv_cc_flag_unknown_warning_option=yes 6162else case e in #( 6163 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6164esac 6165fi 6166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6167esac 6168fi 6169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6172 CFLAGS="$xorg_testset_save_CFLAGS" 6173fi 6174 6175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6178 fi 6179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6182if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6183then : 6184 printf %s "(cached) " >&6 6185else case e in #( 6186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188int i; 6189_ACEOF 6190if ac_fn_c_try_compile "$LINENO" 6191then : 6192 xorg_cv_cc_flag_unused_command_line_argument=yes 6193else case e in #( 6194 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6195esac 6196fi 6197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6198esac 6199fi 6200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6203 CFLAGS="$xorg_testset_save_CFLAGS" 6204fi 6205 6206found="no" 6207 6208 if test $found = "no" ; then 6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6211 fi 6212 6213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6215 fi 6216 6217 CFLAGS="$CFLAGS -Wold-style-definition" 6218 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6220printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6221 cacheid=xorg_cv_cc_flag__Wold_style_definition 6222 if eval test \${$cacheid+y} 6223then : 6224 printf %s "(cached) " >&6 6225else case e in #( 6226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227/* end confdefs.h. */ 6228int i; 6229int 6230main (void) 6231{ 6232 6233 ; 6234 return 0; 6235} 6236_ACEOF 6237if ac_fn_c_try_link "$LINENO" 6238then : 6239 eval $cacheid=yes 6240else case e in #( 6241 e) eval $cacheid=no ;; 6242esac 6243fi 6244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6245 conftest$ac_exeext conftest.$ac_ext ;; 6246esac 6247fi 6248 6249 6250 CFLAGS="$xorg_testset_save_CFLAGS" 6251 6252 eval supported=\$$cacheid 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6254printf "%s\n" "$supported" >&6; } 6255 if test "$supported" = "yes" ; then 6256 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6257 found="yes" 6258 fi 6259 fi 6260 6261 if test $found = "no" ; then 6262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6264 fi 6265 6266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6268 fi 6269 6270 CFLAGS="$CFLAGS -fd" 6271 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6273printf %s "checking if $CC supports -fd... " >&6; } 6274 cacheid=xorg_cv_cc_flag__fd 6275 if eval test \${$cacheid+y} 6276then : 6277 printf %s "(cached) " >&6 6278else case e in #( 6279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6280/* end confdefs.h. */ 6281int i; 6282int 6283main (void) 6284{ 6285 6286 ; 6287 return 0; 6288} 6289_ACEOF 6290if ac_fn_c_try_link "$LINENO" 6291then : 6292 eval $cacheid=yes 6293else case e in #( 6294 e) eval $cacheid=no ;; 6295esac 6296fi 6297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6298 conftest$ac_exeext conftest.$ac_ext ;; 6299esac 6300fi 6301 6302 6303 CFLAGS="$xorg_testset_save_CFLAGS" 6304 6305 eval supported=\$$cacheid 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6307printf "%s\n" "$supported" >&6; } 6308 if test "$supported" = "yes" ; then 6309 BASE_CFLAGS="$BASE_CFLAGS -fd" 6310 found="yes" 6311 fi 6312 fi 6313 6314 6315 6316 6317 6318# This chunk adds additional warnings that could catch undesired effects. 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332xorg_testset_save_CFLAGS="$CFLAGS" 6333 6334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6338if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6339then : 6340 printf %s "(cached) " >&6 6341else case e in #( 6342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343/* end confdefs.h. */ 6344int i; 6345_ACEOF 6346if ac_fn_c_try_compile "$LINENO" 6347then : 6348 xorg_cv_cc_flag_unknown_warning_option=yes 6349else case e in #( 6350 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6351esac 6352fi 6353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6354esac 6355fi 6356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360fi 6361 6362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6365 fi 6366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6369if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6370then : 6371 printf %s "(cached) " >&6 6372else case e in #( 6373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6374/* end confdefs.h. */ 6375int i; 6376_ACEOF 6377if ac_fn_c_try_compile "$LINENO" 6378then : 6379 xorg_cv_cc_flag_unused_command_line_argument=yes 6380else case e in #( 6381 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6382esac 6383fi 6384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6385esac 6386fi 6387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6388printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6390 CFLAGS="$xorg_testset_save_CFLAGS" 6391fi 6392 6393found="no" 6394 6395 if test $found = "no" ; then 6396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6398 fi 6399 6400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6402 fi 6403 6404 CFLAGS="$CFLAGS -Wunused" 6405 6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6407printf %s "checking if $CC supports -Wunused... " >&6; } 6408 cacheid=xorg_cv_cc_flag__Wunused 6409 if eval test \${$cacheid+y} 6410then : 6411 printf %s "(cached) " >&6 6412else case e in #( 6413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6414/* end confdefs.h. */ 6415int i; 6416int 6417main (void) 6418{ 6419 6420 ; 6421 return 0; 6422} 6423_ACEOF 6424if ac_fn_c_try_link "$LINENO" 6425then : 6426 eval $cacheid=yes 6427else case e in #( 6428 e) eval $cacheid=no ;; 6429esac 6430fi 6431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6432 conftest$ac_exeext conftest.$ac_ext ;; 6433esac 6434fi 6435 6436 6437 CFLAGS="$xorg_testset_save_CFLAGS" 6438 6439 eval supported=\$$cacheid 6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6441printf "%s\n" "$supported" >&6; } 6442 if test "$supported" = "yes" ; then 6443 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6444 found="yes" 6445 fi 6446 fi 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462xorg_testset_save_CFLAGS="$CFLAGS" 6463 6464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6468if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6469then : 6470 printf %s "(cached) " >&6 6471else case e in #( 6472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474int i; 6475_ACEOF 6476if ac_fn_c_try_compile "$LINENO" 6477then : 6478 xorg_cv_cc_flag_unknown_warning_option=yes 6479else case e in #( 6480 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6481esac 6482fi 6483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6484esac 6485fi 6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490fi 6491 6492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6495 fi 6496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6499if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6500then : 6501 printf %s "(cached) " >&6 6502else case e in #( 6503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505int i; 6506_ACEOF 6507if ac_fn_c_try_compile "$LINENO" 6508then : 6509 xorg_cv_cc_flag_unused_command_line_argument=yes 6510else case e in #( 6511 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6512esac 6513fi 6514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6515esac 6516fi 6517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6520 CFLAGS="$xorg_testset_save_CFLAGS" 6521fi 6522 6523found="no" 6524 6525 if test $found = "no" ; then 6526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6528 fi 6529 6530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6532 fi 6533 6534 CFLAGS="$CFLAGS -Wuninitialized" 6535 6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6537printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6538 cacheid=xorg_cv_cc_flag__Wuninitialized 6539 if eval test \${$cacheid+y} 6540then : 6541 printf %s "(cached) " >&6 6542else case e in #( 6543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544/* end confdefs.h. */ 6545int i; 6546int 6547main (void) 6548{ 6549 6550 ; 6551 return 0; 6552} 6553_ACEOF 6554if ac_fn_c_try_link "$LINENO" 6555then : 6556 eval $cacheid=yes 6557else case e in #( 6558 e) eval $cacheid=no ;; 6559esac 6560fi 6561rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6562 conftest$ac_exeext conftest.$ac_ext ;; 6563esac 6564fi 6565 6566 6567 CFLAGS="$xorg_testset_save_CFLAGS" 6568 6569 eval supported=\$$cacheid 6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6571printf "%s\n" "$supported" >&6; } 6572 if test "$supported" = "yes" ; then 6573 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6574 found="yes" 6575 fi 6576 fi 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592xorg_testset_save_CFLAGS="$CFLAGS" 6593 6594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6597printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6598if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6599then : 6600 printf %s "(cached) " >&6 6601else case e in #( 6602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6603/* end confdefs.h. */ 6604int i; 6605_ACEOF 6606if ac_fn_c_try_compile "$LINENO" 6607then : 6608 xorg_cv_cc_flag_unknown_warning_option=yes 6609else case e in #( 6610 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6611esac 6612fi 6613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6614esac 6615fi 6616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6619 CFLAGS="$xorg_testset_save_CFLAGS" 6620fi 6621 6622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6625 fi 6626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6629if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6630then : 6631 printf %s "(cached) " >&6 6632else case e in #( 6633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6634/* end confdefs.h. */ 6635int i; 6636_ACEOF 6637if ac_fn_c_try_compile "$LINENO" 6638then : 6639 xorg_cv_cc_flag_unused_command_line_argument=yes 6640else case e in #( 6641 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6642esac 6643fi 6644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6645esac 6646fi 6647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6648printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651fi 6652 6653found="no" 6654 6655 if test $found = "no" ; then 6656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6658 fi 6659 6660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6662 fi 6663 6664 CFLAGS="$CFLAGS -Wshadow" 6665 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6667printf %s "checking if $CC supports -Wshadow... " >&6; } 6668 cacheid=xorg_cv_cc_flag__Wshadow 6669 if eval test \${$cacheid+y} 6670then : 6671 printf %s "(cached) " >&6 6672else case e in #( 6673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674/* end confdefs.h. */ 6675int i; 6676int 6677main (void) 6678{ 6679 6680 ; 6681 return 0; 6682} 6683_ACEOF 6684if ac_fn_c_try_link "$LINENO" 6685then : 6686 eval $cacheid=yes 6687else case e in #( 6688 e) eval $cacheid=no ;; 6689esac 6690fi 6691rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6692 conftest$ac_exeext conftest.$ac_ext ;; 6693esac 6694fi 6695 6696 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698 6699 eval supported=\$$cacheid 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6701printf "%s\n" "$supported" >&6; } 6702 if test "$supported" = "yes" ; then 6703 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6704 found="yes" 6705 fi 6706 fi 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722xorg_testset_save_CFLAGS="$CFLAGS" 6723 6724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6727printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6728if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6729then : 6730 printf %s "(cached) " >&6 6731else case e in #( 6732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6733/* end confdefs.h. */ 6734int i; 6735_ACEOF 6736if ac_fn_c_try_compile "$LINENO" 6737then : 6738 xorg_cv_cc_flag_unknown_warning_option=yes 6739else case e in #( 6740 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6741esac 6742fi 6743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6744esac 6745fi 6746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6747printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6749 CFLAGS="$xorg_testset_save_CFLAGS" 6750fi 6751 6752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6755 fi 6756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6758printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6759if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6760then : 6761 printf %s "(cached) " >&6 6762else case e in #( 6763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764/* end confdefs.h. */ 6765int i; 6766_ACEOF 6767if ac_fn_c_try_compile "$LINENO" 6768then : 6769 xorg_cv_cc_flag_unused_command_line_argument=yes 6770else case e in #( 6771 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6772esac 6773fi 6774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6775esac 6776fi 6777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6778printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6780 CFLAGS="$xorg_testset_save_CFLAGS" 6781fi 6782 6783found="no" 6784 6785 if test $found = "no" ; then 6786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6788 fi 6789 6790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6792 fi 6793 6794 CFLAGS="$CFLAGS -Wmissing-noreturn" 6795 6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6797printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6798 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6799 if eval test \${$cacheid+y} 6800then : 6801 printf %s "(cached) " >&6 6802else case e in #( 6803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6804/* end confdefs.h. */ 6805int i; 6806int 6807main (void) 6808{ 6809 6810 ; 6811 return 0; 6812} 6813_ACEOF 6814if ac_fn_c_try_link "$LINENO" 6815then : 6816 eval $cacheid=yes 6817else case e in #( 6818 e) eval $cacheid=no ;; 6819esac 6820fi 6821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6822 conftest$ac_exeext conftest.$ac_ext ;; 6823esac 6824fi 6825 6826 6827 CFLAGS="$xorg_testset_save_CFLAGS" 6828 6829 eval supported=\$$cacheid 6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6831printf "%s\n" "$supported" >&6; } 6832 if test "$supported" = "yes" ; then 6833 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6834 found="yes" 6835 fi 6836 fi 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852xorg_testset_save_CFLAGS="$CFLAGS" 6853 6854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6857printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6858if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6859then : 6860 printf %s "(cached) " >&6 6861else case e in #( 6862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6863/* end confdefs.h. */ 6864int i; 6865_ACEOF 6866if ac_fn_c_try_compile "$LINENO" 6867then : 6868 xorg_cv_cc_flag_unknown_warning_option=yes 6869else case e in #( 6870 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6871esac 6872fi 6873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6874esac 6875fi 6876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6877printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6879 CFLAGS="$xorg_testset_save_CFLAGS" 6880fi 6881 6882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6885 fi 6886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6888printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6889if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6890then : 6891 printf %s "(cached) " >&6 6892else case e in #( 6893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895int i; 6896_ACEOF 6897if ac_fn_c_try_compile "$LINENO" 6898then : 6899 xorg_cv_cc_flag_unused_command_line_argument=yes 6900else case e in #( 6901 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6902esac 6903fi 6904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6905esac 6906fi 6907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6908printf "%s\n" "$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_cc_unknown_warning_option" = "xyes" ; then 6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6918 fi 6919 6920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6922 fi 6923 6924 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6925 6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6927printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6928 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6929 if eval test \${$cacheid+y} 6930then : 6931 printf %s "(cached) " >&6 6932else case e in #( 6933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6934/* end confdefs.h. */ 6935int i; 6936int 6937main (void) 6938{ 6939 6940 ; 6941 return 0; 6942} 6943_ACEOF 6944if ac_fn_c_try_link "$LINENO" 6945then : 6946 eval $cacheid=yes 6947else case e in #( 6948 e) eval $cacheid=no ;; 6949esac 6950fi 6951rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6952 conftest$ac_exeext conftest.$ac_ext ;; 6953esac 6954fi 6955 6956 6957 CFLAGS="$xorg_testset_save_CFLAGS" 6958 6959 eval supported=\$$cacheid 6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6961printf "%s\n" "$supported" >&6; } 6962 if test "$supported" = "yes" ; then 6963 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6964 found="yes" 6965 fi 6966 fi 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982xorg_testset_save_CFLAGS="$CFLAGS" 6983 6984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6988if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6989then : 6990 printf %s "(cached) " >&6 6991else case e in #( 6992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6993/* end confdefs.h. */ 6994int i; 6995_ACEOF 6996if ac_fn_c_try_compile "$LINENO" 6997then : 6998 xorg_cv_cc_flag_unknown_warning_option=yes 6999else case e in #( 7000 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7001esac 7002fi 7003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7004esac 7005fi 7006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7007printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7009 CFLAGS="$xorg_testset_save_CFLAGS" 7010fi 7011 7012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7015 fi 7016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7018printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7019if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7020then : 7021 printf %s "(cached) " >&6 7022else case e in #( 7023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024/* end confdefs.h. */ 7025int i; 7026_ACEOF 7027if ac_fn_c_try_compile "$LINENO" 7028then : 7029 xorg_cv_cc_flag_unused_command_line_argument=yes 7030else case e in #( 7031 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7032esac 7033fi 7034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7035esac 7036fi 7037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7038printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7040 CFLAGS="$xorg_testset_save_CFLAGS" 7041fi 7042 7043found="no" 7044 7045 if test $found = "no" ; then 7046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7048 fi 7049 7050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7052 fi 7053 7054 CFLAGS="$CFLAGS -Wredundant-decls" 7055 7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7057printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7058 cacheid=xorg_cv_cc_flag__Wredundant_decls 7059 if eval test \${$cacheid+y} 7060then : 7061 printf %s "(cached) " >&6 7062else case e in #( 7063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7064/* end confdefs.h. */ 7065int i; 7066int 7067main (void) 7068{ 7069 7070 ; 7071 return 0; 7072} 7073_ACEOF 7074if ac_fn_c_try_link "$LINENO" 7075then : 7076 eval $cacheid=yes 7077else case e in #( 7078 e) eval $cacheid=no ;; 7079esac 7080fi 7081rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7082 conftest$ac_exeext conftest.$ac_ext ;; 7083esac 7084fi 7085 7086 7087 CFLAGS="$xorg_testset_save_CFLAGS" 7088 7089 eval supported=\$$cacheid 7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7091printf "%s\n" "$supported" >&6; } 7092 if test "$supported" = "yes" ; then 7093 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7094 found="yes" 7095 fi 7096 fi 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112xorg_testset_save_CFLAGS="$CFLAGS" 7113 7114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7117printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7118if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7119then : 7120 printf %s "(cached) " >&6 7121else case e in #( 7122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123/* end confdefs.h. */ 7124int i; 7125_ACEOF 7126if ac_fn_c_try_compile "$LINENO" 7127then : 7128 xorg_cv_cc_flag_unknown_warning_option=yes 7129else case e in #( 7130 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7131esac 7132fi 7133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7134esac 7135fi 7136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7139 CFLAGS="$xorg_testset_save_CFLAGS" 7140fi 7141 7142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7145 fi 7146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7149if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7150then : 7151 printf %s "(cached) " >&6 7152else case e in #( 7153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155int i; 7156_ACEOF 7157if ac_fn_c_try_compile "$LINENO" 7158then : 7159 xorg_cv_cc_flag_unused_command_line_argument=yes 7160else case e in #( 7161 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7162esac 7163fi 7164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7165esac 7166fi 7167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7168printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7170 CFLAGS="$xorg_testset_save_CFLAGS" 7171fi 7172 7173found="no" 7174 7175 if test $found = "no" ; then 7176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7178 fi 7179 7180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7182 fi 7183 7184 CFLAGS="$CFLAGS -Wlogical-op" 7185 7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7187printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7188 cacheid=xorg_cv_cc_flag__Wlogical_op 7189 if eval test \${$cacheid+y} 7190then : 7191 printf %s "(cached) " >&6 7192else case e in #( 7193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7194/* end confdefs.h. */ 7195int i; 7196int 7197main (void) 7198{ 7199 7200 ; 7201 return 0; 7202} 7203_ACEOF 7204if ac_fn_c_try_link "$LINENO" 7205then : 7206 eval $cacheid=yes 7207else case e in #( 7208 e) eval $cacheid=no ;; 7209esac 7210fi 7211rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7212 conftest$ac_exeext conftest.$ac_ext ;; 7213esac 7214fi 7215 7216 7217 CFLAGS="$xorg_testset_save_CFLAGS" 7218 7219 eval supported=\$$cacheid 7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7221printf "%s\n" "$supported" >&6; } 7222 if test "$supported" = "yes" ; then 7223 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7224 found="yes" 7225 fi 7226 fi 7227 7228 7229 7230# These are currently disabled because they are noisy. They will be enabled 7231# in the future once the codebase is sufficiently modernized to silence 7232# them. For now, I don't want them to drown out the other warnings. 7233# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7234# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7235# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7236 7237# Turn some warnings into errors, so we don't accidentally get successful builds 7238# when there are problems that should be fixed. 7239 7240if test "x$SELECTIVE_WERROR" = "xyes" ; then 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254xorg_testset_save_CFLAGS="$CFLAGS" 7255 7256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7259printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7260if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7261then : 7262 printf %s "(cached) " >&6 7263else case e in #( 7264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265/* end confdefs.h. */ 7266int i; 7267_ACEOF 7268if ac_fn_c_try_compile "$LINENO" 7269then : 7270 xorg_cv_cc_flag_unknown_warning_option=yes 7271else case e in #( 7272 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7273esac 7274fi 7275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7276esac 7277fi 7278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7279printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7281 CFLAGS="$xorg_testset_save_CFLAGS" 7282fi 7283 7284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7287 fi 7288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7290printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7291if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7292then : 7293 printf %s "(cached) " >&6 7294else case e in #( 7295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7296/* end confdefs.h. */ 7297int i; 7298_ACEOF 7299if ac_fn_c_try_compile "$LINENO" 7300then : 7301 xorg_cv_cc_flag_unused_command_line_argument=yes 7302else case e in #( 7303 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7304esac 7305fi 7306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7307esac 7308fi 7309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7312 CFLAGS="$xorg_testset_save_CFLAGS" 7313fi 7314 7315found="no" 7316 7317 if test $found = "no" ; then 7318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7320 fi 7321 7322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7324 fi 7325 7326 CFLAGS="$CFLAGS -Werror=implicit" 7327 7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7329printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7330 cacheid=xorg_cv_cc_flag__Werror_implicit 7331 if eval test \${$cacheid+y} 7332then : 7333 printf %s "(cached) " >&6 7334else case e in #( 7335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336/* end confdefs.h. */ 7337int i; 7338int 7339main (void) 7340{ 7341 7342 ; 7343 return 0; 7344} 7345_ACEOF 7346if ac_fn_c_try_link "$LINENO" 7347then : 7348 eval $cacheid=yes 7349else case e in #( 7350 e) eval $cacheid=no ;; 7351esac 7352fi 7353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7354 conftest$ac_exeext conftest.$ac_ext ;; 7355esac 7356fi 7357 7358 7359 CFLAGS="$xorg_testset_save_CFLAGS" 7360 7361 eval supported=\$$cacheid 7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7363printf "%s\n" "$supported" >&6; } 7364 if test "$supported" = "yes" ; then 7365 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7366 found="yes" 7367 fi 7368 fi 7369 7370 if test $found = "no" ; then 7371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7373 fi 7374 7375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7377 fi 7378 7379 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7380 7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7382printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7383 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7384 if eval test \${$cacheid+y} 7385then : 7386 printf %s "(cached) " >&6 7387else case e in #( 7388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7389/* end confdefs.h. */ 7390int i; 7391int 7392main (void) 7393{ 7394 7395 ; 7396 return 0; 7397} 7398_ACEOF 7399if ac_fn_c_try_link "$LINENO" 7400then : 7401 eval $cacheid=yes 7402else case e in #( 7403 e) eval $cacheid=no ;; 7404esac 7405fi 7406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7407 conftest$ac_exeext conftest.$ac_ext ;; 7408esac 7409fi 7410 7411 7412 CFLAGS="$xorg_testset_save_CFLAGS" 7413 7414 eval supported=\$$cacheid 7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7416printf "%s\n" "$supported" >&6; } 7417 if test "$supported" = "yes" ; then 7418 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7419 found="yes" 7420 fi 7421 fi 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437xorg_testset_save_CFLAGS="$CFLAGS" 7438 7439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7443if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7444then : 7445 printf %s "(cached) " >&6 7446else case e in #( 7447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7448/* end confdefs.h. */ 7449int i; 7450_ACEOF 7451if ac_fn_c_try_compile "$LINENO" 7452then : 7453 xorg_cv_cc_flag_unknown_warning_option=yes 7454else case e in #( 7455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7456esac 7457fi 7458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7459esac 7460fi 7461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465fi 7466 7467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 fi 7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7474if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7475then : 7476 printf %s "(cached) " >&6 7477else case e in #( 7478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7479/* end confdefs.h. */ 7480int i; 7481_ACEOF 7482if ac_fn_c_try_compile "$LINENO" 7483then : 7484 xorg_cv_cc_flag_unused_command_line_argument=yes 7485else case e in #( 7486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7487esac 7488fi 7489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7490esac 7491fi 7492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7495 CFLAGS="$xorg_testset_save_CFLAGS" 7496fi 7497 7498found="no" 7499 7500 if test $found = "no" ; then 7501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7503 fi 7504 7505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7507 fi 7508 7509 CFLAGS="$CFLAGS -Werror=nonnull" 7510 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7512printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7513 cacheid=xorg_cv_cc_flag__Werror_nonnull 7514 if eval test \${$cacheid+y} 7515then : 7516 printf %s "(cached) " >&6 7517else case e in #( 7518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7519/* end confdefs.h. */ 7520int i; 7521int 7522main (void) 7523{ 7524 7525 ; 7526 return 0; 7527} 7528_ACEOF 7529if ac_fn_c_try_link "$LINENO" 7530then : 7531 eval $cacheid=yes 7532else case e in #( 7533 e) eval $cacheid=no ;; 7534esac 7535fi 7536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7537 conftest$ac_exeext conftest.$ac_ext ;; 7538esac 7539fi 7540 7541 7542 CFLAGS="$xorg_testset_save_CFLAGS" 7543 7544 eval supported=\$$cacheid 7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7546printf "%s\n" "$supported" >&6; } 7547 if test "$supported" = "yes" ; then 7548 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7549 found="yes" 7550 fi 7551 fi 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567xorg_testset_save_CFLAGS="$CFLAGS" 7568 7569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7573if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7574then : 7575 printf %s "(cached) " >&6 7576else case e in #( 7577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579int i; 7580_ACEOF 7581if ac_fn_c_try_compile "$LINENO" 7582then : 7583 xorg_cv_cc_flag_unknown_warning_option=yes 7584else case e in #( 7585 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7586esac 7587fi 7588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7589esac 7590fi 7591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7594 CFLAGS="$xorg_testset_save_CFLAGS" 7595fi 7596 7597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7600 fi 7601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7604if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7605then : 7606 printf %s "(cached) " >&6 7607else case e in #( 7608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610int i; 7611_ACEOF 7612if ac_fn_c_try_compile "$LINENO" 7613then : 7614 xorg_cv_cc_flag_unused_command_line_argument=yes 7615else case e in #( 7616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7617esac 7618fi 7619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7620esac 7621fi 7622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7623printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7625 CFLAGS="$xorg_testset_save_CFLAGS" 7626fi 7627 7628found="no" 7629 7630 if test $found = "no" ; then 7631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7633 fi 7634 7635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7637 fi 7638 7639 CFLAGS="$CFLAGS -Werror=init-self" 7640 7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7642printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7643 cacheid=xorg_cv_cc_flag__Werror_init_self 7644 if eval test \${$cacheid+y} 7645then : 7646 printf %s "(cached) " >&6 7647else case e in #( 7648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7649/* end confdefs.h. */ 7650int i; 7651int 7652main (void) 7653{ 7654 7655 ; 7656 return 0; 7657} 7658_ACEOF 7659if ac_fn_c_try_link "$LINENO" 7660then : 7661 eval $cacheid=yes 7662else case e in #( 7663 e) eval $cacheid=no ;; 7664esac 7665fi 7666rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7667 conftest$ac_exeext conftest.$ac_ext ;; 7668esac 7669fi 7670 7671 7672 CFLAGS="$xorg_testset_save_CFLAGS" 7673 7674 eval supported=\$$cacheid 7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7676printf "%s\n" "$supported" >&6; } 7677 if test "$supported" = "yes" ; then 7678 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7679 found="yes" 7680 fi 7681 fi 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697xorg_testset_save_CFLAGS="$CFLAGS" 7698 7699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7703if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7704then : 7705 printf %s "(cached) " >&6 7706else case e in #( 7707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708/* end confdefs.h. */ 7709int i; 7710_ACEOF 7711if ac_fn_c_try_compile "$LINENO" 7712then : 7713 xorg_cv_cc_flag_unknown_warning_option=yes 7714else case e in #( 7715 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7716esac 7717fi 7718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7719esac 7720fi 7721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7724 CFLAGS="$xorg_testset_save_CFLAGS" 7725fi 7726 7727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 fi 7731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7734if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7735then : 7736 printf %s "(cached) " >&6 7737else case e in #( 7738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740int i; 7741_ACEOF 7742if ac_fn_c_try_compile "$LINENO" 7743then : 7744 xorg_cv_cc_flag_unused_command_line_argument=yes 7745else case e in #( 7746 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7747esac 7748fi 7749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7750esac 7751fi 7752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7753printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7755 CFLAGS="$xorg_testset_save_CFLAGS" 7756fi 7757 7758found="no" 7759 7760 if test $found = "no" ; then 7761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7763 fi 7764 7765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7767 fi 7768 7769 CFLAGS="$CFLAGS -Werror=main" 7770 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7772printf %s "checking if $CC supports -Werror=main... " >&6; } 7773 cacheid=xorg_cv_cc_flag__Werror_main 7774 if eval test \${$cacheid+y} 7775then : 7776 printf %s "(cached) " >&6 7777else case e in #( 7778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779/* end confdefs.h. */ 7780int i; 7781int 7782main (void) 7783{ 7784 7785 ; 7786 return 0; 7787} 7788_ACEOF 7789if ac_fn_c_try_link "$LINENO" 7790then : 7791 eval $cacheid=yes 7792else case e in #( 7793 e) eval $cacheid=no ;; 7794esac 7795fi 7796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7797 conftest$ac_exeext conftest.$ac_ext ;; 7798esac 7799fi 7800 7801 7802 CFLAGS="$xorg_testset_save_CFLAGS" 7803 7804 eval supported=\$$cacheid 7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7806printf "%s\n" "$supported" >&6; } 7807 if test "$supported" = "yes" ; then 7808 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7809 found="yes" 7810 fi 7811 fi 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827xorg_testset_save_CFLAGS="$CFLAGS" 7828 7829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7833if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7834then : 7835 printf %s "(cached) " >&6 7836else case e in #( 7837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7838/* end confdefs.h. */ 7839int i; 7840_ACEOF 7841if ac_fn_c_try_compile "$LINENO" 7842then : 7843 xorg_cv_cc_flag_unknown_warning_option=yes 7844else case e in #( 7845 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7846esac 7847fi 7848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7849esac 7850fi 7851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7854 CFLAGS="$xorg_testset_save_CFLAGS" 7855fi 7856 7857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7860 fi 7861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7864if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7865then : 7866 printf %s "(cached) " >&6 7867else case e in #( 7868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869/* end confdefs.h. */ 7870int i; 7871_ACEOF 7872if ac_fn_c_try_compile "$LINENO" 7873then : 7874 xorg_cv_cc_flag_unused_command_line_argument=yes 7875else case e in #( 7876 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7877esac 7878fi 7879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7880esac 7881fi 7882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7885 CFLAGS="$xorg_testset_save_CFLAGS" 7886fi 7887 7888found="no" 7889 7890 if test $found = "no" ; then 7891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 7895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7897 fi 7898 7899 CFLAGS="$CFLAGS -Werror=missing-braces" 7900 7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7902printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7903 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7904 if eval test \${$cacheid+y} 7905then : 7906 printf %s "(cached) " >&6 7907else case e in #( 7908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909/* end confdefs.h. */ 7910int i; 7911int 7912main (void) 7913{ 7914 7915 ; 7916 return 0; 7917} 7918_ACEOF 7919if ac_fn_c_try_link "$LINENO" 7920then : 7921 eval $cacheid=yes 7922else case e in #( 7923 e) eval $cacheid=no ;; 7924esac 7925fi 7926rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7927 conftest$ac_exeext conftest.$ac_ext ;; 7928esac 7929fi 7930 7931 7932 CFLAGS="$xorg_testset_save_CFLAGS" 7933 7934 eval supported=\$$cacheid 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7936printf "%s\n" "$supported" >&6; } 7937 if test "$supported" = "yes" ; then 7938 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7939 found="yes" 7940 fi 7941 fi 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957xorg_testset_save_CFLAGS="$CFLAGS" 7958 7959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7963if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7964then : 7965 printf %s "(cached) " >&6 7966else case e in #( 7967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969int i; 7970_ACEOF 7971if ac_fn_c_try_compile "$LINENO" 7972then : 7973 xorg_cv_cc_flag_unknown_warning_option=yes 7974else case e in #( 7975 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7976esac 7977fi 7978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7979esac 7980fi 7981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7984 CFLAGS="$xorg_testset_save_CFLAGS" 7985fi 7986 7987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7990 fi 7991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7994if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7995then : 7996 printf %s "(cached) " >&6 7997else case e in #( 7998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999/* end confdefs.h. */ 8000int i; 8001_ACEOF 8002if ac_fn_c_try_compile "$LINENO" 8003then : 8004 xorg_cv_cc_flag_unused_command_line_argument=yes 8005else case e in #( 8006 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8007esac 8008fi 8009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8010esac 8011fi 8012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8013printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016fi 8017 8018found="no" 8019 8020 if test $found = "no" ; then 8021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8023 fi 8024 8025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8027 fi 8028 8029 CFLAGS="$CFLAGS -Werror=sequence-point" 8030 8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8032printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8033 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8034 if eval test \${$cacheid+y} 8035then : 8036 printf %s "(cached) " >&6 8037else case e in #( 8038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039/* end confdefs.h. */ 8040int i; 8041int 8042main (void) 8043{ 8044 8045 ; 8046 return 0; 8047} 8048_ACEOF 8049if ac_fn_c_try_link "$LINENO" 8050then : 8051 eval $cacheid=yes 8052else case e in #( 8053 e) eval $cacheid=no ;; 8054esac 8055fi 8056rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8057 conftest$ac_exeext conftest.$ac_ext ;; 8058esac 8059fi 8060 8061 8062 CFLAGS="$xorg_testset_save_CFLAGS" 8063 8064 eval supported=\$$cacheid 8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8066printf "%s\n" "$supported" >&6; } 8067 if test "$supported" = "yes" ; then 8068 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8069 found="yes" 8070 fi 8071 fi 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087xorg_testset_save_CFLAGS="$CFLAGS" 8088 8089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8093if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8094then : 8095 printf %s "(cached) " >&6 8096else case e in #( 8097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098/* end confdefs.h. */ 8099int i; 8100_ACEOF 8101if ac_fn_c_try_compile "$LINENO" 8102then : 8103 xorg_cv_cc_flag_unknown_warning_option=yes 8104else case e in #( 8105 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8106esac 8107fi 8108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8109esac 8110fi 8111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8114 CFLAGS="$xorg_testset_save_CFLAGS" 8115fi 8116 8117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8120 fi 8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8124if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8125then : 8126 printf %s "(cached) " >&6 8127else case e in #( 8128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130int i; 8131_ACEOF 8132if ac_fn_c_try_compile "$LINENO" 8133then : 8134 xorg_cv_cc_flag_unused_command_line_argument=yes 8135else case e in #( 8136 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8137esac 8138fi 8139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8140esac 8141fi 8142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146fi 8147 8148found="no" 8149 8150 if test $found = "no" ; then 8151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8153 fi 8154 8155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8157 fi 8158 8159 CFLAGS="$CFLAGS -Werror=return-type" 8160 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8162printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8163 cacheid=xorg_cv_cc_flag__Werror_return_type 8164 if eval test \${$cacheid+y} 8165then : 8166 printf %s "(cached) " >&6 8167else case e in #( 8168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169/* end confdefs.h. */ 8170int i; 8171int 8172main (void) 8173{ 8174 8175 ; 8176 return 0; 8177} 8178_ACEOF 8179if ac_fn_c_try_link "$LINENO" 8180then : 8181 eval $cacheid=yes 8182else case e in #( 8183 e) eval $cacheid=no ;; 8184esac 8185fi 8186rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8187 conftest$ac_exeext conftest.$ac_ext ;; 8188esac 8189fi 8190 8191 8192 CFLAGS="$xorg_testset_save_CFLAGS" 8193 8194 eval supported=\$$cacheid 8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8196printf "%s\n" "$supported" >&6; } 8197 if test "$supported" = "yes" ; then 8198 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8199 found="yes" 8200 fi 8201 fi 8202 8203 if test $found = "no" ; then 8204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8206 fi 8207 8208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8210 fi 8211 8212 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8213 8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8215printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8216 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8217 if eval test \${$cacheid+y} 8218then : 8219 printf %s "(cached) " >&6 8220else case e in #( 8221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222/* end confdefs.h. */ 8223int i; 8224int 8225main (void) 8226{ 8227 8228 ; 8229 return 0; 8230} 8231_ACEOF 8232if ac_fn_c_try_link "$LINENO" 8233then : 8234 eval $cacheid=yes 8235else case e in #( 8236 e) eval $cacheid=no ;; 8237esac 8238fi 8239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8240 conftest$ac_exeext conftest.$ac_ext ;; 8241esac 8242fi 8243 8244 8245 CFLAGS="$xorg_testset_save_CFLAGS" 8246 8247 eval supported=\$$cacheid 8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8249printf "%s\n" "$supported" >&6; } 8250 if test "$supported" = "yes" ; then 8251 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8252 found="yes" 8253 fi 8254 fi 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270xorg_testset_save_CFLAGS="$CFLAGS" 8271 8272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8276if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8277then : 8278 printf %s "(cached) " >&6 8279else case e in #( 8280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8281/* end confdefs.h. */ 8282int i; 8283_ACEOF 8284if ac_fn_c_try_compile "$LINENO" 8285then : 8286 xorg_cv_cc_flag_unknown_warning_option=yes 8287else case e in #( 8288 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8289esac 8290fi 8291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8292esac 8293fi 8294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8295printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8297 CFLAGS="$xorg_testset_save_CFLAGS" 8298fi 8299 8300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8303 fi 8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8306printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8307if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8308then : 8309 printf %s "(cached) " >&6 8310else case e in #( 8311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8312/* end confdefs.h. */ 8313int i; 8314_ACEOF 8315if ac_fn_c_try_compile "$LINENO" 8316then : 8317 xorg_cv_cc_flag_unused_command_line_argument=yes 8318else case e in #( 8319 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8320esac 8321fi 8322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8323esac 8324fi 8325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8328 CFLAGS="$xorg_testset_save_CFLAGS" 8329fi 8330 8331found="no" 8332 8333 if test $found = "no" ; then 8334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336 fi 8337 8338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8340 fi 8341 8342 CFLAGS="$CFLAGS -Werror=trigraphs" 8343 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8345printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8346 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8347 if eval test \${$cacheid+y} 8348then : 8349 printf %s "(cached) " >&6 8350else case e in #( 8351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352/* end confdefs.h. */ 8353int i; 8354int 8355main (void) 8356{ 8357 8358 ; 8359 return 0; 8360} 8361_ACEOF 8362if ac_fn_c_try_link "$LINENO" 8363then : 8364 eval $cacheid=yes 8365else case e in #( 8366 e) eval $cacheid=no ;; 8367esac 8368fi 8369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8370 conftest$ac_exeext conftest.$ac_ext ;; 8371esac 8372fi 8373 8374 8375 CFLAGS="$xorg_testset_save_CFLAGS" 8376 8377 eval supported=\$$cacheid 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8379printf "%s\n" "$supported" >&6; } 8380 if test "$supported" = "yes" ; then 8381 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8382 found="yes" 8383 fi 8384 fi 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400xorg_testset_save_CFLAGS="$CFLAGS" 8401 8402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8406if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8407then : 8408 printf %s "(cached) " >&6 8409else case e in #( 8410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8411/* end confdefs.h. */ 8412int i; 8413_ACEOF 8414if ac_fn_c_try_compile "$LINENO" 8415then : 8416 xorg_cv_cc_flag_unknown_warning_option=yes 8417else case e in #( 8418 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8419esac 8420fi 8421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8422esac 8423fi 8424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8427 CFLAGS="$xorg_testset_save_CFLAGS" 8428fi 8429 8430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8433 fi 8434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8437if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8438then : 8439 printf %s "(cached) " >&6 8440else case e in #( 8441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8442/* end confdefs.h. */ 8443int i; 8444_ACEOF 8445if ac_fn_c_try_compile "$LINENO" 8446then : 8447 xorg_cv_cc_flag_unused_command_line_argument=yes 8448else case e in #( 8449 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8450esac 8451fi 8452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8453esac 8454fi 8455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8458 CFLAGS="$xorg_testset_save_CFLAGS" 8459fi 8460 8461found="no" 8462 8463 if test $found = "no" ; then 8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8466 fi 8467 8468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8470 fi 8471 8472 CFLAGS="$CFLAGS -Werror=array-bounds" 8473 8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8475printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8476 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8477 if eval test \${$cacheid+y} 8478then : 8479 printf %s "(cached) " >&6 8480else case e in #( 8481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482/* end confdefs.h. */ 8483int i; 8484int 8485main (void) 8486{ 8487 8488 ; 8489 return 0; 8490} 8491_ACEOF 8492if ac_fn_c_try_link "$LINENO" 8493then : 8494 eval $cacheid=yes 8495else case e in #( 8496 e) eval $cacheid=no ;; 8497esac 8498fi 8499rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8500 conftest$ac_exeext conftest.$ac_ext ;; 8501esac 8502fi 8503 8504 8505 CFLAGS="$xorg_testset_save_CFLAGS" 8506 8507 eval supported=\$$cacheid 8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8509printf "%s\n" "$supported" >&6; } 8510 if test "$supported" = "yes" ; then 8511 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8512 found="yes" 8513 fi 8514 fi 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530xorg_testset_save_CFLAGS="$CFLAGS" 8531 8532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8535printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8536if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8537then : 8538 printf %s "(cached) " >&6 8539else case e in #( 8540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541/* end confdefs.h. */ 8542int i; 8543_ACEOF 8544if ac_fn_c_try_compile "$LINENO" 8545then : 8546 xorg_cv_cc_flag_unknown_warning_option=yes 8547else case e in #( 8548 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8549esac 8550fi 8551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8552esac 8553fi 8554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8558fi 8559 8560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8563 fi 8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8567if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8568then : 8569 printf %s "(cached) " >&6 8570else case e in #( 8571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8572/* end confdefs.h. */ 8573int i; 8574_ACEOF 8575if ac_fn_c_try_compile "$LINENO" 8576then : 8577 xorg_cv_cc_flag_unused_command_line_argument=yes 8578else case e in #( 8579 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8580esac 8581fi 8582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8583esac 8584fi 8585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8586printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8588 CFLAGS="$xorg_testset_save_CFLAGS" 8589fi 8590 8591found="no" 8592 8593 if test $found = "no" ; then 8594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8596 fi 8597 8598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8600 fi 8601 8602 CFLAGS="$CFLAGS -Werror=write-strings" 8603 8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8605printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8606 cacheid=xorg_cv_cc_flag__Werror_write_strings 8607 if eval test \${$cacheid+y} 8608then : 8609 printf %s "(cached) " >&6 8610else case e in #( 8611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8612/* end confdefs.h. */ 8613int i; 8614int 8615main (void) 8616{ 8617 8618 ; 8619 return 0; 8620} 8621_ACEOF 8622if ac_fn_c_try_link "$LINENO" 8623then : 8624 eval $cacheid=yes 8625else case e in #( 8626 e) eval $cacheid=no ;; 8627esac 8628fi 8629rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8630 conftest$ac_exeext conftest.$ac_ext ;; 8631esac 8632fi 8633 8634 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636 8637 eval supported=\$$cacheid 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8639printf "%s\n" "$supported" >&6; } 8640 if test "$supported" = "yes" ; then 8641 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8642 found="yes" 8643 fi 8644 fi 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660xorg_testset_save_CFLAGS="$CFLAGS" 8661 8662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8666if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8667then : 8668 printf %s "(cached) " >&6 8669else case e in #( 8670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673_ACEOF 8674if ac_fn_c_try_compile "$LINENO" 8675then : 8676 xorg_cv_cc_flag_unknown_warning_option=yes 8677else case e in #( 8678 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8679esac 8680fi 8681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8682esac 8683fi 8684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8687 CFLAGS="$xorg_testset_save_CFLAGS" 8688fi 8689 8690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8693 fi 8694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8697if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8698then : 8699 printf %s "(cached) " >&6 8700else case e in #( 8701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8702/* end confdefs.h. */ 8703int i; 8704_ACEOF 8705if ac_fn_c_try_compile "$LINENO" 8706then : 8707 xorg_cv_cc_flag_unused_command_line_argument=yes 8708else case e in #( 8709 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8710esac 8711fi 8712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8713esac 8714fi 8715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8718 CFLAGS="$xorg_testset_save_CFLAGS" 8719fi 8720 8721found="no" 8722 8723 if test $found = "no" ; then 8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8726 fi 8727 8728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8730 fi 8731 8732 CFLAGS="$CFLAGS -Werror=address" 8733 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8735printf %s "checking if $CC supports -Werror=address... " >&6; } 8736 cacheid=xorg_cv_cc_flag__Werror_address 8737 if eval test \${$cacheid+y} 8738then : 8739 printf %s "(cached) " >&6 8740else case e in #( 8741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8742/* end confdefs.h. */ 8743int i; 8744int 8745main (void) 8746{ 8747 8748 ; 8749 return 0; 8750} 8751_ACEOF 8752if ac_fn_c_try_link "$LINENO" 8753then : 8754 eval $cacheid=yes 8755else case e in #( 8756 e) eval $cacheid=no ;; 8757esac 8758fi 8759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8760 conftest$ac_exeext conftest.$ac_ext ;; 8761esac 8762fi 8763 8764 8765 CFLAGS="$xorg_testset_save_CFLAGS" 8766 8767 eval supported=\$$cacheid 8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8769printf "%s\n" "$supported" >&6; } 8770 if test "$supported" = "yes" ; then 8771 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8772 found="yes" 8773 fi 8774 fi 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790xorg_testset_save_CFLAGS="$CFLAGS" 8791 8792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8796if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8797then : 8798 printf %s "(cached) " >&6 8799else case e in #( 8800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8801/* end confdefs.h. */ 8802int i; 8803_ACEOF 8804if ac_fn_c_try_compile "$LINENO" 8805then : 8806 xorg_cv_cc_flag_unknown_warning_option=yes 8807else case e in #( 8808 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8809esac 8810fi 8811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8812esac 8813fi 8814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8817 CFLAGS="$xorg_testset_save_CFLAGS" 8818fi 8819 8820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8823 fi 8824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8827if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8828then : 8829 printf %s "(cached) " >&6 8830else case e in #( 8831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8832/* end confdefs.h. */ 8833int i; 8834_ACEOF 8835if ac_fn_c_try_compile "$LINENO" 8836then : 8837 xorg_cv_cc_flag_unused_command_line_argument=yes 8838else case e in #( 8839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8840esac 8841fi 8842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8843esac 8844fi 8845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8848 CFLAGS="$xorg_testset_save_CFLAGS" 8849fi 8850 8851found="no" 8852 8853 if test $found = "no" ; then 8854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8856 fi 8857 8858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8860 fi 8861 8862 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8863 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8865printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8866 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8867 if eval test \${$cacheid+y} 8868then : 8869 printf %s "(cached) " >&6 8870else case e in #( 8871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872/* end confdefs.h. */ 8873int i; 8874int 8875main (void) 8876{ 8877 8878 ; 8879 return 0; 8880} 8881_ACEOF 8882if ac_fn_c_try_link "$LINENO" 8883then : 8884 eval $cacheid=yes 8885else case e in #( 8886 e) eval $cacheid=no ;; 8887esac 8888fi 8889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8890 conftest$ac_exeext conftest.$ac_ext ;; 8891esac 8892fi 8893 8894 8895 CFLAGS="$xorg_testset_save_CFLAGS" 8896 8897 eval supported=\$$cacheid 8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8899printf "%s\n" "$supported" >&6; } 8900 if test "$supported" = "yes" ; then 8901 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8902 found="yes" 8903 fi 8904 fi 8905 8906 if test $found = "no" ; then 8907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8909 fi 8910 8911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8913 fi 8914 8915 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8916 8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8918printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8919 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8920 if eval test \${$cacheid+y} 8921then : 8922 printf %s "(cached) " >&6 8923else case e in #( 8924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925/* end confdefs.h. */ 8926int i; 8927int 8928main (void) 8929{ 8930 8931 ; 8932 return 0; 8933} 8934_ACEOF 8935if ac_fn_c_try_link "$LINENO" 8936then : 8937 eval $cacheid=yes 8938else case e in #( 8939 e) eval $cacheid=no ;; 8940esac 8941fi 8942rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8943 conftest$ac_exeext conftest.$ac_ext ;; 8944esac 8945fi 8946 8947 8948 CFLAGS="$xorg_testset_save_CFLAGS" 8949 8950 eval supported=\$$cacheid 8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8952printf "%s\n" "$supported" >&6; } 8953 if test "$supported" = "yes" ; then 8954 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8955 found="yes" 8956 fi 8957 fi 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973xorg_testset_save_CFLAGS="$CFLAGS" 8974 8975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8979if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8980then : 8981 printf %s "(cached) " >&6 8982else case e in #( 8983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984/* end confdefs.h. */ 8985int i; 8986_ACEOF 8987if ac_fn_c_try_compile "$LINENO" 8988then : 8989 xorg_cv_cc_flag_unknown_warning_option=yes 8990else case e in #( 8991 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8992esac 8993fi 8994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8995esac 8996fi 8997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9000 CFLAGS="$xorg_testset_save_CFLAGS" 9001fi 9002 9003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9006 fi 9007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9010if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9011then : 9012 printf %s "(cached) " >&6 9013else case e in #( 9014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9015/* end confdefs.h. */ 9016int i; 9017_ACEOF 9018if ac_fn_c_try_compile "$LINENO" 9019then : 9020 xorg_cv_cc_flag_unused_command_line_argument=yes 9021else case e in #( 9022 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9023esac 9024fi 9025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9026esac 9027fi 9028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9031 CFLAGS="$xorg_testset_save_CFLAGS" 9032fi 9033 9034found="no" 9035 9036 if test $found = "no" ; then 9037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9039 fi 9040 9041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9043 fi 9044 9045 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9046 9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9048printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9049 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9050 if eval test \${$cacheid+y} 9051then : 9052 printf %s "(cached) " >&6 9053else case e in #( 9054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055/* end confdefs.h. */ 9056int i; 9057int 9058main (void) 9059{ 9060 9061 ; 9062 return 0; 9063} 9064_ACEOF 9065if ac_fn_c_try_link "$LINENO" 9066then : 9067 eval $cacheid=yes 9068else case e in #( 9069 e) eval $cacheid=no ;; 9070esac 9071fi 9072rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9073 conftest$ac_exeext conftest.$ac_ext ;; 9074esac 9075fi 9076 9077 9078 CFLAGS="$xorg_testset_save_CFLAGS" 9079 9080 eval supported=\$$cacheid 9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9082printf "%s\n" "$supported" >&6; } 9083 if test "$supported" = "yes" ; then 9084 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9085 found="yes" 9086 fi 9087 fi 9088 9089 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9090else 9091{ printf "%s\n" "$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 9092printf "%s\n" "$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;} 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106xorg_testset_save_CFLAGS="$CFLAGS" 9107 9108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9112if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9113then : 9114 printf %s "(cached) " >&6 9115else case e in #( 9116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9117/* end confdefs.h. */ 9118int i; 9119_ACEOF 9120if ac_fn_c_try_compile "$LINENO" 9121then : 9122 xorg_cv_cc_flag_unknown_warning_option=yes 9123else case e in #( 9124 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9125esac 9126fi 9127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9128esac 9129fi 9130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9133 CFLAGS="$xorg_testset_save_CFLAGS" 9134fi 9135 9136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9139 fi 9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9143if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9144then : 9145 printf %s "(cached) " >&6 9146else case e in #( 9147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9148/* end confdefs.h. */ 9149int i; 9150_ACEOF 9151if ac_fn_c_try_compile "$LINENO" 9152then : 9153 xorg_cv_cc_flag_unused_command_line_argument=yes 9154else case e in #( 9155 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9156esac 9157fi 9158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9159esac 9160fi 9161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9162printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9164 CFLAGS="$xorg_testset_save_CFLAGS" 9165fi 9166 9167found="no" 9168 9169 if test $found = "no" ; then 9170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9172 fi 9173 9174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9176 fi 9177 9178 CFLAGS="$CFLAGS -Wimplicit" 9179 9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9181printf %s "checking if $CC supports -Wimplicit... " >&6; } 9182 cacheid=xorg_cv_cc_flag__Wimplicit 9183 if eval test \${$cacheid+y} 9184then : 9185 printf %s "(cached) " >&6 9186else case e in #( 9187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9188/* end confdefs.h. */ 9189int i; 9190int 9191main (void) 9192{ 9193 9194 ; 9195 return 0; 9196} 9197_ACEOF 9198if ac_fn_c_try_link "$LINENO" 9199then : 9200 eval $cacheid=yes 9201else case e in #( 9202 e) eval $cacheid=no ;; 9203esac 9204fi 9205rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9206 conftest$ac_exeext conftest.$ac_ext ;; 9207esac 9208fi 9209 9210 9211 CFLAGS="$xorg_testset_save_CFLAGS" 9212 9213 eval supported=\$$cacheid 9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9215printf "%s\n" "$supported" >&6; } 9216 if test "$supported" = "yes" ; then 9217 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9218 found="yes" 9219 fi 9220 fi 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236xorg_testset_save_CFLAGS="$CFLAGS" 9237 9238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9242if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9243then : 9244 printf %s "(cached) " >&6 9245else case e in #( 9246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247/* end confdefs.h. */ 9248int i; 9249_ACEOF 9250if ac_fn_c_try_compile "$LINENO" 9251then : 9252 xorg_cv_cc_flag_unknown_warning_option=yes 9253else case e in #( 9254 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9255esac 9256fi 9257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9258esac 9259fi 9260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9263 CFLAGS="$xorg_testset_save_CFLAGS" 9264fi 9265 9266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 fi 9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9273if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9274then : 9275 printf %s "(cached) " >&6 9276else case e in #( 9277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9278/* end confdefs.h. */ 9279int i; 9280_ACEOF 9281if ac_fn_c_try_compile "$LINENO" 9282then : 9283 xorg_cv_cc_flag_unused_command_line_argument=yes 9284else case e in #( 9285 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9286esac 9287fi 9288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9289esac 9290fi 9291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9292printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9294 CFLAGS="$xorg_testset_save_CFLAGS" 9295fi 9296 9297found="no" 9298 9299 if test $found = "no" ; then 9300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9302 fi 9303 9304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9306 fi 9307 9308 CFLAGS="$CFLAGS -Wnonnull" 9309 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9311printf %s "checking if $CC supports -Wnonnull... " >&6; } 9312 cacheid=xorg_cv_cc_flag__Wnonnull 9313 if eval test \${$cacheid+y} 9314then : 9315 printf %s "(cached) " >&6 9316else case e in #( 9317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9318/* end confdefs.h. */ 9319int i; 9320int 9321main (void) 9322{ 9323 9324 ; 9325 return 0; 9326} 9327_ACEOF 9328if ac_fn_c_try_link "$LINENO" 9329then : 9330 eval $cacheid=yes 9331else case e in #( 9332 e) eval $cacheid=no ;; 9333esac 9334fi 9335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9336 conftest$ac_exeext conftest.$ac_ext ;; 9337esac 9338fi 9339 9340 9341 CFLAGS="$xorg_testset_save_CFLAGS" 9342 9343 eval supported=\$$cacheid 9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9345printf "%s\n" "$supported" >&6; } 9346 if test "$supported" = "yes" ; then 9347 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9348 found="yes" 9349 fi 9350 fi 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366xorg_testset_save_CFLAGS="$CFLAGS" 9367 9368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9372if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9373then : 9374 printf %s "(cached) " >&6 9375else case e in #( 9376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9377/* end confdefs.h. */ 9378int i; 9379_ACEOF 9380if ac_fn_c_try_compile "$LINENO" 9381then : 9382 xorg_cv_cc_flag_unknown_warning_option=yes 9383else case e in #( 9384 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9385esac 9386fi 9387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9388esac 9389fi 9390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9393 CFLAGS="$xorg_testset_save_CFLAGS" 9394fi 9395 9396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9399 fi 9400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9403if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9404then : 9405 printf %s "(cached) " >&6 9406else case e in #( 9407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9408/* end confdefs.h. */ 9409int i; 9410_ACEOF 9411if ac_fn_c_try_compile "$LINENO" 9412then : 9413 xorg_cv_cc_flag_unused_command_line_argument=yes 9414else case e in #( 9415 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9416esac 9417fi 9418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9419esac 9420fi 9421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9424 CFLAGS="$xorg_testset_save_CFLAGS" 9425fi 9426 9427found="no" 9428 9429 if test $found = "no" ; then 9430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9432 fi 9433 9434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9436 fi 9437 9438 CFLAGS="$CFLAGS -Winit-self" 9439 9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9441printf %s "checking if $CC supports -Winit-self... " >&6; } 9442 cacheid=xorg_cv_cc_flag__Winit_self 9443 if eval test \${$cacheid+y} 9444then : 9445 printf %s "(cached) " >&6 9446else case e in #( 9447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9448/* end confdefs.h. */ 9449int i; 9450int 9451main (void) 9452{ 9453 9454 ; 9455 return 0; 9456} 9457_ACEOF 9458if ac_fn_c_try_link "$LINENO" 9459then : 9460 eval $cacheid=yes 9461else case e in #( 9462 e) eval $cacheid=no ;; 9463esac 9464fi 9465rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9466 conftest$ac_exeext conftest.$ac_ext ;; 9467esac 9468fi 9469 9470 9471 CFLAGS="$xorg_testset_save_CFLAGS" 9472 9473 eval supported=\$$cacheid 9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9475printf "%s\n" "$supported" >&6; } 9476 if test "$supported" = "yes" ; then 9477 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9478 found="yes" 9479 fi 9480 fi 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496xorg_testset_save_CFLAGS="$CFLAGS" 9497 9498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9501printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9502if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9503then : 9504 printf %s "(cached) " >&6 9505else case e in #( 9506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9507/* end confdefs.h. */ 9508int i; 9509_ACEOF 9510if ac_fn_c_try_compile "$LINENO" 9511then : 9512 xorg_cv_cc_flag_unknown_warning_option=yes 9513else case e in #( 9514 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9515esac 9516fi 9517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9518esac 9519fi 9520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9523 CFLAGS="$xorg_testset_save_CFLAGS" 9524fi 9525 9526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9529 fi 9530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9533if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9534then : 9535 printf %s "(cached) " >&6 9536else case e in #( 9537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538/* end confdefs.h. */ 9539int i; 9540_ACEOF 9541if ac_fn_c_try_compile "$LINENO" 9542then : 9543 xorg_cv_cc_flag_unused_command_line_argument=yes 9544else case e in #( 9545 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9546esac 9547fi 9548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9549esac 9550fi 9551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9552printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555fi 9556 9557found="no" 9558 9559 if test $found = "no" ; then 9560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9562 fi 9563 9564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9566 fi 9567 9568 CFLAGS="$CFLAGS -Wmain" 9569 9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9571printf %s "checking if $CC supports -Wmain... " >&6; } 9572 cacheid=xorg_cv_cc_flag__Wmain 9573 if eval test \${$cacheid+y} 9574then : 9575 printf %s "(cached) " >&6 9576else case e in #( 9577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578/* end confdefs.h. */ 9579int i; 9580int 9581main (void) 9582{ 9583 9584 ; 9585 return 0; 9586} 9587_ACEOF 9588if ac_fn_c_try_link "$LINENO" 9589then : 9590 eval $cacheid=yes 9591else case e in #( 9592 e) eval $cacheid=no ;; 9593esac 9594fi 9595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9596 conftest$ac_exeext conftest.$ac_ext ;; 9597esac 9598fi 9599 9600 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602 9603 eval supported=\$$cacheid 9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9605printf "%s\n" "$supported" >&6; } 9606 if test "$supported" = "yes" ; then 9607 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9608 found="yes" 9609 fi 9610 fi 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626xorg_testset_save_CFLAGS="$CFLAGS" 9627 9628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9631printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9632if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9633then : 9634 printf %s "(cached) " >&6 9635else case e in #( 9636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9637/* end confdefs.h. */ 9638int i; 9639_ACEOF 9640if ac_fn_c_try_compile "$LINENO" 9641then : 9642 xorg_cv_cc_flag_unknown_warning_option=yes 9643else case e in #( 9644 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9645esac 9646fi 9647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9648esac 9649fi 9650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9651printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9653 CFLAGS="$xorg_testset_save_CFLAGS" 9654fi 9655 9656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9659 fi 9660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9662printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9663if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9664then : 9665 printf %s "(cached) " >&6 9666else case e in #( 9667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9668/* end confdefs.h. */ 9669int i; 9670_ACEOF 9671if ac_fn_c_try_compile "$LINENO" 9672then : 9673 xorg_cv_cc_flag_unused_command_line_argument=yes 9674else case e in #( 9675 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9676esac 9677fi 9678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9679esac 9680fi 9681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9682printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9684 CFLAGS="$xorg_testset_save_CFLAGS" 9685fi 9686 9687found="no" 9688 9689 if test $found = "no" ; then 9690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9692 fi 9693 9694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9696 fi 9697 9698 CFLAGS="$CFLAGS -Wmissing-braces" 9699 9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9701printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9702 cacheid=xorg_cv_cc_flag__Wmissing_braces 9703 if eval test \${$cacheid+y} 9704then : 9705 printf %s "(cached) " >&6 9706else case e in #( 9707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9708/* end confdefs.h. */ 9709int i; 9710int 9711main (void) 9712{ 9713 9714 ; 9715 return 0; 9716} 9717_ACEOF 9718if ac_fn_c_try_link "$LINENO" 9719then : 9720 eval $cacheid=yes 9721else case e in #( 9722 e) eval $cacheid=no ;; 9723esac 9724fi 9725rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9726 conftest$ac_exeext conftest.$ac_ext ;; 9727esac 9728fi 9729 9730 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732 9733 eval supported=\$$cacheid 9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9735printf "%s\n" "$supported" >&6; } 9736 if test "$supported" = "yes" ; then 9737 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9738 found="yes" 9739 fi 9740 fi 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756xorg_testset_save_CFLAGS="$CFLAGS" 9757 9758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9761printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9762if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9763then : 9764 printf %s "(cached) " >&6 9765else case e in #( 9766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9767/* end confdefs.h. */ 9768int i; 9769_ACEOF 9770if ac_fn_c_try_compile "$LINENO" 9771then : 9772 xorg_cv_cc_flag_unknown_warning_option=yes 9773else case e in #( 9774 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9775esac 9776fi 9777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9778esac 9779fi 9780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9783 CFLAGS="$xorg_testset_save_CFLAGS" 9784fi 9785 9786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9789 fi 9790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9793if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9794then : 9795 printf %s "(cached) " >&6 9796else case e in #( 9797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9798/* end confdefs.h. */ 9799int i; 9800_ACEOF 9801if ac_fn_c_try_compile "$LINENO" 9802then : 9803 xorg_cv_cc_flag_unused_command_line_argument=yes 9804else case e in #( 9805 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9806esac 9807fi 9808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9809esac 9810fi 9811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9814 CFLAGS="$xorg_testset_save_CFLAGS" 9815fi 9816 9817found="no" 9818 9819 if test $found = "no" ; then 9820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9822 fi 9823 9824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9826 fi 9827 9828 CFLAGS="$CFLAGS -Wsequence-point" 9829 9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9831printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9832 cacheid=xorg_cv_cc_flag__Wsequence_point 9833 if eval test \${$cacheid+y} 9834then : 9835 printf %s "(cached) " >&6 9836else case e in #( 9837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839int i; 9840int 9841main (void) 9842{ 9843 9844 ; 9845 return 0; 9846} 9847_ACEOF 9848if ac_fn_c_try_link "$LINENO" 9849then : 9850 eval $cacheid=yes 9851else case e in #( 9852 e) eval $cacheid=no ;; 9853esac 9854fi 9855rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9856 conftest$ac_exeext conftest.$ac_ext ;; 9857esac 9858fi 9859 9860 9861 CFLAGS="$xorg_testset_save_CFLAGS" 9862 9863 eval supported=\$$cacheid 9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9865printf "%s\n" "$supported" >&6; } 9866 if test "$supported" = "yes" ; then 9867 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9868 found="yes" 9869 fi 9870 fi 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886xorg_testset_save_CFLAGS="$CFLAGS" 9887 9888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9891printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9892if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9893then : 9894 printf %s "(cached) " >&6 9895else case e in #( 9896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9897/* end confdefs.h. */ 9898int i; 9899_ACEOF 9900if ac_fn_c_try_compile "$LINENO" 9901then : 9902 xorg_cv_cc_flag_unknown_warning_option=yes 9903else case e in #( 9904 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9905esac 9906fi 9907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9908esac 9909fi 9910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9911printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9913 CFLAGS="$xorg_testset_save_CFLAGS" 9914fi 9915 9916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9919 fi 9920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9922printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9923if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9924then : 9925 printf %s "(cached) " >&6 9926else case e in #( 9927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9928/* end confdefs.h. */ 9929int i; 9930_ACEOF 9931if ac_fn_c_try_compile "$LINENO" 9932then : 9933 xorg_cv_cc_flag_unused_command_line_argument=yes 9934else case e in #( 9935 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9936esac 9937fi 9938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9939esac 9940fi 9941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9944 CFLAGS="$xorg_testset_save_CFLAGS" 9945fi 9946 9947found="no" 9948 9949 if test $found = "no" ; then 9950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9952 fi 9953 9954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9956 fi 9957 9958 CFLAGS="$CFLAGS -Wreturn-type" 9959 9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9961printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9962 cacheid=xorg_cv_cc_flag__Wreturn_type 9963 if eval test \${$cacheid+y} 9964then : 9965 printf %s "(cached) " >&6 9966else case e in #( 9967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9968/* end confdefs.h. */ 9969int i; 9970int 9971main (void) 9972{ 9973 9974 ; 9975 return 0; 9976} 9977_ACEOF 9978if ac_fn_c_try_link "$LINENO" 9979then : 9980 eval $cacheid=yes 9981else case e in #( 9982 e) eval $cacheid=no ;; 9983esac 9984fi 9985rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9986 conftest$ac_exeext conftest.$ac_ext ;; 9987esac 9988fi 9989 9990 9991 CFLAGS="$xorg_testset_save_CFLAGS" 9992 9993 eval supported=\$$cacheid 9994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9995printf "%s\n" "$supported" >&6; } 9996 if test "$supported" = "yes" ; then 9997 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9998 found="yes" 9999 fi 10000 fi 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016xorg_testset_save_CFLAGS="$CFLAGS" 10017 10018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10021printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10022if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10023then : 10024 printf %s "(cached) " >&6 10025else case e in #( 10026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10027/* end confdefs.h. */ 10028int i; 10029_ACEOF 10030if ac_fn_c_try_compile "$LINENO" 10031then : 10032 xorg_cv_cc_flag_unknown_warning_option=yes 10033else case e in #( 10034 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10035esac 10036fi 10037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10038esac 10039fi 10040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10041printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10043 CFLAGS="$xorg_testset_save_CFLAGS" 10044fi 10045 10046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10049 fi 10050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10052printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10053if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10054then : 10055 printf %s "(cached) " >&6 10056else case e in #( 10057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10058/* end confdefs.h. */ 10059int i; 10060_ACEOF 10061if ac_fn_c_try_compile "$LINENO" 10062then : 10063 xorg_cv_cc_flag_unused_command_line_argument=yes 10064else case e in #( 10065 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10066esac 10067fi 10068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10069esac 10070fi 10071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10074 CFLAGS="$xorg_testset_save_CFLAGS" 10075fi 10076 10077found="no" 10078 10079 if test $found = "no" ; then 10080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10082 fi 10083 10084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10086 fi 10087 10088 CFLAGS="$CFLAGS -Wtrigraphs" 10089 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10091printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10092 cacheid=xorg_cv_cc_flag__Wtrigraphs 10093 if eval test \${$cacheid+y} 10094then : 10095 printf %s "(cached) " >&6 10096else case e in #( 10097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10098/* end confdefs.h. */ 10099int i; 10100int 10101main (void) 10102{ 10103 10104 ; 10105 return 0; 10106} 10107_ACEOF 10108if ac_fn_c_try_link "$LINENO" 10109then : 10110 eval $cacheid=yes 10111else case e in #( 10112 e) eval $cacheid=no ;; 10113esac 10114fi 10115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10116 conftest$ac_exeext conftest.$ac_ext ;; 10117esac 10118fi 10119 10120 10121 CFLAGS="$xorg_testset_save_CFLAGS" 10122 10123 eval supported=\$$cacheid 10124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10125printf "%s\n" "$supported" >&6; } 10126 if test "$supported" = "yes" ; then 10127 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10128 found="yes" 10129 fi 10130 fi 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146xorg_testset_save_CFLAGS="$CFLAGS" 10147 10148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10152if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10153then : 10154 printf %s "(cached) " >&6 10155else case e in #( 10156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10157/* end confdefs.h. */ 10158int i; 10159_ACEOF 10160if ac_fn_c_try_compile "$LINENO" 10161then : 10162 xorg_cv_cc_flag_unknown_warning_option=yes 10163else case e in #( 10164 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10165esac 10166fi 10167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10168esac 10169fi 10170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10171printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10173 CFLAGS="$xorg_testset_save_CFLAGS" 10174fi 10175 10176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10179 fi 10180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10182printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10183if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10184then : 10185 printf %s "(cached) " >&6 10186else case e in #( 10187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10188/* end confdefs.h. */ 10189int i; 10190_ACEOF 10191if ac_fn_c_try_compile "$LINENO" 10192then : 10193 xorg_cv_cc_flag_unused_command_line_argument=yes 10194else case e in #( 10195 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10196esac 10197fi 10198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10199esac 10200fi 10201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10204 CFLAGS="$xorg_testset_save_CFLAGS" 10205fi 10206 10207found="no" 10208 10209 if test $found = "no" ; then 10210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10212 fi 10213 10214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10216 fi 10217 10218 CFLAGS="$CFLAGS -Warray-bounds" 10219 10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10221printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10222 cacheid=xorg_cv_cc_flag__Warray_bounds 10223 if eval test \${$cacheid+y} 10224then : 10225 printf %s "(cached) " >&6 10226else case e in #( 10227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10228/* end confdefs.h. */ 10229int i; 10230int 10231main (void) 10232{ 10233 10234 ; 10235 return 0; 10236} 10237_ACEOF 10238if ac_fn_c_try_link "$LINENO" 10239then : 10240 eval $cacheid=yes 10241else case e in #( 10242 e) eval $cacheid=no ;; 10243esac 10244fi 10245rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10246 conftest$ac_exeext conftest.$ac_ext ;; 10247esac 10248fi 10249 10250 10251 CFLAGS="$xorg_testset_save_CFLAGS" 10252 10253 eval supported=\$$cacheid 10254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10255printf "%s\n" "$supported" >&6; } 10256 if test "$supported" = "yes" ; then 10257 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10258 found="yes" 10259 fi 10260 fi 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276xorg_testset_save_CFLAGS="$CFLAGS" 10277 10278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10281printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10282if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10283then : 10284 printf %s "(cached) " >&6 10285else case e in #( 10286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288int i; 10289_ACEOF 10290if ac_fn_c_try_compile "$LINENO" 10291then : 10292 xorg_cv_cc_flag_unknown_warning_option=yes 10293else case e in #( 10294 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10295esac 10296fi 10297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10298esac 10299fi 10300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10301printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10303 CFLAGS="$xorg_testset_save_CFLAGS" 10304fi 10305 10306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10309 fi 10310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10312printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10313if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10314then : 10315 printf %s "(cached) " >&6 10316else case e in #( 10317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10318/* end confdefs.h. */ 10319int i; 10320_ACEOF 10321if ac_fn_c_try_compile "$LINENO" 10322then : 10323 xorg_cv_cc_flag_unused_command_line_argument=yes 10324else case e in #( 10325 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10326esac 10327fi 10328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10329esac 10330fi 10331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10332printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10334 CFLAGS="$xorg_testset_save_CFLAGS" 10335fi 10336 10337found="no" 10338 10339 if test $found = "no" ; then 10340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10342 fi 10343 10344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10346 fi 10347 10348 CFLAGS="$CFLAGS -Wwrite-strings" 10349 10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10351printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10352 cacheid=xorg_cv_cc_flag__Wwrite_strings 10353 if eval test \${$cacheid+y} 10354then : 10355 printf %s "(cached) " >&6 10356else case e in #( 10357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10358/* end confdefs.h. */ 10359int i; 10360int 10361main (void) 10362{ 10363 10364 ; 10365 return 0; 10366} 10367_ACEOF 10368if ac_fn_c_try_link "$LINENO" 10369then : 10370 eval $cacheid=yes 10371else case e in #( 10372 e) eval $cacheid=no ;; 10373esac 10374fi 10375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10376 conftest$ac_exeext conftest.$ac_ext ;; 10377esac 10378fi 10379 10380 10381 CFLAGS="$xorg_testset_save_CFLAGS" 10382 10383 eval supported=\$$cacheid 10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10385printf "%s\n" "$supported" >&6; } 10386 if test "$supported" = "yes" ; then 10387 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10388 found="yes" 10389 fi 10390 fi 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406xorg_testset_save_CFLAGS="$CFLAGS" 10407 10408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10412if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10413then : 10414 printf %s "(cached) " >&6 10415else case e in #( 10416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418int i; 10419_ACEOF 10420if ac_fn_c_try_compile "$LINENO" 10421then : 10422 xorg_cv_cc_flag_unknown_warning_option=yes 10423else case e in #( 10424 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10425esac 10426fi 10427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10428esac 10429fi 10430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10433 CFLAGS="$xorg_testset_save_CFLAGS" 10434fi 10435 10436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439 fi 10440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10443if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10444then : 10445 printf %s "(cached) " >&6 10446else case e in #( 10447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10448/* end confdefs.h. */ 10449int i; 10450_ACEOF 10451if ac_fn_c_try_compile "$LINENO" 10452then : 10453 xorg_cv_cc_flag_unused_command_line_argument=yes 10454else case e in #( 10455 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10456esac 10457fi 10458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10459esac 10460fi 10461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10462printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10464 CFLAGS="$xorg_testset_save_CFLAGS" 10465fi 10466 10467found="no" 10468 10469 if test $found = "no" ; then 10470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10472 fi 10473 10474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10476 fi 10477 10478 CFLAGS="$CFLAGS -Waddress" 10479 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10481printf %s "checking if $CC supports -Waddress... " >&6; } 10482 cacheid=xorg_cv_cc_flag__Waddress 10483 if eval test \${$cacheid+y} 10484then : 10485 printf %s "(cached) " >&6 10486else case e in #( 10487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10488/* end confdefs.h. */ 10489int i; 10490int 10491main (void) 10492{ 10493 10494 ; 10495 return 0; 10496} 10497_ACEOF 10498if ac_fn_c_try_link "$LINENO" 10499then : 10500 eval $cacheid=yes 10501else case e in #( 10502 e) eval $cacheid=no ;; 10503esac 10504fi 10505rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10506 conftest$ac_exeext conftest.$ac_ext ;; 10507esac 10508fi 10509 10510 10511 CFLAGS="$xorg_testset_save_CFLAGS" 10512 10513 eval supported=\$$cacheid 10514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10515printf "%s\n" "$supported" >&6; } 10516 if test "$supported" = "yes" ; then 10517 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10518 found="yes" 10519 fi 10520 fi 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536xorg_testset_save_CFLAGS="$CFLAGS" 10537 10538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10542if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10543then : 10544 printf %s "(cached) " >&6 10545else case e in #( 10546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10547/* end confdefs.h. */ 10548int i; 10549_ACEOF 10550if ac_fn_c_try_compile "$LINENO" 10551then : 10552 xorg_cv_cc_flag_unknown_warning_option=yes 10553else case e in #( 10554 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10555esac 10556fi 10557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10558esac 10559fi 10560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10563 CFLAGS="$xorg_testset_save_CFLAGS" 10564fi 10565 10566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10569 fi 10570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10573if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10574then : 10575 printf %s "(cached) " >&6 10576else case e in #( 10577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10578/* end confdefs.h. */ 10579int i; 10580_ACEOF 10581if ac_fn_c_try_compile "$LINENO" 10582then : 10583 xorg_cv_cc_flag_unused_command_line_argument=yes 10584else case e in #( 10585 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10586esac 10587fi 10588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10589esac 10590fi 10591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10594 CFLAGS="$xorg_testset_save_CFLAGS" 10595fi 10596 10597found="no" 10598 10599 if test $found = "no" ; then 10600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10602 fi 10603 10604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10606 fi 10607 10608 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10609 10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10611printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10612 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10613 if eval test \${$cacheid+y} 10614then : 10615 printf %s "(cached) " >&6 10616else case e in #( 10617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618/* end confdefs.h. */ 10619int i; 10620int 10621main (void) 10622{ 10623 10624 ; 10625 return 0; 10626} 10627_ACEOF 10628if ac_fn_c_try_link "$LINENO" 10629then : 10630 eval $cacheid=yes 10631else case e in #( 10632 e) eval $cacheid=no ;; 10633esac 10634fi 10635rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10636 conftest$ac_exeext conftest.$ac_ext ;; 10637esac 10638fi 10639 10640 10641 CFLAGS="$xorg_testset_save_CFLAGS" 10642 10643 eval supported=\$$cacheid 10644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10645printf "%s\n" "$supported" >&6; } 10646 if test "$supported" = "yes" ; then 10647 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10648 found="yes" 10649 fi 10650 fi 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666xorg_testset_save_CFLAGS="$CFLAGS" 10667 10668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10671printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10672if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10673then : 10674 printf %s "(cached) " >&6 10675else case e in #( 10676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10677/* end confdefs.h. */ 10678int i; 10679_ACEOF 10680if ac_fn_c_try_compile "$LINENO" 10681then : 10682 xorg_cv_cc_flag_unknown_warning_option=yes 10683else case e in #( 10684 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10685esac 10686fi 10687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10688esac 10689fi 10690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10693 CFLAGS="$xorg_testset_save_CFLAGS" 10694fi 10695 10696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10699 fi 10700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10703if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10704then : 10705 printf %s "(cached) " >&6 10706else case e in #( 10707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10708/* end confdefs.h. */ 10709int i; 10710_ACEOF 10711if ac_fn_c_try_compile "$LINENO" 10712then : 10713 xorg_cv_cc_flag_unused_command_line_argument=yes 10714else case e in #( 10715 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10716esac 10717fi 10718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10719esac 10720fi 10721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10722printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10724 CFLAGS="$xorg_testset_save_CFLAGS" 10725fi 10726 10727found="no" 10728 10729 if test $found = "no" ; then 10730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10732 fi 10733 10734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10736 fi 10737 10738 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10739 10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10741printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10742 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10743 if eval test \${$cacheid+y} 10744then : 10745 printf %s "(cached) " >&6 10746else case e in #( 10747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748/* end confdefs.h. */ 10749int i; 10750int 10751main (void) 10752{ 10753 10754 ; 10755 return 0; 10756} 10757_ACEOF 10758if ac_fn_c_try_link "$LINENO" 10759then : 10760 eval $cacheid=yes 10761else case e in #( 10762 e) eval $cacheid=no ;; 10763esac 10764fi 10765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10766 conftest$ac_exeext conftest.$ac_ext ;; 10767esac 10768fi 10769 10770 10771 CFLAGS="$xorg_testset_save_CFLAGS" 10772 10773 eval supported=\$$cacheid 10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10775printf "%s\n" "$supported" >&6; } 10776 if test "$supported" = "yes" ; then 10777 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10778 found="yes" 10779 fi 10780 fi 10781 10782 10783fi 10784 10785 10786 10787 10788 10789 10790 10791 CWARNFLAGS="$BASE_CFLAGS" 10792 if test "x$GCC" = xyes ; then 10793 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10794 fi 10795 10796 10797 10798 10799 10800 10801 10802 10803# Check whether --enable-strict-compilation was given. 10804if test ${enable_strict_compilation+y} 10805then : 10806 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10807else case e in #( 10808 e) STRICT_COMPILE=no ;; 10809esac 10810fi 10811 10812 10813 10814 10815 10816 10817STRICT_CFLAGS="" 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831xorg_testset_save_CFLAGS="$CFLAGS" 10832 10833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10837if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10838then : 10839 printf %s "(cached) " >&6 10840else case e in #( 10841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843int i; 10844_ACEOF 10845if ac_fn_c_try_compile "$LINENO" 10846then : 10847 xorg_cv_cc_flag_unknown_warning_option=yes 10848else case e in #( 10849 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10850esac 10851fi 10852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10853esac 10854fi 10855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10858 CFLAGS="$xorg_testset_save_CFLAGS" 10859fi 10860 10861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10864 fi 10865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10868if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10869then : 10870 printf %s "(cached) " >&6 10871else case e in #( 10872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10873/* end confdefs.h. */ 10874int i; 10875_ACEOF 10876if ac_fn_c_try_compile "$LINENO" 10877then : 10878 xorg_cv_cc_flag_unused_command_line_argument=yes 10879else case e in #( 10880 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10881esac 10882fi 10883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10884esac 10885fi 10886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10889 CFLAGS="$xorg_testset_save_CFLAGS" 10890fi 10891 10892found="no" 10893 10894 if test $found = "no" ; then 10895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10897 fi 10898 10899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10901 fi 10902 10903 CFLAGS="$CFLAGS -pedantic" 10904 10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10906printf %s "checking if $CC supports -pedantic... " >&6; } 10907 cacheid=xorg_cv_cc_flag__pedantic 10908 if eval test \${$cacheid+y} 10909then : 10910 printf %s "(cached) " >&6 10911else case e in #( 10912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913/* end confdefs.h. */ 10914int i; 10915int 10916main (void) 10917{ 10918 10919 ; 10920 return 0; 10921} 10922_ACEOF 10923if ac_fn_c_try_link "$LINENO" 10924then : 10925 eval $cacheid=yes 10926else case e in #( 10927 e) eval $cacheid=no ;; 10928esac 10929fi 10930rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10931 conftest$ac_exeext conftest.$ac_ext ;; 10932esac 10933fi 10934 10935 10936 CFLAGS="$xorg_testset_save_CFLAGS" 10937 10938 eval supported=\$$cacheid 10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10940printf "%s\n" "$supported" >&6; } 10941 if test "$supported" = "yes" ; then 10942 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10943 found="yes" 10944 fi 10945 fi 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961xorg_testset_save_CFLAGS="$CFLAGS" 10962 10963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10966printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10967if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10968then : 10969 printf %s "(cached) " >&6 10970else case e in #( 10971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10972/* end confdefs.h. */ 10973int i; 10974_ACEOF 10975if ac_fn_c_try_compile "$LINENO" 10976then : 10977 xorg_cv_cc_flag_unknown_warning_option=yes 10978else case e in #( 10979 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10980esac 10981fi 10982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10983esac 10984fi 10985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10988 CFLAGS="$xorg_testset_save_CFLAGS" 10989fi 10990 10991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10994 fi 10995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10998if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10999then : 11000 printf %s "(cached) " >&6 11001else case e in #( 11002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11003/* end confdefs.h. */ 11004int i; 11005_ACEOF 11006if ac_fn_c_try_compile "$LINENO" 11007then : 11008 xorg_cv_cc_flag_unused_command_line_argument=yes 11009else case e in #( 11010 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11011esac 11012fi 11013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11014esac 11015fi 11016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11019 CFLAGS="$xorg_testset_save_CFLAGS" 11020fi 11021 11022found="no" 11023 11024 if test $found = "no" ; then 11025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11027 fi 11028 11029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11031 fi 11032 11033 CFLAGS="$CFLAGS -Werror" 11034 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11036printf %s "checking if $CC supports -Werror... " >&6; } 11037 cacheid=xorg_cv_cc_flag__Werror 11038 if eval test \${$cacheid+y} 11039then : 11040 printf %s "(cached) " >&6 11041else case e in #( 11042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11043/* end confdefs.h. */ 11044int i; 11045int 11046main (void) 11047{ 11048 11049 ; 11050 return 0; 11051} 11052_ACEOF 11053if ac_fn_c_try_link "$LINENO" 11054then : 11055 eval $cacheid=yes 11056else case e in #( 11057 e) eval $cacheid=no ;; 11058esac 11059fi 11060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11061 conftest$ac_exeext conftest.$ac_ext ;; 11062esac 11063fi 11064 11065 11066 CFLAGS="$xorg_testset_save_CFLAGS" 11067 11068 eval supported=\$$cacheid 11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11070printf "%s\n" "$supported" >&6; } 11071 if test "$supported" = "yes" ; then 11072 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11073 found="yes" 11074 fi 11075 fi 11076 11077 if test $found = "no" ; then 11078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11080 fi 11081 11082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11084 fi 11085 11086 CFLAGS="$CFLAGS -errwarn" 11087 11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11089printf %s "checking if $CC supports -errwarn... " >&6; } 11090 cacheid=xorg_cv_cc_flag__errwarn 11091 if eval test \${$cacheid+y} 11092then : 11093 printf %s "(cached) " >&6 11094else case e in #( 11095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11096/* end confdefs.h. */ 11097int i; 11098int 11099main (void) 11100{ 11101 11102 ; 11103 return 0; 11104} 11105_ACEOF 11106if ac_fn_c_try_link "$LINENO" 11107then : 11108 eval $cacheid=yes 11109else case e in #( 11110 e) eval $cacheid=no ;; 11111esac 11112fi 11113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11114 conftest$ac_exeext conftest.$ac_ext ;; 11115esac 11116fi 11117 11118 11119 CFLAGS="$xorg_testset_save_CFLAGS" 11120 11121 eval supported=\$$cacheid 11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11123printf "%s\n" "$supported" >&6; } 11124 if test "$supported" = "yes" ; then 11125 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11126 found="yes" 11127 fi 11128 fi 11129 11130 11131 11132# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11133# activate it with -Werror, so we add it here explicitly. 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147xorg_testset_save_CFLAGS="$CFLAGS" 11148 11149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11152printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11153if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11154then : 11155 printf %s "(cached) " >&6 11156else case e in #( 11157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11158/* end confdefs.h. */ 11159int i; 11160_ACEOF 11161if ac_fn_c_try_compile "$LINENO" 11162then : 11163 xorg_cv_cc_flag_unknown_warning_option=yes 11164else case e in #( 11165 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11166esac 11167fi 11168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11169esac 11170fi 11171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11174 CFLAGS="$xorg_testset_save_CFLAGS" 11175fi 11176 11177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11180 fi 11181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11184if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11185then : 11186 printf %s "(cached) " >&6 11187else case e in #( 11188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11189/* end confdefs.h. */ 11190int i; 11191_ACEOF 11192if ac_fn_c_try_compile "$LINENO" 11193then : 11194 xorg_cv_cc_flag_unused_command_line_argument=yes 11195else case e in #( 11196 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11197esac 11198fi 11199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11200esac 11201fi 11202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11203printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11205 CFLAGS="$xorg_testset_save_CFLAGS" 11206fi 11207 11208found="no" 11209 11210 if test $found = "no" ; then 11211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11213 fi 11214 11215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11217 fi 11218 11219 CFLAGS="$CFLAGS -Werror=attributes" 11220 11221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11222printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11223 cacheid=xorg_cv_cc_flag__Werror_attributes 11224 if eval test \${$cacheid+y} 11225then : 11226 printf %s "(cached) " >&6 11227else case e in #( 11228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229/* end confdefs.h. */ 11230int i; 11231int 11232main (void) 11233{ 11234 11235 ; 11236 return 0; 11237} 11238_ACEOF 11239if ac_fn_c_try_link "$LINENO" 11240then : 11241 eval $cacheid=yes 11242else case e in #( 11243 e) eval $cacheid=no ;; 11244esac 11245fi 11246rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11247 conftest$ac_exeext conftest.$ac_ext ;; 11248esac 11249fi 11250 11251 11252 CFLAGS="$xorg_testset_save_CFLAGS" 11253 11254 eval supported=\$$cacheid 11255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11256printf "%s\n" "$supported" >&6; } 11257 if test "$supported" = "yes" ; then 11258 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11259 found="yes" 11260 fi 11261 fi 11262 11263 11264 11265if test "x$STRICT_COMPILE" = "xyes"; then 11266 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11267 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11268fi 11269 11270 11271 11272 11273 11274 11275 11276 11277cat >>confdefs.h <<_ACEOF 11278#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11279_ACEOF 11280 11281 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11282 if test "x$PVM" = "x"; then 11283 PVM="0" 11284 fi 11285 11286printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11287 11288 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11289 if test "x$PVP" = "x"; then 11290 PVP="0" 11291 fi 11292 11293printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11294 11295 11296 11297CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11298mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11299|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11300touch \$(top_srcdir)/ChangeLog; \ 11301echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11302 11303 11304 11305 11306macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11307INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11308mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11309|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11310touch \$(top_srcdir)/INSTALL; \ 11311echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11312 11313 11314 11315 11316 11317 11318case $host_os in 11319 solaris*) 11320 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11321 # check for a man page file found in later versions that use 11322 # traditional section numbers instead 11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11324printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11325if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11326then : 11327 printf %s "(cached) " >&6 11328else case e in #( 11329 e) test "$cross_compiling" = yes && 11330 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11331if test -r "/usr/share/man/man7/attributes.7"; then 11332 ac_cv_file__usr_share_man_man7_attributes_7=yes 11333else 11334 ac_cv_file__usr_share_man_man7_attributes_7=no 11335fi ;; 11336esac 11337fi 11338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11339printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11340if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11341then : 11342 SYSV_MAN_SECTIONS=false 11343else case e in #( 11344 e) SYSV_MAN_SECTIONS=true ;; 11345esac 11346fi 11347 11348 ;; 11349 *) SYSV_MAN_SECTIONS=false ;; 11350esac 11351 11352if test x$APP_MAN_SUFFIX = x ; then 11353 APP_MAN_SUFFIX=1 11354fi 11355if test x$APP_MAN_DIR = x ; then 11356 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11357fi 11358 11359if test x$LIB_MAN_SUFFIX = x ; then 11360 LIB_MAN_SUFFIX=3 11361fi 11362if test x$LIB_MAN_DIR = x ; then 11363 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11364fi 11365 11366if test x$FILE_MAN_SUFFIX = x ; then 11367 case $SYSV_MAN_SECTIONS in 11368 true) FILE_MAN_SUFFIX=4 ;; 11369 *) FILE_MAN_SUFFIX=5 ;; 11370 esac 11371fi 11372if test x$FILE_MAN_DIR = x ; then 11373 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11374fi 11375 11376if test x$MISC_MAN_SUFFIX = x ; then 11377 case $SYSV_MAN_SECTIONS in 11378 true) MISC_MAN_SUFFIX=5 ;; 11379 *) MISC_MAN_SUFFIX=7 ;; 11380 esac 11381fi 11382if test x$MISC_MAN_DIR = x ; then 11383 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11384fi 11385 11386if test x$DRIVER_MAN_SUFFIX = x ; then 11387 case $SYSV_MAN_SECTIONS in 11388 true) DRIVER_MAN_SUFFIX=7 ;; 11389 *) DRIVER_MAN_SUFFIX=4 ;; 11390 esac 11391fi 11392if test x$DRIVER_MAN_DIR = x ; then 11393 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11394fi 11395 11396if test x$ADMIN_MAN_SUFFIX = x ; then 11397 case $SYSV_MAN_SECTIONS in 11398 true) ADMIN_MAN_SUFFIX=1m ;; 11399 *) ADMIN_MAN_SUFFIX=8 ;; 11400 esac 11401fi 11402if test x$ADMIN_MAN_DIR = x ; then 11403 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11404fi 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420XORG_MAN_PAGE="X Version 11" 11421 11422MAN_SUBSTS="\ 11423 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11424 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11425 -e 's|__xservername__|Xorg|g' \ 11426 -e 's|__xconfigfile__|xorg.conf|g' \ 11427 -e 's|__projectroot__|\$(prefix)|g' \ 11428 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11429 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11430 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11431 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11432 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11433 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11434 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11435 11436 11437 11438 11439AM_DEFAULT_VERBOSITY=0 11440 11441 11442 11443 11444 11445 11446 11447 11448# Check whether --with-lint was given. 11449if test ${with_lint+y} 11450then : 11451 withval=$with_lint; use_lint=$withval 11452else case e in #( 11453 e) use_lint=no ;; 11454esac 11455fi 11456 11457 11458# Obtain platform specific info like program name and options 11459# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11460case $host_os in 11461 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11462 lint_name=splint 11463 lint_options="-badflag" 11464 ;; 11465 *freebsd* | *netbsd*) 11466 lint_name=lint 11467 lint_options="-u -b" 11468 ;; 11469 *solaris*) 11470 lint_name=lint 11471 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11472 ;; 11473esac 11474 11475# Test for the presence of the program (either guessed by the code or spelled out by the user) 11476if test "x$use_lint" = x"yes" ; then 11477 # Extract the first word of "$lint_name", so it can be a program name with args. 11478set dummy $lint_name; ac_word=$2 11479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11480printf %s "checking for $ac_word... " >&6; } 11481if test ${ac_cv_path_LINT+y} 11482then : 11483 printf %s "(cached) " >&6 11484else case e in #( 11485 e) case $LINT in 11486 [\\/]* | ?:[\\/]*) 11487 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11488 ;; 11489 *) 11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11491for as_dir in $PATH 11492do 11493 IFS=$as_save_IFS 11494 case $as_dir in #((( 11495 '') as_dir=./ ;; 11496 */) ;; 11497 *) as_dir=$as_dir/ ;; 11498 esac 11499 for ac_exec_ext in '' $ac_executable_extensions; do 11500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11501 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 11502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11503 break 2 11504 fi 11505done 11506 done 11507IFS=$as_save_IFS 11508 11509 ;; 11510esac ;; 11511esac 11512fi 11513LINT=$ac_cv_path_LINT 11514if test -n "$LINT"; then 11515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11516printf "%s\n" "$LINT" >&6; } 11517else 11518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11519printf "%s\n" "no" >&6; } 11520fi 11521 11522 11523 if test "x$LINT" = "x"; then 11524 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11525 fi 11526elif test "x$use_lint" = x"no" ; then 11527 if test "x$LINT" != "x"; then 11528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11529printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11530 fi 11531else 11532 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11533fi 11534 11535# User supplied flags override default flags 11536if test "x$LINT_FLAGS" != "x"; then 11537 lint_options=$LINT_FLAGS 11538fi 11539 11540LINT_FLAGS=$lint_options 11541 11542 if test "x$LINT" != x; then 11543 LINT_TRUE= 11544 LINT_FALSE='#' 11545else 11546 LINT_TRUE='#' 11547 LINT_FALSE= 11548fi 11549 11550 11551 11552 11553 11554pkg_failed=no 11555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BDFTOPCF" >&5 11556printf %s "checking for BDFTOPCF... " >&6; } 11557 11558if test -n "$BDFTOPCF_CFLAGS"; then 11559 pkg_cv_BDFTOPCF_CFLAGS="$BDFTOPCF_CFLAGS" 11560 elif test -n "$PKG_CONFIG"; then 11561 if test -n "$PKG_CONFIG" && \ 11562 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 fontsproto >= 2.1.3\""; } >&5 11563 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 fontsproto >= 2.1.3") 2>&5 11564 ac_status=$? 11565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11566 test $ac_status = 0; }; then 11567 pkg_cv_BDFTOPCF_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 fontsproto >= 2.1.3" 2>/dev/null` 11568 test "x$?" != "x0" && pkg_failed=yes 11569else 11570 pkg_failed=yes 11571fi 11572 else 11573 pkg_failed=untried 11574fi 11575if test -n "$BDFTOPCF_LIBS"; then 11576 pkg_cv_BDFTOPCF_LIBS="$BDFTOPCF_LIBS" 11577 elif test -n "$PKG_CONFIG"; then 11578 if test -n "$PKG_CONFIG" && \ 11579 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 fontsproto >= 2.1.3\""; } >&5 11580 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 fontsproto >= 2.1.3") 2>&5 11581 ac_status=$? 11582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11583 test $ac_status = 0; }; then 11584 pkg_cv_BDFTOPCF_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 fontsproto >= 2.1.3" 2>/dev/null` 11585 test "x$?" != "x0" && pkg_failed=yes 11586else 11587 pkg_failed=yes 11588fi 11589 else 11590 pkg_failed=untried 11591fi 11592 11593 11594 11595if test $pkg_failed = yes; then 11596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11597printf "%s\n" "no" >&6; } 11598 11599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11600 _pkg_short_errors_supported=yes 11601else 11602 _pkg_short_errors_supported=no 11603fi 11604 if test $_pkg_short_errors_supported = yes; then 11605 BDFTOPCF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 fontsproto >= 2.1.3" 2>&1` 11606 else 11607 BDFTOPCF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 fontsproto >= 2.1.3" 2>&1` 11608 fi 11609 # Put the nasty error message in config.log where it belongs 11610 echo "$BDFTOPCF_PKG_ERRORS" >&5 11611 11612 as_fn_error $? "Package requirements (xproto >= 7.0.22 fontsproto >= 2.1.3) were not met: 11613 11614$BDFTOPCF_PKG_ERRORS 11615 11616Consider adjusting the PKG_CONFIG_PATH environment variable if you 11617installed software in a non-standard prefix. 11618 11619Alternatively, you may set the environment variables BDFTOPCF_CFLAGS 11620and BDFTOPCF_LIBS to avoid the need to call pkg-config. 11621See the pkg-config man page for more details." "$LINENO" 5 11622elif test $pkg_failed = untried; then 11623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11624printf "%s\n" "no" >&6; } 11625 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11626printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11627as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11628is in your PATH or set the PKG_CONFIG environment variable to the full 11629path to pkg-config. 11630 11631Alternatively, you may set the environment variables BDFTOPCF_CFLAGS 11632and BDFTOPCF_LIBS to avoid the need to call pkg-config. 11633See the pkg-config man page for more details. 11634 11635To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11636See 'config.log' for more details" "$LINENO" 5; } 11637else 11638 BDFTOPCF_CFLAGS=$pkg_cv_BDFTOPCF_CFLAGS 11639 BDFTOPCF_LIBS=$pkg_cv_BDFTOPCF_LIBS 11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11641printf "%s\n" "yes" >&6; } 11642 11643fi 11644 11645ac_config_files="$ac_config_files Makefile man/Makefile" 11646 11647cat >confcache <<\_ACEOF 11648# This file is a shell script that caches the results of configure 11649# tests run on this system so they can be shared between configure 11650# scripts and configure runs, see configure's option --config-cache. 11651# It is not useful on other systems. If it contains results you don't 11652# want to keep, you may remove or edit it. 11653# 11654# config.status only pays attention to the cache file if you give it 11655# the --recheck option to rerun configure. 11656# 11657# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11658# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11659# following values. 11660 11661_ACEOF 11662 11663# The following way of writing the cache mishandles newlines in values, 11664# but we know of no workaround that is simple, portable, and efficient. 11665# So, we kill variables containing newlines. 11666# Ultrix sh set writes to stderr and can't be redirected directly, 11667# and sets the high bit in the cache file unless we assign to the vars. 11668( 11669 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11670 eval ac_val=\$$ac_var 11671 case $ac_val in #( 11672 *${as_nl}*) 11673 case $ac_var in #( 11674 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11675printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11676 esac 11677 case $ac_var in #( 11678 _ | IFS | as_nl) ;; #( 11679 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11680 *) { eval $ac_var=; unset $ac_var;} ;; 11681 esac ;; 11682 esac 11683 done 11684 11685 (set) 2>&1 | 11686 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11687 *${as_nl}ac_space=\ *) 11688 # 'set' does not quote correctly, so add quotes: double-quote 11689 # substitution turns \\\\ into \\, and sed turns \\ into \. 11690 sed -n \ 11691 "s/'/'\\\\''/g; 11692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11693 ;; #( 11694 *) 11695 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11697 ;; 11698 esac | 11699 sort 11700) | 11701 sed ' 11702 /^ac_cv_env_/b end 11703 t clear 11704 :clear 11705 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11706 t end 11707 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11708 :end' >>confcache 11709if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11710 if test -w "$cache_file"; then 11711 if test "x$cache_file" != "x/dev/null"; then 11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11713printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11714 if test ! -f "$cache_file" || test -h "$cache_file"; then 11715 cat confcache >"$cache_file" 11716 else 11717 case $cache_file in #( 11718 */* | ?:*) 11719 mv -f confcache "$cache_file"$$ && 11720 mv -f "$cache_file"$$ "$cache_file" ;; #( 11721 *) 11722 mv -f confcache "$cache_file" ;; 11723 esac 11724 fi 11725 fi 11726 else 11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11728printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11729 fi 11730fi 11731rm -f confcache 11732 11733test "x$prefix" = xNONE && prefix=$ac_default_prefix 11734# Let make expand exec_prefix. 11735test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11736 11737DEFS=-DHAVE_CONFIG_H 11738 11739ac_libobjs= 11740ac_ltlibobjs= 11741U= 11742for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11743 # 1. Remove the extension, and $U if already installed. 11744 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11745 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11746 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11747 # will be set to the directory where LIBOBJS objects are built. 11748 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11749 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11750done 11751LIBOBJS=$ac_libobjs 11752 11753LTLIBOBJS=$ac_ltlibobjs 11754 11755 11756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11757printf %s "checking that generated files are newer than configure... " >&6; } 11758 if test -n "$am_sleep_pid"; then 11759 # Hide warnings about reused PIDs. 11760 wait $am_sleep_pid 2>/dev/null 11761 fi 11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11763printf "%s\n" "done" >&6; } 11764case $enable_silent_rules in # ((( 11765 yes) AM_DEFAULT_VERBOSITY=0;; 11766 no) AM_DEFAULT_VERBOSITY=1;; 11767esac 11768if test $am_cv_make_support_nested_variables = yes; then 11769 AM_V='$(V)' 11770 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11771else 11772 AM_V=$AM_DEFAULT_VERBOSITY 11773 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11774fi 11775 11776 if test -n "$EXEEXT"; then 11777 am__EXEEXT_TRUE= 11778 am__EXEEXT_FALSE='#' 11779else 11780 am__EXEEXT_TRUE='#' 11781 am__EXEEXT_FALSE= 11782fi 11783 11784if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11785 as_fn_error $? "conditional \"AMDEP\" was never defined. 11786Usually this means the macro was only invoked conditionally." "$LINENO" 5 11787fi 11788if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11789 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11790Usually this means the macro was only invoked conditionally." "$LINENO" 5 11791fi 11792if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11793 as_fn_error $? "conditional \"LINT\" was never defined. 11794Usually this means the macro was only invoked conditionally." "$LINENO" 5 11795fi 11796 11797: "${CONFIG_STATUS=./config.status}" 11798ac_write_fail=0 11799ac_clean_files_save=$ac_clean_files 11800ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11802printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11803as_write_fail=0 11804cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11805#! $SHELL 11806# Generated by $as_me. 11807# Run this file to recreate the current configuration. 11808# Compiler output produced by configure, useful for debugging 11809# configure, is in config.log if it exists. 11810 11811debug=false 11812ac_cs_recheck=false 11813ac_cs_silent=false 11814 11815SHELL=\${CONFIG_SHELL-$SHELL} 11816export SHELL 11817_ASEOF 11818cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11819## -------------------- ## 11820## M4sh Initialization. ## 11821## -------------------- ## 11822 11823# Be more Bourne compatible 11824DUALCASE=1; export DUALCASE # for MKS sh 11825if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11826then : 11827 emulate sh 11828 NULLCMD=: 11829 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11830 # is contrary to our usage. Disable this feature. 11831 alias -g '${1+"$@"}'='"$@"' 11832 setopt NO_GLOB_SUBST 11833else case e in #( 11834 e) case `(set -o) 2>/dev/null` in #( 11835 *posix*) : 11836 set -o posix ;; #( 11837 *) : 11838 ;; 11839esac ;; 11840esac 11841fi 11842 11843 11844 11845# Reset variables that may have inherited troublesome values from 11846# the environment. 11847 11848# IFS needs to be set, to space, tab, and newline, in precisely that order. 11849# (If _AS_PATH_WALK were called with IFS unset, it would have the 11850# side effect of setting IFS to empty, thus disabling word splitting.) 11851# Quoting is to prevent editors from complaining about space-tab. 11852as_nl=' 11853' 11854export as_nl 11855IFS=" "" $as_nl" 11856 11857PS1='$ ' 11858PS2='> ' 11859PS4='+ ' 11860 11861# Ensure predictable behavior from utilities with locale-dependent output. 11862LC_ALL=C 11863export LC_ALL 11864LANGUAGE=C 11865export LANGUAGE 11866 11867# We cannot yet rely on "unset" to work, but we need these variables 11868# to be unset--not just set to an empty or harmless value--now, to 11869# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11870# also avoids known problems related to "unset" and subshell syntax 11871# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11872for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11873do eval test \${$as_var+y} \ 11874 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11875done 11876 11877# Ensure that fds 0, 1, and 2 are open. 11878if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11879if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11880if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11881 11882# The user is always right. 11883if ${PATH_SEPARATOR+false} :; then 11884 PATH_SEPARATOR=: 11885 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11886 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11887 PATH_SEPARATOR=';' 11888 } 11889fi 11890 11891 11892# Find who we are. Look in the path if we contain no directory separator. 11893as_myself= 11894case $0 in #(( 11895 *[\\/]* ) as_myself=$0 ;; 11896 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11897for as_dir in $PATH 11898do 11899 IFS=$as_save_IFS 11900 case $as_dir in #((( 11901 '') as_dir=./ ;; 11902 */) ;; 11903 *) as_dir=$as_dir/ ;; 11904 esac 11905 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11906 done 11907IFS=$as_save_IFS 11908 11909 ;; 11910esac 11911# We did not find ourselves, most probably we were run as 'sh COMMAND' 11912# in which case we are not to be found in the path. 11913if test "x$as_myself" = x; then 11914 as_myself=$0 11915fi 11916if test ! -f "$as_myself"; then 11917 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11918 exit 1 11919fi 11920 11921 11922 11923# as_fn_error STATUS ERROR [LINENO LOG_FD] 11924# ---------------------------------------- 11925# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11926# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11927# script with STATUS, using 1 if that was 0. 11928as_fn_error () 11929{ 11930 as_status=$1; test $as_status -eq 0 && as_status=1 11931 if test "$4"; then 11932 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11934 fi 11935 printf "%s\n" "$as_me: error: $2" >&2 11936 as_fn_exit $as_status 11937} # as_fn_error 11938 11939 11940# as_fn_set_status STATUS 11941# ----------------------- 11942# Set $? to STATUS, without forking. 11943as_fn_set_status () 11944{ 11945 return $1 11946} # as_fn_set_status 11947 11948# as_fn_exit STATUS 11949# ----------------- 11950# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11951as_fn_exit () 11952{ 11953 set +e 11954 as_fn_set_status $1 11955 exit $1 11956} # as_fn_exit 11957 11958# as_fn_unset VAR 11959# --------------- 11960# Portably unset VAR. 11961as_fn_unset () 11962{ 11963 { eval $1=; unset $1;} 11964} 11965as_unset=as_fn_unset 11966 11967# as_fn_append VAR VALUE 11968# ---------------------- 11969# Append the text in VALUE to the end of the definition contained in VAR. Take 11970# advantage of any shell optimizations that allow amortized linear growth over 11971# repeated appends, instead of the typical quadratic growth present in naive 11972# implementations. 11973if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11974then : 11975 eval 'as_fn_append () 11976 { 11977 eval $1+=\$2 11978 }' 11979else case e in #( 11980 e) as_fn_append () 11981 { 11982 eval $1=\$$1\$2 11983 } ;; 11984esac 11985fi # as_fn_append 11986 11987# as_fn_arith ARG... 11988# ------------------ 11989# Perform arithmetic evaluation on the ARGs, and store the result in the 11990# global $as_val. Take advantage of shells that can avoid forks. The arguments 11991# must be portable across $(()) and expr. 11992if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11993then : 11994 eval 'as_fn_arith () 11995 { 11996 as_val=$(( $* )) 11997 }' 11998else case e in #( 11999 e) as_fn_arith () 12000 { 12001 as_val=`expr "$@" || test $? -eq 1` 12002 } ;; 12003esac 12004fi # as_fn_arith 12005 12006 12007if expr a : '\(a\)' >/dev/null 2>&1 && 12008 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12009 as_expr=expr 12010else 12011 as_expr=false 12012fi 12013 12014if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12015 as_basename=basename 12016else 12017 as_basename=false 12018fi 12019 12020if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12021 as_dirname=dirname 12022else 12023 as_dirname=false 12024fi 12025 12026as_me=`$as_basename -- "$0" || 12027$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12028 X"$0" : 'X\(//\)$' \| \ 12029 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12030printf "%s\n" X/"$0" | 12031 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12032 s//\1/ 12033 q 12034 } 12035 /^X\/\(\/\/\)$/{ 12036 s//\1/ 12037 q 12038 } 12039 /^X\/\(\/\).*/{ 12040 s//\1/ 12041 q 12042 } 12043 s/.*/./; q'` 12044 12045# Avoid depending upon Character Ranges. 12046as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12048as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12049as_cr_digits='0123456789' 12050as_cr_alnum=$as_cr_Letters$as_cr_digits 12051 12052 12053# Determine whether it's possible to make 'echo' print without a newline. 12054# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12055# for compatibility with existing Makefiles. 12056ECHO_C= ECHO_N= ECHO_T= 12057case `echo -n x` in #((((( 12058-n*) 12059 case `echo 'xy\c'` in 12060 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12061 xy) ECHO_C='\c';; 12062 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12063 ECHO_T=' ';; 12064 esac;; 12065*) 12066 ECHO_N='-n';; 12067esac 12068 12069# For backward compatibility with old third-party macros, we provide 12070# the shell variables $as_echo and $as_echo_n. New code should use 12071# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12072as_echo='printf %s\n' 12073as_echo_n='printf %s' 12074 12075rm -f conf$$ conf$$.exe conf$$.file 12076if test -d conf$$.dir; then 12077 rm -f conf$$.dir/conf$$.file 12078else 12079 rm -f conf$$.dir 12080 mkdir conf$$.dir 2>/dev/null 12081fi 12082if (echo >conf$$.file) 2>/dev/null; then 12083 if ln -s conf$$.file conf$$ 2>/dev/null; then 12084 as_ln_s='ln -s' 12085 # ... but there are two gotchas: 12086 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12087 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12088 # In both cases, we have to default to 'cp -pR'. 12089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12090 as_ln_s='cp -pR' 12091 elif ln conf$$.file conf$$ 2>/dev/null; then 12092 as_ln_s=ln 12093 else 12094 as_ln_s='cp -pR' 12095 fi 12096else 12097 as_ln_s='cp -pR' 12098fi 12099rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12100rmdir conf$$.dir 2>/dev/null 12101 12102 12103# as_fn_mkdir_p 12104# ------------- 12105# Create "$as_dir" as a directory, including parents if necessary. 12106as_fn_mkdir_p () 12107{ 12108 12109 case $as_dir in #( 12110 -*) as_dir=./$as_dir;; 12111 esac 12112 test -d "$as_dir" || eval $as_mkdir_p || { 12113 as_dirs= 12114 while :; do 12115 case $as_dir in #( 12116 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12117 *) as_qdir=$as_dir;; 12118 esac 12119 as_dirs="'$as_qdir' $as_dirs" 12120 as_dir=`$as_dirname -- "$as_dir" || 12121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12122 X"$as_dir" : 'X\(//\)[^/]' \| \ 12123 X"$as_dir" : 'X\(//\)$' \| \ 12124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12125printf "%s\n" X"$as_dir" | 12126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12127 s//\1/ 12128 q 12129 } 12130 /^X\(\/\/\)[^/].*/{ 12131 s//\1/ 12132 q 12133 } 12134 /^X\(\/\/\)$/{ 12135 s//\1/ 12136 q 12137 } 12138 /^X\(\/\).*/{ 12139 s//\1/ 12140 q 12141 } 12142 s/.*/./; q'` 12143 test -d "$as_dir" && break 12144 done 12145 test -z "$as_dirs" || eval "mkdir $as_dirs" 12146 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12147 12148 12149} # as_fn_mkdir_p 12150if mkdir -p . 2>/dev/null; then 12151 as_mkdir_p='mkdir -p "$as_dir"' 12152else 12153 test -d ./-p && rmdir ./-p 12154 as_mkdir_p=false 12155fi 12156 12157 12158# as_fn_executable_p FILE 12159# ----------------------- 12160# Test if FILE is an executable regular file. 12161as_fn_executable_p () 12162{ 12163 test -f "$1" && test -x "$1" 12164} # as_fn_executable_p 12165as_test_x='test -x' 12166as_executable_p=as_fn_executable_p 12167 12168# Sed expression to map a string onto a valid CPP name. 12169as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12170as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12171 12172# Sed expression to map a string onto a valid variable name. 12173as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12174as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12175 12176 12177exec 6>&1 12178## ----------------------------------- ## 12179## Main body of $CONFIG_STATUS script. ## 12180## ----------------------------------- ## 12181_ASEOF 12182test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12183 12184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12185# Save the log message, to keep $0 and so on meaningful, and to 12186# report actual input values of CONFIG_FILES etc. instead of their 12187# values after options handling. 12188ac_log=" 12189This file was extended by bdftopcf $as_me 1.1.2, which was 12190generated by GNU Autoconf 2.72. Invocation command line was 12191 12192 CONFIG_FILES = $CONFIG_FILES 12193 CONFIG_HEADERS = $CONFIG_HEADERS 12194 CONFIG_LINKS = $CONFIG_LINKS 12195 CONFIG_COMMANDS = $CONFIG_COMMANDS 12196 $ $0 $@ 12197 12198on `(hostname || uname -n) 2>/dev/null | sed 1q` 12199" 12200 12201_ACEOF 12202 12203case $ac_config_files in *" 12204"*) set x $ac_config_files; shift; ac_config_files=$*;; 12205esac 12206 12207case $ac_config_headers in *" 12208"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12209esac 12210 12211 12212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12213# Files that config.status was made for. 12214config_files="$ac_config_files" 12215config_headers="$ac_config_headers" 12216config_commands="$ac_config_commands" 12217 12218_ACEOF 12219 12220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12221ac_cs_usage="\ 12222'$as_me' instantiates files and other configuration actions 12223from templates according to the current configuration. Unless the files 12224and actions are specified as TAGs, all are instantiated by default. 12225 12226Usage: $0 [OPTION]... [TAG]... 12227 12228 -h, --help print this help, then exit 12229 -V, --version print version number and configuration settings, then exit 12230 --config print configuration, then exit 12231 -q, --quiet, --silent 12232 do not print progress messages 12233 -d, --debug don't remove temporary files 12234 --recheck update $as_me by reconfiguring in the same conditions 12235 --file=FILE[:TEMPLATE] 12236 instantiate the configuration file FILE 12237 --header=FILE[:TEMPLATE] 12238 instantiate the configuration header FILE 12239 12240Configuration files: 12241$config_files 12242 12243Configuration headers: 12244$config_headers 12245 12246Configuration commands: 12247$config_commands 12248 12249Report bugs to <https://gitlab.freedesktop.org/xorg/util/bdftopcf/-/issues>." 12250 12251_ACEOF 12252ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12253ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12255ac_cs_config='$ac_cs_config_escaped' 12256ac_cs_version="\\ 12257bdftopcf config.status 1.1.2 12258configured by $0, generated by GNU Autoconf 2.72, 12259 with options \\"\$ac_cs_config\\" 12260 12261Copyright (C) 2023 Free Software Foundation, Inc. 12262This config.status script is free software; the Free Software Foundation 12263gives unlimited permission to copy, distribute and modify it." 12264 12265ac_pwd='$ac_pwd' 12266srcdir='$srcdir' 12267INSTALL='$INSTALL' 12268MKDIR_P='$MKDIR_P' 12269AWK='$AWK' 12270test -n "\$AWK" || AWK=awk 12271_ACEOF 12272 12273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12274# The default lists apply if the user does not specify any file. 12275ac_need_defaults=: 12276while test $# != 0 12277do 12278 case $1 in 12279 --*=?*) 12280 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12281 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12282 ac_shift=: 12283 ;; 12284 --*=) 12285 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12286 ac_optarg= 12287 ac_shift=: 12288 ;; 12289 *) 12290 ac_option=$1 12291 ac_optarg=$2 12292 ac_shift=shift 12293 ;; 12294 esac 12295 12296 case $ac_option in 12297 # Handling of the options. 12298 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12299 ac_cs_recheck=: ;; 12300 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12301 printf "%s\n" "$ac_cs_version"; exit ;; 12302 --config | --confi | --conf | --con | --co | --c ) 12303 printf "%s\n" "$ac_cs_config"; exit ;; 12304 --debug | --debu | --deb | --de | --d | -d ) 12305 debug=: ;; 12306 --file | --fil | --fi | --f ) 12307 $ac_shift 12308 case $ac_optarg in 12309 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12310 '') as_fn_error $? "missing file argument" ;; 12311 esac 12312 as_fn_append CONFIG_FILES " '$ac_optarg'" 12313 ac_need_defaults=false;; 12314 --header | --heade | --head | --hea ) 12315 $ac_shift 12316 case $ac_optarg in 12317 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12318 esac 12319 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12320 ac_need_defaults=false;; 12321 --he | --h) 12322 # Conflict between --help and --header 12323 as_fn_error $? "ambiguous option: '$1' 12324Try '$0 --help' for more information.";; 12325 --help | --hel | -h ) 12326 printf "%s\n" "$ac_cs_usage"; exit ;; 12327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12328 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12329 ac_cs_silent=: ;; 12330 12331 # This is an error. 12332 -*) as_fn_error $? "unrecognized option: '$1' 12333Try '$0 --help' for more information." ;; 12334 12335 *) as_fn_append ac_config_targets " $1" 12336 ac_need_defaults=false ;; 12337 12338 esac 12339 shift 12340done 12341 12342ac_configure_extra_args= 12343 12344if $ac_cs_silent; then 12345 exec 6>/dev/null 12346 ac_configure_extra_args="$ac_configure_extra_args --silent" 12347fi 12348 12349_ACEOF 12350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12351if \$ac_cs_recheck; then 12352 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12353 shift 12354 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12355 CONFIG_SHELL='$SHELL' 12356 export CONFIG_SHELL 12357 exec "\$@" 12358fi 12359 12360_ACEOF 12361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12362exec 5>>config.log 12363{ 12364 echo 12365 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12366## Running $as_me. ## 12367_ASBOX 12368 printf "%s\n" "$ac_log" 12369} >&5 12370 12371_ACEOF 12372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12373# 12374# INIT-COMMANDS 12375# 12376AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12377 12378_ACEOF 12379 12380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12381 12382# Handling of arguments. 12383for ac_config_target in $ac_config_targets 12384do 12385 case $ac_config_target in 12386 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12387 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12388 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12389 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12390 12391 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12392 esac 12393done 12394 12395 12396# If the user did not use the arguments to specify the items to instantiate, 12397# then the envvar interface is used. Set only those that are not. 12398# We use the long form for the default assignment because of an extremely 12399# bizarre bug on SunOS 4.1.3. 12400if $ac_need_defaults; then 12401 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12402 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12403 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12404fi 12405 12406# Have a temporary directory for convenience. Make it in the build tree 12407# simply because there is no reason against having it here, and in addition, 12408# creating and moving files from /tmp can sometimes cause problems. 12409# Hook for its removal unless debugging. 12410# Note that there is a small window in which the directory will not be cleaned: 12411# after its creation but before its name has been assigned to '$tmp'. 12412$debug || 12413{ 12414 tmp= ac_tmp= 12415 trap 'exit_status=$? 12416 : "${ac_tmp:=$tmp}" 12417 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12418' 0 12419 trap 'as_fn_exit 1' 1 2 13 15 12420} 12421# Create a (secure) tmp directory for tmp files. 12422 12423{ 12424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12425 test -d "$tmp" 12426} || 12427{ 12428 tmp=./conf$$-$RANDOM 12429 (umask 077 && mkdir "$tmp") 12430} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12431ac_tmp=$tmp 12432 12433# Set up the scripts for CONFIG_FILES section. 12434# No need to generate them if there are no CONFIG_FILES. 12435# This happens for instance with './config.status config.h'. 12436if test -n "$CONFIG_FILES"; then 12437 12438 12439ac_cr=`echo X | tr X '\015'` 12440# On cygwin, bash can eat \r inside `` if the user requested igncr. 12441# But we know of no other shell where ac_cr would be empty at this 12442# point, so we can use a bashism as a fallback. 12443if test "x$ac_cr" = x; then 12444 eval ac_cr=\$\'\\r\' 12445fi 12446ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12447if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12448 ac_cs_awk_cr='\\r' 12449else 12450 ac_cs_awk_cr=$ac_cr 12451fi 12452 12453echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12454_ACEOF 12455 12456 12457{ 12458 echo "cat >conf$$subs.awk <<_ACEOF" && 12459 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12460 echo "_ACEOF" 12461} >conf$$subs.sh || 12462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12463ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12464ac_delim='%!_!# ' 12465for ac_last_try in false false false false false :; do 12466 . ./conf$$subs.sh || 12467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12468 12469 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12470 if test $ac_delim_n = $ac_delim_num; then 12471 break 12472 elif $ac_last_try; then 12473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12474 else 12475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12476 fi 12477done 12478rm -f conf$$subs.sh 12479 12480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12481cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12482_ACEOF 12483sed -n ' 12484h 12485s/^/S["/; s/!.*/"]=/ 12486p 12487g 12488s/^[^!]*!// 12489:repl 12490t repl 12491s/'"$ac_delim"'$// 12492t delim 12493:nl 12494h 12495s/\(.\{148\}\)..*/\1/ 12496t more1 12497s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12498p 12499n 12500b repl 12501:more1 12502s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12503p 12504g 12505s/.\{148\}// 12506t nl 12507:delim 12508h 12509s/\(.\{148\}\)..*/\1/ 12510t more2 12511s/["\\]/\\&/g; s/^/"/; s/$/"/ 12512p 12513b 12514:more2 12515s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12516p 12517g 12518s/.\{148\}// 12519t delim 12520' <conf$$subs.awk | sed ' 12521/^[^""]/{ 12522 N 12523 s/\n// 12524} 12525' >>$CONFIG_STATUS || ac_write_fail=1 12526rm -f conf$$subs.awk 12527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12528_ACAWK 12529cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12530 for (key in S) S_is_set[key] = 1 12531 FS = "" 12532 12533} 12534{ 12535 line = $ 0 12536 nfields = split(line, field, "@") 12537 substed = 0 12538 len = length(field[1]) 12539 for (i = 2; i < nfields; i++) { 12540 key = field[i] 12541 keylen = length(key) 12542 if (S_is_set[key]) { 12543 value = S[key] 12544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12545 len += length(value) + length(field[++i]) 12546 substed = 1 12547 } else 12548 len += 1 + keylen 12549 } 12550 12551 print line 12552} 12553 12554_ACAWK 12555_ACEOF 12556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12557if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12558 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12559else 12560 cat 12561fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12562 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12563_ACEOF 12564 12565# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12566# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12567# trailing colons and then remove the whole line if VPATH becomes empty 12568# (actually we leave an empty line to preserve line numbers). 12569if test "x$srcdir" = x.; then 12570 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12571h 12572s/// 12573s/^/:/ 12574s/[ ]*$/:/ 12575s/:\$(srcdir):/:/g 12576s/:\${srcdir}:/:/g 12577s/:@srcdir@:/:/g 12578s/^:*// 12579s/:*$// 12580x 12581s/\(=[ ]*\).*/\1/ 12582G 12583s/\n// 12584s/^[^=]*=[ ]*$// 12585}' 12586fi 12587 12588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12589fi # test -n "$CONFIG_FILES" 12590 12591# Set up the scripts for CONFIG_HEADERS section. 12592# No need to generate them if there are no CONFIG_HEADERS. 12593# This happens for instance with './config.status Makefile'. 12594if test -n "$CONFIG_HEADERS"; then 12595cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12596BEGIN { 12597_ACEOF 12598 12599# Transform confdefs.h into an awk script 'defines.awk', embedded as 12600# here-document in config.status, that substitutes the proper values into 12601# config.h.in to produce config.h. 12602 12603# Create a delimiter string that does not exist in confdefs.h, to ease 12604# handling of long lines. 12605ac_delim='%!_!# ' 12606for ac_last_try in false false :; do 12607 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12608 if test -z "$ac_tt"; then 12609 break 12610 elif $ac_last_try; then 12611 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12612 else 12613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12614 fi 12615done 12616 12617# For the awk script, D is an array of macro values keyed by name, 12618# likewise P contains macro parameters if any. Preserve backslash 12619# newline sequences. 12620 12621ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12622sed -n ' 12623s/.\{148\}/&'"$ac_delim"'/g 12624t rset 12625:rset 12626s/^[ ]*#[ ]*define[ ][ ]*/ / 12627t def 12628d 12629:def 12630s/\\$// 12631t bsnl 12632s/["\\]/\\&/g 12633s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12634D["\1"]=" \3"/p 12635s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12636d 12637:bsnl 12638s/["\\]/\\&/g 12639s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12640D["\1"]=" \3\\\\\\n"\\/p 12641t cont 12642s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12643t cont 12644d 12645:cont 12646n 12647s/.\{148\}/&'"$ac_delim"'/g 12648t clear 12649:clear 12650s/\\$// 12651t bsnlc 12652s/["\\]/\\&/g; s/^/"/; s/$/"/p 12653d 12654:bsnlc 12655s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12656b cont 12657' <confdefs.h | sed ' 12658s/'"$ac_delim"'/"\\\ 12659"/g' >>$CONFIG_STATUS || ac_write_fail=1 12660 12661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12662 for (key in D) D_is_set[key] = 1 12663 FS = "" 12664} 12665/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12666 line = \$ 0 12667 split(line, arg, " ") 12668 if (arg[1] == "#") { 12669 defundef = arg[2] 12670 mac1 = arg[3] 12671 } else { 12672 defundef = substr(arg[1], 2) 12673 mac1 = arg[2] 12674 } 12675 split(mac1, mac2, "(") #) 12676 macro = mac2[1] 12677 prefix = substr(line, 1, index(line, defundef) - 1) 12678 if (D_is_set[macro]) { 12679 # Preserve the white space surrounding the "#". 12680 print prefix "define", macro P[macro] D[macro] 12681 next 12682 } else { 12683 # Replace #undef with comments. This is necessary, for example, 12684 # in the case of _POSIX_SOURCE, which is predefined and required 12685 # on some systems where configure will not decide to define it. 12686 if (defundef == "undef") { 12687 print "/*", prefix defundef, macro, "*/" 12688 next 12689 } 12690 } 12691} 12692{ print } 12693_ACAWK 12694_ACEOF 12695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12696 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12697fi # test -n "$CONFIG_HEADERS" 12698 12699 12700eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12701shift 12702for ac_tag 12703do 12704 case $ac_tag in 12705 :[FHLC]) ac_mode=$ac_tag; continue;; 12706 esac 12707 case $ac_mode$ac_tag in 12708 :[FHL]*:*);; 12709 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12710 :[FH]-) ac_tag=-:-;; 12711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12712 esac 12713 ac_save_IFS=$IFS 12714 IFS=: 12715 set x $ac_tag 12716 IFS=$ac_save_IFS 12717 shift 12718 ac_file=$1 12719 shift 12720 12721 case $ac_mode in 12722 :L) ac_source=$1;; 12723 :[FH]) 12724 ac_file_inputs= 12725 for ac_f 12726 do 12727 case $ac_f in 12728 -) ac_f="$ac_tmp/stdin";; 12729 *) # Look for the file first in the build tree, then in the source tree 12730 # (if the path is not absolute). The absolute path cannot be DOS-style, 12731 # because $ac_f cannot contain ':'. 12732 test -f "$ac_f" || 12733 case $ac_f in 12734 [\\/$]*) false;; 12735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12736 esac || 12737 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12738 esac 12739 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12740 as_fn_append ac_file_inputs " '$ac_f'" 12741 done 12742 12743 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12744 # use $as_me), people would be surprised to read: 12745 # /* config.h. Generated by config.status. */ 12746 configure_input='Generated from '` 12747 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12748 `' by configure.' 12749 if test x"$ac_file" != x-; then 12750 configure_input="$ac_file. $configure_input" 12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12752printf "%s\n" "$as_me: creating $ac_file" >&6;} 12753 fi 12754 # Neutralize special characters interpreted by sed in replacement strings. 12755 case $configure_input in #( 12756 *\&* | *\|* | *\\* ) 12757 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12758 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12759 *) ac_sed_conf_input=$configure_input;; 12760 esac 12761 12762 case $ac_tag in 12763 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12765 esac 12766 ;; 12767 esac 12768 12769 ac_dir=`$as_dirname -- "$ac_file" || 12770$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12771 X"$ac_file" : 'X\(//\)[^/]' \| \ 12772 X"$ac_file" : 'X\(//\)$' \| \ 12773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12774printf "%s\n" X"$ac_file" | 12775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12776 s//\1/ 12777 q 12778 } 12779 /^X\(\/\/\)[^/].*/{ 12780 s//\1/ 12781 q 12782 } 12783 /^X\(\/\/\)$/{ 12784 s//\1/ 12785 q 12786 } 12787 /^X\(\/\).*/{ 12788 s//\1/ 12789 q 12790 } 12791 s/.*/./; q'` 12792 as_dir="$ac_dir"; as_fn_mkdir_p 12793 ac_builddir=. 12794 12795case "$ac_dir" in 12796.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12797*) 12798 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12799 # A ".." for each directory in $ac_dir_suffix. 12800 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12801 case $ac_top_builddir_sub in 12802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12804 esac ;; 12805esac 12806ac_abs_top_builddir=$ac_pwd 12807ac_abs_builddir=$ac_pwd$ac_dir_suffix 12808# for backward compatibility: 12809ac_top_builddir=$ac_top_build_prefix 12810 12811case $srcdir in 12812 .) # We are building in place. 12813 ac_srcdir=. 12814 ac_top_srcdir=$ac_top_builddir_sub 12815 ac_abs_top_srcdir=$ac_pwd ;; 12816 [\\/]* | ?:[\\/]* ) # Absolute name. 12817 ac_srcdir=$srcdir$ac_dir_suffix; 12818 ac_top_srcdir=$srcdir 12819 ac_abs_top_srcdir=$srcdir ;; 12820 *) # Relative name. 12821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12822 ac_top_srcdir=$ac_top_build_prefix$srcdir 12823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12824esac 12825ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12826 12827 12828 case $ac_mode in 12829 :F) 12830 # 12831 # CONFIG_FILE 12832 # 12833 12834 case $INSTALL in 12835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12837 esac 12838 ac_MKDIR_P=$MKDIR_P 12839 case $MKDIR_P in 12840 [\\/$]* | ?:[\\/]* ) ;; 12841 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12842 esac 12843_ACEOF 12844 12845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12846# If the template does not know about datarootdir, expand it. 12847# FIXME: This hack should be removed a few years after 2.60. 12848ac_datarootdir_hack=; ac_datarootdir_seen= 12849ac_sed_dataroot=' 12850/datarootdir/ { 12851 p 12852 q 12853} 12854/@datadir@/p 12855/@docdir@/p 12856/@infodir@/p 12857/@localedir@/p 12858/@mandir@/p' 12859case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12860*datarootdir*) ac_datarootdir_seen=yes;; 12861*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12863printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12864_ACEOF 12865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12866 ac_datarootdir_hack=' 12867 s&@datadir@&$datadir&g 12868 s&@docdir@&$docdir&g 12869 s&@infodir@&$infodir&g 12870 s&@localedir@&$localedir&g 12871 s&@mandir@&$mandir&g 12872 s&\\\${datarootdir}&$datarootdir&g' ;; 12873esac 12874_ACEOF 12875 12876# Neutralize VPATH when '$srcdir' = '.'. 12877# Shell code in configure.ac might set extrasub. 12878# FIXME: do we really want to maintain this feature? 12879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12880ac_sed_extra="$ac_vpsub 12881$extrasub 12882_ACEOF 12883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12884:t 12885/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12886s|@configure_input@|$ac_sed_conf_input|;t t 12887s&@top_builddir@&$ac_top_builddir_sub&;t t 12888s&@top_build_prefix@&$ac_top_build_prefix&;t t 12889s&@srcdir@&$ac_srcdir&;t t 12890s&@abs_srcdir@&$ac_abs_srcdir&;t t 12891s&@top_srcdir@&$ac_top_srcdir&;t t 12892s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12893s&@builddir@&$ac_builddir&;t t 12894s&@abs_builddir@&$ac_abs_builddir&;t t 12895s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12896s&@INSTALL@&$ac_INSTALL&;t t 12897s&@MKDIR_P@&$ac_MKDIR_P&;t t 12898$ac_datarootdir_hack 12899" 12900eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12901 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12902 12903test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12904 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12905 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12906 "$ac_tmp/out"`; test -z "$ac_out"; } && 12907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12908which seems to be undefined. Please make sure it is defined" >&5 12909printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12910which seems to be undefined. Please make sure it is defined" >&2;} 12911 12912 rm -f "$ac_tmp/stdin" 12913 case $ac_file in 12914 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12915 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12916 esac \ 12917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12918 ;; 12919 :H) 12920 # 12921 # CONFIG_HEADER 12922 # 12923 if test x"$ac_file" != x-; then 12924 { 12925 printf "%s\n" "/* $configure_input */" >&1 \ 12926 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12927 } >"$ac_tmp/config.h" \ 12928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12929 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12931printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12932 else 12933 rm -f "$ac_file" 12934 mv "$ac_tmp/config.h" "$ac_file" \ 12935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12936 fi 12937 else 12938 printf "%s\n" "/* $configure_input */" >&1 \ 12939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12940 || as_fn_error $? "could not create -" "$LINENO" 5 12941 fi 12942# Compute "$ac_file"'s index in $config_headers. 12943_am_arg="$ac_file" 12944_am_stamp_count=1 12945for _am_header in $config_headers :; do 12946 case $_am_header in 12947 $_am_arg | $_am_arg:* ) 12948 break ;; 12949 * ) 12950 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12951 esac 12952done 12953echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12954$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12955 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12956 X"$_am_arg" : 'X\(//\)$' \| \ 12957 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12958printf "%s\n" X"$_am_arg" | 12959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12960 s//\1/ 12961 q 12962 } 12963 /^X\(\/\/\)[^/].*/{ 12964 s//\1/ 12965 q 12966 } 12967 /^X\(\/\/\)$/{ 12968 s//\1/ 12969 q 12970 } 12971 /^X\(\/\).*/{ 12972 s//\1/ 12973 q 12974 } 12975 s/.*/./; q'`/stamp-h$_am_stamp_count 12976 ;; 12977 12978 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12979printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12980 ;; 12981 esac 12982 12983 12984 case $ac_file$ac_mode in 12985 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12986 # Older Autoconf quotes --file arguments for eval, but not when files 12987 # are listed without --file. Let's play safe and only enable the eval 12988 # if we detect the quoting. 12989 # TODO: see whether this extra hack can be removed once we start 12990 # requiring Autoconf 2.70 or later. 12991 case $CONFIG_FILES in #( 12992 *\'*) : 12993 eval set x "$CONFIG_FILES" ;; #( 12994 *) : 12995 set x $CONFIG_FILES ;; #( 12996 *) : 12997 ;; 12998esac 12999 shift 13000 # Used to flag and report bootstrapping failures. 13001 am_rc=0 13002 for am_mf 13003 do 13004 # Strip MF so we end up with the name of the file. 13005 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13006 # Check whether this is an Automake generated Makefile which includes 13007 # dependency-tracking related rules and includes. 13008 # Grep'ing the whole file directly is not great: AIX grep has a line 13009 # limit of 2048, but all sed's we know have understand at least 4000. 13010 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13011 || continue 13012 am_dirpart=`$as_dirname -- "$am_mf" || 13013$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13014 X"$am_mf" : 'X\(//\)[^/]' \| \ 13015 X"$am_mf" : 'X\(//\)$' \| \ 13016 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13017printf "%s\n" X"$am_mf" | 13018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13019 s//\1/ 13020 q 13021 } 13022 /^X\(\/\/\)[^/].*/{ 13023 s//\1/ 13024 q 13025 } 13026 /^X\(\/\/\)$/{ 13027 s//\1/ 13028 q 13029 } 13030 /^X\(\/\).*/{ 13031 s//\1/ 13032 q 13033 } 13034 s/.*/./; q'` 13035 am_filepart=`$as_basename -- "$am_mf" || 13036$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13037 X"$am_mf" : 'X\(//\)$' \| \ 13038 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13039printf "%s\n" X/"$am_mf" | 13040 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13041 s//\1/ 13042 q 13043 } 13044 /^X\/\(\/\/\)$/{ 13045 s//\1/ 13046 q 13047 } 13048 /^X\/\(\/\).*/{ 13049 s//\1/ 13050 q 13051 } 13052 s/.*/./; q'` 13053 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13054 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13055 | $MAKE -f - am--depfiles" >&5 13056 (cd "$am_dirpart" \ 13057 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13058 | $MAKE -f - am--depfiles) >&5 2>&5 13059 ac_status=$? 13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13061 (exit $ac_status); } || am_rc=$? 13062 done 13063 if test $am_rc -ne 0; then 13064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13065printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13066as_fn_error $? "Something went wrong bootstrapping makefile fragments 13067 for automatic dependency tracking. If GNU make was not used, consider 13068 re-running the configure script with MAKE=\"gmake\" (or whatever is 13069 necessary). You can also try re-running configure with the 13070 '--disable-dependency-tracking' option to at least be able to build 13071 the package (albeit without support for automatic dependency tracking). 13072See 'config.log' for more details" "$LINENO" 5; } 13073 fi 13074 { am_dirpart=; unset am_dirpart;} 13075 { am_filepart=; unset am_filepart;} 13076 { am_mf=; unset am_mf;} 13077 { am_rc=; unset am_rc;} 13078 rm -f conftest-deps.mk 13079} 13080 ;; 13081 13082 esac 13083done # for ac_tag 13084 13085 13086as_fn_exit 0 13087_ACEOF 13088ac_clean_files=$ac_clean_files_save 13089 13090test $ac_write_fail = 0 || 13091 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13092 13093 13094# configure is writing to config.log, and then calls config.status. 13095# config.status does its own redirection, appending to config.log. 13096# Unfortunately, on DOS this fails, as config.log is still kept open 13097# by configure, so config.status won't be able to write to it; its 13098# output is simply discarded. So we exec the FD to /dev/null, 13099# effectively closing config.log, so it can be properly (re)opened and 13100# appended to by config.status. When coming back to configure, we 13101# need to make the FD available again. 13102if test "$no_create" != yes; then 13103 ac_cs_success=: 13104 ac_config_status_args= 13105 test "$silent" = yes && 13106 ac_config_status_args="$ac_config_status_args --quiet" 13107 exec 5>/dev/null 13108 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13109 exec 5>>config.log 13110 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13111 # would make configure fail if this is the last instruction. 13112 $ac_cs_success || as_fn_exit 1 13113fi 13114if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13116printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13117fi 13118 13119 13120