configure revision 8ffb90f1
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libxcb 1.15. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 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="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 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 \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libxcb/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libxcb' 624PACKAGE_TARNAME='libxcb' 625PACKAGE_VERSION='1.15' 626PACKAGE_STRING='libxcb 1.15' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcb/issues' 628PACKAGE_URL='' 629 630ac_unique_file="xcb.pc.in" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667XCB_SERVERSIDE_SUPPORT_FALSE 668XCB_SERVERSIDE_SUPPORT_TRUE 669LAUNCHD 670BUILD_XVMC_FALSE 671BUILD_XVMC_TRUE 672BUILD_XV_FALSE 673BUILD_XV_TRUE 674BUILD_XTEST_FALSE 675BUILD_XTEST_TRUE 676BUILD_SELINUX_FALSE 677BUILD_SELINUX_TRUE 678BUILD_XPRINT_FALSE 679BUILD_XPRINT_TRUE 680BUILD_XKB_FALSE 681BUILD_XKB_TRUE 682BUILD_XINPUT_FALSE 683BUILD_XINPUT_TRUE 684BUILD_XINERAMA_FALSE 685BUILD_XINERAMA_TRUE 686BUILD_XFREE86_DRI_FALSE 687BUILD_XFREE86_DRI_TRUE 688BUILD_XFIXES_FALSE 689BUILD_XFIXES_TRUE 690BUILD_XEVIE_FALSE 691BUILD_XEVIE_TRUE 692BUILD_SYNC_FALSE 693BUILD_SYNC_TRUE 694BUILD_SHM_FALSE 695BUILD_SHM_TRUE 696BUILD_SHAPE_FALSE 697BUILD_SHAPE_TRUE 698BUILD_SCREENSAVER_FALSE 699BUILD_SCREENSAVER_TRUE 700BUILD_RESOURCE_FALSE 701BUILD_RESOURCE_TRUE 702BUILD_RENDER_FALSE 703BUILD_RENDER_TRUE 704BUILD_RECORD_FALSE 705BUILD_RECORD_TRUE 706BUILD_RANDR_FALSE 707BUILD_RANDR_TRUE 708BUILD_PRESENT_FALSE 709BUILD_PRESENT_TRUE 710BUILD_GLX_FALSE 711BUILD_GLX_TRUE 712BUILD_GE_FALSE 713BUILD_GE_TRUE 714BUILD_DRI3_FALSE 715BUILD_DRI3_TRUE 716BUILD_DRI2_FALSE 717BUILD_DRI2_TRUE 718BUILD_DPMS_FALSE 719BUILD_DPMS_TRUE 720BUILD_DAMAGE_FALSE 721BUILD_DAMAGE_TRUE 722BUILD_COMPOSITE_FALSE 723BUILD_COMPOSITE_TRUE 724xcbincludedir 725XCB_HAVE_WIN32_FALSE 726XCB_HAVE_WIN32_TRUE 727lt_enable_auto_import 728XCBPROTO_XCBPYTHONDIR 729XCBPROTO_VERSION 730XCBPROTO_XCBINCLUDEDIR 731NEEDED 732XDMCP_LIBS 733XDMCP_CFLAGS 734NEEDED_LIBS 735NEEDED_CFLAGS 736XCBPROTO_LIBS 737XCBPROTO_CFLAGS 738HTML_CHECK_RESULT 739XSLTPROC 740HAVE_CHECK_FALSE 741HAVE_CHECK_TRUE 742CHECK_LIBS 743CHECK_CFLAGS 744HAVE_DOXYGEN_FALSE 745HAVE_DOXYGEN_TRUE 746HAVE_DOT_FALSE 747HAVE_DOT_TRUE 748HAVE_DOT 749DOT 750DOXYGEN 751ENABLE_DEVEL_DOCS_FALSE 752ENABLE_DEVEL_DOCS_TRUE 753MAN_SUBSTS 754XORG_MAN_PAGE 755ADMIN_MAN_DIR 756DRIVER_MAN_DIR 757MISC_MAN_DIR 758FILE_MAN_DIR 759LIB_MAN_DIR 760APP_MAN_DIR 761ADMIN_MAN_SUFFIX 762DRIVER_MAN_SUFFIX 763MISC_MAN_SUFFIX 764FILE_MAN_SUFFIX 765LIB_MAN_SUFFIX 766APP_MAN_SUFFIX 767INSTALL_CMD 768PKG_CONFIG_LIBDIR 769PKG_CONFIG_PATH 770PKG_CONFIG 771CHANGELOG_CMD 772STRICT_CFLAGS 773CWARNFLAGS 774BASE_CFLAGS 775LT_SYS_LIBRARY_PATH 776OTOOL64 777OTOOL 778LIPO 779NMEDIT 780DSYMUTIL 781MANIFEST_TOOL 782RANLIB 783ac_ct_AR 784AR 785LN_S 786NM 787ac_ct_DUMPBIN 788DUMPBIN 789LD 790FGREP 791EGREP 792GREP 793SED 794host_os 795host_vendor 796host_cpu 797host 798build_os 799build_vendor 800build_cpu 801build 802LIBTOOL 803OBJDUMP 804DLLTOOL 805AS 806am__fastdepCC_FALSE 807am__fastdepCC_TRUE 808CCDEPMODE 809am__nodep 810AMDEPBACKSLASH 811AMDEP_FALSE 812AMDEP_TRUE 813am__include 814DEPDIR 815OBJEXT 816EXEEXT 817ac_ct_CC 818CPPFLAGS 819LDFLAGS 820CFLAGS 821CC 822pkgpyexecdir 823pyexecdir 824pkgpythondir 825pythondir 826PYTHON_EXEC_PREFIX 827PYTHON_PREFIX 828PYTHON_PLATFORM 829PYTHON_VERSION 830PYTHON 831AM_BACKSLASH 832AM_DEFAULT_VERBOSITY 833AM_DEFAULT_V 834AM_V 835CSCOPE 836ETAGS 837CTAGS 838am__untar 839am__tar 840AMTAR 841am__leading_dot 842SET_MAKE 843AWK 844mkdir_p 845MKDIR_P 846INSTALL_STRIP_PROGRAM 847STRIP 848install_sh 849MAKEINFO 850AUTOHEADER 851AUTOMAKE 852AUTOCONF 853ACLOCAL 854VERSION 855PACKAGE 856CYGPATH_W 857am__isrc 858INSTALL_DATA 859INSTALL_SCRIPT 860INSTALL_PROGRAM 861target_alias 862host_alias 863build_alias 864LIBS 865ECHO_T 866ECHO_N 867ECHO_C 868DEFS 869mandir 870localedir 871libdir 872psdir 873pdfdir 874dvidir 875htmldir 876infodir 877docdir 878oldincludedir 879includedir 880runstatedir 881localstatedir 882sharedstatedir 883sysconfdir 884datadir 885datarootdir 886libexecdir 887sbindir 888bindir 889program_transform_name 890prefix 891exec_prefix 892PACKAGE_URL 893PACKAGE_BUGREPORT 894PACKAGE_STRING 895PACKAGE_VERSION 896PACKAGE_TARNAME 897PACKAGE_NAME 898PATH_SEPARATOR 899SHELL 900am__quote' 901ac_subst_files='' 902ac_user_opts=' 903enable_option_checking 904enable_silent_rules 905with_python_sys_prefix 906with_python_prefix 907with_python_exec_prefix 908enable_dependency_tracking 909enable_shared 910enable_static 911with_pic 912enable_fast_install 913with_aix_soname 914with_gnu_ld 915with_sysroot 916enable_libtool_lock 917enable_selective_werror 918enable_strict_compilation 919enable_devel_docs 920with_doxygen 921with_queue_size 922enable_composite 923enable_damage 924enable_dpms 925enable_dri2 926enable_dri3 927enable_ge 928enable_glx 929enable_present 930enable_randr 931enable_record 932enable_render 933enable_resource 934enable_screensaver 935enable_shape 936enable_shm 937enable_sync 938enable_xevie 939enable_xfixes 940enable_xfree86_dri 941enable_xinerama 942enable_xinput 943enable_xkb 944enable_xprint 945enable_selinux 946enable_xtest 947enable_xv 948enable_xvmc 949with_launchd 950with_serverside_support 951' 952 ac_precious_vars='build_alias 953host_alias 954target_alias 955PYTHON 956CC 957CFLAGS 958LDFLAGS 959LIBS 960CPPFLAGS 961LT_SYS_LIBRARY_PATH 962PKG_CONFIG 963PKG_CONFIG_PATH 964PKG_CONFIG_LIBDIR 965DOXYGEN 966DOT 967CHECK_CFLAGS 968CHECK_LIBS 969XCBPROTO_CFLAGS 970XCBPROTO_LIBS 971NEEDED_CFLAGS 972NEEDED_LIBS 973XDMCP_CFLAGS 974XDMCP_LIBS' 975 976 977# Initialize some variables set by options. 978ac_init_help= 979ac_init_version=false 980ac_unrecognized_opts= 981ac_unrecognized_sep= 982# The variables have the same names as the options, with 983# dashes changed to underlines. 984cache_file=/dev/null 985exec_prefix=NONE 986no_create= 987no_recursion= 988prefix=NONE 989program_prefix=NONE 990program_suffix=NONE 991program_transform_name=s,x,x, 992silent= 993site= 994srcdir= 995verbose= 996x_includes=NONE 997x_libraries=NONE 998 999# Installation directory options. 1000# These are left unexpanded so users can "make install exec_prefix=/foo" 1001# and all the variables that are supposed to be based on exec_prefix 1002# by default will actually change. 1003# Use braces instead of parens because sh, perl, etc. also accept them. 1004# (The list follows the same order as the GNU Coding Standards.) 1005bindir='${exec_prefix}/bin' 1006sbindir='${exec_prefix}/sbin' 1007libexecdir='${exec_prefix}/libexec' 1008datarootdir='${prefix}/share' 1009datadir='${datarootdir}' 1010sysconfdir='${prefix}/etc' 1011sharedstatedir='${prefix}/com' 1012localstatedir='${prefix}/var' 1013runstatedir='${localstatedir}/run' 1014includedir='${prefix}/include' 1015oldincludedir='/usr/include' 1016docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1017infodir='${datarootdir}/info' 1018htmldir='${docdir}' 1019dvidir='${docdir}' 1020pdfdir='${docdir}' 1021psdir='${docdir}' 1022libdir='${exec_prefix}/lib' 1023localedir='${datarootdir}/locale' 1024mandir='${datarootdir}/man' 1025 1026ac_prev= 1027ac_dashdash= 1028for ac_option 1029do 1030 # If the previous option needs an argument, assign it. 1031 if test -n "$ac_prev"; then 1032 eval $ac_prev=\$ac_option 1033 ac_prev= 1034 continue 1035 fi 1036 1037 case $ac_option in 1038 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1039 *=) ac_optarg= ;; 1040 *) ac_optarg=yes ;; 1041 esac 1042 1043 case $ac_dashdash$ac_option in 1044 --) 1045 ac_dashdash=yes ;; 1046 1047 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1048 ac_prev=bindir ;; 1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1050 bindir=$ac_optarg ;; 1051 1052 -build | --build | --buil | --bui | --bu) 1053 ac_prev=build_alias ;; 1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1055 build_alias=$ac_optarg ;; 1056 1057 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1059 ac_prev=cache_file ;; 1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1062 cache_file=$ac_optarg ;; 1063 1064 --config-cache | -C) 1065 cache_file=config.cache ;; 1066 1067 -datadir | --datadir | --datadi | --datad) 1068 ac_prev=datadir ;; 1069 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1070 datadir=$ac_optarg ;; 1071 1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1073 | --dataroo | --dataro | --datar) 1074 ac_prev=datarootdir ;; 1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1077 datarootdir=$ac_optarg ;; 1078 1079 -disable-* | --disable-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1084 ac_useropt_orig=$ac_useropt 1085 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1086 case $ac_user_opts in 1087 *" 1088"enable_$ac_useropt" 1089"*) ;; 1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1091 ac_unrecognized_sep=', ';; 1092 esac 1093 eval enable_$ac_useropt=no ;; 1094 1095 -docdir | --docdir | --docdi | --doc | --do) 1096 ac_prev=docdir ;; 1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1098 docdir=$ac_optarg ;; 1099 1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1101 ac_prev=dvidir ;; 1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1103 dvidir=$ac_optarg ;; 1104 1105 -enable-* | --enable-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"enable_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval enable_$ac_useropt=\$ac_optarg ;; 1120 1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1123 | --exec | --exe | --ex) 1124 ac_prev=exec_prefix ;; 1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1127 | --exec=* | --exe=* | --ex=*) 1128 exec_prefix=$ac_optarg ;; 1129 1130 -gas | --gas | --ga | --g) 1131 # Obsolete; use --with-gas. 1132 with_gas=yes ;; 1133 1134 -help | --help | --hel | --he | -h) 1135 ac_init_help=long ;; 1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1137 ac_init_help=recursive ;; 1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1139 ac_init_help=short ;; 1140 1141 -host | --host | --hos | --ho) 1142 ac_prev=host_alias ;; 1143 -host=* | --host=* | --hos=* | --ho=*) 1144 host_alias=$ac_optarg ;; 1145 1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1147 ac_prev=htmldir ;; 1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1149 | --ht=*) 1150 htmldir=$ac_optarg ;; 1151 1152 -includedir | --includedir | --includedi | --included | --include \ 1153 | --includ | --inclu | --incl | --inc) 1154 ac_prev=includedir ;; 1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1156 | --includ=* | --inclu=* | --incl=* | --inc=*) 1157 includedir=$ac_optarg ;; 1158 1159 -infodir | --infodir | --infodi | --infod | --info | --inf) 1160 ac_prev=infodir ;; 1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1162 infodir=$ac_optarg ;; 1163 1164 -libdir | --libdir | --libdi | --libd) 1165 ac_prev=libdir ;; 1166 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1167 libdir=$ac_optarg ;; 1168 1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1170 | --libexe | --libex | --libe) 1171 ac_prev=libexecdir ;; 1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1173 | --libexe=* | --libex=* | --libe=*) 1174 libexecdir=$ac_optarg ;; 1175 1176 -localedir | --localedir | --localedi | --localed | --locale) 1177 ac_prev=localedir ;; 1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1179 localedir=$ac_optarg ;; 1180 1181 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1182 | --localstate | --localstat | --localsta | --localst | --locals) 1183 ac_prev=localstatedir ;; 1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1186 localstatedir=$ac_optarg ;; 1187 1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1189 ac_prev=mandir ;; 1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1191 mandir=$ac_optarg ;; 1192 1193 -nfp | --nfp | --nf) 1194 # Obsolete; use --without-fp. 1195 with_fp=no ;; 1196 1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1198 | --no-cr | --no-c | -n) 1199 no_create=yes ;; 1200 1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1203 no_recursion=yes ;; 1204 1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1207 | --oldin | --oldi | --old | --ol | --o) 1208 ac_prev=oldincludedir ;; 1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1212 oldincludedir=$ac_optarg ;; 1213 1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1215 ac_prev=prefix ;; 1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1217 prefix=$ac_optarg ;; 1218 1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1220 | --program-pre | --program-pr | --program-p) 1221 ac_prev=program_prefix ;; 1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1224 program_prefix=$ac_optarg ;; 1225 1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1227 | --program-suf | --program-su | --program-s) 1228 ac_prev=program_suffix ;; 1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1231 program_suffix=$ac_optarg ;; 1232 1233 -program-transform-name | --program-transform-name \ 1234 | --program-transform-nam | --program-transform-na \ 1235 | --program-transform-n | --program-transform- \ 1236 | --program-transform | --program-transfor \ 1237 | --program-transfo | --program-transf \ 1238 | --program-trans | --program-tran \ 1239 | --progr-tra | --program-tr | --program-t) 1240 ac_prev=program_transform_name ;; 1241 -program-transform-name=* | --program-transform-name=* \ 1242 | --program-transform-nam=* | --program-transform-na=* \ 1243 | --program-transform-n=* | --program-transform-=* \ 1244 | --program-transform=* | --program-transfor=* \ 1245 | --program-transfo=* | --program-transf=* \ 1246 | --program-trans=* | --program-tran=* \ 1247 | --progr-tra=* | --program-tr=* | --program-t=*) 1248 program_transform_name=$ac_optarg ;; 1249 1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1251 ac_prev=pdfdir ;; 1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1253 pdfdir=$ac_optarg ;; 1254 1255 -psdir | --psdir | --psdi | --psd | --ps) 1256 ac_prev=psdir ;; 1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1258 psdir=$ac_optarg ;; 1259 1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1261 | -silent | --silent | --silen | --sile | --sil) 1262 silent=yes ;; 1263 1264 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1265 | --runstate | --runstat | --runsta | --runst | --runs \ 1266 | --run | --ru | --r) 1267 ac_prev=runstatedir ;; 1268 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1269 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1270 | --run=* | --ru=* | --r=*) 1271 runstatedir=$ac_optarg ;; 1272 1273 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1274 ac_prev=sbindir ;; 1275 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1276 | --sbi=* | --sb=*) 1277 sbindir=$ac_optarg ;; 1278 1279 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1280 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1281 | --sharedst | --shareds | --shared | --share | --shar \ 1282 | --sha | --sh) 1283 ac_prev=sharedstatedir ;; 1284 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1285 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1286 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1287 | --sha=* | --sh=*) 1288 sharedstatedir=$ac_optarg ;; 1289 1290 -site | --site | --sit) 1291 ac_prev=site ;; 1292 -site=* | --site=* | --sit=*) 1293 site=$ac_optarg ;; 1294 1295 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1296 ac_prev=srcdir ;; 1297 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1298 srcdir=$ac_optarg ;; 1299 1300 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1301 | --syscon | --sysco | --sysc | --sys | --sy) 1302 ac_prev=sysconfdir ;; 1303 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1304 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1305 sysconfdir=$ac_optarg ;; 1306 1307 -target | --target | --targe | --targ | --tar | --ta | --t) 1308 ac_prev=target_alias ;; 1309 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1310 target_alias=$ac_optarg ;; 1311 1312 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1313 verbose=yes ;; 1314 1315 -version | --version | --versio | --versi | --vers | -V) 1316 ac_init_version=: ;; 1317 1318 -with-* | --with-*) 1319 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1320 # Reject names that are not valid shell variable names. 1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322 as_fn_error $? "invalid package name: \`$ac_useropt'" 1323 ac_useropt_orig=$ac_useropt 1324 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1325 case $ac_user_opts in 1326 *" 1327"with_$ac_useropt" 1328"*) ;; 1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1330 ac_unrecognized_sep=', ';; 1331 esac 1332 eval with_$ac_useropt=\$ac_optarg ;; 1333 1334 -without-* | --without-*) 1335 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1336 # Reject names that are not valid shell variable names. 1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1338 as_fn_error $? "invalid package name: \`$ac_useropt'" 1339 ac_useropt_orig=$ac_useropt 1340 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1341 case $ac_user_opts in 1342 *" 1343"with_$ac_useropt" 1344"*) ;; 1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1346 ac_unrecognized_sep=', ';; 1347 esac 1348 eval with_$ac_useropt=no ;; 1349 1350 --x) 1351 # Obsolete; use --with-x. 1352 with_x=yes ;; 1353 1354 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1355 | --x-incl | --x-inc | --x-in | --x-i) 1356 ac_prev=x_includes ;; 1357 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1358 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1359 x_includes=$ac_optarg ;; 1360 1361 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1362 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1363 ac_prev=x_libraries ;; 1364 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1365 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1366 x_libraries=$ac_optarg ;; 1367 1368 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1369Try \`$0 --help' for more information" 1370 ;; 1371 1372 *=*) 1373 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1374 # Reject names that are not valid shell variable names. 1375 case $ac_envvar in #( 1376 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1377 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1378 esac 1379 eval $ac_envvar=\$ac_optarg 1380 export $ac_envvar ;; 1381 1382 *) 1383 # FIXME: should be removed in autoconf 3.0. 1384 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1385 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1386 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1387 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1388 ;; 1389 1390 esac 1391done 1392 1393if test -n "$ac_prev"; then 1394 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1395 as_fn_error $? "missing argument to $ac_option" 1396fi 1397 1398if test -n "$ac_unrecognized_opts"; then 1399 case $enable_option_checking in 1400 no) ;; 1401 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1402 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1403 esac 1404fi 1405 1406# Check all directory arguments for consistency. 1407for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1408 datadir sysconfdir sharedstatedir localstatedir includedir \ 1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1410 libdir localedir mandir runstatedir 1411do 1412 eval ac_val=\$$ac_var 1413 # Remove trailing slashes. 1414 case $ac_val in 1415 */ ) 1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1417 eval $ac_var=\$ac_val;; 1418 esac 1419 # Be sure to have absolute directory names. 1420 case $ac_val in 1421 [\\/$]* | ?:[\\/]* ) continue;; 1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1423 esac 1424 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1425done 1426 1427# There might be people who depend on the old broken behavior: `$host' 1428# used to hold the argument of --host etc. 1429# FIXME: To remove some day. 1430build=$build_alias 1431host=$host_alias 1432target=$target_alias 1433 1434# FIXME: To remove some day. 1435if test "x$host_alias" != x; then 1436 if test "x$build_alias" = x; then 1437 cross_compiling=maybe 1438 elif test "x$build_alias" != "x$host_alias"; then 1439 cross_compiling=yes 1440 fi 1441fi 1442 1443ac_tool_prefix= 1444test -n "$host_alias" && ac_tool_prefix=$host_alias- 1445 1446test "$silent" = yes && exec 6>/dev/null 1447 1448 1449ac_pwd=`pwd` && test -n "$ac_pwd" && 1450ac_ls_di=`ls -di .` && 1451ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1452 as_fn_error $? "working directory cannot be determined" 1453test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1454 as_fn_error $? "pwd does not report name of working directory" 1455 1456 1457# Find the source files, if location was not specified. 1458if test -z "$srcdir"; then 1459 ac_srcdir_defaulted=yes 1460 # Try the directory containing this script, then the parent directory. 1461 ac_confdir=`$as_dirname -- "$as_myself" || 1462$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1463 X"$as_myself" : 'X\(//\)[^/]' \| \ 1464 X"$as_myself" : 'X\(//\)$' \| \ 1465 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1466printf "%s\n" X"$as_myself" | 1467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1468 s//\1/ 1469 q 1470 } 1471 /^X\(\/\/\)[^/].*/{ 1472 s//\1/ 1473 q 1474 } 1475 /^X\(\/\/\)$/{ 1476 s//\1/ 1477 q 1478 } 1479 /^X\(\/\).*/{ 1480 s//\1/ 1481 q 1482 } 1483 s/.*/./; q'` 1484 srcdir=$ac_confdir 1485 if test ! -r "$srcdir/$ac_unique_file"; then 1486 srcdir=.. 1487 fi 1488else 1489 ac_srcdir_defaulted=no 1490fi 1491if test ! -r "$srcdir/$ac_unique_file"; then 1492 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1493 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1494fi 1495ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1496ac_abs_confdir=`( 1497 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1498 pwd)` 1499# When building in place, set srcdir=. 1500if test "$ac_abs_confdir" = "$ac_pwd"; then 1501 srcdir=. 1502fi 1503# Remove unnecessary trailing slashes from srcdir. 1504# Double slashes in file names in object file debugging info 1505# mess up M-x gdb in Emacs. 1506case $srcdir in 1507*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1508esac 1509for ac_var in $ac_precious_vars; do 1510 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1511 eval ac_env_${ac_var}_value=\$${ac_var} 1512 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1513 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1514done 1515 1516# 1517# Report the --help message. 1518# 1519if test "$ac_init_help" = "long"; then 1520 # Omit some internal or obsolete options to make the list less imposing. 1521 # This message is too long to be a string in the A/UX 3.1 sh. 1522 cat <<_ACEOF 1523\`configure' configures libxcb 1.15 to adapt to many kinds of systems. 1524 1525Usage: $0 [OPTION]... [VAR=VALUE]... 1526 1527To assign environment variables (e.g., CC, CFLAGS...), specify them as 1528VAR=VALUE. See below for descriptions of some of the useful variables. 1529 1530Defaults for the options are specified in brackets. 1531 1532Configuration: 1533 -h, --help display this help and exit 1534 --help=short display options specific to this package 1535 --help=recursive display the short help of all the included packages 1536 -V, --version display version information and exit 1537 -q, --quiet, --silent do not print \`checking ...' messages 1538 --cache-file=FILE cache test results in FILE [disabled] 1539 -C, --config-cache alias for \`--cache-file=config.cache' 1540 -n, --no-create do not create output files 1541 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1542 1543Installation directories: 1544 --prefix=PREFIX install architecture-independent files in PREFIX 1545 [$ac_default_prefix] 1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1547 [PREFIX] 1548 1549By default, \`make install' will install all the files in 1550\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1551an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1552for instance \`--prefix=\$HOME'. 1553 1554For better control, use the options below. 1555 1556Fine tuning of the installation directories: 1557 --bindir=DIR user executables [EPREFIX/bin] 1558 --sbindir=DIR system admin executables [EPREFIX/sbin] 1559 --libexecdir=DIR program executables [EPREFIX/libexec] 1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1563 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1564 --libdir=DIR object code libraries [EPREFIX/lib] 1565 --includedir=DIR C header files [PREFIX/include] 1566 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1569 --infodir=DIR info documentation [DATAROOTDIR/info] 1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1571 --mandir=DIR man documentation [DATAROOTDIR/man] 1572 --docdir=DIR documentation root [DATAROOTDIR/doc/libxcb] 1573 --htmldir=DIR html documentation [DOCDIR] 1574 --dvidir=DIR dvi documentation [DOCDIR] 1575 --pdfdir=DIR pdf documentation [DOCDIR] 1576 --psdir=DIR ps documentation [DOCDIR] 1577_ACEOF 1578 1579 cat <<\_ACEOF 1580 1581Program names: 1582 --program-prefix=PREFIX prepend PREFIX to installed program names 1583 --program-suffix=SUFFIX append SUFFIX to installed program names 1584 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1585 1586System types: 1587 --build=BUILD configure for building on BUILD [guessed] 1588 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1589_ACEOF 1590fi 1591 1592if test -n "$ac_init_help"; then 1593 case $ac_init_help in 1594 short | recursive ) echo "Configuration of libxcb 1.15:";; 1595 esac 1596 cat <<\_ACEOF 1597 1598Optional Features: 1599 --disable-option-checking ignore unrecognized --enable/--with options 1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1602 --enable-silent-rules less verbose build output (undo: "make V=1") 1603 --disable-silent-rules verbose build output (undo: "make V=0") 1604 --enable-dependency-tracking 1605 do not reject slow dependency extractors 1606 --disable-dependency-tracking 1607 speeds up one-time build 1608 --enable-shared[=PKGS] build shared libraries [default=yes] 1609 --enable-static[=PKGS] build static libraries [default=yes] 1610 --enable-fast-install[=PKGS] 1611 optimize for fast installation [default=yes] 1612 --disable-libtool-lock avoid locking (might break parallel builds) 1613 --disable-selective-werror 1614 Turn off selective compiler errors. (default: 1615 enabled) 1616 --enable-strict-compilation 1617 Enable all warnings from compiler and make them 1618 errors (default: disabled) 1619 --enable-devel-docs Enable building the developer documentation 1620 (default: yes) 1621 --enable-composite Build XCB Composite Extension (default: yes) 1622 --enable-damage Build XCB Damage Extension (default: yes) 1623 --enable-dpms Build XCB DPMS Extension (default: yes) 1624 --enable-dri2 Build XCB DRI2 Extension (default: yes) 1625 --enable-dri3 Build XCB DRI3 Extension (default: auto) 1626 --enable-ge Build XCB GE Extension (default: no) 1627 --enable-glx Build XCB GLX Extension (default: yes) 1628 --enable-present Build XCB Present Extension (default: yes) 1629 --enable-randr Build XCB RandR Extension (default: yes) 1630 --enable-record Build XCB Record Extension (default: yes) 1631 --enable-render Build XCB Render Extension (default: yes) 1632 --enable-resource Build XCB Resource Extension (default: yes) 1633 --enable-screensaver Build XCB Screensaver Extension (default: yes) 1634 --enable-shape Build XCB Shape Extension (default: yes) 1635 --enable-shm Build XCB Shm Extension (default: yes) 1636 --enable-sync Build XCB Sync Extension (default: yes) 1637 --enable-xevie Build XCB Xevie Extension (default: no) 1638 --enable-xfixes Build XCB XFixes Extension (default: yes) 1639 --enable-xfree86-dri Build XCB XFree86-DRI Extension (default: yes) 1640 --enable-xinerama Build XCB Xinerama Extension (default: yes) 1641 --enable-xinput Build XCB XInput Extension (default: yes) 1642 --enable-xkb Build XCB XKB Extension (default: yes) 1643 --enable-xprint Build XCB Xprint Extension (default: no) 1644 --enable-selinux Build XCB SELinux Extension (default: no) 1645 --enable-xtest Build XCB XTest Extension (default: yes) 1646 --enable-xv Build XCB Xv Extension (default: yes) 1647 --enable-xvmc Build XCB XvMC Extension (default: yes) 1648 1649Optional Packages: 1650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1652 --with-python-sys-prefix 1653 use Python's sys.prefix and sys.exec_prefix values 1654 --with-python_prefix override the default PYTHON_PREFIX 1655 --with-python_exec_prefix 1656 override the default PYTHON_EXEC_PREFIX 1657 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1658 both] 1659 --with-aix-soname=aix|svr4|both 1660 shared library versioning (aka "SONAME") variant to 1661 provide on AIX, [default=aix]. 1662 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1663 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1664 compiler's sysroot if not specified). 1665 --with-doxygen Use doxygen to regenerate documentation (default: 1666 auto) 1667 --with-queue-size=SIZE Set the XCB buffer queue size (default is 16384) 1668 --with-launchd Build with support for Apple's launchd (default: 1669 auto) 1670 --with-serverside-support 1671 Build with support for server-side usage of xcb. 1672 This is still EXPERIMENTAL! ABI/API may change! 1673 (default: no) 1674 1675Some influential environment variables: 1676 PYTHON the Python interpreter 1677 CC C compiler command 1678 CFLAGS C compiler flags 1679 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1680 nonstandard directory <lib dir> 1681 LIBS libraries to pass to the linker, e.g. -l<library> 1682 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1683 you have headers in a nonstandard directory <include dir> 1684 LT_SYS_LIBRARY_PATH 1685 User-defined run-time library search path. 1686 PKG_CONFIG path to pkg-config utility 1687 PKG_CONFIG_PATH 1688 directories to add to pkg-config's search path 1689 PKG_CONFIG_LIBDIR 1690 path overriding pkg-config's built-in search path 1691 DOXYGEN Path to doxygen command 1692 DOT Path to the dot graphics utility 1693 CHECK_CFLAGS 1694 C compiler flags for CHECK, overriding pkg-config 1695 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1696 XCBPROTO_CFLAGS 1697 C compiler flags for XCBPROTO, overriding pkg-config 1698 XCBPROTO_LIBS 1699 linker flags for XCBPROTO, overriding pkg-config 1700 NEEDED_CFLAGS 1701 C compiler flags for NEEDED, overriding pkg-config 1702 NEEDED_LIBS linker flags for NEEDED, overriding pkg-config 1703 XDMCP_CFLAGS 1704 C compiler flags for XDMCP, overriding pkg-config 1705 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1706 1707Use these variables to override the choices made by `configure' or to help 1708it to find libraries and programs with nonstandard names/locations. 1709 1710Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/issues>. 1711_ACEOF 1712ac_status=$? 1713fi 1714 1715if test "$ac_init_help" = "recursive"; then 1716 # If there are subdirs, report their specific --help. 1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1718 test -d "$ac_dir" || 1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1720 continue 1721 ac_builddir=. 1722 1723case "$ac_dir" in 1724.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1725*) 1726 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1727 # A ".." for each directory in $ac_dir_suffix. 1728 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1729 case $ac_top_builddir_sub in 1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1732 esac ;; 1733esac 1734ac_abs_top_builddir=$ac_pwd 1735ac_abs_builddir=$ac_pwd$ac_dir_suffix 1736# for backward compatibility: 1737ac_top_builddir=$ac_top_build_prefix 1738 1739case $srcdir in 1740 .) # We are building in place. 1741 ac_srcdir=. 1742 ac_top_srcdir=$ac_top_builddir_sub 1743 ac_abs_top_srcdir=$ac_pwd ;; 1744 [\\/]* | ?:[\\/]* ) # Absolute name. 1745 ac_srcdir=$srcdir$ac_dir_suffix; 1746 ac_top_srcdir=$srcdir 1747 ac_abs_top_srcdir=$srcdir ;; 1748 *) # Relative name. 1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1750 ac_top_srcdir=$ac_top_build_prefix$srcdir 1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1752esac 1753ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1754 1755 cd "$ac_dir" || { ac_status=$?; continue; } 1756 # Check for configure.gnu first; this name is used for a wrapper for 1757 # Metaconfig's "Configure" on case-insensitive file systems. 1758 if test -f "$ac_srcdir/configure.gnu"; then 1759 echo && 1760 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1761 elif test -f "$ac_srcdir/configure"; then 1762 echo && 1763 $SHELL "$ac_srcdir/configure" --help=recursive 1764 else 1765 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1766 fi || ac_status=$? 1767 cd "$ac_pwd" || { ac_status=$?; break; } 1768 done 1769fi 1770 1771test -n "$ac_init_help" && exit $ac_status 1772if $ac_init_version; then 1773 cat <<\_ACEOF 1774libxcb configure 1.15 1775generated by GNU Autoconf 2.71 1776 1777Copyright (C) 2021 Free Software Foundation, Inc. 1778This configure script is free software; the Free Software Foundation 1779gives unlimited permission to copy, distribute and modify it. 1780_ACEOF 1781 exit 1782fi 1783 1784## ------------------------ ## 1785## Autoconf initialization. ## 1786## ------------------------ ## 1787 1788# ac_fn_c_try_compile LINENO 1789# -------------------------- 1790# Try to compile conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_compile () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 rm -f conftest.$ac_objext conftest.beam 1795 if { { ac_try="$ac_compile" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801printf "%s\n" "$ac_try_echo"; } >&5 1802 (eval "$ac_compile") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { 1811 test -z "$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 } && test -s conftest.$ac_objext 1814then : 1815 ac_retval=0 1816else $as_nop 1817 printf "%s\n" "$as_me: failed program was:" >&5 1818sed 's/^/| /' conftest.$ac_ext >&5 1819 1820 ac_retval=1 1821fi 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 as_fn_set_status $ac_retval 1824 1825} # ac_fn_c_try_compile 1826 1827# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1828# ------------------------------------------------------- 1829# Tests whether HEADER exists and can be compiled using the include files in 1830# INCLUDES, setting the cache variable VAR accordingly. 1831ac_fn_c_check_header_compile () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835printf %s "checking for $2... " >&6; } 1836if eval test \${$3+y} 1837then : 1838 printf %s "(cached) " >&6 1839else $as_nop 1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1841/* end confdefs.h. */ 1842$4 1843#include <$2> 1844_ACEOF 1845if ac_fn_c_try_compile "$LINENO" 1846then : 1847 eval "$3=yes" 1848else $as_nop 1849 eval "$3=no" 1850fi 1851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1852fi 1853eval ac_res=\$$3 1854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1855printf "%s\n" "$ac_res" >&6; } 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 1858} # ac_fn_c_check_header_compile 1859 1860# ac_fn_c_try_link LINENO 1861# ----------------------- 1862# Try to link conftest.$ac_ext, and return whether this succeeded. 1863ac_fn_c_try_link () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1867 if { { ac_try="$ac_link" 1868case "(($ac_try" in 1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1870 *) ac_try_echo=$ac_try;; 1871esac 1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1873printf "%s\n" "$ac_try_echo"; } >&5 1874 (eval "$ac_link") 2>conftest.err 1875 ac_status=$? 1876 if test -s conftest.err; then 1877 grep -v '^ *+' conftest.err >conftest.er1 1878 cat conftest.er1 >&5 1879 mv -f conftest.er1 conftest.err 1880 fi 1881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1882 test $ac_status = 0; } && { 1883 test -z "$ac_c_werror_flag" || 1884 test ! -s conftest.err 1885 } && test -s conftest$ac_exeext && { 1886 test "$cross_compiling" = yes || 1887 test -x conftest$ac_exeext 1888 } 1889then : 1890 ac_retval=0 1891else $as_nop 1892 printf "%s\n" "$as_me: failed program was:" >&5 1893sed 's/^/| /' conftest.$ac_ext >&5 1894 1895 ac_retval=1 1896fi 1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1899 # interfere with the next link command; also delete a directory that is 1900 # left behind by Apple's compiler. We do this before executing the actions. 1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905} # ac_fn_c_try_link 1906 1907# ac_fn_c_check_func LINENO FUNC VAR 1908# ---------------------------------- 1909# Tests whether FUNC exists, setting the cache variable VAR accordingly 1910ac_fn_c_check_func () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1914printf %s "checking for $2... " >&6; } 1915if eval test \${$3+y} 1916then : 1917 printf %s "(cached) " >&6 1918else $as_nop 1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1920/* end confdefs.h. */ 1921/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1922 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1923#define $2 innocuous_$2 1924 1925/* System header to define __stub macros and hopefully few prototypes, 1926 which can conflict with char $2 (); below. */ 1927 1928#include <limits.h> 1929#undef $2 1930 1931/* Override any GCC internal prototype to avoid an error. 1932 Use char because int might match the return type of a GCC 1933 builtin and then its argument prototype would still apply. */ 1934#ifdef __cplusplus 1935extern "C" 1936#endif 1937char $2 (); 1938/* The GNU C library defines this for functions which it implements 1939 to always fail with ENOSYS. Some functions are actually named 1940 something starting with __ and the normal name is an alias. */ 1941#if defined __stub_$2 || defined __stub___$2 1942choke me 1943#endif 1944 1945int 1946main (void) 1947{ 1948return $2 (); 1949 ; 1950 return 0; 1951} 1952_ACEOF 1953if ac_fn_c_try_link "$LINENO" 1954then : 1955 eval "$3=yes" 1956else $as_nop 1957 eval "$3=no" 1958fi 1959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1960 conftest$ac_exeext conftest.$ac_ext 1961fi 1962eval ac_res=\$$3 1963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1964printf "%s\n" "$ac_res" >&6; } 1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1966 1967} # ac_fn_c_check_func 1968 1969# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1970# ------------------------------------------------------------------ 1971# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1972# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1973ac_fn_check_decl () 1974{ 1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1976 as_decl_name=`echo $2|sed 's/ *(.*//'` 1977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1978printf %s "checking whether $as_decl_name is declared... " >&6; } 1979if eval test \${$3+y} 1980then : 1981 printf %s "(cached) " >&6 1982else $as_nop 1983 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1984 eval ac_save_FLAGS=\$$6 1985 as_fn_append $6 " $5" 1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1987/* end confdefs.h. */ 1988$4 1989int 1990main (void) 1991{ 1992#ifndef $as_decl_name 1993#ifdef __cplusplus 1994 (void) $as_decl_use; 1995#else 1996 (void) $as_decl_name; 1997#endif 1998#endif 1999 2000 ; 2001 return 0; 2002} 2003_ACEOF 2004if ac_fn_c_try_compile "$LINENO" 2005then : 2006 eval "$3=yes" 2007else $as_nop 2008 eval "$3=no" 2009fi 2010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2011 eval $6=\$ac_save_FLAGS 2012 2013fi 2014eval ac_res=\$$3 2015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2016printf "%s\n" "$ac_res" >&6; } 2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2018 2019} # ac_fn_check_decl 2020 2021# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2022# ---------------------------------------------------- 2023# Tries to find if the field MEMBER exists in type AGGR, after including 2024# INCLUDES, setting cache variable VAR accordingly. 2025ac_fn_c_check_member () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2029printf %s "checking for $2.$3... " >&6; } 2030if eval test \${$4+y} 2031then : 2032 printf %s "(cached) " >&6 2033else $as_nop 2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2035/* end confdefs.h. */ 2036$5 2037int 2038main (void) 2039{ 2040static $2 ac_aggr; 2041if (ac_aggr.$3) 2042return 0; 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO" 2048then : 2049 eval "$4=yes" 2050else $as_nop 2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052/* end confdefs.h. */ 2053$5 2054int 2055main (void) 2056{ 2057static $2 ac_aggr; 2058if (sizeof ac_aggr.$3) 2059return 0; 2060 ; 2061 return 0; 2062} 2063_ACEOF 2064if ac_fn_c_try_compile "$LINENO" 2065then : 2066 eval "$4=yes" 2067else $as_nop 2068 eval "$4=no" 2069fi 2070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2071fi 2072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2073fi 2074eval ac_res=\$$4 2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2076printf "%s\n" "$ac_res" >&6; } 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2078 2079} # ac_fn_c_check_member 2080ac_configure_args_raw= 2081for ac_arg 2082do 2083 case $ac_arg in 2084 *\'*) 2085 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2086 esac 2087 as_fn_append ac_configure_args_raw " '$ac_arg'" 2088done 2089 2090case $ac_configure_args_raw in 2091 *$as_nl*) 2092 ac_safe_unquote= ;; 2093 *) 2094 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2095 ac_unsafe_a="$ac_unsafe_z#~" 2096 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2097 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2098esac 2099 2100cat >config.log <<_ACEOF 2101This file contains any messages produced by compilers while 2102running configure, to aid debugging if configure makes a mistake. 2103 2104It was created by libxcb $as_me 1.15, which was 2105generated by GNU Autoconf 2.71. Invocation command line was 2106 2107 $ $0$ac_configure_args_raw 2108 2109_ACEOF 2110exec 5>>config.log 2111{ 2112cat <<_ASUNAME 2113## --------- ## 2114## Platform. ## 2115## --------- ## 2116 2117hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2118uname -m = `(uname -m) 2>/dev/null || echo unknown` 2119uname -r = `(uname -r) 2>/dev/null || echo unknown` 2120uname -s = `(uname -s) 2>/dev/null || echo unknown` 2121uname -v = `(uname -v) 2>/dev/null || echo unknown` 2122 2123/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2124/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2125 2126/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2127/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2128/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2129/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2130/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2131/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2132/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2133 2134_ASUNAME 2135 2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2137for as_dir in $PATH 2138do 2139 IFS=$as_save_IFS 2140 case $as_dir in #((( 2141 '') as_dir=./ ;; 2142 */) ;; 2143 *) as_dir=$as_dir/ ;; 2144 esac 2145 printf "%s\n" "PATH: $as_dir" 2146 done 2147IFS=$as_save_IFS 2148 2149} >&5 2150 2151cat >&5 <<_ACEOF 2152 2153 2154## ----------- ## 2155## Core tests. ## 2156## ----------- ## 2157 2158_ACEOF 2159 2160 2161# Keep a trace of the command line. 2162# Strip out --no-create and --no-recursion so they do not pile up. 2163# Strip out --silent because we don't want to record it for future runs. 2164# Also quote any args containing shell meta-characters. 2165# Make two passes to allow for proper duplicate-argument suppression. 2166ac_configure_args= 2167ac_configure_args0= 2168ac_configure_args1= 2169ac_must_keep_next=false 2170for ac_pass in 1 2 2171do 2172 for ac_arg 2173 do 2174 case $ac_arg in 2175 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2177 | -silent | --silent | --silen | --sile | --sil) 2178 continue ;; 2179 *\'*) 2180 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2181 esac 2182 case $ac_pass in 2183 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2184 2) 2185 as_fn_append ac_configure_args1 " '$ac_arg'" 2186 if test $ac_must_keep_next = true; then 2187 ac_must_keep_next=false # Got value, back to normal. 2188 else 2189 case $ac_arg in 2190 *=* | --config-cache | -C | -disable-* | --disable-* \ 2191 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2192 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2193 | -with-* | --with-* | -without-* | --without-* | --x) 2194 case "$ac_configure_args0 " in 2195 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2196 esac 2197 ;; 2198 -* ) ac_must_keep_next=true ;; 2199 esac 2200 fi 2201 as_fn_append ac_configure_args " '$ac_arg'" 2202 ;; 2203 esac 2204 done 2205done 2206{ ac_configure_args0=; unset ac_configure_args0;} 2207{ ac_configure_args1=; unset ac_configure_args1;} 2208 2209# When interrupted or exit'd, cleanup temporary files, and complete 2210# config.log. We remove comments because anyway the quotes in there 2211# would cause problems or look ugly. 2212# WARNING: Use '\'' to represent an apostrophe within the trap. 2213# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2214trap 'exit_status=$? 2215 # Sanitize IFS. 2216 IFS=" "" $as_nl" 2217 # Save into config.log some information that might help in debugging. 2218 { 2219 echo 2220 2221 printf "%s\n" "## ---------------- ## 2222## Cache variables. ## 2223## ---------------- ##" 2224 echo 2225 # The following way of writing the cache mishandles newlines in values, 2226( 2227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2228 eval ac_val=\$$ac_var 2229 case $ac_val in #( 2230 *${as_nl}*) 2231 case $ac_var in #( 2232 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2233printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2234 esac 2235 case $ac_var in #( 2236 _ | IFS | as_nl) ;; #( 2237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2238 *) { eval $ac_var=; unset $ac_var;} ;; 2239 esac ;; 2240 esac 2241 done 2242 (set) 2>&1 | 2243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2244 *${as_nl}ac_space=\ *) 2245 sed -n \ 2246 "s/'\''/'\''\\\\'\'''\''/g; 2247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2248 ;; #( 2249 *) 2250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2251 ;; 2252 esac | 2253 sort 2254) 2255 echo 2256 2257 printf "%s\n" "## ----------------- ## 2258## Output variables. ## 2259## ----------------- ##" 2260 echo 2261 for ac_var in $ac_subst_vars 2262 do 2263 eval ac_val=\$$ac_var 2264 case $ac_val in 2265 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2266 esac 2267 printf "%s\n" "$ac_var='\''$ac_val'\''" 2268 done | sort 2269 echo 2270 2271 if test -n "$ac_subst_files"; then 2272 printf "%s\n" "## ------------------- ## 2273## File substitutions. ## 2274## ------------------- ##" 2275 echo 2276 for ac_var in $ac_subst_files 2277 do 2278 eval ac_val=\$$ac_var 2279 case $ac_val in 2280 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2281 esac 2282 printf "%s\n" "$ac_var='\''$ac_val'\''" 2283 done | sort 2284 echo 2285 fi 2286 2287 if test -s confdefs.h; then 2288 printf "%s\n" "## ----------- ## 2289## confdefs.h. ## 2290## ----------- ##" 2291 echo 2292 cat confdefs.h 2293 echo 2294 fi 2295 test "$ac_signal" != 0 && 2296 printf "%s\n" "$as_me: caught signal $ac_signal" 2297 printf "%s\n" "$as_me: exit $exit_status" 2298 } >&5 2299 rm -f core *.core core.conftest.* && 2300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2301 exit $exit_status 2302' 0 2303for ac_signal in 1 2 13 15; do 2304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2305done 2306ac_signal=0 2307 2308# confdefs.h avoids OS command line length limits that DEFS can exceed. 2309rm -f -r conftest* confdefs.h 2310 2311printf "%s\n" "/* confdefs.h */" > confdefs.h 2312 2313# Predefined preprocessor variables. 2314 2315printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2316 2317printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2318 2319printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2320 2321printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2322 2323printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2324 2325printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2326 2327 2328# Let the site file select an alternate cache file if it wants to. 2329# Prefer an explicitly selected file to automatically selected ones. 2330if test -n "$CONFIG_SITE"; then 2331 ac_site_files="$CONFIG_SITE" 2332elif test "x$prefix" != xNONE; then 2333 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2334else 2335 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2336fi 2337 2338for ac_site_file in $ac_site_files 2339do 2340 case $ac_site_file in #( 2341 */*) : 2342 ;; #( 2343 *) : 2344 ac_site_file=./$ac_site_file ;; 2345esac 2346 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2348printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2349 sed 's/^/| /' "$ac_site_file" >&5 2350 . "$ac_site_file" \ 2351 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2352printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2353as_fn_error $? "failed to load site script $ac_site_file 2354See \`config.log' for more details" "$LINENO" 5; } 2355 fi 2356done 2357 2358if test -r "$cache_file"; then 2359 # Some versions of bash will fail to source /dev/null (special files 2360 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2361 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2363printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2364 case $cache_file in 2365 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2366 *) . "./$cache_file";; 2367 esac 2368 fi 2369else 2370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2371printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2372 >$cache_file 2373fi 2374 2375as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2376# Test code for whether the C compiler supports C89 (global declarations) 2377ac_c_conftest_c89_globals=' 2378/* Does the compiler advertise C89 conformance? 2379 Do not test the value of __STDC__, because some compilers set it to 0 2380 while being otherwise adequately conformant. */ 2381#if !defined __STDC__ 2382# error "Compiler does not advertise C89 conformance" 2383#endif 2384 2385#include <stddef.h> 2386#include <stdarg.h> 2387struct stat; 2388/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2389struct buf { int x; }; 2390struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2391static char *e (p, i) 2392 char **p; 2393 int i; 2394{ 2395 return p[i]; 2396} 2397static char *f (char * (*g) (char **, int), char **p, ...) 2398{ 2399 char *s; 2400 va_list v; 2401 va_start (v,p); 2402 s = g (p, va_arg (v,int)); 2403 va_end (v); 2404 return s; 2405} 2406 2407/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2408 function prototypes and stuff, but not \xHH hex character constants. 2409 These do not provoke an error unfortunately, instead are silently treated 2410 as an "x". The following induces an error, until -std is added to get 2411 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2412 array size at least. It is necessary to write \x00 == 0 to get something 2413 that is true only with -std. */ 2414int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2415 2416/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2417 inside strings and character constants. */ 2418#define FOO(x) '\''x'\'' 2419int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2420 2421int test (int i, double x); 2422struct s1 {int (*f) (int a);}; 2423struct s2 {int (*f) (double a);}; 2424int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2425 int, int);' 2426 2427# Test code for whether the C compiler supports C89 (body of main). 2428ac_c_conftest_c89_main=' 2429ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2430' 2431 2432# Test code for whether the C compiler supports C99 (global declarations) 2433ac_c_conftest_c99_globals=' 2434// Does the compiler advertise C99 conformance? 2435#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2436# error "Compiler does not advertise C99 conformance" 2437#endif 2438 2439#include <stdbool.h> 2440extern int puts (const char *); 2441extern int printf (const char *, ...); 2442extern int dprintf (int, const char *, ...); 2443extern void *malloc (size_t); 2444 2445// Check varargs macros. These examples are taken from C99 6.10.3.5. 2446// dprintf is used instead of fprintf to avoid needing to declare 2447// FILE and stderr. 2448#define debug(...) dprintf (2, __VA_ARGS__) 2449#define showlist(...) puts (#__VA_ARGS__) 2450#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2451static void 2452test_varargs_macros (void) 2453{ 2454 int x = 1234; 2455 int y = 5678; 2456 debug ("Flag"); 2457 debug ("X = %d\n", x); 2458 showlist (The first, second, and third items.); 2459 report (x>y, "x is %d but y is %d", x, y); 2460} 2461 2462// Check long long types. 2463#define BIG64 18446744073709551615ull 2464#define BIG32 4294967295ul 2465#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2466#if !BIG_OK 2467 #error "your preprocessor is broken" 2468#endif 2469#if BIG_OK 2470#else 2471 #error "your preprocessor is broken" 2472#endif 2473static long long int bignum = -9223372036854775807LL; 2474static unsigned long long int ubignum = BIG64; 2475 2476struct incomplete_array 2477{ 2478 int datasize; 2479 double data[]; 2480}; 2481 2482struct named_init { 2483 int number; 2484 const wchar_t *name; 2485 double average; 2486}; 2487 2488typedef const char *ccp; 2489 2490static inline int 2491test_restrict (ccp restrict text) 2492{ 2493 // See if C++-style comments work. 2494 // Iterate through items via the restricted pointer. 2495 // Also check for declarations in for loops. 2496 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2497 continue; 2498 return 0; 2499} 2500 2501// Check varargs and va_copy. 2502static bool 2503test_varargs (const char *format, ...) 2504{ 2505 va_list args; 2506 va_start (args, format); 2507 va_list args_copy; 2508 va_copy (args_copy, args); 2509 2510 const char *str = ""; 2511 int number = 0; 2512 float fnumber = 0; 2513 2514 while (*format) 2515 { 2516 switch (*format++) 2517 { 2518 case '\''s'\'': // string 2519 str = va_arg (args_copy, const char *); 2520 break; 2521 case '\''d'\'': // int 2522 number = va_arg (args_copy, int); 2523 break; 2524 case '\''f'\'': // float 2525 fnumber = va_arg (args_copy, double); 2526 break; 2527 default: 2528 break; 2529 } 2530 } 2531 va_end (args_copy); 2532 va_end (args); 2533 2534 return *str && number && fnumber; 2535} 2536' 2537 2538# Test code for whether the C compiler supports C99 (body of main). 2539ac_c_conftest_c99_main=' 2540 // Check bool. 2541 _Bool success = false; 2542 success |= (argc != 0); 2543 2544 // Check restrict. 2545 if (test_restrict ("String literal") == 0) 2546 success = true; 2547 char *restrict newvar = "Another string"; 2548 2549 // Check varargs. 2550 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2551 test_varargs_macros (); 2552 2553 // Check flexible array members. 2554 struct incomplete_array *ia = 2555 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2556 ia->datasize = 10; 2557 for (int i = 0; i < ia->datasize; ++i) 2558 ia->data[i] = i * 1.234; 2559 2560 // Check named initializers. 2561 struct named_init ni = { 2562 .number = 34, 2563 .name = L"Test wide string", 2564 .average = 543.34343, 2565 }; 2566 2567 ni.number = 58; 2568 2569 int dynamic_array[ni.number]; 2570 dynamic_array[0] = argv[0][0]; 2571 dynamic_array[ni.number - 1] = 543; 2572 2573 // work around unused variable warnings 2574 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2575 || dynamic_array[ni.number - 1] != 543); 2576' 2577 2578# Test code for whether the C compiler supports C11 (global declarations) 2579ac_c_conftest_c11_globals=' 2580// Does the compiler advertise C11 conformance? 2581#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2582# error "Compiler does not advertise C11 conformance" 2583#endif 2584 2585// Check _Alignas. 2586char _Alignas (double) aligned_as_double; 2587char _Alignas (0) no_special_alignment; 2588extern char aligned_as_int; 2589char _Alignas (0) _Alignas (int) aligned_as_int; 2590 2591// Check _Alignof. 2592enum 2593{ 2594 int_alignment = _Alignof (int), 2595 int_array_alignment = _Alignof (int[100]), 2596 char_alignment = _Alignof (char) 2597}; 2598_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2599 2600// Check _Noreturn. 2601int _Noreturn does_not_return (void) { for (;;) continue; } 2602 2603// Check _Static_assert. 2604struct test_static_assert 2605{ 2606 int x; 2607 _Static_assert (sizeof (int) <= sizeof (long int), 2608 "_Static_assert does not work in struct"); 2609 long int y; 2610}; 2611 2612// Check UTF-8 literals. 2613#define u8 syntax error! 2614char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2615 2616// Check duplicate typedefs. 2617typedef long *long_ptr; 2618typedef long int *long_ptr; 2619typedef long_ptr long_ptr; 2620 2621// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2622struct anonymous 2623{ 2624 union { 2625 struct { int i; int j; }; 2626 struct { int k; long int l; } w; 2627 }; 2628 int m; 2629} v1; 2630' 2631 2632# Test code for whether the C compiler supports C11 (body of main). 2633ac_c_conftest_c11_main=' 2634 _Static_assert ((offsetof (struct anonymous, i) 2635 == offsetof (struct anonymous, w.k)), 2636 "Anonymous union alignment botch"); 2637 v1.i = 2; 2638 v1.w.k = 5; 2639 ok |= v1.i != 5; 2640' 2641 2642# Test code for whether the C compiler supports C11 (complete). 2643ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2644${ac_c_conftest_c99_globals} 2645${ac_c_conftest_c11_globals} 2646 2647int 2648main (int argc, char **argv) 2649{ 2650 int ok = 0; 2651 ${ac_c_conftest_c89_main} 2652 ${ac_c_conftest_c99_main} 2653 ${ac_c_conftest_c11_main} 2654 return ok; 2655} 2656" 2657 2658# Test code for whether the C compiler supports C99 (complete). 2659ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2660${ac_c_conftest_c99_globals} 2661 2662int 2663main (int argc, char **argv) 2664{ 2665 int ok = 0; 2666 ${ac_c_conftest_c89_main} 2667 ${ac_c_conftest_c99_main} 2668 return ok; 2669} 2670" 2671 2672# Test code for whether the C compiler supports C89 (complete). 2673ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2674 2675int 2676main (int argc, char **argv) 2677{ 2678 int ok = 0; 2679 ${ac_c_conftest_c89_main} 2680 return ok; 2681} 2682" 2683 2684as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2685as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2686as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2687as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2688as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2689as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2690as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2691as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2692as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2693as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2694 2695# Auxiliary files required by this configure script. 2696ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2697 2698# Locations in which to look for auxiliary files. 2699ac_aux_dir_candidates="${srcdir}/build-aux" 2700 2701# Search for a directory containing all of the required auxiliary files, 2702# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2703# If we don't find one directory that contains all the files we need, 2704# we report the set of missing files from the *first* directory in 2705# $ac_aux_dir_candidates and give up. 2706ac_missing_aux_files="" 2707ac_first_candidate=: 2708printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710as_found=false 2711for as_dir in $ac_aux_dir_candidates 2712do 2713 IFS=$as_save_IFS 2714 case $as_dir in #((( 2715 '') as_dir=./ ;; 2716 */) ;; 2717 *) as_dir=$as_dir/ ;; 2718 esac 2719 as_found=: 2720 2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2722 ac_aux_dir_found=yes 2723 ac_install_sh= 2724 for ac_aux in $ac_aux_files 2725 do 2726 # As a special case, if "install-sh" is required, that requirement 2727 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2728 # and $ac_install_sh is set appropriately for whichever one is found. 2729 if test x"$ac_aux" = x"install-sh" 2730 then 2731 if test -f "${as_dir}install-sh"; then 2732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2733 ac_install_sh="${as_dir}install-sh -c" 2734 elif test -f "${as_dir}install.sh"; then 2735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2736 ac_install_sh="${as_dir}install.sh -c" 2737 elif test -f "${as_dir}shtool"; then 2738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2739 ac_install_sh="${as_dir}shtool install -c" 2740 else 2741 ac_aux_dir_found=no 2742 if $ac_first_candidate; then 2743 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2744 else 2745 break 2746 fi 2747 fi 2748 else 2749 if test -f "${as_dir}${ac_aux}"; then 2750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2751 else 2752 ac_aux_dir_found=no 2753 if $ac_first_candidate; then 2754 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2755 else 2756 break 2757 fi 2758 fi 2759 fi 2760 done 2761 if test "$ac_aux_dir_found" = yes; then 2762 ac_aux_dir="$as_dir" 2763 break 2764 fi 2765 ac_first_candidate=false 2766 2767 as_found=false 2768done 2769IFS=$as_save_IFS 2770if $as_found 2771then : 2772 2773else $as_nop 2774 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2775fi 2776 2777 2778# These three variables are undocumented and unsupported, 2779# and are intended to be withdrawn in a future Autoconf release. 2780# They can cause serious problems if a builder's source tree is in a directory 2781# whose full name contains unusual characters. 2782if test -f "${ac_aux_dir}config.guess"; then 2783 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2784fi 2785if test -f "${ac_aux_dir}config.sub"; then 2786 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2787fi 2788if test -f "$ac_aux_dir/configure"; then 2789 ac_configure="$SHELL ${ac_aux_dir}configure" 2790fi 2791 2792# Check that the precious variables saved in the cache have kept the same 2793# value. 2794ac_cache_corrupted=false 2795for ac_var in $ac_precious_vars; do 2796 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2797 eval ac_new_set=\$ac_env_${ac_var}_set 2798 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2799 eval ac_new_val=\$ac_env_${ac_var}_value 2800 case $ac_old_set,$ac_new_set in 2801 set,) 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2803printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2804 ac_cache_corrupted=: ;; 2805 ,set) 2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2807printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2808 ac_cache_corrupted=: ;; 2809 ,);; 2810 *) 2811 if test "x$ac_old_val" != "x$ac_new_val"; then 2812 # differences in whitespace do not lead to failure. 2813 ac_old_val_w=`echo x $ac_old_val` 2814 ac_new_val_w=`echo x $ac_new_val` 2815 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2817printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2818 ac_cache_corrupted=: 2819 else 2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2821printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2822 eval $ac_var=\$ac_old_val 2823 fi 2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2825printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2827printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2828 fi;; 2829 esac 2830 # Pass precious variables to config.status. 2831 if test "$ac_new_set" = set; then 2832 case $ac_new_val in 2833 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2834 *) ac_arg=$ac_var=$ac_new_val ;; 2835 esac 2836 case " $ac_configure_args " in 2837 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2838 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2839 esac 2840 fi 2841done 2842if $ac_cache_corrupted; then 2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2844printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2846printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2847 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2848 and start over" "$LINENO" 5 2849fi 2850## -------------------- ## 2851## Main body of script. ## 2852## -------------------- ## 2853 2854ac_ext=c 2855ac_cpp='$CPP $CPPFLAGS' 2856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2858ac_compiler_gnu=$ac_cv_c_compiler_gnu 2859 2860 2861 2862 2863 2864ac_config_headers="$ac_config_headers src/config.h" 2865 2866 2867# Initialize Automake 2868am__api_version='1.16' 2869 2870 2871 2872 # Find a good install program. We prefer a C program (faster), 2873# so one script is as good as another. But avoid the broken or 2874# incompatible versions: 2875# SysV /etc/install, /usr/sbin/install 2876# SunOS /usr/etc/install 2877# IRIX /sbin/install 2878# AIX /bin/install 2879# AmigaOS /C/install, which installs bootblocks on floppy discs 2880# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2881# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2882# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2883# OS/2's system install, which has a completely different semantic 2884# ./install, which can be erroneously created by make from ./install.sh. 2885# Reject install programs that cannot install multiple files. 2886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2887printf %s "checking for a BSD-compatible install... " >&6; } 2888if test -z "$INSTALL"; then 2889if test ${ac_cv_path_install+y} 2890then : 2891 printf %s "(cached) " >&6 2892else $as_nop 2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 case $as_dir in #((( 2898 '') as_dir=./ ;; 2899 */) ;; 2900 *) as_dir=$as_dir/ ;; 2901 esac 2902 # Account for fact that we put trailing slashes in our PATH walk. 2903case $as_dir in #(( 2904 ./ | /[cC]/* | \ 2905 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2906 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2907 /usr/ucb/* ) ;; 2908 *) 2909 # OSF1 and SCO ODT 3.0 have their own names for install. 2910 # Don't use installbsd from OSF since it installs stuff as root 2911 # by default. 2912 for ac_prog in ginstall scoinst install; do 2913 for ac_exec_ext in '' $ac_executable_extensions; do 2914 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2915 if test $ac_prog = install && 2916 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2917 # AIX install. It has an incompatible calling convention. 2918 : 2919 elif test $ac_prog = install && 2920 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2921 # program-specific install script used by HP pwplus--don't use. 2922 : 2923 else 2924 rm -rf conftest.one conftest.two conftest.dir 2925 echo one > conftest.one 2926 echo two > conftest.two 2927 mkdir conftest.dir 2928 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2929 test -s conftest.one && test -s conftest.two && 2930 test -s conftest.dir/conftest.one && 2931 test -s conftest.dir/conftest.two 2932 then 2933 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2934 break 3 2935 fi 2936 fi 2937 fi 2938 done 2939 done 2940 ;; 2941esac 2942 2943 done 2944IFS=$as_save_IFS 2945 2946rm -rf conftest.one conftest.two conftest.dir 2947 2948fi 2949 if test ${ac_cv_path_install+y}; then 2950 INSTALL=$ac_cv_path_install 2951 else 2952 # As a last resort, use the slow shell script. Don't cache a 2953 # value for INSTALL within a source directory, because that will 2954 # break other packages using the cache if that directory is 2955 # removed, or if the value is a relative name. 2956 INSTALL=$ac_install_sh 2957 fi 2958fi 2959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2960printf "%s\n" "$INSTALL" >&6; } 2961 2962# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2963# It thinks the first close brace ends the variable substitution. 2964test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2965 2966test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2967 2968test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2969 2970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2971printf %s "checking whether build environment is sane... " >&6; } 2972# Reject unsafe characters in $srcdir or the absolute working directory 2973# name. Accept space and tab only in the latter. 2974am_lf=' 2975' 2976case `pwd` in 2977 *[\\\"\#\$\&\'\`$am_lf]*) 2978 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2979esac 2980case $srcdir in 2981 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2982 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2983esac 2984 2985# Do 'set' in a subshell so we don't clobber the current shell's 2986# arguments. Must try -L first in case configure is actually a 2987# symlink; some systems play weird games with the mod time of symlinks 2988# (eg FreeBSD returns the mod time of the symlink's containing 2989# directory). 2990if ( 2991 am_has_slept=no 2992 for am_try in 1 2; do 2993 echo "timestamp, slept: $am_has_slept" > conftest.file 2994 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2995 if test "$*" = "X"; then 2996 # -L didn't work. 2997 set X `ls -t "$srcdir/configure" conftest.file` 2998 fi 2999 if test "$*" != "X $srcdir/configure conftest.file" \ 3000 && test "$*" != "X conftest.file $srcdir/configure"; then 3001 3002 # If neither matched, then we have a broken ls. This can happen 3003 # if, for instance, CONFIG_SHELL is bash and it inherits a 3004 # broken ls alias from the environment. This has actually 3005 # happened. Such a system could not be considered "sane". 3006 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3007 alias in your environment" "$LINENO" 5 3008 fi 3009 if test "$2" = conftest.file || test $am_try -eq 2; then 3010 break 3011 fi 3012 # Just in case. 3013 sleep 1 3014 am_has_slept=yes 3015 done 3016 test "$2" = conftest.file 3017 ) 3018then 3019 # Ok. 3020 : 3021else 3022 as_fn_error $? "newly created file is older than distributed files! 3023Check your system clock" "$LINENO" 5 3024fi 3025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3026printf "%s\n" "yes" >&6; } 3027# If we didn't sleep, we still need to ensure time stamps of config.status and 3028# generated files are strictly newer. 3029am_sleep_pid= 3030if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3031 ( sleep 1 ) & 3032 am_sleep_pid=$! 3033fi 3034 3035rm -f conftest.file 3036 3037test "$program_prefix" != NONE && 3038 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3039# Use a double $ so make ignores it. 3040test "$program_suffix" != NONE && 3041 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3042# Double any \ or $. 3043# By default was `s,x,x', remove it if useless. 3044ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3045program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3046 3047 3048# Expand $ac_aux_dir to an absolute path. 3049am_aux_dir=`cd "$ac_aux_dir" && pwd` 3050 3051 3052 if test x"${MISSING+set}" != xset; then 3053 MISSING="\${SHELL} '$am_aux_dir/missing'" 3054fi 3055# Use eval to expand $SHELL 3056if eval "$MISSING --is-lightweight"; then 3057 am_missing_run="$MISSING " 3058else 3059 am_missing_run= 3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3061printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3062fi 3063 3064if test x"${install_sh+set}" != xset; then 3065 case $am_aux_dir in 3066 *\ * | *\ *) 3067 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3068 *) 3069 install_sh="\${SHELL} $am_aux_dir/install-sh" 3070 esac 3071fi 3072 3073# Installed binaries are usually stripped using 'strip' when the user 3074# run "make install-strip". However 'strip' might not be the right 3075# tool to use in cross-compilation environments, therefore Automake 3076# will honor the 'STRIP' environment variable to overrule this program. 3077if test "$cross_compiling" != no; then 3078 if test -n "$ac_tool_prefix"; then 3079 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3080set dummy ${ac_tool_prefix}strip; ac_word=$2 3081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3082printf %s "checking for $ac_word... " >&6; } 3083if test ${ac_cv_prog_STRIP+y} 3084then : 3085 printf %s "(cached) " >&6 3086else $as_nop 3087 if test -n "$STRIP"; then 3088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3089else 3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3091for as_dir in $PATH 3092do 3093 IFS=$as_save_IFS 3094 case $as_dir in #((( 3095 '') as_dir=./ ;; 3096 */) ;; 3097 *) as_dir=$as_dir/ ;; 3098 esac 3099 for ac_exec_ext in '' $ac_executable_extensions; do 3100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3101 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3103 break 2 3104 fi 3105done 3106 done 3107IFS=$as_save_IFS 3108 3109fi 3110fi 3111STRIP=$ac_cv_prog_STRIP 3112if test -n "$STRIP"; then 3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3114printf "%s\n" "$STRIP" >&6; } 3115else 3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3117printf "%s\n" "no" >&6; } 3118fi 3119 3120 3121fi 3122if test -z "$ac_cv_prog_STRIP"; then 3123 ac_ct_STRIP=$STRIP 3124 # Extract the first word of "strip", so it can be a program name with args. 3125set dummy strip; ac_word=$2 3126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3127printf %s "checking for $ac_word... " >&6; } 3128if test ${ac_cv_prog_ac_ct_STRIP+y} 3129then : 3130 printf %s "(cached) " >&6 3131else $as_nop 3132 if test -n "$ac_ct_STRIP"; then 3133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3134else 3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136for as_dir in $PATH 3137do 3138 IFS=$as_save_IFS 3139 case $as_dir in #((( 3140 '') as_dir=./ ;; 3141 */) ;; 3142 *) as_dir=$as_dir/ ;; 3143 esac 3144 for ac_exec_ext in '' $ac_executable_extensions; do 3145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3146 ac_cv_prog_ac_ct_STRIP="strip" 3147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3148 break 2 3149 fi 3150done 3151 done 3152IFS=$as_save_IFS 3153 3154fi 3155fi 3156ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3157if test -n "$ac_ct_STRIP"; then 3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3159printf "%s\n" "$ac_ct_STRIP" >&6; } 3160else 3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3162printf "%s\n" "no" >&6; } 3163fi 3164 3165 if test "x$ac_ct_STRIP" = x; then 3166 STRIP=":" 3167 else 3168 case $cross_compiling:$ac_tool_warned in 3169yes:) 3170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3171printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3172ac_tool_warned=yes ;; 3173esac 3174 STRIP=$ac_ct_STRIP 3175 fi 3176else 3177 STRIP="$ac_cv_prog_STRIP" 3178fi 3179 3180fi 3181INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3182 3183 3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3185printf %s "checking for a race-free mkdir -p... " >&6; } 3186if test -z "$MKDIR_P"; then 3187 if test ${ac_cv_path_mkdir+y} 3188then : 3189 printf %s "(cached) " >&6 3190else $as_nop 3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3193do 3194 IFS=$as_save_IFS 3195 case $as_dir in #((( 3196 '') as_dir=./ ;; 3197 */) ;; 3198 *) as_dir=$as_dir/ ;; 3199 esac 3200 for ac_prog in mkdir gmkdir; do 3201 for ac_exec_ext in '' $ac_executable_extensions; do 3202 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3203 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3204 'mkdir ('*'coreutils) '* | \ 3205 'BusyBox '* | \ 3206 'mkdir (fileutils) '4.1*) 3207 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3208 break 3;; 3209 esac 3210 done 3211 done 3212 done 3213IFS=$as_save_IFS 3214 3215fi 3216 3217 test -d ./--version && rmdir ./--version 3218 if test ${ac_cv_path_mkdir+y}; then 3219 MKDIR_P="$ac_cv_path_mkdir -p" 3220 else 3221 # As a last resort, use the slow shell script. Don't cache a 3222 # value for MKDIR_P within a source directory, because that will 3223 # break other packages using the cache if that directory is 3224 # removed, or if the value is a relative name. 3225 MKDIR_P="$ac_install_sh -d" 3226 fi 3227fi 3228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3229printf "%s\n" "$MKDIR_P" >&6; } 3230 3231for ac_prog in gawk mawk nawk awk 3232do 3233 # Extract the first word of "$ac_prog", so it can be a program name with args. 3234set dummy $ac_prog; ac_word=$2 3235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3236printf %s "checking for $ac_word... " >&6; } 3237if test ${ac_cv_prog_AWK+y} 3238then : 3239 printf %s "(cached) " >&6 3240else $as_nop 3241 if test -n "$AWK"; then 3242 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3243else 3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3245for as_dir in $PATH 3246do 3247 IFS=$as_save_IFS 3248 case $as_dir in #((( 3249 '') as_dir=./ ;; 3250 */) ;; 3251 *) as_dir=$as_dir/ ;; 3252 esac 3253 for ac_exec_ext in '' $ac_executable_extensions; do 3254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3255 ac_cv_prog_AWK="$ac_prog" 3256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3257 break 2 3258 fi 3259done 3260 done 3261IFS=$as_save_IFS 3262 3263fi 3264fi 3265AWK=$ac_cv_prog_AWK 3266if test -n "$AWK"; then 3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3268printf "%s\n" "$AWK" >&6; } 3269else 3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3271printf "%s\n" "no" >&6; } 3272fi 3273 3274 3275 test -n "$AWK" && break 3276done 3277 3278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3279printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3280set x ${MAKE-make} 3281ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3282if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3283then : 3284 printf %s "(cached) " >&6 3285else $as_nop 3286 cat >conftest.make <<\_ACEOF 3287SHELL = /bin/sh 3288all: 3289 @echo '@@@%%%=$(MAKE)=@@@%%%' 3290_ACEOF 3291# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3292case `${MAKE-make} -f conftest.make 2>/dev/null` in 3293 *@@@%%%=?*=@@@%%%*) 3294 eval ac_cv_prog_make_${ac_make}_set=yes;; 3295 *) 3296 eval ac_cv_prog_make_${ac_make}_set=no;; 3297esac 3298rm -f conftest.make 3299fi 3300if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3302printf "%s\n" "yes" >&6; } 3303 SET_MAKE= 3304else 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3306printf "%s\n" "no" >&6; } 3307 SET_MAKE="MAKE=${MAKE-make}" 3308fi 3309 3310rm -rf .tst 2>/dev/null 3311mkdir .tst 2>/dev/null 3312if test -d .tst; then 3313 am__leading_dot=. 3314else 3315 am__leading_dot=_ 3316fi 3317rmdir .tst 2>/dev/null 3318 3319# Check whether --enable-silent-rules was given. 3320if test ${enable_silent_rules+y} 3321then : 3322 enableval=$enable_silent_rules; 3323fi 3324 3325case $enable_silent_rules in # ((( 3326 yes) AM_DEFAULT_VERBOSITY=0;; 3327 no) AM_DEFAULT_VERBOSITY=1;; 3328 *) AM_DEFAULT_VERBOSITY=1;; 3329esac 3330am_make=${MAKE-make} 3331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3332printf %s "checking whether $am_make supports nested variables... " >&6; } 3333if test ${am_cv_make_support_nested_variables+y} 3334then : 3335 printf %s "(cached) " >&6 3336else $as_nop 3337 if printf "%s\n" 'TRUE=$(BAR$(V)) 3338BAR0=false 3339BAR1=true 3340V=1 3341am__doit: 3342 @$(TRUE) 3343.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3344 am_cv_make_support_nested_variables=yes 3345else 3346 am_cv_make_support_nested_variables=no 3347fi 3348fi 3349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3350printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3351if test $am_cv_make_support_nested_variables = yes; then 3352 AM_V='$(V)' 3353 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3354else 3355 AM_V=$AM_DEFAULT_VERBOSITY 3356 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3357fi 3358AM_BACKSLASH='\' 3359 3360if test "`cd $srcdir && pwd`" != "`pwd`"; then 3361 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3362 # is not polluted with repeated "-I." 3363 am__isrc=' -I$(srcdir)' 3364 # test to see if srcdir already configured 3365 if test -f $srcdir/config.status; then 3366 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3367 fi 3368fi 3369 3370# test whether we have cygpath 3371if test -z "$CYGPATH_W"; then 3372 if (cygpath --version) >/dev/null 2>/dev/null; then 3373 CYGPATH_W='cygpath -w' 3374 else 3375 CYGPATH_W=echo 3376 fi 3377fi 3378 3379 3380# Define the identity of the package. 3381 PACKAGE='libxcb' 3382 VERSION='1.15' 3383 3384 3385printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3386 3387 3388printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3389 3390# Some tools Automake needs. 3391 3392ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3393 3394 3395AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3396 3397 3398AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3399 3400 3401AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3402 3403 3404MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3405 3406# For better backward compatibility. To be removed once Automake 1.9.x 3407# dies out for good. For more background, see: 3408# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3409# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3410mkdir_p='$(MKDIR_P)' 3411 3412# We need awk for the "check" target (and possibly the TAP driver). The 3413# system "awk" is bad on some platforms. 3414# Always define AMTAR for backward compatibility. Yes, it's still used 3415# in the wild :-( We should find a proper way to deprecate it ... 3416AMTAR='$${TAR-tar}' 3417 3418 3419# We'll loop over all known methods to create a tar archive until one works. 3420_am_tools='gnutar pax cpio none' 3421 3422am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3423 3424 3425 3426 3427 3428# Variables for tags utilities; see am/tags.am 3429if test -z "$CTAGS"; then 3430 CTAGS=ctags 3431fi 3432 3433if test -z "$ETAGS"; then 3434 ETAGS=etags 3435fi 3436 3437if test -z "$CSCOPE"; then 3438 CSCOPE=cscope 3439fi 3440 3441 3442 3443# POSIX will say in a future version that running "rm -f" with no argument 3444# is OK; and we want to be able to make that assumption in our Makefile 3445# recipes. So use an aggressive probe to check that the usage we want is 3446# actually supported "in the wild" to an acceptable degree. 3447# See automake bug#10828. 3448# To make any issue more visible, cause the running configure to be aborted 3449# by default if the 'rm' program in use doesn't match our expectations; the 3450# user can still override this though. 3451if rm -f && rm -fr && rm -rf; then : OK; else 3452 cat >&2 <<'END' 3453Oops! 3454 3455Your 'rm' program seems unable to run without file operands specified 3456on the command line, even when the '-f' option is present. This is contrary 3457to the behaviour of most rm programs out there, and not conforming with 3458the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3459 3460Please tell bug-automake@gnu.org about your system, including the value 3461of your $PATH and any error possibly output before this message. This 3462can help us improve future automake versions. 3463 3464END 3465 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3466 echo 'Configuration will proceed anyway, since you have set the' >&2 3467 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3468 echo >&2 3469 else 3470 cat >&2 <<'END' 3471Aborting the configuration process, to ensure you take notice of the issue. 3472 3473You can download and install GNU coreutils to get an 'rm' implementation 3474that behaves properly: <https://www.gnu.org/software/coreutils/>. 3475 3476If you want to complete the configuration process using your problematic 3477'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3478to "yes", and re-run configure. 3479 3480END 3481 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3482 fi 3483fi 3484 3485 3486 3487 3488 3489 3490 3491 if test -n "$PYTHON"; then 3492 # If the user set $PYTHON, use it and don't search something else. 3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 3494printf %s "checking whether $PYTHON version is >= 2.6... " >&6; } 3495 prog="import sys 3496# split strings by '.' and convert to numeric. Append some zeros 3497# because we need at least 4 digits for the hex conversion. 3498# map returns an iterator in Python 3.0 and a list in 2.x 3499minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 3500minverhex = 0 3501# xrange is not present in Python 3.0 and range returns an iterator 3502for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3503sys.exit(sys.hexversion < minverhex)" 3504 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 3505 ($PYTHON -c "$prog") >&5 2>&5 3506 ac_status=$? 3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3508 (exit $ac_status); } 3509then : 3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3511printf "%s\n" "yes" >&6; } 3512else $as_nop 3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3514printf "%s\n" "no" >&6; } 3515 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 3516fi 3517 am_display_PYTHON=$PYTHON 3518 else 3519 # Otherwise, try each interpreter until we find one that satisfies 3520 # VERSION. 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 3522printf %s "checking for a Python interpreter with version >= 2.6... " >&6; } 3523if test ${am_cv_pathless_PYTHON+y} 3524then : 3525 printf %s "(cached) " >&6 3526else $as_nop 3527 3528 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 3529 test "$am_cv_pathless_PYTHON" = none && break 3530 prog="import sys 3531# split strings by '.' and convert to numeric. Append some zeros 3532# because we need at least 4 digits for the hex conversion. 3533# map returns an iterator in Python 3.0 and a list in 2.x 3534minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 3535minverhex = 0 3536# xrange is not present in Python 3.0 and range returns an iterator 3537for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3538sys.exit(sys.hexversion < minverhex)" 3539 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 3540 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 3541 ac_status=$? 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); } 3544then : 3545 break 3546fi 3547 done 3548fi 3549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 3550printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 3551 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 3552 if test "$am_cv_pathless_PYTHON" = none; then 3553 PYTHON=: 3554 else 3555 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 3556set dummy $am_cv_pathless_PYTHON; ac_word=$2 3557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3558printf %s "checking for $ac_word... " >&6; } 3559if test ${ac_cv_path_PYTHON+y} 3560then : 3561 printf %s "(cached) " >&6 3562else $as_nop 3563 case $PYTHON in 3564 [\\/]* | ?:[\\/]*) 3565 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 3566 ;; 3567 *) 3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3569for as_dir in $PATH 3570do 3571 IFS=$as_save_IFS 3572 case $as_dir in #((( 3573 '') as_dir=./ ;; 3574 */) ;; 3575 *) as_dir=$as_dir/ ;; 3576 esac 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3579 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 3580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583done 3584 done 3585IFS=$as_save_IFS 3586 3587 ;; 3588esac 3589fi 3590PYTHON=$ac_cv_path_PYTHON 3591if test -n "$PYTHON"; then 3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 3593printf "%s\n" "$PYTHON" >&6; } 3594else 3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596printf "%s\n" "no" >&6; } 3597fi 3598 3599 3600 fi 3601 am_display_PYTHON=$am_cv_pathless_PYTHON 3602 fi 3603 3604 3605 if test "$PYTHON" = :; then 3606 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 3607 else 3608 3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 3610printf %s "checking for $am_display_PYTHON version... " >&6; } 3611if test ${am_cv_python_version+y} 3612then : 3613 printf %s "(cached) " >&6 3614else $as_nop 3615 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 3616fi 3617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 3618printf "%s\n" "$am_cv_python_version" >&6; } 3619 PYTHON_VERSION=$am_cv_python_version 3620 3621 3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 3623printf %s "checking for $am_display_PYTHON platform... " >&6; } 3624if test ${am_cv_python_platform+y} 3625then : 3626 printf %s "(cached) " >&6 3627else $as_nop 3628 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 3629fi 3630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 3631printf "%s\n" "$am_cv_python_platform" >&6; } 3632 PYTHON_PLATFORM=$am_cv_python_platform 3633 3634 3635 if test "x$prefix" = xNONE; then 3636 am__usable_prefix=$ac_default_prefix 3637 else 3638 am__usable_prefix=$prefix 3639 fi 3640 3641 # Allow user to request using sys.* values from Python, 3642 # instead of the GNU $prefix values. 3643 3644# Check whether --with-python-sys-prefix was given. 3645if test ${with_python_sys_prefix+y} 3646then : 3647 withval=$with_python_sys_prefix; am_use_python_sys=: 3648else $as_nop 3649 am_use_python_sys=false 3650fi 3651 3652 3653 # Allow user to override whatever the default Python prefix is. 3654 3655# Check whether --with-python_prefix was given. 3656if test ${with_python_prefix+y} 3657then : 3658 withval=$with_python_prefix; am_python_prefix_subst=$withval 3659 am_cv_python_prefix=$withval 3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 3661printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 3663printf "%s\n" "$am_cv_python_prefix" >&6; } 3664else $as_nop 3665 3666 if $am_use_python_sys; then 3667 # using python sys.prefix value, not GNU 3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 3669printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 3670if test ${am_cv_python_prefix+y} 3671then : 3672 printf %s "(cached) " >&6 3673else $as_nop 3674 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 3675fi 3676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 3677printf "%s\n" "$am_cv_python_prefix" >&6; } 3678 3679 case $am_cv_python_prefix in 3680 $am__usable_prefix*) 3681 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 3682 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 3683 ;; 3684 *) 3685 am_python_prefix_subst=$am_cv_python_prefix 3686 ;; 3687 esac 3688 else # using GNU prefix value, not python sys.prefix 3689 am_python_prefix_subst='${prefix}' 3690 am_python_prefix=$am_python_prefix_subst 3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 3692printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 3694printf "%s\n" "$am_python_prefix" >&6; } 3695 fi 3696fi 3697 3698 # Substituting python_prefix_subst value. 3699 PYTHON_PREFIX=$am_python_prefix_subst 3700 3701 3702 # emacs-page Now do it all over again for Python exec_prefix, but with yet 3703 # another conditional: fall back to regular prefix if that was specified. 3704 3705# Check whether --with-python_exec_prefix was given. 3706if test ${with_python_exec_prefix+y} 3707then : 3708 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 3709 am_cv_python_exec_prefix=$withval 3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 3711printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 3713printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 3714else $as_nop 3715 3716 # no explicit --with-python_exec_prefix, but if 3717 # --with-python_prefix was given, use its value for python_exec_prefix too. 3718 if test -n "$with_python_prefix" 3719then : 3720 am_python_exec_prefix_subst=$with_python_prefix 3721 am_cv_python_exec_prefix=$with_python_prefix 3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 3723printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 3725printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 3726else $as_nop 3727 3728 # Set am__usable_exec_prefix whether using GNU or Python values, 3729 # since we use that variable for pyexecdir. 3730 if test "x$exec_prefix" = xNONE; then 3731 am__usable_exec_prefix=$am__usable_prefix 3732 else 3733 am__usable_exec_prefix=$exec_prefix 3734 fi 3735 # 3736 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 3738printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 3739if test ${am_cv_python_exec_prefix+y} 3740then : 3741 printf %s "(cached) " >&6 3742else $as_nop 3743 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 3744fi 3745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 3746printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 3747 case $am_cv_python_exec_prefix in 3748 $am__usable_exec_prefix*) 3749 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 3750 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 3751 ;; 3752 *) 3753 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 3754 ;; 3755 esac 3756 else # using GNU $exec_prefix, not python sys.exec_prefix 3757 am_python_exec_prefix_subst='${exec_prefix}' 3758 am_python_exec_prefix=$am_python_exec_prefix_subst 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 3760printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 3762printf "%s\n" "$am_python_exec_prefix" >&6; } 3763 fi 3764fi 3765fi 3766 3767 # Substituting python_exec_prefix_subst. 3768 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 3769 3770 3771 # Factor out some code duplication into this shell variable. 3772 am_python_setup_sysconfig="\ 3773import sys 3774# Prefer sysconfig over distutils.sysconfig, for better compatibility 3775# with python 3.x. See automake bug#10227. 3776try: 3777 import sysconfig 3778except ImportError: 3779 can_use_sysconfig = 0 3780else: 3781 can_use_sysconfig = 1 3782# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 3783# <https://github.com/pypa/virtualenv/issues/118> 3784try: 3785 from platform import python_implementation 3786 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 3787 can_use_sysconfig = 0 3788except ImportError: 3789 pass" 3790 3791 3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 3793printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 3794if test ${am_cv_python_pythondir+y} 3795then : 3796 printf %s "(cached) " >&6 3797else $as_nop 3798 if test "x$am_cv_python_prefix" = x; then 3799 am_py_prefix=$am__usable_prefix 3800 else 3801 am_py_prefix=$am_cv_python_prefix 3802 fi 3803 am_cv_python_pythondir=`$PYTHON -c " 3804$am_python_setup_sysconfig 3805if can_use_sysconfig: 3806 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 3807else: 3808 from distutils import sysconfig 3809 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 3810sys.stdout.write(sitedir)"` 3811 # 3812 case $am_cv_python_pythondir in 3813 $am_py_prefix*) 3814 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 3815 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 3816 ;; 3817 *) 3818 case $am_py_prefix in 3819 /usr|/System*) ;; 3820 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 3821 ;; 3822 esac 3823 ;; 3824 esac 3825 3826fi 3827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 3828printf "%s\n" "$am_cv_python_pythondir" >&6; } 3829 pythondir=$am_cv_python_pythondir 3830 3831 3832 pkgpythondir=\${pythondir}/$PACKAGE 3833 3834 3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 3836printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 3837if test ${am_cv_python_pyexecdir+y} 3838then : 3839 printf %s "(cached) " >&6 3840else $as_nop 3841 if test "x$am_cv_python_exec_prefix" = x; then 3842 am_py_exec_prefix=$am__usable_exec_prefix 3843 else 3844 am_py_exec_prefix=$am_cv_python_exec_prefix 3845 fi 3846 am_cv_python_pyexecdir=`$PYTHON -c " 3847$am_python_setup_sysconfig 3848if can_use_sysconfig: 3849 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 3850else: 3851 from distutils import sysconfig 3852 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 3853sys.stdout.write(sitedir)"` 3854 # 3855 case $am_cv_python_pyexecdir in 3856 $am_py_exec_prefix*) 3857 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 3858 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 3859 ;; 3860 *) 3861 case $am_py_exec_prefix in 3862 /usr|/System*) ;; 3863 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 3864 ;; 3865 esac 3866 ;; 3867 esac 3868 3869fi 3870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 3871printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 3872 pyexecdir=$am_cv_python_pyexecdir 3873 3874 3875 pkgpyexecdir=\${pyexecdir}/$PACKAGE 3876 3877 3878 3879 fi 3880 3881 3882# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3883# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 3884# to avoid autoconf errors. 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894DEPDIR="${am__leading_dot}deps" 3895 3896ac_config_commands="$ac_config_commands depfiles" 3897 3898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3899printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3900cat > confinc.mk << 'END' 3901am__doit: 3902 @echo this is the am__doit target >confinc.out 3903.PHONY: am__doit 3904END 3905am__include="#" 3906am__quote= 3907# BSD make does it like this. 3908echo '.include "confinc.mk" # ignored' > confmf.BSD 3909# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3910echo 'include confinc.mk # ignored' > confmf.GNU 3911_am_result=no 3912for s in GNU BSD; do 3913 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3914 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3915 ac_status=$? 3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3917 (exit $ac_status); } 3918 case $?:`cat confinc.out 2>/dev/null` in #( 3919 '0:this is the am__doit target') : 3920 case $s in #( 3921 BSD) : 3922 am__include='.include' am__quote='"' ;; #( 3923 *) : 3924 am__include='include' am__quote='' ;; 3925esac ;; #( 3926 *) : 3927 ;; 3928esac 3929 if test "$am__include" != "#"; then 3930 _am_result="yes ($s style)" 3931 break 3932 fi 3933done 3934rm -f confinc.* confmf.* 3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3936printf "%s\n" "${_am_result}" >&6; } 3937 3938# Check whether --enable-dependency-tracking was given. 3939if test ${enable_dependency_tracking+y} 3940then : 3941 enableval=$enable_dependency_tracking; 3942fi 3943 3944if test "x$enable_dependency_tracking" != xno; then 3945 am_depcomp="$ac_aux_dir/depcomp" 3946 AMDEPBACKSLASH='\' 3947 am__nodep='_no' 3948fi 3949 if test "x$enable_dependency_tracking" != xno; then 3950 AMDEP_TRUE= 3951 AMDEP_FALSE='#' 3952else 3953 AMDEP_TRUE='#' 3954 AMDEP_FALSE= 3955fi 3956 3957 3958ac_ext=c 3959ac_cpp='$CPP $CPPFLAGS' 3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3962ac_compiler_gnu=$ac_cv_c_compiler_gnu 3963if test -n "$ac_tool_prefix"; then 3964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3965set dummy ${ac_tool_prefix}gcc; ac_word=$2 3966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3967printf %s "checking for $ac_word... " >&6; } 3968if test ${ac_cv_prog_CC+y} 3969then : 3970 printf %s "(cached) " >&6 3971else $as_nop 3972 if test -n "$CC"; then 3973 ac_cv_prog_CC="$CC" # Let the user override the test. 3974else 3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3976for as_dir in $PATH 3977do 3978 IFS=$as_save_IFS 3979 case $as_dir in #((( 3980 '') as_dir=./ ;; 3981 */) ;; 3982 *) as_dir=$as_dir/ ;; 3983 esac 3984 for ac_exec_ext in '' $ac_executable_extensions; do 3985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3986 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3988 break 2 3989 fi 3990done 3991 done 3992IFS=$as_save_IFS 3993 3994fi 3995fi 3996CC=$ac_cv_prog_CC 3997if test -n "$CC"; then 3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3999printf "%s\n" "$CC" >&6; } 4000else 4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4002printf "%s\n" "no" >&6; } 4003fi 4004 4005 4006fi 4007if test -z "$ac_cv_prog_CC"; then 4008 ac_ct_CC=$CC 4009 # Extract the first word of "gcc", so it can be a program name with args. 4010set dummy gcc; ac_word=$2 4011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4012printf %s "checking for $ac_word... " >&6; } 4013if test ${ac_cv_prog_ac_ct_CC+y} 4014then : 4015 printf %s "(cached) " >&6 4016else $as_nop 4017 if test -n "$ac_ct_CC"; then 4018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4019else 4020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4021for as_dir in $PATH 4022do 4023 IFS=$as_save_IFS 4024 case $as_dir in #((( 4025 '') as_dir=./ ;; 4026 */) ;; 4027 *) as_dir=$as_dir/ ;; 4028 esac 4029 for ac_exec_ext in '' $ac_executable_extensions; do 4030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4031 ac_cv_prog_ac_ct_CC="gcc" 4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4033 break 2 4034 fi 4035done 4036 done 4037IFS=$as_save_IFS 4038 4039fi 4040fi 4041ac_ct_CC=$ac_cv_prog_ac_ct_CC 4042if test -n "$ac_ct_CC"; then 4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4044printf "%s\n" "$ac_ct_CC" >&6; } 4045else 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4047printf "%s\n" "no" >&6; } 4048fi 4049 4050 if test "x$ac_ct_CC" = x; then 4051 CC="" 4052 else 4053 case $cross_compiling:$ac_tool_warned in 4054yes:) 4055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4056printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4057ac_tool_warned=yes ;; 4058esac 4059 CC=$ac_ct_CC 4060 fi 4061else 4062 CC="$ac_cv_prog_CC" 4063fi 4064 4065if test -z "$CC"; then 4066 if test -n "$ac_tool_prefix"; then 4067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4068set dummy ${ac_tool_prefix}cc; ac_word=$2 4069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4070printf %s "checking for $ac_word... " >&6; } 4071if test ${ac_cv_prog_CC+y} 4072then : 4073 printf %s "(cached) " >&6 4074else $as_nop 4075 if test -n "$CC"; then 4076 ac_cv_prog_CC="$CC" # Let the user override the test. 4077else 4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH 4080do 4081 IFS=$as_save_IFS 4082 case $as_dir in #((( 4083 '') as_dir=./ ;; 4084 */) ;; 4085 *) as_dir=$as_dir/ ;; 4086 esac 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4089 ac_cv_prog_CC="${ac_tool_prefix}cc" 4090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4091 break 2 4092 fi 4093done 4094 done 4095IFS=$as_save_IFS 4096 4097fi 4098fi 4099CC=$ac_cv_prog_CC 4100if test -n "$CC"; then 4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4102printf "%s\n" "$CC" >&6; } 4103else 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4105printf "%s\n" "no" >&6; } 4106fi 4107 4108 4109 fi 4110fi 4111if test -z "$CC"; then 4112 # Extract the first word of "cc", so it can be a program name with args. 4113set dummy cc; ac_word=$2 4114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4115printf %s "checking for $ac_word... " >&6; } 4116if test ${ac_cv_prog_CC+y} 4117then : 4118 printf %s "(cached) " >&6 4119else $as_nop 4120 if test -n "$CC"; then 4121 ac_cv_prog_CC="$CC" # Let the user override the test. 4122else 4123 ac_prog_rejected=no 4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4125for as_dir in $PATH 4126do 4127 IFS=$as_save_IFS 4128 case $as_dir in #((( 4129 '') as_dir=./ ;; 4130 */) ;; 4131 *) as_dir=$as_dir/ ;; 4132 esac 4133 for ac_exec_ext in '' $ac_executable_extensions; do 4134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4135 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4136 ac_prog_rejected=yes 4137 continue 4138 fi 4139 ac_cv_prog_CC="cc" 4140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4141 break 2 4142 fi 4143done 4144 done 4145IFS=$as_save_IFS 4146 4147if test $ac_prog_rejected = yes; then 4148 # We found a bogon in the path, so make sure we never use it. 4149 set dummy $ac_cv_prog_CC 4150 shift 4151 if test $# != 0; then 4152 # We chose a different compiler from the bogus one. 4153 # However, it has the same basename, so the bogon will be chosen 4154 # first if we set CC to just the basename; use the full file name. 4155 shift 4156 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4157 fi 4158fi 4159fi 4160fi 4161CC=$ac_cv_prog_CC 4162if test -n "$CC"; then 4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4164printf "%s\n" "$CC" >&6; } 4165else 4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4167printf "%s\n" "no" >&6; } 4168fi 4169 4170 4171fi 4172if test -z "$CC"; then 4173 if test -n "$ac_tool_prefix"; then 4174 for ac_prog in cl.exe 4175 do 4176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4177set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4179printf %s "checking for $ac_word... " >&6; } 4180if test ${ac_cv_prog_CC+y} 4181then : 4182 printf %s "(cached) " >&6 4183else $as_nop 4184 if test -n "$CC"; then 4185 ac_cv_prog_CC="$CC" # Let the user override the test. 4186else 4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4188for as_dir in $PATH 4189do 4190 IFS=$as_save_IFS 4191 case $as_dir in #((( 4192 '') as_dir=./ ;; 4193 */) ;; 4194 *) as_dir=$as_dir/ ;; 4195 esac 4196 for ac_exec_ext in '' $ac_executable_extensions; do 4197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4200 break 2 4201 fi 4202done 4203 done 4204IFS=$as_save_IFS 4205 4206fi 4207fi 4208CC=$ac_cv_prog_CC 4209if test -n "$CC"; then 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4211printf "%s\n" "$CC" >&6; } 4212else 4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4214printf "%s\n" "no" >&6; } 4215fi 4216 4217 4218 test -n "$CC" && break 4219 done 4220fi 4221if test -z "$CC"; then 4222 ac_ct_CC=$CC 4223 for ac_prog in cl.exe 4224do 4225 # Extract the first word of "$ac_prog", so it can be a program name with args. 4226set dummy $ac_prog; ac_word=$2 4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4228printf %s "checking for $ac_word... " >&6; } 4229if test ${ac_cv_prog_ac_ct_CC+y} 4230then : 4231 printf %s "(cached) " >&6 4232else $as_nop 4233 if test -n "$ac_ct_CC"; then 4234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4235else 4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4237for as_dir in $PATH 4238do 4239 IFS=$as_save_IFS 4240 case $as_dir in #((( 4241 '') as_dir=./ ;; 4242 */) ;; 4243 *) as_dir=$as_dir/ ;; 4244 esac 4245 for ac_exec_ext in '' $ac_executable_extensions; do 4246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4247 ac_cv_prog_ac_ct_CC="$ac_prog" 4248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4249 break 2 4250 fi 4251done 4252 done 4253IFS=$as_save_IFS 4254 4255fi 4256fi 4257ac_ct_CC=$ac_cv_prog_ac_ct_CC 4258if test -n "$ac_ct_CC"; then 4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4260printf "%s\n" "$ac_ct_CC" >&6; } 4261else 4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4263printf "%s\n" "no" >&6; } 4264fi 4265 4266 4267 test -n "$ac_ct_CC" && break 4268done 4269 4270 if test "x$ac_ct_CC" = x; then 4271 CC="" 4272 else 4273 case $cross_compiling:$ac_tool_warned in 4274yes:) 4275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4276printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4277ac_tool_warned=yes ;; 4278esac 4279 CC=$ac_ct_CC 4280 fi 4281fi 4282 4283fi 4284if test -z "$CC"; then 4285 if test -n "$ac_tool_prefix"; then 4286 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4287set dummy ${ac_tool_prefix}clang; ac_word=$2 4288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4289printf %s "checking for $ac_word... " >&6; } 4290if test ${ac_cv_prog_CC+y} 4291then : 4292 printf %s "(cached) " >&6 4293else $as_nop 4294 if test -n "$CC"; then 4295 ac_cv_prog_CC="$CC" # Let the user override the test. 4296else 4297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4298for as_dir in $PATH 4299do 4300 IFS=$as_save_IFS 4301 case $as_dir in #((( 4302 '') as_dir=./ ;; 4303 */) ;; 4304 *) as_dir=$as_dir/ ;; 4305 esac 4306 for ac_exec_ext in '' $ac_executable_extensions; do 4307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4308 ac_cv_prog_CC="${ac_tool_prefix}clang" 4309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4310 break 2 4311 fi 4312done 4313 done 4314IFS=$as_save_IFS 4315 4316fi 4317fi 4318CC=$ac_cv_prog_CC 4319if test -n "$CC"; then 4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4321printf "%s\n" "$CC" >&6; } 4322else 4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4324printf "%s\n" "no" >&6; } 4325fi 4326 4327 4328fi 4329if test -z "$ac_cv_prog_CC"; then 4330 ac_ct_CC=$CC 4331 # Extract the first word of "clang", so it can be a program name with args. 4332set dummy clang; ac_word=$2 4333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4334printf %s "checking for $ac_word... " >&6; } 4335if test ${ac_cv_prog_ac_ct_CC+y} 4336then : 4337 printf %s "(cached) " >&6 4338else $as_nop 4339 if test -n "$ac_ct_CC"; then 4340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4341else 4342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4343for as_dir in $PATH 4344do 4345 IFS=$as_save_IFS 4346 case $as_dir in #((( 4347 '') as_dir=./ ;; 4348 */) ;; 4349 *) as_dir=$as_dir/ ;; 4350 esac 4351 for ac_exec_ext in '' $ac_executable_extensions; do 4352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4353 ac_cv_prog_ac_ct_CC="clang" 4354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4355 break 2 4356 fi 4357done 4358 done 4359IFS=$as_save_IFS 4360 4361fi 4362fi 4363ac_ct_CC=$ac_cv_prog_ac_ct_CC 4364if test -n "$ac_ct_CC"; then 4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4366printf "%s\n" "$ac_ct_CC" >&6; } 4367else 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4369printf "%s\n" "no" >&6; } 4370fi 4371 4372 if test "x$ac_ct_CC" = x; then 4373 CC="" 4374 else 4375 case $cross_compiling:$ac_tool_warned in 4376yes:) 4377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4378printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4379ac_tool_warned=yes ;; 4380esac 4381 CC=$ac_ct_CC 4382 fi 4383else 4384 CC="$ac_cv_prog_CC" 4385fi 4386 4387fi 4388 4389 4390test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4391printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4392as_fn_error $? "no acceptable C compiler found in \$PATH 4393See \`config.log' for more details" "$LINENO" 5; } 4394 4395# Provide some information about the compiler. 4396printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4397set X $ac_compile 4398ac_compiler=$2 4399for ac_option in --version -v -V -qversion -version; do 4400 { { ac_try="$ac_compiler $ac_option >&5" 4401case "(($ac_try" in 4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4403 *) ac_try_echo=$ac_try;; 4404esac 4405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4406printf "%s\n" "$ac_try_echo"; } >&5 4407 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4408 ac_status=$? 4409 if test -s conftest.err; then 4410 sed '10a\ 4411... rest of stderr output deleted ... 4412 10q' conftest.err >conftest.er1 4413 cat conftest.er1 >&5 4414 fi 4415 rm -f conftest.er1 conftest.err 4416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4417 test $ac_status = 0; } 4418done 4419 4420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4421/* end confdefs.h. */ 4422 4423int 4424main (void) 4425{ 4426 4427 ; 4428 return 0; 4429} 4430_ACEOF 4431ac_clean_files_save=$ac_clean_files 4432ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4433# Try to create an executable without -o first, disregard a.out. 4434# It will help us diagnose broken compilers, and finding out an intuition 4435# of exeext. 4436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4437printf %s "checking whether the C compiler works... " >&6; } 4438ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4439 4440# The possible output files: 4441ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4442 4443ac_rmfiles= 4444for ac_file in $ac_files 4445do 4446 case $ac_file in 4447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4448 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4449 esac 4450done 4451rm -f $ac_rmfiles 4452 4453if { { ac_try="$ac_link_default" 4454case "(($ac_try" in 4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4456 *) ac_try_echo=$ac_try;; 4457esac 4458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4459printf "%s\n" "$ac_try_echo"; } >&5 4460 (eval "$ac_link_default") 2>&5 4461 ac_status=$? 4462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4463 test $ac_status = 0; } 4464then : 4465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4466# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4467# in a Makefile. We should not override ac_cv_exeext if it was cached, 4468# so that the user can short-circuit this test for compilers unknown to 4469# Autoconf. 4470for ac_file in $ac_files '' 4471do 4472 test -f "$ac_file" || continue 4473 case $ac_file in 4474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4475 ;; 4476 [ab].out ) 4477 # We found the default executable, but exeext='' is most 4478 # certainly right. 4479 break;; 4480 *.* ) 4481 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4482 then :; else 4483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4484 fi 4485 # We set ac_cv_exeext here because the later test for it is not 4486 # safe: cross compilers may not add the suffix if given an `-o' 4487 # argument, so we may need to know it at that point already. 4488 # Even if this section looks crufty: it has the advantage of 4489 # actually working. 4490 break;; 4491 * ) 4492 break;; 4493 esac 4494done 4495test "$ac_cv_exeext" = no && ac_cv_exeext= 4496 4497else $as_nop 4498 ac_file='' 4499fi 4500if test -z "$ac_file" 4501then : 4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4503printf "%s\n" "no" >&6; } 4504printf "%s\n" "$as_me: failed program was:" >&5 4505sed 's/^/| /' conftest.$ac_ext >&5 4506 4507{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4508printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4509as_fn_error 77 "C compiler cannot create executables 4510See \`config.log' for more details" "$LINENO" 5; } 4511else $as_nop 4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4513printf "%s\n" "yes" >&6; } 4514fi 4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4516printf %s "checking for C compiler default output file name... " >&6; } 4517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4518printf "%s\n" "$ac_file" >&6; } 4519ac_exeext=$ac_cv_exeext 4520 4521rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4522ac_clean_files=$ac_clean_files_save 4523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4524printf %s "checking for suffix of executables... " >&6; } 4525if { { ac_try="$ac_link" 4526case "(($ac_try" in 4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4528 *) ac_try_echo=$ac_try;; 4529esac 4530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4531printf "%s\n" "$ac_try_echo"; } >&5 4532 (eval "$ac_link") 2>&5 4533 ac_status=$? 4534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4535 test $ac_status = 0; } 4536then : 4537 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4538# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4539# work properly (i.e., refer to `conftest.exe'), while it won't with 4540# `rm'. 4541for ac_file in conftest.exe conftest conftest.*; do 4542 test -f "$ac_file" || continue 4543 case $ac_file in 4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4546 break;; 4547 * ) break;; 4548 esac 4549done 4550else $as_nop 4551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4552printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4553as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4554See \`config.log' for more details" "$LINENO" 5; } 4555fi 4556rm -f conftest conftest$ac_cv_exeext 4557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4558printf "%s\n" "$ac_cv_exeext" >&6; } 4559 4560rm -f conftest.$ac_ext 4561EXEEXT=$ac_cv_exeext 4562ac_exeext=$EXEEXT 4563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4564/* end confdefs.h. */ 4565#include <stdio.h> 4566int 4567main (void) 4568{ 4569FILE *f = fopen ("conftest.out", "w"); 4570 return ferror (f) || fclose (f) != 0; 4571 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576ac_clean_files="$ac_clean_files conftest.out" 4577# Check that the compiler produces executables we can run. If not, either 4578# the compiler is broken, or we cross compile. 4579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4580printf %s "checking whether we are cross compiling... " >&6; } 4581if test "$cross_compiling" != yes; then 4582 { { ac_try="$ac_link" 4583case "(($ac_try" in 4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4585 *) ac_try_echo=$ac_try;; 4586esac 4587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4588printf "%s\n" "$ac_try_echo"; } >&5 4589 (eval "$ac_link") 2>&5 4590 ac_status=$? 4591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4592 test $ac_status = 0; } 4593 if { ac_try='./conftest$ac_cv_exeext' 4594 { { case "(($ac_try" in 4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4596 *) ac_try_echo=$ac_try;; 4597esac 4598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4599printf "%s\n" "$ac_try_echo"; } >&5 4600 (eval "$ac_try") 2>&5 4601 ac_status=$? 4602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4603 test $ac_status = 0; }; }; then 4604 cross_compiling=no 4605 else 4606 if test "$cross_compiling" = maybe; then 4607 cross_compiling=yes 4608 else 4609 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4610printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4611as_fn_error 77 "cannot run C compiled programs. 4612If you meant to cross compile, use \`--host'. 4613See \`config.log' for more details" "$LINENO" 5; } 4614 fi 4615 fi 4616fi 4617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4618printf "%s\n" "$cross_compiling" >&6; } 4619 4620rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4621ac_clean_files=$ac_clean_files_save 4622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4623printf %s "checking for suffix of object files... " >&6; } 4624if test ${ac_cv_objext+y} 4625then : 4626 printf %s "(cached) " >&6 4627else $as_nop 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4629/* end confdefs.h. */ 4630 4631int 4632main (void) 4633{ 4634 4635 ; 4636 return 0; 4637} 4638_ACEOF 4639rm -f conftest.o conftest.obj 4640if { { ac_try="$ac_compile" 4641case "(($ac_try" in 4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4643 *) ac_try_echo=$ac_try;; 4644esac 4645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4646printf "%s\n" "$ac_try_echo"; } >&5 4647 (eval "$ac_compile") 2>&5 4648 ac_status=$? 4649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4650 test $ac_status = 0; } 4651then : 4652 for ac_file in conftest.o conftest.obj conftest.*; do 4653 test -f "$ac_file" || continue; 4654 case $ac_file in 4655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4657 break;; 4658 esac 4659done 4660else $as_nop 4661 printf "%s\n" "$as_me: failed program was:" >&5 4662sed 's/^/| /' conftest.$ac_ext >&5 4663 4664{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4665printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4666as_fn_error $? "cannot compute suffix of object files: cannot compile 4667See \`config.log' for more details" "$LINENO" 5; } 4668fi 4669rm -f conftest.$ac_cv_objext conftest.$ac_ext 4670fi 4671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4672printf "%s\n" "$ac_cv_objext" >&6; } 4673OBJEXT=$ac_cv_objext 4674ac_objext=$OBJEXT 4675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4676printf %s "checking whether the compiler supports GNU C... " >&6; } 4677if test ${ac_cv_c_compiler_gnu+y} 4678then : 4679 printf %s "(cached) " >&6 4680else $as_nop 4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4682/* end confdefs.h. */ 4683 4684int 4685main (void) 4686{ 4687#ifndef __GNUC__ 4688 choke me 4689#endif 4690 4691 ; 4692 return 0; 4693} 4694_ACEOF 4695if ac_fn_c_try_compile "$LINENO" 4696then : 4697 ac_compiler_gnu=yes 4698else $as_nop 4699 ac_compiler_gnu=no 4700fi 4701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4702ac_cv_c_compiler_gnu=$ac_compiler_gnu 4703 4704fi 4705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4706printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4707ac_compiler_gnu=$ac_cv_c_compiler_gnu 4708 4709if test $ac_compiler_gnu = yes; then 4710 GCC=yes 4711else 4712 GCC= 4713fi 4714ac_test_CFLAGS=${CFLAGS+y} 4715ac_save_CFLAGS=$CFLAGS 4716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4717printf %s "checking whether $CC accepts -g... " >&6; } 4718if test ${ac_cv_prog_cc_g+y} 4719then : 4720 printf %s "(cached) " >&6 4721else $as_nop 4722 ac_save_c_werror_flag=$ac_c_werror_flag 4723 ac_c_werror_flag=yes 4724 ac_cv_prog_cc_g=no 4725 CFLAGS="-g" 4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4727/* end confdefs.h. */ 4728 4729int 4730main (void) 4731{ 4732 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737if ac_fn_c_try_compile "$LINENO" 4738then : 4739 ac_cv_prog_cc_g=yes 4740else $as_nop 4741 CFLAGS="" 4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4743/* end confdefs.h. */ 4744 4745int 4746main (void) 4747{ 4748 4749 ; 4750 return 0; 4751} 4752_ACEOF 4753if ac_fn_c_try_compile "$LINENO" 4754then : 4755 4756else $as_nop 4757 ac_c_werror_flag=$ac_save_c_werror_flag 4758 CFLAGS="-g" 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4760/* end confdefs.h. */ 4761 4762int 4763main (void) 4764{ 4765 4766 ; 4767 return 0; 4768} 4769_ACEOF 4770if ac_fn_c_try_compile "$LINENO" 4771then : 4772 ac_cv_prog_cc_g=yes 4773fi 4774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4775fi 4776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4777fi 4778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4779 ac_c_werror_flag=$ac_save_c_werror_flag 4780fi 4781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4782printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4783if test $ac_test_CFLAGS; then 4784 CFLAGS=$ac_save_CFLAGS 4785elif test $ac_cv_prog_cc_g = yes; then 4786 if test "$GCC" = yes; then 4787 CFLAGS="-g -O2" 4788 else 4789 CFLAGS="-g" 4790 fi 4791else 4792 if test "$GCC" = yes; then 4793 CFLAGS="-O2" 4794 else 4795 CFLAGS= 4796 fi 4797fi 4798ac_prog_cc_stdc=no 4799if test x$ac_prog_cc_stdc = xno 4800then : 4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4802printf %s "checking for $CC option to enable C11 features... " >&6; } 4803if test ${ac_cv_prog_cc_c11+y} 4804then : 4805 printf %s "(cached) " >&6 4806else $as_nop 4807 ac_cv_prog_cc_c11=no 4808ac_save_CC=$CC 4809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4810/* end confdefs.h. */ 4811$ac_c_conftest_c11_program 4812_ACEOF 4813for ac_arg in '' -std=gnu11 4814do 4815 CC="$ac_save_CC $ac_arg" 4816 if ac_fn_c_try_compile "$LINENO" 4817then : 4818 ac_cv_prog_cc_c11=$ac_arg 4819fi 4820rm -f core conftest.err conftest.$ac_objext conftest.beam 4821 test "x$ac_cv_prog_cc_c11" != "xno" && break 4822done 4823rm -f conftest.$ac_ext 4824CC=$ac_save_CC 4825fi 4826 4827if test "x$ac_cv_prog_cc_c11" = xno 4828then : 4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4830printf "%s\n" "unsupported" >&6; } 4831else $as_nop 4832 if test "x$ac_cv_prog_cc_c11" = x 4833then : 4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4835printf "%s\n" "none needed" >&6; } 4836else $as_nop 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4838printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4839 CC="$CC $ac_cv_prog_cc_c11" 4840fi 4841 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4842 ac_prog_cc_stdc=c11 4843fi 4844fi 4845if test x$ac_prog_cc_stdc = xno 4846then : 4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4848printf %s "checking for $CC option to enable C99 features... " >&6; } 4849if test ${ac_cv_prog_cc_c99+y} 4850then : 4851 printf %s "(cached) " >&6 4852else $as_nop 4853 ac_cv_prog_cc_c99=no 4854ac_save_CC=$CC 4855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4856/* end confdefs.h. */ 4857$ac_c_conftest_c99_program 4858_ACEOF 4859for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4860do 4861 CC="$ac_save_CC $ac_arg" 4862 if ac_fn_c_try_compile "$LINENO" 4863then : 4864 ac_cv_prog_cc_c99=$ac_arg 4865fi 4866rm -f core conftest.err conftest.$ac_objext conftest.beam 4867 test "x$ac_cv_prog_cc_c99" != "xno" && break 4868done 4869rm -f conftest.$ac_ext 4870CC=$ac_save_CC 4871fi 4872 4873if test "x$ac_cv_prog_cc_c99" = xno 4874then : 4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4876printf "%s\n" "unsupported" >&6; } 4877else $as_nop 4878 if test "x$ac_cv_prog_cc_c99" = x 4879then : 4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4881printf "%s\n" "none needed" >&6; } 4882else $as_nop 4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4884printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4885 CC="$CC $ac_cv_prog_cc_c99" 4886fi 4887 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4888 ac_prog_cc_stdc=c99 4889fi 4890fi 4891if test x$ac_prog_cc_stdc = xno 4892then : 4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4894printf %s "checking for $CC option to enable C89 features... " >&6; } 4895if test ${ac_cv_prog_cc_c89+y} 4896then : 4897 printf %s "(cached) " >&6 4898else $as_nop 4899 ac_cv_prog_cc_c89=no 4900ac_save_CC=$CC 4901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4902/* end confdefs.h. */ 4903$ac_c_conftest_c89_program 4904_ACEOF 4905for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4906do 4907 CC="$ac_save_CC $ac_arg" 4908 if ac_fn_c_try_compile "$LINENO" 4909then : 4910 ac_cv_prog_cc_c89=$ac_arg 4911fi 4912rm -f core conftest.err conftest.$ac_objext conftest.beam 4913 test "x$ac_cv_prog_cc_c89" != "xno" && break 4914done 4915rm -f conftest.$ac_ext 4916CC=$ac_save_CC 4917fi 4918 4919if test "x$ac_cv_prog_cc_c89" = xno 4920then : 4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4922printf "%s\n" "unsupported" >&6; } 4923else $as_nop 4924 if test "x$ac_cv_prog_cc_c89" = x 4925then : 4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4927printf "%s\n" "none needed" >&6; } 4928else $as_nop 4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4930printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4931 CC="$CC $ac_cv_prog_cc_c89" 4932fi 4933 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4934 ac_prog_cc_stdc=c89 4935fi 4936fi 4937 4938ac_ext=c 4939ac_cpp='$CPP $CPPFLAGS' 4940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4942ac_compiler_gnu=$ac_cv_c_compiler_gnu 4943 4944 4945 ac_ext=c 4946ac_cpp='$CPP $CPPFLAGS' 4947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4949ac_compiler_gnu=$ac_cv_c_compiler_gnu 4950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4951printf %s "checking whether $CC understands -c and -o together... " >&6; } 4952if test ${am_cv_prog_cc_c_o+y} 4953then : 4954 printf %s "(cached) " >&6 4955else $as_nop 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958 4959int 4960main (void) 4961{ 4962 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967 # Make sure it works both with $CC and with simple cc. 4968 # Following AC_PROG_CC_C_O, we do the test twice because some 4969 # compilers refuse to overwrite an existing .o file with -o, 4970 # though they will create one. 4971 am_cv_prog_cc_c_o=yes 4972 for am_i in 1 2; do 4973 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4974 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4975 ac_status=$? 4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4977 (exit $ac_status); } \ 4978 && test -f conftest2.$ac_objext; then 4979 : OK 4980 else 4981 am_cv_prog_cc_c_o=no 4982 break 4983 fi 4984 done 4985 rm -f core conftest* 4986 unset am_i 4987fi 4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4989printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4990if test "$am_cv_prog_cc_c_o" != yes; then 4991 # Losing compiler, so override with the script. 4992 # FIXME: It is wrong to rewrite CC. 4993 # But if we don't then we get into trouble of one sort or another. 4994 # A longer-term fix would be to have automake use am__CC in this case, 4995 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4996 CC="$am_aux_dir/compile $CC" 4997fi 4998ac_ext=c 4999ac_cpp='$CPP $CPPFLAGS' 5000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5002ac_compiler_gnu=$ac_cv_c_compiler_gnu 5003 5004 5005depcc="$CC" am_compiler_list= 5006 5007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5008printf %s "checking dependency style of $depcc... " >&6; } 5009if test ${am_cv_CC_dependencies_compiler_type+y} 5010then : 5011 printf %s "(cached) " >&6 5012else $as_nop 5013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5014 # We make a subdir and do the tests there. Otherwise we can end up 5015 # making bogus files that we don't know about and never remove. For 5016 # instance it was reported that on HP-UX the gcc test will end up 5017 # making a dummy file named 'D' -- because '-MD' means "put the output 5018 # in D". 5019 rm -rf conftest.dir 5020 mkdir conftest.dir 5021 # Copy depcomp to subdir because otherwise we won't find it if we're 5022 # using a relative directory. 5023 cp "$am_depcomp" conftest.dir 5024 cd conftest.dir 5025 # We will build objects and dependencies in a subdirectory because 5026 # it helps to detect inapplicable dependency modes. For instance 5027 # both Tru64's cc and ICC support -MD to output dependencies as a 5028 # side effect of compilation, but ICC will put the dependencies in 5029 # the current directory while Tru64 will put them in the object 5030 # directory. 5031 mkdir sub 5032 5033 am_cv_CC_dependencies_compiler_type=none 5034 if test "$am_compiler_list" = ""; then 5035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5036 fi 5037 am__universal=false 5038 case " $depcc " in #( 5039 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5040 esac 5041 5042 for depmode in $am_compiler_list; do 5043 # Setup a source with many dependencies, because some compilers 5044 # like to wrap large dependency lists on column 80 (with \), and 5045 # we should not choose a depcomp mode which is confused by this. 5046 # 5047 # We need to recreate these files for each test, as the compiler may 5048 # overwrite some of them when testing with obscure command lines. 5049 # This happens at least with the AIX C compiler. 5050 : > sub/conftest.c 5051 for i in 1 2 3 4 5 6; do 5052 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5053 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5054 # Solaris 10 /bin/sh. 5055 echo '/* dummy */' > sub/conftst$i.h 5056 done 5057 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5058 5059 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5060 # mode. It turns out that the SunPro C++ compiler does not properly 5061 # handle '-M -o', and we need to detect this. Also, some Intel 5062 # versions had trouble with output in subdirs. 5063 am__obj=sub/conftest.${OBJEXT-o} 5064 am__minus_obj="-o $am__obj" 5065 case $depmode in 5066 gcc) 5067 # This depmode causes a compiler race in universal mode. 5068 test "$am__universal" = false || continue 5069 ;; 5070 nosideeffect) 5071 # After this tag, mechanisms are not by side-effect, so they'll 5072 # only be used when explicitly requested. 5073 if test "x$enable_dependency_tracking" = xyes; then 5074 continue 5075 else 5076 break 5077 fi 5078 ;; 5079 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5080 # This compiler won't grok '-c -o', but also, the minuso test has 5081 # not run yet. These depmodes are late enough in the game, and 5082 # so weak that their functioning should not be impacted. 5083 am__obj=conftest.${OBJEXT-o} 5084 am__minus_obj= 5085 ;; 5086 none) break ;; 5087 esac 5088 if depmode=$depmode \ 5089 source=sub/conftest.c object=$am__obj \ 5090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5091 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5092 >/dev/null 2>conftest.err && 5093 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5095 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5097 # icc doesn't choke on unknown options, it will just issue warnings 5098 # or remarks (even with -Werror). So we grep stderr for any message 5099 # that says an option was ignored or not supported. 5100 # When given -MP, icc 7.0 and 7.1 complain thusly: 5101 # icc: Command line warning: ignoring option '-M'; no argument required 5102 # The diagnosis changed in icc 8.0: 5103 # icc: Command line remark: option '-MP' not supported 5104 if (grep 'ignoring option' conftest.err || 5105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5106 am_cv_CC_dependencies_compiler_type=$depmode 5107 break 5108 fi 5109 fi 5110 done 5111 5112 cd .. 5113 rm -rf conftest.dir 5114else 5115 am_cv_CC_dependencies_compiler_type=none 5116fi 5117 5118fi 5119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5120printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5121CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5122 5123 if 5124 test "x$enable_dependency_tracking" != xno \ 5125 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5126 am__fastdepCC_TRUE= 5127 am__fastdepCC_FALSE='#' 5128else 5129 am__fastdepCC_TRUE='#' 5130 am__fastdepCC_FALSE= 5131fi 5132 5133 5134 5135ac_header= ac_cache= 5136for ac_item in $ac_header_c_list 5137do 5138 if test $ac_cache; then 5139 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5140 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5141 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5142 fi 5143 ac_header= ac_cache= 5144 elif test $ac_header; then 5145 ac_cache=$ac_item 5146 else 5147 ac_header=$ac_item 5148 fi 5149done 5150 5151 5152 5153 5154 5155 5156 5157 5158if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5159then : 5160 5161printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5162 5163fi 5164 5165 5166 5167 5168 5169 5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5171printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5172if test ${ac_cv_safe_to_define___extensions__+y} 5173then : 5174 printf %s "(cached) " >&6 5175else $as_nop 5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177/* end confdefs.h. */ 5178 5179# define __EXTENSIONS__ 1 5180 $ac_includes_default 5181int 5182main (void) 5183{ 5184 5185 ; 5186 return 0; 5187} 5188_ACEOF 5189if ac_fn_c_try_compile "$LINENO" 5190then : 5191 ac_cv_safe_to_define___extensions__=yes 5192else $as_nop 5193 ac_cv_safe_to_define___extensions__=no 5194fi 5195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5196fi 5197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5198printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5199 5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5201printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5202if test ${ac_cv_should_define__xopen_source+y} 5203then : 5204 printf %s "(cached) " >&6 5205else $as_nop 5206 ac_cv_should_define__xopen_source=no 5207 if test $ac_cv_header_wchar_h = yes 5208then : 5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210/* end confdefs.h. */ 5211 5212 #include <wchar.h> 5213 mbstate_t x; 5214int 5215main (void) 5216{ 5217 5218 ; 5219 return 0; 5220} 5221_ACEOF 5222if ac_fn_c_try_compile "$LINENO" 5223then : 5224 5225else $as_nop 5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5227/* end confdefs.h. */ 5228 5229 #define _XOPEN_SOURCE 500 5230 #include <wchar.h> 5231 mbstate_t x; 5232int 5233main (void) 5234{ 5235 5236 ; 5237 return 0; 5238} 5239_ACEOF 5240if ac_fn_c_try_compile "$LINENO" 5241then : 5242 ac_cv_should_define__xopen_source=yes 5243fi 5244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5245fi 5246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5247fi 5248fi 5249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5250printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5251 5252 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5253 5254 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5255 5256 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5257 5258 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5259 5260 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5261 5262 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5263 5264 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5265 5266 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5267 5268 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5269 5270 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5271 5272 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5273 5274 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5275 5276 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5277 5278 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5279 5280 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5281 5282 if test $ac_cv_header_minix_config_h = yes 5283then : 5284 MINIX=yes 5285 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5286 5287 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5288 5289 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5290 5291else $as_nop 5292 MINIX= 5293fi 5294 if test $ac_cv_safe_to_define___extensions__ = yes 5295then : 5296 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5297 5298fi 5299 if test $ac_cv_should_define__xopen_source = yes 5300then : 5301 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5302 5303fi 5304 5305 5306# Initialize libtool 5307 5308case `pwd` in 5309 *\ * | *\ *) 5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5311printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5312esac 5313 5314 5315 5316macro_version='2.4.6' 5317macro_revision='2.4.6' 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332ltmain=$ac_aux_dir/ltmain.sh 5333 5334 5335 5336 # Make sure we can run config.sub. 5337$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5338 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5339 5340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5341printf %s "checking build system type... " >&6; } 5342if test ${ac_cv_build+y} 5343then : 5344 printf %s "(cached) " >&6 5345else $as_nop 5346 ac_build_alias=$build_alias 5347test "x$ac_build_alias" = x && 5348 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5349test "x$ac_build_alias" = x && 5350 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5351ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5352 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5353 5354fi 5355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5356printf "%s\n" "$ac_cv_build" >&6; } 5357case $ac_cv_build in 5358*-*-*) ;; 5359*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5360esac 5361build=$ac_cv_build 5362ac_save_IFS=$IFS; IFS='-' 5363set x $ac_cv_build 5364shift 5365build_cpu=$1 5366build_vendor=$2 5367shift; shift 5368# Remember, the first character of IFS is used to create $*, 5369# except with old shells: 5370build_os=$* 5371IFS=$ac_save_IFS 5372case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5373 5374 5375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5376printf %s "checking host system type... " >&6; } 5377if test ${ac_cv_host+y} 5378then : 5379 printf %s "(cached) " >&6 5380else $as_nop 5381 if test "x$host_alias" = x; then 5382 ac_cv_host=$ac_cv_build 5383else 5384 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5385 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5386fi 5387 5388fi 5389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5390printf "%s\n" "$ac_cv_host" >&6; } 5391case $ac_cv_host in 5392*-*-*) ;; 5393*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5394esac 5395host=$ac_cv_host 5396ac_save_IFS=$IFS; IFS='-' 5397set x $ac_cv_host 5398shift 5399host_cpu=$1 5400host_vendor=$2 5401shift; shift 5402# Remember, the first character of IFS is used to create $*, 5403# except with old shells: 5404host_os=$* 5405IFS=$ac_save_IFS 5406case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5407 5408 5409# Backslashify metacharacters that are still active within 5410# double-quoted strings. 5411sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5412 5413# Same as above, but do not quote variable references. 5414double_quote_subst='s/\(["`\\]\)/\\\1/g' 5415 5416# Sed substitution to delay expansion of an escaped shell variable in a 5417# double_quote_subst'ed string. 5418delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5419 5420# Sed substitution to delay expansion of an escaped single quote. 5421delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5422 5423# Sed substitution to avoid accidental globbing in evaled expressions 5424no_glob_subst='s/\*/\\\*/g' 5425 5426ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5427ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5428ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5429 5430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5431printf %s "checking how to print strings... " >&6; } 5432# Test print first, because it will be a builtin if present. 5433if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5434 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5435 ECHO='print -r --' 5436elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5437 ECHO='printf %s\n' 5438else 5439 # Use this function as a fallback that always works. 5440 func_fallback_echo () 5441 { 5442 eval 'cat <<_LTECHO_EOF 5443$1 5444_LTECHO_EOF' 5445 } 5446 ECHO='func_fallback_echo' 5447fi 5448 5449# func_echo_all arg... 5450# Invoke $ECHO with all args, space-separated. 5451func_echo_all () 5452{ 5453 $ECHO "" 5454} 5455 5456case $ECHO in 5457 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5458printf "%s\n" "printf" >&6; } ;; 5459 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5460printf "%s\n" "print -r" >&6; } ;; 5461 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5462printf "%s\n" "cat" >&6; } ;; 5463esac 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5479printf %s "checking for a sed that does not truncate output... " >&6; } 5480if test ${ac_cv_path_SED+y} 5481then : 5482 printf %s "(cached) " >&6 5483else $as_nop 5484 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5485 for ac_i in 1 2 3 4 5 6 7; do 5486 ac_script="$ac_script$as_nl$ac_script" 5487 done 5488 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5489 { ac_script=; unset ac_script;} 5490 if test -z "$SED"; then 5491 ac_path_SED_found=false 5492 # Loop through the user's path and test for each of PROGNAME-LIST 5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5494for as_dir in $PATH 5495do 5496 IFS=$as_save_IFS 5497 case $as_dir in #((( 5498 '') as_dir=./ ;; 5499 */) ;; 5500 *) as_dir=$as_dir/ ;; 5501 esac 5502 for ac_prog in sed gsed 5503 do 5504 for ac_exec_ext in '' $ac_executable_extensions; do 5505 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5506 as_fn_executable_p "$ac_path_SED" || continue 5507# Check for GNU ac_path_SED and select it if it is found. 5508 # Check for GNU $ac_path_SED 5509case `"$ac_path_SED" --version 2>&1` in 5510*GNU*) 5511 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5512*) 5513 ac_count=0 5514 printf %s 0123456789 >"conftest.in" 5515 while : 5516 do 5517 cat "conftest.in" "conftest.in" >"conftest.tmp" 5518 mv "conftest.tmp" "conftest.in" 5519 cp "conftest.in" "conftest.nl" 5520 printf "%s\n" '' >> "conftest.nl" 5521 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5523 as_fn_arith $ac_count + 1 && ac_count=$as_val 5524 if test $ac_count -gt ${ac_path_SED_max-0}; then 5525 # Best one so far, save it but keep looking for a better one 5526 ac_cv_path_SED="$ac_path_SED" 5527 ac_path_SED_max=$ac_count 5528 fi 5529 # 10*(2^10) chars as input seems more than enough 5530 test $ac_count -gt 10 && break 5531 done 5532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5533esac 5534 5535 $ac_path_SED_found && break 3 5536 done 5537 done 5538 done 5539IFS=$as_save_IFS 5540 if test -z "$ac_cv_path_SED"; then 5541 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5542 fi 5543else 5544 ac_cv_path_SED=$SED 5545fi 5546 5547fi 5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5549printf "%s\n" "$ac_cv_path_SED" >&6; } 5550 SED="$ac_cv_path_SED" 5551 rm -f conftest.sed 5552 5553test -z "$SED" && SED=sed 5554Xsed="$SED -e 1s/^X//" 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5567printf %s "checking for grep that handles long lines and -e... " >&6; } 5568if test ${ac_cv_path_GREP+y} 5569then : 5570 printf %s "(cached) " >&6 5571else $as_nop 5572 if test -z "$GREP"; then 5573 ac_path_GREP_found=false 5574 # Loop through the user's path and test for each of PROGNAME-LIST 5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5576for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5577do 5578 IFS=$as_save_IFS 5579 case $as_dir in #((( 5580 '') as_dir=./ ;; 5581 */) ;; 5582 *) as_dir=$as_dir/ ;; 5583 esac 5584 for ac_prog in grep ggrep 5585 do 5586 for ac_exec_ext in '' $ac_executable_extensions; do 5587 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5588 as_fn_executable_p "$ac_path_GREP" || continue 5589# Check for GNU ac_path_GREP and select it if it is found. 5590 # Check for GNU $ac_path_GREP 5591case `"$ac_path_GREP" --version 2>&1` in 5592*GNU*) 5593 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5594*) 5595 ac_count=0 5596 printf %s 0123456789 >"conftest.in" 5597 while : 5598 do 5599 cat "conftest.in" "conftest.in" >"conftest.tmp" 5600 mv "conftest.tmp" "conftest.in" 5601 cp "conftest.in" "conftest.nl" 5602 printf "%s\n" 'GREP' >> "conftest.nl" 5603 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5605 as_fn_arith $ac_count + 1 && ac_count=$as_val 5606 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5607 # Best one so far, save it but keep looking for a better one 5608 ac_cv_path_GREP="$ac_path_GREP" 5609 ac_path_GREP_max=$ac_count 5610 fi 5611 # 10*(2^10) chars as input seems more than enough 5612 test $ac_count -gt 10 && break 5613 done 5614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5615esac 5616 5617 $ac_path_GREP_found && break 3 5618 done 5619 done 5620 done 5621IFS=$as_save_IFS 5622 if test -z "$ac_cv_path_GREP"; then 5623 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5624 fi 5625else 5626 ac_cv_path_GREP=$GREP 5627fi 5628 5629fi 5630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5631printf "%s\n" "$ac_cv_path_GREP" >&6; } 5632 GREP="$ac_cv_path_GREP" 5633 5634 5635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5636printf %s "checking for egrep... " >&6; } 5637if test ${ac_cv_path_EGREP+y} 5638then : 5639 printf %s "(cached) " >&6 5640else $as_nop 5641 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5642 then ac_cv_path_EGREP="$GREP -E" 5643 else 5644 if test -z "$EGREP"; then 5645 ac_path_EGREP_found=false 5646 # Loop through the user's path and test for each of PROGNAME-LIST 5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5649do 5650 IFS=$as_save_IFS 5651 case $as_dir in #((( 5652 '') as_dir=./ ;; 5653 */) ;; 5654 *) as_dir=$as_dir/ ;; 5655 esac 5656 for ac_prog in egrep 5657 do 5658 for ac_exec_ext in '' $ac_executable_extensions; do 5659 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5660 as_fn_executable_p "$ac_path_EGREP" || continue 5661# Check for GNU ac_path_EGREP and select it if it is found. 5662 # Check for GNU $ac_path_EGREP 5663case `"$ac_path_EGREP" --version 2>&1` in 5664*GNU*) 5665 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5666*) 5667 ac_count=0 5668 printf %s 0123456789 >"conftest.in" 5669 while : 5670 do 5671 cat "conftest.in" "conftest.in" >"conftest.tmp" 5672 mv "conftest.tmp" "conftest.in" 5673 cp "conftest.in" "conftest.nl" 5674 printf "%s\n" 'EGREP' >> "conftest.nl" 5675 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5677 as_fn_arith $ac_count + 1 && ac_count=$as_val 5678 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5679 # Best one so far, save it but keep looking for a better one 5680 ac_cv_path_EGREP="$ac_path_EGREP" 5681 ac_path_EGREP_max=$ac_count 5682 fi 5683 # 10*(2^10) chars as input seems more than enough 5684 test $ac_count -gt 10 && break 5685 done 5686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5687esac 5688 5689 $ac_path_EGREP_found && break 3 5690 done 5691 done 5692 done 5693IFS=$as_save_IFS 5694 if test -z "$ac_cv_path_EGREP"; then 5695 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5696 fi 5697else 5698 ac_cv_path_EGREP=$EGREP 5699fi 5700 5701 fi 5702fi 5703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5704printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5705 EGREP="$ac_cv_path_EGREP" 5706 5707 5708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5709printf %s "checking for fgrep... " >&6; } 5710if test ${ac_cv_path_FGREP+y} 5711then : 5712 printf %s "(cached) " >&6 5713else $as_nop 5714 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5715 then ac_cv_path_FGREP="$GREP -F" 5716 else 5717 if test -z "$FGREP"; then 5718 ac_path_FGREP_found=false 5719 # Loop through the user's path and test for each of PROGNAME-LIST 5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5721for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5722do 5723 IFS=$as_save_IFS 5724 case $as_dir in #((( 5725 '') as_dir=./ ;; 5726 */) ;; 5727 *) as_dir=$as_dir/ ;; 5728 esac 5729 for ac_prog in fgrep 5730 do 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5733 as_fn_executable_p "$ac_path_FGREP" || continue 5734# Check for GNU ac_path_FGREP and select it if it is found. 5735 # Check for GNU $ac_path_FGREP 5736case `"$ac_path_FGREP" --version 2>&1` in 5737*GNU*) 5738 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5739*) 5740 ac_count=0 5741 printf %s 0123456789 >"conftest.in" 5742 while : 5743 do 5744 cat "conftest.in" "conftest.in" >"conftest.tmp" 5745 mv "conftest.tmp" "conftest.in" 5746 cp "conftest.in" "conftest.nl" 5747 printf "%s\n" 'FGREP' >> "conftest.nl" 5748 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5750 as_fn_arith $ac_count + 1 && ac_count=$as_val 5751 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5752 # Best one so far, save it but keep looking for a better one 5753 ac_cv_path_FGREP="$ac_path_FGREP" 5754 ac_path_FGREP_max=$ac_count 5755 fi 5756 # 10*(2^10) chars as input seems more than enough 5757 test $ac_count -gt 10 && break 5758 done 5759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5760esac 5761 5762 $ac_path_FGREP_found && break 3 5763 done 5764 done 5765 done 5766IFS=$as_save_IFS 5767 if test -z "$ac_cv_path_FGREP"; then 5768 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5769 fi 5770else 5771 ac_cv_path_FGREP=$FGREP 5772fi 5773 5774 fi 5775fi 5776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5777printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5778 FGREP="$ac_cv_path_FGREP" 5779 5780 5781test -z "$GREP" && GREP=grep 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801# Check whether --with-gnu-ld was given. 5802if test ${with_gnu_ld+y} 5803then : 5804 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5805else $as_nop 5806 with_gnu_ld=no 5807fi 5808 5809ac_prog=ld 5810if test yes = "$GCC"; then 5811 # Check if gcc -print-prog-name=ld gives a path. 5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5813printf %s "checking for ld used by $CC... " >&6; } 5814 case $host in 5815 *-*-mingw*) 5816 # gcc leaves a trailing carriage return, which upsets mingw 5817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5818 *) 5819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5820 esac 5821 case $ac_prog in 5822 # Accept absolute paths. 5823 [\\/]* | ?:[\\/]*) 5824 re_direlt='/[^/][^/]*/\.\./' 5825 # Canonicalize the pathname of ld 5826 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5827 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5828 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5829 done 5830 test -z "$LD" && LD=$ac_prog 5831 ;; 5832 "") 5833 # If it fails, then pretend we aren't using GCC. 5834 ac_prog=ld 5835 ;; 5836 *) 5837 # If it is relative, then search for the first ld in PATH. 5838 with_gnu_ld=unknown 5839 ;; 5840 esac 5841elif test yes = "$with_gnu_ld"; then 5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5843printf %s "checking for GNU ld... " >&6; } 5844else 5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5846printf %s "checking for non-GNU ld... " >&6; } 5847fi 5848if test ${lt_cv_path_LD+y} 5849then : 5850 printf %s "(cached) " >&6 5851else $as_nop 5852 if test -z "$LD"; then 5853 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5854 for ac_dir in $PATH; do 5855 IFS=$lt_save_ifs 5856 test -z "$ac_dir" && ac_dir=. 5857 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5858 lt_cv_path_LD=$ac_dir/$ac_prog 5859 # Check to see if the program is GNU ld. I'd rather use --version, 5860 # but apparently some variants of GNU ld only accept -v. 5861 # Break only if it was the GNU/non-GNU ld that we prefer. 5862 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5863 *GNU* | *'with BFD'*) 5864 test no != "$with_gnu_ld" && break 5865 ;; 5866 *) 5867 test yes != "$with_gnu_ld" && break 5868 ;; 5869 esac 5870 fi 5871 done 5872 IFS=$lt_save_ifs 5873else 5874 lt_cv_path_LD=$LD # Let the user override the test with a path. 5875fi 5876fi 5877 5878LD=$lt_cv_path_LD 5879if test -n "$LD"; then 5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5881printf "%s\n" "$LD" >&6; } 5882else 5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5884printf "%s\n" "no" >&6; } 5885fi 5886test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5888printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5889if test ${lt_cv_prog_gnu_ld+y} 5890then : 5891 printf %s "(cached) " >&6 5892else $as_nop 5893 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5894case `$LD -v 2>&1 </dev/null` in 5895*GNU* | *'with BFD'*) 5896 lt_cv_prog_gnu_ld=yes 5897 ;; 5898*) 5899 lt_cv_prog_gnu_ld=no 5900 ;; 5901esac 5902fi 5903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5904printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5905with_gnu_ld=$lt_cv_prog_gnu_ld 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5916printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5917if test ${lt_cv_path_NM+y} 5918then : 5919 printf %s "(cached) " >&6 5920else $as_nop 5921 if test -n "$NM"; then 5922 # Let the user override the test. 5923 lt_cv_path_NM=$NM 5924else 5925 lt_nm_to_check=${ac_tool_prefix}nm 5926 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5927 lt_nm_to_check="$lt_nm_to_check nm" 5928 fi 5929 for lt_tmp_nm in $lt_nm_to_check; do 5930 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5931 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5932 IFS=$lt_save_ifs 5933 test -z "$ac_dir" && ac_dir=. 5934 tmp_nm=$ac_dir/$lt_tmp_nm 5935 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5936 # Check to see if the nm accepts a BSD-compat flag. 5937 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5938 # nm: unknown option "B" ignored 5939 # Tru64's nm complains that /dev/null is an invalid object file 5940 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5941 case $build_os in 5942 mingw*) lt_bad_file=conftest.nm/nofile ;; 5943 *) lt_bad_file=/dev/null ;; 5944 esac 5945 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5946 *$lt_bad_file* | *'Invalid file or object type'*) 5947 lt_cv_path_NM="$tmp_nm -B" 5948 break 2 5949 ;; 5950 *) 5951 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5952 */dev/null*) 5953 lt_cv_path_NM="$tmp_nm -p" 5954 break 2 5955 ;; 5956 *) 5957 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5958 continue # so that we can try to find one that supports BSD flags 5959 ;; 5960 esac 5961 ;; 5962 esac 5963 fi 5964 done 5965 IFS=$lt_save_ifs 5966 done 5967 : ${lt_cv_path_NM=no} 5968fi 5969fi 5970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5971printf "%s\n" "$lt_cv_path_NM" >&6; } 5972if test no != "$lt_cv_path_NM"; then 5973 NM=$lt_cv_path_NM 5974else 5975 # Didn't find any BSD compatible name lister, look for dumpbin. 5976 if test -n "$DUMPBIN"; then : 5977 # Let the user override the test. 5978 else 5979 if test -n "$ac_tool_prefix"; then 5980 for ac_prog in dumpbin "link -dump" 5981 do 5982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5983set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5985printf %s "checking for $ac_word... " >&6; } 5986if test ${ac_cv_prog_DUMPBIN+y} 5987then : 5988 printf %s "(cached) " >&6 5989else $as_nop 5990 if test -n "$DUMPBIN"; then 5991 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5992else 5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5994for as_dir in $PATH 5995do 5996 IFS=$as_save_IFS 5997 case $as_dir in #((( 5998 '') as_dir=./ ;; 5999 */) ;; 6000 *) as_dir=$as_dir/ ;; 6001 esac 6002 for ac_exec_ext in '' $ac_executable_extensions; do 6003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6004 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6006 break 2 6007 fi 6008done 6009 done 6010IFS=$as_save_IFS 6011 6012fi 6013fi 6014DUMPBIN=$ac_cv_prog_DUMPBIN 6015if test -n "$DUMPBIN"; then 6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6017printf "%s\n" "$DUMPBIN" >&6; } 6018else 6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6020printf "%s\n" "no" >&6; } 6021fi 6022 6023 6024 test -n "$DUMPBIN" && break 6025 done 6026fi 6027if test -z "$DUMPBIN"; then 6028 ac_ct_DUMPBIN=$DUMPBIN 6029 for ac_prog in dumpbin "link -dump" 6030do 6031 # Extract the first word of "$ac_prog", so it can be a program name with args. 6032set dummy $ac_prog; ac_word=$2 6033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6034printf %s "checking for $ac_word... " >&6; } 6035if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6036then : 6037 printf %s "(cached) " >&6 6038else $as_nop 6039 if test -n "$ac_ct_DUMPBIN"; then 6040 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6041else 6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6043for as_dir in $PATH 6044do 6045 IFS=$as_save_IFS 6046 case $as_dir in #((( 6047 '') as_dir=./ ;; 6048 */) ;; 6049 *) as_dir=$as_dir/ ;; 6050 esac 6051 for ac_exec_ext in '' $ac_executable_extensions; do 6052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6053 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6055 break 2 6056 fi 6057done 6058 done 6059IFS=$as_save_IFS 6060 6061fi 6062fi 6063ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6064if test -n "$ac_ct_DUMPBIN"; then 6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6066printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6067else 6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6069printf "%s\n" "no" >&6; } 6070fi 6071 6072 6073 test -n "$ac_ct_DUMPBIN" && break 6074done 6075 6076 if test "x$ac_ct_DUMPBIN" = x; then 6077 DUMPBIN=":" 6078 else 6079 case $cross_compiling:$ac_tool_warned in 6080yes:) 6081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6082printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6083ac_tool_warned=yes ;; 6084esac 6085 DUMPBIN=$ac_ct_DUMPBIN 6086 fi 6087fi 6088 6089 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6090 *COFF*) 6091 DUMPBIN="$DUMPBIN -symbols -headers" 6092 ;; 6093 *) 6094 DUMPBIN=: 6095 ;; 6096 esac 6097 fi 6098 6099 if test : != "$DUMPBIN"; then 6100 NM=$DUMPBIN 6101 fi 6102fi 6103test -z "$NM" && NM=nm 6104 6105 6106 6107 6108 6109 6110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6111printf %s "checking the name lister ($NM) interface... " >&6; } 6112if test ${lt_cv_nm_interface+y} 6113then : 6114 printf %s "(cached) " >&6 6115else $as_nop 6116 lt_cv_nm_interface="BSD nm" 6117 echo "int some_variable = 0;" > conftest.$ac_ext 6118 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6119 (eval "$ac_compile" 2>conftest.err) 6120 cat conftest.err >&5 6121 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6122 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6123 cat conftest.err >&5 6124 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6125 cat conftest.out >&5 6126 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6127 lt_cv_nm_interface="MS dumpbin" 6128 fi 6129 rm -f conftest* 6130fi 6131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6132printf "%s\n" "$lt_cv_nm_interface" >&6; } 6133 6134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6135printf %s "checking whether ln -s works... " >&6; } 6136LN_S=$as_ln_s 6137if test "$LN_S" = "ln -s"; then 6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6139printf "%s\n" "yes" >&6; } 6140else 6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6142printf "%s\n" "no, using $LN_S" >&6; } 6143fi 6144 6145# find the maximum length of command line arguments 6146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6147printf %s "checking the maximum length of command line arguments... " >&6; } 6148if test ${lt_cv_sys_max_cmd_len+y} 6149then : 6150 printf %s "(cached) " >&6 6151else $as_nop 6152 i=0 6153 teststring=ABCD 6154 6155 case $build_os in 6156 msdosdjgpp*) 6157 # On DJGPP, this test can blow up pretty badly due to problems in libc 6158 # (any single argument exceeding 2000 bytes causes a buffer overrun 6159 # during glob expansion). Even if it were fixed, the result of this 6160 # check would be larger than it should be. 6161 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6162 ;; 6163 6164 gnu*) 6165 # Under GNU Hurd, this test is not required because there is 6166 # no limit to the length of command line arguments. 6167 # Libtool will interpret -1 as no limit whatsoever 6168 lt_cv_sys_max_cmd_len=-1; 6169 ;; 6170 6171 cygwin* | mingw* | cegcc*) 6172 # On Win9x/ME, this test blows up -- it succeeds, but takes 6173 # about 5 minutes as the teststring grows exponentially. 6174 # Worse, since 9x/ME are not pre-emptively multitasking, 6175 # you end up with a "frozen" computer, even though with patience 6176 # the test eventually succeeds (with a max line length of 256k). 6177 # Instead, let's just punt: use the minimum linelength reported by 6178 # all of the supported platforms: 8192 (on NT/2K/XP). 6179 lt_cv_sys_max_cmd_len=8192; 6180 ;; 6181 6182 mint*) 6183 # On MiNT this can take a long time and run out of memory. 6184 lt_cv_sys_max_cmd_len=8192; 6185 ;; 6186 6187 mint*) 6188 # On MiNT this can take a long time and run out of memory. 6189 lt_cv_sys_max_cmd_len=8192; 6190 ;; 6191 6192 amigaos*) 6193 # On AmigaOS with pdksh, this test takes hours, literally. 6194 # So we just punt and use a minimum line length of 8192. 6195 lt_cv_sys_max_cmd_len=8192; 6196 ;; 6197 6198 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6199 # This has been around since 386BSD, at least. Likely further. 6200 if test -x /sbin/sysctl; then 6201 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6202 elif test -x /usr/sbin/sysctl; then 6203 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6204 else 6205 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6206 fi 6207 # And add a safety zone 6208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6210 ;; 6211 6212 interix*) 6213 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6214 lt_cv_sys_max_cmd_len=196608 6215 ;; 6216 6217 os2*) 6218 # The test takes a long time on OS/2. 6219 lt_cv_sys_max_cmd_len=8192 6220 ;; 6221 6222 osf*) 6223 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6224 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6225 # nice to cause kernel panics so lets avoid the loop below. 6226 # First set a reasonable default. 6227 lt_cv_sys_max_cmd_len=16384 6228 # 6229 if test -x /sbin/sysconfig; then 6230 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6231 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6232 esac 6233 fi 6234 ;; 6235 sco3.2v5*) 6236 lt_cv_sys_max_cmd_len=102400 6237 ;; 6238 sysv5* | sco5v6* | sysv4.2uw2*) 6239 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6240 if test -n "$kargmax"; then 6241 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6242 else 6243 lt_cv_sys_max_cmd_len=32768 6244 fi 6245 ;; 6246 *) 6247 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6248 if test -n "$lt_cv_sys_max_cmd_len" && \ 6249 test undefined != "$lt_cv_sys_max_cmd_len"; then 6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6252 else 6253 # Make teststring a little bigger before we do anything with it. 6254 # a 1K string should be a reasonable start. 6255 for i in 1 2 3 4 5 6 7 8; do 6256 teststring=$teststring$teststring 6257 done 6258 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6259 # If test is not a shell built-in, we'll probably end up computing a 6260 # maximum length that is only half of the actual maximum length, but 6261 # we can't tell. 6262 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6263 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6264 test 17 != "$i" # 1/2 MB should be enough 6265 do 6266 i=`expr $i + 1` 6267 teststring=$teststring$teststring 6268 done 6269 # Only check the string length outside the loop. 6270 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6271 teststring= 6272 # Add a significant safety factor because C++ compilers can tack on 6273 # massive amounts of additional arguments before passing them to the 6274 # linker. It appears as though 1/2 is a usable value. 6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6276 fi 6277 ;; 6278 esac 6279 6280fi 6281 6282if test -n "$lt_cv_sys_max_cmd_len"; then 6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6284printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6285else 6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6287printf "%s\n" "none" >&6; } 6288fi 6289max_cmd_len=$lt_cv_sys_max_cmd_len 6290 6291 6292 6293 6294 6295 6296: ${CP="cp -f"} 6297: ${MV="mv -f"} 6298: ${RM="rm -f"} 6299 6300if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6301 lt_unset=unset 6302else 6303 lt_unset=false 6304fi 6305 6306 6307 6308 6309 6310# test EBCDIC or ASCII 6311case `echo X|tr X '\101'` in 6312 A) # ASCII based system 6313 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6314 lt_SP2NL='tr \040 \012' 6315 lt_NL2SP='tr \015\012 \040\040' 6316 ;; 6317 *) # EBCDIC based system 6318 lt_SP2NL='tr \100 \n' 6319 lt_NL2SP='tr \r\n \100\100' 6320 ;; 6321esac 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6332printf %s "checking how to convert $build file names to $host format... " >&6; } 6333if test ${lt_cv_to_host_file_cmd+y} 6334then : 6335 printf %s "(cached) " >&6 6336else $as_nop 6337 case $host in 6338 *-*-mingw* ) 6339 case $build in 6340 *-*-mingw* ) # actually msys 6341 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6342 ;; 6343 *-*-cygwin* ) 6344 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6345 ;; 6346 * ) # otherwise, assume *nix 6347 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6348 ;; 6349 esac 6350 ;; 6351 *-*-cygwin* ) 6352 case $build in 6353 *-*-mingw* ) # actually msys 6354 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6355 ;; 6356 *-*-cygwin* ) 6357 lt_cv_to_host_file_cmd=func_convert_file_noop 6358 ;; 6359 * ) # otherwise, assume *nix 6360 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6361 ;; 6362 esac 6363 ;; 6364 * ) # unhandled hosts (and "normal" native builds) 6365 lt_cv_to_host_file_cmd=func_convert_file_noop 6366 ;; 6367esac 6368 6369fi 6370 6371to_host_file_cmd=$lt_cv_to_host_file_cmd 6372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6373printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6374 6375 6376 6377 6378 6379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6380printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6381if test ${lt_cv_to_tool_file_cmd+y} 6382then : 6383 printf %s "(cached) " >&6 6384else $as_nop 6385 #assume ordinary cross tools, or native build. 6386lt_cv_to_tool_file_cmd=func_convert_file_noop 6387case $host in 6388 *-*-mingw* ) 6389 case $build in 6390 *-*-mingw* ) # actually msys 6391 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6392 ;; 6393 esac 6394 ;; 6395esac 6396 6397fi 6398 6399to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6401printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6402 6403 6404 6405 6406 6407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6408printf %s "checking for $LD option to reload object files... " >&6; } 6409if test ${lt_cv_ld_reload_flag+y} 6410then : 6411 printf %s "(cached) " >&6 6412else $as_nop 6413 lt_cv_ld_reload_flag='-r' 6414fi 6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6416printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6417reload_flag=$lt_cv_ld_reload_flag 6418case $reload_flag in 6419"" | " "*) ;; 6420*) reload_flag=" $reload_flag" ;; 6421esac 6422reload_cmds='$LD$reload_flag -o $output$reload_objs' 6423case $host_os in 6424 cygwin* | mingw* | pw32* | cegcc*) 6425 if test yes != "$GCC"; then 6426 reload_cmds=false 6427 fi 6428 ;; 6429 darwin*) 6430 if test yes = "$GCC"; then 6431 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6432 else 6433 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6434 fi 6435 ;; 6436esac 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446if test -n "$ac_tool_prefix"; then 6447 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6448set dummy ${ac_tool_prefix}objdump; ac_word=$2 6449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6450printf %s "checking for $ac_word... " >&6; } 6451if test ${ac_cv_prog_OBJDUMP+y} 6452then : 6453 printf %s "(cached) " >&6 6454else $as_nop 6455 if test -n "$OBJDUMP"; then 6456 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6457else 6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6459for as_dir in $PATH 6460do 6461 IFS=$as_save_IFS 6462 case $as_dir in #((( 6463 '') as_dir=./ ;; 6464 */) ;; 6465 *) as_dir=$as_dir/ ;; 6466 esac 6467 for ac_exec_ext in '' $ac_executable_extensions; do 6468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6469 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6471 break 2 6472 fi 6473done 6474 done 6475IFS=$as_save_IFS 6476 6477fi 6478fi 6479OBJDUMP=$ac_cv_prog_OBJDUMP 6480if test -n "$OBJDUMP"; then 6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6482printf "%s\n" "$OBJDUMP" >&6; } 6483else 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6485printf "%s\n" "no" >&6; } 6486fi 6487 6488 6489fi 6490if test -z "$ac_cv_prog_OBJDUMP"; then 6491 ac_ct_OBJDUMP=$OBJDUMP 6492 # Extract the first word of "objdump", so it can be a program name with args. 6493set dummy objdump; ac_word=$2 6494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6495printf %s "checking for $ac_word... " >&6; } 6496if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6497then : 6498 printf %s "(cached) " >&6 6499else $as_nop 6500 if test -n "$ac_ct_OBJDUMP"; then 6501 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6502else 6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6504for as_dir in $PATH 6505do 6506 IFS=$as_save_IFS 6507 case $as_dir in #((( 6508 '') as_dir=./ ;; 6509 */) ;; 6510 *) as_dir=$as_dir/ ;; 6511 esac 6512 for ac_exec_ext in '' $ac_executable_extensions; do 6513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6514 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6516 break 2 6517 fi 6518done 6519 done 6520IFS=$as_save_IFS 6521 6522fi 6523fi 6524ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6525if test -n "$ac_ct_OBJDUMP"; then 6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6527printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6528else 6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6530printf "%s\n" "no" >&6; } 6531fi 6532 6533 if test "x$ac_ct_OBJDUMP" = x; then 6534 OBJDUMP="false" 6535 else 6536 case $cross_compiling:$ac_tool_warned in 6537yes:) 6538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6539printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6540ac_tool_warned=yes ;; 6541esac 6542 OBJDUMP=$ac_ct_OBJDUMP 6543 fi 6544else 6545 OBJDUMP="$ac_cv_prog_OBJDUMP" 6546fi 6547 6548test -z "$OBJDUMP" && OBJDUMP=objdump 6549 6550 6551 6552 6553 6554 6555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6556printf %s "checking how to recognize dependent libraries... " >&6; } 6557if test ${lt_cv_deplibs_check_method+y} 6558then : 6559 printf %s "(cached) " >&6 6560else $as_nop 6561 lt_cv_file_magic_cmd='$MAGIC_CMD' 6562lt_cv_file_magic_test_file= 6563lt_cv_deplibs_check_method='unknown' 6564# Need to set the preceding variable on all platforms that support 6565# interlibrary dependencies. 6566# 'none' -- dependencies not supported. 6567# 'unknown' -- same as none, but documents that we really don't know. 6568# 'pass_all' -- all dependencies passed with no checks. 6569# 'test_compile' -- check by making test program. 6570# 'file_magic [[regex]]' -- check by looking for files in library path 6571# that responds to the $file_magic_cmd with a given extended regex. 6572# If you have 'file' or equivalent on your system and you're not sure 6573# whether 'pass_all' will *always* work, you probably want this one. 6574 6575case $host_os in 6576aix[4-9]*) 6577 lt_cv_deplibs_check_method=pass_all 6578 ;; 6579 6580beos*) 6581 lt_cv_deplibs_check_method=pass_all 6582 ;; 6583 6584bsdi[45]*) 6585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6586 lt_cv_file_magic_cmd='/usr/bin/file -L' 6587 lt_cv_file_magic_test_file=/shlib/libc.so 6588 ;; 6589 6590cygwin*) 6591 # func_win32_libid is a shell function defined in ltmain.sh 6592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6593 lt_cv_file_magic_cmd='func_win32_libid' 6594 ;; 6595 6596mingw* | pw32*) 6597 # Base MSYS/MinGW do not provide the 'file' command needed by 6598 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6599 # unless we find 'file', for example because we are cross-compiling. 6600 if ( file / ) >/dev/null 2>&1; then 6601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6602 lt_cv_file_magic_cmd='func_win32_libid' 6603 else 6604 # Keep this pattern in sync with the one in func_win32_libid. 6605 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6606 lt_cv_file_magic_cmd='$OBJDUMP -f' 6607 fi 6608 ;; 6609 6610cegcc*) 6611 # use the weaker test based on 'objdump'. See mingw*. 6612 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6613 lt_cv_file_magic_cmd='$OBJDUMP -f' 6614 ;; 6615 6616darwin* | rhapsody*) 6617 lt_cv_deplibs_check_method=pass_all 6618 ;; 6619 6620freebsd* | dragonfly*) 6621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6622 case $host_cpu in 6623 i*86 ) 6624 # Not sure whether the presence of OpenBSD here was a mistake. 6625 # Let's accept both of them until this is cleared up. 6626 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6627 lt_cv_file_magic_cmd=/usr/bin/file 6628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6629 ;; 6630 esac 6631 else 6632 lt_cv_deplibs_check_method=pass_all 6633 fi 6634 ;; 6635 6636haiku*) 6637 lt_cv_deplibs_check_method=pass_all 6638 ;; 6639 6640hpux10.20* | hpux11*) 6641 lt_cv_file_magic_cmd=/usr/bin/file 6642 case $host_cpu in 6643 ia64*) 6644 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6646 ;; 6647 hppa*64*) 6648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6649 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6650 ;; 6651 *) 6652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6653 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6654 ;; 6655 esac 6656 ;; 6657 6658interix[3-9]*) 6659 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6661 ;; 6662 6663irix5* | irix6* | nonstopux*) 6664 case $LD in 6665 *-32|*"-32 ") libmagic=32-bit;; 6666 *-n32|*"-n32 ") libmagic=N32;; 6667 *-64|*"-64 ") libmagic=64-bit;; 6668 *) libmagic=never-match;; 6669 esac 6670 lt_cv_deplibs_check_method=pass_all 6671 ;; 6672 6673# This must be glibc/ELF. 6674linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6675 lt_cv_deplibs_check_method=pass_all 6676 ;; 6677 6678netbsd*) 6679 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6681 else 6682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6683 fi 6684 ;; 6685 6686newos6*) 6687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6688 lt_cv_file_magic_cmd=/usr/bin/file 6689 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6690 ;; 6691 6692*nto* | *qnx*) 6693 lt_cv_deplibs_check_method=pass_all 6694 ;; 6695 6696openbsd* | bitrig*) 6697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6699 else 6700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6701 fi 6702 ;; 6703 6704osf3* | osf4* | osf5*) 6705 lt_cv_deplibs_check_method=pass_all 6706 ;; 6707 6708rdos*) 6709 lt_cv_deplibs_check_method=pass_all 6710 ;; 6711 6712solaris*) 6713 lt_cv_deplibs_check_method=pass_all 6714 ;; 6715 6716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6717 lt_cv_deplibs_check_method=pass_all 6718 ;; 6719 6720sysv4 | sysv4.3*) 6721 case $host_vendor in 6722 motorola) 6723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6725 ;; 6726 ncr) 6727 lt_cv_deplibs_check_method=pass_all 6728 ;; 6729 sequent) 6730 lt_cv_file_magic_cmd='/bin/file' 6731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6732 ;; 6733 sni) 6734 lt_cv_file_magic_cmd='/bin/file' 6735 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6736 lt_cv_file_magic_test_file=/lib/libc.so 6737 ;; 6738 siemens) 6739 lt_cv_deplibs_check_method=pass_all 6740 ;; 6741 pc) 6742 lt_cv_deplibs_check_method=pass_all 6743 ;; 6744 esac 6745 ;; 6746 6747tpf*) 6748 lt_cv_deplibs_check_method=pass_all 6749 ;; 6750os2*) 6751 lt_cv_deplibs_check_method=pass_all 6752 ;; 6753esac 6754 6755fi 6756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6757printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6758 6759file_magic_glob= 6760want_nocaseglob=no 6761if test "$build" = "$host"; then 6762 case $host_os in 6763 mingw* | pw32*) 6764 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6765 want_nocaseglob=yes 6766 else 6767 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6768 fi 6769 ;; 6770 esac 6771fi 6772 6773file_magic_cmd=$lt_cv_file_magic_cmd 6774deplibs_check_method=$lt_cv_deplibs_check_method 6775test -z "$deplibs_check_method" && deplibs_check_method=unknown 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798if test -n "$ac_tool_prefix"; then 6799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6800set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6802printf %s "checking for $ac_word... " >&6; } 6803if test ${ac_cv_prog_DLLTOOL+y} 6804then : 6805 printf %s "(cached) " >&6 6806else $as_nop 6807 if test -n "$DLLTOOL"; then 6808 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6809else 6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6811for as_dir in $PATH 6812do 6813 IFS=$as_save_IFS 6814 case $as_dir in #((( 6815 '') as_dir=./ ;; 6816 */) ;; 6817 *) as_dir=$as_dir/ ;; 6818 esac 6819 for ac_exec_ext in '' $ac_executable_extensions; do 6820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6821 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6823 break 2 6824 fi 6825done 6826 done 6827IFS=$as_save_IFS 6828 6829fi 6830fi 6831DLLTOOL=$ac_cv_prog_DLLTOOL 6832if test -n "$DLLTOOL"; then 6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6834printf "%s\n" "$DLLTOOL" >&6; } 6835else 6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6837printf "%s\n" "no" >&6; } 6838fi 6839 6840 6841fi 6842if test -z "$ac_cv_prog_DLLTOOL"; then 6843 ac_ct_DLLTOOL=$DLLTOOL 6844 # Extract the first word of "dlltool", so it can be a program name with args. 6845set dummy dlltool; ac_word=$2 6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6847printf %s "checking for $ac_word... " >&6; } 6848if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6849then : 6850 printf %s "(cached) " >&6 6851else $as_nop 6852 if test -n "$ac_ct_DLLTOOL"; then 6853 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6854else 6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6856for as_dir in $PATH 6857do 6858 IFS=$as_save_IFS 6859 case $as_dir in #((( 6860 '') as_dir=./ ;; 6861 */) ;; 6862 *) as_dir=$as_dir/ ;; 6863 esac 6864 for ac_exec_ext in '' $ac_executable_extensions; do 6865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6866 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6868 break 2 6869 fi 6870done 6871 done 6872IFS=$as_save_IFS 6873 6874fi 6875fi 6876ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6877if test -n "$ac_ct_DLLTOOL"; then 6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6879printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6880else 6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6882printf "%s\n" "no" >&6; } 6883fi 6884 6885 if test "x$ac_ct_DLLTOOL" = x; then 6886 DLLTOOL="false" 6887 else 6888 case $cross_compiling:$ac_tool_warned in 6889yes:) 6890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6891printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6892ac_tool_warned=yes ;; 6893esac 6894 DLLTOOL=$ac_ct_DLLTOOL 6895 fi 6896else 6897 DLLTOOL="$ac_cv_prog_DLLTOOL" 6898fi 6899 6900test -z "$DLLTOOL" && DLLTOOL=dlltool 6901 6902 6903 6904 6905 6906 6907 6908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6909printf %s "checking how to associate runtime and link libraries... " >&6; } 6910if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6911then : 6912 printf %s "(cached) " >&6 6913else $as_nop 6914 lt_cv_sharedlib_from_linklib_cmd='unknown' 6915 6916case $host_os in 6917cygwin* | mingw* | pw32* | cegcc*) 6918 # two different shell functions defined in ltmain.sh; 6919 # decide which one to use based on capabilities of $DLLTOOL 6920 case `$DLLTOOL --help 2>&1` in 6921 *--identify-strict*) 6922 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6923 ;; 6924 *) 6925 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6926 ;; 6927 esac 6928 ;; 6929*) 6930 # fallback: assume linklib IS sharedlib 6931 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6932 ;; 6933esac 6934 6935fi 6936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6937printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6938sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6939test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6940 6941 6942 6943 6944 6945 6946 6947if test -n "$ac_tool_prefix"; then 6948 for ac_prog in ar 6949 do 6950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6951set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6953printf %s "checking for $ac_word... " >&6; } 6954if test ${ac_cv_prog_AR+y} 6955then : 6956 printf %s "(cached) " >&6 6957else $as_nop 6958 if test -n "$AR"; then 6959 ac_cv_prog_AR="$AR" # Let the user override the test. 6960else 6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6962for as_dir in $PATH 6963do 6964 IFS=$as_save_IFS 6965 case $as_dir in #((( 6966 '') as_dir=./ ;; 6967 */) ;; 6968 *) as_dir=$as_dir/ ;; 6969 esac 6970 for ac_exec_ext in '' $ac_executable_extensions; do 6971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6972 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6974 break 2 6975 fi 6976done 6977 done 6978IFS=$as_save_IFS 6979 6980fi 6981fi 6982AR=$ac_cv_prog_AR 6983if test -n "$AR"; then 6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6985printf "%s\n" "$AR" >&6; } 6986else 6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6988printf "%s\n" "no" >&6; } 6989fi 6990 6991 6992 test -n "$AR" && break 6993 done 6994fi 6995if test -z "$AR"; then 6996 ac_ct_AR=$AR 6997 for ac_prog in ar 6998do 6999 # Extract the first word of "$ac_prog", so it can be a program name with args. 7000set dummy $ac_prog; ac_word=$2 7001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7002printf %s "checking for $ac_word... " >&6; } 7003if test ${ac_cv_prog_ac_ct_AR+y} 7004then : 7005 printf %s "(cached) " >&6 7006else $as_nop 7007 if test -n "$ac_ct_AR"; then 7008 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7009else 7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7011for as_dir in $PATH 7012do 7013 IFS=$as_save_IFS 7014 case $as_dir in #((( 7015 '') as_dir=./ ;; 7016 */) ;; 7017 *) as_dir=$as_dir/ ;; 7018 esac 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7021 ac_cv_prog_ac_ct_AR="$ac_prog" 7022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025done 7026 done 7027IFS=$as_save_IFS 7028 7029fi 7030fi 7031ac_ct_AR=$ac_cv_prog_ac_ct_AR 7032if test -n "$ac_ct_AR"; then 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7034printf "%s\n" "$ac_ct_AR" >&6; } 7035else 7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7037printf "%s\n" "no" >&6; } 7038fi 7039 7040 7041 test -n "$ac_ct_AR" && break 7042done 7043 7044 if test "x$ac_ct_AR" = x; then 7045 AR="false" 7046 else 7047 case $cross_compiling:$ac_tool_warned in 7048yes:) 7049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7050printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7051ac_tool_warned=yes ;; 7052esac 7053 AR=$ac_ct_AR 7054 fi 7055fi 7056 7057: ${AR=ar} 7058: ${AR_FLAGS=cru} 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7071printf %s "checking for archiver @FILE support... " >&6; } 7072if test ${lt_cv_ar_at_file+y} 7073then : 7074 printf %s "(cached) " >&6 7075else $as_nop 7076 lt_cv_ar_at_file=no 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079 7080int 7081main (void) 7082{ 7083 7084 ; 7085 return 0; 7086} 7087_ACEOF 7088if ac_fn_c_try_compile "$LINENO" 7089then : 7090 echo conftest.$ac_objext > conftest.lst 7091 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7093 (eval $lt_ar_try) 2>&5 7094 ac_status=$? 7095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7096 test $ac_status = 0; } 7097 if test 0 -eq "$ac_status"; then 7098 # Ensure the archiver fails upon bogus file names. 7099 rm -f conftest.$ac_objext libconftest.a 7100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7101 (eval $lt_ar_try) 2>&5 7102 ac_status=$? 7103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7104 test $ac_status = 0; } 7105 if test 0 -ne "$ac_status"; then 7106 lt_cv_ar_at_file=@ 7107 fi 7108 fi 7109 rm -f conftest.* libconftest.a 7110 7111fi 7112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7113 7114fi 7115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7116printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7117 7118if test no = "$lt_cv_ar_at_file"; then 7119 archiver_list_spec= 7120else 7121 archiver_list_spec=$lt_cv_ar_at_file 7122fi 7123 7124 7125 7126 7127 7128 7129 7130if test -n "$ac_tool_prefix"; then 7131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7132set dummy ${ac_tool_prefix}strip; ac_word=$2 7133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7134printf %s "checking for $ac_word... " >&6; } 7135if test ${ac_cv_prog_STRIP+y} 7136then : 7137 printf %s "(cached) " >&6 7138else $as_nop 7139 if test -n "$STRIP"; then 7140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7141else 7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7143for as_dir in $PATH 7144do 7145 IFS=$as_save_IFS 7146 case $as_dir in #((( 7147 '') as_dir=./ ;; 7148 */) ;; 7149 *) as_dir=$as_dir/ ;; 7150 esac 7151 for ac_exec_ext in '' $ac_executable_extensions; do 7152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7153 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7155 break 2 7156 fi 7157done 7158 done 7159IFS=$as_save_IFS 7160 7161fi 7162fi 7163STRIP=$ac_cv_prog_STRIP 7164if test -n "$STRIP"; then 7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7166printf "%s\n" "$STRIP" >&6; } 7167else 7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7169printf "%s\n" "no" >&6; } 7170fi 7171 7172 7173fi 7174if test -z "$ac_cv_prog_STRIP"; then 7175 ac_ct_STRIP=$STRIP 7176 # Extract the first word of "strip", so it can be a program name with args. 7177set dummy strip; ac_word=$2 7178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7179printf %s "checking for $ac_word... " >&6; } 7180if test ${ac_cv_prog_ac_ct_STRIP+y} 7181then : 7182 printf %s "(cached) " >&6 7183else $as_nop 7184 if test -n "$ac_ct_STRIP"; then 7185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7186else 7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7188for as_dir in $PATH 7189do 7190 IFS=$as_save_IFS 7191 case $as_dir in #((( 7192 '') as_dir=./ ;; 7193 */) ;; 7194 *) as_dir=$as_dir/ ;; 7195 esac 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7198 ac_cv_prog_ac_ct_STRIP="strip" 7199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7200 break 2 7201 fi 7202done 7203 done 7204IFS=$as_save_IFS 7205 7206fi 7207fi 7208ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7209if test -n "$ac_ct_STRIP"; then 7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7211printf "%s\n" "$ac_ct_STRIP" >&6; } 7212else 7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7214printf "%s\n" "no" >&6; } 7215fi 7216 7217 if test "x$ac_ct_STRIP" = x; then 7218 STRIP=":" 7219 else 7220 case $cross_compiling:$ac_tool_warned in 7221yes:) 7222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7223printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7224ac_tool_warned=yes ;; 7225esac 7226 STRIP=$ac_ct_STRIP 7227 fi 7228else 7229 STRIP="$ac_cv_prog_STRIP" 7230fi 7231 7232test -z "$STRIP" && STRIP=: 7233 7234 7235 7236 7237 7238 7239if test -n "$ac_tool_prefix"; then 7240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7241set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7243printf %s "checking for $ac_word... " >&6; } 7244if test ${ac_cv_prog_RANLIB+y} 7245then : 7246 printf %s "(cached) " >&6 7247else $as_nop 7248 if test -n "$RANLIB"; then 7249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7250else 7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7252for as_dir in $PATH 7253do 7254 IFS=$as_save_IFS 7255 case $as_dir in #((( 7256 '') as_dir=./ ;; 7257 */) ;; 7258 *) as_dir=$as_dir/ ;; 7259 esac 7260 for ac_exec_ext in '' $ac_executable_extensions; do 7261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7264 break 2 7265 fi 7266done 7267 done 7268IFS=$as_save_IFS 7269 7270fi 7271fi 7272RANLIB=$ac_cv_prog_RANLIB 7273if test -n "$RANLIB"; then 7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7275printf "%s\n" "$RANLIB" >&6; } 7276else 7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7278printf "%s\n" "no" >&6; } 7279fi 7280 7281 7282fi 7283if test -z "$ac_cv_prog_RANLIB"; then 7284 ac_ct_RANLIB=$RANLIB 7285 # Extract the first word of "ranlib", so it can be a program name with args. 7286set dummy ranlib; ac_word=$2 7287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7288printf %s "checking for $ac_word... " >&6; } 7289if test ${ac_cv_prog_ac_ct_RANLIB+y} 7290then : 7291 printf %s "(cached) " >&6 7292else $as_nop 7293 if test -n "$ac_ct_RANLIB"; then 7294 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7295else 7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7297for as_dir in $PATH 7298do 7299 IFS=$as_save_IFS 7300 case $as_dir in #((( 7301 '') as_dir=./ ;; 7302 */) ;; 7303 *) as_dir=$as_dir/ ;; 7304 esac 7305 for ac_exec_ext in '' $ac_executable_extensions; do 7306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7307 ac_cv_prog_ac_ct_RANLIB="ranlib" 7308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7309 break 2 7310 fi 7311done 7312 done 7313IFS=$as_save_IFS 7314 7315fi 7316fi 7317ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7318if test -n "$ac_ct_RANLIB"; then 7319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7320printf "%s\n" "$ac_ct_RANLIB" >&6; } 7321else 7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7323printf "%s\n" "no" >&6; } 7324fi 7325 7326 if test "x$ac_ct_RANLIB" = x; then 7327 RANLIB=":" 7328 else 7329 case $cross_compiling:$ac_tool_warned in 7330yes:) 7331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7332printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7333ac_tool_warned=yes ;; 7334esac 7335 RANLIB=$ac_ct_RANLIB 7336 fi 7337else 7338 RANLIB="$ac_cv_prog_RANLIB" 7339fi 7340 7341test -z "$RANLIB" && RANLIB=: 7342 7343 7344 7345 7346 7347 7348# Determine commands to create old-style static archives. 7349old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7350old_postinstall_cmds='chmod 644 $oldlib' 7351old_postuninstall_cmds= 7352 7353if test -n "$RANLIB"; then 7354 case $host_os in 7355 bitrig* | openbsd*) 7356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7357 ;; 7358 *) 7359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7360 ;; 7361 esac 7362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7363fi 7364 7365case $host_os in 7366 darwin*) 7367 lock_old_archive_extraction=yes ;; 7368 *) 7369 lock_old_archive_extraction=no ;; 7370esac 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410# If no C compiler was specified, use CC. 7411LTCC=${LTCC-"$CC"} 7412 7413# If no C compiler flags were specified, use CFLAGS. 7414LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7415 7416# Allow CC to be a program name with arguments. 7417compiler=$CC 7418 7419 7420# Check for command to grab the raw symbol name followed by C symbol from nm. 7421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7422printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7423if test ${lt_cv_sys_global_symbol_pipe+y} 7424then : 7425 printf %s "(cached) " >&6 7426else $as_nop 7427 7428# These are sane defaults that work on at least a few old systems. 7429# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7430 7431# Character class describing NM global symbol codes. 7432symcode='[BCDEGRST]' 7433 7434# Regexp to match symbols that can be accessed directly from C. 7435sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7436 7437# Define system-specific variables. 7438case $host_os in 7439aix*) 7440 symcode='[BCDT]' 7441 ;; 7442cygwin* | mingw* | pw32* | cegcc*) 7443 symcode='[ABCDGISTW]' 7444 ;; 7445hpux*) 7446 if test ia64 = "$host_cpu"; then 7447 symcode='[ABCDEGRST]' 7448 fi 7449 ;; 7450irix* | nonstopux*) 7451 symcode='[BCDEGRST]' 7452 ;; 7453osf*) 7454 symcode='[BCDEGQRST]' 7455 ;; 7456solaris*) 7457 symcode='[BDRT]' 7458 ;; 7459sco3.2v5*) 7460 symcode='[DT]' 7461 ;; 7462sysv4.2uw2*) 7463 symcode='[DT]' 7464 ;; 7465sysv5* | sco5v6* | unixware* | OpenUNIX*) 7466 symcode='[ABDT]' 7467 ;; 7468sysv4) 7469 symcode='[DFNSTU]' 7470 ;; 7471esac 7472 7473# If we're using GNU nm, then use its standard symbol codes. 7474case `$NM -V 2>&1` in 7475*GNU* | *'with BFD'*) 7476 symcode='[ABCDGIRSTW]' ;; 7477esac 7478 7479if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7480 # Gets list of data symbols to import. 7481 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7482 # Adjust the below global symbol transforms to fixup imported variables. 7483 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7484 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7485 lt_c_name_lib_hook="\ 7486 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7487 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7488else 7489 # Disable hooks by default. 7490 lt_cv_sys_global_symbol_to_import= 7491 lt_cdecl_hook= 7492 lt_c_name_hook= 7493 lt_c_name_lib_hook= 7494fi 7495 7496# Transform an extracted symbol line into a proper C declaration. 7497# Some systems (esp. on ia64) link data and code symbols differently, 7498# so use this general approach. 7499lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7500$lt_cdecl_hook\ 7501" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7502" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7503 7504# Transform an extracted symbol line into symbol name and symbol address 7505lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7506$lt_c_name_hook\ 7507" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7508" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7509 7510# Transform an extracted symbol line into symbol name with lib prefix and 7511# symbol address. 7512lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7513$lt_c_name_lib_hook\ 7514" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7515" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7516" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7517 7518# Handle CRLF in mingw tool chain 7519opt_cr= 7520case $build_os in 7521mingw*) 7522 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7523 ;; 7524esac 7525 7526# Try without a prefix underscore, then with it. 7527for ac_symprfx in "" "_"; do 7528 7529 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7530 symxfrm="\\1 $ac_symprfx\\2 \\2" 7531 7532 # Write the raw and C identifiers. 7533 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7534 # Fake it for dumpbin and say T for any non-static function, 7535 # D for any global variable and I for any imported variable. 7536 # Also find C++ and __fastcall symbols from MSVC++, 7537 # which start with @ or ?. 7538 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7539" {last_section=section; section=\$ 3};"\ 7540" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7541" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7542" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7543" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7544" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7545" \$ 0!~/External *\|/{next};"\ 7546" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7547" {if(hide[section]) next};"\ 7548" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7549" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7550" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7551" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7552" ' prfx=^$ac_symprfx" 7553 else 7554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7555 fi 7556 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7557 7558 # Check to see that the pipe works correctly. 7559 pipe_works=no 7560 7561 rm -f conftest* 7562 cat > conftest.$ac_ext <<_LT_EOF 7563#ifdef __cplusplus 7564extern "C" { 7565#endif 7566char nm_test_var; 7567void nm_test_func(void); 7568void nm_test_func(void){} 7569#ifdef __cplusplus 7570} 7571#endif 7572int main(){nm_test_var='a';nm_test_func();return(0);} 7573_LT_EOF 7574 7575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7576 (eval $ac_compile) 2>&5 7577 ac_status=$? 7578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7579 test $ac_status = 0; }; then 7580 # Now try to grab the symbols. 7581 nlist=conftest.nm 7582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7583 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7584 ac_status=$? 7585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7586 test $ac_status = 0; } && test -s "$nlist"; then 7587 # Try sorting and uniquifying the output. 7588 if sort "$nlist" | uniq > "$nlist"T; then 7589 mv -f "$nlist"T "$nlist" 7590 else 7591 rm -f "$nlist"T 7592 fi 7593 7594 # Make sure that we snagged all the symbols we need. 7595 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7596 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7597 cat <<_LT_EOF > conftest.$ac_ext 7598/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7599#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7600/* DATA imports from DLLs on WIN32 can't be const, because runtime 7601 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7602# define LT_DLSYM_CONST 7603#elif defined __osf__ 7604/* This system does not cope well with relocations in const data. */ 7605# define LT_DLSYM_CONST 7606#else 7607# define LT_DLSYM_CONST const 7608#endif 7609 7610#ifdef __cplusplus 7611extern "C" { 7612#endif 7613 7614_LT_EOF 7615 # Now generate the symbol file. 7616 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7617 7618 cat <<_LT_EOF >> conftest.$ac_ext 7619 7620/* The mapping between symbol names and symbols. */ 7621LT_DLSYM_CONST struct { 7622 const char *name; 7623 void *address; 7624} 7625lt__PROGRAM__LTX_preloaded_symbols[] = 7626{ 7627 { "@PROGRAM@", (void *) 0 }, 7628_LT_EOF 7629 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7630 cat <<\_LT_EOF >> conftest.$ac_ext 7631 {0, (void *) 0} 7632}; 7633 7634/* This works around a problem in FreeBSD linker */ 7635#ifdef FREEBSD_WORKAROUND 7636static const void *lt_preloaded_setup() { 7637 return lt__PROGRAM__LTX_preloaded_symbols; 7638} 7639#endif 7640 7641#ifdef __cplusplus 7642} 7643#endif 7644_LT_EOF 7645 # Now try linking the two files. 7646 mv conftest.$ac_objext conftstm.$ac_objext 7647 lt_globsym_save_LIBS=$LIBS 7648 lt_globsym_save_CFLAGS=$CFLAGS 7649 LIBS=conftstm.$ac_objext 7650 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7652 (eval $ac_link) 2>&5 7653 ac_status=$? 7654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7655 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7656 pipe_works=yes 7657 fi 7658 LIBS=$lt_globsym_save_LIBS 7659 CFLAGS=$lt_globsym_save_CFLAGS 7660 else 7661 echo "cannot find nm_test_func in $nlist" >&5 7662 fi 7663 else 7664 echo "cannot find nm_test_var in $nlist" >&5 7665 fi 7666 else 7667 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7668 fi 7669 else 7670 echo "$progname: failed program was:" >&5 7671 cat conftest.$ac_ext >&5 7672 fi 7673 rm -rf conftest* conftst* 7674 7675 # Do not use the global_symbol_pipe unless it works. 7676 if test yes = "$pipe_works"; then 7677 break 7678 else 7679 lt_cv_sys_global_symbol_pipe= 7680 fi 7681done 7682 7683fi 7684 7685if test -z "$lt_cv_sys_global_symbol_pipe"; then 7686 lt_cv_sys_global_symbol_to_cdecl= 7687fi 7688if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7690printf "%s\n" "failed" >&6; } 7691else 7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7693printf "%s\n" "ok" >&6; } 7694fi 7695 7696# Response file support. 7697if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7698 nm_file_list_spec='@' 7699elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7700 nm_file_list_spec='@' 7701fi 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7740printf %s "checking for sysroot... " >&6; } 7741 7742# Check whether --with-sysroot was given. 7743if test ${with_sysroot+y} 7744then : 7745 withval=$with_sysroot; 7746else $as_nop 7747 with_sysroot=no 7748fi 7749 7750 7751lt_sysroot= 7752case $with_sysroot in #( 7753 yes) 7754 if test yes = "$GCC"; then 7755 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7756 fi 7757 ;; #( 7758 /*) 7759 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7760 ;; #( 7761 no|'') 7762 ;; #( 7763 *) 7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7765printf "%s\n" "$with_sysroot" >&6; } 7766 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7767 ;; 7768esac 7769 7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7771printf "%s\n" "${lt_sysroot:-no}" >&6; } 7772 7773 7774 7775 7776 7777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7778printf %s "checking for a working dd... " >&6; } 7779if test ${ac_cv_path_lt_DD+y} 7780then : 7781 printf %s "(cached) " >&6 7782else $as_nop 7783 printf 0123456789abcdef0123456789abcdef >conftest.i 7784cat conftest.i conftest.i >conftest2.i 7785: ${lt_DD:=$DD} 7786if test -z "$lt_DD"; then 7787 ac_path_lt_DD_found=false 7788 # Loop through the user's path and test for each of PROGNAME-LIST 7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7790for as_dir in $PATH 7791do 7792 IFS=$as_save_IFS 7793 case $as_dir in #((( 7794 '') as_dir=./ ;; 7795 */) ;; 7796 *) as_dir=$as_dir/ ;; 7797 esac 7798 for ac_prog in dd 7799 do 7800 for ac_exec_ext in '' $ac_executable_extensions; do 7801 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7802 as_fn_executable_p "$ac_path_lt_DD" || continue 7803if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7804 cmp -s conftest.i conftest.out \ 7805 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7806fi 7807 $ac_path_lt_DD_found && break 3 7808 done 7809 done 7810 done 7811IFS=$as_save_IFS 7812 if test -z "$ac_cv_path_lt_DD"; then 7813 : 7814 fi 7815else 7816 ac_cv_path_lt_DD=$lt_DD 7817fi 7818 7819rm -f conftest.i conftest2.i conftest.out 7820fi 7821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7822printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7823 7824 7825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7826printf %s "checking how to truncate binary pipes... " >&6; } 7827if test ${lt_cv_truncate_bin+y} 7828then : 7829 printf %s "(cached) " >&6 7830else $as_nop 7831 printf 0123456789abcdef0123456789abcdef >conftest.i 7832cat conftest.i conftest.i >conftest2.i 7833lt_cv_truncate_bin= 7834if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7835 cmp -s conftest.i conftest.out \ 7836 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7837fi 7838rm -f conftest.i conftest2.i conftest.out 7839test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7840fi 7841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7842printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7843 7844 7845 7846 7847 7848 7849 7850# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7851func_cc_basename () 7852{ 7853 for cc_temp in $*""; do 7854 case $cc_temp in 7855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7857 \-*) ;; 7858 *) break;; 7859 esac 7860 done 7861 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7862} 7863 7864# Check whether --enable-libtool-lock was given. 7865if test ${enable_libtool_lock+y} 7866then : 7867 enableval=$enable_libtool_lock; 7868fi 7869 7870test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7871 7872# Some flags need to be propagated to the compiler or linker for good 7873# libtool support. 7874case $host in 7875ia64-*-hpux*) 7876 # Find out what ABI is being produced by ac_compile, and set mode 7877 # options accordingly. 7878 echo 'int i;' > conftest.$ac_ext 7879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7880 (eval $ac_compile) 2>&5 7881 ac_status=$? 7882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7883 test $ac_status = 0; }; then 7884 case `/usr/bin/file conftest.$ac_objext` in 7885 *ELF-32*) 7886 HPUX_IA64_MODE=32 7887 ;; 7888 *ELF-64*) 7889 HPUX_IA64_MODE=64 7890 ;; 7891 esac 7892 fi 7893 rm -rf conftest* 7894 ;; 7895*-*-irix6*) 7896 # Find out what ABI is being produced by ac_compile, and set linker 7897 # options accordingly. 7898 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7900 (eval $ac_compile) 2>&5 7901 ac_status=$? 7902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7903 test $ac_status = 0; }; then 7904 if test yes = "$lt_cv_prog_gnu_ld"; then 7905 case `/usr/bin/file conftest.$ac_objext` in 7906 *32-bit*) 7907 LD="${LD-ld} -melf32bsmip" 7908 ;; 7909 *N32*) 7910 LD="${LD-ld} -melf32bmipn32" 7911 ;; 7912 *64-bit*) 7913 LD="${LD-ld} -melf64bmip" 7914 ;; 7915 esac 7916 else 7917 case `/usr/bin/file conftest.$ac_objext` in 7918 *32-bit*) 7919 LD="${LD-ld} -32" 7920 ;; 7921 *N32*) 7922 LD="${LD-ld} -n32" 7923 ;; 7924 *64-bit*) 7925 LD="${LD-ld} -64" 7926 ;; 7927 esac 7928 fi 7929 fi 7930 rm -rf conftest* 7931 ;; 7932 7933mips64*-*linux*) 7934 # Find out what ABI is being produced by ac_compile, and set linker 7935 # options accordingly. 7936 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7938 (eval $ac_compile) 2>&5 7939 ac_status=$? 7940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7941 test $ac_status = 0; }; then 7942 emul=elf 7943 case `/usr/bin/file conftest.$ac_objext` in 7944 *32-bit*) 7945 emul="${emul}32" 7946 ;; 7947 *64-bit*) 7948 emul="${emul}64" 7949 ;; 7950 esac 7951 case `/usr/bin/file conftest.$ac_objext` in 7952 *MSB*) 7953 emul="${emul}btsmip" 7954 ;; 7955 *LSB*) 7956 emul="${emul}ltsmip" 7957 ;; 7958 esac 7959 case `/usr/bin/file conftest.$ac_objext` in 7960 *N32*) 7961 emul="${emul}n32" 7962 ;; 7963 esac 7964 LD="${LD-ld} -m $emul" 7965 fi 7966 rm -rf conftest* 7967 ;; 7968 7969x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7970s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7971 # Find out what ABI is being produced by ac_compile, and set linker 7972 # options accordingly. Note that the listed cases only cover the 7973 # situations where additional linker options are needed (such as when 7974 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7975 # vice versa); the common cases where no linker options are needed do 7976 # not appear in the list. 7977 echo 'int i;' > conftest.$ac_ext 7978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7979 (eval $ac_compile) 2>&5 7980 ac_status=$? 7981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7982 test $ac_status = 0; }; then 7983 case `/usr/bin/file conftest.o` in 7984 *32-bit*) 7985 case $host in 7986 x86_64-*kfreebsd*-gnu) 7987 LD="${LD-ld} -m elf_i386_fbsd" 7988 ;; 7989 x86_64-*linux*) 7990 case `/usr/bin/file conftest.o` in 7991 *x86-64*) 7992 LD="${LD-ld} -m elf32_x86_64" 7993 ;; 7994 *) 7995 LD="${LD-ld} -m elf_i386" 7996 ;; 7997 esac 7998 ;; 7999 powerpc64le-*linux*) 8000 LD="${LD-ld} -m elf32lppclinux" 8001 ;; 8002 powerpc64-*linux*) 8003 LD="${LD-ld} -m elf32ppclinux" 8004 ;; 8005 s390x-*linux*) 8006 LD="${LD-ld} -m elf_s390" 8007 ;; 8008 sparc64-*linux*) 8009 LD="${LD-ld} -m elf32_sparc" 8010 ;; 8011 esac 8012 ;; 8013 *64-bit*) 8014 case $host in 8015 x86_64-*kfreebsd*-gnu) 8016 LD="${LD-ld} -m elf_x86_64_fbsd" 8017 ;; 8018 x86_64-*linux*) 8019 LD="${LD-ld} -m elf_x86_64" 8020 ;; 8021 powerpcle-*linux*|powerpc64le-*linux*) 8022 LD="${LD-ld} -m elf64lppc" 8023 ;; 8024 powerpc-*linux*|powerpc64-*linux*) 8025 LD="${LD-ld} -m elf64ppc" 8026 ;; 8027 s390*-*linux*|s390*-*tpf*) 8028 LD="${LD-ld} -m elf64_s390" 8029 ;; 8030 sparc*-*linux*) 8031 LD="${LD-ld} -m elf64_sparc" 8032 ;; 8033 esac 8034 ;; 8035 esac 8036 fi 8037 rm -rf conftest* 8038 ;; 8039 8040*-*-sco3.2v5*) 8041 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8042 SAVE_CFLAGS=$CFLAGS 8043 CFLAGS="$CFLAGS -belf" 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8045printf %s "checking whether the C compiler needs -belf... " >&6; } 8046if test ${lt_cv_cc_needs_belf+y} 8047then : 8048 printf %s "(cached) " >&6 8049else $as_nop 8050 ac_ext=c 8051ac_cpp='$CPP $CPPFLAGS' 8052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8054ac_compiler_gnu=$ac_cv_c_compiler_gnu 8055 8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8057/* end confdefs.h. */ 8058 8059int 8060main (void) 8061{ 8062 8063 ; 8064 return 0; 8065} 8066_ACEOF 8067if ac_fn_c_try_link "$LINENO" 8068then : 8069 lt_cv_cc_needs_belf=yes 8070else $as_nop 8071 lt_cv_cc_needs_belf=no 8072fi 8073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8074 conftest$ac_exeext conftest.$ac_ext 8075 ac_ext=c 8076ac_cpp='$CPP $CPPFLAGS' 8077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8079ac_compiler_gnu=$ac_cv_c_compiler_gnu 8080 8081fi 8082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8083printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8084 if test yes != "$lt_cv_cc_needs_belf"; then 8085 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8086 CFLAGS=$SAVE_CFLAGS 8087 fi 8088 ;; 8089*-*solaris*) 8090 # Find out what ABI is being produced by ac_compile, and set linker 8091 # options accordingly. 8092 echo 'int i;' > conftest.$ac_ext 8093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8094 (eval $ac_compile) 2>&5 8095 ac_status=$? 8096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8097 test $ac_status = 0; }; then 8098 case `/usr/bin/file conftest.o` in 8099 *64-bit*) 8100 case $lt_cv_prog_gnu_ld in 8101 yes*) 8102 case $host in 8103 i?86-*-solaris*|x86_64-*-solaris*) 8104 LD="${LD-ld} -m elf_x86_64" 8105 ;; 8106 sparc*-*-solaris*) 8107 LD="${LD-ld} -m elf64_sparc" 8108 ;; 8109 esac 8110 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8111 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8112 LD=${LD-ld}_sol2 8113 fi 8114 ;; 8115 *) 8116 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8117 LD="${LD-ld} -64" 8118 fi 8119 ;; 8120 esac 8121 ;; 8122 esac 8123 fi 8124 rm -rf conftest* 8125 ;; 8126esac 8127 8128need_locks=$enable_libtool_lock 8129 8130if test -n "$ac_tool_prefix"; then 8131 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8132set dummy ${ac_tool_prefix}mt; ac_word=$2 8133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8134printf %s "checking for $ac_word... " >&6; } 8135if test ${ac_cv_prog_MANIFEST_TOOL+y} 8136then : 8137 printf %s "(cached) " >&6 8138else $as_nop 8139 if test -n "$MANIFEST_TOOL"; then 8140 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8141else 8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8143for as_dir in $PATH 8144do 8145 IFS=$as_save_IFS 8146 case $as_dir in #((( 8147 '') as_dir=./ ;; 8148 */) ;; 8149 *) as_dir=$as_dir/ ;; 8150 esac 8151 for ac_exec_ext in '' $ac_executable_extensions; do 8152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8153 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8155 break 2 8156 fi 8157done 8158 done 8159IFS=$as_save_IFS 8160 8161fi 8162fi 8163MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8164if test -n "$MANIFEST_TOOL"; then 8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8166printf "%s\n" "$MANIFEST_TOOL" >&6; } 8167else 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8169printf "%s\n" "no" >&6; } 8170fi 8171 8172 8173fi 8174if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8175 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8176 # Extract the first word of "mt", so it can be a program name with args. 8177set dummy mt; ac_word=$2 8178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8179printf %s "checking for $ac_word... " >&6; } 8180if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8181then : 8182 printf %s "(cached) " >&6 8183else $as_nop 8184 if test -n "$ac_ct_MANIFEST_TOOL"; then 8185 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8186else 8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8188for as_dir in $PATH 8189do 8190 IFS=$as_save_IFS 8191 case $as_dir in #((( 8192 '') as_dir=./ ;; 8193 */) ;; 8194 *) as_dir=$as_dir/ ;; 8195 esac 8196 for ac_exec_ext in '' $ac_executable_extensions; do 8197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8198 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8200 break 2 8201 fi 8202done 8203 done 8204IFS=$as_save_IFS 8205 8206fi 8207fi 8208ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8209if test -n "$ac_ct_MANIFEST_TOOL"; then 8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8211printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8212else 8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8214printf "%s\n" "no" >&6; } 8215fi 8216 8217 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8218 MANIFEST_TOOL=":" 8219 else 8220 case $cross_compiling:$ac_tool_warned in 8221yes:) 8222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8223printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8224ac_tool_warned=yes ;; 8225esac 8226 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8227 fi 8228else 8229 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8230fi 8231 8232test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8234printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8235if test ${lt_cv_path_mainfest_tool+y} 8236then : 8237 printf %s "(cached) " >&6 8238else $as_nop 8239 lt_cv_path_mainfest_tool=no 8240 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8241 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8242 cat conftest.err >&5 8243 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8244 lt_cv_path_mainfest_tool=yes 8245 fi 8246 rm -f conftest* 8247fi 8248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8249printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8250if test yes != "$lt_cv_path_mainfest_tool"; then 8251 MANIFEST_TOOL=: 8252fi 8253 8254 8255 8256 8257 8258 8259 case $host_os in 8260 rhapsody* | darwin*) 8261 if test -n "$ac_tool_prefix"; then 8262 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8263set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8265printf %s "checking for $ac_word... " >&6; } 8266if test ${ac_cv_prog_DSYMUTIL+y} 8267then : 8268 printf %s "(cached) " >&6 8269else $as_nop 8270 if test -n "$DSYMUTIL"; then 8271 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8272else 8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8274for as_dir in $PATH 8275do 8276 IFS=$as_save_IFS 8277 case $as_dir in #((( 8278 '') as_dir=./ ;; 8279 */) ;; 8280 *) as_dir=$as_dir/ ;; 8281 esac 8282 for ac_exec_ext in '' $ac_executable_extensions; do 8283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8284 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8286 break 2 8287 fi 8288done 8289 done 8290IFS=$as_save_IFS 8291 8292fi 8293fi 8294DSYMUTIL=$ac_cv_prog_DSYMUTIL 8295if test -n "$DSYMUTIL"; then 8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8297printf "%s\n" "$DSYMUTIL" >&6; } 8298else 8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8300printf "%s\n" "no" >&6; } 8301fi 8302 8303 8304fi 8305if test -z "$ac_cv_prog_DSYMUTIL"; then 8306 ac_ct_DSYMUTIL=$DSYMUTIL 8307 # Extract the first word of "dsymutil", so it can be a program name with args. 8308set dummy dsymutil; ac_word=$2 8309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8310printf %s "checking for $ac_word... " >&6; } 8311if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8312then : 8313 printf %s "(cached) " >&6 8314else $as_nop 8315 if test -n "$ac_ct_DSYMUTIL"; then 8316 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8317else 8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8319for as_dir in $PATH 8320do 8321 IFS=$as_save_IFS 8322 case $as_dir in #((( 8323 '') as_dir=./ ;; 8324 */) ;; 8325 *) as_dir=$as_dir/ ;; 8326 esac 8327 for ac_exec_ext in '' $ac_executable_extensions; do 8328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8329 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8331 break 2 8332 fi 8333done 8334 done 8335IFS=$as_save_IFS 8336 8337fi 8338fi 8339ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8340if test -n "$ac_ct_DSYMUTIL"; then 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8342printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8343else 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8345printf "%s\n" "no" >&6; } 8346fi 8347 8348 if test "x$ac_ct_DSYMUTIL" = x; then 8349 DSYMUTIL=":" 8350 else 8351 case $cross_compiling:$ac_tool_warned in 8352yes:) 8353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8354printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8355ac_tool_warned=yes ;; 8356esac 8357 DSYMUTIL=$ac_ct_DSYMUTIL 8358 fi 8359else 8360 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8361fi 8362 8363 if test -n "$ac_tool_prefix"; then 8364 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8365set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8367printf %s "checking for $ac_word... " >&6; } 8368if test ${ac_cv_prog_NMEDIT+y} 8369then : 8370 printf %s "(cached) " >&6 8371else $as_nop 8372 if test -n "$NMEDIT"; then 8373 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8374else 8375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8376for as_dir in $PATH 8377do 8378 IFS=$as_save_IFS 8379 case $as_dir in #((( 8380 '') as_dir=./ ;; 8381 */) ;; 8382 *) as_dir=$as_dir/ ;; 8383 esac 8384 for ac_exec_ext in '' $ac_executable_extensions; do 8385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8386 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8388 break 2 8389 fi 8390done 8391 done 8392IFS=$as_save_IFS 8393 8394fi 8395fi 8396NMEDIT=$ac_cv_prog_NMEDIT 8397if test -n "$NMEDIT"; then 8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8399printf "%s\n" "$NMEDIT" >&6; } 8400else 8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8402printf "%s\n" "no" >&6; } 8403fi 8404 8405 8406fi 8407if test -z "$ac_cv_prog_NMEDIT"; then 8408 ac_ct_NMEDIT=$NMEDIT 8409 # Extract the first word of "nmedit", so it can be a program name with args. 8410set dummy nmedit; ac_word=$2 8411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8412printf %s "checking for $ac_word... " >&6; } 8413if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8414then : 8415 printf %s "(cached) " >&6 8416else $as_nop 8417 if test -n "$ac_ct_NMEDIT"; then 8418 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8419else 8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8421for as_dir in $PATH 8422do 8423 IFS=$as_save_IFS 8424 case $as_dir in #((( 8425 '') as_dir=./ ;; 8426 */) ;; 8427 *) as_dir=$as_dir/ ;; 8428 esac 8429 for ac_exec_ext in '' $ac_executable_extensions; do 8430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8431 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8433 break 2 8434 fi 8435done 8436 done 8437IFS=$as_save_IFS 8438 8439fi 8440fi 8441ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8442if test -n "$ac_ct_NMEDIT"; then 8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8444printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8445else 8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8447printf "%s\n" "no" >&6; } 8448fi 8449 8450 if test "x$ac_ct_NMEDIT" = x; then 8451 NMEDIT=":" 8452 else 8453 case $cross_compiling:$ac_tool_warned in 8454yes:) 8455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8456printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8457ac_tool_warned=yes ;; 8458esac 8459 NMEDIT=$ac_ct_NMEDIT 8460 fi 8461else 8462 NMEDIT="$ac_cv_prog_NMEDIT" 8463fi 8464 8465 if test -n "$ac_tool_prefix"; then 8466 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8467set dummy ${ac_tool_prefix}lipo; ac_word=$2 8468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8469printf %s "checking for $ac_word... " >&6; } 8470if test ${ac_cv_prog_LIPO+y} 8471then : 8472 printf %s "(cached) " >&6 8473else $as_nop 8474 if test -n "$LIPO"; then 8475 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8476else 8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8478for as_dir in $PATH 8479do 8480 IFS=$as_save_IFS 8481 case $as_dir in #((( 8482 '') as_dir=./ ;; 8483 */) ;; 8484 *) as_dir=$as_dir/ ;; 8485 esac 8486 for ac_exec_ext in '' $ac_executable_extensions; do 8487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8488 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8490 break 2 8491 fi 8492done 8493 done 8494IFS=$as_save_IFS 8495 8496fi 8497fi 8498LIPO=$ac_cv_prog_LIPO 8499if test -n "$LIPO"; then 8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8501printf "%s\n" "$LIPO" >&6; } 8502else 8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8504printf "%s\n" "no" >&6; } 8505fi 8506 8507 8508fi 8509if test -z "$ac_cv_prog_LIPO"; then 8510 ac_ct_LIPO=$LIPO 8511 # Extract the first word of "lipo", so it can be a program name with args. 8512set dummy lipo; ac_word=$2 8513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8514printf %s "checking for $ac_word... " >&6; } 8515if test ${ac_cv_prog_ac_ct_LIPO+y} 8516then : 8517 printf %s "(cached) " >&6 8518else $as_nop 8519 if test -n "$ac_ct_LIPO"; then 8520 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8521else 8522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8523for as_dir in $PATH 8524do 8525 IFS=$as_save_IFS 8526 case $as_dir in #((( 8527 '') as_dir=./ ;; 8528 */) ;; 8529 *) as_dir=$as_dir/ ;; 8530 esac 8531 for ac_exec_ext in '' $ac_executable_extensions; do 8532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8533 ac_cv_prog_ac_ct_LIPO="lipo" 8534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8535 break 2 8536 fi 8537done 8538 done 8539IFS=$as_save_IFS 8540 8541fi 8542fi 8543ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8544if test -n "$ac_ct_LIPO"; then 8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8546printf "%s\n" "$ac_ct_LIPO" >&6; } 8547else 8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8549printf "%s\n" "no" >&6; } 8550fi 8551 8552 if test "x$ac_ct_LIPO" = x; then 8553 LIPO=":" 8554 else 8555 case $cross_compiling:$ac_tool_warned in 8556yes:) 8557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8558printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8559ac_tool_warned=yes ;; 8560esac 8561 LIPO=$ac_ct_LIPO 8562 fi 8563else 8564 LIPO="$ac_cv_prog_LIPO" 8565fi 8566 8567 if test -n "$ac_tool_prefix"; then 8568 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8569set dummy ${ac_tool_prefix}otool; ac_word=$2 8570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8571printf %s "checking for $ac_word... " >&6; } 8572if test ${ac_cv_prog_OTOOL+y} 8573then : 8574 printf %s "(cached) " >&6 8575else $as_nop 8576 if test -n "$OTOOL"; then 8577 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8578else 8579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8580for as_dir in $PATH 8581do 8582 IFS=$as_save_IFS 8583 case $as_dir in #((( 8584 '') as_dir=./ ;; 8585 */) ;; 8586 *) as_dir=$as_dir/ ;; 8587 esac 8588 for ac_exec_ext in '' $ac_executable_extensions; do 8589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8590 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8592 break 2 8593 fi 8594done 8595 done 8596IFS=$as_save_IFS 8597 8598fi 8599fi 8600OTOOL=$ac_cv_prog_OTOOL 8601if test -n "$OTOOL"; then 8602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8603printf "%s\n" "$OTOOL" >&6; } 8604else 8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8606printf "%s\n" "no" >&6; } 8607fi 8608 8609 8610fi 8611if test -z "$ac_cv_prog_OTOOL"; then 8612 ac_ct_OTOOL=$OTOOL 8613 # Extract the first word of "otool", so it can be a program name with args. 8614set dummy otool; ac_word=$2 8615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8616printf %s "checking for $ac_word... " >&6; } 8617if test ${ac_cv_prog_ac_ct_OTOOL+y} 8618then : 8619 printf %s "(cached) " >&6 8620else $as_nop 8621 if test -n "$ac_ct_OTOOL"; then 8622 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8623else 8624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8625for as_dir in $PATH 8626do 8627 IFS=$as_save_IFS 8628 case $as_dir in #((( 8629 '') as_dir=./ ;; 8630 */) ;; 8631 *) as_dir=$as_dir/ ;; 8632 esac 8633 for ac_exec_ext in '' $ac_executable_extensions; do 8634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8635 ac_cv_prog_ac_ct_OTOOL="otool" 8636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8637 break 2 8638 fi 8639done 8640 done 8641IFS=$as_save_IFS 8642 8643fi 8644fi 8645ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8646if test -n "$ac_ct_OTOOL"; then 8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8648printf "%s\n" "$ac_ct_OTOOL" >&6; } 8649else 8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8651printf "%s\n" "no" >&6; } 8652fi 8653 8654 if test "x$ac_ct_OTOOL" = x; then 8655 OTOOL=":" 8656 else 8657 case $cross_compiling:$ac_tool_warned in 8658yes:) 8659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8660printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8661ac_tool_warned=yes ;; 8662esac 8663 OTOOL=$ac_ct_OTOOL 8664 fi 8665else 8666 OTOOL="$ac_cv_prog_OTOOL" 8667fi 8668 8669 if test -n "$ac_tool_prefix"; then 8670 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8671set dummy ${ac_tool_prefix}otool64; ac_word=$2 8672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8673printf %s "checking for $ac_word... " >&6; } 8674if test ${ac_cv_prog_OTOOL64+y} 8675then : 8676 printf %s "(cached) " >&6 8677else $as_nop 8678 if test -n "$OTOOL64"; then 8679 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8680else 8681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8682for as_dir in $PATH 8683do 8684 IFS=$as_save_IFS 8685 case $as_dir in #((( 8686 '') as_dir=./ ;; 8687 */) ;; 8688 *) as_dir=$as_dir/ ;; 8689 esac 8690 for ac_exec_ext in '' $ac_executable_extensions; do 8691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8692 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8694 break 2 8695 fi 8696done 8697 done 8698IFS=$as_save_IFS 8699 8700fi 8701fi 8702OTOOL64=$ac_cv_prog_OTOOL64 8703if test -n "$OTOOL64"; then 8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8705printf "%s\n" "$OTOOL64" >&6; } 8706else 8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8708printf "%s\n" "no" >&6; } 8709fi 8710 8711 8712fi 8713if test -z "$ac_cv_prog_OTOOL64"; then 8714 ac_ct_OTOOL64=$OTOOL64 8715 # Extract the first word of "otool64", so it can be a program name with args. 8716set dummy otool64; ac_word=$2 8717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8718printf %s "checking for $ac_word... " >&6; } 8719if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8720then : 8721 printf %s "(cached) " >&6 8722else $as_nop 8723 if test -n "$ac_ct_OTOOL64"; then 8724 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8725else 8726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8727for as_dir in $PATH 8728do 8729 IFS=$as_save_IFS 8730 case $as_dir in #((( 8731 '') as_dir=./ ;; 8732 */) ;; 8733 *) as_dir=$as_dir/ ;; 8734 esac 8735 for ac_exec_ext in '' $ac_executable_extensions; do 8736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8737 ac_cv_prog_ac_ct_OTOOL64="otool64" 8738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8739 break 2 8740 fi 8741done 8742 done 8743IFS=$as_save_IFS 8744 8745fi 8746fi 8747ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8748if test -n "$ac_ct_OTOOL64"; then 8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8750printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8751else 8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8753printf "%s\n" "no" >&6; } 8754fi 8755 8756 if test "x$ac_ct_OTOOL64" = x; then 8757 OTOOL64=":" 8758 else 8759 case $cross_compiling:$ac_tool_warned in 8760yes:) 8761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8762printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8763ac_tool_warned=yes ;; 8764esac 8765 OTOOL64=$ac_ct_OTOOL64 8766 fi 8767else 8768 OTOOL64="$ac_cv_prog_OTOOL64" 8769fi 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8798printf %s "checking for -single_module linker flag... " >&6; } 8799if test ${lt_cv_apple_cc_single_mod+y} 8800then : 8801 printf %s "(cached) " >&6 8802else $as_nop 8803 lt_cv_apple_cc_single_mod=no 8804 if test -z "$LT_MULTI_MODULE"; then 8805 # By default we will add the -single_module flag. You can override 8806 # by either setting the environment variable LT_MULTI_MODULE 8807 # non-empty at configure time, or by adding -multi_module to the 8808 # link flags. 8809 rm -rf libconftest.dylib* 8810 echo "int foo(void){return 1;}" > conftest.c 8811 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8812-dynamiclib -Wl,-single_module conftest.c" >&5 8813 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8814 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8815 _lt_result=$? 8816 # If there is a non-empty error log, and "single_module" 8817 # appears in it, assume the flag caused a linker warning 8818 if test -s conftest.err && $GREP single_module conftest.err; then 8819 cat conftest.err >&5 8820 # Otherwise, if the output was created with a 0 exit code from 8821 # the compiler, it worked. 8822 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8823 lt_cv_apple_cc_single_mod=yes 8824 else 8825 cat conftest.err >&5 8826 fi 8827 rm -rf libconftest.dylib* 8828 rm -f conftest.* 8829 fi 8830fi 8831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8832printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8833 8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8835printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8836if test ${lt_cv_ld_exported_symbols_list+y} 8837then : 8838 printf %s "(cached) " >&6 8839else $as_nop 8840 lt_cv_ld_exported_symbols_list=no 8841 save_LDFLAGS=$LDFLAGS 8842 echo "_main" > conftest.sym 8843 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8845/* end confdefs.h. */ 8846 8847int 8848main (void) 8849{ 8850 8851 ; 8852 return 0; 8853} 8854_ACEOF 8855if ac_fn_c_try_link "$LINENO" 8856then : 8857 lt_cv_ld_exported_symbols_list=yes 8858else $as_nop 8859 lt_cv_ld_exported_symbols_list=no 8860fi 8861rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8862 conftest$ac_exeext conftest.$ac_ext 8863 LDFLAGS=$save_LDFLAGS 8864 8865fi 8866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8867printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8868 8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8870printf %s "checking for -force_load linker flag... " >&6; } 8871if test ${lt_cv_ld_force_load+y} 8872then : 8873 printf %s "(cached) " >&6 8874else $as_nop 8875 lt_cv_ld_force_load=no 8876 cat > conftest.c << _LT_EOF 8877int forced_loaded() { return 2;} 8878_LT_EOF 8879 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8880 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8881 echo "$AR cru libconftest.a conftest.o" >&5 8882 $AR cru libconftest.a conftest.o 2>&5 8883 echo "$RANLIB libconftest.a" >&5 8884 $RANLIB libconftest.a 2>&5 8885 cat > conftest.c << _LT_EOF 8886int main() { return 0;} 8887_LT_EOF 8888 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8889 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8890 _lt_result=$? 8891 if test -s conftest.err && $GREP force_load conftest.err; then 8892 cat conftest.err >&5 8893 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8894 lt_cv_ld_force_load=yes 8895 else 8896 cat conftest.err >&5 8897 fi 8898 rm -f conftest.err libconftest.a conftest conftest.c 8899 rm -rf conftest.dSYM 8900 8901fi 8902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8903printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8904 case $host_os in 8905 rhapsody* | darwin1.[012]) 8906 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8907 darwin1.*) 8908 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8909 darwin*) # darwin 5.x on 8910 # if running on 10.5 or later, the deployment target defaults 8911 # to the OS version, if on x86, and 10.4, the deployment 8912 # target defaults to 10.4. Don't you love it? 8913 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8914 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8915 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8916 10.[012][,.]*) 8917 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8918 10.*|11.*) 8919 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8920 esac 8921 ;; 8922 esac 8923 if test yes = "$lt_cv_apple_cc_single_mod"; then 8924 _lt_dar_single_mod='$single_module' 8925 fi 8926 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8927 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8928 else 8929 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8930 fi 8931 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8932 _lt_dsymutil='~$DSYMUTIL $lib || :' 8933 else 8934 _lt_dsymutil= 8935 fi 8936 ;; 8937 esac 8938 8939# func_munge_path_list VARIABLE PATH 8940# ----------------------------------- 8941# VARIABLE is name of variable containing _space_ separated list of 8942# directories to be munged by the contents of PATH, which is string 8943# having a format: 8944# "DIR[:DIR]:" 8945# string "DIR[ DIR]" will be prepended to VARIABLE 8946# ":DIR[:DIR]" 8947# string "DIR[ DIR]" will be appended to VARIABLE 8948# "DIRP[:DIRP]::[DIRA:]DIRA" 8949# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8950# "DIRA[ DIRA]" will be appended to VARIABLE 8951# "DIR[:DIR]" 8952# VARIABLE will be replaced by "DIR[ DIR]" 8953func_munge_path_list () 8954{ 8955 case x$2 in 8956 x) 8957 ;; 8958 *:) 8959 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8960 ;; 8961 x:*) 8962 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8963 ;; 8964 *::*) 8965 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8966 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8967 ;; 8968 *) 8969 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8970 ;; 8971 esac 8972} 8973 8974ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8975" 8976if test "x$ac_cv_header_dlfcn_h" = xyes 8977then : 8978 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8979 8980fi 8981 8982 8983 8984 8985 8986# Set options 8987enable_win32_dll=yes 8988 8989case $host in 8990*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8991 if test -n "$ac_tool_prefix"; then 8992 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8993set dummy ${ac_tool_prefix}as; ac_word=$2 8994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8995printf %s "checking for $ac_word... " >&6; } 8996if test ${ac_cv_prog_AS+y} 8997then : 8998 printf %s "(cached) " >&6 8999else $as_nop 9000 if test -n "$AS"; then 9001 ac_cv_prog_AS="$AS" # Let the user override the test. 9002else 9003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9004for as_dir in $PATH 9005do 9006 IFS=$as_save_IFS 9007 case $as_dir in #((( 9008 '') as_dir=./ ;; 9009 */) ;; 9010 *) as_dir=$as_dir/ ;; 9011 esac 9012 for ac_exec_ext in '' $ac_executable_extensions; do 9013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9014 ac_cv_prog_AS="${ac_tool_prefix}as" 9015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9016 break 2 9017 fi 9018done 9019 done 9020IFS=$as_save_IFS 9021 9022fi 9023fi 9024AS=$ac_cv_prog_AS 9025if test -n "$AS"; then 9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9027printf "%s\n" "$AS" >&6; } 9028else 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9030printf "%s\n" "no" >&6; } 9031fi 9032 9033 9034fi 9035if test -z "$ac_cv_prog_AS"; then 9036 ac_ct_AS=$AS 9037 # Extract the first word of "as", so it can be a program name with args. 9038set dummy as; ac_word=$2 9039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9040printf %s "checking for $ac_word... " >&6; } 9041if test ${ac_cv_prog_ac_ct_AS+y} 9042then : 9043 printf %s "(cached) " >&6 9044else $as_nop 9045 if test -n "$ac_ct_AS"; then 9046 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 9047else 9048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9049for as_dir in $PATH 9050do 9051 IFS=$as_save_IFS 9052 case $as_dir in #((( 9053 '') as_dir=./ ;; 9054 */) ;; 9055 *) as_dir=$as_dir/ ;; 9056 esac 9057 for ac_exec_ext in '' $ac_executable_extensions; do 9058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9059 ac_cv_prog_ac_ct_AS="as" 9060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9061 break 2 9062 fi 9063done 9064 done 9065IFS=$as_save_IFS 9066 9067fi 9068fi 9069ac_ct_AS=$ac_cv_prog_ac_ct_AS 9070if test -n "$ac_ct_AS"; then 9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9072printf "%s\n" "$ac_ct_AS" >&6; } 9073else 9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9075printf "%s\n" "no" >&6; } 9076fi 9077 9078 if test "x$ac_ct_AS" = x; then 9079 AS="false" 9080 else 9081 case $cross_compiling:$ac_tool_warned in 9082yes:) 9083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9084printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9085ac_tool_warned=yes ;; 9086esac 9087 AS=$ac_ct_AS 9088 fi 9089else 9090 AS="$ac_cv_prog_AS" 9091fi 9092 9093 if test -n "$ac_tool_prefix"; then 9094 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9095set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9097printf %s "checking for $ac_word... " >&6; } 9098if test ${ac_cv_prog_DLLTOOL+y} 9099then : 9100 printf %s "(cached) " >&6 9101else $as_nop 9102 if test -n "$DLLTOOL"; then 9103 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9104else 9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9106for as_dir in $PATH 9107do 9108 IFS=$as_save_IFS 9109 case $as_dir in #((( 9110 '') as_dir=./ ;; 9111 */) ;; 9112 *) as_dir=$as_dir/ ;; 9113 esac 9114 for ac_exec_ext in '' $ac_executable_extensions; do 9115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9116 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9118 break 2 9119 fi 9120done 9121 done 9122IFS=$as_save_IFS 9123 9124fi 9125fi 9126DLLTOOL=$ac_cv_prog_DLLTOOL 9127if test -n "$DLLTOOL"; then 9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9129printf "%s\n" "$DLLTOOL" >&6; } 9130else 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9132printf "%s\n" "no" >&6; } 9133fi 9134 9135 9136fi 9137if test -z "$ac_cv_prog_DLLTOOL"; then 9138 ac_ct_DLLTOOL=$DLLTOOL 9139 # Extract the first word of "dlltool", so it can be a program name with args. 9140set dummy dlltool; ac_word=$2 9141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9142printf %s "checking for $ac_word... " >&6; } 9143if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9144then : 9145 printf %s "(cached) " >&6 9146else $as_nop 9147 if test -n "$ac_ct_DLLTOOL"; then 9148 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9149else 9150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9151for as_dir in $PATH 9152do 9153 IFS=$as_save_IFS 9154 case $as_dir in #((( 9155 '') as_dir=./ ;; 9156 */) ;; 9157 *) as_dir=$as_dir/ ;; 9158 esac 9159 for ac_exec_ext in '' $ac_executable_extensions; do 9160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9161 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9163 break 2 9164 fi 9165done 9166 done 9167IFS=$as_save_IFS 9168 9169fi 9170fi 9171ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9172if test -n "$ac_ct_DLLTOOL"; then 9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9174printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9175else 9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9177printf "%s\n" "no" >&6; } 9178fi 9179 9180 if test "x$ac_ct_DLLTOOL" = x; then 9181 DLLTOOL="false" 9182 else 9183 case $cross_compiling:$ac_tool_warned in 9184yes:) 9185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9186printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9187ac_tool_warned=yes ;; 9188esac 9189 DLLTOOL=$ac_ct_DLLTOOL 9190 fi 9191else 9192 DLLTOOL="$ac_cv_prog_DLLTOOL" 9193fi 9194 9195 if test -n "$ac_tool_prefix"; then 9196 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9197set dummy ${ac_tool_prefix}objdump; ac_word=$2 9198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9199printf %s "checking for $ac_word... " >&6; } 9200if test ${ac_cv_prog_OBJDUMP+y} 9201then : 9202 printf %s "(cached) " >&6 9203else $as_nop 9204 if test -n "$OBJDUMP"; then 9205 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9206else 9207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9208for as_dir in $PATH 9209do 9210 IFS=$as_save_IFS 9211 case $as_dir in #((( 9212 '') as_dir=./ ;; 9213 */) ;; 9214 *) as_dir=$as_dir/ ;; 9215 esac 9216 for ac_exec_ext in '' $ac_executable_extensions; do 9217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9218 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9220 break 2 9221 fi 9222done 9223 done 9224IFS=$as_save_IFS 9225 9226fi 9227fi 9228OBJDUMP=$ac_cv_prog_OBJDUMP 9229if test -n "$OBJDUMP"; then 9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9231printf "%s\n" "$OBJDUMP" >&6; } 9232else 9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9234printf "%s\n" "no" >&6; } 9235fi 9236 9237 9238fi 9239if test -z "$ac_cv_prog_OBJDUMP"; then 9240 ac_ct_OBJDUMP=$OBJDUMP 9241 # Extract the first word of "objdump", so it can be a program name with args. 9242set dummy objdump; ac_word=$2 9243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9244printf %s "checking for $ac_word... " >&6; } 9245if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9246then : 9247 printf %s "(cached) " >&6 9248else $as_nop 9249 if test -n "$ac_ct_OBJDUMP"; then 9250 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9251else 9252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9253for as_dir in $PATH 9254do 9255 IFS=$as_save_IFS 9256 case $as_dir in #((( 9257 '') as_dir=./ ;; 9258 */) ;; 9259 *) as_dir=$as_dir/ ;; 9260 esac 9261 for ac_exec_ext in '' $ac_executable_extensions; do 9262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9263 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9265 break 2 9266 fi 9267done 9268 done 9269IFS=$as_save_IFS 9270 9271fi 9272fi 9273ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9274if test -n "$ac_ct_OBJDUMP"; then 9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9276printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9277else 9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9279printf "%s\n" "no" >&6; } 9280fi 9281 9282 if test "x$ac_ct_OBJDUMP" = x; then 9283 OBJDUMP="false" 9284 else 9285 case $cross_compiling:$ac_tool_warned in 9286yes:) 9287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9288printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9289ac_tool_warned=yes ;; 9290esac 9291 OBJDUMP=$ac_ct_OBJDUMP 9292 fi 9293else 9294 OBJDUMP="$ac_cv_prog_OBJDUMP" 9295fi 9296 9297 ;; 9298esac 9299 9300test -z "$AS" && AS=as 9301 9302 9303 9304 9305 9306test -z "$DLLTOOL" && DLLTOOL=dlltool 9307 9308 9309 9310 9311 9312test -z "$OBJDUMP" && OBJDUMP=objdump 9313 9314 9315 9316 9317 9318 9319 9320 enable_dlopen=no 9321 9322 9323 9324 # Check whether --enable-shared was given. 9325if test ${enable_shared+y} 9326then : 9327 enableval=$enable_shared; p=${PACKAGE-default} 9328 case $enableval in 9329 yes) enable_shared=yes ;; 9330 no) enable_shared=no ;; 9331 *) 9332 enable_shared=no 9333 # Look at the argument we got. We use all the common list separators. 9334 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9335 for pkg in $enableval; do 9336 IFS=$lt_save_ifs 9337 if test "X$pkg" = "X$p"; then 9338 enable_shared=yes 9339 fi 9340 done 9341 IFS=$lt_save_ifs 9342 ;; 9343 esac 9344else $as_nop 9345 enable_shared=yes 9346fi 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 # Check whether --enable-static was given. 9357if test ${enable_static+y} 9358then : 9359 enableval=$enable_static; p=${PACKAGE-default} 9360 case $enableval in 9361 yes) enable_static=yes ;; 9362 no) enable_static=no ;; 9363 *) 9364 enable_static=no 9365 # Look at the argument we got. We use all the common list separators. 9366 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9367 for pkg in $enableval; do 9368 IFS=$lt_save_ifs 9369 if test "X$pkg" = "X$p"; then 9370 enable_static=yes 9371 fi 9372 done 9373 IFS=$lt_save_ifs 9374 ;; 9375 esac 9376else $as_nop 9377 enable_static=yes 9378fi 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389# Check whether --with-pic was given. 9390if test ${with_pic+y} 9391then : 9392 withval=$with_pic; lt_p=${PACKAGE-default} 9393 case $withval in 9394 yes|no) pic_mode=$withval ;; 9395 *) 9396 pic_mode=default 9397 # Look at the argument we got. We use all the common list separators. 9398 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9399 for lt_pkg in $withval; do 9400 IFS=$lt_save_ifs 9401 if test "X$lt_pkg" = "X$lt_p"; then 9402 pic_mode=yes 9403 fi 9404 done 9405 IFS=$lt_save_ifs 9406 ;; 9407 esac 9408else $as_nop 9409 pic_mode=default 9410fi 9411 9412 9413 9414 9415 9416 9417 9418 9419 # Check whether --enable-fast-install was given. 9420if test ${enable_fast_install+y} 9421then : 9422 enableval=$enable_fast_install; p=${PACKAGE-default} 9423 case $enableval in 9424 yes) enable_fast_install=yes ;; 9425 no) enable_fast_install=no ;; 9426 *) 9427 enable_fast_install=no 9428 # Look at the argument we got. We use all the common list separators. 9429 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9430 for pkg in $enableval; do 9431 IFS=$lt_save_ifs 9432 if test "X$pkg" = "X$p"; then 9433 enable_fast_install=yes 9434 fi 9435 done 9436 IFS=$lt_save_ifs 9437 ;; 9438 esac 9439else $as_nop 9440 enable_fast_install=yes 9441fi 9442 9443 9444 9445 9446 9447 9448 9449 9450 shared_archive_member_spec= 9451case $host,$enable_shared in 9452power*-*-aix[5-9]*,yes) 9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9454printf %s "checking which variant of shared library versioning to provide... " >&6; } 9455 9456# Check whether --with-aix-soname was given. 9457if test ${with_aix_soname+y} 9458then : 9459 withval=$with_aix_soname; case $withval in 9460 aix|svr4|both) 9461 ;; 9462 *) 9463 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9464 ;; 9465 esac 9466 lt_cv_with_aix_soname=$with_aix_soname 9467else $as_nop 9468 if test ${lt_cv_with_aix_soname+y} 9469then : 9470 printf %s "(cached) " >&6 9471else $as_nop 9472 lt_cv_with_aix_soname=aix 9473fi 9474 9475 with_aix_soname=$lt_cv_with_aix_soname 9476fi 9477 9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9479printf "%s\n" "$with_aix_soname" >&6; } 9480 if test aix != "$with_aix_soname"; then 9481 # For the AIX way of multilib, we name the shared archive member 9482 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9483 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9484 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9485 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9486 if test 64 = "${OBJECT_MODE-32}"; then 9487 shared_archive_member_spec=shr_64 9488 else 9489 shared_archive_member_spec=shr 9490 fi 9491 fi 9492 ;; 9493*) 9494 with_aix_soname=aix 9495 ;; 9496esac 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507# This can be used to rebuild libtool when needed 9508LIBTOOL_DEPS=$ltmain 9509 9510# Always use our own libtool. 9511LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542test -z "$LN_S" && LN_S="ln -s" 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557if test -n "${ZSH_VERSION+set}"; then 9558 setopt NO_GLOB_SUBST 9559fi 9560 9561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9562printf %s "checking for objdir... " >&6; } 9563if test ${lt_cv_objdir+y} 9564then : 9565 printf %s "(cached) " >&6 9566else $as_nop 9567 rm -f .libs 2>/dev/null 9568mkdir .libs 2>/dev/null 9569if test -d .libs; then 9570 lt_cv_objdir=.libs 9571else 9572 # MS-DOS does not allow filenames that begin with a dot. 9573 lt_cv_objdir=_libs 9574fi 9575rmdir .libs 2>/dev/null 9576fi 9577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9578printf "%s\n" "$lt_cv_objdir" >&6; } 9579objdir=$lt_cv_objdir 9580 9581 9582 9583 9584 9585printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9586 9587 9588 9589 9590case $host_os in 9591aix3*) 9592 # AIX sometimes has problems with the GCC collect2 program. For some 9593 # reason, if we set the COLLECT_NAMES environment variable, the problems 9594 # vanish in a puff of smoke. 9595 if test set != "${COLLECT_NAMES+set}"; then 9596 COLLECT_NAMES= 9597 export COLLECT_NAMES 9598 fi 9599 ;; 9600esac 9601 9602# Global variables: 9603ofile=libtool 9604can_build_shared=yes 9605 9606# All known linkers require a '.a' archive for static linking (except MSVC, 9607# which needs '.lib'). 9608libext=a 9609 9610with_gnu_ld=$lt_cv_prog_gnu_ld 9611 9612old_CC=$CC 9613old_CFLAGS=$CFLAGS 9614 9615# Set sane defaults for various variables 9616test -z "$CC" && CC=cc 9617test -z "$LTCC" && LTCC=$CC 9618test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9619test -z "$LD" && LD=ld 9620test -z "$ac_objext" && ac_objext=o 9621 9622func_cc_basename $compiler 9623cc_basename=$func_cc_basename_result 9624 9625 9626# Only perform the check for file, if the check method requires it 9627test -z "$MAGIC_CMD" && MAGIC_CMD=file 9628case $deplibs_check_method in 9629file_magic*) 9630 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9632printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9633if test ${lt_cv_path_MAGIC_CMD+y} 9634then : 9635 printf %s "(cached) " >&6 9636else $as_nop 9637 case $MAGIC_CMD in 9638[\\/*] | ?:[\\/]*) 9639 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9640 ;; 9641*) 9642 lt_save_MAGIC_CMD=$MAGIC_CMD 9643 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9645 for ac_dir in $ac_dummy; do 9646 IFS=$lt_save_ifs 9647 test -z "$ac_dir" && ac_dir=. 9648 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9649 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9650 if test -n "$file_magic_test_file"; then 9651 case $deplibs_check_method in 9652 "file_magic "*) 9653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9654 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9656 $EGREP "$file_magic_regex" > /dev/null; then 9657 : 9658 else 9659 cat <<_LT_EOF 1>&2 9660 9661*** Warning: the command libtool uses to detect shared libraries, 9662*** $file_magic_cmd, produces output that libtool cannot recognize. 9663*** The result is that libtool may fail to recognize shared libraries 9664*** as such. This will affect the creation of libtool libraries that 9665*** depend on shared libraries, but programs linked with such libtool 9666*** libraries will work regardless of this problem. Nevertheless, you 9667*** may want to report the problem to your system manager and/or to 9668*** bug-libtool@gnu.org 9669 9670_LT_EOF 9671 fi ;; 9672 esac 9673 fi 9674 break 9675 fi 9676 done 9677 IFS=$lt_save_ifs 9678 MAGIC_CMD=$lt_save_MAGIC_CMD 9679 ;; 9680esac 9681fi 9682 9683MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9684if test -n "$MAGIC_CMD"; then 9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9686printf "%s\n" "$MAGIC_CMD" >&6; } 9687else 9688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9689printf "%s\n" "no" >&6; } 9690fi 9691 9692 9693 9694 9695 9696if test -z "$lt_cv_path_MAGIC_CMD"; then 9697 if test -n "$ac_tool_prefix"; then 9698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9699printf %s "checking for file... " >&6; } 9700if test ${lt_cv_path_MAGIC_CMD+y} 9701then : 9702 printf %s "(cached) " >&6 9703else $as_nop 9704 case $MAGIC_CMD in 9705[\\/*] | ?:[\\/]*) 9706 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9707 ;; 9708*) 9709 lt_save_MAGIC_CMD=$MAGIC_CMD 9710 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9712 for ac_dir in $ac_dummy; do 9713 IFS=$lt_save_ifs 9714 test -z "$ac_dir" && ac_dir=. 9715 if test -f "$ac_dir/file"; then 9716 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9717 if test -n "$file_magic_test_file"; then 9718 case $deplibs_check_method in 9719 "file_magic "*) 9720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9721 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9723 $EGREP "$file_magic_regex" > /dev/null; then 9724 : 9725 else 9726 cat <<_LT_EOF 1>&2 9727 9728*** Warning: the command libtool uses to detect shared libraries, 9729*** $file_magic_cmd, produces output that libtool cannot recognize. 9730*** The result is that libtool may fail to recognize shared libraries 9731*** as such. This will affect the creation of libtool libraries that 9732*** depend on shared libraries, but programs linked with such libtool 9733*** libraries will work regardless of this problem. Nevertheless, you 9734*** may want to report the problem to your system manager and/or to 9735*** bug-libtool@gnu.org 9736 9737_LT_EOF 9738 fi ;; 9739 esac 9740 fi 9741 break 9742 fi 9743 done 9744 IFS=$lt_save_ifs 9745 MAGIC_CMD=$lt_save_MAGIC_CMD 9746 ;; 9747esac 9748fi 9749 9750MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9751if test -n "$MAGIC_CMD"; then 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9753printf "%s\n" "$MAGIC_CMD" >&6; } 9754else 9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9756printf "%s\n" "no" >&6; } 9757fi 9758 9759 9760 else 9761 MAGIC_CMD=: 9762 fi 9763fi 9764 9765 fi 9766 ;; 9767esac 9768 9769# Use C for the default configuration in the libtool script 9770 9771lt_save_CC=$CC 9772ac_ext=c 9773ac_cpp='$CPP $CPPFLAGS' 9774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9776ac_compiler_gnu=$ac_cv_c_compiler_gnu 9777 9778 9779# Source file extension for C test sources. 9780ac_ext=c 9781 9782# Object file extension for compiled C test sources. 9783objext=o 9784objext=$objext 9785 9786# Code to be used in simple compile tests 9787lt_simple_compile_test_code="int some_variable = 0;" 9788 9789# Code to be used in simple link tests 9790lt_simple_link_test_code='int main(){return(0);}' 9791 9792 9793 9794 9795 9796 9797 9798# If no C compiler was specified, use CC. 9799LTCC=${LTCC-"$CC"} 9800 9801# If no C compiler flags were specified, use CFLAGS. 9802LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9803 9804# Allow CC to be a program name with arguments. 9805compiler=$CC 9806 9807# Save the default compiler, since it gets overwritten when the other 9808# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9809compiler_DEFAULT=$CC 9810 9811# save warnings/boilerplate of simple test code 9812ac_outfile=conftest.$ac_objext 9813echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9814eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9815_lt_compiler_boilerplate=`cat conftest.err` 9816$RM conftest* 9817 9818ac_outfile=conftest.$ac_objext 9819echo "$lt_simple_link_test_code" >conftest.$ac_ext 9820eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9821_lt_linker_boilerplate=`cat conftest.err` 9822$RM -r conftest* 9823 9824 9825## CAVEAT EMPTOR: 9826## There is no encapsulation within the following macros, do not change 9827## the running order or otherwise move them around unless you know exactly 9828## what you are doing... 9829if test -n "$compiler"; then 9830 9831lt_prog_compiler_no_builtin_flag= 9832 9833if test yes = "$GCC"; then 9834 case $cc_basename in 9835 nvcc*) 9836 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9837 *) 9838 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9839 esac 9840 9841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9842printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9843if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9844then : 9845 printf %s "(cached) " >&6 9846else $as_nop 9847 lt_cv_prog_compiler_rtti_exceptions=no 9848 ac_outfile=conftest.$ac_objext 9849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9850 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9851 # Insert the option either (1) after the last *FLAGS variable, or 9852 # (2) before a word containing "conftest.", or (3) at the end. 9853 # Note that $ac_compile itself does not contain backslashes and begins 9854 # with a dollar sign (not a hyphen), so the echo should work correctly. 9855 # The option is referenced via a variable to avoid confusing sed. 9856 lt_compile=`echo "$ac_compile" | $SED \ 9857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9859 -e 's:$: $lt_compiler_flag:'` 9860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9861 (eval "$lt_compile" 2>conftest.err) 9862 ac_status=$? 9863 cat conftest.err >&5 9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9865 if (exit $ac_status) && test -s "$ac_outfile"; then 9866 # The compiler can only warn and ignore the option if not recognized 9867 # So say no if there are warnings other than the usual output. 9868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9871 lt_cv_prog_compiler_rtti_exceptions=yes 9872 fi 9873 fi 9874 $RM conftest* 9875 9876fi 9877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9878printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9879 9880if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9881 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9882else 9883 : 9884fi 9885 9886fi 9887 9888 9889 9890 9891 9892 9893 lt_prog_compiler_wl= 9894lt_prog_compiler_pic= 9895lt_prog_compiler_static= 9896 9897 9898 if test yes = "$GCC"; then 9899 lt_prog_compiler_wl='-Wl,' 9900 lt_prog_compiler_static='-static' 9901 9902 case $host_os in 9903 aix*) 9904 # All AIX code is PIC. 9905 if test ia64 = "$host_cpu"; then 9906 # AIX 5 now supports IA64 processor 9907 lt_prog_compiler_static='-Bstatic' 9908 fi 9909 lt_prog_compiler_pic='-fPIC' 9910 ;; 9911 9912 amigaos*) 9913 case $host_cpu in 9914 powerpc) 9915 # see comment about AmigaOS4 .so support 9916 lt_prog_compiler_pic='-fPIC' 9917 ;; 9918 m68k) 9919 # FIXME: we need at least 68020 code to build shared libraries, but 9920 # adding the '-m68020' flag to GCC prevents building anything better, 9921 # like '-m68040'. 9922 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9923 ;; 9924 esac 9925 ;; 9926 9927 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9928 # PIC is the default for these OSes. 9929 ;; 9930 9931 mingw* | cygwin* | pw32* | os2* | cegcc*) 9932 # This hack is so that the source file can tell whether it is being 9933 # built for inclusion in a dll (and should export symbols for example). 9934 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9935 # (--disable-auto-import) libraries 9936 lt_prog_compiler_pic='-DDLL_EXPORT' 9937 case $host_os in 9938 os2*) 9939 lt_prog_compiler_static='$wl-static' 9940 ;; 9941 esac 9942 ;; 9943 9944 darwin* | rhapsody*) 9945 # PIC is the default on this platform 9946 # Common symbols not allowed in MH_DYLIB files 9947 lt_prog_compiler_pic='-fno-common' 9948 ;; 9949 9950 haiku*) 9951 # PIC is the default for Haiku. 9952 # The "-static" flag exists, but is broken. 9953 lt_prog_compiler_static= 9954 ;; 9955 9956 hpux*) 9957 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9958 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9959 # sets the default TLS model and affects inlining. 9960 case $host_cpu in 9961 hppa*64*) 9962 # +Z the default 9963 ;; 9964 *) 9965 lt_prog_compiler_pic='-fPIC' 9966 ;; 9967 esac 9968 ;; 9969 9970 interix[3-9]*) 9971 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9972 # Instead, we relocate shared libraries at runtime. 9973 ;; 9974 9975 msdosdjgpp*) 9976 # Just because we use GCC doesn't mean we suddenly get shared libraries 9977 # on systems that don't support them. 9978 lt_prog_compiler_can_build_shared=no 9979 enable_shared=no 9980 ;; 9981 9982 *nto* | *qnx*) 9983 # QNX uses GNU C++, but need to define -shared option too, otherwise 9984 # it will coredump. 9985 lt_prog_compiler_pic='-fPIC -shared' 9986 ;; 9987 9988 sysv4*MP*) 9989 if test -d /usr/nec; then 9990 lt_prog_compiler_pic=-Kconform_pic 9991 fi 9992 ;; 9993 9994 *) 9995 lt_prog_compiler_pic='-fPIC' 9996 ;; 9997 esac 9998 9999 case $cc_basename in 10000 nvcc*) # Cuda Compiler Driver 2.2 10001 lt_prog_compiler_wl='-Xlinker ' 10002 if test -n "$lt_prog_compiler_pic"; then 10003 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10004 fi 10005 ;; 10006 esac 10007 else 10008 # PORTME Check for flag to pass linker flags through the system compiler. 10009 case $host_os in 10010 aix*) 10011 lt_prog_compiler_wl='-Wl,' 10012 if test ia64 = "$host_cpu"; then 10013 # AIX 5 now supports IA64 processor 10014 lt_prog_compiler_static='-Bstatic' 10015 else 10016 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10017 fi 10018 ;; 10019 10020 darwin* | rhapsody*) 10021 # PIC is the default on this platform 10022 # Common symbols not allowed in MH_DYLIB files 10023 lt_prog_compiler_pic='-fno-common' 10024 case $cc_basename in 10025 nagfor*) 10026 # NAG Fortran compiler 10027 lt_prog_compiler_wl='-Wl,-Wl,,' 10028 lt_prog_compiler_pic='-PIC' 10029 lt_prog_compiler_static='-Bstatic' 10030 ;; 10031 esac 10032 ;; 10033 10034 mingw* | cygwin* | pw32* | os2* | cegcc*) 10035 # This hack is so that the source file can tell whether it is being 10036 # built for inclusion in a dll (and should export symbols for example). 10037 lt_prog_compiler_pic='-DDLL_EXPORT' 10038 case $host_os in 10039 os2*) 10040 lt_prog_compiler_static='$wl-static' 10041 ;; 10042 esac 10043 ;; 10044 10045 hpux9* | hpux10* | hpux11*) 10046 lt_prog_compiler_wl='-Wl,' 10047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10048 # not for PA HP-UX. 10049 case $host_cpu in 10050 hppa*64*|ia64*) 10051 # +Z the default 10052 ;; 10053 *) 10054 lt_prog_compiler_pic='+Z' 10055 ;; 10056 esac 10057 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10058 lt_prog_compiler_static='$wl-a ${wl}archive' 10059 ;; 10060 10061 irix5* | irix6* | nonstopux*) 10062 lt_prog_compiler_wl='-Wl,' 10063 # PIC (with -KPIC) is the default. 10064 lt_prog_compiler_static='-non_shared' 10065 ;; 10066 10067 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10068 case $cc_basename in 10069 # old Intel for x86_64, which still supported -KPIC. 10070 ecc*) 10071 lt_prog_compiler_wl='-Wl,' 10072 lt_prog_compiler_pic='-KPIC' 10073 lt_prog_compiler_static='-static' 10074 ;; 10075 # icc used to be incompatible with GCC. 10076 # ICC 10 doesn't accept -KPIC any more. 10077 icc* | ifort*) 10078 lt_prog_compiler_wl='-Wl,' 10079 lt_prog_compiler_pic='-fPIC' 10080 lt_prog_compiler_static='-static' 10081 ;; 10082 # Lahey Fortran 8.1. 10083 lf95*) 10084 lt_prog_compiler_wl='-Wl,' 10085 lt_prog_compiler_pic='--shared' 10086 lt_prog_compiler_static='--static' 10087 ;; 10088 nagfor*) 10089 # NAG Fortran compiler 10090 lt_prog_compiler_wl='-Wl,-Wl,,' 10091 lt_prog_compiler_pic='-PIC' 10092 lt_prog_compiler_static='-Bstatic' 10093 ;; 10094 tcc*) 10095 # Fabrice Bellard et al's Tiny C Compiler 10096 lt_prog_compiler_wl='-Wl,' 10097 lt_prog_compiler_pic='-fPIC' 10098 lt_prog_compiler_static='-static' 10099 ;; 10100 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10101 # Portland Group compilers (*not* the Pentium gcc compiler, 10102 # which looks to be a dead project) 10103 lt_prog_compiler_wl='-Wl,' 10104 lt_prog_compiler_pic='-fpic' 10105 lt_prog_compiler_static='-Bstatic' 10106 ;; 10107 ccc*) 10108 lt_prog_compiler_wl='-Wl,' 10109 # All Alpha code is PIC. 10110 lt_prog_compiler_static='-non_shared' 10111 ;; 10112 xl* | bgxl* | bgf* | mpixl*) 10113 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10114 lt_prog_compiler_wl='-Wl,' 10115 lt_prog_compiler_pic='-qpic' 10116 lt_prog_compiler_static='-qstaticlink' 10117 ;; 10118 *) 10119 case `$CC -V 2>&1 | sed 5q` in 10120 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10121 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10122 lt_prog_compiler_pic='-KPIC' 10123 lt_prog_compiler_static='-Bstatic' 10124 lt_prog_compiler_wl='' 10125 ;; 10126 *Sun\ F* | *Sun*Fortran*) 10127 lt_prog_compiler_pic='-KPIC' 10128 lt_prog_compiler_static='-Bstatic' 10129 lt_prog_compiler_wl='-Qoption ld ' 10130 ;; 10131 *Sun\ C*) 10132 # Sun C 5.9 10133 lt_prog_compiler_pic='-KPIC' 10134 lt_prog_compiler_static='-Bstatic' 10135 lt_prog_compiler_wl='-Wl,' 10136 ;; 10137 *Intel*\ [CF]*Compiler*) 10138 lt_prog_compiler_wl='-Wl,' 10139 lt_prog_compiler_pic='-fPIC' 10140 lt_prog_compiler_static='-static' 10141 ;; 10142 *Portland\ Group*) 10143 lt_prog_compiler_wl='-Wl,' 10144 lt_prog_compiler_pic='-fpic' 10145 lt_prog_compiler_static='-Bstatic' 10146 ;; 10147 esac 10148 ;; 10149 esac 10150 ;; 10151 10152 newsos6) 10153 lt_prog_compiler_pic='-KPIC' 10154 lt_prog_compiler_static='-Bstatic' 10155 ;; 10156 10157 *nto* | *qnx*) 10158 # QNX uses GNU C++, but need to define -shared option too, otherwise 10159 # it will coredump. 10160 lt_prog_compiler_pic='-fPIC -shared' 10161 ;; 10162 10163 osf3* | osf4* | osf5*) 10164 lt_prog_compiler_wl='-Wl,' 10165 # All OSF/1 code is PIC. 10166 lt_prog_compiler_static='-non_shared' 10167 ;; 10168 10169 rdos*) 10170 lt_prog_compiler_static='-non_shared' 10171 ;; 10172 10173 solaris*) 10174 lt_prog_compiler_pic='-KPIC' 10175 lt_prog_compiler_static='-Bstatic' 10176 case $cc_basename in 10177 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10178 lt_prog_compiler_wl='-Qoption ld ';; 10179 *) 10180 lt_prog_compiler_wl='-Wl,';; 10181 esac 10182 ;; 10183 10184 sunos4*) 10185 lt_prog_compiler_wl='-Qoption ld ' 10186 lt_prog_compiler_pic='-PIC' 10187 lt_prog_compiler_static='-Bstatic' 10188 ;; 10189 10190 sysv4 | sysv4.2uw2* | sysv4.3*) 10191 lt_prog_compiler_wl='-Wl,' 10192 lt_prog_compiler_pic='-KPIC' 10193 lt_prog_compiler_static='-Bstatic' 10194 ;; 10195 10196 sysv4*MP*) 10197 if test -d /usr/nec; then 10198 lt_prog_compiler_pic='-Kconform_pic' 10199 lt_prog_compiler_static='-Bstatic' 10200 fi 10201 ;; 10202 10203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10204 lt_prog_compiler_wl='-Wl,' 10205 lt_prog_compiler_pic='-KPIC' 10206 lt_prog_compiler_static='-Bstatic' 10207 ;; 10208 10209 unicos*) 10210 lt_prog_compiler_wl='-Wl,' 10211 lt_prog_compiler_can_build_shared=no 10212 ;; 10213 10214 uts4*) 10215 lt_prog_compiler_pic='-pic' 10216 lt_prog_compiler_static='-Bstatic' 10217 ;; 10218 10219 *) 10220 lt_prog_compiler_can_build_shared=no 10221 ;; 10222 esac 10223 fi 10224 10225case $host_os in 10226 # For platforms that do not support PIC, -DPIC is meaningless: 10227 *djgpp*) 10228 lt_prog_compiler_pic= 10229 ;; 10230 *) 10231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10232 ;; 10233esac 10234 10235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10236printf %s "checking for $compiler option to produce PIC... " >&6; } 10237if test ${lt_cv_prog_compiler_pic+y} 10238then : 10239 printf %s "(cached) " >&6 10240else $as_nop 10241 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10242fi 10243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10244printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10245lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10246 10247# 10248# Check to make sure the PIC flag actually works. 10249# 10250if test -n "$lt_prog_compiler_pic"; then 10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10252printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10253if test ${lt_cv_prog_compiler_pic_works+y} 10254then : 10255 printf %s "(cached) " >&6 10256else $as_nop 10257 lt_cv_prog_compiler_pic_works=no 10258 ac_outfile=conftest.$ac_objext 10259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10260 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10261 # Insert the option either (1) after the last *FLAGS variable, or 10262 # (2) before a word containing "conftest.", or (3) at the end. 10263 # Note that $ac_compile itself does not contain backslashes and begins 10264 # with a dollar sign (not a hyphen), so the echo should work correctly. 10265 # The option is referenced via a variable to avoid confusing sed. 10266 lt_compile=`echo "$ac_compile" | $SED \ 10267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10269 -e 's:$: $lt_compiler_flag:'` 10270 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10271 (eval "$lt_compile" 2>conftest.err) 10272 ac_status=$? 10273 cat conftest.err >&5 10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10275 if (exit $ac_status) && test -s "$ac_outfile"; then 10276 # The compiler can only warn and ignore the option if not recognized 10277 # So say no if there are warnings other than the usual output. 10278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10281 lt_cv_prog_compiler_pic_works=yes 10282 fi 10283 fi 10284 $RM conftest* 10285 10286fi 10287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10288printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10289 10290if test yes = "$lt_cv_prog_compiler_pic_works"; then 10291 case $lt_prog_compiler_pic in 10292 "" | " "*) ;; 10293 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10294 esac 10295else 10296 lt_prog_compiler_pic= 10297 lt_prog_compiler_can_build_shared=no 10298fi 10299 10300fi 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312# 10313# Check to make sure the static flag actually works. 10314# 10315wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10317printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10318if test ${lt_cv_prog_compiler_static_works+y} 10319then : 10320 printf %s "(cached) " >&6 10321else $as_nop 10322 lt_cv_prog_compiler_static_works=no 10323 save_LDFLAGS=$LDFLAGS 10324 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10325 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10326 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10327 # The linker can only warn and ignore the option if not recognized 10328 # So say no if there are warnings 10329 if test -s conftest.err; then 10330 # Append any errors to the config.log. 10331 cat conftest.err 1>&5 10332 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10334 if diff conftest.exp conftest.er2 >/dev/null; then 10335 lt_cv_prog_compiler_static_works=yes 10336 fi 10337 else 10338 lt_cv_prog_compiler_static_works=yes 10339 fi 10340 fi 10341 $RM -r conftest* 10342 LDFLAGS=$save_LDFLAGS 10343 10344fi 10345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10346printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10347 10348if test yes = "$lt_cv_prog_compiler_static_works"; then 10349 : 10350else 10351 lt_prog_compiler_static= 10352fi 10353 10354 10355 10356 10357 10358 10359 10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10361printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10362if test ${lt_cv_prog_compiler_c_o+y} 10363then : 10364 printf %s "(cached) " >&6 10365else $as_nop 10366 lt_cv_prog_compiler_c_o=no 10367 $RM -r conftest 2>/dev/null 10368 mkdir conftest 10369 cd conftest 10370 mkdir out 10371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10372 10373 lt_compiler_flag="-o out/conftest2.$ac_objext" 10374 # Insert the option either (1) after the last *FLAGS variable, or 10375 # (2) before a word containing "conftest.", or (3) at the end. 10376 # Note that $ac_compile itself does not contain backslashes and begins 10377 # with a dollar sign (not a hyphen), so the echo should work correctly. 10378 lt_compile=`echo "$ac_compile" | $SED \ 10379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10381 -e 's:$: $lt_compiler_flag:'` 10382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10383 (eval "$lt_compile" 2>out/conftest.err) 10384 ac_status=$? 10385 cat out/conftest.err >&5 10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10387 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10388 then 10389 # The compiler can only warn and ignore the option if not recognized 10390 # So say no if there are warnings 10391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10392 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10393 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10394 lt_cv_prog_compiler_c_o=yes 10395 fi 10396 fi 10397 chmod u+w . 2>&5 10398 $RM conftest* 10399 # SGI C++ compiler will create directory out/ii_files/ for 10400 # template instantiation 10401 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10402 $RM out/* && rmdir out 10403 cd .. 10404 $RM -r conftest 10405 $RM conftest* 10406 10407fi 10408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10409printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10410 10411 10412 10413 10414 10415 10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10417printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10418if test ${lt_cv_prog_compiler_c_o+y} 10419then : 10420 printf %s "(cached) " >&6 10421else $as_nop 10422 lt_cv_prog_compiler_c_o=no 10423 $RM -r conftest 2>/dev/null 10424 mkdir conftest 10425 cd conftest 10426 mkdir out 10427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10428 10429 lt_compiler_flag="-o out/conftest2.$ac_objext" 10430 # Insert the option either (1) after the last *FLAGS variable, or 10431 # (2) before a word containing "conftest.", or (3) at the end. 10432 # Note that $ac_compile itself does not contain backslashes and begins 10433 # with a dollar sign (not a hyphen), so the echo should work correctly. 10434 lt_compile=`echo "$ac_compile" | $SED \ 10435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10437 -e 's:$: $lt_compiler_flag:'` 10438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10439 (eval "$lt_compile" 2>out/conftest.err) 10440 ac_status=$? 10441 cat out/conftest.err >&5 10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10443 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10444 then 10445 # The compiler can only warn and ignore the option if not recognized 10446 # So say no if there are warnings 10447 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10448 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10449 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10450 lt_cv_prog_compiler_c_o=yes 10451 fi 10452 fi 10453 chmod u+w . 2>&5 10454 $RM conftest* 10455 # SGI C++ compiler will create directory out/ii_files/ for 10456 # template instantiation 10457 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10458 $RM out/* && rmdir out 10459 cd .. 10460 $RM -r conftest 10461 $RM conftest* 10462 10463fi 10464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10465printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10466 10467 10468 10469 10470hard_links=nottested 10471if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10472 # do not overwrite the value of need_locks provided by the user 10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10474printf %s "checking if we can lock with hard links... " >&6; } 10475 hard_links=yes 10476 $RM conftest* 10477 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10478 touch conftest.a 10479 ln conftest.a conftest.b 2>&5 || hard_links=no 10480 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10482printf "%s\n" "$hard_links" >&6; } 10483 if test no = "$hard_links"; then 10484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10485printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10486 need_locks=warn 10487 fi 10488else 10489 need_locks=no 10490fi 10491 10492 10493 10494 10495 10496 10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10498printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10499 10500 runpath_var= 10501 allow_undefined_flag= 10502 always_export_symbols=no 10503 archive_cmds= 10504 archive_expsym_cmds= 10505 compiler_needs_object=no 10506 enable_shared_with_static_runtimes=no 10507 export_dynamic_flag_spec= 10508 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10509 hardcode_automatic=no 10510 hardcode_direct=no 10511 hardcode_direct_absolute=no 10512 hardcode_libdir_flag_spec= 10513 hardcode_libdir_separator= 10514 hardcode_minus_L=no 10515 hardcode_shlibpath_var=unsupported 10516 inherit_rpath=no 10517 link_all_deplibs=unknown 10518 module_cmds= 10519 module_expsym_cmds= 10520 old_archive_from_new_cmds= 10521 old_archive_from_expsyms_cmds= 10522 thread_safe_flag_spec= 10523 whole_archive_flag_spec= 10524 # include_expsyms should be a list of space-separated symbols to be *always* 10525 # included in the symbol list 10526 include_expsyms= 10527 # exclude_expsyms can be an extended regexp of symbols to exclude 10528 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10529 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10530 # as well as any symbol that contains 'd'. 10531 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10533 # platforms (ab)use it in PIC code, but their linkers get confused if 10534 # the symbol is explicitly referenced. Since portable code cannot 10535 # rely on this symbol name, it's probably fine to never include it in 10536 # preloaded symbol tables. 10537 # Exclude shared library initialization/finalization symbols. 10538 extract_expsyms_cmds= 10539 10540 case $host_os in 10541 cygwin* | mingw* | pw32* | cegcc*) 10542 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10543 # When not using gcc, we currently assume that we are using 10544 # Microsoft Visual C++. 10545 if test yes != "$GCC"; then 10546 with_gnu_ld=no 10547 fi 10548 ;; 10549 interix*) 10550 # we just hope/assume this is gcc and not c89 (= MSVC++) 10551 with_gnu_ld=yes 10552 ;; 10553 openbsd* | bitrig*) 10554 with_gnu_ld=no 10555 ;; 10556 esac 10557 10558 ld_shlibs=yes 10559 10560 # On some targets, GNU ld is compatible enough with the native linker 10561 # that we're better off using the native interface for both. 10562 lt_use_gnu_ld_interface=no 10563 if test yes = "$with_gnu_ld"; then 10564 case $host_os in 10565 aix*) 10566 # The AIX port of GNU ld has always aspired to compatibility 10567 # with the native linker. However, as the warning in the GNU ld 10568 # block says, versions before 2.19.5* couldn't really create working 10569 # shared libraries, regardless of the interface used. 10570 case `$LD -v 2>&1` in 10571 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10572 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10573 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10574 *) 10575 lt_use_gnu_ld_interface=yes 10576 ;; 10577 esac 10578 ;; 10579 *) 10580 lt_use_gnu_ld_interface=yes 10581 ;; 10582 esac 10583 fi 10584 10585 if test yes = "$lt_use_gnu_ld_interface"; then 10586 # If archive_cmds runs LD, not CC, wlarc should be empty 10587 wlarc='$wl' 10588 10589 # Set some defaults for GNU ld with shared library support. These 10590 # are reset later if shared libraries are not supported. Putting them 10591 # here allows them to be overridden if necessary. 10592 runpath_var=LD_RUN_PATH 10593 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10594 export_dynamic_flag_spec='$wl--export-dynamic' 10595 # ancient GNU ld didn't support --whole-archive et. al. 10596 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10597 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10598 else 10599 whole_archive_flag_spec= 10600 fi 10601 supports_anon_versioning=no 10602 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10603 *GNU\ gold*) supports_anon_versioning=yes ;; 10604 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10605 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10606 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10607 *\ 2.11.*) ;; # other 2.11 versions 10608 *) supports_anon_versioning=yes ;; 10609 esac 10610 10611 # See if GNU ld supports shared libraries. 10612 case $host_os in 10613 aix[3-9]*) 10614 # On AIX/PPC, the GNU linker is very broken 10615 if test ia64 != "$host_cpu"; then 10616 ld_shlibs=no 10617 cat <<_LT_EOF 1>&2 10618 10619*** Warning: the GNU linker, at least up to release 2.19, is reported 10620*** to be unable to reliably create shared libraries on AIX. 10621*** Therefore, libtool is disabling shared libraries support. If you 10622*** really care for shared libraries, you may want to install binutils 10623*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10624*** You will then need to restart the configuration process. 10625 10626_LT_EOF 10627 fi 10628 ;; 10629 10630 amigaos*) 10631 case $host_cpu in 10632 powerpc) 10633 # see comment about AmigaOS4 .so support 10634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10635 archive_expsym_cmds='' 10636 ;; 10637 m68k) 10638 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10639 hardcode_libdir_flag_spec='-L$libdir' 10640 hardcode_minus_L=yes 10641 ;; 10642 esac 10643 ;; 10644 10645 beos*) 10646 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10647 allow_undefined_flag=unsupported 10648 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10649 # support --undefined. This deserves some investigation. FIXME 10650 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10651 else 10652 ld_shlibs=no 10653 fi 10654 ;; 10655 10656 cygwin* | mingw* | pw32* | cegcc*) 10657 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10658 # as there is no search path for DLLs. 10659 hardcode_libdir_flag_spec='-L$libdir' 10660 export_dynamic_flag_spec='$wl--export-all-symbols' 10661 allow_undefined_flag=unsupported 10662 always_export_symbols=no 10663 enable_shared_with_static_runtimes=yes 10664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10665 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10666 10667 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10669 # If the export-symbols file already is a .def file, use it as 10670 # is; otherwise, prepend EXPORTS... 10671 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10672 cp $export_symbols $output_objdir/$soname.def; 10673 else 10674 echo EXPORTS > $output_objdir/$soname.def; 10675 cat $export_symbols >> $output_objdir/$soname.def; 10676 fi~ 10677 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10678 else 10679 ld_shlibs=no 10680 fi 10681 ;; 10682 10683 haiku*) 10684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10685 link_all_deplibs=yes 10686 ;; 10687 10688 os2*) 10689 hardcode_libdir_flag_spec='-L$libdir' 10690 hardcode_minus_L=yes 10691 allow_undefined_flag=unsupported 10692 shrext_cmds=.dll 10693 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10694 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10695 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10696 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10697 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10698 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10699 emximp -o $lib $output_objdir/$libname.def' 10700 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10701 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10702 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10703 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10704 prefix_cmds="$SED"~ 10705 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10706 prefix_cmds="$prefix_cmds -e 1d"; 10707 fi~ 10708 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10709 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10710 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10711 emximp -o $lib $output_objdir/$libname.def' 10712 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10713 enable_shared_with_static_runtimes=yes 10714 ;; 10715 10716 interix[3-9]*) 10717 hardcode_direct=no 10718 hardcode_shlibpath_var=no 10719 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10720 export_dynamic_flag_spec='$wl-E' 10721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10722 # Instead, shared libraries are loaded at an image base (0x10000000 by 10723 # default) and relocated if they conflict, which is a slow very memory 10724 # consuming and fragmenting process. To avoid this, we pick a random, 10725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10726 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10728 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10729 ;; 10730 10731 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10732 tmp_diet=no 10733 if test linux-dietlibc = "$host_os"; then 10734 case $cc_basename in 10735 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10736 esac 10737 fi 10738 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10739 && test no = "$tmp_diet" 10740 then 10741 tmp_addflag=' $pic_flag' 10742 tmp_sharedflag='-shared' 10743 case $cc_basename,$host_cpu in 10744 pgcc*) # Portland Group C compiler 10745 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10746 tmp_addflag=' $pic_flag' 10747 ;; 10748 pgf77* | pgf90* | pgf95* | pgfortran*) 10749 # Portland Group f77 and f90 compilers 10750 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10751 tmp_addflag=' $pic_flag -Mnomain' ;; 10752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10753 tmp_addflag=' -i_dynamic' ;; 10754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10755 tmp_addflag=' -i_dynamic -nofor_main' ;; 10756 ifc* | ifort*) # Intel Fortran compiler 10757 tmp_addflag=' -nofor_main' ;; 10758 lf95*) # Lahey Fortran 8.1 10759 whole_archive_flag_spec= 10760 tmp_sharedflag='--shared' ;; 10761 nagfor*) # NAGFOR 5.3 10762 tmp_sharedflag='-Wl,-shared' ;; 10763 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10764 tmp_sharedflag='-qmkshrobj' 10765 tmp_addflag= ;; 10766 nvcc*) # Cuda Compiler Driver 2.2 10767 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10768 compiler_needs_object=yes 10769 ;; 10770 esac 10771 case `$CC -V 2>&1 | sed 5q` in 10772 *Sun\ C*) # Sun C 5.9 10773 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10774 compiler_needs_object=yes 10775 tmp_sharedflag='-G' ;; 10776 *Sun\ F*) # Sun Fortran 8.3 10777 tmp_sharedflag='-G' ;; 10778 esac 10779 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10780 10781 if test yes = "$supports_anon_versioning"; then 10782 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10783 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10784 echo "local: *; };" >> $output_objdir/$libname.ver~ 10785 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10786 fi 10787 10788 case $cc_basename in 10789 tcc*) 10790 export_dynamic_flag_spec='-rdynamic' 10791 ;; 10792 xlf* | bgf* | bgxlf* | mpixlf*) 10793 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10794 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10795 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10796 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10797 if test yes = "$supports_anon_versioning"; then 10798 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10800 echo "local: *; };" >> $output_objdir/$libname.ver~ 10801 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10802 fi 10803 ;; 10804 esac 10805 else 10806 ld_shlibs=no 10807 fi 10808 ;; 10809 10810 netbsd*) 10811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10812 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10813 wlarc= 10814 else 10815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10817 fi 10818 ;; 10819 10820 solaris*) 10821 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10822 ld_shlibs=no 10823 cat <<_LT_EOF 1>&2 10824 10825*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10826*** create shared libraries on Solaris systems. Therefore, libtool 10827*** is disabling shared libraries support. We urge you to upgrade GNU 10828*** binutils to release 2.9.1 or newer. Another option is to modify 10829*** your PATH or compiler configuration so that the native linker is 10830*** used, and then restart. 10831 10832_LT_EOF 10833 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10835 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10836 else 10837 ld_shlibs=no 10838 fi 10839 ;; 10840 10841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10842 case `$LD -v 2>&1` in 10843 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10844 ld_shlibs=no 10845 cat <<_LT_EOF 1>&2 10846 10847*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10848*** reliably create shared libraries on SCO systems. Therefore, libtool 10849*** is disabling shared libraries support. We urge you to upgrade GNU 10850*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10851*** your PATH or compiler configuration so that the native linker is 10852*** used, and then restart. 10853 10854_LT_EOF 10855 ;; 10856 *) 10857 # For security reasons, it is highly recommended that you always 10858 # use absolute paths for naming shared libraries, and exclude the 10859 # DT_RUNPATH tag from executables and libraries. But doing so 10860 # requires that you compile everything twice, which is a pain. 10861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10862 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10865 else 10866 ld_shlibs=no 10867 fi 10868 ;; 10869 esac 10870 ;; 10871 10872 sunos4*) 10873 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10874 wlarc= 10875 hardcode_direct=yes 10876 hardcode_shlibpath_var=no 10877 ;; 10878 10879 *) 10880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10881 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10882 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10883 else 10884 ld_shlibs=no 10885 fi 10886 ;; 10887 esac 10888 10889 if test no = "$ld_shlibs"; then 10890 runpath_var= 10891 hardcode_libdir_flag_spec= 10892 export_dynamic_flag_spec= 10893 whole_archive_flag_spec= 10894 fi 10895 else 10896 # PORTME fill in a description of your system's linker (not GNU ld) 10897 case $host_os in 10898 aix3*) 10899 allow_undefined_flag=unsupported 10900 always_export_symbols=yes 10901 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10902 # Note: this linker hardcodes the directories in LIBPATH if there 10903 # are no directories specified by -L. 10904 hardcode_minus_L=yes 10905 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10906 # Neither direct hardcoding nor static linking is supported with a 10907 # broken collect2. 10908 hardcode_direct=unsupported 10909 fi 10910 ;; 10911 10912 aix[4-9]*) 10913 if test ia64 = "$host_cpu"; then 10914 # On IA64, the linker does run time linking by default, so we don't 10915 # have to do anything special. 10916 aix_use_runtimelinking=no 10917 exp_sym_flag='-Bexport' 10918 no_entry_flag= 10919 else 10920 # If we're using GNU nm, then we don't want the "-C" option. 10921 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10922 # Without the "-l" option, or with the "-B" option, AIX nm treats 10923 # weak defined symbols like other global defined symbols, whereas 10924 # GNU nm marks them as "W". 10925 # While the 'weak' keyword is ignored in the Export File, we need 10926 # it in the Import File for the 'aix-soname' feature, so we have 10927 # to replace the "-B" option with "-P" for AIX nm. 10928 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10929 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10930 else 10931 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10932 fi 10933 aix_use_runtimelinking=no 10934 10935 # Test if we are trying to use run time linking or normal 10936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10937 # have runtime linking enabled, and use it for executables. 10938 # For shared libraries, we enable/disable runtime linking 10939 # depending on the kind of the shared library created - 10940 # when "with_aix_soname,aix_use_runtimelinking" is: 10941 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10942 # "aix,yes" lib.so shared, rtl:yes, for executables 10943 # lib.a static archive 10944 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10945 # lib.a(lib.so.V) shared, rtl:no, for executables 10946 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10947 # lib.a(lib.so.V) shared, rtl:no 10948 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10949 # lib.a static archive 10950 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10951 for ld_flag in $LDFLAGS; do 10952 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10953 aix_use_runtimelinking=yes 10954 break 10955 fi 10956 done 10957 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10958 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10959 # so we don't have lib.a shared libs to link our executables. 10960 # We have to force runtime linking in this case. 10961 aix_use_runtimelinking=yes 10962 LDFLAGS="$LDFLAGS -Wl,-brtl" 10963 fi 10964 ;; 10965 esac 10966 10967 exp_sym_flag='-bexport' 10968 no_entry_flag='-bnoentry' 10969 fi 10970 10971 # When large executables or shared objects are built, AIX ld can 10972 # have problems creating the table of contents. If linking a library 10973 # or program results in "error TOC overflow" add -mminimal-toc to 10974 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10975 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10976 10977 archive_cmds='' 10978 hardcode_direct=yes 10979 hardcode_direct_absolute=yes 10980 hardcode_libdir_separator=':' 10981 link_all_deplibs=yes 10982 file_list_spec='$wl-f,' 10983 case $with_aix_soname,$aix_use_runtimelinking in 10984 aix,*) ;; # traditional, no import file 10985 svr4,* | *,yes) # use import file 10986 # The Import File defines what to hardcode. 10987 hardcode_direct=no 10988 hardcode_direct_absolute=no 10989 ;; 10990 esac 10991 10992 if test yes = "$GCC"; then 10993 case $host_os in aix4.[012]|aix4.[012].*) 10994 # We only want to do this on AIX 4.2 and lower, the check 10995 # below for broken collect2 doesn't work under 4.3+ 10996 collect2name=`$CC -print-prog-name=collect2` 10997 if test -f "$collect2name" && 10998 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10999 then 11000 # We have reworked collect2 11001 : 11002 else 11003 # We have old collect2 11004 hardcode_direct=unsupported 11005 # It fails to find uninstalled libraries when the uninstalled 11006 # path is not listed in the libpath. Setting hardcode_minus_L 11007 # to unsupported forces relinking 11008 hardcode_minus_L=yes 11009 hardcode_libdir_flag_spec='-L$libdir' 11010 hardcode_libdir_separator= 11011 fi 11012 ;; 11013 esac 11014 shared_flag='-shared' 11015 if test yes = "$aix_use_runtimelinking"; then 11016 shared_flag="$shared_flag "'$wl-G' 11017 fi 11018 # Need to ensure runtime linking is disabled for the traditional 11019 # shared library, or the linker may eventually find shared libraries 11020 # /with/ Import File - we do not want to mix them. 11021 shared_flag_aix='-shared' 11022 shared_flag_svr4='-shared $wl-G' 11023 else 11024 # not using gcc 11025 if test ia64 = "$host_cpu"; then 11026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11027 # chokes on -Wl,-G. The following line is correct: 11028 shared_flag='-G' 11029 else 11030 if test yes = "$aix_use_runtimelinking"; then 11031 shared_flag='$wl-G' 11032 else 11033 shared_flag='$wl-bM:SRE' 11034 fi 11035 shared_flag_aix='$wl-bM:SRE' 11036 shared_flag_svr4='$wl-G' 11037 fi 11038 fi 11039 11040 export_dynamic_flag_spec='$wl-bexpall' 11041 # It seems that -bexpall does not export symbols beginning with 11042 # underscore (_), so it is better to generate a list of symbols to export. 11043 always_export_symbols=yes 11044 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11045 # Warning - without using the other runtime loading flags (-brtl), 11046 # -berok will link without error, but may produce a broken library. 11047 allow_undefined_flag='-berok' 11048 # Determine the default libpath from the value encoded in an 11049 # empty executable. 11050 if test set = "${lt_cv_aix_libpath+set}"; then 11051 aix_libpath=$lt_cv_aix_libpath 11052else 11053 if test ${lt_cv_aix_libpath_+y} 11054then : 11055 printf %s "(cached) " >&6 11056else $as_nop 11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11058/* end confdefs.h. */ 11059 11060int 11061main (void) 11062{ 11063 11064 ; 11065 return 0; 11066} 11067_ACEOF 11068if ac_fn_c_try_link "$LINENO" 11069then : 11070 11071 lt_aix_libpath_sed=' 11072 /Import File Strings/,/^$/ { 11073 /^0/ { 11074 s/^0 *\([^ ]*\) *$/\1/ 11075 p 11076 } 11077 }' 11078 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11079 # Check for a 64-bit object if we didn't find anything. 11080 if test -z "$lt_cv_aix_libpath_"; then 11081 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11082 fi 11083fi 11084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11085 conftest$ac_exeext conftest.$ac_ext 11086 if test -z "$lt_cv_aix_libpath_"; then 11087 lt_cv_aix_libpath_=/usr/lib:/lib 11088 fi 11089 11090fi 11091 11092 aix_libpath=$lt_cv_aix_libpath_ 11093fi 11094 11095 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11096 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11097 else 11098 if test ia64 = "$host_cpu"; then 11099 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11100 allow_undefined_flag="-z nodefs" 11101 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 11102 else 11103 # Determine the default libpath from the value encoded in an 11104 # empty executable. 11105 if test set = "${lt_cv_aix_libpath+set}"; then 11106 aix_libpath=$lt_cv_aix_libpath 11107else 11108 if test ${lt_cv_aix_libpath_+y} 11109then : 11110 printf %s "(cached) " >&6 11111else $as_nop 11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11113/* end confdefs.h. */ 11114 11115int 11116main (void) 11117{ 11118 11119 ; 11120 return 0; 11121} 11122_ACEOF 11123if ac_fn_c_try_link "$LINENO" 11124then : 11125 11126 lt_aix_libpath_sed=' 11127 /Import File Strings/,/^$/ { 11128 /^0/ { 11129 s/^0 *\([^ ]*\) *$/\1/ 11130 p 11131 } 11132 }' 11133 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11134 # Check for a 64-bit object if we didn't find anything. 11135 if test -z "$lt_cv_aix_libpath_"; then 11136 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11137 fi 11138fi 11139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11140 conftest$ac_exeext conftest.$ac_ext 11141 if test -z "$lt_cv_aix_libpath_"; then 11142 lt_cv_aix_libpath_=/usr/lib:/lib 11143 fi 11144 11145fi 11146 11147 aix_libpath=$lt_cv_aix_libpath_ 11148fi 11149 11150 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11151 # Warning - without using the other run time loading flags, 11152 # -berok will link without error, but may produce a broken library. 11153 no_undefined_flag=' $wl-bernotok' 11154 allow_undefined_flag=' $wl-berok' 11155 if test yes = "$with_gnu_ld"; then 11156 # We only use this code for GNU lds that support --whole-archive. 11157 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11158 else 11159 # Exported symbols can be pulled into shared objects from archives 11160 whole_archive_flag_spec='$convenience' 11161 fi 11162 archive_cmds_need_lc=yes 11163 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11164 # -brtl affects multiple linker settings, -berok does not and is overridden later 11165 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11166 if test svr4 != "$with_aix_soname"; then 11167 # This is similar to how AIX traditionally builds its shared libraries. 11168 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11169 fi 11170 if test aix != "$with_aix_soname"; then 11171 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11172 else 11173 # used by -dlpreopen to get the symbols 11174 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11175 fi 11176 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11177 fi 11178 fi 11179 ;; 11180 11181 amigaos*) 11182 case $host_cpu in 11183 powerpc) 11184 # see comment about AmigaOS4 .so support 11185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11186 archive_expsym_cmds='' 11187 ;; 11188 m68k) 11189 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 11190 hardcode_libdir_flag_spec='-L$libdir' 11191 hardcode_minus_L=yes 11192 ;; 11193 esac 11194 ;; 11195 11196 bsdi[45]*) 11197 export_dynamic_flag_spec=-rdynamic 11198 ;; 11199 11200 cygwin* | mingw* | pw32* | cegcc*) 11201 # When not using gcc, we currently assume that we are using 11202 # Microsoft Visual C++. 11203 # hardcode_libdir_flag_spec is actually meaningless, as there is 11204 # no search path for DLLs. 11205 case $cc_basename in 11206 cl*) 11207 # Native MSVC 11208 hardcode_libdir_flag_spec=' ' 11209 allow_undefined_flag=unsupported 11210 always_export_symbols=yes 11211 file_list_spec='@' 11212 # Tell ltmain to make .lib files, not .a files. 11213 libext=lib 11214 # Tell ltmain to make .dll files, not .so files. 11215 shrext_cmds=.dll 11216 # FIXME: Setting linknames here is a bad hack. 11217 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11218 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11219 cp "$export_symbols" "$output_objdir/$soname.def"; 11220 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11221 else 11222 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11223 fi~ 11224 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11225 linknames=' 11226 # The linker will not automatically build a static lib if we build a DLL. 11227 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11228 enable_shared_with_static_runtimes=yes 11229 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11231 # Don't use ranlib 11232 old_postinstall_cmds='chmod 644 $oldlib' 11233 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11234 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11235 case $lt_outputfile in 11236 *.exe|*.EXE) ;; 11237 *) 11238 lt_outputfile=$lt_outputfile.exe 11239 lt_tool_outputfile=$lt_tool_outputfile.exe 11240 ;; 11241 esac~ 11242 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11243 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11244 $RM "$lt_outputfile.manifest"; 11245 fi' 11246 ;; 11247 *) 11248 # Assume MSVC wrapper 11249 hardcode_libdir_flag_spec=' ' 11250 allow_undefined_flag=unsupported 11251 # Tell ltmain to make .lib files, not .a files. 11252 libext=lib 11253 # Tell ltmain to make .dll files, not .so files. 11254 shrext_cmds=.dll 11255 # FIXME: Setting linknames here is a bad hack. 11256 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11257 # The linker will automatically build a .lib file if we build a DLL. 11258 old_archive_from_new_cmds='true' 11259 # FIXME: Should let the user specify the lib program. 11260 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11261 enable_shared_with_static_runtimes=yes 11262 ;; 11263 esac 11264 ;; 11265 11266 darwin* | rhapsody*) 11267 11268 11269 archive_cmds_need_lc=no 11270 hardcode_direct=no 11271 hardcode_automatic=yes 11272 hardcode_shlibpath_var=unsupported 11273 if test yes = "$lt_cv_ld_force_load"; then 11274 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 11275 11276 else 11277 whole_archive_flag_spec='' 11278 fi 11279 link_all_deplibs=yes 11280 allow_undefined_flag=$_lt_dar_allow_undefined 11281 case $cc_basename in 11282 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11283 *) _lt_dar_can_shared=$GCC ;; 11284 esac 11285 if test yes = "$_lt_dar_can_shared"; then 11286 output_verbose_link_cmd=func_echo_all 11287 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11288 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11289 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 11290 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 11291 11292 else 11293 ld_shlibs=no 11294 fi 11295 11296 ;; 11297 11298 dgux*) 11299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11300 hardcode_libdir_flag_spec='-L$libdir' 11301 hardcode_shlibpath_var=no 11302 ;; 11303 11304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11305 # support. Future versions do this automatically, but an explicit c++rt0.o 11306 # does not break anything, and helps significantly (at the cost of a little 11307 # extra space). 11308 freebsd2.2*) 11309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11310 hardcode_libdir_flag_spec='-R$libdir' 11311 hardcode_direct=yes 11312 hardcode_shlibpath_var=no 11313 ;; 11314 11315 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11316 freebsd2.*) 11317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11318 hardcode_direct=yes 11319 hardcode_minus_L=yes 11320 hardcode_shlibpath_var=no 11321 ;; 11322 11323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11324 freebsd* | dragonfly*) 11325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11326 hardcode_libdir_flag_spec='-R$libdir' 11327 hardcode_direct=yes 11328 hardcode_shlibpath_var=no 11329 ;; 11330 11331 hpux9*) 11332 if test yes = "$GCC"; then 11333 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11334 else 11335 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11336 fi 11337 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11338 hardcode_libdir_separator=: 11339 hardcode_direct=yes 11340 11341 # hardcode_minus_L: Not really in the search PATH, 11342 # but as the default location of the library. 11343 hardcode_minus_L=yes 11344 export_dynamic_flag_spec='$wl-E' 11345 ;; 11346 11347 hpux10*) 11348 if test yes,no = "$GCC,$with_gnu_ld"; then 11349 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11350 else 11351 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11352 fi 11353 if test no = "$with_gnu_ld"; then 11354 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11355 hardcode_libdir_separator=: 11356 hardcode_direct=yes 11357 hardcode_direct_absolute=yes 11358 export_dynamic_flag_spec='$wl-E' 11359 # hardcode_minus_L: Not really in the search PATH, 11360 # but as the default location of the library. 11361 hardcode_minus_L=yes 11362 fi 11363 ;; 11364 11365 hpux11*) 11366 if test yes,no = "$GCC,$with_gnu_ld"; then 11367 case $host_cpu in 11368 hppa*64*) 11369 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11370 ;; 11371 ia64*) 11372 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11373 ;; 11374 *) 11375 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11376 ;; 11377 esac 11378 else 11379 case $host_cpu in 11380 hppa*64*) 11381 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11382 ;; 11383 ia64*) 11384 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11385 ;; 11386 *) 11387 11388 # Older versions of the 11.00 compiler do not understand -b yet 11389 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11391printf %s "checking if $CC understands -b... " >&6; } 11392if test ${lt_cv_prog_compiler__b+y} 11393then : 11394 printf %s "(cached) " >&6 11395else $as_nop 11396 lt_cv_prog_compiler__b=no 11397 save_LDFLAGS=$LDFLAGS 11398 LDFLAGS="$LDFLAGS -b" 11399 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11401 # The linker can only warn and ignore the option if not recognized 11402 # So say no if there are warnings 11403 if test -s conftest.err; then 11404 # Append any errors to the config.log. 11405 cat conftest.err 1>&5 11406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11408 if diff conftest.exp conftest.er2 >/dev/null; then 11409 lt_cv_prog_compiler__b=yes 11410 fi 11411 else 11412 lt_cv_prog_compiler__b=yes 11413 fi 11414 fi 11415 $RM -r conftest* 11416 LDFLAGS=$save_LDFLAGS 11417 11418fi 11419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11420printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11421 11422if test yes = "$lt_cv_prog_compiler__b"; then 11423 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11424else 11425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11426fi 11427 11428 ;; 11429 esac 11430 fi 11431 if test no = "$with_gnu_ld"; then 11432 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11433 hardcode_libdir_separator=: 11434 11435 case $host_cpu in 11436 hppa*64*|ia64*) 11437 hardcode_direct=no 11438 hardcode_shlibpath_var=no 11439 ;; 11440 *) 11441 hardcode_direct=yes 11442 hardcode_direct_absolute=yes 11443 export_dynamic_flag_spec='$wl-E' 11444 11445 # hardcode_minus_L: Not really in the search PATH, 11446 # but as the default location of the library. 11447 hardcode_minus_L=yes 11448 ;; 11449 esac 11450 fi 11451 ;; 11452 11453 irix5* | irix6* | nonstopux*) 11454 if test yes = "$GCC"; then 11455 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11456 # Try to use the -exported_symbol ld option, if it does not 11457 # work, assume that -exports_file does not work either and 11458 # implicitly export all symbols. 11459 # This should be the same for all languages, so no per-tag cache variable. 11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11461printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11462if test ${lt_cv_irix_exported_symbol+y} 11463then : 11464 printf %s "(cached) " >&6 11465else $as_nop 11466 save_LDFLAGS=$LDFLAGS 11467 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11469/* end confdefs.h. */ 11470int foo (void) { return 0; } 11471_ACEOF 11472if ac_fn_c_try_link "$LINENO" 11473then : 11474 lt_cv_irix_exported_symbol=yes 11475else $as_nop 11476 lt_cv_irix_exported_symbol=no 11477fi 11478rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11479 conftest$ac_exeext conftest.$ac_ext 11480 LDFLAGS=$save_LDFLAGS 11481fi 11482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11483printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11484 if test yes = "$lt_cv_irix_exported_symbol"; then 11485 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 11486 fi 11487 else 11488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11489 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 11490 fi 11491 archive_cmds_need_lc='no' 11492 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11493 hardcode_libdir_separator=: 11494 inherit_rpath=yes 11495 link_all_deplibs=yes 11496 ;; 11497 11498 linux*) 11499 case $cc_basename in 11500 tcc*) 11501 # Fabrice Bellard et al's Tiny C Compiler 11502 ld_shlibs=yes 11503 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11504 ;; 11505 esac 11506 ;; 11507 11508 netbsd*) 11509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11511 else 11512 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11513 fi 11514 hardcode_libdir_flag_spec='-R$libdir' 11515 hardcode_direct=yes 11516 hardcode_shlibpath_var=no 11517 ;; 11518 11519 newsos6) 11520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11521 hardcode_direct=yes 11522 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11523 hardcode_libdir_separator=: 11524 hardcode_shlibpath_var=no 11525 ;; 11526 11527 *nto* | *qnx*) 11528 ;; 11529 11530 openbsd* | bitrig*) 11531 if test -f /usr/libexec/ld.so; then 11532 hardcode_direct=yes 11533 hardcode_shlibpath_var=no 11534 hardcode_direct_absolute=yes 11535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11537 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11538 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11539 export_dynamic_flag_spec='$wl-E' 11540 else 11541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11542 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11543 fi 11544 else 11545 ld_shlibs=no 11546 fi 11547 ;; 11548 11549 os2*) 11550 hardcode_libdir_flag_spec='-L$libdir' 11551 hardcode_minus_L=yes 11552 allow_undefined_flag=unsupported 11553 shrext_cmds=.dll 11554 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11555 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11556 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11557 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11558 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11559 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11560 emximp -o $lib $output_objdir/$libname.def' 11561 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11562 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11563 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11564 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11565 prefix_cmds="$SED"~ 11566 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11567 prefix_cmds="$prefix_cmds -e 1d"; 11568 fi~ 11569 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11570 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11571 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11572 emximp -o $lib $output_objdir/$libname.def' 11573 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11574 enable_shared_with_static_runtimes=yes 11575 ;; 11576 11577 osf3*) 11578 if test yes = "$GCC"; then 11579 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11580 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11581 else 11582 allow_undefined_flag=' -expect_unresolved \*' 11583 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11584 fi 11585 archive_cmds_need_lc='no' 11586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11587 hardcode_libdir_separator=: 11588 ;; 11589 11590 osf4* | osf5*) # as osf3* with the addition of -msym flag 11591 if test yes = "$GCC"; then 11592 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11593 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11594 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11595 else 11596 allow_undefined_flag=' -expect_unresolved \*' 11597 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11598 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 11599 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 11600 11601 # Both c and cxx compiler support -rpath directly 11602 hardcode_libdir_flag_spec='-rpath $libdir' 11603 fi 11604 archive_cmds_need_lc='no' 11605 hardcode_libdir_separator=: 11606 ;; 11607 11608 solaris*) 11609 no_undefined_flag=' -z defs' 11610 if test yes = "$GCC"; then 11611 wlarc='$wl' 11612 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11614 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11615 else 11616 case `$CC -V 2>&1` in 11617 *"Compilers 5.0"*) 11618 wlarc='' 11619 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11620 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11621 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11622 ;; 11623 *) 11624 wlarc='$wl' 11625 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11627 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11628 ;; 11629 esac 11630 fi 11631 hardcode_libdir_flag_spec='-R$libdir' 11632 hardcode_shlibpath_var=no 11633 case $host_os in 11634 solaris2.[0-5] | solaris2.[0-5].*) ;; 11635 *) 11636 # The compiler driver will combine and reorder linker options, 11637 # but understands '-z linker_flag'. GCC discards it without '$wl', 11638 # but is careful enough not to reorder. 11639 # Supported since Solaris 2.6 (maybe 2.5.1?) 11640 if test yes = "$GCC"; then 11641 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11642 else 11643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11644 fi 11645 ;; 11646 esac 11647 link_all_deplibs=yes 11648 ;; 11649 11650 sunos4*) 11651 if test sequent = "$host_vendor"; then 11652 # Use $CC to link under sequent, because it throws in some extra .o 11653 # files that make .init and .fini sections work. 11654 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11655 else 11656 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11657 fi 11658 hardcode_libdir_flag_spec='-L$libdir' 11659 hardcode_direct=yes 11660 hardcode_minus_L=yes 11661 hardcode_shlibpath_var=no 11662 ;; 11663 11664 sysv4) 11665 case $host_vendor in 11666 sni) 11667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11668 hardcode_direct=yes # is this really true??? 11669 ;; 11670 siemens) 11671 ## LD is ld it makes a PLAMLIB 11672 ## CC just makes a GrossModule. 11673 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11674 reload_cmds='$CC -r -o $output$reload_objs' 11675 hardcode_direct=no 11676 ;; 11677 motorola) 11678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11679 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11680 ;; 11681 esac 11682 runpath_var='LD_RUN_PATH' 11683 hardcode_shlibpath_var=no 11684 ;; 11685 11686 sysv4.3*) 11687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11688 hardcode_shlibpath_var=no 11689 export_dynamic_flag_spec='-Bexport' 11690 ;; 11691 11692 sysv4*MP*) 11693 if test -d /usr/nec; then 11694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11695 hardcode_shlibpath_var=no 11696 runpath_var=LD_RUN_PATH 11697 hardcode_runpath_var=yes 11698 ld_shlibs=yes 11699 fi 11700 ;; 11701 11702 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11703 no_undefined_flag='$wl-z,text' 11704 archive_cmds_need_lc=no 11705 hardcode_shlibpath_var=no 11706 runpath_var='LD_RUN_PATH' 11707 11708 if test yes = "$GCC"; then 11709 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11710 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11711 else 11712 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11713 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11714 fi 11715 ;; 11716 11717 sysv5* | sco3.2v5* | sco5v6*) 11718 # Note: We CANNOT use -z defs as we might desire, because we do not 11719 # link with -lc, and that would cause any symbols used from libc to 11720 # always be unresolved, which means just about no library would 11721 # ever link correctly. If we're not using GNU ld we use -z text 11722 # though, which does catch some bad symbols but isn't as heavy-handed 11723 # as -z defs. 11724 no_undefined_flag='$wl-z,text' 11725 allow_undefined_flag='$wl-z,nodefs' 11726 archive_cmds_need_lc=no 11727 hardcode_shlibpath_var=no 11728 hardcode_libdir_flag_spec='$wl-R,$libdir' 11729 hardcode_libdir_separator=':' 11730 link_all_deplibs=yes 11731 export_dynamic_flag_spec='$wl-Bexport' 11732 runpath_var='LD_RUN_PATH' 11733 11734 if test yes = "$GCC"; then 11735 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11736 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11737 else 11738 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11739 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11740 fi 11741 ;; 11742 11743 uts4*) 11744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11745 hardcode_libdir_flag_spec='-L$libdir' 11746 hardcode_shlibpath_var=no 11747 ;; 11748 11749 *) 11750 ld_shlibs=no 11751 ;; 11752 esac 11753 11754 if test sni = "$host_vendor"; then 11755 case $host in 11756 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11757 export_dynamic_flag_spec='$wl-Blargedynsym' 11758 ;; 11759 esac 11760 fi 11761 fi 11762 11763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11764printf "%s\n" "$ld_shlibs" >&6; } 11765test no = "$ld_shlibs" && can_build_shared=no 11766 11767with_gnu_ld=$with_gnu_ld 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783# 11784# Do we need to explicitly link libc? 11785# 11786case "x$archive_cmds_need_lc" in 11787x|xyes) 11788 # Assume -lc should be added 11789 archive_cmds_need_lc=yes 11790 11791 if test yes,yes = "$GCC,$enable_shared"; then 11792 case $archive_cmds in 11793 *'~'*) 11794 # FIXME: we may have to deal with multi-command sequences. 11795 ;; 11796 '$CC '*) 11797 # Test whether the compiler implicitly links with -lc since on some 11798 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11799 # to ld, don't add -lc before -lgcc. 11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11801printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11802if test ${lt_cv_archive_cmds_need_lc+y} 11803then : 11804 printf %s "(cached) " >&6 11805else $as_nop 11806 $RM conftest* 11807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11808 11809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11810 (eval $ac_compile) 2>&5 11811 ac_status=$? 11812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11813 test $ac_status = 0; } 2>conftest.err; then 11814 soname=conftest 11815 lib=conftest 11816 libobjs=conftest.$ac_objext 11817 deplibs= 11818 wl=$lt_prog_compiler_wl 11819 pic_flag=$lt_prog_compiler_pic 11820 compiler_flags=-v 11821 linker_flags=-v 11822 verstring= 11823 output_objdir=. 11824 libname=conftest 11825 lt_save_allow_undefined_flag=$allow_undefined_flag 11826 allow_undefined_flag= 11827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11828 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11829 ac_status=$? 11830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11831 test $ac_status = 0; } 11832 then 11833 lt_cv_archive_cmds_need_lc=no 11834 else 11835 lt_cv_archive_cmds_need_lc=yes 11836 fi 11837 allow_undefined_flag=$lt_save_allow_undefined_flag 11838 else 11839 cat conftest.err 1>&5 11840 fi 11841 $RM conftest* 11842 11843fi 11844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11845printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11846 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11847 ;; 11848 esac 11849 fi 11850 ;; 11851esac 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12005printf %s "checking dynamic linker characteristics... " >&6; } 12006 12007if test yes = "$GCC"; then 12008 case $host_os in 12009 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12010 *) lt_awk_arg='/^libraries:/' ;; 12011 esac 12012 case $host_os in 12013 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12014 *) lt_sed_strip_eq='s|=/|/|g' ;; 12015 esac 12016 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12017 case $lt_search_path_spec in 12018 *\;*) 12019 # if the path contains ";" then we assume it to be the separator 12020 # otherwise default to the standard path separator (i.e. ":") - it is 12021 # assumed that no part of a normal pathname contains ";" but that should 12022 # okay in the real world where ";" in dirpaths is itself problematic. 12023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12024 ;; 12025 *) 12026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12027 ;; 12028 esac 12029 # Ok, now we have the path, separated by spaces, we can step through it 12030 # and add multilib dir if necessary... 12031 lt_tmp_lt_search_path_spec= 12032 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12033 # ...but if some path component already ends with the multilib dir we assume 12034 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12035 case "$lt_multi_os_dir; $lt_search_path_spec " in 12036 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12037 lt_multi_os_dir= 12038 ;; 12039 esac 12040 for lt_sys_path in $lt_search_path_spec; do 12041 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12043 elif test -n "$lt_multi_os_dir"; then 12044 test -d "$lt_sys_path" && \ 12045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12046 fi 12047 done 12048 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12049BEGIN {RS = " "; FS = "/|\n";} { 12050 lt_foo = ""; 12051 lt_count = 0; 12052 for (lt_i = NF; lt_i > 0; lt_i--) { 12053 if ($lt_i != "" && $lt_i != ".") { 12054 if ($lt_i == "..") { 12055 lt_count++; 12056 } else { 12057 if (lt_count == 0) { 12058 lt_foo = "/" $lt_i lt_foo; 12059 } else { 12060 lt_count--; 12061 } 12062 } 12063 } 12064 } 12065 if (lt_foo != "") { lt_freq[lt_foo]++; } 12066 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12067}'` 12068 # AWK program above erroneously prepends '/' to C:/dos/paths 12069 # for these hosts. 12070 case $host_os in 12071 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12072 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12073 esac 12074 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12075else 12076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12077fi 12078library_names_spec= 12079libname_spec='lib$name' 12080soname_spec= 12081shrext_cmds=.so 12082postinstall_cmds= 12083postuninstall_cmds= 12084finish_cmds= 12085finish_eval= 12086shlibpath_var= 12087shlibpath_overrides_runpath=unknown 12088version_type=none 12089dynamic_linker="$host_os ld.so" 12090sys_lib_dlsearch_path_spec="/lib /usr/lib" 12091need_lib_prefix=unknown 12092hardcode_into_libs=no 12093 12094# when you set need_version to no, make sure it does not cause -set_version 12095# flags to be left without arguments 12096need_version=unknown 12097 12098 12099 12100case $host_os in 12101aix3*) 12102 version_type=linux # correct to gnu/linux during the next big refactor 12103 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12104 shlibpath_var=LIBPATH 12105 12106 # AIX 3 has no versioning support, so we append a major version to the name. 12107 soname_spec='$libname$release$shared_ext$major' 12108 ;; 12109 12110aix[4-9]*) 12111 version_type=linux # correct to gnu/linux during the next big refactor 12112 need_lib_prefix=no 12113 need_version=no 12114 hardcode_into_libs=yes 12115 if test ia64 = "$host_cpu"; then 12116 # AIX 5 supports IA64 12117 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12118 shlibpath_var=LD_LIBRARY_PATH 12119 else 12120 # With GCC up to 2.95.x, collect2 would create an import file 12121 # for dependence libraries. The import file would start with 12122 # the line '#! .'. This would cause the generated library to 12123 # depend on '.', always an invalid library. This was fixed in 12124 # development snapshots of GCC prior to 3.0. 12125 case $host_os in 12126 aix4 | aix4.[01] | aix4.[01].*) 12127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12128 echo ' yes ' 12129 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12130 : 12131 else 12132 can_build_shared=no 12133 fi 12134 ;; 12135 esac 12136 # Using Import Files as archive members, it is possible to support 12137 # filename-based versioning of shared library archives on AIX. While 12138 # this would work for both with and without runtime linking, it will 12139 # prevent static linking of such archives. So we do filename-based 12140 # shared library versioning with .so extension only, which is used 12141 # when both runtime linking and shared linking is enabled. 12142 # Unfortunately, runtime linking may impact performance, so we do 12143 # not want this to be the default eventually. Also, we use the 12144 # versioned .so libs for executables only if there is the -brtl 12145 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12146 # To allow for filename-based versioning support, we need to create 12147 # libNAME.so.V as an archive file, containing: 12148 # *) an Import File, referring to the versioned filename of the 12149 # archive as well as the shared archive member, telling the 12150 # bitwidth (32 or 64) of that shared object, and providing the 12151 # list of exported symbols of that shared object, eventually 12152 # decorated with the 'weak' keyword 12153 # *) the shared object with the F_LOADONLY flag set, to really avoid 12154 # it being seen by the linker. 12155 # At run time we better use the real file rather than another symlink, 12156 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12157 12158 case $with_aix_soname,$aix_use_runtimelinking in 12159 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12160 # soname into executable. Probably we can add versioning support to 12161 # collect2, so additional links can be useful in future. 12162 aix,yes) # traditional libtool 12163 dynamic_linker='AIX unversionable lib.so' 12164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12165 # instead of lib<name>.a to let people know that these are not 12166 # typical AIX shared libraries. 12167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12168 ;; 12169 aix,no) # traditional AIX only 12170 dynamic_linker='AIX lib.a(lib.so.V)' 12171 # We preserve .a as extension for shared libraries through AIX4.2 12172 # and later when we are not doing run time linking. 12173 library_names_spec='$libname$release.a $libname.a' 12174 soname_spec='$libname$release$shared_ext$major' 12175 ;; 12176 svr4,*) # full svr4 only 12177 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12178 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12179 # We do not specify a path in Import Files, so LIBPATH fires. 12180 shlibpath_overrides_runpath=yes 12181 ;; 12182 *,yes) # both, prefer svr4 12183 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12184 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12185 # unpreferred sharedlib libNAME.a needs extra handling 12186 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12187 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12188 # We do not specify a path in Import Files, so LIBPATH fires. 12189 shlibpath_overrides_runpath=yes 12190 ;; 12191 *,no) # both, prefer aix 12192 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12193 library_names_spec='$libname$release.a $libname.a' 12194 soname_spec='$libname$release$shared_ext$major' 12195 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12196 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12197 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12198 ;; 12199 esac 12200 shlibpath_var=LIBPATH 12201 fi 12202 ;; 12203 12204amigaos*) 12205 case $host_cpu in 12206 powerpc) 12207 # Since July 2007 AmigaOS4 officially supports .so libraries. 12208 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12210 ;; 12211 m68k) 12212 library_names_spec='$libname.ixlibrary $libname.a' 12213 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12214 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12215 ;; 12216 esac 12217 ;; 12218 12219beos*) 12220 library_names_spec='$libname$shared_ext' 12221 dynamic_linker="$host_os ld.so" 12222 shlibpath_var=LIBRARY_PATH 12223 ;; 12224 12225bsdi[45]*) 12226 version_type=linux # correct to gnu/linux during the next big refactor 12227 need_version=no 12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12229 soname_spec='$libname$release$shared_ext$major' 12230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12231 shlibpath_var=LD_LIBRARY_PATH 12232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12234 # the default ld.so.conf also contains /usr/contrib/lib and 12235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12236 # libtool to hard-code these into programs 12237 ;; 12238 12239cygwin* | mingw* | pw32* | cegcc*) 12240 version_type=windows 12241 shrext_cmds=.dll 12242 need_version=no 12243 need_lib_prefix=no 12244 12245 case $GCC,$cc_basename in 12246 yes,*) 12247 # gcc 12248 library_names_spec='$libname.dll.a' 12249 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12250 postinstall_cmds='base_file=`basename \$file`~ 12251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12252 dldir=$destdir/`dirname \$dlpath`~ 12253 test -d \$dldir || mkdir -p \$dldir~ 12254 $install_prog $dir/$dlname \$dldir/$dlname~ 12255 chmod a+x \$dldir/$dlname~ 12256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12258 fi' 12259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12260 dlpath=$dir/\$dldll~ 12261 $RM \$dlpath' 12262 shlibpath_overrides_runpath=yes 12263 12264 case $host_os in 12265 cygwin*) 12266 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12267 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12268 12269 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12270 ;; 12271 mingw* | cegcc*) 12272 # MinGW DLLs use traditional 'lib' prefix 12273 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12274 ;; 12275 pw32*) 12276 # pw32 DLLs use 'pw' prefix rather than 'lib' 12277 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12278 ;; 12279 esac 12280 dynamic_linker='Win32 ld.exe' 12281 ;; 12282 12283 *,cl*) 12284 # Native MSVC 12285 libname_spec='$name' 12286 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12287 library_names_spec='$libname.dll.lib' 12288 12289 case $build_os in 12290 mingw*) 12291 sys_lib_search_path_spec= 12292 lt_save_ifs=$IFS 12293 IFS=';' 12294 for lt_path in $LIB 12295 do 12296 IFS=$lt_save_ifs 12297 # Let DOS variable expansion print the short 8.3 style file name. 12298 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12299 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12300 done 12301 IFS=$lt_save_ifs 12302 # Convert to MSYS style. 12303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12304 ;; 12305 cygwin*) 12306 # Convert to unix form, then to dos form, then back to unix form 12307 # but this time dos style (no spaces!) so that the unix form looks 12308 # like /cygdrive/c/PROGRA~1:/cygdr... 12309 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12310 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12311 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12312 ;; 12313 *) 12314 sys_lib_search_path_spec=$LIB 12315 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12316 # It is most probably a Windows format PATH. 12317 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12318 else 12319 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12320 fi 12321 # FIXME: find the short name or the path components, as spaces are 12322 # common. (e.g. "Program Files" -> "PROGRA~1") 12323 ;; 12324 esac 12325 12326 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12327 postinstall_cmds='base_file=`basename \$file`~ 12328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12329 dldir=$destdir/`dirname \$dlpath`~ 12330 test -d \$dldir || mkdir -p \$dldir~ 12331 $install_prog $dir/$dlname \$dldir/$dlname' 12332 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12333 dlpath=$dir/\$dldll~ 12334 $RM \$dlpath' 12335 shlibpath_overrides_runpath=yes 12336 dynamic_linker='Win32 link.exe' 12337 ;; 12338 12339 *) 12340 # Assume MSVC wrapper 12341 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12342 dynamic_linker='Win32 ld.exe' 12343 ;; 12344 esac 12345 # FIXME: first we should search . and the directory the executable is in 12346 shlibpath_var=PATH 12347 ;; 12348 12349darwin* | rhapsody*) 12350 dynamic_linker="$host_os dyld" 12351 version_type=darwin 12352 need_lib_prefix=no 12353 need_version=no 12354 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 12355 soname_spec='$libname$release$major$shared_ext' 12356 shlibpath_overrides_runpath=yes 12357 shlibpath_var=DYLD_LIBRARY_PATH 12358 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 12359 12360 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12361 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12362 ;; 12363 12364dgux*) 12365 version_type=linux # correct to gnu/linux during the next big refactor 12366 need_lib_prefix=no 12367 need_version=no 12368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12369 soname_spec='$libname$release$shared_ext$major' 12370 shlibpath_var=LD_LIBRARY_PATH 12371 ;; 12372 12373freebsd* | dragonfly*) 12374 # DragonFly does not have aout. When/if they implement a new 12375 # versioning mechanism, adjust this. 12376 if test -x /usr/bin/objformat; then 12377 objformat=`/usr/bin/objformat` 12378 else 12379 case $host_os in 12380 freebsd[23].*) objformat=aout ;; 12381 *) objformat=elf ;; 12382 esac 12383 fi 12384 # Handle Gentoo/FreeBSD as it was Linux 12385 case $host_vendor in 12386 gentoo) 12387 version_type=linux ;; 12388 *) 12389 version_type=freebsd-$objformat ;; 12390 esac 12391 12392 case $version_type in 12393 freebsd-elf*) 12394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12395 soname_spec='$libname$release$shared_ext$major' 12396 need_version=no 12397 need_lib_prefix=no 12398 ;; 12399 freebsd-*) 12400 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12401 need_version=yes 12402 ;; 12403 linux) 12404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12405 soname_spec='${libname}${release}${shared_ext}$major' 12406 need_lib_prefix=no 12407 need_version=no 12408 ;; 12409 esac 12410 shlibpath_var=LD_LIBRARY_PATH 12411 case $host_os in 12412 freebsd2.*) 12413 shlibpath_overrides_runpath=yes 12414 ;; 12415 freebsd3.[01]* | freebsdelf3.[01]*) 12416 shlibpath_overrides_runpath=yes 12417 hardcode_into_libs=yes 12418 ;; 12419 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12420 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12421 shlibpath_overrides_runpath=no 12422 hardcode_into_libs=yes 12423 ;; 12424 *) # from 4.6 on, and DragonFly 12425 shlibpath_overrides_runpath=yes 12426 hardcode_into_libs=yes 12427 ;; 12428 esac 12429 ;; 12430 12431haiku*) 12432 version_type=linux # correct to gnu/linux during the next big refactor 12433 need_lib_prefix=no 12434 need_version=no 12435 dynamic_linker="$host_os runtime_loader" 12436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12437 soname_spec='$libname$release$shared_ext$major' 12438 shlibpath_var=LIBRARY_PATH 12439 shlibpath_overrides_runpath=no 12440 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12441 hardcode_into_libs=yes 12442 ;; 12443 12444hpux9* | hpux10* | hpux11*) 12445 # Give a soname corresponding to the major version so that dld.sl refuses to 12446 # link against other versions. 12447 version_type=sunos 12448 need_lib_prefix=no 12449 need_version=no 12450 case $host_cpu in 12451 ia64*) 12452 shrext_cmds='.so' 12453 hardcode_into_libs=yes 12454 dynamic_linker="$host_os dld.so" 12455 shlibpath_var=LD_LIBRARY_PATH 12456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12458 soname_spec='$libname$release$shared_ext$major' 12459 if test 32 = "$HPUX_IA64_MODE"; then 12460 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12461 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12462 else 12463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12464 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12465 fi 12466 ;; 12467 hppa*64*) 12468 shrext_cmds='.sl' 12469 hardcode_into_libs=yes 12470 dynamic_linker="$host_os dld.sl" 12471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12474 soname_spec='$libname$release$shared_ext$major' 12475 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12477 ;; 12478 *) 12479 shrext_cmds='.sl' 12480 dynamic_linker="$host_os dld.sl" 12481 shlibpath_var=SHLIB_PATH 12482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12484 soname_spec='$libname$release$shared_ext$major' 12485 ;; 12486 esac 12487 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12488 postinstall_cmds='chmod 555 $lib' 12489 # or fails outright, so override atomically: 12490 install_override_mode=555 12491 ;; 12492 12493interix[3-9]*) 12494 version_type=linux # correct to gnu/linux during the next big refactor 12495 need_lib_prefix=no 12496 need_version=no 12497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12498 soname_spec='$libname$release$shared_ext$major' 12499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12500 shlibpath_var=LD_LIBRARY_PATH 12501 shlibpath_overrides_runpath=no 12502 hardcode_into_libs=yes 12503 ;; 12504 12505irix5* | irix6* | nonstopux*) 12506 case $host_os in 12507 nonstopux*) version_type=nonstopux ;; 12508 *) 12509 if test yes = "$lt_cv_prog_gnu_ld"; then 12510 version_type=linux # correct to gnu/linux during the next big refactor 12511 else 12512 version_type=irix 12513 fi ;; 12514 esac 12515 need_lib_prefix=no 12516 need_version=no 12517 soname_spec='$libname$release$shared_ext$major' 12518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12519 case $host_os in 12520 irix5* | nonstopux*) 12521 libsuff= shlibsuff= 12522 ;; 12523 *) 12524 case $LD in # libtool.m4 will add one of these switches to LD 12525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12526 libsuff= shlibsuff= libmagic=32-bit;; 12527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12528 libsuff=32 shlibsuff=N32 libmagic=N32;; 12529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12530 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12531 *) libsuff= shlibsuff= libmagic=never-match;; 12532 esac 12533 ;; 12534 esac 12535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12536 shlibpath_overrides_runpath=no 12537 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12538 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12539 hardcode_into_libs=yes 12540 ;; 12541 12542# No shared lib support for Linux oldld, aout, or coff. 12543linux*oldld* | linux*aout* | linux*coff*) 12544 dynamic_linker=no 12545 ;; 12546 12547linux*android*) 12548 version_type=none # Android doesn't support versioned libraries. 12549 need_lib_prefix=no 12550 need_version=no 12551 library_names_spec='$libname$release$shared_ext' 12552 soname_spec='$libname$release$shared_ext' 12553 finish_cmds= 12554 shlibpath_var=LD_LIBRARY_PATH 12555 shlibpath_overrides_runpath=yes 12556 12557 # This implies no fast_install, which is unacceptable. 12558 # Some rework will be needed to allow for fast_install 12559 # before this can be enabled. 12560 hardcode_into_libs=yes 12561 12562 dynamic_linker='Android linker' 12563 # Don't embed -rpath directories since the linker doesn't support them. 12564 hardcode_libdir_flag_spec='-L$libdir' 12565 ;; 12566 12567# This must be glibc/ELF. 12568linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12569 version_type=linux # correct to gnu/linux during the next big refactor 12570 need_lib_prefix=no 12571 need_version=no 12572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12573 soname_spec='$libname$release$shared_ext$major' 12574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12575 shlibpath_var=LD_LIBRARY_PATH 12576 shlibpath_overrides_runpath=no 12577 12578 # Some binutils ld are patched to set DT_RUNPATH 12579 if test ${lt_cv_shlibpath_overrides_runpath+y} 12580then : 12581 printf %s "(cached) " >&6 12582else $as_nop 12583 lt_cv_shlibpath_overrides_runpath=no 12584 save_LDFLAGS=$LDFLAGS 12585 save_libdir=$libdir 12586 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12587 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12589/* end confdefs.h. */ 12590 12591int 12592main (void) 12593{ 12594 12595 ; 12596 return 0; 12597} 12598_ACEOF 12599if ac_fn_c_try_link "$LINENO" 12600then : 12601 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12602then : 12603 lt_cv_shlibpath_overrides_runpath=yes 12604fi 12605fi 12606rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12607 conftest$ac_exeext conftest.$ac_ext 12608 LDFLAGS=$save_LDFLAGS 12609 libdir=$save_libdir 12610 12611fi 12612 12613 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12614 12615 # This implies no fast_install, which is unacceptable. 12616 # Some rework will be needed to allow for fast_install 12617 # before this can be enabled. 12618 hardcode_into_libs=yes 12619 12620 # Ideally, we could use ldconfig to report *all* directores which are 12621 # searched for libraries, however this is still not possible. Aside from not 12622 # being certain /sbin/ldconfig is available, command 12623 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12624 # even though it is searched at run-time. Try to do the best guess by 12625 # appending ld.so.conf contents (and includes) to the search path. 12626 if test -f /etc/ld.so.conf; then 12627 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 12628 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12629 fi 12630 12631 # We used to test for /lib/ld.so.1 and disable shared libraries on 12632 # powerpc, because MkLinux only supported shared libraries with the 12633 # GNU dynamic linker. Since this was broken with cross compilers, 12634 # most powerpc-linux boxes support dynamic linking these days and 12635 # people can always --disable-shared, the test was removed, and we 12636 # assume the GNU/Linux dynamic linker is in use. 12637 dynamic_linker='GNU/Linux ld.so' 12638 ;; 12639 12640netbsd*) 12641 version_type=sunos 12642 need_lib_prefix=no 12643 need_version=no 12644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12645 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12647 dynamic_linker='NetBSD (a.out) ld.so' 12648 else 12649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12650 soname_spec='$libname$release$shared_ext$major' 12651 dynamic_linker='NetBSD ld.elf_so' 12652 fi 12653 shlibpath_var=LD_LIBRARY_PATH 12654 shlibpath_overrides_runpath=yes 12655 hardcode_into_libs=yes 12656 ;; 12657 12658newsos6) 12659 version_type=linux # correct to gnu/linux during the next big refactor 12660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12661 shlibpath_var=LD_LIBRARY_PATH 12662 shlibpath_overrides_runpath=yes 12663 ;; 12664 12665*nto* | *qnx*) 12666 version_type=qnx 12667 need_lib_prefix=no 12668 need_version=no 12669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12670 soname_spec='$libname$release$shared_ext$major' 12671 shlibpath_var=LD_LIBRARY_PATH 12672 shlibpath_overrides_runpath=no 12673 hardcode_into_libs=yes 12674 dynamic_linker='ldqnx.so' 12675 ;; 12676 12677openbsd* | bitrig*) 12678 version_type=sunos 12679 sys_lib_dlsearch_path_spec=/usr/lib 12680 need_lib_prefix=no 12681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12682 need_version=no 12683 else 12684 need_version=yes 12685 fi 12686 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12688 shlibpath_var=LD_LIBRARY_PATH 12689 shlibpath_overrides_runpath=yes 12690 ;; 12691 12692os2*) 12693 libname_spec='$name' 12694 version_type=windows 12695 shrext_cmds=.dll 12696 need_version=no 12697 need_lib_prefix=no 12698 # OS/2 can only load a DLL with a base name of 8 characters or less. 12699 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12700 v=$($ECHO $release$versuffix | tr -d .-); 12701 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12702 $ECHO $n$v`$shared_ext' 12703 library_names_spec='${libname}_dll.$libext' 12704 dynamic_linker='OS/2 ld.exe' 12705 shlibpath_var=BEGINLIBPATH 12706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12708 postinstall_cmds='base_file=`basename \$file`~ 12709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12710 dldir=$destdir/`dirname \$dlpath`~ 12711 test -d \$dldir || mkdir -p \$dldir~ 12712 $install_prog $dir/$dlname \$dldir/$dlname~ 12713 chmod a+x \$dldir/$dlname~ 12714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12716 fi' 12717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12718 dlpath=$dir/\$dldll~ 12719 $RM \$dlpath' 12720 ;; 12721 12722osf3* | osf4* | osf5*) 12723 version_type=osf 12724 need_lib_prefix=no 12725 need_version=no 12726 soname_spec='$libname$release$shared_ext$major' 12727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12728 shlibpath_var=LD_LIBRARY_PATH 12729 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12731 ;; 12732 12733rdos*) 12734 dynamic_linker=no 12735 ;; 12736 12737solaris*) 12738 version_type=linux # correct to gnu/linux during the next big refactor 12739 need_lib_prefix=no 12740 need_version=no 12741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12742 soname_spec='$libname$release$shared_ext$major' 12743 shlibpath_var=LD_LIBRARY_PATH 12744 shlibpath_overrides_runpath=yes 12745 hardcode_into_libs=yes 12746 # ldd complains unless libraries are executable 12747 postinstall_cmds='chmod +x $lib' 12748 ;; 12749 12750sunos4*) 12751 version_type=sunos 12752 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12753 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12754 shlibpath_var=LD_LIBRARY_PATH 12755 shlibpath_overrides_runpath=yes 12756 if test yes = "$with_gnu_ld"; then 12757 need_lib_prefix=no 12758 fi 12759 need_version=yes 12760 ;; 12761 12762sysv4 | sysv4.3*) 12763 version_type=linux # correct to gnu/linux during the next big refactor 12764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12765 soname_spec='$libname$release$shared_ext$major' 12766 shlibpath_var=LD_LIBRARY_PATH 12767 case $host_vendor in 12768 sni) 12769 shlibpath_overrides_runpath=no 12770 need_lib_prefix=no 12771 runpath_var=LD_RUN_PATH 12772 ;; 12773 siemens) 12774 need_lib_prefix=no 12775 ;; 12776 motorola) 12777 need_lib_prefix=no 12778 need_version=no 12779 shlibpath_overrides_runpath=no 12780 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12781 ;; 12782 esac 12783 ;; 12784 12785sysv4*MP*) 12786 if test -d /usr/nec; then 12787 version_type=linux # correct to gnu/linux during the next big refactor 12788 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12789 soname_spec='$libname$shared_ext.$major' 12790 shlibpath_var=LD_LIBRARY_PATH 12791 fi 12792 ;; 12793 12794sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12795 version_type=sco 12796 need_lib_prefix=no 12797 need_version=no 12798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12799 soname_spec='$libname$release$shared_ext$major' 12800 shlibpath_var=LD_LIBRARY_PATH 12801 shlibpath_overrides_runpath=yes 12802 hardcode_into_libs=yes 12803 if test yes = "$with_gnu_ld"; then 12804 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12805 else 12806 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12807 case $host_os in 12808 sco3.2v5*) 12809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12810 ;; 12811 esac 12812 fi 12813 sys_lib_dlsearch_path_spec='/usr/lib' 12814 ;; 12815 12816tpf*) 12817 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12818 version_type=linux # correct to gnu/linux during the next big refactor 12819 need_lib_prefix=no 12820 need_version=no 12821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12822 shlibpath_var=LD_LIBRARY_PATH 12823 shlibpath_overrides_runpath=no 12824 hardcode_into_libs=yes 12825 ;; 12826 12827uts4*) 12828 version_type=linux # correct to gnu/linux during the next big refactor 12829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12830 soname_spec='$libname$release$shared_ext$major' 12831 shlibpath_var=LD_LIBRARY_PATH 12832 ;; 12833 12834*) 12835 dynamic_linker=no 12836 ;; 12837esac 12838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12839printf "%s\n" "$dynamic_linker" >&6; } 12840test no = "$dynamic_linker" && can_build_shared=no 12841 12842variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12843if test yes = "$GCC"; then 12844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12845fi 12846 12847if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12848 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12849fi 12850 12851if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12852 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12853fi 12854 12855# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12856configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12857 12858# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12859func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12860 12861# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12862configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12961printf %s "checking how to hardcode library paths into programs... " >&6; } 12962hardcode_action= 12963if test -n "$hardcode_libdir_flag_spec" || 12964 test -n "$runpath_var" || 12965 test yes = "$hardcode_automatic"; then 12966 12967 # We can hardcode non-existent directories. 12968 if test no != "$hardcode_direct" && 12969 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12970 # have to relink, otherwise we might link with an installed library 12971 # when we should be linking with a yet-to-be-installed one 12972 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12973 test no != "$hardcode_minus_L"; then 12974 # Linking always hardcodes the temporary library directory. 12975 hardcode_action=relink 12976 else 12977 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12978 hardcode_action=immediate 12979 fi 12980else 12981 # We cannot hardcode anything, or else we can only hardcode existing 12982 # directories. 12983 hardcode_action=unsupported 12984fi 12985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12986printf "%s\n" "$hardcode_action" >&6; } 12987 12988if test relink = "$hardcode_action" || 12989 test yes = "$inherit_rpath"; then 12990 # Fast installation is not supported 12991 enable_fast_install=no 12992elif test yes = "$shlibpath_overrides_runpath" || 12993 test no = "$enable_shared"; then 12994 # Fast installation is not necessary 12995 enable_fast_install=needless 12996fi 12997 12998 12999 13000 13001 13002 13003 if test yes != "$enable_dlopen"; then 13004 enable_dlopen=unknown 13005 enable_dlopen_self=unknown 13006 enable_dlopen_self_static=unknown 13007else 13008 lt_cv_dlopen=no 13009 lt_cv_dlopen_libs= 13010 13011 case $host_os in 13012 beos*) 13013 lt_cv_dlopen=load_add_on 13014 lt_cv_dlopen_libs= 13015 lt_cv_dlopen_self=yes 13016 ;; 13017 13018 mingw* | pw32* | cegcc*) 13019 lt_cv_dlopen=LoadLibrary 13020 lt_cv_dlopen_libs= 13021 ;; 13022 13023 cygwin*) 13024 lt_cv_dlopen=dlopen 13025 lt_cv_dlopen_libs= 13026 ;; 13027 13028 darwin*) 13029 # if libdl is installed we need to link against it 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13031printf %s "checking for dlopen in -ldl... " >&6; } 13032if test ${ac_cv_lib_dl_dlopen+y} 13033then : 13034 printf %s "(cached) " >&6 13035else $as_nop 13036 ac_check_lib_save_LIBS=$LIBS 13037LIBS="-ldl $LIBS" 13038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13039/* end confdefs.h. */ 13040 13041/* Override any GCC internal prototype to avoid an error. 13042 Use char because int might match the return type of a GCC 13043 builtin and then its argument prototype would still apply. */ 13044char dlopen (); 13045int 13046main (void) 13047{ 13048return dlopen (); 13049 ; 13050 return 0; 13051} 13052_ACEOF 13053if ac_fn_c_try_link "$LINENO" 13054then : 13055 ac_cv_lib_dl_dlopen=yes 13056else $as_nop 13057 ac_cv_lib_dl_dlopen=no 13058fi 13059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13060 conftest$ac_exeext conftest.$ac_ext 13061LIBS=$ac_check_lib_save_LIBS 13062fi 13063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13064printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13065if test "x$ac_cv_lib_dl_dlopen" = xyes 13066then : 13067 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13068else $as_nop 13069 13070 lt_cv_dlopen=dyld 13071 lt_cv_dlopen_libs= 13072 lt_cv_dlopen_self=yes 13073 13074fi 13075 13076 ;; 13077 13078 tpf*) 13079 # Don't try to run any link tests for TPF. We know it's impossible 13080 # because TPF is a cross-compiler, and we know how we open DSOs. 13081 lt_cv_dlopen=dlopen 13082 lt_cv_dlopen_libs= 13083 lt_cv_dlopen_self=no 13084 ;; 13085 13086 *) 13087 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13088if test "x$ac_cv_func_shl_load" = xyes 13089then : 13090 lt_cv_dlopen=shl_load 13091else $as_nop 13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13093printf %s "checking for shl_load in -ldld... " >&6; } 13094if test ${ac_cv_lib_dld_shl_load+y} 13095then : 13096 printf %s "(cached) " >&6 13097else $as_nop 13098 ac_check_lib_save_LIBS=$LIBS 13099LIBS="-ldld $LIBS" 13100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13101/* end confdefs.h. */ 13102 13103/* Override any GCC internal prototype to avoid an error. 13104 Use char because int might match the return type of a GCC 13105 builtin and then its argument prototype would still apply. */ 13106char shl_load (); 13107int 13108main (void) 13109{ 13110return shl_load (); 13111 ; 13112 return 0; 13113} 13114_ACEOF 13115if ac_fn_c_try_link "$LINENO" 13116then : 13117 ac_cv_lib_dld_shl_load=yes 13118else $as_nop 13119 ac_cv_lib_dld_shl_load=no 13120fi 13121rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13122 conftest$ac_exeext conftest.$ac_ext 13123LIBS=$ac_check_lib_save_LIBS 13124fi 13125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13126printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13127if test "x$ac_cv_lib_dld_shl_load" = xyes 13128then : 13129 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13130else $as_nop 13131 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13132if test "x$ac_cv_func_dlopen" = xyes 13133then : 13134 lt_cv_dlopen=dlopen 13135else $as_nop 13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13137printf %s "checking for dlopen in -ldl... " >&6; } 13138if test ${ac_cv_lib_dl_dlopen+y} 13139then : 13140 printf %s "(cached) " >&6 13141else $as_nop 13142 ac_check_lib_save_LIBS=$LIBS 13143LIBS="-ldl $LIBS" 13144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145/* end confdefs.h. */ 13146 13147/* Override any GCC internal prototype to avoid an error. 13148 Use char because int might match the return type of a GCC 13149 builtin and then its argument prototype would still apply. */ 13150char dlopen (); 13151int 13152main (void) 13153{ 13154return dlopen (); 13155 ; 13156 return 0; 13157} 13158_ACEOF 13159if ac_fn_c_try_link "$LINENO" 13160then : 13161 ac_cv_lib_dl_dlopen=yes 13162else $as_nop 13163 ac_cv_lib_dl_dlopen=no 13164fi 13165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13166 conftest$ac_exeext conftest.$ac_ext 13167LIBS=$ac_check_lib_save_LIBS 13168fi 13169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13170printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13171if test "x$ac_cv_lib_dl_dlopen" = xyes 13172then : 13173 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13174else $as_nop 13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13176printf %s "checking for dlopen in -lsvld... " >&6; } 13177if test ${ac_cv_lib_svld_dlopen+y} 13178then : 13179 printf %s "(cached) " >&6 13180else $as_nop 13181 ac_check_lib_save_LIBS=$LIBS 13182LIBS="-lsvld $LIBS" 13183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185 13186/* Override any GCC internal prototype to avoid an error. 13187 Use char because int might match the return type of a GCC 13188 builtin and then its argument prototype would still apply. */ 13189char dlopen (); 13190int 13191main (void) 13192{ 13193return dlopen (); 13194 ; 13195 return 0; 13196} 13197_ACEOF 13198if ac_fn_c_try_link "$LINENO" 13199then : 13200 ac_cv_lib_svld_dlopen=yes 13201else $as_nop 13202 ac_cv_lib_svld_dlopen=no 13203fi 13204rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13205 conftest$ac_exeext conftest.$ac_ext 13206LIBS=$ac_check_lib_save_LIBS 13207fi 13208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13209printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13210if test "x$ac_cv_lib_svld_dlopen" = xyes 13211then : 13212 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13213else $as_nop 13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13215printf %s "checking for dld_link in -ldld... " >&6; } 13216if test ${ac_cv_lib_dld_dld_link+y} 13217then : 13218 printf %s "(cached) " >&6 13219else $as_nop 13220 ac_check_lib_save_LIBS=$LIBS 13221LIBS="-ldld $LIBS" 13222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13223/* end confdefs.h. */ 13224 13225/* Override any GCC internal prototype to avoid an error. 13226 Use char because int might match the return type of a GCC 13227 builtin and then its argument prototype would still apply. */ 13228char dld_link (); 13229int 13230main (void) 13231{ 13232return dld_link (); 13233 ; 13234 return 0; 13235} 13236_ACEOF 13237if ac_fn_c_try_link "$LINENO" 13238then : 13239 ac_cv_lib_dld_dld_link=yes 13240else $as_nop 13241 ac_cv_lib_dld_dld_link=no 13242fi 13243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13244 conftest$ac_exeext conftest.$ac_ext 13245LIBS=$ac_check_lib_save_LIBS 13246fi 13247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13248printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13249if test "x$ac_cv_lib_dld_dld_link" = xyes 13250then : 13251 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13252fi 13253 13254 13255fi 13256 13257 13258fi 13259 13260 13261fi 13262 13263 13264fi 13265 13266 13267fi 13268 13269 ;; 13270 esac 13271 13272 if test no = "$lt_cv_dlopen"; then 13273 enable_dlopen=no 13274 else 13275 enable_dlopen=yes 13276 fi 13277 13278 case $lt_cv_dlopen in 13279 dlopen) 13280 save_CPPFLAGS=$CPPFLAGS 13281 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13282 13283 save_LDFLAGS=$LDFLAGS 13284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13285 13286 save_LIBS=$LIBS 13287 LIBS="$lt_cv_dlopen_libs $LIBS" 13288 13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13290printf %s "checking whether a program can dlopen itself... " >&6; } 13291if test ${lt_cv_dlopen_self+y} 13292then : 13293 printf %s "(cached) " >&6 13294else $as_nop 13295 if test yes = "$cross_compiling"; then : 13296 lt_cv_dlopen_self=cross 13297else 13298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13299 lt_status=$lt_dlunknown 13300 cat > conftest.$ac_ext <<_LT_EOF 13301#line $LINENO "configure" 13302#include "confdefs.h" 13303 13304#if HAVE_DLFCN_H 13305#include <dlfcn.h> 13306#endif 13307 13308#include <stdio.h> 13309 13310#ifdef RTLD_GLOBAL 13311# define LT_DLGLOBAL RTLD_GLOBAL 13312#else 13313# ifdef DL_GLOBAL 13314# define LT_DLGLOBAL DL_GLOBAL 13315# else 13316# define LT_DLGLOBAL 0 13317# endif 13318#endif 13319 13320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13321 find out it does not work in some platform. */ 13322#ifndef LT_DLLAZY_OR_NOW 13323# ifdef RTLD_LAZY 13324# define LT_DLLAZY_OR_NOW RTLD_LAZY 13325# else 13326# ifdef DL_LAZY 13327# define LT_DLLAZY_OR_NOW DL_LAZY 13328# else 13329# ifdef RTLD_NOW 13330# define LT_DLLAZY_OR_NOW RTLD_NOW 13331# else 13332# ifdef DL_NOW 13333# define LT_DLLAZY_OR_NOW DL_NOW 13334# else 13335# define LT_DLLAZY_OR_NOW 0 13336# endif 13337# endif 13338# endif 13339# endif 13340#endif 13341 13342/* When -fvisibility=hidden is used, assume the code has been annotated 13343 correspondingly for the symbols needed. */ 13344#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13345int fnord () __attribute__((visibility("default"))); 13346#endif 13347 13348int fnord () { return 42; } 13349int main () 13350{ 13351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13352 int status = $lt_dlunknown; 13353 13354 if (self) 13355 { 13356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13357 else 13358 { 13359 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13360 else puts (dlerror ()); 13361 } 13362 /* dlclose (self); */ 13363 } 13364 else 13365 puts (dlerror ()); 13366 13367 return status; 13368} 13369_LT_EOF 13370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13371 (eval $ac_link) 2>&5 13372 ac_status=$? 13373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13374 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13375 (./conftest; exit; ) >&5 2>/dev/null 13376 lt_status=$? 13377 case x$lt_status in 13378 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13379 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13380 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13381 esac 13382 else : 13383 # compilation failed 13384 lt_cv_dlopen_self=no 13385 fi 13386fi 13387rm -fr conftest* 13388 13389 13390fi 13391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13392printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13393 13394 if test yes = "$lt_cv_dlopen_self"; then 13395 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13397printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13398if test ${lt_cv_dlopen_self_static+y} 13399then : 13400 printf %s "(cached) " >&6 13401else $as_nop 13402 if test yes = "$cross_compiling"; then : 13403 lt_cv_dlopen_self_static=cross 13404else 13405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13406 lt_status=$lt_dlunknown 13407 cat > conftest.$ac_ext <<_LT_EOF 13408#line $LINENO "configure" 13409#include "confdefs.h" 13410 13411#if HAVE_DLFCN_H 13412#include <dlfcn.h> 13413#endif 13414 13415#include <stdio.h> 13416 13417#ifdef RTLD_GLOBAL 13418# define LT_DLGLOBAL RTLD_GLOBAL 13419#else 13420# ifdef DL_GLOBAL 13421# define LT_DLGLOBAL DL_GLOBAL 13422# else 13423# define LT_DLGLOBAL 0 13424# endif 13425#endif 13426 13427/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13428 find out it does not work in some platform. */ 13429#ifndef LT_DLLAZY_OR_NOW 13430# ifdef RTLD_LAZY 13431# define LT_DLLAZY_OR_NOW RTLD_LAZY 13432# else 13433# ifdef DL_LAZY 13434# define LT_DLLAZY_OR_NOW DL_LAZY 13435# else 13436# ifdef RTLD_NOW 13437# define LT_DLLAZY_OR_NOW RTLD_NOW 13438# else 13439# ifdef DL_NOW 13440# define LT_DLLAZY_OR_NOW DL_NOW 13441# else 13442# define LT_DLLAZY_OR_NOW 0 13443# endif 13444# endif 13445# endif 13446# endif 13447#endif 13448 13449/* When -fvisibility=hidden is used, assume the code has been annotated 13450 correspondingly for the symbols needed. */ 13451#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13452int fnord () __attribute__((visibility("default"))); 13453#endif 13454 13455int fnord () { return 42; } 13456int main () 13457{ 13458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13459 int status = $lt_dlunknown; 13460 13461 if (self) 13462 { 13463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13464 else 13465 { 13466 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13467 else puts (dlerror ()); 13468 } 13469 /* dlclose (self); */ 13470 } 13471 else 13472 puts (dlerror ()); 13473 13474 return status; 13475} 13476_LT_EOF 13477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13478 (eval $ac_link) 2>&5 13479 ac_status=$? 13480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13481 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13482 (./conftest; exit; ) >&5 2>/dev/null 13483 lt_status=$? 13484 case x$lt_status in 13485 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13486 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13487 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13488 esac 13489 else : 13490 # compilation failed 13491 lt_cv_dlopen_self_static=no 13492 fi 13493fi 13494rm -fr conftest* 13495 13496 13497fi 13498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13499printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13500 fi 13501 13502 CPPFLAGS=$save_CPPFLAGS 13503 LDFLAGS=$save_LDFLAGS 13504 LIBS=$save_LIBS 13505 ;; 13506 esac 13507 13508 case $lt_cv_dlopen_self in 13509 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13510 *) enable_dlopen_self=unknown ;; 13511 esac 13512 13513 case $lt_cv_dlopen_self_static in 13514 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13515 *) enable_dlopen_self_static=unknown ;; 13516 esac 13517fi 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535striplib= 13536old_striplib= 13537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13538printf %s "checking whether stripping libraries is possible... " >&6; } 13539if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13540 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13541 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13543printf "%s\n" "yes" >&6; } 13544else 13545# FIXME - insert some real tests, host_os isn't really good enough 13546 case $host_os in 13547 darwin*) 13548 if test -n "$STRIP"; then 13549 striplib="$STRIP -x" 13550 old_striplib="$STRIP -S" 13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13552printf "%s\n" "yes" >&6; } 13553 else 13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13555printf "%s\n" "no" >&6; } 13556 fi 13557 ;; 13558 *) 13559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13560printf "%s\n" "no" >&6; } 13561 ;; 13562 esac 13563fi 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 # Report what library types will actually be built 13577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13578printf %s "checking if libtool supports shared libraries... " >&6; } 13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13580printf "%s\n" "$can_build_shared" >&6; } 13581 13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13583printf %s "checking whether to build shared libraries... " >&6; } 13584 test no = "$can_build_shared" && enable_shared=no 13585 13586 # On AIX, shared libraries and static libraries use the same namespace, and 13587 # are all built from PIC. 13588 case $host_os in 13589 aix3*) 13590 test yes = "$enable_shared" && enable_static=no 13591 if test -n "$RANLIB"; then 13592 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13593 postinstall_cmds='$RANLIB $lib' 13594 fi 13595 ;; 13596 13597 aix[4-9]*) 13598 if test ia64 != "$host_cpu"; then 13599 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13600 yes,aix,yes) ;; # shared object as lib.so file only 13601 yes,svr4,*) ;; # shared object as lib.so archive member only 13602 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13603 esac 13604 fi 13605 ;; 13606 esac 13607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13608printf "%s\n" "$enable_shared" >&6; } 13609 13610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13611printf %s "checking whether to build static libraries... " >&6; } 13612 # Make sure either enable_shared or enable_static is yes. 13613 test yes = "$enable_shared" || enable_static=yes 13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13615printf "%s\n" "$enable_static" >&6; } 13616 13617 13618 13619 13620fi 13621ac_ext=c 13622ac_cpp='$CPP $CPPFLAGS' 13623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13625ac_compiler_gnu=$ac_cv_c_compiler_gnu 13626 13627CC=$lt_save_CC 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 ac_config_commands="$ac_config_commands libtool" 13644 13645 13646 13647 13648# Only expand once: 13649 13650 13651 13652# Require xorg-macros minimum of 1.18 - Initial version 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13666printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13667if test ${ac_cv_c_undeclared_builtin_options+y} 13668then : 13669 printf %s "(cached) " >&6 13670else $as_nop 13671 ac_save_CFLAGS=$CFLAGS 13672 ac_cv_c_undeclared_builtin_options='cannot detect' 13673 for ac_arg in '' -fno-builtin; do 13674 CFLAGS="$ac_save_CFLAGS $ac_arg" 13675 # This test program should *not* compile successfully. 13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13677/* end confdefs.h. */ 13678 13679int 13680main (void) 13681{ 13682(void) strchr; 13683 ; 13684 return 0; 13685} 13686_ACEOF 13687if ac_fn_c_try_compile "$LINENO" 13688then : 13689 13690else $as_nop 13691 # This test program should compile successfully. 13692 # No library function is consistently available on 13693 # freestanding implementations, so test against a dummy 13694 # declaration. Include always-available headers on the 13695 # off chance that they somehow elicit warnings. 13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13697/* end confdefs.h. */ 13698#include <float.h> 13699#include <limits.h> 13700#include <stdarg.h> 13701#include <stddef.h> 13702extern void ac_decl (int, char *); 13703 13704int 13705main (void) 13706{ 13707(void) ac_decl (0, (char *) 0); 13708 (void) ac_decl; 13709 13710 ; 13711 return 0; 13712} 13713_ACEOF 13714if ac_fn_c_try_compile "$LINENO" 13715then : 13716 if test x"$ac_arg" = x 13717then : 13718 ac_cv_c_undeclared_builtin_options='none needed' 13719else $as_nop 13720 ac_cv_c_undeclared_builtin_options=$ac_arg 13721fi 13722 break 13723fi 13724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13725fi 13726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13727 done 13728 CFLAGS=$ac_save_CFLAGS 13729 13730fi 13731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13732printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13733 case $ac_cv_c_undeclared_builtin_options in #( 13734 'cannot detect') : 13735 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13736printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13737as_fn_error $? "cannot make $CC report undeclared builtins 13738See \`config.log' for more details" "$LINENO" 5; } ;; #( 13739 'none needed') : 13740 ac_c_undeclared_builtin_options='' ;; #( 13741 *) : 13742 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13743esac 13744 13745 13746 13747 13748 13749ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13750if test "x$ac_cv_have_decl___clang__" = xyes 13751then : 13752 CLANGCC="yes" 13753else $as_nop 13754 CLANGCC="no" 13755fi 13756ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13757if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13758then : 13759 INTELCC="yes" 13760else $as_nop 13761 INTELCC="no" 13762fi 13763ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13764if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13765then : 13766 SUNCC="yes" 13767else $as_nop 13768 SUNCC="no" 13769fi 13770 13771 13772 13773 13774 13775 13776 13777 13778if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13779 if test -n "$ac_tool_prefix"; then 13780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13781set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13783printf %s "checking for $ac_word... " >&6; } 13784if test ${ac_cv_path_PKG_CONFIG+y} 13785then : 13786 printf %s "(cached) " >&6 13787else $as_nop 13788 case $PKG_CONFIG in 13789 [\\/]* | ?:[\\/]*) 13790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13791 ;; 13792 *) 13793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13794for as_dir in $PATH 13795do 13796 IFS=$as_save_IFS 13797 case $as_dir in #((( 13798 '') as_dir=./ ;; 13799 */) ;; 13800 *) as_dir=$as_dir/ ;; 13801 esac 13802 for ac_exec_ext in '' $ac_executable_extensions; do 13803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13804 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13806 break 2 13807 fi 13808done 13809 done 13810IFS=$as_save_IFS 13811 13812 ;; 13813esac 13814fi 13815PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13816if test -n "$PKG_CONFIG"; then 13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13818printf "%s\n" "$PKG_CONFIG" >&6; } 13819else 13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13821printf "%s\n" "no" >&6; } 13822fi 13823 13824 13825fi 13826if test -z "$ac_cv_path_PKG_CONFIG"; then 13827 ac_pt_PKG_CONFIG=$PKG_CONFIG 13828 # Extract the first word of "pkg-config", so it can be a program name with args. 13829set dummy pkg-config; ac_word=$2 13830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13831printf %s "checking for $ac_word... " >&6; } 13832if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13833then : 13834 printf %s "(cached) " >&6 13835else $as_nop 13836 case $ac_pt_PKG_CONFIG in 13837 [\\/]* | ?:[\\/]*) 13838 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13839 ;; 13840 *) 13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13842for as_dir in $PATH 13843do 13844 IFS=$as_save_IFS 13845 case $as_dir in #((( 13846 '') as_dir=./ ;; 13847 */) ;; 13848 *) as_dir=$as_dir/ ;; 13849 esac 13850 for ac_exec_ext in '' $ac_executable_extensions; do 13851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13852 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13854 break 2 13855 fi 13856done 13857 done 13858IFS=$as_save_IFS 13859 13860 ;; 13861esac 13862fi 13863ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13864if test -n "$ac_pt_PKG_CONFIG"; then 13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13866printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13867else 13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13869printf "%s\n" "no" >&6; } 13870fi 13871 13872 if test "x$ac_pt_PKG_CONFIG" = x; then 13873 PKG_CONFIG="" 13874 else 13875 case $cross_compiling:$ac_tool_warned in 13876yes:) 13877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13878printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13879ac_tool_warned=yes ;; 13880esac 13881 PKG_CONFIG=$ac_pt_PKG_CONFIG 13882 fi 13883else 13884 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13885fi 13886 13887fi 13888if test -n "$PKG_CONFIG"; then 13889 _pkg_min_version=0.9.0 13890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13891printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13892 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13894printf "%s\n" "yes" >&6; } 13895 else 13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13897printf "%s\n" "no" >&6; } 13898 PKG_CONFIG="" 13899 fi 13900fi 13901 13902 13903 13904 13905 13906# Check whether --enable-selective-werror was given. 13907if test ${enable_selective_werror+y} 13908then : 13909 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13910else $as_nop 13911 SELECTIVE_WERROR=yes 13912fi 13913 13914 13915 13916 13917 13918# -v is too short to test reliably with XORG_TESTSET_CFLAG 13919if test "x$SUNCC" = "xyes"; then 13920 BASE_CFLAGS="-v" 13921else 13922 BASE_CFLAGS="" 13923fi 13924 13925# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939xorg_testset_save_CFLAGS="$CFLAGS" 13940 13941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13945if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13946then : 13947 printf %s "(cached) " >&6 13948else $as_nop 13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13950/* end confdefs.h. */ 13951int i; 13952_ACEOF 13953if ac_fn_c_try_compile "$LINENO" 13954then : 13955 xorg_cv_cc_flag_unknown_warning_option=yes 13956else $as_nop 13957 xorg_cv_cc_flag_unknown_warning_option=no 13958fi 13959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13960fi 13961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13964 CFLAGS="$xorg_testset_save_CFLAGS" 13965fi 13966 13967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13970 fi 13971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13974if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13975then : 13976 printf %s "(cached) " >&6 13977else $as_nop 13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13979/* end confdefs.h. */ 13980int i; 13981_ACEOF 13982if ac_fn_c_try_compile "$LINENO" 13983then : 13984 xorg_cv_cc_flag_unused_command_line_argument=yes 13985else $as_nop 13986 xorg_cv_cc_flag_unused_command_line_argument=no 13987fi 13988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13989fi 13990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13993 CFLAGS="$xorg_testset_save_CFLAGS" 13994fi 13995 13996found="no" 13997 13998 if test $found = "no" ; then 13999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14001 fi 14002 14003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14005 fi 14006 14007 CFLAGS="$CFLAGS -Wall" 14008 14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14010printf %s "checking if $CC supports -Wall... " >&6; } 14011 cacheid=xorg_cv_cc_flag__Wall 14012 if eval test \${$cacheid+y} 14013then : 14014 printf %s "(cached) " >&6 14015else $as_nop 14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14017/* end confdefs.h. */ 14018int i; 14019int 14020main (void) 14021{ 14022 14023 ; 14024 return 0; 14025} 14026_ACEOF 14027if ac_fn_c_try_link "$LINENO" 14028then : 14029 eval $cacheid=yes 14030else $as_nop 14031 eval $cacheid=no 14032fi 14033rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14034 conftest$ac_exeext conftest.$ac_ext 14035fi 14036 14037 14038 CFLAGS="$xorg_testset_save_CFLAGS" 14039 14040 eval supported=\$$cacheid 14041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14042printf "%s\n" "$supported" >&6; } 14043 if test "$supported" = "yes" ; then 14044 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14045 found="yes" 14046 fi 14047 fi 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063xorg_testset_save_CFLAGS="$CFLAGS" 14064 14065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14068printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14069if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14070then : 14071 printf %s "(cached) " >&6 14072else $as_nop 14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14074/* end confdefs.h. */ 14075int i; 14076_ACEOF 14077if ac_fn_c_try_compile "$LINENO" 14078then : 14079 xorg_cv_cc_flag_unknown_warning_option=yes 14080else $as_nop 14081 xorg_cv_cc_flag_unknown_warning_option=no 14082fi 14083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14084fi 14085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14086printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14088 CFLAGS="$xorg_testset_save_CFLAGS" 14089fi 14090 14091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14094 fi 14095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14097printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14098if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14099then : 14100 printf %s "(cached) " >&6 14101else $as_nop 14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14103/* end confdefs.h. */ 14104int i; 14105_ACEOF 14106if ac_fn_c_try_compile "$LINENO" 14107then : 14108 xorg_cv_cc_flag_unused_command_line_argument=yes 14109else $as_nop 14110 xorg_cv_cc_flag_unused_command_line_argument=no 14111fi 14112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14113fi 14114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14117 CFLAGS="$xorg_testset_save_CFLAGS" 14118fi 14119 14120found="no" 14121 14122 if test $found = "no" ; then 14123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14125 fi 14126 14127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14129 fi 14130 14131 CFLAGS="$CFLAGS -Wpointer-arith" 14132 14133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14134printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14135 cacheid=xorg_cv_cc_flag__Wpointer_arith 14136 if eval test \${$cacheid+y} 14137then : 14138 printf %s "(cached) " >&6 14139else $as_nop 14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14141/* end confdefs.h. */ 14142int i; 14143int 14144main (void) 14145{ 14146 14147 ; 14148 return 0; 14149} 14150_ACEOF 14151if ac_fn_c_try_link "$LINENO" 14152then : 14153 eval $cacheid=yes 14154else $as_nop 14155 eval $cacheid=no 14156fi 14157rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14158 conftest$ac_exeext conftest.$ac_ext 14159fi 14160 14161 14162 CFLAGS="$xorg_testset_save_CFLAGS" 14163 14164 eval supported=\$$cacheid 14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14166printf "%s\n" "$supported" >&6; } 14167 if test "$supported" = "yes" ; then 14168 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14169 found="yes" 14170 fi 14171 fi 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187xorg_testset_save_CFLAGS="$CFLAGS" 14188 14189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14193if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14194then : 14195 printf %s "(cached) " >&6 14196else $as_nop 14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14198/* end confdefs.h. */ 14199int i; 14200_ACEOF 14201if ac_fn_c_try_compile "$LINENO" 14202then : 14203 xorg_cv_cc_flag_unknown_warning_option=yes 14204else $as_nop 14205 xorg_cv_cc_flag_unknown_warning_option=no 14206fi 14207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14208fi 14209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14212 CFLAGS="$xorg_testset_save_CFLAGS" 14213fi 14214 14215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14218 fi 14219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14222if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14223then : 14224 printf %s "(cached) " >&6 14225else $as_nop 14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14227/* end confdefs.h. */ 14228int i; 14229_ACEOF 14230if ac_fn_c_try_compile "$LINENO" 14231then : 14232 xorg_cv_cc_flag_unused_command_line_argument=yes 14233else $as_nop 14234 xorg_cv_cc_flag_unused_command_line_argument=no 14235fi 14236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14237fi 14238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14241 CFLAGS="$xorg_testset_save_CFLAGS" 14242fi 14243 14244found="no" 14245 14246 if test $found = "no" ; then 14247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14249 fi 14250 14251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14253 fi 14254 14255 CFLAGS="$CFLAGS -Wmissing-declarations" 14256 14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14258printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14259 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14260 if eval test \${$cacheid+y} 14261then : 14262 printf %s "(cached) " >&6 14263else $as_nop 14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14265/* end confdefs.h. */ 14266int i; 14267int 14268main (void) 14269{ 14270 14271 ; 14272 return 0; 14273} 14274_ACEOF 14275if ac_fn_c_try_link "$LINENO" 14276then : 14277 eval $cacheid=yes 14278else $as_nop 14279 eval $cacheid=no 14280fi 14281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14282 conftest$ac_exeext conftest.$ac_ext 14283fi 14284 14285 14286 CFLAGS="$xorg_testset_save_CFLAGS" 14287 14288 eval supported=\$$cacheid 14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14290printf "%s\n" "$supported" >&6; } 14291 if test "$supported" = "yes" ; then 14292 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14293 found="yes" 14294 fi 14295 fi 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311xorg_testset_save_CFLAGS="$CFLAGS" 14312 14313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14317if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14318then : 14319 printf %s "(cached) " >&6 14320else $as_nop 14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14322/* end confdefs.h. */ 14323int i; 14324_ACEOF 14325if ac_fn_c_try_compile "$LINENO" 14326then : 14327 xorg_cv_cc_flag_unknown_warning_option=yes 14328else $as_nop 14329 xorg_cv_cc_flag_unknown_warning_option=no 14330fi 14331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14332fi 14333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14336 CFLAGS="$xorg_testset_save_CFLAGS" 14337fi 14338 14339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14342 fi 14343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14346if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14347then : 14348 printf %s "(cached) " >&6 14349else $as_nop 14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14351/* end confdefs.h. */ 14352int i; 14353_ACEOF 14354if ac_fn_c_try_compile "$LINENO" 14355then : 14356 xorg_cv_cc_flag_unused_command_line_argument=yes 14357else $as_nop 14358 xorg_cv_cc_flag_unused_command_line_argument=no 14359fi 14360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14361fi 14362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14365 CFLAGS="$xorg_testset_save_CFLAGS" 14366fi 14367 14368found="no" 14369 14370 if test $found = "no" ; then 14371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14373 fi 14374 14375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14377 fi 14378 14379 CFLAGS="$CFLAGS -Wformat=2" 14380 14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14382printf %s "checking if $CC supports -Wformat=2... " >&6; } 14383 cacheid=xorg_cv_cc_flag__Wformat_2 14384 if eval test \${$cacheid+y} 14385then : 14386 printf %s "(cached) " >&6 14387else $as_nop 14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14389/* end confdefs.h. */ 14390int i; 14391int 14392main (void) 14393{ 14394 14395 ; 14396 return 0; 14397} 14398_ACEOF 14399if ac_fn_c_try_link "$LINENO" 14400then : 14401 eval $cacheid=yes 14402else $as_nop 14403 eval $cacheid=no 14404fi 14405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14406 conftest$ac_exeext conftest.$ac_ext 14407fi 14408 14409 14410 CFLAGS="$xorg_testset_save_CFLAGS" 14411 14412 eval supported=\$$cacheid 14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14414printf "%s\n" "$supported" >&6; } 14415 if test "$supported" = "yes" ; then 14416 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14417 found="yes" 14418 fi 14419 fi 14420 14421 if test $found = "no" ; then 14422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14424 fi 14425 14426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14428 fi 14429 14430 CFLAGS="$CFLAGS -Wformat" 14431 14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14433printf %s "checking if $CC supports -Wformat... " >&6; } 14434 cacheid=xorg_cv_cc_flag__Wformat 14435 if eval test \${$cacheid+y} 14436then : 14437 printf %s "(cached) " >&6 14438else $as_nop 14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14440/* end confdefs.h. */ 14441int i; 14442int 14443main (void) 14444{ 14445 14446 ; 14447 return 0; 14448} 14449_ACEOF 14450if ac_fn_c_try_link "$LINENO" 14451then : 14452 eval $cacheid=yes 14453else $as_nop 14454 eval $cacheid=no 14455fi 14456rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14457 conftest$ac_exeext conftest.$ac_ext 14458fi 14459 14460 14461 CFLAGS="$xorg_testset_save_CFLAGS" 14462 14463 eval supported=\$$cacheid 14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14465printf "%s\n" "$supported" >&6; } 14466 if test "$supported" = "yes" ; then 14467 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14468 found="yes" 14469 fi 14470 fi 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488xorg_testset_save_CFLAGS="$CFLAGS" 14489 14490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14494if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14495then : 14496 printf %s "(cached) " >&6 14497else $as_nop 14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14499/* end confdefs.h. */ 14500int i; 14501_ACEOF 14502if ac_fn_c_try_compile "$LINENO" 14503then : 14504 xorg_cv_cc_flag_unknown_warning_option=yes 14505else $as_nop 14506 xorg_cv_cc_flag_unknown_warning_option=no 14507fi 14508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14509fi 14510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14511printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14513 CFLAGS="$xorg_testset_save_CFLAGS" 14514fi 14515 14516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14519 fi 14520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14522printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14523if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14524then : 14525 printf %s "(cached) " >&6 14526else $as_nop 14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14528/* end confdefs.h. */ 14529int i; 14530_ACEOF 14531if ac_fn_c_try_compile "$LINENO" 14532then : 14533 xorg_cv_cc_flag_unused_command_line_argument=yes 14534else $as_nop 14535 xorg_cv_cc_flag_unused_command_line_argument=no 14536fi 14537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14538fi 14539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14540printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14542 CFLAGS="$xorg_testset_save_CFLAGS" 14543fi 14544 14545found="no" 14546 14547 if test $found = "no" ; then 14548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14550 fi 14551 14552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14554 fi 14555 14556 CFLAGS="$CFLAGS -Wstrict-prototypes" 14557 14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14559printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14560 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14561 if eval test \${$cacheid+y} 14562then : 14563 printf %s "(cached) " >&6 14564else $as_nop 14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14566/* end confdefs.h. */ 14567int i; 14568int 14569main (void) 14570{ 14571 14572 ; 14573 return 0; 14574} 14575_ACEOF 14576if ac_fn_c_try_link "$LINENO" 14577then : 14578 eval $cacheid=yes 14579else $as_nop 14580 eval $cacheid=no 14581fi 14582rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14583 conftest$ac_exeext conftest.$ac_ext 14584fi 14585 14586 14587 CFLAGS="$xorg_testset_save_CFLAGS" 14588 14589 eval supported=\$$cacheid 14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14591printf "%s\n" "$supported" >&6; } 14592 if test "$supported" = "yes" ; then 14593 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14594 found="yes" 14595 fi 14596 fi 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612xorg_testset_save_CFLAGS="$CFLAGS" 14613 14614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14618if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14619then : 14620 printf %s "(cached) " >&6 14621else $as_nop 14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14623/* end confdefs.h. */ 14624int i; 14625_ACEOF 14626if ac_fn_c_try_compile "$LINENO" 14627then : 14628 xorg_cv_cc_flag_unknown_warning_option=yes 14629else $as_nop 14630 xorg_cv_cc_flag_unknown_warning_option=no 14631fi 14632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14633fi 14634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14637 CFLAGS="$xorg_testset_save_CFLAGS" 14638fi 14639 14640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14643 fi 14644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14647if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14648then : 14649 printf %s "(cached) " >&6 14650else $as_nop 14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14652/* end confdefs.h. */ 14653int i; 14654_ACEOF 14655if ac_fn_c_try_compile "$LINENO" 14656then : 14657 xorg_cv_cc_flag_unused_command_line_argument=yes 14658else $as_nop 14659 xorg_cv_cc_flag_unused_command_line_argument=no 14660fi 14661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14662fi 14663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14666 CFLAGS="$xorg_testset_save_CFLAGS" 14667fi 14668 14669found="no" 14670 14671 if test $found = "no" ; then 14672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14674 fi 14675 14676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14678 fi 14679 14680 CFLAGS="$CFLAGS -Wmissing-prototypes" 14681 14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14683printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14684 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14685 if eval test \${$cacheid+y} 14686then : 14687 printf %s "(cached) " >&6 14688else $as_nop 14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14690/* end confdefs.h. */ 14691int i; 14692int 14693main (void) 14694{ 14695 14696 ; 14697 return 0; 14698} 14699_ACEOF 14700if ac_fn_c_try_link "$LINENO" 14701then : 14702 eval $cacheid=yes 14703else $as_nop 14704 eval $cacheid=no 14705fi 14706rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14707 conftest$ac_exeext conftest.$ac_ext 14708fi 14709 14710 14711 CFLAGS="$xorg_testset_save_CFLAGS" 14712 14713 eval supported=\$$cacheid 14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14715printf "%s\n" "$supported" >&6; } 14716 if test "$supported" = "yes" ; then 14717 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14718 found="yes" 14719 fi 14720 fi 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736xorg_testset_save_CFLAGS="$CFLAGS" 14737 14738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14742if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14743then : 14744 printf %s "(cached) " >&6 14745else $as_nop 14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14747/* end confdefs.h. */ 14748int i; 14749_ACEOF 14750if ac_fn_c_try_compile "$LINENO" 14751then : 14752 xorg_cv_cc_flag_unknown_warning_option=yes 14753else $as_nop 14754 xorg_cv_cc_flag_unknown_warning_option=no 14755fi 14756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14757fi 14758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14759printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14761 CFLAGS="$xorg_testset_save_CFLAGS" 14762fi 14763 14764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14767 fi 14768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14770printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14771if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14772then : 14773 printf %s "(cached) " >&6 14774else $as_nop 14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14776/* end confdefs.h. */ 14777int i; 14778_ACEOF 14779if ac_fn_c_try_compile "$LINENO" 14780then : 14781 xorg_cv_cc_flag_unused_command_line_argument=yes 14782else $as_nop 14783 xorg_cv_cc_flag_unused_command_line_argument=no 14784fi 14785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14786fi 14787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14788printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14790 CFLAGS="$xorg_testset_save_CFLAGS" 14791fi 14792 14793found="no" 14794 14795 if test $found = "no" ; then 14796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14798 fi 14799 14800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14802 fi 14803 14804 CFLAGS="$CFLAGS -Wnested-externs" 14805 14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14807printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14808 cacheid=xorg_cv_cc_flag__Wnested_externs 14809 if eval test \${$cacheid+y} 14810then : 14811 printf %s "(cached) " >&6 14812else $as_nop 14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14814/* end confdefs.h. */ 14815int i; 14816int 14817main (void) 14818{ 14819 14820 ; 14821 return 0; 14822} 14823_ACEOF 14824if ac_fn_c_try_link "$LINENO" 14825then : 14826 eval $cacheid=yes 14827else $as_nop 14828 eval $cacheid=no 14829fi 14830rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14831 conftest$ac_exeext conftest.$ac_ext 14832fi 14833 14834 14835 CFLAGS="$xorg_testset_save_CFLAGS" 14836 14837 eval supported=\$$cacheid 14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14839printf "%s\n" "$supported" >&6; } 14840 if test "$supported" = "yes" ; then 14841 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14842 found="yes" 14843 fi 14844 fi 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860xorg_testset_save_CFLAGS="$CFLAGS" 14861 14862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14866if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14867then : 14868 printf %s "(cached) " >&6 14869else $as_nop 14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14871/* end confdefs.h. */ 14872int i; 14873_ACEOF 14874if ac_fn_c_try_compile "$LINENO" 14875then : 14876 xorg_cv_cc_flag_unknown_warning_option=yes 14877else $as_nop 14878 xorg_cv_cc_flag_unknown_warning_option=no 14879fi 14880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14881fi 14882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14883printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14885 CFLAGS="$xorg_testset_save_CFLAGS" 14886fi 14887 14888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14891 fi 14892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14894printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14895if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14896then : 14897 printf %s "(cached) " >&6 14898else $as_nop 14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14900/* end confdefs.h. */ 14901int i; 14902_ACEOF 14903if ac_fn_c_try_compile "$LINENO" 14904then : 14905 xorg_cv_cc_flag_unused_command_line_argument=yes 14906else $as_nop 14907 xorg_cv_cc_flag_unused_command_line_argument=no 14908fi 14909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14910fi 14911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14912printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14914 CFLAGS="$xorg_testset_save_CFLAGS" 14915fi 14916 14917found="no" 14918 14919 if test $found = "no" ; then 14920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14922 fi 14923 14924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14926 fi 14927 14928 CFLAGS="$CFLAGS -Wbad-function-cast" 14929 14930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14931printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14932 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14933 if eval test \${$cacheid+y} 14934then : 14935 printf %s "(cached) " >&6 14936else $as_nop 14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14938/* end confdefs.h. */ 14939int i; 14940int 14941main (void) 14942{ 14943 14944 ; 14945 return 0; 14946} 14947_ACEOF 14948if ac_fn_c_try_link "$LINENO" 14949then : 14950 eval $cacheid=yes 14951else $as_nop 14952 eval $cacheid=no 14953fi 14954rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14955 conftest$ac_exeext conftest.$ac_ext 14956fi 14957 14958 14959 CFLAGS="$xorg_testset_save_CFLAGS" 14960 14961 eval supported=\$$cacheid 14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14963printf "%s\n" "$supported" >&6; } 14964 if test "$supported" = "yes" ; then 14965 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14966 found="yes" 14967 fi 14968 fi 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984xorg_testset_save_CFLAGS="$CFLAGS" 14985 14986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14990if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14991then : 14992 printf %s "(cached) " >&6 14993else $as_nop 14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14995/* end confdefs.h. */ 14996int i; 14997_ACEOF 14998if ac_fn_c_try_compile "$LINENO" 14999then : 15000 xorg_cv_cc_flag_unknown_warning_option=yes 15001else $as_nop 15002 xorg_cv_cc_flag_unknown_warning_option=no 15003fi 15004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15005fi 15006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15007printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15009 CFLAGS="$xorg_testset_save_CFLAGS" 15010fi 15011 15012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15015 fi 15016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15018printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15019if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15020then : 15021 printf %s "(cached) " >&6 15022else $as_nop 15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15024/* end confdefs.h. */ 15025int i; 15026_ACEOF 15027if ac_fn_c_try_compile "$LINENO" 15028then : 15029 xorg_cv_cc_flag_unused_command_line_argument=yes 15030else $as_nop 15031 xorg_cv_cc_flag_unused_command_line_argument=no 15032fi 15033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15034fi 15035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15036printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15038 CFLAGS="$xorg_testset_save_CFLAGS" 15039fi 15040 15041found="no" 15042 15043 if test $found = "no" ; then 15044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15046 fi 15047 15048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15050 fi 15051 15052 CFLAGS="$CFLAGS -Wold-style-definition" 15053 15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15055printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15056 cacheid=xorg_cv_cc_flag__Wold_style_definition 15057 if eval test \${$cacheid+y} 15058then : 15059 printf %s "(cached) " >&6 15060else $as_nop 15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15062/* end confdefs.h. */ 15063int i; 15064int 15065main (void) 15066{ 15067 15068 ; 15069 return 0; 15070} 15071_ACEOF 15072if ac_fn_c_try_link "$LINENO" 15073then : 15074 eval $cacheid=yes 15075else $as_nop 15076 eval $cacheid=no 15077fi 15078rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15079 conftest$ac_exeext conftest.$ac_ext 15080fi 15081 15082 15083 CFLAGS="$xorg_testset_save_CFLAGS" 15084 15085 eval supported=\$$cacheid 15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15087printf "%s\n" "$supported" >&6; } 15088 if test "$supported" = "yes" ; then 15089 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15090 found="yes" 15091 fi 15092 fi 15093 15094 if test $found = "no" ; then 15095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15097 fi 15098 15099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15101 fi 15102 15103 CFLAGS="$CFLAGS -fd" 15104 15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15106printf %s "checking if $CC supports -fd... " >&6; } 15107 cacheid=xorg_cv_cc_flag__fd 15108 if eval test \${$cacheid+y} 15109then : 15110 printf %s "(cached) " >&6 15111else $as_nop 15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15113/* end confdefs.h. */ 15114int i; 15115int 15116main (void) 15117{ 15118 15119 ; 15120 return 0; 15121} 15122_ACEOF 15123if ac_fn_c_try_link "$LINENO" 15124then : 15125 eval $cacheid=yes 15126else $as_nop 15127 eval $cacheid=no 15128fi 15129rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15130 conftest$ac_exeext conftest.$ac_ext 15131fi 15132 15133 15134 CFLAGS="$xorg_testset_save_CFLAGS" 15135 15136 eval supported=\$$cacheid 15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15138printf "%s\n" "$supported" >&6; } 15139 if test "$supported" = "yes" ; then 15140 BASE_CFLAGS="$BASE_CFLAGS -fd" 15141 found="yes" 15142 fi 15143 fi 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159xorg_testset_save_CFLAGS="$CFLAGS" 15160 15161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15164printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15165if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15166then : 15167 printf %s "(cached) " >&6 15168else $as_nop 15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15170/* end confdefs.h. */ 15171int i; 15172_ACEOF 15173if ac_fn_c_try_compile "$LINENO" 15174then : 15175 xorg_cv_cc_flag_unknown_warning_option=yes 15176else $as_nop 15177 xorg_cv_cc_flag_unknown_warning_option=no 15178fi 15179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15180fi 15181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15182printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15184 CFLAGS="$xorg_testset_save_CFLAGS" 15185fi 15186 15187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15190 fi 15191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15193printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15194if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15195then : 15196 printf %s "(cached) " >&6 15197else $as_nop 15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15199/* end confdefs.h. */ 15200int i; 15201_ACEOF 15202if ac_fn_c_try_compile "$LINENO" 15203then : 15204 xorg_cv_cc_flag_unused_command_line_argument=yes 15205else $as_nop 15206 xorg_cv_cc_flag_unused_command_line_argument=no 15207fi 15208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15209fi 15210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15211printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15213 CFLAGS="$xorg_testset_save_CFLAGS" 15214fi 15215 15216found="no" 15217 15218 if test $found = "no" ; then 15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15221 fi 15222 15223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15225 fi 15226 15227 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 15228 15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 15230printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 15231 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 15232 if eval test \${$cacheid+y} 15233then : 15234 printf %s "(cached) " >&6 15235else $as_nop 15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15237/* end confdefs.h. */ 15238int i; 15239int 15240main (void) 15241{ 15242 15243 ; 15244 return 0; 15245} 15246_ACEOF 15247if ac_fn_c_try_link "$LINENO" 15248then : 15249 eval $cacheid=yes 15250else $as_nop 15251 eval $cacheid=no 15252fi 15253rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15254 conftest$ac_exeext conftest.$ac_ext 15255fi 15256 15257 15258 CFLAGS="$xorg_testset_save_CFLAGS" 15259 15260 eval supported=\$$cacheid 15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15262printf "%s\n" "$supported" >&6; } 15263 if test "$supported" = "yes" ; then 15264 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 15265 found="yes" 15266 fi 15267 fi 15268 15269 15270 15271 15272 15273# This chunk adds additional warnings that could catch undesired effects. 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287xorg_testset_save_CFLAGS="$CFLAGS" 15288 15289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15293if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15294then : 15295 printf %s "(cached) " >&6 15296else $as_nop 15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15298/* end confdefs.h. */ 15299int i; 15300_ACEOF 15301if ac_fn_c_try_compile "$LINENO" 15302then : 15303 xorg_cv_cc_flag_unknown_warning_option=yes 15304else $as_nop 15305 xorg_cv_cc_flag_unknown_warning_option=no 15306fi 15307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15308fi 15309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15310printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15312 CFLAGS="$xorg_testset_save_CFLAGS" 15313fi 15314 15315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15318 fi 15319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15321printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15322if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15323then : 15324 printf %s "(cached) " >&6 15325else $as_nop 15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15327/* end confdefs.h. */ 15328int i; 15329_ACEOF 15330if ac_fn_c_try_compile "$LINENO" 15331then : 15332 xorg_cv_cc_flag_unused_command_line_argument=yes 15333else $as_nop 15334 xorg_cv_cc_flag_unused_command_line_argument=no 15335fi 15336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15337fi 15338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15339printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15341 CFLAGS="$xorg_testset_save_CFLAGS" 15342fi 15343 15344found="no" 15345 15346 if test $found = "no" ; then 15347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15349 fi 15350 15351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15353 fi 15354 15355 CFLAGS="$CFLAGS -Wunused" 15356 15357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15358printf %s "checking if $CC supports -Wunused... " >&6; } 15359 cacheid=xorg_cv_cc_flag__Wunused 15360 if eval test \${$cacheid+y} 15361then : 15362 printf %s "(cached) " >&6 15363else $as_nop 15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15365/* end confdefs.h. */ 15366int i; 15367int 15368main (void) 15369{ 15370 15371 ; 15372 return 0; 15373} 15374_ACEOF 15375if ac_fn_c_try_link "$LINENO" 15376then : 15377 eval $cacheid=yes 15378else $as_nop 15379 eval $cacheid=no 15380fi 15381rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15382 conftest$ac_exeext conftest.$ac_ext 15383fi 15384 15385 15386 CFLAGS="$xorg_testset_save_CFLAGS" 15387 15388 eval supported=\$$cacheid 15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15390printf "%s\n" "$supported" >&6; } 15391 if test "$supported" = "yes" ; then 15392 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15393 found="yes" 15394 fi 15395 fi 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411xorg_testset_save_CFLAGS="$CFLAGS" 15412 15413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15416printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15417if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15418then : 15419 printf %s "(cached) " >&6 15420else $as_nop 15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15422/* end confdefs.h. */ 15423int i; 15424_ACEOF 15425if ac_fn_c_try_compile "$LINENO" 15426then : 15427 xorg_cv_cc_flag_unknown_warning_option=yes 15428else $as_nop 15429 xorg_cv_cc_flag_unknown_warning_option=no 15430fi 15431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15432fi 15433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15434printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15436 CFLAGS="$xorg_testset_save_CFLAGS" 15437fi 15438 15439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15442 fi 15443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15445printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15446if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15447then : 15448 printf %s "(cached) " >&6 15449else $as_nop 15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15451/* end confdefs.h. */ 15452int i; 15453_ACEOF 15454if ac_fn_c_try_compile "$LINENO" 15455then : 15456 xorg_cv_cc_flag_unused_command_line_argument=yes 15457else $as_nop 15458 xorg_cv_cc_flag_unused_command_line_argument=no 15459fi 15460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15461fi 15462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15463printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15465 CFLAGS="$xorg_testset_save_CFLAGS" 15466fi 15467 15468found="no" 15469 15470 if test $found = "no" ; then 15471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15473 fi 15474 15475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15477 fi 15478 15479 CFLAGS="$CFLAGS -Wuninitialized" 15480 15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15482printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15483 cacheid=xorg_cv_cc_flag__Wuninitialized 15484 if eval test \${$cacheid+y} 15485then : 15486 printf %s "(cached) " >&6 15487else $as_nop 15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15489/* end confdefs.h. */ 15490int i; 15491int 15492main (void) 15493{ 15494 15495 ; 15496 return 0; 15497} 15498_ACEOF 15499if ac_fn_c_try_link "$LINENO" 15500then : 15501 eval $cacheid=yes 15502else $as_nop 15503 eval $cacheid=no 15504fi 15505rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15506 conftest$ac_exeext conftest.$ac_ext 15507fi 15508 15509 15510 CFLAGS="$xorg_testset_save_CFLAGS" 15511 15512 eval supported=\$$cacheid 15513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15514printf "%s\n" "$supported" >&6; } 15515 if test "$supported" = "yes" ; then 15516 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15517 found="yes" 15518 fi 15519 fi 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535xorg_testset_save_CFLAGS="$CFLAGS" 15536 15537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15540printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15541if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15542then : 15543 printf %s "(cached) " >&6 15544else $as_nop 15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15546/* end confdefs.h. */ 15547int i; 15548_ACEOF 15549if ac_fn_c_try_compile "$LINENO" 15550then : 15551 xorg_cv_cc_flag_unknown_warning_option=yes 15552else $as_nop 15553 xorg_cv_cc_flag_unknown_warning_option=no 15554fi 15555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15556fi 15557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15558printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15560 CFLAGS="$xorg_testset_save_CFLAGS" 15561fi 15562 15563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15566 fi 15567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15569printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15570if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15571then : 15572 printf %s "(cached) " >&6 15573else $as_nop 15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15575/* end confdefs.h. */ 15576int i; 15577_ACEOF 15578if ac_fn_c_try_compile "$LINENO" 15579then : 15580 xorg_cv_cc_flag_unused_command_line_argument=yes 15581else $as_nop 15582 xorg_cv_cc_flag_unused_command_line_argument=no 15583fi 15584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15585fi 15586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15587printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15589 CFLAGS="$xorg_testset_save_CFLAGS" 15590fi 15591 15592found="no" 15593 15594 if test $found = "no" ; then 15595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15597 fi 15598 15599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15601 fi 15602 15603 CFLAGS="$CFLAGS -Wshadow" 15604 15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15606printf %s "checking if $CC supports -Wshadow... " >&6; } 15607 cacheid=xorg_cv_cc_flag__Wshadow 15608 if eval test \${$cacheid+y} 15609then : 15610 printf %s "(cached) " >&6 15611else $as_nop 15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15613/* end confdefs.h. */ 15614int i; 15615int 15616main (void) 15617{ 15618 15619 ; 15620 return 0; 15621} 15622_ACEOF 15623if ac_fn_c_try_link "$LINENO" 15624then : 15625 eval $cacheid=yes 15626else $as_nop 15627 eval $cacheid=no 15628fi 15629rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15630 conftest$ac_exeext conftest.$ac_ext 15631fi 15632 15633 15634 CFLAGS="$xorg_testset_save_CFLAGS" 15635 15636 eval supported=\$$cacheid 15637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15638printf "%s\n" "$supported" >&6; } 15639 if test "$supported" = "yes" ; then 15640 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15641 found="yes" 15642 fi 15643 fi 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659xorg_testset_save_CFLAGS="$CFLAGS" 15660 15661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15664printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15665if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15666then : 15667 printf %s "(cached) " >&6 15668else $as_nop 15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15670/* end confdefs.h. */ 15671int i; 15672_ACEOF 15673if ac_fn_c_try_compile "$LINENO" 15674then : 15675 xorg_cv_cc_flag_unknown_warning_option=yes 15676else $as_nop 15677 xorg_cv_cc_flag_unknown_warning_option=no 15678fi 15679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15680fi 15681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15682printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15684 CFLAGS="$xorg_testset_save_CFLAGS" 15685fi 15686 15687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15690 fi 15691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15693printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15694if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15695then : 15696 printf %s "(cached) " >&6 15697else $as_nop 15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15699/* end confdefs.h. */ 15700int i; 15701_ACEOF 15702if ac_fn_c_try_compile "$LINENO" 15703then : 15704 xorg_cv_cc_flag_unused_command_line_argument=yes 15705else $as_nop 15706 xorg_cv_cc_flag_unused_command_line_argument=no 15707fi 15708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15709fi 15710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15711printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15713 CFLAGS="$xorg_testset_save_CFLAGS" 15714fi 15715 15716found="no" 15717 15718 if test $found = "no" ; then 15719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15721 fi 15722 15723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15725 fi 15726 15727 CFLAGS="$CFLAGS -Wmissing-noreturn" 15728 15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15730printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15731 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15732 if eval test \${$cacheid+y} 15733then : 15734 printf %s "(cached) " >&6 15735else $as_nop 15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15737/* end confdefs.h. */ 15738int i; 15739int 15740main (void) 15741{ 15742 15743 ; 15744 return 0; 15745} 15746_ACEOF 15747if ac_fn_c_try_link "$LINENO" 15748then : 15749 eval $cacheid=yes 15750else $as_nop 15751 eval $cacheid=no 15752fi 15753rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15754 conftest$ac_exeext conftest.$ac_ext 15755fi 15756 15757 15758 CFLAGS="$xorg_testset_save_CFLAGS" 15759 15760 eval supported=\$$cacheid 15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15762printf "%s\n" "$supported" >&6; } 15763 if test "$supported" = "yes" ; then 15764 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15765 found="yes" 15766 fi 15767 fi 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783xorg_testset_save_CFLAGS="$CFLAGS" 15784 15785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15788printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15789if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15790then : 15791 printf %s "(cached) " >&6 15792else $as_nop 15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15794/* end confdefs.h. */ 15795int i; 15796_ACEOF 15797if ac_fn_c_try_compile "$LINENO" 15798then : 15799 xorg_cv_cc_flag_unknown_warning_option=yes 15800else $as_nop 15801 xorg_cv_cc_flag_unknown_warning_option=no 15802fi 15803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15804fi 15805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15806printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15808 CFLAGS="$xorg_testset_save_CFLAGS" 15809fi 15810 15811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15814 fi 15815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15817printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15818if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15819then : 15820 printf %s "(cached) " >&6 15821else $as_nop 15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15823/* end confdefs.h. */ 15824int i; 15825_ACEOF 15826if ac_fn_c_try_compile "$LINENO" 15827then : 15828 xorg_cv_cc_flag_unused_command_line_argument=yes 15829else $as_nop 15830 xorg_cv_cc_flag_unused_command_line_argument=no 15831fi 15832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15833fi 15834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15835printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15837 CFLAGS="$xorg_testset_save_CFLAGS" 15838fi 15839 15840found="no" 15841 15842 if test $found = "no" ; then 15843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15845 fi 15846 15847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15849 fi 15850 15851 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15852 15853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15854printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15855 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15856 if eval test \${$cacheid+y} 15857then : 15858 printf %s "(cached) " >&6 15859else $as_nop 15860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15861/* end confdefs.h. */ 15862int i; 15863int 15864main (void) 15865{ 15866 15867 ; 15868 return 0; 15869} 15870_ACEOF 15871if ac_fn_c_try_link "$LINENO" 15872then : 15873 eval $cacheid=yes 15874else $as_nop 15875 eval $cacheid=no 15876fi 15877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15878 conftest$ac_exeext conftest.$ac_ext 15879fi 15880 15881 15882 CFLAGS="$xorg_testset_save_CFLAGS" 15883 15884 eval supported=\$$cacheid 15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15886printf "%s\n" "$supported" >&6; } 15887 if test "$supported" = "yes" ; then 15888 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15889 found="yes" 15890 fi 15891 fi 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907xorg_testset_save_CFLAGS="$CFLAGS" 15908 15909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15912printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15913if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15914then : 15915 printf %s "(cached) " >&6 15916else $as_nop 15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15918/* end confdefs.h. */ 15919int i; 15920_ACEOF 15921if ac_fn_c_try_compile "$LINENO" 15922then : 15923 xorg_cv_cc_flag_unknown_warning_option=yes 15924else $as_nop 15925 xorg_cv_cc_flag_unknown_warning_option=no 15926fi 15927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15928fi 15929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15930printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15932 CFLAGS="$xorg_testset_save_CFLAGS" 15933fi 15934 15935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15938 fi 15939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15941printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15942if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15943then : 15944 printf %s "(cached) " >&6 15945else $as_nop 15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15947/* end confdefs.h. */ 15948int i; 15949_ACEOF 15950if ac_fn_c_try_compile "$LINENO" 15951then : 15952 xorg_cv_cc_flag_unused_command_line_argument=yes 15953else $as_nop 15954 xorg_cv_cc_flag_unused_command_line_argument=no 15955fi 15956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15957fi 15958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15959printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15961 CFLAGS="$xorg_testset_save_CFLAGS" 15962fi 15963 15964found="no" 15965 15966 if test $found = "no" ; then 15967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15969 fi 15970 15971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15973 fi 15974 15975 CFLAGS="$CFLAGS -Wredundant-decls" 15976 15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15978printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15979 cacheid=xorg_cv_cc_flag__Wredundant_decls 15980 if eval test \${$cacheid+y} 15981then : 15982 printf %s "(cached) " >&6 15983else $as_nop 15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15985/* end confdefs.h. */ 15986int i; 15987int 15988main (void) 15989{ 15990 15991 ; 15992 return 0; 15993} 15994_ACEOF 15995if ac_fn_c_try_link "$LINENO" 15996then : 15997 eval $cacheid=yes 15998else $as_nop 15999 eval $cacheid=no 16000fi 16001rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16002 conftest$ac_exeext conftest.$ac_ext 16003fi 16004 16005 16006 CFLAGS="$xorg_testset_save_CFLAGS" 16007 16008 eval supported=\$$cacheid 16009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16010printf "%s\n" "$supported" >&6; } 16011 if test "$supported" = "yes" ; then 16012 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16013 found="yes" 16014 fi 16015 fi 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031xorg_testset_save_CFLAGS="$CFLAGS" 16032 16033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16037if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16038then : 16039 printf %s "(cached) " >&6 16040else $as_nop 16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042/* end confdefs.h. */ 16043int i; 16044_ACEOF 16045if ac_fn_c_try_compile "$LINENO" 16046then : 16047 xorg_cv_cc_flag_unknown_warning_option=yes 16048else $as_nop 16049 xorg_cv_cc_flag_unknown_warning_option=no 16050fi 16051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16052fi 16053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16054printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16056 CFLAGS="$xorg_testset_save_CFLAGS" 16057fi 16058 16059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16062 fi 16063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16065printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16066if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16067then : 16068 printf %s "(cached) " >&6 16069else $as_nop 16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16071/* end confdefs.h. */ 16072int i; 16073_ACEOF 16074if ac_fn_c_try_compile "$LINENO" 16075then : 16076 xorg_cv_cc_flag_unused_command_line_argument=yes 16077else $as_nop 16078 xorg_cv_cc_flag_unused_command_line_argument=no 16079fi 16080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16081fi 16082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16083printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16085 CFLAGS="$xorg_testset_save_CFLAGS" 16086fi 16087 16088found="no" 16089 16090 if test $found = "no" ; then 16091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16093 fi 16094 16095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16097 fi 16098 16099 CFLAGS="$CFLAGS -Wlogical-op" 16100 16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16102printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16103 cacheid=xorg_cv_cc_flag__Wlogical_op 16104 if eval test \${$cacheid+y} 16105then : 16106 printf %s "(cached) " >&6 16107else $as_nop 16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16109/* end confdefs.h. */ 16110int i; 16111int 16112main (void) 16113{ 16114 16115 ; 16116 return 0; 16117} 16118_ACEOF 16119if ac_fn_c_try_link "$LINENO" 16120then : 16121 eval $cacheid=yes 16122else $as_nop 16123 eval $cacheid=no 16124fi 16125rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16126 conftest$ac_exeext conftest.$ac_ext 16127fi 16128 16129 16130 CFLAGS="$xorg_testset_save_CFLAGS" 16131 16132 eval supported=\$$cacheid 16133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16134printf "%s\n" "$supported" >&6; } 16135 if test "$supported" = "yes" ; then 16136 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16137 found="yes" 16138 fi 16139 fi 16140 16141 16142 16143# These are currently disabled because they are noisy. They will be enabled 16144# in the future once the codebase is sufficiently modernized to silence 16145# them. For now, I don't want them to drown out the other warnings. 16146# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16147# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16148# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16149 16150# Turn some warnings into errors, so we don't accidently get successful builds 16151# when there are problems that should be fixed. 16152 16153if test "x$SELECTIVE_WERROR" = "xyes" ; then 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167xorg_testset_save_CFLAGS="$CFLAGS" 16168 16169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16172printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16173if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16174then : 16175 printf %s "(cached) " >&6 16176else $as_nop 16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16178/* end confdefs.h. */ 16179int i; 16180_ACEOF 16181if ac_fn_c_try_compile "$LINENO" 16182then : 16183 xorg_cv_cc_flag_unknown_warning_option=yes 16184else $as_nop 16185 xorg_cv_cc_flag_unknown_warning_option=no 16186fi 16187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16188fi 16189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16190printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16192 CFLAGS="$xorg_testset_save_CFLAGS" 16193fi 16194 16195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16198 fi 16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16201printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16202if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16203then : 16204 printf %s "(cached) " >&6 16205else $as_nop 16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16207/* end confdefs.h. */ 16208int i; 16209_ACEOF 16210if ac_fn_c_try_compile "$LINENO" 16211then : 16212 xorg_cv_cc_flag_unused_command_line_argument=yes 16213else $as_nop 16214 xorg_cv_cc_flag_unused_command_line_argument=no 16215fi 16216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16217fi 16218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16219printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16221 CFLAGS="$xorg_testset_save_CFLAGS" 16222fi 16223 16224found="no" 16225 16226 if test $found = "no" ; then 16227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16229 fi 16230 16231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16233 fi 16234 16235 CFLAGS="$CFLAGS -Werror=implicit" 16236 16237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16238printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16239 cacheid=xorg_cv_cc_flag__Werror_implicit 16240 if eval test \${$cacheid+y} 16241then : 16242 printf %s "(cached) " >&6 16243else $as_nop 16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16245/* end confdefs.h. */ 16246int i; 16247int 16248main (void) 16249{ 16250 16251 ; 16252 return 0; 16253} 16254_ACEOF 16255if ac_fn_c_try_link "$LINENO" 16256then : 16257 eval $cacheid=yes 16258else $as_nop 16259 eval $cacheid=no 16260fi 16261rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16262 conftest$ac_exeext conftest.$ac_ext 16263fi 16264 16265 16266 CFLAGS="$xorg_testset_save_CFLAGS" 16267 16268 eval supported=\$$cacheid 16269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16270printf "%s\n" "$supported" >&6; } 16271 if test "$supported" = "yes" ; then 16272 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16273 found="yes" 16274 fi 16275 fi 16276 16277 if test $found = "no" ; then 16278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16280 fi 16281 16282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16284 fi 16285 16286 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16287 16288 { 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 16289printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16290 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16291 if eval test \${$cacheid+y} 16292then : 16293 printf %s "(cached) " >&6 16294else $as_nop 16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16296/* end confdefs.h. */ 16297int i; 16298int 16299main (void) 16300{ 16301 16302 ; 16303 return 0; 16304} 16305_ACEOF 16306if ac_fn_c_try_link "$LINENO" 16307then : 16308 eval $cacheid=yes 16309else $as_nop 16310 eval $cacheid=no 16311fi 16312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16313 conftest$ac_exeext conftest.$ac_ext 16314fi 16315 16316 16317 CFLAGS="$xorg_testset_save_CFLAGS" 16318 16319 eval supported=\$$cacheid 16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16321printf "%s\n" "$supported" >&6; } 16322 if test "$supported" = "yes" ; then 16323 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16324 found="yes" 16325 fi 16326 fi 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342xorg_testset_save_CFLAGS="$CFLAGS" 16343 16344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16348if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16349then : 16350 printf %s "(cached) " >&6 16351else $as_nop 16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16353/* end confdefs.h. */ 16354int i; 16355_ACEOF 16356if ac_fn_c_try_compile "$LINENO" 16357then : 16358 xorg_cv_cc_flag_unknown_warning_option=yes 16359else $as_nop 16360 xorg_cv_cc_flag_unknown_warning_option=no 16361fi 16362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16363fi 16364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16367 CFLAGS="$xorg_testset_save_CFLAGS" 16368fi 16369 16370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16373 fi 16374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16377if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16378then : 16379 printf %s "(cached) " >&6 16380else $as_nop 16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16382/* end confdefs.h. */ 16383int i; 16384_ACEOF 16385if ac_fn_c_try_compile "$LINENO" 16386then : 16387 xorg_cv_cc_flag_unused_command_line_argument=yes 16388else $as_nop 16389 xorg_cv_cc_flag_unused_command_line_argument=no 16390fi 16391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16392fi 16393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16396 CFLAGS="$xorg_testset_save_CFLAGS" 16397fi 16398 16399found="no" 16400 16401 if test $found = "no" ; then 16402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16404 fi 16405 16406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16408 fi 16409 16410 CFLAGS="$CFLAGS -Werror=nonnull" 16411 16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16413printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16414 cacheid=xorg_cv_cc_flag__Werror_nonnull 16415 if eval test \${$cacheid+y} 16416then : 16417 printf %s "(cached) " >&6 16418else $as_nop 16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16420/* end confdefs.h. */ 16421int i; 16422int 16423main (void) 16424{ 16425 16426 ; 16427 return 0; 16428} 16429_ACEOF 16430if ac_fn_c_try_link "$LINENO" 16431then : 16432 eval $cacheid=yes 16433else $as_nop 16434 eval $cacheid=no 16435fi 16436rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16437 conftest$ac_exeext conftest.$ac_ext 16438fi 16439 16440 16441 CFLAGS="$xorg_testset_save_CFLAGS" 16442 16443 eval supported=\$$cacheid 16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16445printf "%s\n" "$supported" >&6; } 16446 if test "$supported" = "yes" ; then 16447 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16448 found="yes" 16449 fi 16450 fi 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466xorg_testset_save_CFLAGS="$CFLAGS" 16467 16468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16472if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16473then : 16474 printf %s "(cached) " >&6 16475else $as_nop 16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16477/* end confdefs.h. */ 16478int i; 16479_ACEOF 16480if ac_fn_c_try_compile "$LINENO" 16481then : 16482 xorg_cv_cc_flag_unknown_warning_option=yes 16483else $as_nop 16484 xorg_cv_cc_flag_unknown_warning_option=no 16485fi 16486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16487fi 16488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16491 CFLAGS="$xorg_testset_save_CFLAGS" 16492fi 16493 16494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16497 fi 16498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16501if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16502then : 16503 printf %s "(cached) " >&6 16504else $as_nop 16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16506/* end confdefs.h. */ 16507int i; 16508_ACEOF 16509if ac_fn_c_try_compile "$LINENO" 16510then : 16511 xorg_cv_cc_flag_unused_command_line_argument=yes 16512else $as_nop 16513 xorg_cv_cc_flag_unused_command_line_argument=no 16514fi 16515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16516fi 16517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16520 CFLAGS="$xorg_testset_save_CFLAGS" 16521fi 16522 16523found="no" 16524 16525 if test $found = "no" ; then 16526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16528 fi 16529 16530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16532 fi 16533 16534 CFLAGS="$CFLAGS -Werror=init-self" 16535 16536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16537printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16538 cacheid=xorg_cv_cc_flag__Werror_init_self 16539 if eval test \${$cacheid+y} 16540then : 16541 printf %s "(cached) " >&6 16542else $as_nop 16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16544/* end confdefs.h. */ 16545int i; 16546int 16547main (void) 16548{ 16549 16550 ; 16551 return 0; 16552} 16553_ACEOF 16554if ac_fn_c_try_link "$LINENO" 16555then : 16556 eval $cacheid=yes 16557else $as_nop 16558 eval $cacheid=no 16559fi 16560rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16561 conftest$ac_exeext conftest.$ac_ext 16562fi 16563 16564 16565 CFLAGS="$xorg_testset_save_CFLAGS" 16566 16567 eval supported=\$$cacheid 16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16569printf "%s\n" "$supported" >&6; } 16570 if test "$supported" = "yes" ; then 16571 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16572 found="yes" 16573 fi 16574 fi 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590xorg_testset_save_CFLAGS="$CFLAGS" 16591 16592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16596if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16597then : 16598 printf %s "(cached) " >&6 16599else $as_nop 16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16601/* end confdefs.h. */ 16602int i; 16603_ACEOF 16604if ac_fn_c_try_compile "$LINENO" 16605then : 16606 xorg_cv_cc_flag_unknown_warning_option=yes 16607else $as_nop 16608 xorg_cv_cc_flag_unknown_warning_option=no 16609fi 16610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16611fi 16612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16615 CFLAGS="$xorg_testset_save_CFLAGS" 16616fi 16617 16618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16621 fi 16622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16625if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16626then : 16627 printf %s "(cached) " >&6 16628else $as_nop 16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16630/* end confdefs.h. */ 16631int i; 16632_ACEOF 16633if ac_fn_c_try_compile "$LINENO" 16634then : 16635 xorg_cv_cc_flag_unused_command_line_argument=yes 16636else $as_nop 16637 xorg_cv_cc_flag_unused_command_line_argument=no 16638fi 16639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16640fi 16641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16644 CFLAGS="$xorg_testset_save_CFLAGS" 16645fi 16646 16647found="no" 16648 16649 if test $found = "no" ; then 16650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16652 fi 16653 16654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16656 fi 16657 16658 CFLAGS="$CFLAGS -Werror=main" 16659 16660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16661printf %s "checking if $CC supports -Werror=main... " >&6; } 16662 cacheid=xorg_cv_cc_flag__Werror_main 16663 if eval test \${$cacheid+y} 16664then : 16665 printf %s "(cached) " >&6 16666else $as_nop 16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16668/* end confdefs.h. */ 16669int i; 16670int 16671main (void) 16672{ 16673 16674 ; 16675 return 0; 16676} 16677_ACEOF 16678if ac_fn_c_try_link "$LINENO" 16679then : 16680 eval $cacheid=yes 16681else $as_nop 16682 eval $cacheid=no 16683fi 16684rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16685 conftest$ac_exeext conftest.$ac_ext 16686fi 16687 16688 16689 CFLAGS="$xorg_testset_save_CFLAGS" 16690 16691 eval supported=\$$cacheid 16692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16693printf "%s\n" "$supported" >&6; } 16694 if test "$supported" = "yes" ; then 16695 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16696 found="yes" 16697 fi 16698 fi 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714xorg_testset_save_CFLAGS="$CFLAGS" 16715 16716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16720if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16721then : 16722 printf %s "(cached) " >&6 16723else $as_nop 16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16725/* end confdefs.h. */ 16726int i; 16727_ACEOF 16728if ac_fn_c_try_compile "$LINENO" 16729then : 16730 xorg_cv_cc_flag_unknown_warning_option=yes 16731else $as_nop 16732 xorg_cv_cc_flag_unknown_warning_option=no 16733fi 16734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16735fi 16736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16739 CFLAGS="$xorg_testset_save_CFLAGS" 16740fi 16741 16742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16745 fi 16746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16749if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16750then : 16751 printf %s "(cached) " >&6 16752else $as_nop 16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16754/* end confdefs.h. */ 16755int i; 16756_ACEOF 16757if ac_fn_c_try_compile "$LINENO" 16758then : 16759 xorg_cv_cc_flag_unused_command_line_argument=yes 16760else $as_nop 16761 xorg_cv_cc_flag_unused_command_line_argument=no 16762fi 16763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16764fi 16765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16768 CFLAGS="$xorg_testset_save_CFLAGS" 16769fi 16770 16771found="no" 16772 16773 if test $found = "no" ; then 16774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16776 fi 16777 16778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16780 fi 16781 16782 CFLAGS="$CFLAGS -Werror=missing-braces" 16783 16784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16785printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16786 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16787 if eval test \${$cacheid+y} 16788then : 16789 printf %s "(cached) " >&6 16790else $as_nop 16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16792/* end confdefs.h. */ 16793int i; 16794int 16795main (void) 16796{ 16797 16798 ; 16799 return 0; 16800} 16801_ACEOF 16802if ac_fn_c_try_link "$LINENO" 16803then : 16804 eval $cacheid=yes 16805else $as_nop 16806 eval $cacheid=no 16807fi 16808rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16809 conftest$ac_exeext conftest.$ac_ext 16810fi 16811 16812 16813 CFLAGS="$xorg_testset_save_CFLAGS" 16814 16815 eval supported=\$$cacheid 16816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16817printf "%s\n" "$supported" >&6; } 16818 if test "$supported" = "yes" ; then 16819 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16820 found="yes" 16821 fi 16822 fi 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838xorg_testset_save_CFLAGS="$CFLAGS" 16839 16840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16844if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16845then : 16846 printf %s "(cached) " >&6 16847else $as_nop 16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16849/* end confdefs.h. */ 16850int i; 16851_ACEOF 16852if ac_fn_c_try_compile "$LINENO" 16853then : 16854 xorg_cv_cc_flag_unknown_warning_option=yes 16855else $as_nop 16856 xorg_cv_cc_flag_unknown_warning_option=no 16857fi 16858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16859fi 16860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16863 CFLAGS="$xorg_testset_save_CFLAGS" 16864fi 16865 16866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16869 fi 16870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16873if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16874then : 16875 printf %s "(cached) " >&6 16876else $as_nop 16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16878/* end confdefs.h. */ 16879int i; 16880_ACEOF 16881if ac_fn_c_try_compile "$LINENO" 16882then : 16883 xorg_cv_cc_flag_unused_command_line_argument=yes 16884else $as_nop 16885 xorg_cv_cc_flag_unused_command_line_argument=no 16886fi 16887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16888fi 16889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16892 CFLAGS="$xorg_testset_save_CFLAGS" 16893fi 16894 16895found="no" 16896 16897 if test $found = "no" ; then 16898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16900 fi 16901 16902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16904 fi 16905 16906 CFLAGS="$CFLAGS -Werror=sequence-point" 16907 16908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16909printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16910 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16911 if eval test \${$cacheid+y} 16912then : 16913 printf %s "(cached) " >&6 16914else $as_nop 16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16916/* end confdefs.h. */ 16917int i; 16918int 16919main (void) 16920{ 16921 16922 ; 16923 return 0; 16924} 16925_ACEOF 16926if ac_fn_c_try_link "$LINENO" 16927then : 16928 eval $cacheid=yes 16929else $as_nop 16930 eval $cacheid=no 16931fi 16932rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16933 conftest$ac_exeext conftest.$ac_ext 16934fi 16935 16936 16937 CFLAGS="$xorg_testset_save_CFLAGS" 16938 16939 eval supported=\$$cacheid 16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16941printf "%s\n" "$supported" >&6; } 16942 if test "$supported" = "yes" ; then 16943 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16944 found="yes" 16945 fi 16946 fi 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962xorg_testset_save_CFLAGS="$CFLAGS" 16963 16964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16968if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16969then : 16970 printf %s "(cached) " >&6 16971else $as_nop 16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16973/* end confdefs.h. */ 16974int i; 16975_ACEOF 16976if ac_fn_c_try_compile "$LINENO" 16977then : 16978 xorg_cv_cc_flag_unknown_warning_option=yes 16979else $as_nop 16980 xorg_cv_cc_flag_unknown_warning_option=no 16981fi 16982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16983fi 16984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16987 CFLAGS="$xorg_testset_save_CFLAGS" 16988fi 16989 16990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16993 fi 16994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16997if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16998then : 16999 printf %s "(cached) " >&6 17000else $as_nop 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003int i; 17004_ACEOF 17005if ac_fn_c_try_compile "$LINENO" 17006then : 17007 xorg_cv_cc_flag_unused_command_line_argument=yes 17008else $as_nop 17009 xorg_cv_cc_flag_unused_command_line_argument=no 17010fi 17011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17012fi 17013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17016 CFLAGS="$xorg_testset_save_CFLAGS" 17017fi 17018 17019found="no" 17020 17021 if test $found = "no" ; then 17022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17024 fi 17025 17026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17028 fi 17029 17030 CFLAGS="$CFLAGS -Werror=return-type" 17031 17032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17033printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17034 cacheid=xorg_cv_cc_flag__Werror_return_type 17035 if eval test \${$cacheid+y} 17036then : 17037 printf %s "(cached) " >&6 17038else $as_nop 17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17040/* end confdefs.h. */ 17041int i; 17042int 17043main (void) 17044{ 17045 17046 ; 17047 return 0; 17048} 17049_ACEOF 17050if ac_fn_c_try_link "$LINENO" 17051then : 17052 eval $cacheid=yes 17053else $as_nop 17054 eval $cacheid=no 17055fi 17056rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17057 conftest$ac_exeext conftest.$ac_ext 17058fi 17059 17060 17061 CFLAGS="$xorg_testset_save_CFLAGS" 17062 17063 eval supported=\$$cacheid 17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17065printf "%s\n" "$supported" >&6; } 17066 if test "$supported" = "yes" ; then 17067 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17068 found="yes" 17069 fi 17070 fi 17071 17072 if test $found = "no" ; then 17073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17075 fi 17076 17077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17079 fi 17080 17081 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17082 17083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17084printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17085 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17086 if eval test \${$cacheid+y} 17087then : 17088 printf %s "(cached) " >&6 17089else $as_nop 17090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17091/* end confdefs.h. */ 17092int i; 17093int 17094main (void) 17095{ 17096 17097 ; 17098 return 0; 17099} 17100_ACEOF 17101if ac_fn_c_try_link "$LINENO" 17102then : 17103 eval $cacheid=yes 17104else $as_nop 17105 eval $cacheid=no 17106fi 17107rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17108 conftest$ac_exeext conftest.$ac_ext 17109fi 17110 17111 17112 CFLAGS="$xorg_testset_save_CFLAGS" 17113 17114 eval supported=\$$cacheid 17115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17116printf "%s\n" "$supported" >&6; } 17117 if test "$supported" = "yes" ; then 17118 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17119 found="yes" 17120 fi 17121 fi 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137xorg_testset_save_CFLAGS="$CFLAGS" 17138 17139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17142printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17143if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17144then : 17145 printf %s "(cached) " >&6 17146else $as_nop 17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17148/* end confdefs.h. */ 17149int i; 17150_ACEOF 17151if ac_fn_c_try_compile "$LINENO" 17152then : 17153 xorg_cv_cc_flag_unknown_warning_option=yes 17154else $as_nop 17155 xorg_cv_cc_flag_unknown_warning_option=no 17156fi 17157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17158fi 17159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17160printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17162 CFLAGS="$xorg_testset_save_CFLAGS" 17163fi 17164 17165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17168 fi 17169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17171printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17172if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17173then : 17174 printf %s "(cached) " >&6 17175else $as_nop 17176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17177/* end confdefs.h. */ 17178int i; 17179_ACEOF 17180if ac_fn_c_try_compile "$LINENO" 17181then : 17182 xorg_cv_cc_flag_unused_command_line_argument=yes 17183else $as_nop 17184 xorg_cv_cc_flag_unused_command_line_argument=no 17185fi 17186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17187fi 17188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17189printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17191 CFLAGS="$xorg_testset_save_CFLAGS" 17192fi 17193 17194found="no" 17195 17196 if test $found = "no" ; then 17197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17199 fi 17200 17201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17203 fi 17204 17205 CFLAGS="$CFLAGS -Werror=trigraphs" 17206 17207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17208printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17209 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17210 if eval test \${$cacheid+y} 17211then : 17212 printf %s "(cached) " >&6 17213else $as_nop 17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17215/* end confdefs.h. */ 17216int i; 17217int 17218main (void) 17219{ 17220 17221 ; 17222 return 0; 17223} 17224_ACEOF 17225if ac_fn_c_try_link "$LINENO" 17226then : 17227 eval $cacheid=yes 17228else $as_nop 17229 eval $cacheid=no 17230fi 17231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17232 conftest$ac_exeext conftest.$ac_ext 17233fi 17234 17235 17236 CFLAGS="$xorg_testset_save_CFLAGS" 17237 17238 eval supported=\$$cacheid 17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17240printf "%s\n" "$supported" >&6; } 17241 if test "$supported" = "yes" ; then 17242 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17243 found="yes" 17244 fi 17245 fi 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261xorg_testset_save_CFLAGS="$CFLAGS" 17262 17263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17266printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17267if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17268then : 17269 printf %s "(cached) " >&6 17270else $as_nop 17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17272/* end confdefs.h. */ 17273int i; 17274_ACEOF 17275if ac_fn_c_try_compile "$LINENO" 17276then : 17277 xorg_cv_cc_flag_unknown_warning_option=yes 17278else $as_nop 17279 xorg_cv_cc_flag_unknown_warning_option=no 17280fi 17281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17282fi 17283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17286 CFLAGS="$xorg_testset_save_CFLAGS" 17287fi 17288 17289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17292 fi 17293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17296if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17297then : 17298 printf %s "(cached) " >&6 17299else $as_nop 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301/* end confdefs.h. */ 17302int i; 17303_ACEOF 17304if ac_fn_c_try_compile "$LINENO" 17305then : 17306 xorg_cv_cc_flag_unused_command_line_argument=yes 17307else $as_nop 17308 xorg_cv_cc_flag_unused_command_line_argument=no 17309fi 17310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17311fi 17312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17313printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17315 CFLAGS="$xorg_testset_save_CFLAGS" 17316fi 17317 17318found="no" 17319 17320 if test $found = "no" ; then 17321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17323 fi 17324 17325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17327 fi 17328 17329 CFLAGS="$CFLAGS -Werror=array-bounds" 17330 17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17332printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17333 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17334 if eval test \${$cacheid+y} 17335then : 17336 printf %s "(cached) " >&6 17337else $as_nop 17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17339/* end confdefs.h. */ 17340int i; 17341int 17342main (void) 17343{ 17344 17345 ; 17346 return 0; 17347} 17348_ACEOF 17349if ac_fn_c_try_link "$LINENO" 17350then : 17351 eval $cacheid=yes 17352else $as_nop 17353 eval $cacheid=no 17354fi 17355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17356 conftest$ac_exeext conftest.$ac_ext 17357fi 17358 17359 17360 CFLAGS="$xorg_testset_save_CFLAGS" 17361 17362 eval supported=\$$cacheid 17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17364printf "%s\n" "$supported" >&6; } 17365 if test "$supported" = "yes" ; then 17366 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17367 found="yes" 17368 fi 17369 fi 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385xorg_testset_save_CFLAGS="$CFLAGS" 17386 17387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17391if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17392then : 17393 printf %s "(cached) " >&6 17394else $as_nop 17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17396/* end confdefs.h. */ 17397int i; 17398_ACEOF 17399if ac_fn_c_try_compile "$LINENO" 17400then : 17401 xorg_cv_cc_flag_unknown_warning_option=yes 17402else $as_nop 17403 xorg_cv_cc_flag_unknown_warning_option=no 17404fi 17405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17406fi 17407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17410 CFLAGS="$xorg_testset_save_CFLAGS" 17411fi 17412 17413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17416 fi 17417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17420if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17421then : 17422 printf %s "(cached) " >&6 17423else $as_nop 17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17425/* end confdefs.h. */ 17426int i; 17427_ACEOF 17428if ac_fn_c_try_compile "$LINENO" 17429then : 17430 xorg_cv_cc_flag_unused_command_line_argument=yes 17431else $as_nop 17432 xorg_cv_cc_flag_unused_command_line_argument=no 17433fi 17434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17435fi 17436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17439 CFLAGS="$xorg_testset_save_CFLAGS" 17440fi 17441 17442found="no" 17443 17444 if test $found = "no" ; then 17445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17447 fi 17448 17449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17451 fi 17452 17453 CFLAGS="$CFLAGS -Werror=write-strings" 17454 17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17456printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17457 cacheid=xorg_cv_cc_flag__Werror_write_strings 17458 if eval test \${$cacheid+y} 17459then : 17460 printf %s "(cached) " >&6 17461else $as_nop 17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17463/* end confdefs.h. */ 17464int i; 17465int 17466main (void) 17467{ 17468 17469 ; 17470 return 0; 17471} 17472_ACEOF 17473if ac_fn_c_try_link "$LINENO" 17474then : 17475 eval $cacheid=yes 17476else $as_nop 17477 eval $cacheid=no 17478fi 17479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17480 conftest$ac_exeext conftest.$ac_ext 17481fi 17482 17483 17484 CFLAGS="$xorg_testset_save_CFLAGS" 17485 17486 eval supported=\$$cacheid 17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17488printf "%s\n" "$supported" >&6; } 17489 if test "$supported" = "yes" ; then 17490 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17491 found="yes" 17492 fi 17493 fi 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509xorg_testset_save_CFLAGS="$CFLAGS" 17510 17511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17514printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17515if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17516then : 17517 printf %s "(cached) " >&6 17518else $as_nop 17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17520/* end confdefs.h. */ 17521int i; 17522_ACEOF 17523if ac_fn_c_try_compile "$LINENO" 17524then : 17525 xorg_cv_cc_flag_unknown_warning_option=yes 17526else $as_nop 17527 xorg_cv_cc_flag_unknown_warning_option=no 17528fi 17529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17530fi 17531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17534 CFLAGS="$xorg_testset_save_CFLAGS" 17535fi 17536 17537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17540 fi 17541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17544if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17545then : 17546 printf %s "(cached) " >&6 17547else $as_nop 17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17549/* end confdefs.h. */ 17550int i; 17551_ACEOF 17552if ac_fn_c_try_compile "$LINENO" 17553then : 17554 xorg_cv_cc_flag_unused_command_line_argument=yes 17555else $as_nop 17556 xorg_cv_cc_flag_unused_command_line_argument=no 17557fi 17558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17559fi 17560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17563 CFLAGS="$xorg_testset_save_CFLAGS" 17564fi 17565 17566found="no" 17567 17568 if test $found = "no" ; then 17569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17571 fi 17572 17573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17575 fi 17576 17577 CFLAGS="$CFLAGS -Werror=address" 17578 17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17580printf %s "checking if $CC supports -Werror=address... " >&6; } 17581 cacheid=xorg_cv_cc_flag__Werror_address 17582 if eval test \${$cacheid+y} 17583then : 17584 printf %s "(cached) " >&6 17585else $as_nop 17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17587/* end confdefs.h. */ 17588int i; 17589int 17590main (void) 17591{ 17592 17593 ; 17594 return 0; 17595} 17596_ACEOF 17597if ac_fn_c_try_link "$LINENO" 17598then : 17599 eval $cacheid=yes 17600else $as_nop 17601 eval $cacheid=no 17602fi 17603rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17604 conftest$ac_exeext conftest.$ac_ext 17605fi 17606 17607 17608 CFLAGS="$xorg_testset_save_CFLAGS" 17609 17610 eval supported=\$$cacheid 17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17612printf "%s\n" "$supported" >&6; } 17613 if test "$supported" = "yes" ; then 17614 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17615 found="yes" 17616 fi 17617 fi 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633xorg_testset_save_CFLAGS="$CFLAGS" 17634 17635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17638printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17639if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17640then : 17641 printf %s "(cached) " >&6 17642else $as_nop 17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17644/* end confdefs.h. */ 17645int i; 17646_ACEOF 17647if ac_fn_c_try_compile "$LINENO" 17648then : 17649 xorg_cv_cc_flag_unknown_warning_option=yes 17650else $as_nop 17651 xorg_cv_cc_flag_unknown_warning_option=no 17652fi 17653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17654fi 17655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17656printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17658 CFLAGS="$xorg_testset_save_CFLAGS" 17659fi 17660 17661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17664 fi 17665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17667printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17668if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17669then : 17670 printf %s "(cached) " >&6 17671else $as_nop 17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17673/* end confdefs.h. */ 17674int i; 17675_ACEOF 17676if ac_fn_c_try_compile "$LINENO" 17677then : 17678 xorg_cv_cc_flag_unused_command_line_argument=yes 17679else $as_nop 17680 xorg_cv_cc_flag_unused_command_line_argument=no 17681fi 17682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17683fi 17684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17687 CFLAGS="$xorg_testset_save_CFLAGS" 17688fi 17689 17690found="no" 17691 17692 if test $found = "no" ; then 17693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17695 fi 17696 17697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17699 fi 17700 17701 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17702 17703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17704printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17705 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17706 if eval test \${$cacheid+y} 17707then : 17708 printf %s "(cached) " >&6 17709else $as_nop 17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17711/* end confdefs.h. */ 17712int i; 17713int 17714main (void) 17715{ 17716 17717 ; 17718 return 0; 17719} 17720_ACEOF 17721if ac_fn_c_try_link "$LINENO" 17722then : 17723 eval $cacheid=yes 17724else $as_nop 17725 eval $cacheid=no 17726fi 17727rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17728 conftest$ac_exeext conftest.$ac_ext 17729fi 17730 17731 17732 CFLAGS="$xorg_testset_save_CFLAGS" 17733 17734 eval supported=\$$cacheid 17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17736printf "%s\n" "$supported" >&6; } 17737 if test "$supported" = "yes" ; then 17738 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17739 found="yes" 17740 fi 17741 fi 17742 17743 if test $found = "no" ; then 17744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17746 fi 17747 17748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17750 fi 17751 17752 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17753 17754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17755printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17756 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17757 if eval test \${$cacheid+y} 17758then : 17759 printf %s "(cached) " >&6 17760else $as_nop 17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17762/* end confdefs.h. */ 17763int i; 17764int 17765main (void) 17766{ 17767 17768 ; 17769 return 0; 17770} 17771_ACEOF 17772if ac_fn_c_try_link "$LINENO" 17773then : 17774 eval $cacheid=yes 17775else $as_nop 17776 eval $cacheid=no 17777fi 17778rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17779 conftest$ac_exeext conftest.$ac_ext 17780fi 17781 17782 17783 CFLAGS="$xorg_testset_save_CFLAGS" 17784 17785 eval supported=\$$cacheid 17786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17787printf "%s\n" "$supported" >&6; } 17788 if test "$supported" = "yes" ; then 17789 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17790 found="yes" 17791 fi 17792 fi 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808xorg_testset_save_CFLAGS="$CFLAGS" 17809 17810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17813printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17814if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17815then : 17816 printf %s "(cached) " >&6 17817else $as_nop 17818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17819/* end confdefs.h. */ 17820int i; 17821_ACEOF 17822if ac_fn_c_try_compile "$LINENO" 17823then : 17824 xorg_cv_cc_flag_unknown_warning_option=yes 17825else $as_nop 17826 xorg_cv_cc_flag_unknown_warning_option=no 17827fi 17828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17829fi 17830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17831printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17833 CFLAGS="$xorg_testset_save_CFLAGS" 17834fi 17835 17836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17839 fi 17840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17842printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17843if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17844then : 17845 printf %s "(cached) " >&6 17846else $as_nop 17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17848/* end confdefs.h. */ 17849int i; 17850_ACEOF 17851if ac_fn_c_try_compile "$LINENO" 17852then : 17853 xorg_cv_cc_flag_unused_command_line_argument=yes 17854else $as_nop 17855 xorg_cv_cc_flag_unused_command_line_argument=no 17856fi 17857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17858fi 17859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17860printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17862 CFLAGS="$xorg_testset_save_CFLAGS" 17863fi 17864 17865found="no" 17866 17867 if test $found = "no" ; then 17868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17870 fi 17871 17872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17874 fi 17875 17876 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17877 17878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17879printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17880 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17881 if eval test \${$cacheid+y} 17882then : 17883 printf %s "(cached) " >&6 17884else $as_nop 17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17886/* end confdefs.h. */ 17887int i; 17888int 17889main (void) 17890{ 17891 17892 ; 17893 return 0; 17894} 17895_ACEOF 17896if ac_fn_c_try_link "$LINENO" 17897then : 17898 eval $cacheid=yes 17899else $as_nop 17900 eval $cacheid=no 17901fi 17902rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17903 conftest$ac_exeext conftest.$ac_ext 17904fi 17905 17906 17907 CFLAGS="$xorg_testset_save_CFLAGS" 17908 17909 eval supported=\$$cacheid 17910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17911printf "%s\n" "$supported" >&6; } 17912 if test "$supported" = "yes" ; then 17913 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17914 found="yes" 17915 fi 17916 fi 17917 17918 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17919else 17920{ 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 17921printf "%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;} 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935xorg_testset_save_CFLAGS="$CFLAGS" 17936 17937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17941if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17942then : 17943 printf %s "(cached) " >&6 17944else $as_nop 17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17946/* end confdefs.h. */ 17947int i; 17948_ACEOF 17949if ac_fn_c_try_compile "$LINENO" 17950then : 17951 xorg_cv_cc_flag_unknown_warning_option=yes 17952else $as_nop 17953 xorg_cv_cc_flag_unknown_warning_option=no 17954fi 17955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17956fi 17957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17958printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17960 CFLAGS="$xorg_testset_save_CFLAGS" 17961fi 17962 17963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17966 fi 17967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17969printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17970if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17971then : 17972 printf %s "(cached) " >&6 17973else $as_nop 17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17975/* end confdefs.h. */ 17976int i; 17977_ACEOF 17978if ac_fn_c_try_compile "$LINENO" 17979then : 17980 xorg_cv_cc_flag_unused_command_line_argument=yes 17981else $as_nop 17982 xorg_cv_cc_flag_unused_command_line_argument=no 17983fi 17984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17985fi 17986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17987printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17989 CFLAGS="$xorg_testset_save_CFLAGS" 17990fi 17991 17992found="no" 17993 17994 if test $found = "no" ; then 17995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17997 fi 17998 17999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18001 fi 18002 18003 CFLAGS="$CFLAGS -Wimplicit" 18004 18005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18006printf %s "checking if $CC supports -Wimplicit... " >&6; } 18007 cacheid=xorg_cv_cc_flag__Wimplicit 18008 if eval test \${$cacheid+y} 18009then : 18010 printf %s "(cached) " >&6 18011else $as_nop 18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18013/* end confdefs.h. */ 18014int i; 18015int 18016main (void) 18017{ 18018 18019 ; 18020 return 0; 18021} 18022_ACEOF 18023if ac_fn_c_try_link "$LINENO" 18024then : 18025 eval $cacheid=yes 18026else $as_nop 18027 eval $cacheid=no 18028fi 18029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18030 conftest$ac_exeext conftest.$ac_ext 18031fi 18032 18033 18034 CFLAGS="$xorg_testset_save_CFLAGS" 18035 18036 eval supported=\$$cacheid 18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18038printf "%s\n" "$supported" >&6; } 18039 if test "$supported" = "yes" ; then 18040 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18041 found="yes" 18042 fi 18043 fi 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059xorg_testset_save_CFLAGS="$CFLAGS" 18060 18061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18065if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18066then : 18067 printf %s "(cached) " >&6 18068else $as_nop 18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18070/* end confdefs.h. */ 18071int i; 18072_ACEOF 18073if ac_fn_c_try_compile "$LINENO" 18074then : 18075 xorg_cv_cc_flag_unknown_warning_option=yes 18076else $as_nop 18077 xorg_cv_cc_flag_unknown_warning_option=no 18078fi 18079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18080fi 18081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18084 CFLAGS="$xorg_testset_save_CFLAGS" 18085fi 18086 18087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18090 fi 18091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18094if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18095then : 18096 printf %s "(cached) " >&6 18097else $as_nop 18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18099/* end confdefs.h. */ 18100int i; 18101_ACEOF 18102if ac_fn_c_try_compile "$LINENO" 18103then : 18104 xorg_cv_cc_flag_unused_command_line_argument=yes 18105else $as_nop 18106 xorg_cv_cc_flag_unused_command_line_argument=no 18107fi 18108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18109fi 18110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18113 CFLAGS="$xorg_testset_save_CFLAGS" 18114fi 18115 18116found="no" 18117 18118 if test $found = "no" ; then 18119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18121 fi 18122 18123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18125 fi 18126 18127 CFLAGS="$CFLAGS -Wnonnull" 18128 18129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18130printf %s "checking if $CC supports -Wnonnull... " >&6; } 18131 cacheid=xorg_cv_cc_flag__Wnonnull 18132 if eval test \${$cacheid+y} 18133then : 18134 printf %s "(cached) " >&6 18135else $as_nop 18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18137/* end confdefs.h. */ 18138int i; 18139int 18140main (void) 18141{ 18142 18143 ; 18144 return 0; 18145} 18146_ACEOF 18147if ac_fn_c_try_link "$LINENO" 18148then : 18149 eval $cacheid=yes 18150else $as_nop 18151 eval $cacheid=no 18152fi 18153rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18154 conftest$ac_exeext conftest.$ac_ext 18155fi 18156 18157 18158 CFLAGS="$xorg_testset_save_CFLAGS" 18159 18160 eval supported=\$$cacheid 18161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18162printf "%s\n" "$supported" >&6; } 18163 if test "$supported" = "yes" ; then 18164 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18165 found="yes" 18166 fi 18167 fi 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183xorg_testset_save_CFLAGS="$CFLAGS" 18184 18185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18189if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18190then : 18191 printf %s "(cached) " >&6 18192else $as_nop 18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18194/* end confdefs.h. */ 18195int i; 18196_ACEOF 18197if ac_fn_c_try_compile "$LINENO" 18198then : 18199 xorg_cv_cc_flag_unknown_warning_option=yes 18200else $as_nop 18201 xorg_cv_cc_flag_unknown_warning_option=no 18202fi 18203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18204fi 18205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18208 CFLAGS="$xorg_testset_save_CFLAGS" 18209fi 18210 18211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18214 fi 18215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18218if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18219then : 18220 printf %s "(cached) " >&6 18221else $as_nop 18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18223/* end confdefs.h. */ 18224int i; 18225_ACEOF 18226if ac_fn_c_try_compile "$LINENO" 18227then : 18228 xorg_cv_cc_flag_unused_command_line_argument=yes 18229else $as_nop 18230 xorg_cv_cc_flag_unused_command_line_argument=no 18231fi 18232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18233fi 18234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18237 CFLAGS="$xorg_testset_save_CFLAGS" 18238fi 18239 18240found="no" 18241 18242 if test $found = "no" ; then 18243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18245 fi 18246 18247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18249 fi 18250 18251 CFLAGS="$CFLAGS -Winit-self" 18252 18253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18254printf %s "checking if $CC supports -Winit-self... " >&6; } 18255 cacheid=xorg_cv_cc_flag__Winit_self 18256 if eval test \${$cacheid+y} 18257then : 18258 printf %s "(cached) " >&6 18259else $as_nop 18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18261/* end confdefs.h. */ 18262int i; 18263int 18264main (void) 18265{ 18266 18267 ; 18268 return 0; 18269} 18270_ACEOF 18271if ac_fn_c_try_link "$LINENO" 18272then : 18273 eval $cacheid=yes 18274else $as_nop 18275 eval $cacheid=no 18276fi 18277rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18278 conftest$ac_exeext conftest.$ac_ext 18279fi 18280 18281 18282 CFLAGS="$xorg_testset_save_CFLAGS" 18283 18284 eval supported=\$$cacheid 18285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18286printf "%s\n" "$supported" >&6; } 18287 if test "$supported" = "yes" ; then 18288 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18289 found="yes" 18290 fi 18291 fi 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307xorg_testset_save_CFLAGS="$CFLAGS" 18308 18309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18312printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18313if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18314then : 18315 printf %s "(cached) " >&6 18316else $as_nop 18317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18318/* end confdefs.h. */ 18319int i; 18320_ACEOF 18321if ac_fn_c_try_compile "$LINENO" 18322then : 18323 xorg_cv_cc_flag_unknown_warning_option=yes 18324else $as_nop 18325 xorg_cv_cc_flag_unknown_warning_option=no 18326fi 18327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18328fi 18329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18332 CFLAGS="$xorg_testset_save_CFLAGS" 18333fi 18334 18335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18338 fi 18339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18342if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18343then : 18344 printf %s "(cached) " >&6 18345else $as_nop 18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18347/* end confdefs.h. */ 18348int i; 18349_ACEOF 18350if ac_fn_c_try_compile "$LINENO" 18351then : 18352 xorg_cv_cc_flag_unused_command_line_argument=yes 18353else $as_nop 18354 xorg_cv_cc_flag_unused_command_line_argument=no 18355fi 18356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18357fi 18358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18359printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18361 CFLAGS="$xorg_testset_save_CFLAGS" 18362fi 18363 18364found="no" 18365 18366 if test $found = "no" ; then 18367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18369 fi 18370 18371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18373 fi 18374 18375 CFLAGS="$CFLAGS -Wmain" 18376 18377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18378printf %s "checking if $CC supports -Wmain... " >&6; } 18379 cacheid=xorg_cv_cc_flag__Wmain 18380 if eval test \${$cacheid+y} 18381then : 18382 printf %s "(cached) " >&6 18383else $as_nop 18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18385/* end confdefs.h. */ 18386int i; 18387int 18388main (void) 18389{ 18390 18391 ; 18392 return 0; 18393} 18394_ACEOF 18395if ac_fn_c_try_link "$LINENO" 18396then : 18397 eval $cacheid=yes 18398else $as_nop 18399 eval $cacheid=no 18400fi 18401rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18402 conftest$ac_exeext conftest.$ac_ext 18403fi 18404 18405 18406 CFLAGS="$xorg_testset_save_CFLAGS" 18407 18408 eval supported=\$$cacheid 18409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18410printf "%s\n" "$supported" >&6; } 18411 if test "$supported" = "yes" ; then 18412 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18413 found="yes" 18414 fi 18415 fi 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431xorg_testset_save_CFLAGS="$CFLAGS" 18432 18433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18436printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18437if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18438then : 18439 printf %s "(cached) " >&6 18440else $as_nop 18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18442/* end confdefs.h. */ 18443int i; 18444_ACEOF 18445if ac_fn_c_try_compile "$LINENO" 18446then : 18447 xorg_cv_cc_flag_unknown_warning_option=yes 18448else $as_nop 18449 xorg_cv_cc_flag_unknown_warning_option=no 18450fi 18451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18452fi 18453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18454printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18456 CFLAGS="$xorg_testset_save_CFLAGS" 18457fi 18458 18459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18462 fi 18463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18465printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18466if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18467then : 18468 printf %s "(cached) " >&6 18469else $as_nop 18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18471/* end confdefs.h. */ 18472int i; 18473_ACEOF 18474if ac_fn_c_try_compile "$LINENO" 18475then : 18476 xorg_cv_cc_flag_unused_command_line_argument=yes 18477else $as_nop 18478 xorg_cv_cc_flag_unused_command_line_argument=no 18479fi 18480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18481fi 18482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18483printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18485 CFLAGS="$xorg_testset_save_CFLAGS" 18486fi 18487 18488found="no" 18489 18490 if test $found = "no" ; then 18491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18493 fi 18494 18495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18497 fi 18498 18499 CFLAGS="$CFLAGS -Wmissing-braces" 18500 18501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18502printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18503 cacheid=xorg_cv_cc_flag__Wmissing_braces 18504 if eval test \${$cacheid+y} 18505then : 18506 printf %s "(cached) " >&6 18507else $as_nop 18508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18509/* end confdefs.h. */ 18510int i; 18511int 18512main (void) 18513{ 18514 18515 ; 18516 return 0; 18517} 18518_ACEOF 18519if ac_fn_c_try_link "$LINENO" 18520then : 18521 eval $cacheid=yes 18522else $as_nop 18523 eval $cacheid=no 18524fi 18525rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18526 conftest$ac_exeext conftest.$ac_ext 18527fi 18528 18529 18530 CFLAGS="$xorg_testset_save_CFLAGS" 18531 18532 eval supported=\$$cacheid 18533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18534printf "%s\n" "$supported" >&6; } 18535 if test "$supported" = "yes" ; then 18536 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18537 found="yes" 18538 fi 18539 fi 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555xorg_testset_save_CFLAGS="$CFLAGS" 18556 18557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18560printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18561if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18562then : 18563 printf %s "(cached) " >&6 18564else $as_nop 18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18566/* end confdefs.h. */ 18567int i; 18568_ACEOF 18569if ac_fn_c_try_compile "$LINENO" 18570then : 18571 xorg_cv_cc_flag_unknown_warning_option=yes 18572else $as_nop 18573 xorg_cv_cc_flag_unknown_warning_option=no 18574fi 18575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18576fi 18577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18578printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18580 CFLAGS="$xorg_testset_save_CFLAGS" 18581fi 18582 18583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18586 fi 18587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18589printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18590if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18591then : 18592 printf %s "(cached) " >&6 18593else $as_nop 18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18595/* end confdefs.h. */ 18596int i; 18597_ACEOF 18598if ac_fn_c_try_compile "$LINENO" 18599then : 18600 xorg_cv_cc_flag_unused_command_line_argument=yes 18601else $as_nop 18602 xorg_cv_cc_flag_unused_command_line_argument=no 18603fi 18604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18605fi 18606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18607printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18609 CFLAGS="$xorg_testset_save_CFLAGS" 18610fi 18611 18612found="no" 18613 18614 if test $found = "no" ; then 18615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18617 fi 18618 18619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18621 fi 18622 18623 CFLAGS="$CFLAGS -Wsequence-point" 18624 18625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18626printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18627 cacheid=xorg_cv_cc_flag__Wsequence_point 18628 if eval test \${$cacheid+y} 18629then : 18630 printf %s "(cached) " >&6 18631else $as_nop 18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18633/* end confdefs.h. */ 18634int i; 18635int 18636main (void) 18637{ 18638 18639 ; 18640 return 0; 18641} 18642_ACEOF 18643if ac_fn_c_try_link "$LINENO" 18644then : 18645 eval $cacheid=yes 18646else $as_nop 18647 eval $cacheid=no 18648fi 18649rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18650 conftest$ac_exeext conftest.$ac_ext 18651fi 18652 18653 18654 CFLAGS="$xorg_testset_save_CFLAGS" 18655 18656 eval supported=\$$cacheid 18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18658printf "%s\n" "$supported" >&6; } 18659 if test "$supported" = "yes" ; then 18660 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18661 found="yes" 18662 fi 18663 fi 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679xorg_testset_save_CFLAGS="$CFLAGS" 18680 18681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18684printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18685if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18686then : 18687 printf %s "(cached) " >&6 18688else $as_nop 18689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18690/* end confdefs.h. */ 18691int i; 18692_ACEOF 18693if ac_fn_c_try_compile "$LINENO" 18694then : 18695 xorg_cv_cc_flag_unknown_warning_option=yes 18696else $as_nop 18697 xorg_cv_cc_flag_unknown_warning_option=no 18698fi 18699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18700fi 18701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18702printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18704 CFLAGS="$xorg_testset_save_CFLAGS" 18705fi 18706 18707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18710 fi 18711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18713printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18714if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18715then : 18716 printf %s "(cached) " >&6 18717else $as_nop 18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719/* end confdefs.h. */ 18720int i; 18721_ACEOF 18722if ac_fn_c_try_compile "$LINENO" 18723then : 18724 xorg_cv_cc_flag_unused_command_line_argument=yes 18725else $as_nop 18726 xorg_cv_cc_flag_unused_command_line_argument=no 18727fi 18728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18729fi 18730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18731printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18733 CFLAGS="$xorg_testset_save_CFLAGS" 18734fi 18735 18736found="no" 18737 18738 if test $found = "no" ; then 18739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18741 fi 18742 18743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18745 fi 18746 18747 CFLAGS="$CFLAGS -Wreturn-type" 18748 18749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18750printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18751 cacheid=xorg_cv_cc_flag__Wreturn_type 18752 if eval test \${$cacheid+y} 18753then : 18754 printf %s "(cached) " >&6 18755else $as_nop 18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18757/* end confdefs.h. */ 18758int i; 18759int 18760main (void) 18761{ 18762 18763 ; 18764 return 0; 18765} 18766_ACEOF 18767if ac_fn_c_try_link "$LINENO" 18768then : 18769 eval $cacheid=yes 18770else $as_nop 18771 eval $cacheid=no 18772fi 18773rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18774 conftest$ac_exeext conftest.$ac_ext 18775fi 18776 18777 18778 CFLAGS="$xorg_testset_save_CFLAGS" 18779 18780 eval supported=\$$cacheid 18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18782printf "%s\n" "$supported" >&6; } 18783 if test "$supported" = "yes" ; then 18784 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18785 found="yes" 18786 fi 18787 fi 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803xorg_testset_save_CFLAGS="$CFLAGS" 18804 18805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18808printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18809if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18810then : 18811 printf %s "(cached) " >&6 18812else $as_nop 18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18814/* end confdefs.h. */ 18815int i; 18816_ACEOF 18817if ac_fn_c_try_compile "$LINENO" 18818then : 18819 xorg_cv_cc_flag_unknown_warning_option=yes 18820else $as_nop 18821 xorg_cv_cc_flag_unknown_warning_option=no 18822fi 18823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18824fi 18825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18826printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18828 CFLAGS="$xorg_testset_save_CFLAGS" 18829fi 18830 18831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18834 fi 18835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18837printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18838if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18839then : 18840 printf %s "(cached) " >&6 18841else $as_nop 18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18843/* end confdefs.h. */ 18844int i; 18845_ACEOF 18846if ac_fn_c_try_compile "$LINENO" 18847then : 18848 xorg_cv_cc_flag_unused_command_line_argument=yes 18849else $as_nop 18850 xorg_cv_cc_flag_unused_command_line_argument=no 18851fi 18852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18853fi 18854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18857 CFLAGS="$xorg_testset_save_CFLAGS" 18858fi 18859 18860found="no" 18861 18862 if test $found = "no" ; then 18863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18865 fi 18866 18867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18869 fi 18870 18871 CFLAGS="$CFLAGS -Wtrigraphs" 18872 18873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18874printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18875 cacheid=xorg_cv_cc_flag__Wtrigraphs 18876 if eval test \${$cacheid+y} 18877then : 18878 printf %s "(cached) " >&6 18879else $as_nop 18880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18881/* end confdefs.h. */ 18882int i; 18883int 18884main (void) 18885{ 18886 18887 ; 18888 return 0; 18889} 18890_ACEOF 18891if ac_fn_c_try_link "$LINENO" 18892then : 18893 eval $cacheid=yes 18894else $as_nop 18895 eval $cacheid=no 18896fi 18897rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18898 conftest$ac_exeext conftest.$ac_ext 18899fi 18900 18901 18902 CFLAGS="$xorg_testset_save_CFLAGS" 18903 18904 eval supported=\$$cacheid 18905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18906printf "%s\n" "$supported" >&6; } 18907 if test "$supported" = "yes" ; then 18908 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18909 found="yes" 18910 fi 18911 fi 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927xorg_testset_save_CFLAGS="$CFLAGS" 18928 18929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18932printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18933if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18934then : 18935 printf %s "(cached) " >&6 18936else $as_nop 18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18938/* end confdefs.h. */ 18939int i; 18940_ACEOF 18941if ac_fn_c_try_compile "$LINENO" 18942then : 18943 xorg_cv_cc_flag_unknown_warning_option=yes 18944else $as_nop 18945 xorg_cv_cc_flag_unknown_warning_option=no 18946fi 18947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18948fi 18949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18950printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18952 CFLAGS="$xorg_testset_save_CFLAGS" 18953fi 18954 18955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18958 fi 18959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18961printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18962if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18963then : 18964 printf %s "(cached) " >&6 18965else $as_nop 18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18967/* end confdefs.h. */ 18968int i; 18969_ACEOF 18970if ac_fn_c_try_compile "$LINENO" 18971then : 18972 xorg_cv_cc_flag_unused_command_line_argument=yes 18973else $as_nop 18974 xorg_cv_cc_flag_unused_command_line_argument=no 18975fi 18976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18977fi 18978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18979printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18981 CFLAGS="$xorg_testset_save_CFLAGS" 18982fi 18983 18984found="no" 18985 18986 if test $found = "no" ; then 18987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18989 fi 18990 18991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18993 fi 18994 18995 CFLAGS="$CFLAGS -Warray-bounds" 18996 18997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18998printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18999 cacheid=xorg_cv_cc_flag__Warray_bounds 19000 if eval test \${$cacheid+y} 19001then : 19002 printf %s "(cached) " >&6 19003else $as_nop 19004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19005/* end confdefs.h. */ 19006int i; 19007int 19008main (void) 19009{ 19010 19011 ; 19012 return 0; 19013} 19014_ACEOF 19015if ac_fn_c_try_link "$LINENO" 19016then : 19017 eval $cacheid=yes 19018else $as_nop 19019 eval $cacheid=no 19020fi 19021rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19022 conftest$ac_exeext conftest.$ac_ext 19023fi 19024 19025 19026 CFLAGS="$xorg_testset_save_CFLAGS" 19027 19028 eval supported=\$$cacheid 19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19030printf "%s\n" "$supported" >&6; } 19031 if test "$supported" = "yes" ; then 19032 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19033 found="yes" 19034 fi 19035 fi 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051xorg_testset_save_CFLAGS="$CFLAGS" 19052 19053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19056printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19057if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19058then : 19059 printf %s "(cached) " >&6 19060else $as_nop 19061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19062/* end confdefs.h. */ 19063int i; 19064_ACEOF 19065if ac_fn_c_try_compile "$LINENO" 19066then : 19067 xorg_cv_cc_flag_unknown_warning_option=yes 19068else $as_nop 19069 xorg_cv_cc_flag_unknown_warning_option=no 19070fi 19071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19072fi 19073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19074printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19076 CFLAGS="$xorg_testset_save_CFLAGS" 19077fi 19078 19079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19082 fi 19083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19085printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19086if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19087then : 19088 printf %s "(cached) " >&6 19089else $as_nop 19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19091/* end confdefs.h. */ 19092int i; 19093_ACEOF 19094if ac_fn_c_try_compile "$LINENO" 19095then : 19096 xorg_cv_cc_flag_unused_command_line_argument=yes 19097else $as_nop 19098 xorg_cv_cc_flag_unused_command_line_argument=no 19099fi 19100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19101fi 19102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19103printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19105 CFLAGS="$xorg_testset_save_CFLAGS" 19106fi 19107 19108found="no" 19109 19110 if test $found = "no" ; then 19111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19113 fi 19114 19115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19117 fi 19118 19119 CFLAGS="$CFLAGS -Wwrite-strings" 19120 19121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19122printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19123 cacheid=xorg_cv_cc_flag__Wwrite_strings 19124 if eval test \${$cacheid+y} 19125then : 19126 printf %s "(cached) " >&6 19127else $as_nop 19128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19129/* end confdefs.h. */ 19130int i; 19131int 19132main (void) 19133{ 19134 19135 ; 19136 return 0; 19137} 19138_ACEOF 19139if ac_fn_c_try_link "$LINENO" 19140then : 19141 eval $cacheid=yes 19142else $as_nop 19143 eval $cacheid=no 19144fi 19145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19146 conftest$ac_exeext conftest.$ac_ext 19147fi 19148 19149 19150 CFLAGS="$xorg_testset_save_CFLAGS" 19151 19152 eval supported=\$$cacheid 19153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19154printf "%s\n" "$supported" >&6; } 19155 if test "$supported" = "yes" ; then 19156 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19157 found="yes" 19158 fi 19159 fi 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175xorg_testset_save_CFLAGS="$CFLAGS" 19176 19177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19180printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19181if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19182then : 19183 printf %s "(cached) " >&6 19184else $as_nop 19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19186/* end confdefs.h. */ 19187int i; 19188_ACEOF 19189if ac_fn_c_try_compile "$LINENO" 19190then : 19191 xorg_cv_cc_flag_unknown_warning_option=yes 19192else $as_nop 19193 xorg_cv_cc_flag_unknown_warning_option=no 19194fi 19195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19196fi 19197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19198printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19200 CFLAGS="$xorg_testset_save_CFLAGS" 19201fi 19202 19203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19206 fi 19207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19209printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19210if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19211then : 19212 printf %s "(cached) " >&6 19213else $as_nop 19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19215/* end confdefs.h. */ 19216int i; 19217_ACEOF 19218if ac_fn_c_try_compile "$LINENO" 19219then : 19220 xorg_cv_cc_flag_unused_command_line_argument=yes 19221else $as_nop 19222 xorg_cv_cc_flag_unused_command_line_argument=no 19223fi 19224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19225fi 19226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19227printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19229 CFLAGS="$xorg_testset_save_CFLAGS" 19230fi 19231 19232found="no" 19233 19234 if test $found = "no" ; then 19235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19237 fi 19238 19239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19241 fi 19242 19243 CFLAGS="$CFLAGS -Waddress" 19244 19245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19246printf %s "checking if $CC supports -Waddress... " >&6; } 19247 cacheid=xorg_cv_cc_flag__Waddress 19248 if eval test \${$cacheid+y} 19249then : 19250 printf %s "(cached) " >&6 19251else $as_nop 19252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19253/* end confdefs.h. */ 19254int i; 19255int 19256main (void) 19257{ 19258 19259 ; 19260 return 0; 19261} 19262_ACEOF 19263if ac_fn_c_try_link "$LINENO" 19264then : 19265 eval $cacheid=yes 19266else $as_nop 19267 eval $cacheid=no 19268fi 19269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19270 conftest$ac_exeext conftest.$ac_ext 19271fi 19272 19273 19274 CFLAGS="$xorg_testset_save_CFLAGS" 19275 19276 eval supported=\$$cacheid 19277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19278printf "%s\n" "$supported" >&6; } 19279 if test "$supported" = "yes" ; then 19280 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19281 found="yes" 19282 fi 19283 fi 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299xorg_testset_save_CFLAGS="$CFLAGS" 19300 19301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19304printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19305if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19306then : 19307 printf %s "(cached) " >&6 19308else $as_nop 19309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19310/* end confdefs.h. */ 19311int i; 19312_ACEOF 19313if ac_fn_c_try_compile "$LINENO" 19314then : 19315 xorg_cv_cc_flag_unknown_warning_option=yes 19316else $as_nop 19317 xorg_cv_cc_flag_unknown_warning_option=no 19318fi 19319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19320fi 19321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19322printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19324 CFLAGS="$xorg_testset_save_CFLAGS" 19325fi 19326 19327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19330 fi 19331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19333printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19334if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19335then : 19336 printf %s "(cached) " >&6 19337else $as_nop 19338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19339/* end confdefs.h. */ 19340int i; 19341_ACEOF 19342if ac_fn_c_try_compile "$LINENO" 19343then : 19344 xorg_cv_cc_flag_unused_command_line_argument=yes 19345else $as_nop 19346 xorg_cv_cc_flag_unused_command_line_argument=no 19347fi 19348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19349fi 19350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19353 CFLAGS="$xorg_testset_save_CFLAGS" 19354fi 19355 19356found="no" 19357 19358 if test $found = "no" ; then 19359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19361 fi 19362 19363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19365 fi 19366 19367 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19368 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19370printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19371 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19372 if eval test \${$cacheid+y} 19373then : 19374 printf %s "(cached) " >&6 19375else $as_nop 19376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19377/* end confdefs.h. */ 19378int i; 19379int 19380main (void) 19381{ 19382 19383 ; 19384 return 0; 19385} 19386_ACEOF 19387if ac_fn_c_try_link "$LINENO" 19388then : 19389 eval $cacheid=yes 19390else $as_nop 19391 eval $cacheid=no 19392fi 19393rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19394 conftest$ac_exeext conftest.$ac_ext 19395fi 19396 19397 19398 CFLAGS="$xorg_testset_save_CFLAGS" 19399 19400 eval supported=\$$cacheid 19401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19402printf "%s\n" "$supported" >&6; } 19403 if test "$supported" = "yes" ; then 19404 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19405 found="yes" 19406 fi 19407 fi 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423xorg_testset_save_CFLAGS="$CFLAGS" 19424 19425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19429if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19430then : 19431 printf %s "(cached) " >&6 19432else $as_nop 19433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19434/* end confdefs.h. */ 19435int i; 19436_ACEOF 19437if ac_fn_c_try_compile "$LINENO" 19438then : 19439 xorg_cv_cc_flag_unknown_warning_option=yes 19440else $as_nop 19441 xorg_cv_cc_flag_unknown_warning_option=no 19442fi 19443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19444fi 19445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19446printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19448 CFLAGS="$xorg_testset_save_CFLAGS" 19449fi 19450 19451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19454 fi 19455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19457printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19458if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19459then : 19460 printf %s "(cached) " >&6 19461else $as_nop 19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19463/* end confdefs.h. */ 19464int i; 19465_ACEOF 19466if ac_fn_c_try_compile "$LINENO" 19467then : 19468 xorg_cv_cc_flag_unused_command_line_argument=yes 19469else $as_nop 19470 xorg_cv_cc_flag_unused_command_line_argument=no 19471fi 19472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19473fi 19474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19475printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19477 CFLAGS="$xorg_testset_save_CFLAGS" 19478fi 19479 19480found="no" 19481 19482 if test $found = "no" ; then 19483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19485 fi 19486 19487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19489 fi 19490 19491 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19492 19493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19494printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19495 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19496 if eval test \${$cacheid+y} 19497then : 19498 printf %s "(cached) " >&6 19499else $as_nop 19500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19501/* end confdefs.h. */ 19502int i; 19503int 19504main (void) 19505{ 19506 19507 ; 19508 return 0; 19509} 19510_ACEOF 19511if ac_fn_c_try_link "$LINENO" 19512then : 19513 eval $cacheid=yes 19514else $as_nop 19515 eval $cacheid=no 19516fi 19517rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19518 conftest$ac_exeext conftest.$ac_ext 19519fi 19520 19521 19522 CFLAGS="$xorg_testset_save_CFLAGS" 19523 19524 eval supported=\$$cacheid 19525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19526printf "%s\n" "$supported" >&6; } 19527 if test "$supported" = "yes" ; then 19528 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19529 found="yes" 19530 fi 19531 fi 19532 19533 19534fi 19535 19536 19537 19538 19539 19540 19541 19542 CWARNFLAGS="$BASE_CFLAGS" 19543 if test "x$GCC" = xyes ; then 19544 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19545 fi 19546 19547 19548 19549 19550 19551 19552 19553 19554# Check whether --enable-strict-compilation was given. 19555if test ${enable_strict_compilation+y} 19556then : 19557 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19558else $as_nop 19559 STRICT_COMPILE=no 19560fi 19561 19562 19563 19564 19565 19566 19567STRICT_CFLAGS="" 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581xorg_testset_save_CFLAGS="$CFLAGS" 19582 19583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19587if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19588then : 19589 printf %s "(cached) " >&6 19590else $as_nop 19591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19592/* end confdefs.h. */ 19593int i; 19594_ACEOF 19595if ac_fn_c_try_compile "$LINENO" 19596then : 19597 xorg_cv_cc_flag_unknown_warning_option=yes 19598else $as_nop 19599 xorg_cv_cc_flag_unknown_warning_option=no 19600fi 19601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19602fi 19603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19606 CFLAGS="$xorg_testset_save_CFLAGS" 19607fi 19608 19609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19612 fi 19613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19616if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19617then : 19618 printf %s "(cached) " >&6 19619else $as_nop 19620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19621/* end confdefs.h. */ 19622int i; 19623_ACEOF 19624if ac_fn_c_try_compile "$LINENO" 19625then : 19626 xorg_cv_cc_flag_unused_command_line_argument=yes 19627else $as_nop 19628 xorg_cv_cc_flag_unused_command_line_argument=no 19629fi 19630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19631fi 19632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19635 CFLAGS="$xorg_testset_save_CFLAGS" 19636fi 19637 19638found="no" 19639 19640 if test $found = "no" ; then 19641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19643 fi 19644 19645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19647 fi 19648 19649 CFLAGS="$CFLAGS -pedantic" 19650 19651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19652printf %s "checking if $CC supports -pedantic... " >&6; } 19653 cacheid=xorg_cv_cc_flag__pedantic 19654 if eval test \${$cacheid+y} 19655then : 19656 printf %s "(cached) " >&6 19657else $as_nop 19658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19659/* end confdefs.h. */ 19660int i; 19661int 19662main (void) 19663{ 19664 19665 ; 19666 return 0; 19667} 19668_ACEOF 19669if ac_fn_c_try_link "$LINENO" 19670then : 19671 eval $cacheid=yes 19672else $as_nop 19673 eval $cacheid=no 19674fi 19675rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19676 conftest$ac_exeext conftest.$ac_ext 19677fi 19678 19679 19680 CFLAGS="$xorg_testset_save_CFLAGS" 19681 19682 eval supported=\$$cacheid 19683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19684printf "%s\n" "$supported" >&6; } 19685 if test "$supported" = "yes" ; then 19686 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19687 found="yes" 19688 fi 19689 fi 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705xorg_testset_save_CFLAGS="$CFLAGS" 19706 19707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19710printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19711if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19712then : 19713 printf %s "(cached) " >&6 19714else $as_nop 19715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19716/* end confdefs.h. */ 19717int i; 19718_ACEOF 19719if ac_fn_c_try_compile "$LINENO" 19720then : 19721 xorg_cv_cc_flag_unknown_warning_option=yes 19722else $as_nop 19723 xorg_cv_cc_flag_unknown_warning_option=no 19724fi 19725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19726fi 19727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19728printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19730 CFLAGS="$xorg_testset_save_CFLAGS" 19731fi 19732 19733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19736 fi 19737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19739printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19740if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19741then : 19742 printf %s "(cached) " >&6 19743else $as_nop 19744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19745/* end confdefs.h. */ 19746int i; 19747_ACEOF 19748if ac_fn_c_try_compile "$LINENO" 19749then : 19750 xorg_cv_cc_flag_unused_command_line_argument=yes 19751else $as_nop 19752 xorg_cv_cc_flag_unused_command_line_argument=no 19753fi 19754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19755fi 19756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19757printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19759 CFLAGS="$xorg_testset_save_CFLAGS" 19760fi 19761 19762found="no" 19763 19764 if test $found = "no" ; then 19765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19767 fi 19768 19769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19771 fi 19772 19773 CFLAGS="$CFLAGS -Werror" 19774 19775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19776printf %s "checking if $CC supports -Werror... " >&6; } 19777 cacheid=xorg_cv_cc_flag__Werror 19778 if eval test \${$cacheid+y} 19779then : 19780 printf %s "(cached) " >&6 19781else $as_nop 19782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19783/* end confdefs.h. */ 19784int i; 19785int 19786main (void) 19787{ 19788 19789 ; 19790 return 0; 19791} 19792_ACEOF 19793if ac_fn_c_try_link "$LINENO" 19794then : 19795 eval $cacheid=yes 19796else $as_nop 19797 eval $cacheid=no 19798fi 19799rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19800 conftest$ac_exeext conftest.$ac_ext 19801fi 19802 19803 19804 CFLAGS="$xorg_testset_save_CFLAGS" 19805 19806 eval supported=\$$cacheid 19807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19808printf "%s\n" "$supported" >&6; } 19809 if test "$supported" = "yes" ; then 19810 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19811 found="yes" 19812 fi 19813 fi 19814 19815 if test $found = "no" ; then 19816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19818 fi 19819 19820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19822 fi 19823 19824 CFLAGS="$CFLAGS -errwarn" 19825 19826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19827printf %s "checking if $CC supports -errwarn... " >&6; } 19828 cacheid=xorg_cv_cc_flag__errwarn 19829 if eval test \${$cacheid+y} 19830then : 19831 printf %s "(cached) " >&6 19832else $as_nop 19833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19834/* end confdefs.h. */ 19835int i; 19836int 19837main (void) 19838{ 19839 19840 ; 19841 return 0; 19842} 19843_ACEOF 19844if ac_fn_c_try_link "$LINENO" 19845then : 19846 eval $cacheid=yes 19847else $as_nop 19848 eval $cacheid=no 19849fi 19850rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19851 conftest$ac_exeext conftest.$ac_ext 19852fi 19853 19854 19855 CFLAGS="$xorg_testset_save_CFLAGS" 19856 19857 eval supported=\$$cacheid 19858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19859printf "%s\n" "$supported" >&6; } 19860 if test "$supported" = "yes" ; then 19861 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19862 found="yes" 19863 fi 19864 fi 19865 19866 19867 19868# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19869# activate it with -Werror, so we add it here explicitly. 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883xorg_testset_save_CFLAGS="$CFLAGS" 19884 19885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19889if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19890then : 19891 printf %s "(cached) " >&6 19892else $as_nop 19893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19894/* end confdefs.h. */ 19895int i; 19896_ACEOF 19897if ac_fn_c_try_compile "$LINENO" 19898then : 19899 xorg_cv_cc_flag_unknown_warning_option=yes 19900else $as_nop 19901 xorg_cv_cc_flag_unknown_warning_option=no 19902fi 19903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19904fi 19905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19906printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19908 CFLAGS="$xorg_testset_save_CFLAGS" 19909fi 19910 19911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19914 fi 19915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19917printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19918if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19919then : 19920 printf %s "(cached) " >&6 19921else $as_nop 19922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19923/* end confdefs.h. */ 19924int i; 19925_ACEOF 19926if ac_fn_c_try_compile "$LINENO" 19927then : 19928 xorg_cv_cc_flag_unused_command_line_argument=yes 19929else $as_nop 19930 xorg_cv_cc_flag_unused_command_line_argument=no 19931fi 19932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19933fi 19934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19935printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19937 CFLAGS="$xorg_testset_save_CFLAGS" 19938fi 19939 19940found="no" 19941 19942 if test $found = "no" ; then 19943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19945 fi 19946 19947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19949 fi 19950 19951 CFLAGS="$CFLAGS -Werror=attributes" 19952 19953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19954printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19955 cacheid=xorg_cv_cc_flag__Werror_attributes 19956 if eval test \${$cacheid+y} 19957then : 19958 printf %s "(cached) " >&6 19959else $as_nop 19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19961/* end confdefs.h. */ 19962int i; 19963int 19964main (void) 19965{ 19966 19967 ; 19968 return 0; 19969} 19970_ACEOF 19971if ac_fn_c_try_link "$LINENO" 19972then : 19973 eval $cacheid=yes 19974else $as_nop 19975 eval $cacheid=no 19976fi 19977rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19978 conftest$ac_exeext conftest.$ac_ext 19979fi 19980 19981 19982 CFLAGS="$xorg_testset_save_CFLAGS" 19983 19984 eval supported=\$$cacheid 19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19986printf "%s\n" "$supported" >&6; } 19987 if test "$supported" = "yes" ; then 19988 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19989 found="yes" 19990 fi 19991 fi 19992 19993 19994 19995if test "x$STRICT_COMPILE" = "xyes"; then 19996 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19997 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19998fi 19999 20000 20001 20002 20003 20004 20005cat >>confdefs.h <<_ACEOF 20006#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20007_ACEOF 20008 20009 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20010 if test "x$PVM" = "x"; then 20011 PVM="0" 20012 fi 20013 20014printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20015 20016 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20017 if test "x$PVP" = "x"; then 20018 PVP="0" 20019 fi 20020 20021printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20022 20023 20024 20025CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20026mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20027|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20028touch \$(top_srcdir)/ChangeLog; \ 20029echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20030 20031 20032 20033 20034macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20035INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20036mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20037|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20038touch \$(top_srcdir)/INSTALL; \ 20039echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20040 20041 20042 20043 20044 20045 20046case $host_os in 20047 solaris*) 20048 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20049 # check for a man page file found in later versions that use 20050 # traditional section numbers instead 20051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20052printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20053if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20054then : 20055 printf %s "(cached) " >&6 20056else $as_nop 20057 test "$cross_compiling" = yes && 20058 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20059if test -r "/usr/share/man/man7/attributes.7"; then 20060 ac_cv_file__usr_share_man_man7_attributes_7=yes 20061else 20062 ac_cv_file__usr_share_man_man7_attributes_7=no 20063fi 20064fi 20065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20066printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20067if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20068then : 20069 SYSV_MAN_SECTIONS=false 20070else $as_nop 20071 SYSV_MAN_SECTIONS=true 20072fi 20073 20074 ;; 20075 *) SYSV_MAN_SECTIONS=false ;; 20076esac 20077 20078if test x$APP_MAN_SUFFIX = x ; then 20079 APP_MAN_SUFFIX=1 20080fi 20081if test x$APP_MAN_DIR = x ; then 20082 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20083fi 20084 20085if test x$LIB_MAN_SUFFIX = x ; then 20086 LIB_MAN_SUFFIX=3 20087fi 20088if test x$LIB_MAN_DIR = x ; then 20089 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20090fi 20091 20092if test x$FILE_MAN_SUFFIX = x ; then 20093 case $SYSV_MAN_SECTIONS in 20094 true) FILE_MAN_SUFFIX=4 ;; 20095 *) FILE_MAN_SUFFIX=5 ;; 20096 esac 20097fi 20098if test x$FILE_MAN_DIR = x ; then 20099 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20100fi 20101 20102if test x$MISC_MAN_SUFFIX = x ; then 20103 case $SYSV_MAN_SECTIONS in 20104 true) MISC_MAN_SUFFIX=5 ;; 20105 *) MISC_MAN_SUFFIX=7 ;; 20106 esac 20107fi 20108if test x$MISC_MAN_DIR = x ; then 20109 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20110fi 20111 20112if test x$DRIVER_MAN_SUFFIX = x ; then 20113 case $SYSV_MAN_SECTIONS in 20114 true) DRIVER_MAN_SUFFIX=7 ;; 20115 *) DRIVER_MAN_SUFFIX=4 ;; 20116 esac 20117fi 20118if test x$DRIVER_MAN_DIR = x ; then 20119 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20120fi 20121 20122if test x$ADMIN_MAN_SUFFIX = x ; then 20123 case $SYSV_MAN_SECTIONS in 20124 true) ADMIN_MAN_SUFFIX=1m ;; 20125 *) ADMIN_MAN_SUFFIX=8 ;; 20126 esac 20127fi 20128if test x$ADMIN_MAN_DIR = x ; then 20129 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20130fi 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146XORG_MAN_PAGE="X Version 11" 20147 20148MAN_SUBSTS="\ 20149 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20150 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20151 -e 's|__xservername__|Xorg|g' \ 20152 -e 's|__xconfigfile__|xorg.conf|g' \ 20153 -e 's|__projectroot__|\$(prefix)|g' \ 20154 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20155 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20156 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20157 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20158 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20159 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20160 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20161 20162 20163 20164# Check whether --enable-silent-rules was given. 20165if test ${enable_silent_rules+y} 20166then : 20167 enableval=$enable_silent_rules; 20168fi 20169 20170case $enable_silent_rules in # ((( 20171 yes) AM_DEFAULT_VERBOSITY=0;; 20172 no) AM_DEFAULT_VERBOSITY=1;; 20173 *) AM_DEFAULT_VERBOSITY=0;; 20174esac 20175am_make=${MAKE-make} 20176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 20177printf %s "checking whether $am_make supports nested variables... " >&6; } 20178if test ${am_cv_make_support_nested_variables+y} 20179then : 20180 printf %s "(cached) " >&6 20181else $as_nop 20182 if printf "%s\n" 'TRUE=$(BAR$(V)) 20183BAR0=false 20184BAR1=true 20185V=1 20186am__doit: 20187 @$(TRUE) 20188.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 20189 am_cv_make_support_nested_variables=yes 20190else 20191 am_cv_make_support_nested_variables=no 20192fi 20193fi 20194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 20195printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 20196if test $am_cv_make_support_nested_variables = yes; then 20197 AM_V='$(V)' 20198 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20199else 20200 AM_V=$AM_DEFAULT_VERBOSITY 20201 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20202fi 20203AM_BACKSLASH='\' 20204 20205 20206 20207 20208# Check whether --enable-devel-docs was given. 20209if test ${enable_devel_docs+y} 20210then : 20211 enableval=$enable_devel_docs; build_devel_docs=$enableval 20212else $as_nop 20213 build_devel_docs=yes 20214fi 20215 20216 20217 if test x$build_devel_docs = xyes; then 20218 ENABLE_DEVEL_DOCS_TRUE= 20219 ENABLE_DEVEL_DOCS_FALSE='#' 20220else 20221 ENABLE_DEVEL_DOCS_TRUE='#' 20222 ENABLE_DEVEL_DOCS_FALSE= 20223fi 20224 20225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 20226printf %s "checking whether to build developer documentation... " >&6; } 20227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 20228printf "%s\n" "$build_devel_docs" >&6; } 20229 20230 20231 20232 20233 20234 20235# Check whether --with-doxygen was given. 20236if test ${with_doxygen+y} 20237then : 20238 withval=$with_doxygen; use_doxygen=$withval 20239else $as_nop 20240 use_doxygen=auto 20241fi 20242 20243 20244 20245if test "x$use_doxygen" = x"auto"; then 20246 # Extract the first word of "doxygen", so it can be a program name with args. 20247set dummy doxygen; ac_word=$2 20248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20249printf %s "checking for $ac_word... " >&6; } 20250if test ${ac_cv_path_DOXYGEN+y} 20251then : 20252 printf %s "(cached) " >&6 20253else $as_nop 20254 case $DOXYGEN in 20255 [\\/]* | ?:[\\/]*) 20256 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 20257 ;; 20258 *) 20259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20260for as_dir in $PATH 20261do 20262 IFS=$as_save_IFS 20263 case $as_dir in #((( 20264 '') as_dir=./ ;; 20265 */) ;; 20266 *) as_dir=$as_dir/ ;; 20267 esac 20268 for ac_exec_ext in '' $ac_executable_extensions; do 20269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20270 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 20271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20272 break 2 20273 fi 20274done 20275 done 20276IFS=$as_save_IFS 20277 20278 ;; 20279esac 20280fi 20281DOXYGEN=$ac_cv_path_DOXYGEN 20282if test -n "$DOXYGEN"; then 20283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 20284printf "%s\n" "$DOXYGEN" >&6; } 20285else 20286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20287printf "%s\n" "no" >&6; } 20288fi 20289 20290 20291 if test "x$DOXYGEN" = "x"; then 20292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 20293printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 20294 have_doxygen=no 20295 else 20296 have_doxygen=yes 20297 fi 20298elif test "x$use_doxygen" = x"yes" ; then 20299 # Extract the first word of "doxygen", so it can be a program name with args. 20300set dummy doxygen; ac_word=$2 20301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20302printf %s "checking for $ac_word... " >&6; } 20303if test ${ac_cv_path_DOXYGEN+y} 20304then : 20305 printf %s "(cached) " >&6 20306else $as_nop 20307 case $DOXYGEN in 20308 [\\/]* | ?:[\\/]*) 20309 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 20310 ;; 20311 *) 20312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20313for as_dir in $PATH 20314do 20315 IFS=$as_save_IFS 20316 case $as_dir in #((( 20317 '') as_dir=./ ;; 20318 */) ;; 20319 *) as_dir=$as_dir/ ;; 20320 esac 20321 for ac_exec_ext in '' $ac_executable_extensions; do 20322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20323 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 20324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20325 break 2 20326 fi 20327done 20328 done 20329IFS=$as_save_IFS 20330 20331 ;; 20332esac 20333fi 20334DOXYGEN=$ac_cv_path_DOXYGEN 20335if test -n "$DOXYGEN"; then 20336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 20337printf "%s\n" "$DOXYGEN" >&6; } 20338else 20339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20340printf "%s\n" "no" >&6; } 20341fi 20342 20343 20344 if test "x$DOXYGEN" = "x"; then 20345 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 20346 fi 20347 have_doxygen=yes 20348elif test "x$use_doxygen" = x"no" ; then 20349 if test "x$DOXYGEN" != "x"; then 20350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 20351printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 20352 fi 20353 have_doxygen=no 20354else 20355 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 20356fi 20357 20358 20359HAVE_DOT=no 20360if test "x$have_doxygen" = "xyes"; then 20361 # Extract the first word of "dot", so it can be a program name with args. 20362set dummy dot; ac_word=$2 20363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20364printf %s "checking for $ac_word... " >&6; } 20365if test ${ac_cv_path_DOT+y} 20366then : 20367 printf %s "(cached) " >&6 20368else $as_nop 20369 case $DOT in 20370 [\\/]* | ?:[\\/]*) 20371 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 20372 ;; 20373 *) 20374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20375for as_dir in $PATH 20376do 20377 IFS=$as_save_IFS 20378 case $as_dir in #((( 20379 '') as_dir=./ ;; 20380 */) ;; 20381 *) as_dir=$as_dir/ ;; 20382 esac 20383 for ac_exec_ext in '' $ac_executable_extensions; do 20384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20385 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext" 20386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20387 break 2 20388 fi 20389done 20390 done 20391IFS=$as_save_IFS 20392 20393 ;; 20394esac 20395fi 20396DOT=$ac_cv_path_DOT 20397if test -n "$DOT"; then 20398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 20399printf "%s\n" "$DOT" >&6; } 20400else 20401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20402printf "%s\n" "no" >&6; } 20403fi 20404 20405 20406 if test "x$DOT" != "x"; then 20407 HAVE_DOT=yes 20408 fi 20409fi 20410 20411 20412 if test "$HAVE_DOT" = "yes"; then 20413 HAVE_DOT_TRUE= 20414 HAVE_DOT_FALSE='#' 20415else 20416 HAVE_DOT_TRUE='#' 20417 HAVE_DOT_FALSE= 20418fi 20419 20420 if test "$have_doxygen" = yes; then 20421 HAVE_DOXYGEN_TRUE= 20422 HAVE_DOXYGEN_FALSE='#' 20423else 20424 HAVE_DOXYGEN_TRUE='#' 20425 HAVE_DOXYGEN_FALSE= 20426fi 20427 20428 20429 20430# The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual 20431if test x"$HAVE_DOT" = xno; then 20432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5 20433printf "%s\n" "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;} 20434fi 20435 20436 20437pkg_failed=no 20438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 20439printf %s "checking for CHECK... " >&6; } 20440 20441if test -n "$CHECK_CFLAGS"; then 20442 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 20443 elif test -n "$PKG_CONFIG"; then 20444 if test -n "$PKG_CONFIG" && \ 20445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.6\""; } >&5 20446 ($PKG_CONFIG --exists --print-errors "check >= 0.9.6") 2>&5 20447 ac_status=$? 20448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20449 test $ac_status = 0; }; then 20450 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.6" 2>/dev/null` 20451 test "x$?" != "x0" && pkg_failed=yes 20452else 20453 pkg_failed=yes 20454fi 20455 else 20456 pkg_failed=untried 20457fi 20458if test -n "$CHECK_LIBS"; then 20459 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 20460 elif test -n "$PKG_CONFIG"; then 20461 if test -n "$PKG_CONFIG" && \ 20462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.6\""; } >&5 20463 ($PKG_CONFIG --exists --print-errors "check >= 0.9.6") 2>&5 20464 ac_status=$? 20465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20466 test $ac_status = 0; }; then 20467 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.6" 2>/dev/null` 20468 test "x$?" != "x0" && pkg_failed=yes 20469else 20470 pkg_failed=yes 20471fi 20472 else 20473 pkg_failed=untried 20474fi 20475 20476 20477 20478if test $pkg_failed = yes; then 20479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20480printf "%s\n" "no" >&6; } 20481 20482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20483 _pkg_short_errors_supported=yes 20484else 20485 _pkg_short_errors_supported=no 20486fi 20487 if test $_pkg_short_errors_supported = yes; then 20488 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.6" 2>&1` 20489 else 20490 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.6" 2>&1` 20491 fi 20492 # Put the nasty error message in config.log where it belongs 20493 echo "$CHECK_PKG_ERRORS" >&5 20494 20495 HAVE_CHECK=no 20496elif test $pkg_failed = untried; then 20497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20498printf "%s\n" "no" >&6; } 20499 HAVE_CHECK=no 20500else 20501 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 20502 CHECK_LIBS=$pkg_cv_CHECK_LIBS 20503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20504printf "%s\n" "yes" >&6; } 20505 HAVE_CHECK=yes 20506fi 20507 if test x$HAVE_CHECK = xyes; then 20508 HAVE_CHECK_TRUE= 20509 HAVE_CHECK_FALSE='#' 20510else 20511 HAVE_CHECK_TRUE='#' 20512 HAVE_CHECK_FALSE= 20513fi 20514 20515 20516XSLTPROC=no 20517HTML_CHECK_RESULT=no 20518if test x"$HAVE_CHECK" = xyes; then 20519 # Extract the first word of "xsltproc", so it can be a program name with args. 20520set dummy xsltproc; ac_word=$2 20521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20522printf %s "checking for $ac_word... " >&6; } 20523if test ${ac_cv_path_XSLTPROC+y} 20524then : 20525 printf %s "(cached) " >&6 20526else $as_nop 20527 case $XSLTPROC in 20528 [\\/]* | ?:[\\/]*) 20529 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20530 ;; 20531 *) 20532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20533for as_dir in $PATH 20534do 20535 IFS=$as_save_IFS 20536 case $as_dir in #((( 20537 '') as_dir=./ ;; 20538 */) ;; 20539 *) as_dir=$as_dir/ ;; 20540 esac 20541 for ac_exec_ext in '' $ac_executable_extensions; do 20542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20543 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20545 break 2 20546 fi 20547done 20548 done 20549IFS=$as_save_IFS 20550 20551 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no" 20552 ;; 20553esac 20554fi 20555XSLTPROC=$ac_cv_path_XSLTPROC 20556if test -n "$XSLTPROC"; then 20557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20558printf "%s\n" "$XSLTPROC" >&6; } 20559else 20560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20561printf "%s\n" "no" >&6; } 20562fi 20563 20564 20565 if test x"$XSLTPROC" != xno; then 20566 HTML_CHECK_RESULT=yes 20567 fi 20568fi 20569 20570 20571# Checks for pkg-config packages 20572 20573pkg_failed=no 20574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5 20575printf %s "checking for XCBPROTO... " >&6; } 20576 20577if test -n "$XCBPROTO_CFLAGS"; then 20578 pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS" 20579 elif test -n "$PKG_CONFIG"; then 20580 if test -n "$PKG_CONFIG" && \ 20581 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.14\""; } >&5 20582 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.14") 2>&5 20583 ac_status=$? 20584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20585 test $ac_status = 0; }; then 20586 pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.14" 2>/dev/null` 20587 test "x$?" != "x0" && pkg_failed=yes 20588else 20589 pkg_failed=yes 20590fi 20591 else 20592 pkg_failed=untried 20593fi 20594if test -n "$XCBPROTO_LIBS"; then 20595 pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS" 20596 elif test -n "$PKG_CONFIG"; then 20597 if test -n "$PKG_CONFIG" && \ 20598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.14\""; } >&5 20599 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.14") 2>&5 20600 ac_status=$? 20601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20602 test $ac_status = 0; }; then 20603 pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.14" 2>/dev/null` 20604 test "x$?" != "x0" && pkg_failed=yes 20605else 20606 pkg_failed=yes 20607fi 20608 else 20609 pkg_failed=untried 20610fi 20611 20612 20613 20614if test $pkg_failed = yes; then 20615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20616printf "%s\n" "no" >&6; } 20617 20618if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20619 _pkg_short_errors_supported=yes 20620else 20621 _pkg_short_errors_supported=no 20622fi 20623 if test $_pkg_short_errors_supported = yes; then 20624 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.14" 2>&1` 20625 else 20626 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.14" 2>&1` 20627 fi 20628 # Put the nasty error message in config.log where it belongs 20629 echo "$XCBPROTO_PKG_ERRORS" >&5 20630 20631 as_fn_error $? "Package requirements (xcb-proto >= 1.14) were not met: 20632 20633$XCBPROTO_PKG_ERRORS 20634 20635Consider adjusting the PKG_CONFIG_PATH environment variable if you 20636installed software in a non-standard prefix. 20637 20638Alternatively, you may set the environment variables XCBPROTO_CFLAGS 20639and XCBPROTO_LIBS to avoid the need to call pkg-config. 20640See the pkg-config man page for more details." "$LINENO" 5 20641elif test $pkg_failed = untried; then 20642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20643printf "%s\n" "no" >&6; } 20644 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20645printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20646as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20647is in your PATH or set the PKG_CONFIG environment variable to the full 20648path to pkg-config. 20649 20650Alternatively, you may set the environment variables XCBPROTO_CFLAGS 20651and XCBPROTO_LIBS to avoid the need to call pkg-config. 20652See the pkg-config man page for more details. 20653 20654To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20655See \`config.log' for more details" "$LINENO" 5; } 20656else 20657 XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS 20658 XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS 20659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20660printf "%s\n" "yes" >&6; } 20661 20662fi 20663NEEDED="xau >= 0.99.2" 20664case $host_os in 20665linux*) ;; 20666 *) NEEDED="$NEEDED pthread-stubs" ;; 20667esac 20668 20669pkg_failed=no 20670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5 20671printf %s "checking for NEEDED... " >&6; } 20672 20673if test -n "$NEEDED_CFLAGS"; then 20674 pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS" 20675 elif test -n "$PKG_CONFIG"; then 20676 if test -n "$PKG_CONFIG" && \ 20677 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 20678 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 20679 ac_status=$? 20680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20681 test $ac_status = 0; }; then 20682 pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null` 20683 test "x$?" != "x0" && pkg_failed=yes 20684else 20685 pkg_failed=yes 20686fi 20687 else 20688 pkg_failed=untried 20689fi 20690if test -n "$NEEDED_LIBS"; then 20691 pkg_cv_NEEDED_LIBS="$NEEDED_LIBS" 20692 elif test -n "$PKG_CONFIG"; then 20693 if test -n "$PKG_CONFIG" && \ 20694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 20695 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 20696 ac_status=$? 20697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20698 test $ac_status = 0; }; then 20699 pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null` 20700 test "x$?" != "x0" && pkg_failed=yes 20701else 20702 pkg_failed=yes 20703fi 20704 else 20705 pkg_failed=untried 20706fi 20707 20708 20709 20710if test $pkg_failed = yes; then 20711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20712printf "%s\n" "no" >&6; } 20713 20714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20715 _pkg_short_errors_supported=yes 20716else 20717 _pkg_short_errors_supported=no 20718fi 20719 if test $_pkg_short_errors_supported = yes; then 20720 NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1` 20721 else 20722 NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1` 20723 fi 20724 # Put the nasty error message in config.log where it belongs 20725 echo "$NEEDED_PKG_ERRORS" >&5 20726 20727 as_fn_error $? "Package requirements ($NEEDED) were not met: 20728 20729$NEEDED_PKG_ERRORS 20730 20731Consider adjusting the PKG_CONFIG_PATH environment variable if you 20732installed software in a non-standard prefix. 20733 20734Alternatively, you may set the environment variables NEEDED_CFLAGS 20735and NEEDED_LIBS to avoid the need to call pkg-config. 20736See the pkg-config man page for more details." "$LINENO" 5 20737elif test $pkg_failed = untried; then 20738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20739printf "%s\n" "no" >&6; } 20740 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20741printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20742as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20743is in your PATH or set the PKG_CONFIG environment variable to the full 20744path to pkg-config. 20745 20746Alternatively, you may set the environment variables NEEDED_CFLAGS 20747and NEEDED_LIBS to avoid the need to call pkg-config. 20748See the pkg-config man page for more details. 20749 20750To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20751See \`config.log' for more details" "$LINENO" 5; } 20752else 20753 NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS 20754 NEEDED_LIBS=$pkg_cv_NEEDED_LIBS 20755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20756printf "%s\n" "yes" >&6; } 20757 20758fi 20759 20760have_xdmcp="no" 20761 20762pkg_failed=no 20763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 20764printf %s "checking for XDMCP... " >&6; } 20765 20766if test -n "$XDMCP_CFLAGS"; then 20767 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 20768 elif test -n "$PKG_CONFIG"; then 20769 if test -n "$PKG_CONFIG" && \ 20770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 20771 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 20772 ac_status=$? 20773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20774 test $ac_status = 0; }; then 20775 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 20776 test "x$?" != "x0" && pkg_failed=yes 20777else 20778 pkg_failed=yes 20779fi 20780 else 20781 pkg_failed=untried 20782fi 20783if test -n "$XDMCP_LIBS"; then 20784 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 20785 elif test -n "$PKG_CONFIG"; then 20786 if test -n "$PKG_CONFIG" && \ 20787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 20788 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 20789 ac_status=$? 20790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20791 test $ac_status = 0; }; then 20792 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 20793 test "x$?" != "x0" && pkg_failed=yes 20794else 20795 pkg_failed=yes 20796fi 20797 else 20798 pkg_failed=untried 20799fi 20800 20801 20802 20803if test $pkg_failed = yes; then 20804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20805printf "%s\n" "no" >&6; } 20806 20807if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20808 _pkg_short_errors_supported=yes 20809else 20810 _pkg_short_errors_supported=no 20811fi 20812 if test $_pkg_short_errors_supported = yes; then 20813 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 20814 else 20815 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 20816 fi 20817 # Put the nasty error message in config.log where it belongs 20818 echo "$XDMCP_PKG_ERRORS" >&5 20819 20820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20821printf "%s\n" "no" >&6; } 20822elif test $pkg_failed = untried; then 20823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20824printf "%s\n" "no" >&6; } 20825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20826printf "%s\n" "no" >&6; } 20827else 20828 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 20829 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 20830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20831printf "%s\n" "yes" >&6; } 20832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 20833printf %s "checking for XdmcpWrap in -lXdmcp... " >&6; } 20834if test ${ac_cv_lib_Xdmcp_XdmcpWrap+y} 20835then : 20836 printf %s "(cached) " >&6 20837else $as_nop 20838 ac_check_lib_save_LIBS=$LIBS 20839LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 20840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20841/* end confdefs.h. */ 20842 20843/* Override any GCC internal prototype to avoid an error. 20844 Use char because int might match the return type of a GCC 20845 builtin and then its argument prototype would still apply. */ 20846char XdmcpWrap (); 20847int 20848main (void) 20849{ 20850return XdmcpWrap (); 20851 ; 20852 return 0; 20853} 20854_ACEOF 20855if ac_fn_c_try_link "$LINENO" 20856then : 20857 ac_cv_lib_Xdmcp_XdmcpWrap=yes 20858else $as_nop 20859 ac_cv_lib_Xdmcp_XdmcpWrap=no 20860fi 20861rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20862 conftest$ac_exeext conftest.$ac_ext 20863LIBS=$ac_check_lib_save_LIBS 20864fi 20865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 20866printf "%s\n" "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 20867if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes 20868then : 20869 20870 20871printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h 20872 20873 NEEDED="$NEEDED xdmcp" 20874 have_xdmcp="yes" 20875 20876else $as_nop 20877 20878 XDMCP_CFLAGS= 20879 XDMCP_LIBS= 20880 20881fi 20882 20883fi 20884 20885 20886 20887# Find the xcb-proto protocol descriptions 20888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5 20889printf %s "checking XCBPROTO_XCBINCLUDEDIR... " >&6; } 20890XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto` 20891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5 20892printf "%s\n" "$XCBPROTO_XCBINCLUDEDIR" >&6; } 20893 20894 20895# Find the xcb-proto version 20896XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto` 20897 20898 20899# Find the xcbgen Python package 20900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5 20901printf %s "checking XCBPROTO_XCBPYTHONDIR... " >&6; } 20902XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto` 20903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5 20904printf "%s\n" "$XCBPROTO_XCBPYTHONDIR" >&6; } 20905 20906 20907# Autoupdate added the next two lines to ensure that your configure 20908# script's behavior did not change. They are probably safe to remove. 20909 20910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 20911printf %s "checking for egrep... " >&6; } 20912if test ${ac_cv_path_EGREP+y} 20913then : 20914 printf %s "(cached) " >&6 20915else $as_nop 20916 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 20917 then ac_cv_path_EGREP="$GREP -E" 20918 else 20919 if test -z "$EGREP"; then 20920 ac_path_EGREP_found=false 20921 # Loop through the user's path and test for each of PROGNAME-LIST 20922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20923for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 20924do 20925 IFS=$as_save_IFS 20926 case $as_dir in #((( 20927 '') as_dir=./ ;; 20928 */) ;; 20929 *) as_dir=$as_dir/ ;; 20930 esac 20931 for ac_prog in egrep 20932 do 20933 for ac_exec_ext in '' $ac_executable_extensions; do 20934 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 20935 as_fn_executable_p "$ac_path_EGREP" || continue 20936# Check for GNU ac_path_EGREP and select it if it is found. 20937 # Check for GNU $ac_path_EGREP 20938case `"$ac_path_EGREP" --version 2>&1` in 20939*GNU*) 20940 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 20941*) 20942 ac_count=0 20943 printf %s 0123456789 >"conftest.in" 20944 while : 20945 do 20946 cat "conftest.in" "conftest.in" >"conftest.tmp" 20947 mv "conftest.tmp" "conftest.in" 20948 cp "conftest.in" "conftest.nl" 20949 printf "%s\n" 'EGREP' >> "conftest.nl" 20950 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 20951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 20952 as_fn_arith $ac_count + 1 && ac_count=$as_val 20953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 20954 # Best one so far, save it but keep looking for a better one 20955 ac_cv_path_EGREP="$ac_path_EGREP" 20956 ac_path_EGREP_max=$ac_count 20957 fi 20958 # 10*(2^10) chars as input seems more than enough 20959 test $ac_count -gt 10 && break 20960 done 20961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 20962esac 20963 20964 $ac_path_EGREP_found && break 3 20965 done 20966 done 20967 done 20968IFS=$as_save_IFS 20969 if test -z "$ac_cv_path_EGREP"; then 20970 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 20971 fi 20972else 20973 ac_cv_path_EGREP=$EGREP 20974fi 20975 20976 fi 20977fi 20978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 20979printf "%s\n" "$ac_cv_path_EGREP" >&6; } 20980 EGREP="$ac_cv_path_EGREP" 20981 20982 20983 20984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 20985printf %s "checking for library containing getaddrinfo... " >&6; } 20986if test ${ac_cv_search_getaddrinfo+y} 20987then : 20988 printf %s "(cached) " >&6 20989else $as_nop 20990 ac_func_search_save_LIBS=$LIBS 20991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20992/* end confdefs.h. */ 20993 20994/* Override any GCC internal prototype to avoid an error. 20995 Use char because int might match the return type of a GCC 20996 builtin and then its argument prototype would still apply. */ 20997char getaddrinfo (); 20998int 20999main (void) 21000{ 21001return getaddrinfo (); 21002 ; 21003 return 0; 21004} 21005_ACEOF 21006for ac_lib in '' socket 21007do 21008 if test -z "$ac_lib"; then 21009 ac_res="none required" 21010 else 21011 ac_res=-l$ac_lib 21012 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21013 fi 21014 if ac_fn_c_try_link "$LINENO" 21015then : 21016 ac_cv_search_getaddrinfo=$ac_res 21017fi 21018rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21019 conftest$ac_exeext 21020 if test ${ac_cv_search_getaddrinfo+y} 21021then : 21022 break 21023fi 21024done 21025if test ${ac_cv_search_getaddrinfo+y} 21026then : 21027 21028else $as_nop 21029 ac_cv_search_getaddrinfo=no 21030fi 21031rm conftest.$ac_ext 21032LIBS=$ac_func_search_save_LIBS 21033fi 21034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 21035printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; } 21036ac_res=$ac_cv_search_getaddrinfo 21037if test "$ac_res" != no 21038then : 21039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21040 21041fi 21042 21043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 21044printf %s "checking for library containing connect... " >&6; } 21045if test ${ac_cv_search_connect+y} 21046then : 21047 printf %s "(cached) " >&6 21048else $as_nop 21049 ac_func_search_save_LIBS=$LIBS 21050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21051/* end confdefs.h. */ 21052 21053/* Override any GCC internal prototype to avoid an error. 21054 Use char because int might match the return type of a GCC 21055 builtin and then its argument prototype would still apply. */ 21056char connect (); 21057int 21058main (void) 21059{ 21060return connect (); 21061 ; 21062 return 0; 21063} 21064_ACEOF 21065for ac_lib in '' socket 21066do 21067 if test -z "$ac_lib"; then 21068 ac_res="none required" 21069 else 21070 ac_res=-l$ac_lib 21071 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21072 fi 21073 if ac_fn_c_try_link "$LINENO" 21074then : 21075 ac_cv_search_connect=$ac_res 21076fi 21077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21078 conftest$ac_exeext 21079 if test ${ac_cv_search_connect+y} 21080then : 21081 break 21082fi 21083done 21084if test ${ac_cv_search_connect+y} 21085then : 21086 21087else $as_nop 21088 ac_cv_search_connect=no 21089fi 21090rm conftest.$ac_ext 21091LIBS=$ac_func_search_save_LIBS 21092fi 21093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 21094printf "%s\n" "$ac_cv_search_connect" >&6; } 21095ac_res=$ac_cv_search_connect 21096if test "$ac_res" != no 21097then : 21098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21099 21100fi 21101 21102 21103# Find support for sending a message from a socket 21104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 21105printf %s "checking for library containing sendmsg... " >&6; } 21106if test ${ac_cv_search_sendmsg+y} 21107then : 21108 printf %s "(cached) " >&6 21109else $as_nop 21110 ac_func_search_save_LIBS=$LIBS 21111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21112/* end confdefs.h. */ 21113 21114/* Override any GCC internal prototype to avoid an error. 21115 Use char because int might match the return type of a GCC 21116 builtin and then its argument prototype would still apply. */ 21117char sendmsg (); 21118int 21119main (void) 21120{ 21121return sendmsg (); 21122 ; 21123 return 0; 21124} 21125_ACEOF 21126for ac_lib in '' socket 21127do 21128 if test -z "$ac_lib"; then 21129 ac_res="none required" 21130 else 21131 ac_res=-l$ac_lib 21132 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21133 fi 21134 if ac_fn_c_try_link "$LINENO" 21135then : 21136 ac_cv_search_sendmsg=$ac_res 21137fi 21138rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21139 conftest$ac_exeext 21140 if test ${ac_cv_search_sendmsg+y} 21141then : 21142 break 21143fi 21144done 21145if test ${ac_cv_search_sendmsg+y} 21146then : 21147 21148else $as_nop 21149 ac_cv_search_sendmsg=no 21150fi 21151rm conftest.$ac_ext 21152LIBS=$ac_func_search_save_LIBS 21153fi 21154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 21155printf "%s\n" "$ac_cv_search_sendmsg" >&6; } 21156ac_res=$ac_cv_search_sendmsg 21157if test "$ac_res" != no 21158then : 21159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21160 have_sendmsg="yes" 21161else $as_nop 21162 have_sendmsg="no" 21163fi 21164 21165 21166# XPG4v2/UNIX95 added msg_control - check to see if we need to define 21167# _XOPEN_SOURCE to get it (such as on Solaris) 21168ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21169$ac_includes_default 21170#include <sys/socket.h> 21171 21172" 21173if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21174then : 21175 21176fi 21177 21178# First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 21179if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21180 unset ac_cv_member_struct_msghdr_msg_control 21181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 21182printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 21183 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21184#define _XOPEN_SOURCE 600 21185$ac_includes_default 21186#include <sys/socket.h> 21187 21188" 21189if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21190then : 21191 21192printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 21193 21194 21195fi 21196 21197fi 21198# If that didn't work, fall back to XPG5/UNIX98 with C89 21199if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21200 unset ac_cv_member_struct_msghdr_msg_control 21201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 21202printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 21203 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21204#define _XOPEN_SOURCE 500 21205$ac_includes_default 21206#include <sys/socket.h> 21207 21208" 21209if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21210then : 21211 21212printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 21213 21214 21215else $as_nop 21216 have_sendmsg="no" 21217fi 21218 21219fi 21220 21221case x$have_sendmsg in 21222xyes) 21223 21224printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h 21225 21226 ;; 21227esac 21228 21229have_win32="no" 21230lt_enable_auto_import="" 21231case $host_os in 21232mingw*) 21233 have_win32="yes" 21234 lt_enable_auto_import="-Wl,--enable-auto-import" 21235 ;; 21236linux*) 21237 21238printf "%s\n" "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h 21239 21240 ;; 21241esac 21242 21243 21244 if test "x${have_win32}" = "xyes"; then 21245 XCB_HAVE_WIN32_TRUE= 21246 XCB_HAVE_WIN32_FALSE='#' 21247else 21248 XCB_HAVE_WIN32_TRUE='#' 21249 XCB_HAVE_WIN32_FALSE= 21250fi 21251 21252 21253 21254# Check whether --with-queue-size was given. 21255if test ${with_queue_size+y} 21256then : 21257 withval=$with_queue_size; xcb_queue_buffer_size="$withval" 21258else $as_nop 21259 xcb_queue_buffer_size=16384 21260fi 21261 21262 21263printf "%s\n" "#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size" >>confdefs.h 21264 21265 21266ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h> 21267 #include <sys/un.h> 21268 21269" 21270if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes 21271then : 21272 21273printf "%s\n" "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h 21274 21275fi 21276 21277 21278ac_fn_c_check_header_compile "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default" 21279if test "x$ac_cv_header_tsol_label_h" = xyes 21280then : 21281 printf "%s\n" "#define HAVE_TSOL_LABEL_H 1" >>confdefs.h 21282 21283fi 21284 21285ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled" 21286if test "x$ac_cv_func_is_system_labeled" = xyes 21287then : 21288 printf "%s\n" "#define HAVE_IS_SYSTEM_LABELED 1" >>confdefs.h 21289 21290fi 21291 21292 21293ac_fn_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h> 21294" "$ac_c_undeclared_builtin_options" "CFLAGS" 21295if test "x$ac_cv_have_decl_IOV_MAX" = xyes 21296then : 21297 21298else $as_nop 21299 ac_fn_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h> 21300" "$ac_c_undeclared_builtin_options" "CFLAGS" 21301if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes 21302then : 21303 printf "%s\n" "#define IOV_MAX UIO_MAXIOV" >>confdefs.h 21304 21305else $as_nop 21306 21307printf "%s\n" "#define IOV_MAX 16" >>confdefs.h 21308 21309fi 21310fi 21311 21312xcbincludedir='${includedir}/xcb' 21313 21314 21315 21316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5 21317printf %s "checking whether ${CC} supports symbol visibility... " >&6; } 21318 21319save_CFLAGS=${CFLAGS} 21320CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden" 21321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21322/* end confdefs.h. */ 21323 21324#pragma GCC visibility push(hidden) 21325extern void f(int); 21326#pragma GCC visibility pop 21327 21328int 21329main (void) 21330{ 21331 21332 21333 ; 21334 return 0; 21335} 21336_ACEOF 21337if ac_fn_c_try_compile "$LINENO" 21338then : 21339 21340printf "%s\n" "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h 21341 21342 : 21343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21344printf "%s\n" "yes" >&6; } 21345else $as_nop 21346 : 21347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21348printf "%s\n" "no" >&6; } 21349fi 21350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21351 21352CFLAGS=${save_CFLAGS} 21353 21354 21355ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 21356if test "x$ac_cv_func_getaddrinfo" = xyes 21357then : 21358 21359printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 21360 21361fi 21362 21363 21364case $host_os in 21365 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 21366 darwin[789]*|darwin10*) ;; 21367 darwin*) 21368 _ac_xorg_macosx_version_min="" 21369 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 21370 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 21371 else 21372 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 21373 fi 21374 case $_ac_xorg_macosx_version_min in 21375 10.[0123456]|10.[0123456].*) ;; 21376 *) 21377 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 21378if test "x$ac_cv_func_poll" = xyes 21379then : 21380 21381printf "%s\n" "#define USE_POLL 1" >>confdefs.h 21382 21383fi 21384 21385 ;; 21386 esac 21387 unset _ac_xorg_macosx_version_min 21388 ;; 21389 *) 21390 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 21391if test "x$ac_cv_func_poll" = xyes 21392then : 21393 21394printf "%s\n" "#define USE_POLL 1" >>confdefs.h 21395 21396fi 21397 21398 ;; 21399esac 21400 21401case $host_os in 21402 *mingw*) 21403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21404printf %s "checking for main in -lws2_32... " >&6; } 21405if test ${ac_cv_lib_ws2_32_main+y} 21406then : 21407 printf %s "(cached) " >&6 21408else $as_nop 21409 ac_check_lib_save_LIBS=$LIBS 21410LIBS="-lws2_32 $LIBS" 21411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21412/* end confdefs.h. */ 21413 21414 21415int 21416main (void) 21417{ 21418return main (); 21419 ; 21420 return 0; 21421} 21422_ACEOF 21423if ac_fn_c_try_link "$LINENO" 21424then : 21425 ac_cv_lib_ws2_32_main=yes 21426else $as_nop 21427 ac_cv_lib_ws2_32_main=no 21428fi 21429rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21430 conftest$ac_exeext conftest.$ac_ext 21431LIBS=$ac_check_lib_save_LIBS 21432fi 21433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 21434printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 21435if test "x$ac_cv_lib_ws2_32_main" = xyes 21436then : 21437 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 21438 21439 LIBS="-lws2_32 $LIBS" 21440 21441fi 21442 21443 ;; 21444 *) 21445 ;; 21446esac 21447 21448 21449# Check whether --enable-composite was given. 21450if test ${enable_composite+y} 21451then : 21452 enableval=$enable_composite; BUILD_COMPOSITE=$enableval 21453else $as_nop 21454 BUILD_COMPOSITE=yes 21455fi 21456 21457 21458 21459 if test "x$BUILD_COMPOSITE" = "xyes"; then 21460 BUILD_COMPOSITE_TRUE= 21461 BUILD_COMPOSITE_FALSE='#' 21462else 21463 BUILD_COMPOSITE_TRUE='#' 21464 BUILD_COMPOSITE_FALSE= 21465fi 21466 21467 21468 21469# Check whether --enable-damage was given. 21470if test ${enable_damage+y} 21471then : 21472 enableval=$enable_damage; BUILD_DAMAGE=$enableval 21473else $as_nop 21474 BUILD_DAMAGE=yes 21475fi 21476 21477 21478 21479 if test "x$BUILD_DAMAGE" = "xyes"; then 21480 BUILD_DAMAGE_TRUE= 21481 BUILD_DAMAGE_FALSE='#' 21482else 21483 BUILD_DAMAGE_TRUE='#' 21484 BUILD_DAMAGE_FALSE= 21485fi 21486 21487 21488 21489# Check whether --enable-dpms was given. 21490if test ${enable_dpms+y} 21491then : 21492 enableval=$enable_dpms; BUILD_DPMS=$enableval 21493else $as_nop 21494 BUILD_DPMS=yes 21495fi 21496 21497 21498 21499 if test "x$BUILD_DPMS" = "xyes"; then 21500 BUILD_DPMS_TRUE= 21501 BUILD_DPMS_FALSE='#' 21502else 21503 BUILD_DPMS_TRUE='#' 21504 BUILD_DPMS_FALSE= 21505fi 21506 21507 21508 21509# Check whether --enable-dri2 was given. 21510if test ${enable_dri2+y} 21511then : 21512 enableval=$enable_dri2; BUILD_DRI2=$enableval 21513else $as_nop 21514 BUILD_DRI2=yes 21515fi 21516 21517 21518 21519 if test "x$BUILD_DRI2" = "xyes"; then 21520 BUILD_DRI2_TRUE= 21521 BUILD_DRI2_FALSE='#' 21522else 21523 BUILD_DRI2_TRUE='#' 21524 BUILD_DRI2_FALSE= 21525fi 21526 21527 21528 21529# Check whether --enable-dri3 was given. 21530if test ${enable_dri3+y} 21531then : 21532 enableval=$enable_dri3; BUILD_DRI3=$enableval 21533else $as_nop 21534 BUILD_DRI3=auto 21535fi 21536 21537 21538# This extension has a default value of "auto" and depends on the value of $have_sendmsg 21539if test "x$BUILD_DRI3" = "xauto" ; then 21540 BUILD_DRI3=$have_sendmsg 21541fi 21542if test "x$BUILD_DRI3" = "xyes" ; then 21543 if test "x$have_sendmsg" = "xno" ; then 21544 as_fn_error $? "Extension DRI3 requested, but dependencies are not met" "$LINENO" 5 21545 fi 21546fi 21547 21548 if test "x$BUILD_DRI3" = "xyes"; then 21549 BUILD_DRI3_TRUE= 21550 BUILD_DRI3_FALSE='#' 21551else 21552 BUILD_DRI3_TRUE='#' 21553 BUILD_DRI3_FALSE= 21554fi 21555 21556 21557 21558# Check whether --enable-ge was given. 21559if test ${enable_ge+y} 21560then : 21561 enableval=$enable_ge; BUILD_GE=$enableval 21562else $as_nop 21563 BUILD_GE=no 21564fi 21565 21566 21567 21568 if test "x$BUILD_GE" = "xyes"; then 21569 BUILD_GE_TRUE= 21570 BUILD_GE_FALSE='#' 21571else 21572 BUILD_GE_TRUE='#' 21573 BUILD_GE_FALSE= 21574fi 21575 21576 21577 21578# Check whether --enable-glx was given. 21579if test ${enable_glx+y} 21580then : 21581 enableval=$enable_glx; BUILD_GLX=$enableval 21582else $as_nop 21583 BUILD_GLX=yes 21584fi 21585 21586 21587 21588 if test "x$BUILD_GLX" = "xyes"; then 21589 BUILD_GLX_TRUE= 21590 BUILD_GLX_FALSE='#' 21591else 21592 BUILD_GLX_TRUE='#' 21593 BUILD_GLX_FALSE= 21594fi 21595 21596 21597 21598# Check whether --enable-present was given. 21599if test ${enable_present+y} 21600then : 21601 enableval=$enable_present; BUILD_PRESENT=$enableval 21602else $as_nop 21603 BUILD_PRESENT=yes 21604fi 21605 21606 21607 21608 if test "x$BUILD_PRESENT" = "xyes"; then 21609 BUILD_PRESENT_TRUE= 21610 BUILD_PRESENT_FALSE='#' 21611else 21612 BUILD_PRESENT_TRUE='#' 21613 BUILD_PRESENT_FALSE= 21614fi 21615 21616 21617 21618# Check whether --enable-randr was given. 21619if test ${enable_randr+y} 21620then : 21621 enableval=$enable_randr; BUILD_RANDR=$enableval 21622else $as_nop 21623 BUILD_RANDR=yes 21624fi 21625 21626 21627 21628 if test "x$BUILD_RANDR" = "xyes"; then 21629 BUILD_RANDR_TRUE= 21630 BUILD_RANDR_FALSE='#' 21631else 21632 BUILD_RANDR_TRUE='#' 21633 BUILD_RANDR_FALSE= 21634fi 21635 21636 21637 21638# Check whether --enable-record was given. 21639if test ${enable_record+y} 21640then : 21641 enableval=$enable_record; BUILD_RECORD=$enableval 21642else $as_nop 21643 BUILD_RECORD=yes 21644fi 21645 21646 21647 21648 if test "x$BUILD_RECORD" = "xyes"; then 21649 BUILD_RECORD_TRUE= 21650 BUILD_RECORD_FALSE='#' 21651else 21652 BUILD_RECORD_TRUE='#' 21653 BUILD_RECORD_FALSE= 21654fi 21655 21656 21657 21658# Check whether --enable-render was given. 21659if test ${enable_render+y} 21660then : 21661 enableval=$enable_render; BUILD_RENDER=$enableval 21662else $as_nop 21663 BUILD_RENDER=yes 21664fi 21665 21666 21667 21668 if test "x$BUILD_RENDER" = "xyes"; then 21669 BUILD_RENDER_TRUE= 21670 BUILD_RENDER_FALSE='#' 21671else 21672 BUILD_RENDER_TRUE='#' 21673 BUILD_RENDER_FALSE= 21674fi 21675 21676 21677 21678# Check whether --enable-resource was given. 21679if test ${enable_resource+y} 21680then : 21681 enableval=$enable_resource; BUILD_RESOURCE=$enableval 21682else $as_nop 21683 BUILD_RESOURCE=yes 21684fi 21685 21686 21687 21688 if test "x$BUILD_RESOURCE" = "xyes"; then 21689 BUILD_RESOURCE_TRUE= 21690 BUILD_RESOURCE_FALSE='#' 21691else 21692 BUILD_RESOURCE_TRUE='#' 21693 BUILD_RESOURCE_FALSE= 21694fi 21695 21696 21697 21698# Check whether --enable-screensaver was given. 21699if test ${enable_screensaver+y} 21700then : 21701 enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval 21702else $as_nop 21703 BUILD_SCREENSAVER=yes 21704fi 21705 21706 21707 21708 if test "x$BUILD_SCREENSAVER" = "xyes"; then 21709 BUILD_SCREENSAVER_TRUE= 21710 BUILD_SCREENSAVER_FALSE='#' 21711else 21712 BUILD_SCREENSAVER_TRUE='#' 21713 BUILD_SCREENSAVER_FALSE= 21714fi 21715 21716 21717 21718# Check whether --enable-shape was given. 21719if test ${enable_shape+y} 21720then : 21721 enableval=$enable_shape; BUILD_SHAPE=$enableval 21722else $as_nop 21723 BUILD_SHAPE=yes 21724fi 21725 21726 21727 21728 if test "x$BUILD_SHAPE" = "xyes"; then 21729 BUILD_SHAPE_TRUE= 21730 BUILD_SHAPE_FALSE='#' 21731else 21732 BUILD_SHAPE_TRUE='#' 21733 BUILD_SHAPE_FALSE= 21734fi 21735 21736 21737 21738# Check whether --enable-shm was given. 21739if test ${enable_shm+y} 21740then : 21741 enableval=$enable_shm; BUILD_SHM=$enableval 21742else $as_nop 21743 BUILD_SHM=yes 21744fi 21745 21746 21747 21748 if test "x$BUILD_SHM" = "xyes"; then 21749 BUILD_SHM_TRUE= 21750 BUILD_SHM_FALSE='#' 21751else 21752 BUILD_SHM_TRUE='#' 21753 BUILD_SHM_FALSE= 21754fi 21755 21756 21757 21758# Check whether --enable-sync was given. 21759if test ${enable_sync+y} 21760then : 21761 enableval=$enable_sync; BUILD_SYNC=$enableval 21762else $as_nop 21763 BUILD_SYNC=yes 21764fi 21765 21766 21767 21768 if test "x$BUILD_SYNC" = "xyes"; then 21769 BUILD_SYNC_TRUE= 21770 BUILD_SYNC_FALSE='#' 21771else 21772 BUILD_SYNC_TRUE='#' 21773 BUILD_SYNC_FALSE= 21774fi 21775 21776 21777 21778# Check whether --enable-xevie was given. 21779if test ${enable_xevie+y} 21780then : 21781 enableval=$enable_xevie; BUILD_XEVIE=$enableval 21782else $as_nop 21783 BUILD_XEVIE=no 21784fi 21785 21786 21787 21788 if test "x$BUILD_XEVIE" = "xyes"; then 21789 BUILD_XEVIE_TRUE= 21790 BUILD_XEVIE_FALSE='#' 21791else 21792 BUILD_XEVIE_TRUE='#' 21793 BUILD_XEVIE_FALSE= 21794fi 21795 21796 21797 21798# Check whether --enable-xfixes was given. 21799if test ${enable_xfixes+y} 21800then : 21801 enableval=$enable_xfixes; BUILD_XFIXES=$enableval 21802else $as_nop 21803 BUILD_XFIXES=yes 21804fi 21805 21806 21807 21808 if test "x$BUILD_XFIXES" = "xyes"; then 21809 BUILD_XFIXES_TRUE= 21810 BUILD_XFIXES_FALSE='#' 21811else 21812 BUILD_XFIXES_TRUE='#' 21813 BUILD_XFIXES_FALSE= 21814fi 21815 21816 21817 21818# Check whether --enable-xfree86-dri was given. 21819if test ${enable_xfree86_dri+y} 21820then : 21821 enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval 21822else $as_nop 21823 BUILD_XFREE86_DRI=yes 21824fi 21825 21826 21827 21828 if test "x$BUILD_XFREE86_DRI" = "xyes"; then 21829 BUILD_XFREE86_DRI_TRUE= 21830 BUILD_XFREE86_DRI_FALSE='#' 21831else 21832 BUILD_XFREE86_DRI_TRUE='#' 21833 BUILD_XFREE86_DRI_FALSE= 21834fi 21835 21836 21837 21838# Check whether --enable-xinerama was given. 21839if test ${enable_xinerama+y} 21840then : 21841 enableval=$enable_xinerama; BUILD_XINERAMA=$enableval 21842else $as_nop 21843 BUILD_XINERAMA=yes 21844fi 21845 21846 21847 21848 if test "x$BUILD_XINERAMA" = "xyes"; then 21849 BUILD_XINERAMA_TRUE= 21850 BUILD_XINERAMA_FALSE='#' 21851else 21852 BUILD_XINERAMA_TRUE='#' 21853 BUILD_XINERAMA_FALSE= 21854fi 21855 21856 21857 21858# Check whether --enable-xinput was given. 21859if test ${enable_xinput+y} 21860then : 21861 enableval=$enable_xinput; BUILD_XINPUT=$enableval 21862else $as_nop 21863 BUILD_XINPUT=yes 21864fi 21865 21866 21867 21868 if test "x$BUILD_XINPUT" = "xyes"; then 21869 BUILD_XINPUT_TRUE= 21870 BUILD_XINPUT_FALSE='#' 21871else 21872 BUILD_XINPUT_TRUE='#' 21873 BUILD_XINPUT_FALSE= 21874fi 21875 21876 21877 21878# Check whether --enable-xkb was given. 21879if test ${enable_xkb+y} 21880then : 21881 enableval=$enable_xkb; BUILD_XKB=$enableval 21882else $as_nop 21883 BUILD_XKB=yes 21884fi 21885 21886 21887 21888 if test "x$BUILD_XKB" = "xyes"; then 21889 BUILD_XKB_TRUE= 21890 BUILD_XKB_FALSE='#' 21891else 21892 BUILD_XKB_TRUE='#' 21893 BUILD_XKB_FALSE= 21894fi 21895 21896 21897 21898# Check whether --enable-xprint was given. 21899if test ${enable_xprint+y} 21900then : 21901 enableval=$enable_xprint; BUILD_XPRINT=$enableval 21902else $as_nop 21903 BUILD_XPRINT=no 21904fi 21905 21906 21907 21908 if test "x$BUILD_XPRINT" = "xyes"; then 21909 BUILD_XPRINT_TRUE= 21910 BUILD_XPRINT_FALSE='#' 21911else 21912 BUILD_XPRINT_TRUE='#' 21913 BUILD_XPRINT_FALSE= 21914fi 21915 21916 21917 21918# Check whether --enable-selinux was given. 21919if test ${enable_selinux+y} 21920then : 21921 enableval=$enable_selinux; BUILD_SELINUX=$enableval 21922else $as_nop 21923 BUILD_SELINUX=no 21924fi 21925 21926 21927 21928 if test "x$BUILD_SELINUX" = "xyes"; then 21929 BUILD_SELINUX_TRUE= 21930 BUILD_SELINUX_FALSE='#' 21931else 21932 BUILD_SELINUX_TRUE='#' 21933 BUILD_SELINUX_FALSE= 21934fi 21935 21936 21937 21938# Check whether --enable-xtest was given. 21939if test ${enable_xtest+y} 21940then : 21941 enableval=$enable_xtest; BUILD_XTEST=$enableval 21942else $as_nop 21943 BUILD_XTEST=yes 21944fi 21945 21946 21947 21948 if test "x$BUILD_XTEST" = "xyes"; then 21949 BUILD_XTEST_TRUE= 21950 BUILD_XTEST_FALSE='#' 21951else 21952 BUILD_XTEST_TRUE='#' 21953 BUILD_XTEST_FALSE= 21954fi 21955 21956 21957 21958# Check whether --enable-xv was given. 21959if test ${enable_xv+y} 21960then : 21961 enableval=$enable_xv; BUILD_XV=$enableval 21962else $as_nop 21963 BUILD_XV=yes 21964fi 21965 21966 21967 21968 if test "x$BUILD_XV" = "xyes"; then 21969 BUILD_XV_TRUE= 21970 BUILD_XV_FALSE='#' 21971else 21972 BUILD_XV_TRUE='#' 21973 BUILD_XV_FALSE= 21974fi 21975 21976 21977 21978# Check whether --enable-xvmc was given. 21979if test ${enable_xvmc+y} 21980then : 21981 enableval=$enable_xvmc; BUILD_XVMC=$enableval 21982else $as_nop 21983 BUILD_XVMC=yes 21984fi 21985 21986 21987 21988 if test "x$BUILD_XVMC" = "xyes"; then 21989 BUILD_XVMC_TRUE= 21990 BUILD_XVMC_FALSE='#' 21991else 21992 BUILD_XVMC_TRUE='#' 21993 BUILD_XVMC_FALSE= 21994fi 21995 21996 21997 21998 21999# Check whether --with-launchd was given. 22000if test ${with_launchd+y} 22001then : 22002 withval=$with_launchd; LAUNCHD=$withval 22003else $as_nop 22004 LAUNCHD=auto 22005fi 22006 22007if test "x$LAUNCHD" = xauto; then 22008 unset LAUNCHD 22009 # Extract the first word of "launchd", so it can be a program name with args. 22010set dummy launchd; ac_word=$2 22011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22012printf %s "checking for $ac_word... " >&6; } 22013if test ${ac_cv_prog_LAUNCHD+y} 22014then : 22015 printf %s "(cached) " >&6 22016else $as_nop 22017 if test -n "$LAUNCHD"; then 22018 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 22019else 22020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22021for as_dir in $PATH$PATH_SEPARATOR/sbin 22022do 22023 IFS=$as_save_IFS 22024 case $as_dir in #((( 22025 '') as_dir=./ ;; 22026 */) ;; 22027 *) as_dir=$as_dir/ ;; 22028 esac 22029 for ac_exec_ext in '' $ac_executable_extensions; do 22030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22031 ac_cv_prog_LAUNCHD="yes" 22032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22033 break 2 22034 fi 22035done 22036 done 22037IFS=$as_save_IFS 22038 22039 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 22040fi 22041fi 22042LAUNCHD=$ac_cv_prog_LAUNCHD 22043if test -n "$LAUNCHD"; then 22044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 22045printf "%s\n" "$LAUNCHD" >&6; } 22046else 22047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22048printf "%s\n" "no" >&6; } 22049fi 22050 22051 22052fi 22053 22054if test "x$LAUNCHD" = xyes ; then 22055 22056printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h 22057 22058fi 22059 22060 22061# Check whether --with-serverside-support was given. 22062if test ${with_serverside_support+y} 22063then : 22064 withval=$with_serverside_support; XCB_SERVERSIDE_SUPPORT=$withval 22065else $as_nop 22066 XCB_SERVERSIDE_SUPPORT=no 22067fi 22068 22069 22070 if test "x$XCB_SERVERSIDE_SUPPORT" = "xyes"; then 22071 XCB_SERVERSIDE_SUPPORT_TRUE= 22072 XCB_SERVERSIDE_SUPPORT_FALSE='#' 22073else 22074 XCB_SERVERSIDE_SUPPORT_TRUE='#' 22075 XCB_SERVERSIDE_SUPPORT_FALSE= 22076fi 22077 22078 22079ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile" 22080 22081 22082ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.pc xcb-ge.pc xcb-glx.pc xcb-present.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc" 22083 22084 22085ac_config_files="$ac_config_files doc/xcb.doxygen" 22086 22087 22088cat >confcache <<\_ACEOF 22089# This file is a shell script that caches the results of configure 22090# tests run on this system so they can be shared between configure 22091# scripts and configure runs, see configure's option --config-cache. 22092# It is not useful on other systems. If it contains results you don't 22093# want to keep, you may remove or edit it. 22094# 22095# config.status only pays attention to the cache file if you give it 22096# the --recheck option to rerun configure. 22097# 22098# `ac_cv_env_foo' variables (set or unset) will be overridden when 22099# loading this file, other *unset* `ac_cv_foo' will be assigned the 22100# following values. 22101 22102_ACEOF 22103 22104# The following way of writing the cache mishandles newlines in values, 22105# but we know of no workaround that is simple, portable, and efficient. 22106# So, we kill variables containing newlines. 22107# Ultrix sh set writes to stderr and can't be redirected directly, 22108# and sets the high bit in the cache file unless we assign to the vars. 22109( 22110 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22111 eval ac_val=\$$ac_var 22112 case $ac_val in #( 22113 *${as_nl}*) 22114 case $ac_var in #( 22115 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22116printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22117 esac 22118 case $ac_var in #( 22119 _ | IFS | as_nl) ;; #( 22120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22121 *) { eval $ac_var=; unset $ac_var;} ;; 22122 esac ;; 22123 esac 22124 done 22125 22126 (set) 2>&1 | 22127 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22128 *${as_nl}ac_space=\ *) 22129 # `set' does not quote correctly, so add quotes: double-quote 22130 # substitution turns \\\\ into \\, and sed turns \\ into \. 22131 sed -n \ 22132 "s/'/'\\\\''/g; 22133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22134 ;; #( 22135 *) 22136 # `set' quotes correctly as required by POSIX, so do not add quotes. 22137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22138 ;; 22139 esac | 22140 sort 22141) | 22142 sed ' 22143 /^ac_cv_env_/b end 22144 t clear 22145 :clear 22146 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 22147 t end 22148 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22149 :end' >>confcache 22150if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22151 if test -w "$cache_file"; then 22152 if test "x$cache_file" != "x/dev/null"; then 22153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22154printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 22155 if test ! -f "$cache_file" || test -h "$cache_file"; then 22156 cat confcache >"$cache_file" 22157 else 22158 case $cache_file in #( 22159 */* | ?:*) 22160 mv -f confcache "$cache_file"$$ && 22161 mv -f "$cache_file"$$ "$cache_file" ;; #( 22162 *) 22163 mv -f confcache "$cache_file" ;; 22164 esac 22165 fi 22166 fi 22167 else 22168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22169printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 22170 fi 22171fi 22172rm -f confcache 22173 22174test "x$prefix" = xNONE && prefix=$ac_default_prefix 22175# Let make expand exec_prefix. 22176test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22177 22178DEFS=-DHAVE_CONFIG_H 22179 22180ac_libobjs= 22181ac_ltlibobjs= 22182U= 22183for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22184 # 1. Remove the extension, and $U if already installed. 22185 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22186 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 22187 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22188 # will be set to the directory where LIBOBJS objects are built. 22189 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22190 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22191done 22192LIBOBJS=$ac_libobjs 22193 22194LTLIBOBJS=$ac_ltlibobjs 22195 22196 22197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22198printf %s "checking that generated files are newer than configure... " >&6; } 22199 if test -n "$am_sleep_pid"; then 22200 # Hide warnings about reused PIDs. 22201 wait $am_sleep_pid 2>/dev/null 22202 fi 22203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 22204printf "%s\n" "done" >&6; } 22205 if test -n "$EXEEXT"; then 22206 am__EXEEXT_TRUE= 22207 am__EXEEXT_FALSE='#' 22208else 22209 am__EXEEXT_TRUE='#' 22210 am__EXEEXT_FALSE= 22211fi 22212 22213if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22214 as_fn_error $? "conditional \"AMDEP\" was never defined. 22215Usually this means the macro was only invoked conditionally." "$LINENO" 5 22216fi 22217if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22218 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22219Usually this means the macro was only invoked conditionally." "$LINENO" 5 22220fi 22221if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 22222 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 22223Usually this means the macro was only invoked conditionally." "$LINENO" 5 22224fi 22225if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 22226 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 22227Usually this means the macro was only invoked conditionally." "$LINENO" 5 22228fi 22229if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 22230 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 22231Usually this means the macro was only invoked conditionally." "$LINENO" 5 22232fi 22233if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then 22234 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined. 22235Usually this means the macro was only invoked conditionally." "$LINENO" 5 22236fi 22237if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then 22238 as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined. 22239Usually this means the macro was only invoked conditionally." "$LINENO" 5 22240fi 22241if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then 22242 as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined. 22243Usually this means the macro was only invoked conditionally." "$LINENO" 5 22244fi 22245if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then 22246 as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined. 22247Usually this means the macro was only invoked conditionally." "$LINENO" 5 22248fi 22249if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then 22250 as_fn_error $? "conditional \"BUILD_DPMS\" was never defined. 22251Usually this means the macro was only invoked conditionally." "$LINENO" 5 22252fi 22253if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then 22254 as_fn_error $? "conditional \"BUILD_DRI2\" was never defined. 22255Usually this means the macro was only invoked conditionally." "$LINENO" 5 22256fi 22257if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then 22258 as_fn_error $? "conditional \"BUILD_DRI3\" was never defined. 22259Usually this means the macro was only invoked conditionally." "$LINENO" 5 22260fi 22261if test -z "${BUILD_GE_TRUE}" && test -z "${BUILD_GE_FALSE}"; then 22262 as_fn_error $? "conditional \"BUILD_GE\" was never defined. 22263Usually this means the macro was only invoked conditionally." "$LINENO" 5 22264fi 22265if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then 22266 as_fn_error $? "conditional \"BUILD_GLX\" was never defined. 22267Usually this means the macro was only invoked conditionally." "$LINENO" 5 22268fi 22269if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then 22270 as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined. 22271Usually this means the macro was only invoked conditionally." "$LINENO" 5 22272fi 22273if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then 22274 as_fn_error $? "conditional \"BUILD_RANDR\" was never defined. 22275Usually this means the macro was only invoked conditionally." "$LINENO" 5 22276fi 22277if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then 22278 as_fn_error $? "conditional \"BUILD_RECORD\" was never defined. 22279Usually this means the macro was only invoked conditionally." "$LINENO" 5 22280fi 22281if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then 22282 as_fn_error $? "conditional \"BUILD_RENDER\" was never defined. 22283Usually this means the macro was only invoked conditionally." "$LINENO" 5 22284fi 22285if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then 22286 as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined. 22287Usually this means the macro was only invoked conditionally." "$LINENO" 5 22288fi 22289if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then 22290 as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined. 22291Usually this means the macro was only invoked conditionally." "$LINENO" 5 22292fi 22293if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then 22294 as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined. 22295Usually this means the macro was only invoked conditionally." "$LINENO" 5 22296fi 22297if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then 22298 as_fn_error $? "conditional \"BUILD_SHM\" was never defined. 22299Usually this means the macro was only invoked conditionally." "$LINENO" 5 22300fi 22301if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then 22302 as_fn_error $? "conditional \"BUILD_SYNC\" was never defined. 22303Usually this means the macro was only invoked conditionally." "$LINENO" 5 22304fi 22305if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then 22306 as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined. 22307Usually this means the macro was only invoked conditionally." "$LINENO" 5 22308fi 22309if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then 22310 as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined. 22311Usually this means the macro was only invoked conditionally." "$LINENO" 5 22312fi 22313if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then 22314 as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined. 22315Usually this means the macro was only invoked conditionally." "$LINENO" 5 22316fi 22317if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then 22318 as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined. 22319Usually this means the macro was only invoked conditionally." "$LINENO" 5 22320fi 22321if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then 22322 as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined. 22323Usually this means the macro was only invoked conditionally." "$LINENO" 5 22324fi 22325if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then 22326 as_fn_error $? "conditional \"BUILD_XKB\" was never defined. 22327Usually this means the macro was only invoked conditionally." "$LINENO" 5 22328fi 22329if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then 22330 as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined. 22331Usually this means the macro was only invoked conditionally." "$LINENO" 5 22332fi 22333if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then 22334 as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined. 22335Usually this means the macro was only invoked conditionally." "$LINENO" 5 22336fi 22337if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then 22338 as_fn_error $? "conditional \"BUILD_XTEST\" was never defined. 22339Usually this means the macro was only invoked conditionally." "$LINENO" 5 22340fi 22341if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then 22342 as_fn_error $? "conditional \"BUILD_XV\" was never defined. 22343Usually this means the macro was only invoked conditionally." "$LINENO" 5 22344fi 22345if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then 22346 as_fn_error $? "conditional \"BUILD_XVMC\" was never defined. 22347Usually this means the macro was only invoked conditionally." "$LINENO" 5 22348fi 22349if test -z "${XCB_SERVERSIDE_SUPPORT_TRUE}" && test -z "${XCB_SERVERSIDE_SUPPORT_FALSE}"; then 22350 as_fn_error $? "conditional \"XCB_SERVERSIDE_SUPPORT\" was never defined. 22351Usually this means the macro was only invoked conditionally." "$LINENO" 5 22352fi 22353 22354: "${CONFIG_STATUS=./config.status}" 22355ac_write_fail=0 22356ac_clean_files_save=$ac_clean_files 22357ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22359printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 22360as_write_fail=0 22361cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22362#! $SHELL 22363# Generated by $as_me. 22364# Run this file to recreate the current configuration. 22365# Compiler output produced by configure, useful for debugging 22366# configure, is in config.log if it exists. 22367 22368debug=false 22369ac_cs_recheck=false 22370ac_cs_silent=false 22371 22372SHELL=\${CONFIG_SHELL-$SHELL} 22373export SHELL 22374_ASEOF 22375cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22376## -------------------- ## 22377## M4sh Initialization. ## 22378## -------------------- ## 22379 22380# Be more Bourne compatible 22381DUALCASE=1; export DUALCASE # for MKS sh 22382as_nop=: 22383if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22384then : 22385 emulate sh 22386 NULLCMD=: 22387 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22388 # is contrary to our usage. Disable this feature. 22389 alias -g '${1+"$@"}'='"$@"' 22390 setopt NO_GLOB_SUBST 22391else $as_nop 22392 case `(set -o) 2>/dev/null` in #( 22393 *posix*) : 22394 set -o posix ;; #( 22395 *) : 22396 ;; 22397esac 22398fi 22399 22400 22401 22402# Reset variables that may have inherited troublesome values from 22403# the environment. 22404 22405# IFS needs to be set, to space, tab, and newline, in precisely that order. 22406# (If _AS_PATH_WALK were called with IFS unset, it would have the 22407# side effect of setting IFS to empty, thus disabling word splitting.) 22408# Quoting is to prevent editors from complaining about space-tab. 22409as_nl=' 22410' 22411export as_nl 22412IFS=" "" $as_nl" 22413 22414PS1='$ ' 22415PS2='> ' 22416PS4='+ ' 22417 22418# Ensure predictable behavior from utilities with locale-dependent output. 22419LC_ALL=C 22420export LC_ALL 22421LANGUAGE=C 22422export LANGUAGE 22423 22424# We cannot yet rely on "unset" to work, but we need these variables 22425# to be unset--not just set to an empty or harmless value--now, to 22426# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 22427# also avoids known problems related to "unset" and subshell syntax 22428# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 22429for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 22430do eval test \${$as_var+y} \ 22431 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22432done 22433 22434# Ensure that fds 0, 1, and 2 are open. 22435if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 22436if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 22437if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 22438 22439# The user is always right. 22440if ${PATH_SEPARATOR+false} :; then 22441 PATH_SEPARATOR=: 22442 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22443 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22444 PATH_SEPARATOR=';' 22445 } 22446fi 22447 22448 22449# Find who we are. Look in the path if we contain no directory separator. 22450as_myself= 22451case $0 in #(( 22452 *[\\/]* ) as_myself=$0 ;; 22453 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22454for as_dir in $PATH 22455do 22456 IFS=$as_save_IFS 22457 case $as_dir in #((( 22458 '') as_dir=./ ;; 22459 */) ;; 22460 *) as_dir=$as_dir/ ;; 22461 esac 22462 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 22463 done 22464IFS=$as_save_IFS 22465 22466 ;; 22467esac 22468# We did not find ourselves, most probably we were run as `sh COMMAND' 22469# in which case we are not to be found in the path. 22470if test "x$as_myself" = x; then 22471 as_myself=$0 22472fi 22473if test ! -f "$as_myself"; then 22474 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22475 exit 1 22476fi 22477 22478 22479 22480# as_fn_error STATUS ERROR [LINENO LOG_FD] 22481# ---------------------------------------- 22482# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22483# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22484# script with STATUS, using 1 if that was 0. 22485as_fn_error () 22486{ 22487 as_status=$1; test $as_status -eq 0 && as_status=1 22488 if test "$4"; then 22489 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22491 fi 22492 printf "%s\n" "$as_me: error: $2" >&2 22493 as_fn_exit $as_status 22494} # as_fn_error 22495 22496 22497 22498# as_fn_set_status STATUS 22499# ----------------------- 22500# Set $? to STATUS, without forking. 22501as_fn_set_status () 22502{ 22503 return $1 22504} # as_fn_set_status 22505 22506# as_fn_exit STATUS 22507# ----------------- 22508# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22509as_fn_exit () 22510{ 22511 set +e 22512 as_fn_set_status $1 22513 exit $1 22514} # as_fn_exit 22515 22516# as_fn_unset VAR 22517# --------------- 22518# Portably unset VAR. 22519as_fn_unset () 22520{ 22521 { eval $1=; unset $1;} 22522} 22523as_unset=as_fn_unset 22524 22525# as_fn_append VAR VALUE 22526# ---------------------- 22527# Append the text in VALUE to the end of the definition contained in VAR. Take 22528# advantage of any shell optimizations that allow amortized linear growth over 22529# repeated appends, instead of the typical quadratic growth present in naive 22530# implementations. 22531if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 22532then : 22533 eval 'as_fn_append () 22534 { 22535 eval $1+=\$2 22536 }' 22537else $as_nop 22538 as_fn_append () 22539 { 22540 eval $1=\$$1\$2 22541 } 22542fi # as_fn_append 22543 22544# as_fn_arith ARG... 22545# ------------------ 22546# Perform arithmetic evaluation on the ARGs, and store the result in the 22547# global $as_val. Take advantage of shells that can avoid forks. The arguments 22548# must be portable across $(()) and expr. 22549if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 22550then : 22551 eval 'as_fn_arith () 22552 { 22553 as_val=$(( $* )) 22554 }' 22555else $as_nop 22556 as_fn_arith () 22557 { 22558 as_val=`expr "$@" || test $? -eq 1` 22559 } 22560fi # as_fn_arith 22561 22562 22563if expr a : '\(a\)' >/dev/null 2>&1 && 22564 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22565 as_expr=expr 22566else 22567 as_expr=false 22568fi 22569 22570if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22571 as_basename=basename 22572else 22573 as_basename=false 22574fi 22575 22576if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22577 as_dirname=dirname 22578else 22579 as_dirname=false 22580fi 22581 22582as_me=`$as_basename -- "$0" || 22583$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22584 X"$0" : 'X\(//\)$' \| \ 22585 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22586printf "%s\n" X/"$0" | 22587 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22588 s//\1/ 22589 q 22590 } 22591 /^X\/\(\/\/\)$/{ 22592 s//\1/ 22593 q 22594 } 22595 /^X\/\(\/\).*/{ 22596 s//\1/ 22597 q 22598 } 22599 s/.*/./; q'` 22600 22601# Avoid depending upon Character Ranges. 22602as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22603as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22604as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22605as_cr_digits='0123456789' 22606as_cr_alnum=$as_cr_Letters$as_cr_digits 22607 22608 22609# Determine whether it's possible to make 'echo' print without a newline. 22610# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 22611# for compatibility with existing Makefiles. 22612ECHO_C= ECHO_N= ECHO_T= 22613case `echo -n x` in #((((( 22614-n*) 22615 case `echo 'xy\c'` in 22616 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22617 xy) ECHO_C='\c';; 22618 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22619 ECHO_T=' ';; 22620 esac;; 22621*) 22622 ECHO_N='-n';; 22623esac 22624 22625# For backward compatibility with old third-party macros, we provide 22626# the shell variables $as_echo and $as_echo_n. New code should use 22627# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22628as_echo='printf %s\n' 22629as_echo_n='printf %s' 22630 22631rm -f conf$$ conf$$.exe conf$$.file 22632if test -d conf$$.dir; then 22633 rm -f conf$$.dir/conf$$.file 22634else 22635 rm -f conf$$.dir 22636 mkdir conf$$.dir 2>/dev/null 22637fi 22638if (echo >conf$$.file) 2>/dev/null; then 22639 if ln -s conf$$.file conf$$ 2>/dev/null; then 22640 as_ln_s='ln -s' 22641 # ... but there are two gotchas: 22642 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22643 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22644 # In both cases, we have to default to `cp -pR'. 22645 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22646 as_ln_s='cp -pR' 22647 elif ln conf$$.file conf$$ 2>/dev/null; then 22648 as_ln_s=ln 22649 else 22650 as_ln_s='cp -pR' 22651 fi 22652else 22653 as_ln_s='cp -pR' 22654fi 22655rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22656rmdir conf$$.dir 2>/dev/null 22657 22658 22659# as_fn_mkdir_p 22660# ------------- 22661# Create "$as_dir" as a directory, including parents if necessary. 22662as_fn_mkdir_p () 22663{ 22664 22665 case $as_dir in #( 22666 -*) as_dir=./$as_dir;; 22667 esac 22668 test -d "$as_dir" || eval $as_mkdir_p || { 22669 as_dirs= 22670 while :; do 22671 case $as_dir in #( 22672 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22673 *) as_qdir=$as_dir;; 22674 esac 22675 as_dirs="'$as_qdir' $as_dirs" 22676 as_dir=`$as_dirname -- "$as_dir" || 22677$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22678 X"$as_dir" : 'X\(//\)[^/]' \| \ 22679 X"$as_dir" : 'X\(//\)$' \| \ 22680 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22681printf "%s\n" X"$as_dir" | 22682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22683 s//\1/ 22684 q 22685 } 22686 /^X\(\/\/\)[^/].*/{ 22687 s//\1/ 22688 q 22689 } 22690 /^X\(\/\/\)$/{ 22691 s//\1/ 22692 q 22693 } 22694 /^X\(\/\).*/{ 22695 s//\1/ 22696 q 22697 } 22698 s/.*/./; q'` 22699 test -d "$as_dir" && break 22700 done 22701 test -z "$as_dirs" || eval "mkdir $as_dirs" 22702 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22703 22704 22705} # as_fn_mkdir_p 22706if mkdir -p . 2>/dev/null; then 22707 as_mkdir_p='mkdir -p "$as_dir"' 22708else 22709 test -d ./-p && rmdir ./-p 22710 as_mkdir_p=false 22711fi 22712 22713 22714# as_fn_executable_p FILE 22715# ----------------------- 22716# Test if FILE is an executable regular file. 22717as_fn_executable_p () 22718{ 22719 test -f "$1" && test -x "$1" 22720} # as_fn_executable_p 22721as_test_x='test -x' 22722as_executable_p=as_fn_executable_p 22723 22724# Sed expression to map a string onto a valid CPP name. 22725as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22726 22727# Sed expression to map a string onto a valid variable name. 22728as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22729 22730 22731exec 6>&1 22732## ----------------------------------- ## 22733## Main body of $CONFIG_STATUS script. ## 22734## ----------------------------------- ## 22735_ASEOF 22736test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22737 22738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22739# Save the log message, to keep $0 and so on meaningful, and to 22740# report actual input values of CONFIG_FILES etc. instead of their 22741# values after options handling. 22742ac_log=" 22743This file was extended by libxcb $as_me 1.15, which was 22744generated by GNU Autoconf 2.71. Invocation command line was 22745 22746 CONFIG_FILES = $CONFIG_FILES 22747 CONFIG_HEADERS = $CONFIG_HEADERS 22748 CONFIG_LINKS = $CONFIG_LINKS 22749 CONFIG_COMMANDS = $CONFIG_COMMANDS 22750 $ $0 $@ 22751 22752on `(hostname || uname -n) 2>/dev/null | sed 1q` 22753" 22754 22755_ACEOF 22756 22757case $ac_config_files in *" 22758"*) set x $ac_config_files; shift; ac_config_files=$*;; 22759esac 22760 22761case $ac_config_headers in *" 22762"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22763esac 22764 22765 22766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22767# Files that config.status was made for. 22768config_files="$ac_config_files" 22769config_headers="$ac_config_headers" 22770config_commands="$ac_config_commands" 22771 22772_ACEOF 22773 22774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22775ac_cs_usage="\ 22776\`$as_me' instantiates files and other configuration actions 22777from templates according to the current configuration. Unless the files 22778and actions are specified as TAGs, all are instantiated by default. 22779 22780Usage: $0 [OPTION]... [TAG]... 22781 22782 -h, --help print this help, then exit 22783 -V, --version print version number and configuration settings, then exit 22784 --config print configuration, then exit 22785 -q, --quiet, --silent 22786 do not print progress messages 22787 -d, --debug don't remove temporary files 22788 --recheck update $as_me by reconfiguring in the same conditions 22789 --file=FILE[:TEMPLATE] 22790 instantiate the configuration file FILE 22791 --header=FILE[:TEMPLATE] 22792 instantiate the configuration header FILE 22793 22794Configuration files: 22795$config_files 22796 22797Configuration headers: 22798$config_headers 22799 22800Configuration commands: 22801$config_commands 22802 22803Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/issues>." 22804 22805_ACEOF 22806ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 22807ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22809ac_cs_config='$ac_cs_config_escaped' 22810ac_cs_version="\\ 22811libxcb config.status 1.15 22812configured by $0, generated by GNU Autoconf 2.71, 22813 with options \\"\$ac_cs_config\\" 22814 22815Copyright (C) 2021 Free Software Foundation, Inc. 22816This config.status script is free software; the Free Software Foundation 22817gives unlimited permission to copy, distribute and modify it." 22818 22819ac_pwd='$ac_pwd' 22820srcdir='$srcdir' 22821INSTALL='$INSTALL' 22822MKDIR_P='$MKDIR_P' 22823AWK='$AWK' 22824test -n "\$AWK" || AWK=awk 22825_ACEOF 22826 22827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22828# The default lists apply if the user does not specify any file. 22829ac_need_defaults=: 22830while test $# != 0 22831do 22832 case $1 in 22833 --*=?*) 22834 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22835 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22836 ac_shift=: 22837 ;; 22838 --*=) 22839 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22840 ac_optarg= 22841 ac_shift=: 22842 ;; 22843 *) 22844 ac_option=$1 22845 ac_optarg=$2 22846 ac_shift=shift 22847 ;; 22848 esac 22849 22850 case $ac_option in 22851 # Handling of the options. 22852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22853 ac_cs_recheck=: ;; 22854 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22855 printf "%s\n" "$ac_cs_version"; exit ;; 22856 --config | --confi | --conf | --con | --co | --c ) 22857 printf "%s\n" "$ac_cs_config"; exit ;; 22858 --debug | --debu | --deb | --de | --d | -d ) 22859 debug=: ;; 22860 --file | --fil | --fi | --f ) 22861 $ac_shift 22862 case $ac_optarg in 22863 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22864 '') as_fn_error $? "missing file argument" ;; 22865 esac 22866 as_fn_append CONFIG_FILES " '$ac_optarg'" 22867 ac_need_defaults=false;; 22868 --header | --heade | --head | --hea ) 22869 $ac_shift 22870 case $ac_optarg in 22871 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22872 esac 22873 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22874 ac_need_defaults=false;; 22875 --he | --h) 22876 # Conflict between --help and --header 22877 as_fn_error $? "ambiguous option: \`$1' 22878Try \`$0 --help' for more information.";; 22879 --help | --hel | -h ) 22880 printf "%s\n" "$ac_cs_usage"; exit ;; 22881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22882 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22883 ac_cs_silent=: ;; 22884 22885 # This is an error. 22886 -*) as_fn_error $? "unrecognized option: \`$1' 22887Try \`$0 --help' for more information." ;; 22888 22889 *) as_fn_append ac_config_targets " $1" 22890 ac_need_defaults=false ;; 22891 22892 esac 22893 shift 22894done 22895 22896ac_configure_extra_args= 22897 22898if $ac_cs_silent; then 22899 exec 6>/dev/null 22900 ac_configure_extra_args="$ac_configure_extra_args --silent" 22901fi 22902 22903_ACEOF 22904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22905if \$ac_cs_recheck; then 22906 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22907 shift 22908 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 22909 CONFIG_SHELL='$SHELL' 22910 export CONFIG_SHELL 22911 exec "\$@" 22912fi 22913 22914_ACEOF 22915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22916exec 5>>config.log 22917{ 22918 echo 22919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22920## Running $as_me. ## 22921_ASBOX 22922 printf "%s\n" "$ac_log" 22923} >&5 22924 22925_ACEOF 22926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22927# 22928# INIT-COMMANDS 22929# 22930AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22931 22932 22933# The HP-UX ksh and POSIX shell print the target directory to stdout 22934# if CDPATH is set. 22935(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22936 22937sed_quote_subst='$sed_quote_subst' 22938double_quote_subst='$double_quote_subst' 22939delay_variable_subst='$delay_variable_subst' 22940macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22941macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22942AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 22943DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22944OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22945enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22946enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22947pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22948enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22949shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22950SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22951ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22952PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22953host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22954host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22955host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22956build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22957build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22958build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22959SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22960Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22961GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22962EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22963FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22964LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22965NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22966LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22967max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22968ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22969exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22970lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22971lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22972lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22973lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22974lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22975reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22976reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22977deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22978file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22979file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22980want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22981sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22982AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22983AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22984archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22985STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22986RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22987old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22988old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22989old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22990lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22991CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22992CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22993compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22994GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22995lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22996lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22997lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22998lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22999lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 23000lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23001nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23002lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23003lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23004objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23005MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23006lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23007lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23008lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23009lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23010lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23011need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23012MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23013DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23014NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23015LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23016OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23017OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23018libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23019shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23020extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23021archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23022enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23023export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23024whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23025compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23026old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23027old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23028archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23029archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23030module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23031module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23032with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23033allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23034no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23035hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23036hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23037hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23038hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23039hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23040hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23041hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23042inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23043link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23044always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23045export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23046exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23047include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23048prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23049postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23050file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23051variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23052need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23053need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23054version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23055runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23056shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23057shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23058libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23059library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23060soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23061install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23062postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23063postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23064finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23065finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23066hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23067sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23068configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23069configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23070hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23071enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23072enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23073enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23074old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23075striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23076 23077LTCC='$LTCC' 23078LTCFLAGS='$LTCFLAGS' 23079compiler='$compiler_DEFAULT' 23080 23081# A function that is used when there is no print builtin or printf. 23082func_fallback_echo () 23083{ 23084 eval 'cat <<_LTECHO_EOF 23085\$1 23086_LTECHO_EOF' 23087} 23088 23089# Quote evaled strings. 23090for var in AS \ 23091DLLTOOL \ 23092OBJDUMP \ 23093SHELL \ 23094ECHO \ 23095PATH_SEPARATOR \ 23096SED \ 23097GREP \ 23098EGREP \ 23099FGREP \ 23100LD \ 23101NM \ 23102LN_S \ 23103lt_SP2NL \ 23104lt_NL2SP \ 23105reload_flag \ 23106deplibs_check_method \ 23107file_magic_cmd \ 23108file_magic_glob \ 23109want_nocaseglob \ 23110sharedlib_from_linklib_cmd \ 23111AR \ 23112AR_FLAGS \ 23113archiver_list_spec \ 23114STRIP \ 23115RANLIB \ 23116CC \ 23117CFLAGS \ 23118compiler \ 23119lt_cv_sys_global_symbol_pipe \ 23120lt_cv_sys_global_symbol_to_cdecl \ 23121lt_cv_sys_global_symbol_to_import \ 23122lt_cv_sys_global_symbol_to_c_name_address \ 23123lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23124lt_cv_nm_interface \ 23125nm_file_list_spec \ 23126lt_cv_truncate_bin \ 23127lt_prog_compiler_no_builtin_flag \ 23128lt_prog_compiler_pic \ 23129lt_prog_compiler_wl \ 23130lt_prog_compiler_static \ 23131lt_cv_prog_compiler_c_o \ 23132need_locks \ 23133MANIFEST_TOOL \ 23134DSYMUTIL \ 23135NMEDIT \ 23136LIPO \ 23137OTOOL \ 23138OTOOL64 \ 23139shrext_cmds \ 23140export_dynamic_flag_spec \ 23141whole_archive_flag_spec \ 23142compiler_needs_object \ 23143with_gnu_ld \ 23144allow_undefined_flag \ 23145no_undefined_flag \ 23146hardcode_libdir_flag_spec \ 23147hardcode_libdir_separator \ 23148exclude_expsyms \ 23149include_expsyms \ 23150file_list_spec \ 23151variables_saved_for_relink \ 23152libname_spec \ 23153library_names_spec \ 23154soname_spec \ 23155install_override_mode \ 23156finish_eval \ 23157old_striplib \ 23158striplib; do 23159 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23160 *[\\\\\\\`\\"\\\$]*) 23161 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23162 ;; 23163 *) 23164 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23165 ;; 23166 esac 23167done 23168 23169# Double-quote double-evaled strings. 23170for var in reload_cmds \ 23171old_postinstall_cmds \ 23172old_postuninstall_cmds \ 23173old_archive_cmds \ 23174extract_expsyms_cmds \ 23175old_archive_from_new_cmds \ 23176old_archive_from_expsyms_cmds \ 23177archive_cmds \ 23178archive_expsym_cmds \ 23179module_cmds \ 23180module_expsym_cmds \ 23181export_symbols_cmds \ 23182prelink_cmds \ 23183postlink_cmds \ 23184postinstall_cmds \ 23185postuninstall_cmds \ 23186finish_cmds \ 23187sys_lib_search_path_spec \ 23188configure_time_dlsearch_path \ 23189configure_time_lt_sys_library_path; do 23190 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23191 *[\\\\\\\`\\"\\\$]*) 23192 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23193 ;; 23194 *) 23195 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23196 ;; 23197 esac 23198done 23199 23200ac_aux_dir='$ac_aux_dir' 23201 23202# See if we are running on zsh, and set the options that allow our 23203# commands through without removal of \ escapes INIT. 23204if test -n "\${ZSH_VERSION+set}"; then 23205 setopt NO_GLOB_SUBST 23206fi 23207 23208 23209 PACKAGE='$PACKAGE' 23210 VERSION='$VERSION' 23211 RM='$RM' 23212 ofile='$ofile' 23213 23214 23215 23216 23217_ACEOF 23218 23219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23220 23221# Handling of arguments. 23222for ac_config_target in $ac_config_targets 23223do 23224 case $ac_config_target in 23225 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 23226 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23227 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23228 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23229 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23230 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23231 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23232 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 23233 "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;; 23234 "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;; 23235 "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;; 23236 "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;; 23237 "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;; 23238 "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;; 23239 "xcb-ge.pc") CONFIG_FILES="$CONFIG_FILES xcb-ge.pc" ;; 23240 "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;; 23241 "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;; 23242 "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;; 23243 "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;; 23244 "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;; 23245 "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;; 23246 "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;; 23247 "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;; 23248 "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;; 23249 "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;; 23250 "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;; 23251 "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;; 23252 "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;; 23253 "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;; 23254 "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;; 23255 "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;; 23256 "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;; 23257 "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;; 23258 "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;; 23259 "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;; 23260 "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;; 23261 "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;; 23262 23263 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23264 esac 23265done 23266 23267 23268# If the user did not use the arguments to specify the items to instantiate, 23269# then the envvar interface is used. Set only those that are not. 23270# We use the long form for the default assignment because of an extremely 23271# bizarre bug on SunOS 4.1.3. 23272if $ac_need_defaults; then 23273 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 23274 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 23275 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 23276fi 23277 23278# Have a temporary directory for convenience. Make it in the build tree 23279# simply because there is no reason against having it here, and in addition, 23280# creating and moving files from /tmp can sometimes cause problems. 23281# Hook for its removal unless debugging. 23282# Note that there is a small window in which the directory will not be cleaned: 23283# after its creation but before its name has been assigned to `$tmp'. 23284$debug || 23285{ 23286 tmp= ac_tmp= 23287 trap 'exit_status=$? 23288 : "${ac_tmp:=$tmp}" 23289 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23290' 0 23291 trap 'as_fn_exit 1' 1 2 13 15 23292} 23293# Create a (secure) tmp directory for tmp files. 23294 23295{ 23296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23297 test -d "$tmp" 23298} || 23299{ 23300 tmp=./conf$$-$RANDOM 23301 (umask 077 && mkdir "$tmp") 23302} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23303ac_tmp=$tmp 23304 23305# Set up the scripts for CONFIG_FILES section. 23306# No need to generate them if there are no CONFIG_FILES. 23307# This happens for instance with `./config.status config.h'. 23308if test -n "$CONFIG_FILES"; then 23309 23310 23311ac_cr=`echo X | tr X '\015'` 23312# On cygwin, bash can eat \r inside `` if the user requested igncr. 23313# But we know of no other shell where ac_cr would be empty at this 23314# point, so we can use a bashism as a fallback. 23315if test "x$ac_cr" = x; then 23316 eval ac_cr=\$\'\\r\' 23317fi 23318ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23319if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23320 ac_cs_awk_cr='\\r' 23321else 23322 ac_cs_awk_cr=$ac_cr 23323fi 23324 23325echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23326_ACEOF 23327 23328 23329{ 23330 echo "cat >conf$$subs.awk <<_ACEOF" && 23331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23332 echo "_ACEOF" 23333} >conf$$subs.sh || 23334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23335ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23336ac_delim='%!_!# ' 23337for ac_last_try in false false false false false :; do 23338 . ./conf$$subs.sh || 23339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23340 23341 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23342 if test $ac_delim_n = $ac_delim_num; then 23343 break 23344 elif $ac_last_try; then 23345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23346 else 23347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23348 fi 23349done 23350rm -f conf$$subs.sh 23351 23352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23353cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23354_ACEOF 23355sed -n ' 23356h 23357s/^/S["/; s/!.*/"]=/ 23358p 23359g 23360s/^[^!]*!// 23361:repl 23362t repl 23363s/'"$ac_delim"'$// 23364t delim 23365:nl 23366h 23367s/\(.\{148\}\)..*/\1/ 23368t more1 23369s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23370p 23371n 23372b repl 23373:more1 23374s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23375p 23376g 23377s/.\{148\}// 23378t nl 23379:delim 23380h 23381s/\(.\{148\}\)..*/\1/ 23382t more2 23383s/["\\]/\\&/g; s/^/"/; s/$/"/ 23384p 23385b 23386:more2 23387s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23388p 23389g 23390s/.\{148\}// 23391t delim 23392' <conf$$subs.awk | sed ' 23393/^[^""]/{ 23394 N 23395 s/\n// 23396} 23397' >>$CONFIG_STATUS || ac_write_fail=1 23398rm -f conf$$subs.awk 23399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23400_ACAWK 23401cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23402 for (key in S) S_is_set[key] = 1 23403 FS = "" 23404 23405} 23406{ 23407 line = $ 0 23408 nfields = split(line, field, "@") 23409 substed = 0 23410 len = length(field[1]) 23411 for (i = 2; i < nfields; i++) { 23412 key = field[i] 23413 keylen = length(key) 23414 if (S_is_set[key]) { 23415 value = S[key] 23416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23417 len += length(value) + length(field[++i]) 23418 substed = 1 23419 } else 23420 len += 1 + keylen 23421 } 23422 23423 print line 23424} 23425 23426_ACAWK 23427_ACEOF 23428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23429if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23431else 23432 cat 23433fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23434 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23435_ACEOF 23436 23437# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23438# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23439# trailing colons and then remove the whole line if VPATH becomes empty 23440# (actually we leave an empty line to preserve line numbers). 23441if test "x$srcdir" = x.; then 23442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23443h 23444s/// 23445s/^/:/ 23446s/[ ]*$/:/ 23447s/:\$(srcdir):/:/g 23448s/:\${srcdir}:/:/g 23449s/:@srcdir@:/:/g 23450s/^:*// 23451s/:*$// 23452x 23453s/\(=[ ]*\).*/\1/ 23454G 23455s/\n// 23456s/^[^=]*=[ ]*$// 23457}' 23458fi 23459 23460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23461fi # test -n "$CONFIG_FILES" 23462 23463# Set up the scripts for CONFIG_HEADERS section. 23464# No need to generate them if there are no CONFIG_HEADERS. 23465# This happens for instance with `./config.status Makefile'. 23466if test -n "$CONFIG_HEADERS"; then 23467cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23468BEGIN { 23469_ACEOF 23470 23471# Transform confdefs.h into an awk script `defines.awk', embedded as 23472# here-document in config.status, that substitutes the proper values into 23473# config.h.in to produce config.h. 23474 23475# Create a delimiter string that does not exist in confdefs.h, to ease 23476# handling of long lines. 23477ac_delim='%!_!# ' 23478for ac_last_try in false false :; do 23479 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23480 if test -z "$ac_tt"; then 23481 break 23482 elif $ac_last_try; then 23483 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23484 else 23485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23486 fi 23487done 23488 23489# For the awk script, D is an array of macro values keyed by name, 23490# likewise P contains macro parameters if any. Preserve backslash 23491# newline sequences. 23492 23493ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23494sed -n ' 23495s/.\{148\}/&'"$ac_delim"'/g 23496t rset 23497:rset 23498s/^[ ]*#[ ]*define[ ][ ]*/ / 23499t def 23500d 23501:def 23502s/\\$// 23503t bsnl 23504s/["\\]/\\&/g 23505s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23506D["\1"]=" \3"/p 23507s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23508d 23509:bsnl 23510s/["\\]/\\&/g 23511s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23512D["\1"]=" \3\\\\\\n"\\/p 23513t cont 23514s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23515t cont 23516d 23517:cont 23518n 23519s/.\{148\}/&'"$ac_delim"'/g 23520t clear 23521:clear 23522s/\\$// 23523t bsnlc 23524s/["\\]/\\&/g; s/^/"/; s/$/"/p 23525d 23526:bsnlc 23527s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23528b cont 23529' <confdefs.h | sed ' 23530s/'"$ac_delim"'/"\\\ 23531"/g' >>$CONFIG_STATUS || ac_write_fail=1 23532 23533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23534 for (key in D) D_is_set[key] = 1 23535 FS = "" 23536} 23537/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23538 line = \$ 0 23539 split(line, arg, " ") 23540 if (arg[1] == "#") { 23541 defundef = arg[2] 23542 mac1 = arg[3] 23543 } else { 23544 defundef = substr(arg[1], 2) 23545 mac1 = arg[2] 23546 } 23547 split(mac1, mac2, "(") #) 23548 macro = mac2[1] 23549 prefix = substr(line, 1, index(line, defundef) - 1) 23550 if (D_is_set[macro]) { 23551 # Preserve the white space surrounding the "#". 23552 print prefix "define", macro P[macro] D[macro] 23553 next 23554 } else { 23555 # Replace #undef with comments. This is necessary, for example, 23556 # in the case of _POSIX_SOURCE, which is predefined and required 23557 # on some systems where configure will not decide to define it. 23558 if (defundef == "undef") { 23559 print "/*", prefix defundef, macro, "*/" 23560 next 23561 } 23562 } 23563} 23564{ print } 23565_ACAWK 23566_ACEOF 23567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23568 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23569fi # test -n "$CONFIG_HEADERS" 23570 23571 23572eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23573shift 23574for ac_tag 23575do 23576 case $ac_tag in 23577 :[FHLC]) ac_mode=$ac_tag; continue;; 23578 esac 23579 case $ac_mode$ac_tag in 23580 :[FHL]*:*);; 23581 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23582 :[FH]-) ac_tag=-:-;; 23583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23584 esac 23585 ac_save_IFS=$IFS 23586 IFS=: 23587 set x $ac_tag 23588 IFS=$ac_save_IFS 23589 shift 23590 ac_file=$1 23591 shift 23592 23593 case $ac_mode in 23594 :L) ac_source=$1;; 23595 :[FH]) 23596 ac_file_inputs= 23597 for ac_f 23598 do 23599 case $ac_f in 23600 -) ac_f="$ac_tmp/stdin";; 23601 *) # Look for the file first in the build tree, then in the source tree 23602 # (if the path is not absolute). The absolute path cannot be DOS-style, 23603 # because $ac_f cannot contain `:'. 23604 test -f "$ac_f" || 23605 case $ac_f in 23606 [\\/$]*) false;; 23607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23608 esac || 23609 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23610 esac 23611 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23612 as_fn_append ac_file_inputs " '$ac_f'" 23613 done 23614 23615 # Let's still pretend it is `configure' which instantiates (i.e., don't 23616 # use $as_me), people would be surprised to read: 23617 # /* config.h. Generated by config.status. */ 23618 configure_input='Generated from '` 23619 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23620 `' by configure.' 23621 if test x"$ac_file" != x-; then 23622 configure_input="$ac_file. $configure_input" 23623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23624printf "%s\n" "$as_me: creating $ac_file" >&6;} 23625 fi 23626 # Neutralize special characters interpreted by sed in replacement strings. 23627 case $configure_input in #( 23628 *\&* | *\|* | *\\* ) 23629 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 23630 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23631 *) ac_sed_conf_input=$configure_input;; 23632 esac 23633 23634 case $ac_tag in 23635 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23637 esac 23638 ;; 23639 esac 23640 23641 ac_dir=`$as_dirname -- "$ac_file" || 23642$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23643 X"$ac_file" : 'X\(//\)[^/]' \| \ 23644 X"$ac_file" : 'X\(//\)$' \| \ 23645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23646printf "%s\n" X"$ac_file" | 23647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23648 s//\1/ 23649 q 23650 } 23651 /^X\(\/\/\)[^/].*/{ 23652 s//\1/ 23653 q 23654 } 23655 /^X\(\/\/\)$/{ 23656 s//\1/ 23657 q 23658 } 23659 /^X\(\/\).*/{ 23660 s//\1/ 23661 q 23662 } 23663 s/.*/./; q'` 23664 as_dir="$ac_dir"; as_fn_mkdir_p 23665 ac_builddir=. 23666 23667case "$ac_dir" in 23668.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23669*) 23670 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23671 # A ".." for each directory in $ac_dir_suffix. 23672 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23673 case $ac_top_builddir_sub in 23674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23676 esac ;; 23677esac 23678ac_abs_top_builddir=$ac_pwd 23679ac_abs_builddir=$ac_pwd$ac_dir_suffix 23680# for backward compatibility: 23681ac_top_builddir=$ac_top_build_prefix 23682 23683case $srcdir in 23684 .) # We are building in place. 23685 ac_srcdir=. 23686 ac_top_srcdir=$ac_top_builddir_sub 23687 ac_abs_top_srcdir=$ac_pwd ;; 23688 [\\/]* | ?:[\\/]* ) # Absolute name. 23689 ac_srcdir=$srcdir$ac_dir_suffix; 23690 ac_top_srcdir=$srcdir 23691 ac_abs_top_srcdir=$srcdir ;; 23692 *) # Relative name. 23693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23694 ac_top_srcdir=$ac_top_build_prefix$srcdir 23695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23696esac 23697ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23698 23699 23700 case $ac_mode in 23701 :F) 23702 # 23703 # CONFIG_FILE 23704 # 23705 23706 case $INSTALL in 23707 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23708 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23709 esac 23710 ac_MKDIR_P=$MKDIR_P 23711 case $MKDIR_P in 23712 [\\/$]* | ?:[\\/]* ) ;; 23713 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23714 esac 23715_ACEOF 23716 23717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23718# If the template does not know about datarootdir, expand it. 23719# FIXME: This hack should be removed a few years after 2.60. 23720ac_datarootdir_hack=; ac_datarootdir_seen= 23721ac_sed_dataroot=' 23722/datarootdir/ { 23723 p 23724 q 23725} 23726/@datadir@/p 23727/@docdir@/p 23728/@infodir@/p 23729/@localedir@/p 23730/@mandir@/p' 23731case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23732*datarootdir*) ac_datarootdir_seen=yes;; 23733*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23735printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23736_ACEOF 23737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23738 ac_datarootdir_hack=' 23739 s&@datadir@&$datadir&g 23740 s&@docdir@&$docdir&g 23741 s&@infodir@&$infodir&g 23742 s&@localedir@&$localedir&g 23743 s&@mandir@&$mandir&g 23744 s&\\\${datarootdir}&$datarootdir&g' ;; 23745esac 23746_ACEOF 23747 23748# Neutralize VPATH when `$srcdir' = `.'. 23749# Shell code in configure.ac might set extrasub. 23750# FIXME: do we really want to maintain this feature? 23751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23752ac_sed_extra="$ac_vpsub 23753$extrasub 23754_ACEOF 23755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23756:t 23757/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23758s|@configure_input@|$ac_sed_conf_input|;t t 23759s&@top_builddir@&$ac_top_builddir_sub&;t t 23760s&@top_build_prefix@&$ac_top_build_prefix&;t t 23761s&@srcdir@&$ac_srcdir&;t t 23762s&@abs_srcdir@&$ac_abs_srcdir&;t t 23763s&@top_srcdir@&$ac_top_srcdir&;t t 23764s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23765s&@builddir@&$ac_builddir&;t t 23766s&@abs_builddir@&$ac_abs_builddir&;t t 23767s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23768s&@INSTALL@&$ac_INSTALL&;t t 23769s&@MKDIR_P@&$ac_MKDIR_P&;t t 23770$ac_datarootdir_hack 23771" 23772eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23773 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23774 23775test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23776 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23777 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23778 "$ac_tmp/out"`; test -z "$ac_out"; } && 23779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23780which seems to be undefined. Please make sure it is defined" >&5 23781printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23782which seems to be undefined. Please make sure it is defined" >&2;} 23783 23784 rm -f "$ac_tmp/stdin" 23785 case $ac_file in 23786 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23787 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23788 esac \ 23789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23790 ;; 23791 :H) 23792 # 23793 # CONFIG_HEADER 23794 # 23795 if test x"$ac_file" != x-; then 23796 { 23797 printf "%s\n" "/* $configure_input */" >&1 \ 23798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23799 } >"$ac_tmp/config.h" \ 23800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23801 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23803printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 23804 else 23805 rm -f "$ac_file" 23806 mv "$ac_tmp/config.h" "$ac_file" \ 23807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23808 fi 23809 else 23810 printf "%s\n" "/* $configure_input */" >&1 \ 23811 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23812 || as_fn_error $? "could not create -" "$LINENO" 5 23813 fi 23814# Compute "$ac_file"'s index in $config_headers. 23815_am_arg="$ac_file" 23816_am_stamp_count=1 23817for _am_header in $config_headers :; do 23818 case $_am_header in 23819 $_am_arg | $_am_arg:* ) 23820 break ;; 23821 * ) 23822 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23823 esac 23824done 23825echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23826$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23827 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23828 X"$_am_arg" : 'X\(//\)$' \| \ 23829 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23830printf "%s\n" X"$_am_arg" | 23831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23832 s//\1/ 23833 q 23834 } 23835 /^X\(\/\/\)[^/].*/{ 23836 s//\1/ 23837 q 23838 } 23839 /^X\(\/\/\)$/{ 23840 s//\1/ 23841 q 23842 } 23843 /^X\(\/\).*/{ 23844 s//\1/ 23845 q 23846 } 23847 s/.*/./; q'`/stamp-h$_am_stamp_count 23848 ;; 23849 23850 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23851printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 23852 ;; 23853 esac 23854 23855 23856 case $ac_file$ac_mode in 23857 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23858 # Older Autoconf quotes --file arguments for eval, but not when files 23859 # are listed without --file. Let's play safe and only enable the eval 23860 # if we detect the quoting. 23861 # TODO: see whether this extra hack can be removed once we start 23862 # requiring Autoconf 2.70 or later. 23863 case $CONFIG_FILES in #( 23864 *\'*) : 23865 eval set x "$CONFIG_FILES" ;; #( 23866 *) : 23867 set x $CONFIG_FILES ;; #( 23868 *) : 23869 ;; 23870esac 23871 shift 23872 # Used to flag and report bootstrapping failures. 23873 am_rc=0 23874 for am_mf 23875 do 23876 # Strip MF so we end up with the name of the file. 23877 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 23878 # Check whether this is an Automake generated Makefile which includes 23879 # dependency-tracking related rules and includes. 23880 # Grep'ing the whole file directly is not great: AIX grep has a line 23881 # limit of 2048, but all sed's we know have understand at least 4000. 23882 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23883 || continue 23884 am_dirpart=`$as_dirname -- "$am_mf" || 23885$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23886 X"$am_mf" : 'X\(//\)[^/]' \| \ 23887 X"$am_mf" : 'X\(//\)$' \| \ 23888 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23889printf "%s\n" X"$am_mf" | 23890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23891 s//\1/ 23892 q 23893 } 23894 /^X\(\/\/\)[^/].*/{ 23895 s//\1/ 23896 q 23897 } 23898 /^X\(\/\/\)$/{ 23899 s//\1/ 23900 q 23901 } 23902 /^X\(\/\).*/{ 23903 s//\1/ 23904 q 23905 } 23906 s/.*/./; q'` 23907 am_filepart=`$as_basename -- "$am_mf" || 23908$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23909 X"$am_mf" : 'X\(//\)$' \| \ 23910 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23911printf "%s\n" X/"$am_mf" | 23912 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23913 s//\1/ 23914 q 23915 } 23916 /^X\/\(\/\/\)$/{ 23917 s//\1/ 23918 q 23919 } 23920 /^X\/\(\/\).*/{ 23921 s//\1/ 23922 q 23923 } 23924 s/.*/./; q'` 23925 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23926 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23927 | $MAKE -f - am--depfiles" >&5 23928 (cd "$am_dirpart" \ 23929 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23930 | $MAKE -f - am--depfiles) >&5 2>&5 23931 ac_status=$? 23932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23933 (exit $ac_status); } || am_rc=$? 23934 done 23935 if test $am_rc -ne 0; then 23936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23937printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23938as_fn_error $? "Something went wrong bootstrapping makefile fragments 23939 for automatic dependency tracking. If GNU make was not used, consider 23940 re-running the configure script with MAKE=\"gmake\" (or whatever is 23941 necessary). You can also try re-running configure with the 23942 '--disable-dependency-tracking' option to at least be able to build 23943 the package (albeit without support for automatic dependency tracking). 23944See \`config.log' for more details" "$LINENO" 5; } 23945 fi 23946 { am_dirpart=; unset am_dirpart;} 23947 { am_filepart=; unset am_filepart;} 23948 { am_mf=; unset am_mf;} 23949 { am_rc=; unset am_rc;} 23950 rm -f conftest-deps.mk 23951} 23952 ;; 23953 "libtool":C) 23954 23955 # See if we are running on zsh, and set the options that allow our 23956 # commands through without removal of \ escapes. 23957 if test -n "${ZSH_VERSION+set}"; then 23958 setopt NO_GLOB_SUBST 23959 fi 23960 23961 cfgfile=${ofile}T 23962 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23963 $RM "$cfgfile" 23964 23965 cat <<_LT_EOF >> "$cfgfile" 23966#! $SHELL 23967# Generated automatically by $as_me ($PACKAGE) $VERSION 23968# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23969# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23970 23971# Provide generalized library-building support services. 23972# Written by Gordon Matzigkeit, 1996 23973 23974# Copyright (C) 2014 Free Software Foundation, Inc. 23975# This is free software; see the source for copying conditions. There is NO 23976# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23977 23978# GNU Libtool is free software; you can redistribute it and/or modify 23979# it under the terms of the GNU General Public License as published by 23980# the Free Software Foundation; either version 2 of of the License, or 23981# (at your option) any later version. 23982# 23983# As a special exception to the GNU General Public License, if you 23984# distribute this file as part of a program or library that is built 23985# using GNU Libtool, you may include this file under the same 23986# distribution terms that you use for the rest of that program. 23987# 23988# GNU Libtool is distributed in the hope that it will be useful, but 23989# WITHOUT ANY WARRANTY; without even the implied warranty of 23990# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23991# GNU General Public License for more details. 23992# 23993# You should have received a copy of the GNU General Public License 23994# along with this program. If not, see <http://www.gnu.org/licenses/>. 23995 23996 23997# The names of the tagged configurations supported by this script. 23998available_tags='' 23999 24000# Configured defaults for sys_lib_dlsearch_path munging. 24001: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24002 24003# ### BEGIN LIBTOOL CONFIG 24004 24005# Which release of libtool.m4 was used? 24006macro_version=$macro_version 24007macro_revision=$macro_revision 24008 24009# Assembler program. 24010AS=$lt_AS 24011 24012# DLL creation program. 24013DLLTOOL=$lt_DLLTOOL 24014 24015# Object dumper program. 24016OBJDUMP=$lt_OBJDUMP 24017 24018# Whether or not to build shared libraries. 24019build_libtool_libs=$enable_shared 24020 24021# Whether or not to build static libraries. 24022build_old_libs=$enable_static 24023 24024# What type of objects to build. 24025pic_mode=$pic_mode 24026 24027# Whether or not to optimize for fast installation. 24028fast_install=$enable_fast_install 24029 24030# Shared archive member basename,for filename based shared library versioning on AIX. 24031shared_archive_member_spec=$shared_archive_member_spec 24032 24033# Shell to use when invoking shell scripts. 24034SHELL=$lt_SHELL 24035 24036# An echo program that protects backslashes. 24037ECHO=$lt_ECHO 24038 24039# The PATH separator for the build system. 24040PATH_SEPARATOR=$lt_PATH_SEPARATOR 24041 24042# The host system. 24043host_alias=$host_alias 24044host=$host 24045host_os=$host_os 24046 24047# The build system. 24048build_alias=$build_alias 24049build=$build 24050build_os=$build_os 24051 24052# A sed program that does not truncate output. 24053SED=$lt_SED 24054 24055# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24056Xsed="\$SED -e 1s/^X//" 24057 24058# A grep program that handles long lines. 24059GREP=$lt_GREP 24060 24061# An ERE matcher. 24062EGREP=$lt_EGREP 24063 24064# A literal string matcher. 24065FGREP=$lt_FGREP 24066 24067# A BSD- or MS-compatible name lister. 24068NM=$lt_NM 24069 24070# Whether we need soft or hard links. 24071LN_S=$lt_LN_S 24072 24073# What is the maximum length of a command? 24074max_cmd_len=$max_cmd_len 24075 24076# Object file suffix (normally "o"). 24077objext=$ac_objext 24078 24079# Executable file suffix (normally ""). 24080exeext=$exeext 24081 24082# whether the shell understands "unset". 24083lt_unset=$lt_unset 24084 24085# turn spaces into newlines. 24086SP2NL=$lt_lt_SP2NL 24087 24088# turn newlines into spaces. 24089NL2SP=$lt_lt_NL2SP 24090 24091# convert \$build file names to \$host format. 24092to_host_file_cmd=$lt_cv_to_host_file_cmd 24093 24094# convert \$build files to toolchain format. 24095to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24096 24097# Method to check whether dependent libraries are shared objects. 24098deplibs_check_method=$lt_deplibs_check_method 24099 24100# Command to use when deplibs_check_method = "file_magic". 24101file_magic_cmd=$lt_file_magic_cmd 24102 24103# How to find potential files when deplibs_check_method = "file_magic". 24104file_magic_glob=$lt_file_magic_glob 24105 24106# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24107want_nocaseglob=$lt_want_nocaseglob 24108 24109# Command to associate shared and link libraries. 24110sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24111 24112# The archiver. 24113AR=$lt_AR 24114 24115# Flags to create an archive. 24116AR_FLAGS=$lt_AR_FLAGS 24117 24118# How to feed a file listing to the archiver. 24119archiver_list_spec=$lt_archiver_list_spec 24120 24121# A symbol stripping program. 24122STRIP=$lt_STRIP 24123 24124# Commands used to install an old-style archive. 24125RANLIB=$lt_RANLIB 24126old_postinstall_cmds=$lt_old_postinstall_cmds 24127old_postuninstall_cmds=$lt_old_postuninstall_cmds 24128 24129# Whether to use a lock for old archive extraction. 24130lock_old_archive_extraction=$lock_old_archive_extraction 24131 24132# A C compiler. 24133LTCC=$lt_CC 24134 24135# LTCC compiler flags. 24136LTCFLAGS=$lt_CFLAGS 24137 24138# Take the output of nm and produce a listing of raw symbols and C names. 24139global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24140 24141# Transform the output of nm in a proper C declaration. 24142global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24143 24144# Transform the output of nm into a list of symbols to manually relocate. 24145global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24146 24147# Transform the output of nm in a C name address pair. 24148global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24149 24150# Transform the output of nm in a C name address pair when lib prefix is needed. 24151global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24152 24153# The name lister interface. 24154nm_interface=$lt_lt_cv_nm_interface 24155 24156# Specify filename containing input files for \$NM. 24157nm_file_list_spec=$lt_nm_file_list_spec 24158 24159# The root where to search for dependent libraries,and where our libraries should be installed. 24160lt_sysroot=$lt_sysroot 24161 24162# Command to truncate a binary pipe. 24163lt_truncate_bin=$lt_lt_cv_truncate_bin 24164 24165# The name of the directory that contains temporary libtool files. 24166objdir=$objdir 24167 24168# Used to examine libraries when file_magic_cmd begins with "file". 24169MAGIC_CMD=$MAGIC_CMD 24170 24171# Must we lock files when doing compilation? 24172need_locks=$lt_need_locks 24173 24174# Manifest tool. 24175MANIFEST_TOOL=$lt_MANIFEST_TOOL 24176 24177# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24178DSYMUTIL=$lt_DSYMUTIL 24179 24180# Tool to change global to local symbols on Mac OS X. 24181NMEDIT=$lt_NMEDIT 24182 24183# Tool to manipulate fat objects and archives on Mac OS X. 24184LIPO=$lt_LIPO 24185 24186# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24187OTOOL=$lt_OTOOL 24188 24189# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24190OTOOL64=$lt_OTOOL64 24191 24192# Old archive suffix (normally "a"). 24193libext=$libext 24194 24195# Shared library suffix (normally ".so"). 24196shrext_cmds=$lt_shrext_cmds 24197 24198# The commands to extract the exported symbol list from a shared archive. 24199extract_expsyms_cmds=$lt_extract_expsyms_cmds 24200 24201# Variables whose values should be saved in libtool wrapper scripts and 24202# restored at link time. 24203variables_saved_for_relink=$lt_variables_saved_for_relink 24204 24205# Do we need the "lib" prefix for modules? 24206need_lib_prefix=$need_lib_prefix 24207 24208# Do we need a version for libraries? 24209need_version=$need_version 24210 24211# Library versioning type. 24212version_type=$version_type 24213 24214# Shared library runtime path variable. 24215runpath_var=$runpath_var 24216 24217# Shared library path variable. 24218shlibpath_var=$shlibpath_var 24219 24220# Is shlibpath searched before the hard-coded library search path? 24221shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24222 24223# Format of library name prefix. 24224libname_spec=$lt_libname_spec 24225 24226# List of archive names. First name is the real one, the rest are links. 24227# The last name is the one that the linker finds with -lNAME 24228library_names_spec=$lt_library_names_spec 24229 24230# The coded name of the library, if different from the real name. 24231soname_spec=$lt_soname_spec 24232 24233# Permission mode override for installation of shared libraries. 24234install_override_mode=$lt_install_override_mode 24235 24236# Command to use after installation of a shared archive. 24237postinstall_cmds=$lt_postinstall_cmds 24238 24239# Command to use after uninstallation of a shared archive. 24240postuninstall_cmds=$lt_postuninstall_cmds 24241 24242# Commands used to finish a libtool library installation in a directory. 24243finish_cmds=$lt_finish_cmds 24244 24245# As "finish_cmds", except a single script fragment to be evaled but 24246# not shown. 24247finish_eval=$lt_finish_eval 24248 24249# Whether we should hardcode library paths into libraries. 24250hardcode_into_libs=$hardcode_into_libs 24251 24252# Compile-time system search path for libraries. 24253sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24254 24255# Detected run-time system search path for libraries. 24256sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24257 24258# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24259configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24260 24261# Whether dlopen is supported. 24262dlopen_support=$enable_dlopen 24263 24264# Whether dlopen of programs is supported. 24265dlopen_self=$enable_dlopen_self 24266 24267# Whether dlopen of statically linked programs is supported. 24268dlopen_self_static=$enable_dlopen_self_static 24269 24270# Commands to strip libraries. 24271old_striplib=$lt_old_striplib 24272striplib=$lt_striplib 24273 24274 24275# The linker used to build libraries. 24276LD=$lt_LD 24277 24278# How to create reloadable object files. 24279reload_flag=$lt_reload_flag 24280reload_cmds=$lt_reload_cmds 24281 24282# Commands used to build an old-style archive. 24283old_archive_cmds=$lt_old_archive_cmds 24284 24285# A language specific compiler. 24286CC=$lt_compiler 24287 24288# Is the compiler the GNU compiler? 24289with_gcc=$GCC 24290 24291# Compiler flag to turn off builtin functions. 24292no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24293 24294# Additional compiler flags for building library objects. 24295pic_flag=$lt_lt_prog_compiler_pic 24296 24297# How to pass a linker flag through the compiler. 24298wl=$lt_lt_prog_compiler_wl 24299 24300# Compiler flag to prevent dynamic linking. 24301link_static_flag=$lt_lt_prog_compiler_static 24302 24303# Does compiler simultaneously support -c and -o options? 24304compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24305 24306# Whether or not to add -lc for building shared libraries. 24307build_libtool_need_lc=$archive_cmds_need_lc 24308 24309# Whether or not to disallow shared libs when runtime libs are static. 24310allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24311 24312# Compiler flag to allow reflexive dlopens. 24313export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24314 24315# Compiler flag to generate shared objects directly from archives. 24316whole_archive_flag_spec=$lt_whole_archive_flag_spec 24317 24318# Whether the compiler copes with passing no objects directly. 24319compiler_needs_object=$lt_compiler_needs_object 24320 24321# Create an old-style archive from a shared archive. 24322old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24323 24324# Create a temporary old-style archive to link instead of a shared archive. 24325old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24326 24327# Commands used to build a shared archive. 24328archive_cmds=$lt_archive_cmds 24329archive_expsym_cmds=$lt_archive_expsym_cmds 24330 24331# Commands used to build a loadable module if different from building 24332# a shared archive. 24333module_cmds=$lt_module_cmds 24334module_expsym_cmds=$lt_module_expsym_cmds 24335 24336# Whether we are building with GNU ld or not. 24337with_gnu_ld=$lt_with_gnu_ld 24338 24339# Flag that allows shared libraries with undefined symbols to be built. 24340allow_undefined_flag=$lt_allow_undefined_flag 24341 24342# Flag that enforces no undefined symbols. 24343no_undefined_flag=$lt_no_undefined_flag 24344 24345# Flag to hardcode \$libdir into a binary during linking. 24346# This must work even if \$libdir does not exist 24347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24348 24349# Whether we need a single "-rpath" flag with a separated argument. 24350hardcode_libdir_separator=$lt_hardcode_libdir_separator 24351 24352# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24353# DIR into the resulting binary. 24354hardcode_direct=$hardcode_direct 24355 24356# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24357# DIR into the resulting binary and the resulting library dependency is 24358# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24359# library is relocated. 24360hardcode_direct_absolute=$hardcode_direct_absolute 24361 24362# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24363# into the resulting binary. 24364hardcode_minus_L=$hardcode_minus_L 24365 24366# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24367# into the resulting binary. 24368hardcode_shlibpath_var=$hardcode_shlibpath_var 24369 24370# Set to "yes" if building a shared library automatically hardcodes DIR 24371# into the library and all subsequent libraries and executables linked 24372# against it. 24373hardcode_automatic=$hardcode_automatic 24374 24375# Set to yes if linker adds runtime paths of dependent libraries 24376# to runtime path list. 24377inherit_rpath=$inherit_rpath 24378 24379# Whether libtool must link a program against all its dependency libraries. 24380link_all_deplibs=$link_all_deplibs 24381 24382# Set to "yes" if exported symbols are required. 24383always_export_symbols=$always_export_symbols 24384 24385# The commands to list exported symbols. 24386export_symbols_cmds=$lt_export_symbols_cmds 24387 24388# Symbols that should not be listed in the preloaded symbols. 24389exclude_expsyms=$lt_exclude_expsyms 24390 24391# Symbols that must always be exported. 24392include_expsyms=$lt_include_expsyms 24393 24394# Commands necessary for linking programs (against libraries) with templates. 24395prelink_cmds=$lt_prelink_cmds 24396 24397# Commands necessary for finishing linking programs. 24398postlink_cmds=$lt_postlink_cmds 24399 24400# Specify filename containing input files. 24401file_list_spec=$lt_file_list_spec 24402 24403# How to hardcode a shared library path into an executable. 24404hardcode_action=$hardcode_action 24405 24406# ### END LIBTOOL CONFIG 24407 24408_LT_EOF 24409 24410 cat <<'_LT_EOF' >> "$cfgfile" 24411 24412# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24413 24414# func_munge_path_list VARIABLE PATH 24415# ----------------------------------- 24416# VARIABLE is name of variable containing _space_ separated list of 24417# directories to be munged by the contents of PATH, which is string 24418# having a format: 24419# "DIR[:DIR]:" 24420# string "DIR[ DIR]" will be prepended to VARIABLE 24421# ":DIR[:DIR]" 24422# string "DIR[ DIR]" will be appended to VARIABLE 24423# "DIRP[:DIRP]::[DIRA:]DIRA" 24424# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24425# "DIRA[ DIRA]" will be appended to VARIABLE 24426# "DIR[:DIR]" 24427# VARIABLE will be replaced by "DIR[ DIR]" 24428func_munge_path_list () 24429{ 24430 case x$2 in 24431 x) 24432 ;; 24433 *:) 24434 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24435 ;; 24436 x:*) 24437 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24438 ;; 24439 *::*) 24440 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24441 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24442 ;; 24443 *) 24444 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24445 ;; 24446 esac 24447} 24448 24449 24450# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24451func_cc_basename () 24452{ 24453 for cc_temp in $*""; do 24454 case $cc_temp in 24455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24457 \-*) ;; 24458 *) break;; 24459 esac 24460 done 24461 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24462} 24463 24464 24465# ### END FUNCTIONS SHARED WITH CONFIGURE 24466 24467_LT_EOF 24468 24469 case $host_os in 24470 aix3*) 24471 cat <<\_LT_EOF >> "$cfgfile" 24472# AIX sometimes has problems with the GCC collect2 program. For some 24473# reason, if we set the COLLECT_NAMES environment variable, the problems 24474# vanish in a puff of smoke. 24475if test set != "${COLLECT_NAMES+set}"; then 24476 COLLECT_NAMES= 24477 export COLLECT_NAMES 24478fi 24479_LT_EOF 24480 ;; 24481 esac 24482 24483 24484 24485ltmain=$ac_aux_dir/ltmain.sh 24486 24487 24488 # We use sed instead of cat because bash on DJGPP gets confused if 24489 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24490 # text mode, it properly converts lines to CR/LF. This bash problem 24491 # is reportedly fixed, but why not run on old versions too? 24492 sed '$q' "$ltmain" >> "$cfgfile" \ 24493 || (rm -f "$cfgfile"; exit 1) 24494 24495 mv -f "$cfgfile" "$ofile" || 24496 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24497 chmod +x "$ofile" 24498 24499 ;; 24500 24501 esac 24502done # for ac_tag 24503 24504 24505as_fn_exit 0 24506_ACEOF 24507ac_clean_files=$ac_clean_files_save 24508 24509test $ac_write_fail = 0 || 24510 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24511 24512 24513# configure is writing to config.log, and then calls config.status. 24514# config.status does its own redirection, appending to config.log. 24515# Unfortunately, on DOS this fails, as config.log is still kept open 24516# by configure, so config.status won't be able to write to it; its 24517# output is simply discarded. So we exec the FD to /dev/null, 24518# effectively closing config.log, so it can be properly (re)opened and 24519# appended to by config.status. When coming back to configure, we 24520# need to make the FD available again. 24521if test "$no_create" != yes; then 24522 ac_cs_success=: 24523 ac_config_status_args= 24524 test "$silent" = yes && 24525 ac_config_status_args="$ac_config_status_args --quiet" 24526 exec 5>/dev/null 24527 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24528 exec 5>>config.log 24529 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24530 # would make configure fail if this is the last instruction. 24531 $ac_cs_success || as_fn_exit 1 24532fi 24533if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24535printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24536fi 24537 24538 24539 24540echo "" 24541echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}" 24542echo "" 24543echo " Configuration" 24544echo " XDM support.........: ${have_xdmcp}" 24545echo " sendmsg fd passing..: ${have_sendmsg}" 24546echo " Build unit tests....: ${HAVE_CHECK}" 24547echo " with html results.: ${HTML_CHECK_RESULT}" 24548echo " XCB buffer size.....: ${xcb_queue_buffer_size}" 24549echo "" 24550echo " X11 extensions" 24551echo " Composite...........: ${BUILD_COMPOSITE}" 24552echo " Damage..............: ${BUILD_DAMAGE}" 24553echo " Dpms................: ${BUILD_DPMS}" 24554echo " Dri2................: ${BUILD_DRI2}" 24555echo " Dri3................: ${BUILD_DRI3}" 24556echo " GenericEvent........: ${BUILD_GE}" 24557echo " Glx.................: ${BUILD_GLX}" 24558echo " Randr...............: ${BUILD_RANDR}" 24559echo " Record..............: ${BUILD_RECORD}" 24560echo " Render..............: ${BUILD_RENDER}" 24561echo " Resource............: ${BUILD_RESOURCE}" 24562echo " Screensaver.........: ${BUILD_SCREENSAVER}" 24563echo " selinux.............: ${BUILD_SELINUX}" 24564echo " Shape...............: ${BUILD_SHAPE}" 24565echo " Shm.................: ${BUILD_SHM}" 24566echo " Sync................: ${BUILD_SYNC}" 24567echo " Xevie...............: ${BUILD_XEVIE}" 24568echo " Xfixes..............: ${BUILD_XFIXES}" 24569echo " Xfree86-dri.........: ${BUILD_XFREE86_DRI}" 24570echo " xinerama............: ${BUILD_XINERAMA}" 24571echo " xinput..............: ${BUILD_XINPUT}" 24572echo " xkb.................: ${BUILD_XKB}" 24573echo " xprint..............: ${BUILD_XPRINT}" 24574echo " xtest...............: ${BUILD_XTEST}" 24575echo " xv..................: ${BUILD_XV}" 24576echo " xvmc................: ${BUILD_XVMC}" 24577echo "" 24578echo " Used CFLAGS:" 24579echo " CPPFLAGS............: ${CPPFLAGS}" 24580echo " CFLAGS..............: ${CFLAGS}" 24581echo "" 24582echo " Installation:" 24583echo " Prefix..............: ${prefix}" 24584echo "" 24585 24586